From ed66410ca18841b8651e1f84774d465ff3465c86 Mon Sep 17 00:00:00 2001 From: Andrea Marchesini Date: Thu, 15 Nov 2018 11:15:58 +0100 Subject: [PATCH 1/2] Bug 1507144 - Enable reporting API by default in nightly only, r=smaug --- dom/tests/mochitest/general/test_interfaces.js | 10 ++++++++++ modules/libpref/init/StaticPrefList.h | 16 ++++++++++++++-- testing/web-platform/meta/cors/__dir__.ini | 1 + .../meta/network-error-logging/__dir__.ini | 1 + .../reports-are-not-observable.https.html.ini | 3 --- 5 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 testing/web-platform/meta/cors/__dir__.ini create mode 100644 testing/web-platform/meta/network-error-logging/__dir__.ini diff --git a/dom/tests/mochitest/general/test_interfaces.js b/dom/tests/mochitest/general/test_interfaces.js index c094daaec268..13460e99a852 100644 --- a/dom/tests/mochitest/general/test_interfaces.js +++ b/dom/tests/mochitest/general/test_interfaces.js @@ -284,6 +284,8 @@ var interfaceNamesInGlobalScope = {name: "DataTransferItemList", insecureContext: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "DelayNode", insecureContext: true}, +// IMPORTANT: Do not change this list without review from a DOM peer! + {name: "DeprecationReportBody", insecureContext: true, nightly: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "DeviceLightEvent", insecureContext: true, disabled: true}, // IMPORTANT: Do not change this list without review from a DOM peer! @@ -348,6 +350,8 @@ var interfaceNamesInGlobalScope = {name: "EventSource", insecureContext: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "EventTarget", insecureContext: true}, +// IMPORTANT: Do not change this list without review from a DOM peer! + {name: "FeaturePolicyViolationReportBody", insecureContext: true, nightly: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "File", insecureContext: true}, // IMPORTANT: Do not change this list without review from a DOM peer! @@ -822,6 +826,12 @@ var interfaceNamesInGlobalScope = {name: "RadioNodeList", insecureContext: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "Range", insecureContext: true}, +// IMPORTANT: Do not change this list without review from a DOM peer! + {name: "Report", insecureContext: true, nightly: true}, +// IMPORTANT: Do not change this list without review from a DOM peer! + {name: "ReportBody", insecureContext: true, nightly: true}, +// IMPORTANT: Do not change this list without review from a DOM peer! + {name: "ReportingObserver", insecureContext: true, nightly: true}, // IMPORTANT: Do not change this list without review from a DOM peer! {name: "Request", insecureContext: true}, // IMPORTANT: Do not change this list without review from a DOM peer! diff --git a/modules/libpref/init/StaticPrefList.h b/modules/libpref/init/StaticPrefList.h index a335eae8f37a..9e8cff8800b4 100644 --- a/modules/libpref/init/StaticPrefList.h +++ b/modules/libpref/init/StaticPrefList.h @@ -1812,11 +1812,17 @@ VARCACHE_PREF( // Reporting API //--------------------------------------------------------------------------- +#ifdef NIGHTLY_BUILD +# define PREF_VALUE true +#else +# define PREF_VALUE false +#endif VARCACHE_PREF( "dom.reporting.enabled", dom_reporting_enabled, - RelaxedAtomicBool, false + RelaxedAtomicBool, PREF_VALUE ) +#undef PREF_VALUE VARCACHE_PREF( "dom.reporting.testing.enabled", @@ -1824,11 +1830,17 @@ VARCACHE_PREF( RelaxedAtomicBool, false ) +#ifdef NIGHTLY_BUILD +# define PREF_VALUE true +#else +# define PREF_VALUE false +#endif VARCACHE_PREF( "dom.reporting.featurePolicy.enabled", dom_reporting_featurePolicy_enabled, - RelaxedAtomicBool, false + RelaxedAtomicBool, PREF_VALUE ) +#undef PREF_VALUE //--------------------------------------------------------------------------- // End of prefs diff --git a/testing/web-platform/meta/cors/__dir__.ini b/testing/web-platform/meta/cors/__dir__.ini new file mode 100644 index 000000000000..b67beb8e5159 --- /dev/null +++ b/testing/web-platform/meta/cors/__dir__.ini @@ -0,0 +1 @@ +prefs: [dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true] diff --git a/testing/web-platform/meta/network-error-logging/__dir__.ini b/testing/web-platform/meta/network-error-logging/__dir__.ini new file mode 100644 index 000000000000..b67beb8e5159 --- /dev/null +++ b/testing/web-platform/meta/network-error-logging/__dir__.ini @@ -0,0 +1 @@ +prefs: [dom.reporting.enabled:true, dom.reporting.featurePolicy.enabled:true] diff --git a/testing/web-platform/meta/network-error-logging/reports-are-not-observable.https.html.ini b/testing/web-platform/meta/network-error-logging/reports-are-not-observable.https.html.ini index 34a8bbe61b6f..9ea50cb34c29 100644 --- a/testing/web-platform/meta/network-error-logging/reports-are-not-observable.https.html.ini +++ b/testing/web-platform/meta/network-error-logging/reports-are-not-observable.https.html.ini @@ -2,6 +2,3 @@ [Test that NEL reports are not observable from JavaScript] expected: FAIL - [\n Test that NEL reports are not observable from JavaScript\n ] - expected: FAIL - From 6677a73f3685ad9e9cc93108471f92c270e92448 Mon Sep 17 00:00:00 2001 From: Cosmin Sabou Date: Thu, 15 Nov 2018 12:49:06 +0200 Subject: [PATCH 2/2] Bug 1503525 - Disable svg/outline.html on Linux and OSX debug for frequent failures. r=jmaher --- layout/reftests/svg/reftest.list | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/reftests/svg/reftest.list b/layout/reftests/svg/reftest.list index 667a2d430e02..9849518f7571 100644 --- a/layout/reftests/svg/reftest.list +++ b/layout/reftests/svg/reftest.list @@ -324,7 +324,7 @@ fuzzy-if(/^Windows\x20NT\x2010\.0/.test(http.oscpu)||skiaContent,0-1,0-10000) == fuzzy-if(Android,0-8,0-200) == outer-svg-border-and-padding-01.svg outer-svg-border-and-padding-01-ref.svg -fuzzy-if(skiaContent,0-7,0-175) fuzzy-if(webrender,54-54,124-124) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) == outline.html outline-ref.html # Bug 1392106 +fuzzy-if(skiaContent,0-7,0-175) fuzzy-if(webrender,54-54,124-124) random-if(/^Windows\x20NT\x206\.1/.test(http.oscpu)) skip-if(gtkWidget) skip-if(cocoaWidget&&isDebugBuild) == outline.html outline-ref.html # Bug 1392106, Bug 1503525 == overflow-on-outer-svg-01.svg overflow-on-outer-svg-01-ref.svg == overflow-on-outer-svg-02a.xhtml overflow-on-outer-svg-02-ref.xhtml