Repository navigation
fix: window.open site instance should belong to same browsing instance - #15216
alexeykuzmin merged 10 commits into
Conversation
|
💖 Thanks for opening this pull request! 💖 We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of commit messages with semantic prefixes:
Things that will help get your PR across the finish line:
We get a lot of pull requests on this repo, so please be patient and we will get back to you as soon as we can. |
| @@ -196,6 +196,15 @@ class CONTENT_EXPORT ContentBrowserClient { | ||
| public: | ||
| virtual ~ContentBrowserClient() {} | ||
There was a problem hiding this comment.
Those trailing spaces matter.
|
@ppontes Can you please check why the tests fail? Those do not look like flakes. |
The actual site instance determination for the child web contents is made in
even though we short circuit site instance decision to the content layer when its a sandboxed renderer, we force creating a new one when its cross origin /cc @zcbenz |
Sounds good to me. |
|
Only these two failed tests look related to the change:
All others seem to be a side-effect of those ^ failures. |
|
Thanks @alexeykuzmin. Checking the failing unit test. |
|
@ppontes the fix looks good now, thanks! once the failing specs are fixed it should be good to go. |
|
@tarruda why do we expect a electron/spec/api-browser-window-spec.js Lines 1574 to 1575 in 7cab7b6 |
TBH I don't really know. I guess that when I first wrote the code, this is the behavior I observed. If the tests are failing now then they probably should be adjusted. |
|
@ppontes If you're not going to make any more changes, please remove the |
There was a problem hiding this comment.
Please add release notes to the PR description.
https://github.com/electron/clerk/blob/master/README.md#examples
…vigating. When navigating to a new address, consider using Chromium's determined site instance for the new page as it should belong to an existing browsing instance when the navigation was triggered by window.open(). fixes 8100.
… when navigating." This reverts commit eb95f93.
|
@deepak1556 can you please check the affinity fix and tests? |
|
@electron/docs and @electron/notifications, can you please check this PR? Thanks! |
|
@ppontes The trop bot is acting weird, can you please create a manual backport to the |
|
Release Notes Persisted
|
|
Congrats on merging your first pull request! 🎉🎉🎉 |
|
Is it possible to backport to 3.0.x? |
|
@Gvozd We are going to. But I don't want to make any promises. |
…g instance (electron#15216)" (electron#15757) This reverts commit 8f35198.
Description of Change
When a window is opened with window.open to navigate to a cross-site destination, the new site instance should belong to the browsing instance of the opener window in order not to break scripting relationships between windows.
fixes #8100.
npm testpassesRelease Notes
Notes: Fixed a bug where
window.openerof a window created with window.open from a sandboxed renderer was null.