Skip to content

Commit

Permalink
Change request destinations of nested navigations
Browse files Browse the repository at this point in the history
Currently, top-level and nested navigations use a request destination of "document". This splits that into "document" (top-level) and "embed", "frame", "iframe", and "object" (nested).

It also makes embed/object use "navigate" as their request mode.

This complements whatwg/fetch#948 (which links relevant tests).
  • Loading branch information
mikewest authored Jun 5, 2020
1 parent 42db36e commit db2ce7e
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -30400,7 +30400,8 @@ interface <dfn>HTMLEmbedElement</dfn> : <span>HTMLElement</span> {
document</span>'s <span>relevant settings object</span>, <span
data-x="concept-request-destination">destination</span> is "<code data-x="">embed</code>",
<span data-x="concept-request-credentials-mode">credentials mode</span> is "<code
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>
data-x="">include</code>", <span data-x="concept-request-mode">mode</span> is "<code
data-x="">navigate</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>

<li>
<p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p>
Expand Down Expand Up @@ -30878,7 +30879,8 @@ interface <dfn>HTMLObjectElement</dfn> : <span>HTMLElement</span> {
document</span>'s <span>relevant settings object</span>, <span
data-x="concept-request-destination">destination</span> is "<code data-x="">object</code>",
<span data-x="concept-request-credentials-mode">credentials mode</span> is "<code
data-x="">include</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>
data-x="">include</code>", <span data-x="concept-request-mode">mode</span> is "<code
data-x="">navigate</code>", and whose <span>use-URL-credentials flag</span> is set.</p></li>

<li>
<!--FETCH--><p><span data-x="concept-fetch">Fetch</span> <var>request</var>.</p>
Expand Down Expand Up @@ -81753,10 +81755,21 @@ interface <dfn>Location</dfn> { // but see also <a href="#the-location-interface
<var>browsingContext</var>'s <span>active document</span>'s <span>relevant settings
object</span>'s <span data-x="concept-environment-id">id</span>.</p></li>

<li><p>If <var>browsingContext</var>'s <span data-x="bc-container">container</span> is non-null
and has a <span>browsing context scope origin</span>, then set <var>request</var>'s <span
data-x="concept-request-origin">origin</span> to that <span>browsing context scope
origin</span>.</p></li>
<li>
<p>If <var>browsingContext</var>'s <span data-x="bc-container">container</span> is non-null:</p>

<ol>
<li><p>If the <var>browsingContext</var>'s <span data-x="bc-container">container</span> has a
<span>browsing context scope origin</span>, then set <var>request</var>'s <span
data-x="concept-request-origin">origin</span> to that <span>browsing context scope
origin</span>.</p></li>

<li><p>Set <var>request</var>'s <span
data-x="concept-request-destination">destination</span> to <var>browsingContext</var>'s
<span data-x="bc-container">container</span>'s <span data-x="concept-element-local-name">local
name</span>.</p></li>
</ol>
</li>

<li><p>Let <var>reservedEnvironment</var> be null.</p></li>

Expand Down

0 comments on commit db2ce7e

Please sign in to comment.