gecko-dev/modules
Frédéric Wang d37af3bd92 Bug 1881040 - Use the destination to refine the fetchpriority mapping. r=valentin
According to step 15 of [1], request’s destination is used in an
implementation-defined manner to set the internal priority but we
currently always use the preferences corresponding to the adjustments
of the global fetch API.

This patch handle destinations corresponding to CSP directives
"font-src", "script-src", "style-src", "img-src" and "media-src" [2]
specially by respectively using the adjustment preferences named
"link-preload-font", "link-preload-script", "link-preload-style"
"images" and a new preference "media".

Special handling of these destinations is motivated by the fact that
they are mentioned explicitly on [3]. For "media" we choose preferences
following the suggestions from that article (i.e. media is low
priority). However, for now we don't change the default value and make
sure fetchpriority=high/low preserves the invariants tested by
fetchpriority-adjustments.html

[1] https://fetch.spec.whatwg.org/#concept-fetch
[2] https://fetch.spec.whatwg.org/#destination-table
[3] https://web.dev/articles/fetch-priority?hl=en#browser_priority_and_fetchpriority

Differential Revision: https://phabricator.services.mozilla.com/D208467
2024-06-12 07:50:42 +00:00
..
brotli
fdlibm
freetype2
libjar Bug 1898652 - Remove network.jar.require_size_match pref r=gregp,valentin 2024-06-10 13:24:56 +00:00
libmar Bug 1862505 - Removed unnecessary else statement. r=sylvestre 2023-11-29 18:12:55 +00:00
libpref Bug 1881040 - Use the destination to refine the fetchpriority mapping. r=valentin 2024-06-12 07:50:42 +00:00
woff2
xz-embedded Bug 1874254 - Allow decompression of both x86 and ARM BCJs on all platforms r=nalexander,mhowell 2024-01-16 17:37:38 +00:00
zlib Bug 1875968 - Update in-tree zlib to version 1.3.1. r=glandium 2024-01-25 03:15:19 +00:00
moz.build