Skip to content

Set "one permitted sandbox navigator" for all sandbox-created popups.#1774

Merged
domenic merged 1 commit intomasterfrom
sandboxing
Sep 12, 2016
Merged

Set "one permitted sandbox navigator" for all sandbox-created popups.#1774
domenic merged 1 commit intomasterfrom
sandboxing

Conversation

@mikewest
Copy link
Copy Markdown
Member

This patch ensures that any browsing context created from a sandboxed
document will have its "one permitted sandbox navigator" set.
Previously, this property was not set when navigating from a sandboxed
document whose "sandbox propagates to auxiliary browsing contexts flag"
was not set (e.g. those loaded with 'allow-popups-to-escape-sandbox'),
which meant that sandboxed documents could navigate unrelated windows.
Closing this hole in the spec aligns with the behavior Firefox plans
to ship, and Chrome intends to align with this behavior as well.

Addresses #1218.

This patch ensures that any browsing context created from a sandboxed
document will have its "one permitted sandbox navigator" set.
Previously, this property was not set when navigating from a sandboxed
document whose "sandbox propagates to auxiliary browsing contexts flag"
was not set (e.g. those loaded with 'allow-popups-to-escape-sandbox'),
which meant that sandboxed documents could navigate unrelated windows.
Closing this hole in the spec aligns with the behavior Firefox plans
to ship, and Chrome intends to align with this behavior as well.

Addresses #1218.
@mikewest
Copy link
Copy Markdown
Member Author

@bzbarsky: I think this is more or less what you suggested. WDYT?

@bzbarsky
Copy link
Copy Markdown
Contributor

Yes, that looks great.

@mikewest
Copy link
Copy Markdown
Member Author

Great. @annevk, @domenic: is this something y'all would be interested in landing?

@domenic domenic merged commit ca6c420 into master Sep 12, 2016
@domenic domenic deleted the sandboxing branch September 12, 2016 15:53
@domenic
Copy link
Copy Markdown
Member

domenic commented Sep 12, 2016

\o/

@mikewest
Copy link
Copy Markdown
Member Author

Thanks, @domenic!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants