Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous code don't work in Firefox private windows #384

Open
leovilok opened this issue Sep 13, 2022 · 2 comments
Open

Synchronous code don't work in Firefox private windows #384

leovilok opened this issue Sep 13, 2022 · 2 comments

Comments

@leovilok
Copy link

input() and time.sleep() both work in the console in Firefox, but not when it's in a private window.

input() gives this error:

RuntimeError: This browser doesn't support reading input. Try upgrading to the most recent version or switching to a different browser, e.g. Chrome or Firefox.

While time.sleep() just returns immediately without error ... but without sleeping either.

So it's probably a comsync issue?

I'm using Firefox 104.0.2 on Linux.

@alexmojaki
Copy link
Owner

Yes, service workers are disabled in Firefox for security or something. I've been aware of this problem for ages but you're the first to mention it. But I also don't want to explicitly mention this reason in the suggestions in the error message, because "sorry this doesn't work in private browsing" sounds very suspicious.

And yes, in general the implementation for time.sleep() intentionally just returns immediately instead of raising an error when there's a sync IO problem.

Not sure if I should keep this issue open because I have no plans to fix it. The only solution I see is to go back to SharedArrayBuffers for sync IO, and that comes with other problems.

@leovilok
Copy link
Author

I'd say it's more of a Firefox bug then. This seems to be an issue for a lot of sites, so hopefully they will eventually fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants