зеркало из https://github.com/mozilla/gecko-dev.git
d37af3bd92
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 |
||
---|---|---|
.. | ||
brotli | ||
fdlibm | ||
freetype2 | ||
libjar | ||
libmar | ||
libpref | ||
woff2 | ||
xz-embedded | ||
zlib | ||
moz.build |