Skip to content

Commit

Permalink
Only set fetch initiator for container-initiated navigations
Browse files Browse the repository at this point in the history
  • Loading branch information
noamr authored Dec 26, 2022
1 parent 045b5c2 commit 70752d8
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -91356,9 +91356,20 @@ location.href = '#foo';</code></pre>
origin</span>.</p></li>

<li><p>Set <var>request</var>'s <span data-x="concept-request-destination">destination</span>
and <span data-x="concept-request-initiator-type">initiator type</span> to
<var>navigable</var>'s <span data-x="nav-container">container</span>'s <span
to <var>navigable</var>'s <span data-x="nav-container">container</span>'s <span
data-x="concept-element-local-name">local name</span>.</p></li>

<li>
<p>If <var>sourceSnapshotParams</var>'s <span data-x="source-snapshot-params-client">fetch
client</span> is <var>navigable</var>'s <span data-x="nav-container-document">container
document</span>'s <span>relevant settings object</span>, then set <var>request</var>'s <span
data-x="concept-request-initiator-type">initiator type</span> to <var>navigable</var>'s <span
data-x="nav-container">container</span>'s <span data-x="concept-element-local-name">local
name</span>.</p>

<p class="note">This ensure that only container-initiated navigations are reported to
resource timing.</p>
</li>
</ol>
</li>

Expand Down

0 comments on commit 70752d8

Please sign in to comment.