-
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
Set 'noopener' when opening windows to avoid sharing event loops #6683
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanTup thank you, it is very good change!
I will merge if the build is green and there is no objections, i.e. someone actually expect an instance of Window
.
@DanTup, please update the changelog, it is a breaking change. Thank you! |
The electron implementation does not return with the new |
I'm not sure how best to describe this in the changelog, since I'm not really sure how this is exposed. Is something like this correct?
|
Perfect, we just need some info to trace back who did the breaking change ;) |
@DanTup in general we ask that every commit be |
Heh, I was just checking why that went red. I'll fix! |
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>
I propose
The former approach feels the more flexible one, but |
I thought leaving |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I know, none of the downstream projects expect a Window
object, looks good to me 👍
Thank you for your contribution, @DanTup
No problem! I'm not sure if you want anything changing or if it's ok as-is. Feel free to change after merging if that's easier than going back and forth. My need is only the |
Prevents the web UI pausing when an app opened with window.open is paused in the browsers debugger.
Fixes #5857.
Note: I'm not sure how to test this from source. I tested it on GitPod by replacing
window.open
with a wrapper using the dev tools like this:This resolved the issue of the GitPod UI hanging when my web app stopped at a breakpoint. If this is something I should be able to test locally, please provide some pointers (and ofc, I'm happy to re-test on staging once it gets there).