Skip to content
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

Treat 'data:' documents as unique, opaque origins #1756

Merged
merged 2 commits into from
Sep 13, 2016
Merged

Treat 'data:' documents as unique, opaque origins #1756

merged 2 commits into from
Sep 13, 2016

Conversation

mikewest
Copy link
Member

@mikewest mikewest commented Sep 7, 2016

This patch changes the handling of 'data:' URLs to which user agents
navigate. Rather than inheriting the origin of the settings object
responsible for the navigation, they will be treated as unique,
opaque origins.

This aligns the spec with the behavior found in Chrome, Safari,
Opera, and Edge.

Closes #1753.

This patch changes the handling of 'data:' URLs to which user agents
navigate. Rather than inheriting the origin of the settings object
responsible for the navigation, they will be treated as unique,
opaque origins.

This aligns the spec with the behavior found in Chrome, Safari,
Opera, and Edge.

Closes #1753.
@domenic domenic added security/privacy There are security or privacy implications normative change compat Standard is not web compatible or proprietary feature needs standardizing labels Sep 7, 2016
@foolip
Copy link
Member

foolip commented Sep 7, 2016

LGTM, this does what it intends to do. The original issue hasn't been open for long, though, so I think we should give it just a little bit more time.

@@ -79440,6 +79440,10 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
<dt id="sandboxOrigin">If the <code>Document</code>'s <span>active sandboxing flag set</span>
has its <span>sandboxed origin browsing context flag</span> set</dt>

<dt>If the <code>Document</code> was generated from a <span data-x="data
protocol"><code>data:</code> URL</span> found in another <code>Document</code> or in a
script</dt>
Copy link
Member

Choose a reason for hiding this comment

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

I suspect we should drop "found in another Document or in a script" here, no? Or is there some subtlety I'm missing?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, I was just making the smallest change possible. Dropping the "found in another Document" bit would just mean that we'd also need to change the example in the "some other manner" section. shrug Easy enough.

Copy link
Member Author

Choose a reason for hiding this comment

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

Addressed in 7838566.

@annevk
Copy link
Member

annevk commented Sep 8, 2016

LGTM, will let @foolip decide when to land.

@domenic domenic assigned foolip and unassigned annevk Sep 8, 2016
@foolip foolip merged commit 0076946 into whatwg:master Sep 13, 2016
@mikewest mikewest deleted the origin branch September 13, 2016 09:38
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
This patch changes the handling of 'data:' URLs to which user agents
navigate. Rather than inheriting the origin of the settings object
responsible for the navigation, they will be treated as unique,
opaque origins.

This aligns the spec with the behavior found in Chrome, Safari,
Opera, and Edge.

Closes whatwg#1753.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compat Standard is not web compatible or proprietary feature needs standardizing normative change security/privacy There are security or privacy implications
Development

Successfully merging this pull request may close these issues.

4 participants