-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
don't share event loop between windows when possible #5857
Comments
I wish I'd found this earlier - I've been debugging this most of the morning 🙈 The issue is when we hit a breakpoint in the web app, it causes GitPod to lock up and everything hangs. I tested adding
However since this prevents it from returning a |
@DanTup Could you send a PR please? Changing a return type is fine. I could not find any clients using the returned window object. |
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes eclipse-theia#5857.
@akosyakov I made a start, but I'm not getting very good errors in my IDE so I'm not sure if this is everything. I'm also not sure whether changing the Does this seem reasonable? |
|
I presume there's a missing "not" there? I'll revert that then and use Does it seem ok removing the error-throwing code in default-window-service since it'll always get an undefined return value now? btw, I don't know if I can reliably test all of this locally.. I tested the |
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes eclipse-theia#5857.
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes eclipse-theia#5857. Signed-off-by: Danny Tuppeny <danny@tuppeny.com>
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes eclipse-theia#5857. Signed-off-by: Danny Tuppeny <danny@tuppeny.com>
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes #5857. Signed-off-by: Danny Tuppeny <danny@tuppeny.com>
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger. Fixes eclipse-theia#5857. Signed-off-by: Danny Tuppeny <danny@tuppeny.com>
from http://hassansin.github.io/shared-event-loop-among-same-origin-windows
As a consequence debugging in one window blocks all other windows for the same origin.
The obvious candidate is mini-browser. But we should review other places where we use
window.open
and passrel=noopener
when it makes sense, i.e. we did not need to communicate with an opened window.The text was updated successfully, but these errors were encountered: