From 001fa09964e9121a62bd6150eccf917bd9466091 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 24 Jul 2017 13:29:29 +0200 Subject: Implement WebP image decoder. --- modules/libpref/init/all.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 72eb8524ee..7295124079 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4440,6 +4440,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); -- cgit v1.2.3 From fec770afd654ffd8f522b7b2c94043b31fc822cb Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 24 Jul 2017 14:19:48 +0200 Subject: Use proper image http accept header for content negotiation. --- modules/libpref/init/all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 7295124079..e1536933a0 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4392,7 +4392,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 element's |src| // attribute by JavaScript represent an animation, in milliseconds. If the |src| -- cgit v1.2.3