Skip to content

Commit 0076946

Browse files
mikewestfoolip
authored andcommitted
Treat 'data:' documents as unique, opaque origins (whatwg#1756)
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.
1 parent ca6c420 commit 0076946

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

source

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79507,6 +79507,9 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
7950779507
<dt id="sandboxOrigin">If the <code>Document</code>'s <span>active sandboxing flag set</span>
7950879508
has its <span>sandboxed origin browsing context flag</span> set</dt>
7950979509

79510+
<dt>If the <code>Document</code> was generated from a <span data-x="data
79511+
protocol"><code>data:</code> URL</span></dt>
79512+
7951079513
<dd><p>A unique <span data-x="concept-origin-opaque">opaque origin</span> assigned when the
7951179514
<code>Document</code> is created.</p></dd>
7951279515

@@ -79534,10 +79537,6 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
7953479537

7953579538
<dt>If the <code>Document</code> is a non-initial "<code>about:blank</code>" document</dt>
7953679539

79537-
<dt>If the <code>Document</code> was generated from a <span data-x="data
79538-
protocol"><code>data:</code> URL</span> found in another <code>Document</code> or in a
79539-
script</dt>
79540-
7954179540
<dd><p>The <span data-x="concept-settings-object-origin">origin</span> of the <span>incumbent
7954279541
settings object</span> when the <span>navigate</span> algorithm was invoked, or, if no <span
7954379542
data-x="concept-script">script</span> was involved, the <span>origin</span> of the <span>node
@@ -79560,10 +79559,9 @@ callback <dfn>FrameRequestCallback</dfn> = void (<span>DOMHighResTimeStamp</span
7956079559
container</span>'s <span>node document</span>.</p></dd>
7956179560

7956279561

79563-
<dt>If the <code>Document</code> was obtained in some other manner (e.g. a <span data-x="data
79564-
protocol"><code>data:</code> URL</span> typed in by the user or that was returned as the
79565-
location of a redirect, a <code>Document</code> created using the <code
79566-
data-x="dom-DOMImplementation-createDocument">createDocument()</code> API, etc)</dt>
79562+
<dt>If the <code>Document</code> was obtained in some other manner (e.g. a <code>Document</code>
79563+
created using the <code data-x="dom-DOMImplementation-createDocument">createDocument()</code>
79564+
API, etc)</dt>
7956779565

7956879566
<dd>
7956979567
<p>The default behavior as defined in the WHATWG DOM standard applies. <ref spec=DOM>.</p>

0 commit comments

Comments
 (0)