Add "fetchpriority" attribute to <link> element and `Link` headers, first parts
Categories
(Core :: Networking, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox121 | --- | fixed |
People
(Reporter: mbrodesser, Assigned: mbrodesser)
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•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years 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•2 years ago
|
||
When implementing this, grep the code for references to this bug (e.g. grep -i "Bug <bugnumber>").
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
Since the HTMLLinkElement requires it too.
| Assignee | ||
Comment 4•2 years ago
|
||
Setting the internal priority depending on the fetchPriority will be
implemented in a following part.
Depends on D189935
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 5•2 years ago
|
||
Because it's confusing.
Depends on D189936
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 6•2 years ago
|
||
Otherwise it's unclear what's meant.
| Assignee | ||
Comment 7•2 years ago
|
||
Otherwise it's hard to understand what's supposed to happen there.
Depends on D190666
Comment 10•2 years ago
|
||
| bugherder | ||
Comment 11•2 years ago
|
||
| Assignee | ||
Comment 12•2 years ago
|
||
As requested in the review of part 1.
| Assignee | ||
Comment 13•2 years 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•2 years ago
|
||
| bugherder | ||
Comment 15•2 years ago
|
||
| Assignee | ||
Comment 16•2 years ago
|
||
Setting the value currently has no user-observable effect. It will be
used in a following part.
Updated•2 years ago
|
Comment 17•2 years ago
|
||
| bugherder | ||
Comment 18•2 years ago
|
||
Comment 19•2 years ago
|
||
| bugherder | ||
Comment 20•2 years ago
|
||
| Assignee | ||
Comment 21•2 years 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•2 years 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•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 24•2 years ago
|
||
Includes corresponding Link header fields.
| Assignee | ||
Comment 25•2 years ago
|
||
| Assignee | ||
Comment 26•2 years 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•2 years 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•2 years 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•2 years ago
|
||
Test is added for the same reason as the one for part 15:
in Gecko FontPreloader code is called.
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
| Assignee | ||
Comment 30•2 years ago
|
||
Complements parts 15 and 16.
Depends on D193657
Updated•2 years ago
|
Comment 31•2 years 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•2 years ago
|
Comment 32•2 years 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•2 years 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•2 years 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•2 years 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•2 years 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•2 years 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•2 years 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•2 years 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•2 years 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•2 years ago
|
||
Work continued in https://bugzilla.mozilla.org/show_bug.cgi?id=1865610.
| Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Description
•