Add "fetchpriority" attribute to <link> element and `Link` headers, first parts
Categories
(Core :: Networking, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox121 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(8 files, 9 obsolete files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
The standard defines multiple link types (https://html.spec.whatwg.org/multipage/semantics.html#attr-link-rel), so perhaps this requires updating more loader functions than the ones mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1797715#c2.
Assignee | ||
Comment 2•1 year ago
|
||
When implementing this, grep the code for references to this bug (e.g. grep -i "Bug <bugnumber>"
).
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 3•1 year ago
|
||
Since the HTMLLinkElement requires it too.
Assignee | ||
Comment 4•1 year ago
|
||
Setting the internal priority depending on the fetchPriority
will be
implemented in a following part.
Depends on D189935
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Because it's confusing.
Depends on D189936
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 6•1 year ago
|
||
Otherwise it's unclear what's meant.
Assignee | ||
Comment 7•1 year ago
|
||
Otherwise it's hard to understand what's supposed to happen there.
Depends on D190666
Comment 10•1 year ago
|
||
bugherder |
Comment 11•1 year ago
|
||
Assignee | ||
Comment 12•1 year ago
|
||
As requested in the review of part 1.
Assignee | ||
Comment 13•1 year ago
|
||
The function is more than 250 lines long
(https://searchfox.org/mozilla-central/rev/5ad226c7379b0564c76dc3b54b44985356f94c5a/netwerk/base/nsNetUtil.cpp#3448-3703)
and will be extended in a following part.
This refactoring allows to extend the new, simpler function instead.
Comment 14•1 year ago
|
||
bugherder |
Comment 15•1 year ago
|
||
Assignee | ||
Comment 16•1 year ago
|
||
Setting the value currently has no user-observable effect. It will be
used in a following part.
Updated•1 year ago
|
Comment 17•1 year ago
|
||
bugherder |
Comment 18•1 year ago
|
||
Comment 19•1 year ago
|
||
bugherder |
Comment 20•1 year ago
|
||
Assignee | ||
Comment 21•1 year ago
|
||
Includes only support for dynamically loading style sheets from <link>
elements and Link
header fields.
The remaining support, including preloading, will be added in other
patches.
Assignee | ||
Comment 22•1 year ago
|
||
This is allows enabling the style tests in a following part. The other
tests can be separated when needed.
Depends on D191745
Comment 23•1 year ago
|
||
bugherder |
Assignee | ||
Comment 24•1 year ago
|
||
Includes corresponding Link header fields.
Assignee | ||
Comment 25•11 months ago
|
||
Assignee | ||
Comment 26•11 months ago
|
||
Allows passing the separated tests once as=fetch
is supported, which
will happen in a following part.
For interoperability the expectations for as=fetch
are adapted too
(https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/http/tests/priority-hints/link-preload-initial-load.html;l=39-52;drc=a7b04c9f4d4083e8e1a9d3ba15ba8030fe819719).
Depends on D192331
Assignee | ||
Comment 27•11 months ago
|
||
Allows the separate tests to pass. Otherwise passes are shadowed by
failures. The next parts make use of that.
The tests for images might be adapted in a following part to match the
priorities at
https://web.dev/articles/fetch-priority#browser_priority_and_fetchpriority.
Assignee | ||
Comment 28•11 months ago
|
||
Tests existing behavior. It differs from Chromium's, which assigns
highest priority instead of high.
The test is added for the fetchpriority feature because loading a
font-face font has overlapping code with linking fonts via <link rel=preload as=font>
in FontPreloader
(https://searchfox.org/mozilla-central/rev/d6576544301cacc0e393fbc919c53e4e6b0d46ec/layout/style/FontPreloader.h#25).
Assignee | ||
Comment 29•11 months ago
|
||
Test is added for the same reason as the one for part 15:
in Gecko FontPreloader
code is called.
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Assignee | ||
Comment 30•11 months ago
|
||
Complements parts 15 and 16.
Depends on D193657
Updated•11 months ago
|
Comment 31•11 months ago
|
||
Comment on attachment 9356374 [details]
Bug 1839315: part 1) Lift code for fetchpriority
attribute from HTMLScriptElement
to nsGenericHTMLElementWithFetchPriorityAttribute
. r=smaug
Revision D189935 was moved to bug 1865610. Setting attachment 9356374 [details] to obsolete.
Updated•11 months ago
|
Comment 32•11 months ago
|
||
Comment on attachment 9360017 [details]
Bug 1839315: part 9) Add partial support for the "fetchpriority" attribute for loading style sheets from <link>
elements or Link
header fields. r=smaug,emilio
Revision D191745 was moved to bug 1865610. Setting attachment 9360017 [details] to obsolete.
Comment 33•11 months ago
|
||
Comment on attachment 9360018 [details]
Bug 1839315: part 10) Separate tests for <link rel=preload as=style>
and corresponding Link
header tests from other as=
tests. r=emilio
Revision D191746 was moved to bug 1865610. Setting attachment 9360018 [details] to obsolete.
Comment 34•11 months ago
|
||
Comment on attachment 9360234 [details]
Bug 1839315: part 11) Add fetchpriority
attribute support for preloaded stylesheets. r=smaug,emilio,#necko-reviewers
Revision D191866 was moved to bug 1865610. Setting attachment 9360234 [details] to obsolete.
Comment 35•11 months ago
|
||
Comment on attachment 9361204 [details]
Bug 1839315: part 12) Add fetchpriority
attribute support for rel=modulepreload
and rel=preload as=script
. r=smaug,valentin
Revision D192331 was moved to bug 1865610. Setting attachment 9361204 [details] to obsolete.
Comment 36•11 months ago
|
||
Comment on attachment 9361205 [details]
Bug 1839315: part 13) Separate tests for <link rel=preload as=fetch>
from other <link rel=preload>
tests. r=valentin
Revision D192332 was moved to bug 1865610. Setting attachment 9361205 [details] to obsolete.
Comment 37•11 months ago
|
||
Comment on attachment 9363277 [details]
Bug 1839315: part 14) Separate tests for <link rel=preload as=font>
from other preload tests. r=valentin
Revision D193435 was moved to bug 1865610. Setting attachment 9363277 [details] to obsolete.
Comment 38•11 months ago
|
||
Comment on attachment 9363497 [details]
Bug 1839315: part 15) Add test for internally assigned priority of font-face loaded from <head>
. r=dholbert
Revision D193550 was moved to bug 1865610. Setting attachment 9363497 [details] to obsolete.
Comment 39•11 months ago
|
||
Comment on attachment 9363690 [details]
Bug 1839315: part 16) Add test for internally assigned priority of font-face loaded from a worker. r=dholbert
Revision D193657 was moved to bug 1865610. Setting attachment 9363690 [details] to obsolete.
Comment 40•11 months ago
|
||
Comment on attachment 9363872 [details]
Bug 1839315: part 17) Add test for internally assigned priority of font-face loaded from a script. r=dholbert
Revision D193766 was moved to bug 1865610. Setting attachment 9363872 [details] to obsolete.
Assignee | ||
Comment 41•11 months ago
|
||
Work continued in https://bugzilla.mozilla.org/show_bug.cgi?id=1865610.
Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Description
•