From 4319edc1a68820d62b9748a53b024cfe1ff9457c Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 22 Dec 2018 15:02:49 +0100 Subject: Re-enable intersection observers with WD spec patches. This resolves #249 --- modules/libpref/init/all.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index a841bde55..43d4b093c 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -212,8 +212,8 @@ pref("dom.enable_performance_observer", false); pref("dom.requestIdleCallback.enabled", true); // Enable Intersection Observers -// See WD https://w3c.github.io/IntersectionObserver/ -pref("dom.IntersectionObserver.enabled", false); +// See WD https://www.w3.org/TR/intersection-observer/ +pref("dom.IntersectionObserver.enabled", true); // Whether the Gamepad API is enabled pref("dom.gamepad.enabled", true); -- cgit v1.2.3 From 202e78b731776c3a102ca2f465ed3864b27effd3 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Mon, 24 Dec 2018 05:06:54 +0100 Subject: Add performance warnings to Deprecated module. Adds a dedicated handler for performance warnings to be logged to consoles if known performance-impacting methods are called. Search service init is changed from a deprecation warning to a performance warning for synchronous init. This also re-enables the warning for the Basilisk & Co. search service initialization which was previously removed in [a930a79] See also the discussion on #916. --- modules/libpref/init/all.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 43d4b093c..f6a993962 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -956,6 +956,9 @@ pref("toolkit.asyncshutdown.log", false); // Enable deprecation warnings. pref("devtools.errorconsole.deprecation_warnings", true); +// Enable performance warnings. +pref("devtools.errorconsole.performance_warnings", true); + // Disable debugging chrome pref("devtools.chrome.enabled", false); -- cgit v1.2.3 From 3afb818f20be5029c55c431ad25721e2404bff2d Mon Sep 17 00:00:00 2001 From: Ascrod <32915892+Ascrod@users.noreply.github.com> Date: Wed, 16 Jan 2019 19:33:09 -0500 Subject: Add preference for fully disabling HSTS. --- modules/libpref/init/all.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f6a993962..21e36bf16 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -2038,6 +2038,8 @@ pref("network.proxy.autoconfig_url.include_path", false); pref("network.proxy.autoconfig_retry_interval_min", 5); // 5 seconds pref("network.proxy.autoconfig_retry_interval_max", 300); // 5 minutes +// Master switch for HSTS usage (security <-> privacy tradeoff) +pref("network.stricttransportsecurity.enabled", true); // Use the HSTS preload list by default pref("network.stricttransportsecurity.preloadlist", true); -- cgit v1.2.3 From ac1beef5c10a114afe18897d5d3ced24ac378b92 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 19 Jan 2019 11:18:41 +0100 Subject: Disable IntersectionObserver API because of crashes. See #934 and #935. --- modules/libpref/init/all.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 21e36bf16..443fb3def 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -213,7 +213,8 @@ pref("dom.requestIdleCallback.enabled", true); // Enable Intersection Observers // See WD https://www.w3.org/TR/intersection-observer/ -pref("dom.IntersectionObserver.enabled", true); +// Disabled for now because of crashes. See #934 and #935 +pref("dom.IntersectionObserver.enabled", false); // Whether the Gamepad API is enabled pref("dom.gamepad.enabled", true); -- cgit v1.2.3 From 5ef0018a5685d4fef77bd714208efdf86aae85b1 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 19 Jan 2019 16:26:35 +0100 Subject: Revert "Disable IntersectionObserver API because of crashes." This reverts commit ac1beef5c10a114afe18897d5d3ced24ac378b92. --- modules/libpref/init/all.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 443fb3def..21e36bf16 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -213,8 +213,7 @@ pref("dom.requestIdleCallback.enabled", true); // Enable Intersection Observers // See WD https://www.w3.org/TR/intersection-observer/ -// Disabled for now because of crashes. See #934 and #935 -pref("dom.IntersectionObserver.enabled", false); +pref("dom.IntersectionObserver.enabled", true); // Whether the Gamepad API is enabled pref("dom.gamepad.enabled", true); -- cgit v1.2.3 From 9a954e2d1619788f658f6ec30c7dbd89b3d48b0d Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 19 Jan 2019 22:06:35 +0100 Subject: Properly camelCase dom.intersectionObserver.enabled pref. --- modules/libpref/init/all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 21e36bf16..3e1dc47ef 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -213,7 +213,7 @@ pref("dom.requestIdleCallback.enabled", true); // Enable Intersection Observers // See WD https://www.w3.org/TR/intersection-observer/ -pref("dom.IntersectionObserver.enabled", true); +pref("dom.intersectionObserver.enabled", true); // Whether the Gamepad API is enabled pref("dom.gamepad.enabled", true); -- cgit v1.2.3 From 278eda6a09e9177678d57a2da2b6a8ddcb503b1c Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 31 Jan 2019 14:55:30 +0100 Subject: Set incremental GC slice to 20 ms duration --- modules/libpref/init/all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 3e1dc47ef..f6e90170e 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1291,7 +1291,7 @@ pref("javascript.options.mem.high_water_mark", 128); pref("javascript.options.mem.max", -1); pref("javascript.options.mem.gc_per_zone", true); pref("javascript.options.mem.gc_incremental", true); -pref("javascript.options.mem.gc_incremental_slice_ms", 10); +pref("javascript.options.mem.gc_incremental_slice_ms", 20); pref("javascript.options.mem.gc_generational", true); pref("javascript.options.mem.gc_compacting", true); pref("javascript.options.mem.log", false); -- cgit v1.2.3 From a6ddde9097fbef2940c6a4f785dae15978ef2533 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 14 Feb 2019 16:59:52 +0100 Subject: Port several Skia upstream fixes. --- modules/libpref/init/all.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f6e90170e..9bdd00c80 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -795,8 +795,6 @@ pref("gfx.content.azure.backends", "direct2d1.1,cairo"); #ifdef XP_MACOSX pref("gfx.content.azure.backends", "cg"); pref("gfx.canvas.azure.backends", "skia,cg"); -// Accelerated cg canvas where available (10.7+) -pref("gfx.canvas.azure.accelerated", true); #else // Linux etc. pref("gfx.canvas.azure.backends", "skia,cairo"); -- cgit v1.2.3 From c13bd1bba28a71d0a2263882b3c72d59a8c32478 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sun, 17 Feb 2019 14:54:12 +0100 Subject: Revert "Port several Skia upstream fixes." This reverts commit 260b06c1c96285459947231a93f08e413be89dd0. This fixes #976 --- modules/libpref/init/all.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 9bdd00c80..f6e90170e 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -795,6 +795,8 @@ pref("gfx.content.azure.backends", "direct2d1.1,cairo"); #ifdef XP_MACOSX pref("gfx.content.azure.backends", "cg"); pref("gfx.canvas.azure.backends", "skia,cg"); +// Accelerated cg canvas where available (10.7+) +pref("gfx.canvas.azure.accelerated", true); #else // Linux etc. pref("gfx.canvas.azure.backends", "skia,cairo"); -- cgit v1.2.3 From c08b490c5c44f5f04049f408ad0848e9843f0702 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 28 Feb 2019 13:58:23 +0100 Subject: Move default-enable pref to application. --- modules/libpref/init/all.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index f6e90170e..3666ca425 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -5451,8 +5451,9 @@ pref("dom.storageManager.enabled", true); pref("dom.storageManager.enabled", false); #endif -// When a user cancels this number of authentication dialogs coming from -// a single web page in a row, all following authentication dialogs will -// be blocked (automatically canceled) for that page. The counter resets -// when the page is reloaded. To turn this feature off, just set the limit to 0. -pref("prompts.authentication_dialog_abuse_limit", 3); +// DoS protection for HTTP Auth prompt spawning. +// -1 = completely disable HTTP Auth prompting. (careful!) +// 0 = disable this DoS protection +// >0 = suppress further prompts after the user has canceled the dialog n times +// See application preferences for appropriate defaults. +pref("prompts.authentication_dialog_abuse_limit", 0); -- cgit v1.2.3 From d38ddd92e159113aae22c4dc8f03dc2285e01b14 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Thu, 7 Mar 2019 12:45:54 +0100 Subject: Part 1: network component changes. --- modules/libpref/init/all.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/libpref/init') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 3666ca425..4111ca8a9 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1474,7 +1474,10 @@ pref("network.http.request.max-start-delay", 10); pref("network.http.request.max-attempts", 10); // Headers -pref("network.http.accept.default", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); +pref("network.http.accept.default", "*/*"); +pref("network.http.accept.navigation", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"); +pref("network.http.accept.image", "image/png,image/svg+xml,image/*;q=0.8,*/*;q=0.5"); +pref("network.http.accept.style", "text/css,*/*;q=0.1"); // Prefs allowing granular control of referers // 0=don't send any, 1=send only on clicks, 2=send on image requests as well -- cgit v1.2.3