Chromium Code Reviews
DescriptionExtension-created windows should share the creator's BrowingInstance.
Without plumbing through the source SiteInstance, the created window
always ends up cross process and unscriptable by the background page
that created it. This means a background page that opens an extension
resource won't be able to script it, even though they are in related
browsing contexts and have the same origin. Note that navigations to
non-extension origins will still trigger a process swap so we don't
lose extension isolation.
This also fixes CreateTargetContents to use the source_site_instance
parameter if specified; otherwise, the newly created contents will
never be scriptable by same-site pages.
Also see r365431 which fixed the same problem for panels.
BUG=597750
Committed: https://crrev.com/7a9e836958ce3a7a2ddf40a4c8548678ffcbefc8
Cr-Commit-Position: refs/heads/master@{#384655}
Patch Set 1 #Patch Set 2 : . #Patch Set 3 : With a (broken) test #Patch Set 4 : And with a working test. #Patch Set 5 : Clean up stray include and fix unrelated unit test #
Total comments: 8
Patch Set 6 : Review comments #
Messages
Total messages: 15 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||