Skip to content

Sets top-level navigation and modal dialog flags on presentations. #415

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

Merged
merged 4 commits into from
Mar 21, 2017

Conversation

markafoltz
Copy link
Contributor

@markafoltz markafoltz commented Mar 1, 2017

Addresses Issue #414: Receiving browsing context needs additional flags set.

It sets the sandboxed top-level navigation browsing context flag and sandboxed modals flag on the receiving browsing context, to protect the integrity of the origin being presented, and to reflect implementation behavior (pending Mozilla feedback).

It also drops a reference to calling window.close(), as this is not allowed with the former flag set. Instead, the presentation must call connection.terminate() on any PresentationConnection.

@anssiko
Copy link
Member

anssiko commented Mar 1, 2017

LGTM. Thanks!

index.html Outdated
response to a call to <code>window.close()</code> in the
<a>top-level browsing context</a> or to a request to
<a>navigate</a> that context to a new resource.
response a request to <a>navigate</a> that context to a new
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/in response a request/in response to a request

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants