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

Add the Priority Hints changes to the html spec #8470

Merged
merged 29 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
e431c1d
Add the Priority Hints changes to the html spec
pmeenan Nov 3, 2022
c85da3a
First round of fixes from feedback (still WIP)
pmeenan Nov 4, 2022
2a3d6a8
Merge branch 'whatwg:main' into priority-hints
pmeenan Dec 2, 2022
a92e253
Merge branch 'whatwg:main' into priority-hints
pmeenan Jan 4, 2023
8d0eece
Merge branch 'whatwg:main' into priority-hints
pmeenan Jan 11, 2023
885557a
Cleaned up dangling variables
pmeenan Jan 11, 2023
9b73bf4
Formatting cleanup
pmeenan Jan 11, 2023
124eba5
Plumb fetchPriority through navigation
pmeenan Jan 18, 2023
c65c2ec
Merge branch 'whatwg:main' into priority-hints
pmeenan Jan 18, 2023
f7c8c53
Rename "nested navigable" to "content navigable"
domenic Jan 19, 2023
3fae597
Document exactly what works with the Link header
domenic Jan 19, 2023
385e54f
Meta: export "serializable object"
dontcallmedom Jan 20, 2023
59d000c
Fix typo in session history traversal parallel queue example
domfarolino Jan 23, 2023
0ec01fe
Update permisssions policy creation
clelland Jan 23, 2023
ba9cb8a
Properly assign history policy container
domfarolino Jan 24, 2023
37b4a08
Meta: export form owner and submit button
jenseng Jan 25, 2023
c3a901a
Merge branch 'whatwg:main' into priority-hints
pmeenan Jan 25, 2023
93247ca
Merge branch 'whatwg:main' into priority-hints
pmeenan Jan 30, 2023
e33a3d5
Fixed missing options and use "destination"
pmeenan Jan 30, 2023
9466ccc
Updated descendant script fetch options to not inherit fetch priority
pmeenan Feb 1, 2023
f57829d
Merge branch 'whatwg:main' into priority-hints
pmeenan Feb 8, 2023
5639d68
Cleanup formatting and attribute default state
pmeenan Feb 9, 2023
fd8998b
Minor fixes
domenic Feb 15, 2023
133deee
Oops
domenic Feb 15, 2023
d5908d0
Fix the attribute index
domenic Feb 16, 2023
4c701e7
Remove iFrame support
pmeenan Feb 16, 2023
7679f30
Merge branch 'whatwg:main' into priority-hints
pmeenan Feb 16, 2023
c6890d7
Added fetchpriority to the link header parsing
pmeenan Feb 16, 2023
65c22f3
Final tweaks
domenic Feb 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Plumb fetchPriority through navigation
  • Loading branch information
pmeenan committed Jan 18, 2023
commit 124eba5eef233b723d7645101fb672a3247d002f
37 changes: 30 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -31909,6 +31909,9 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
<li><p>Let <var>referrerPolicy</var> be the current state of <var>element</var>'s <code
data-x="attr-iframe-referrerpolicy">referrerpolicy</code> content attribute.</p></li>

<li><p>Let <var>fetchPriority</var> be the current state of <var>element</var>'s <code
data-x="attr-iframe-fetchpriority">fetchpriority</code> content attribute.</p></li>

<li><p>Set <var>element</var>'s <span>current navigation was lazy loaded</span> boolean to
false.</p></li>

Expand All @@ -31931,7 +31934,8 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
</li>

<li><p><i>Navigate</i>: <span>navigate an <code>iframe</code> or <code>frame</code></span>
given <var>element</var>, <var>url</var>, and <var>referrerPolicy</var>.</p></li>
given <var>element</var>, <var>url</var>, <var>referrerPolicy</var>, and
<var>fetchPriority</var>.</p></li>
</ol>
</li>
</ol>
Expand Down Expand Up @@ -31972,8 +31976,9 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {

<p>To <dfn>navigate an <code>iframe</code> or <code>frame</code></dfn> given an element
<var>element</var>, a <span>URL</span> <var>url</var>, a <span>referrer policy</span>
<var>referrerPolicy</var>, and an optional string-or-null <var>srcdocString</var> (default
null):</p>
<var>referrerPolicy</var>, an optional string-or-null <var>srcdocString</var> (default
null), and an optional <span>fetch priority attribute</span> <var>fetchPriority</var> (default
<code data-x="attr-fetchpriority-auto-state">auto</code>):</p>

<ol>
<li><p>Let <var>historyHandling</var> be "<code data-x="hh-push">push</code>".</p>
Expand All @@ -31985,8 +31990,9 @@ interface <dfn interface>HTMLIFrameElement</dfn> : <span>HTMLElement</span> {
<li><p><span>Navigate</span><!--DONAV iframe or frame--> <var>element</var>'s <span>nested
navigable</span> to <var>url</var> using <var>element</var>'s <span>node document</span>, with
<i data-x="navigation-hh">historyHandling</i> set to <var>historyHandling</var>, <i
data-x="navigation-referrer-policy">referrerPolicy</i> set to <var>referrerPolicy</var>, and <i
data-x="navigation-resource">documentResource</i> set to <var>scrdocString</var>.</p></li>
data-x="navigation-referrer-policy">referrerPolicy</i> set to <var>referrerPolicy</var>, <i
data-x="navigation-resource">documentResource</i> set to <var>scrdocString</var>, and <i
data-x="navigation-fetch-priority">fetchPriority</i> set to <var>fetchPriority</var>.</p></li>
</ol>

<p>Each <code>Document</code> has an <dfn>iframe load in progress</dfn> flag and a <dfn>mute
Expand Down Expand Up @@ -88954,6 +88960,10 @@ interface <dfn interface>BeforeUnloadEvent</dfn> : <span>Event</span> {
document.</p>
</li>

<li><p>A <dfn data-x="document-state-request-fetch-priority">request fetch priority</dfn>, which
is a <span>fetch priority attribute</span>, initially <code
data-x="attr-fetchpriority-auto-state">auto</code>.</p>

<li>
<p>An <dfn data-x="document-state-initiator-origin">initiator origin</dfn>, which is an
<span>origin</span> or null, initially null.</p>
Expand Down Expand Up @@ -89681,9 +89691,11 @@ location.href = '#foo';</code></pre>
data-x="navigation-hh"><var>historyHandling</var></dfn> (default "<code
data-x="hh-push">push</code>"), an optional string <dfn
data-x="navigation-navigationtype"><var>cspNavigationType</var></dfn> (default "<code
data-x="">other</code>"), and an optional <span>referrer policy</span> <dfn
data-x="">other</code>"), an optional <span>referrer policy</span> <dfn
data-x="navigation-referrer-policy"><var>referrerPolicy</var></dfn> (default the empty
string):</p>
string), and an optional <span>fetch priority attribute</span> <dfn
data-x="navigation-fetch-priority"><var>fetchPriority</var></dfn> (default
<code data-x="attr-fetchpriority-auto-state">auto</code>):</p>

<ol>
<li><p>Let <var>sourceSnapshotParams</var> be the result of <span>snapshotting source snapshot
Expand Down Expand Up @@ -89884,6 +89896,9 @@ location.href = '#foo';</code></pre>
<dt><span data-x="document-state-request-referrer-policy">request referrer policy</span></dt>
<dd><var>referrerPolicy</var></dd>

<dt><span data-x="document-state-request-fetch-priority">request fetch priority</span></dt>
<dd><var>fetchPriority</var></dd>

<dt><span data-x="document-state-initiator-origin">initiator origin</span></dt>
<dd><var>initiatorOriginSnapshot</var></dd>

Expand Down Expand Up @@ -91448,6 +91463,10 @@ location.href = '#foo';</code></pre>
<dt><span data-x="concept-request-referrer-policy">referrer policy</span></dt>
<dd><var>entry</var>'s <span data-x="she-document-state">document state</span>'s <span
data-x="document-state-request-referrer-policy">request referrer policy</span></dd>

<dt><span data-x="concept-request-priority">priority</span></dt>
<dd><var>entry</var>'s <span data-x="she-document-state">document state</span>'s <span
data-x="document-state-request-fetch-priority">request fetch priority</span></dd>
</dl>
</li>

Expand Down Expand Up @@ -91784,6 +91803,10 @@ location.href = '#foo';</code></pre>
<dd><var>oldDocState</var>'s <span data-x="document-state-request-referrer-policy">request
referrer policy</span></dd>

<dt><span data-x="document-state-request-fetch-priority">request fetch priority</span></dt>
<dd><var>oldDocState</var>'s <span data-x="document-state-request-fetch-priority">request
fetch priority</span></dd>

<dt><span data-x="document-state-origin">origin</span></dt>
<dd><var>oldDocState</var>'s <span data-x="document-state-origin">origin</span></dd>

Expand Down