-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Conversation
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.
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> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in 7838566.
LGTM, will let @foolip decide when to land. |
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.
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.