mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 16:28:38 +09:00
[PALEMOON] Remove image/jxr from image.http.accept until JPEG-XR decoder is implemented
This commit is contained in:
parent
7a614526ec
commit
c75edc1c0a
1 changed files with 17 additions and 1 deletions
|
|
@ -1207,7 +1207,7 @@ BrowserGlue.prototype = {
|
|||
},
|
||||
|
||||
_migrateUI: function BG__migrateUI() {
|
||||
const UI_VERSION = 18;
|
||||
const UI_VERSION = 19;
|
||||
const BROWSER_DOCURL = "chrome://browser/content/browser.xul#";
|
||||
let currentUIVersion = 0;
|
||||
try {
|
||||
|
|
@ -1426,6 +1426,22 @@ BrowserGlue.prototype = {
|
|||
catch (ex) {}
|
||||
}
|
||||
|
||||
#ifndef MOZ_JXR
|
||||
// Until JPEG-XR decoder is implemented (UXP #144)
|
||||
if (currentUIVersion < 19) {
|
||||
try {
|
||||
let ihaPref = "image.http.accept";
|
||||
let ihaValue = Services.prefs.getCharPref(ihaPref);
|
||||
if (ihaValue.includes("image/jxr,")) {
|
||||
Services.prefs.setCharPref(ihaPref, ihaValue.replace("image/jxr,", ""));
|
||||
} else if (ihaValue.includes("image/jxr")) {
|
||||
Services.prefs.clearUserPref(ihaPref);
|
||||
}
|
||||
}
|
||||
catch (ex) {}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Update the migration version.
|
||||
Services.prefs.setIntPref("browser.migration.version", UI_VERSION);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue