summaryrefslogtreecommitdiffstats
path: root/modules/libpref/init/all.js
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2018-02-03 08:48:48 -0500
committerMatt A. Tobin <email@mattatobin.com>2018-02-03 08:48:48 -0500
commitc6856f968b8c85502f14c6c3412b00a05fc0c0de (patch)
treec0720fdf31018c72fcb69134f2e9667d16970c3a /modules/libpref/init/all.js
parent36f73c8cd27e62cbd3e85939d6fe11a240e3416f (diff)
parent1e1fb5ea2504e548bc17521bdb273c9e59b9cf01 (diff)
downloadUXP-c6856f968b8c85502f14c6c3412b00a05fc0c0de.tar
UXP-c6856f968b8c85502f14c6c3412b00a05fc0c0de.tar.gz
UXP-c6856f968b8c85502f14c6c3412b00a05fc0c0de.tar.lz
UXP-c6856f968b8c85502f14c6c3412b00a05fc0c0de.tar.xz
UXP-c6856f968b8c85502f14c6c3412b00a05fc0c0de.zip
Merge branch 'master' into configurebuild-work
Diffstat (limited to 'modules/libpref/init/all.js')
-rw-r--r--modules/libpref/init/all.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js
index 0a92c6d17..321299822 100644
--- a/modules/libpref/init/all.js
+++ b/modules/libpref/init/all.js
@@ -4397,7 +4397,7 @@ pref("image.decode-immediately.enabled", false);
pref("image.downscale-during-decode.enabled", true);
// The default Accept header sent for images loaded over HTTP(S)
-pref("image.http.accept", "*/*");
+pref("image.http.accept", "image/webp,image/png,image/*;q=0.8,*/*;q=0.5");
// The threshold for inferring that changes to an <img> element's |src|
// attribute by JavaScript represent an animation, in milliseconds. If the |src|
@@ -4445,6 +4445,9 @@ pref("image.mem.surfacecache.discard_factor", 1);
// automatically determined based on the system's number of cores.
pref("image.multithreaded_decoding.limit", -1);
+// Whether we attempt to decode WebP images or not.
+pref("image.webp.enabled", true);
+
// Limit for the canvas image cache. 0 means we don't limit the size of the
// cache.
pref("canvas.image.cache.limit", 0);