-
Notifications
You must be signed in to change notification settings - Fork 15k
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
refactor: port window.open and window.opener to use ctx bridge instead of hole punching #23235
Conversation
71c05c9
to
39771e6
Compare
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.
LGTM with nits
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.
LGTM, for the webview deprecation
39771e6
to
70b817b
Compare
70b817b
to
e1eba5b
Compare
No Release Notes |
I was unable to backport this PR to "9-x-y" cleanly; |
I was unable to backport this PR to "8-x-y" cleanly; |
I was unable to backport this PR to "7-2-x" cleanly; |
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
… the main world (#23299) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world (#23194) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world * chore: update ctx bridge specs for new base numbers * refactor: port window.open and window.opener to use ctx bridge instead of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
… the main world (#23302) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world (#23194) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world * chore: update ctx bridge specs for new base numbers * refactor: port window.open and window.opener to use ctx bridge instead of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled * s/gin/mate * fix: do not inject in content scripts and do not override window.history because it does not work
…d of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled
… the main world (#23305) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world (#23194) * refactor: port parts of window-setup to use ctx bridge instead of being run in the main world * chore: update ctx bridge specs for new base numbers * refactor: port window.open and window.opener to use ctx bridge instead of hole punching (#23235) * refactor: port window.open and window.opener to use ctx bridge instead of hole punching * refactor: only run the isolated init bundle when webview is enabled * s/gin/mate * fix: do not inject in content scripts and do not override window.history because it does not work * fix: electron 7 does not have an objectcache * chore: fix linting * chore: update tests for new values
Follow up to #23194
Moves all of
window-setup
to use ctx bridge so we don't have to hole punch.This PR also gates the
isolated_bundle
behind a check for "has webview" as that is the only thing that bundle does now. It also adds a warning thatcontextIsolation
+webviewTag
is unsafe.Notes: no-notes