mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-29 20:07:30 +09:00
No issue - Include all non-ubiquitous image and media types in nav Accept:
See: https://github.com/whatwg/fetch/issues/274#issuecomment-2841053461 Considering the ubiquitous nature of gif, jpg, png, mp4, avi, etc. those are left out, leaving just jxl, webp, x-matroska (mkv) and webm as explicitly mentioned supported formats for conneg. Note: it's not clear where network.http.accept.image is used in practice because our normal place to use the image override (imgloader) uses a different pref (image.http.accept).
This commit is contained in:
parent
ba3a5074c7
commit
0e02e94278
1 changed files with 12 additions and 2 deletions
|
|
@ -1500,8 +1500,18 @@ pref("network.http.request.max-attempts", 10);
|
||||||
|
|
||||||
// Headers
|
// Headers
|
||||||
pref("network.http.accept.default", "*/*");
|
pref("network.http.accept.default", "*/*");
|
||||||
pref("network.http.accept.navigation", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
|
// Top-level navigation should include all non-ubiquitous mime types in front of */*
|
||||||
pref("network.http.accept.image", "image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5");
|
// including image and video/audio types that are handled top-level.
|
||||||
|
#ifdef MOZ_JXL
|
||||||
|
pref("network.http.accept.navigation", "text/html,application/xhtml+xml,application/xml;q=0.9,image/jxl,image/webp,video/x-matroska,video/webm,*/*;q=0.8");
|
||||||
|
#else
|
||||||
|
pref("network.http.accept.navigation", "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,video/x-matroska,video/webm,*/*;q=0.8");
|
||||||
|
#endif
|
||||||
|
#ifdef MOZ_JXL
|
||||||
|
pref("network.http.accept.image", "image/jxl,image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5");
|
||||||
|
#else
|
||||||
|
pref("network.http.accept.image", "image/webp,image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5");
|
||||||
|
#endif
|
||||||
pref("network.http.accept.style", "text/css,*/*;q=0.1");
|
pref("network.http.accept.style", "text/css,*/*;q=0.1");
|
||||||
|
|
||||||
// Prefs allowing granular control of referers
|
// Prefs allowing granular control of referers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue