From 48d31ea5ebe2a4901fcb542e1e48b6fd6b67d64c Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 7 Aug 2020 21:15:52 +0000 Subject: Pref and disable getRootNode() This is apparently used for fallback selection and if available it is "assumed" Shadow DOM is also available, while this is a utility function. Webcompat is a nightmare sometimes. --- modules/libpref/init/all.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/libpref/init/all.js') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index c8af46e1d..8cfa63032 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4739,6 +4739,8 @@ pref("dom.push.enabled", false); pref("dom.push.loglevel", "error"); +pref("dom.getRootNode.enabled", false); + pref("dom.push.serverURL", "wss://push.services.mozilla.com/"); pref("dom.push.userAgentID", ""); -- cgit v1.2.3 From 0bbe6ec10589b8540aa86200bf2b209ad4e563ba Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 4 Aug 2020 13:54:01 -0700 Subject: Issue #1620 - Use Intrinsic Aspect Ratio for Images (uplift) --- modules/libpref/init/all.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/libpref/init/all.js') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 8cfa63032..21203552b 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4814,6 +4814,12 @@ pref("media.ondevicechange.fakeDeviceChangeEvent.enabled", false); // those platforms we don't handle touch events anyway so it's conceptually // a no-op. pref("layout.css.touch_action.enabled", true); + +// WHATWG computed intrinsic aspect ratio for an img element +// https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images +// Are the width and height attributes on image-like elements mapped to the +// internal-for-now aspect-ratio property? +pref("layout.css.width-and-height-map-to-aspect-ratio.enabled", false); // Enables some assertions in nsStyleContext that are too expensive // for general use, but might be useful to enable for specific tests. -- cgit v1.2.3 From bf95a03189d74d118d149b49ac5f45a134683fd6 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 7 Aug 2020 14:32:59 -0700 Subject: Issue #1620 - Enable Intrinsic Ratio by Default A simpler name feels so much cleaner. --- modules/libpref/init/all.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/libpref/init/all.js') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 21203552b..60851e55e 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -4819,7 +4819,7 @@ pref("layout.css.touch_action.enabled", true); // https://html.spec.whatwg.org/multipage/rendering.html#attributes-for-embedded-content-and-images // Are the width and height attributes on image-like elements mapped to the // internal-for-now aspect-ratio property? -pref("layout.css.width-and-height-map-to-aspect-ratio.enabled", false); +pref("layout.css.intrinsic-aspect-ratio.enabled", true); // Enables some assertions in nsStyleContext that are too expensive // for general use, but might be useful to enable for specific tests. -- cgit v1.2.3 From a4780ebaeb123ce9c793b85bb38a1701fad8f7ac Mon Sep 17 00:00:00 2001 From: Moonchild Date: Sun, 30 Aug 2020 09:29:45 +0000 Subject: Issue #1629 - Uplift implementation of behavior for stylesheets. --- modules/libpref/init/all.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/libpref/init/all.js') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 60851e55e..7dbeec54a 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -1185,6 +1185,14 @@ pref("dom.storage.default_quota", 5120); pref("dom.send_after_paint_to_content", false); +// Whether the disabled attribute in HTMLLinkElement disables the sheet loading +// altogether, or forwards to the inner stylesheet method without attribute +// reflection. +// +// Historical behavior is the second, the first is being discussed at: +// https://github.com/whatwg/html/issues/3840 +pref("dom.link.disabled_attribute.enabled", true); + // Timeout clamp in ms for timeouts we clamp pref("dom.min_timeout_value", 4); // And for background windows -- cgit v1.2.3 From 549c8b9283314fb98ee6f6068ad55f1ab38f7c5f Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 28 Aug 2020 06:46:12 +0000 Subject: [media] Only include source error details in debugging scenarios. Unless a user is debugging media errors, this detail is unnecessary to report and could include sensitive data which could be abused by third-party requesters. This aligns it with the standard success/error paradigms in normal browsing situations. --- modules/libpref/init/all.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/libpref/init/all.js') diff --git a/modules/libpref/init/all.js b/modules/libpref/init/all.js index 7dbeec54a..672f18e22 100644 --- a/modules/libpref/init/all.js +++ b/modules/libpref/init/all.js @@ -5446,3 +5446,11 @@ pref("prompts.authentication_dialog_abuse_limit", 0); // Whether module scripts (