Bug 1775194 - disable reporting API r=ckerschb,emilio,freddyb

This disables the outdated, incorrect implementation of the
Reporting API. The current implementation was only enabled
on Nightly builds, but given its current state it does not
even make sense there.

Differential Revision: https://phabricator.services.mozilla.com/D149873
This commit is contained in:
Frederik Braun 2022-11-16 08:35:58 +00:00
parent c0c6c42c51
commit 2248137774
7 changed files with 4 additions and 102 deletions

View file

@ -297,12 +297,6 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
"ReadableStreamDefaultReader",
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Report", nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportBody", nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportingObserver", nightly: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
"Request",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Response",

View file

@ -333,8 +333,6 @@ let interfaceNamesInGlobalScope = [
// 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!
{ name: "DeviceMotionEvent", insecureContext: true },
@ -955,12 +953,6 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultReader", 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!
{ name: "ResizeObserver", insecureContext: true },

View file

@ -285,12 +285,6 @@ let interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReadableStreamDefaultReader", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Report", nightly: true, insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportBody", nightly: true, insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "ReportingObserver", nightly: true, insecureContext: 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!
{ name: "Response", insecureContext: true },

View file

@ -3348,7 +3348,7 @@
# Reporting API.
- name: dom.reporting.enabled
type: RelaxedAtomicBool
value: @IS_NIGHTLY_BUILD@
value: false
mirror: always
- name: dom.reporting.testing.enabled

View file

@ -74,6 +74,8 @@ user_pref("layout.css.prefers-color-scheme.content-override", 1);
// Force OffscreenCanvas support
user_pref("gfx.offscreencanvas.enabled", true);
user_pref("dom.workers.requestAnimationFrame", true);
// A lot of tests use the Reporting API for observing things
user_pref("dom.reporting.enabled", true);
user_pref("layout.css.font-loading-api.workers.enabled", true);
// Enable WebDriver BiDi experimental commands and events during tests.
user_pref("remote.experimental.enabled", true);

View file

@ -1,76 +1,4 @@
[idlharness.any.html]
[DeprecationReportBody interface object name]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute anticipatedRemoval]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute columnNumber]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and fission: [PASS, FAIL]
if (os == "linux") and not debug and not fission: [PASS, FAIL]
[DeprecationReportBody interface object length]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and fission: [PASS, FAIL]
if (os == "linux") and not debug and not fission: [PASS, FAIL]
[DeprecationReportBody interface: existence and properties of interface prototype object's "constructor" property]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: existence and properties of interface prototype object]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute message]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: existence and properties of interface object]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute sourceFile]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: existence and properties of interface prototype object's @@unscopables property]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and not fission: [PASS, FAIL]
if (os == "linux") and not debug and fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute lineNumber]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and fission: [PASS, FAIL]
if (os == "linux") and not debug and not fission: [PASS, FAIL]
[DeprecationReportBody interface: attribute id]
expected:
if release_or_beta: FAIL
if (os == "linux") and not debug and fission: [PASS, FAIL]
if (os == "linux") and not debug and not fission: [PASS, FAIL]
[DeprecationReportBody interface: operation toJSON()]
expected: FAIL

View file

@ -1,11 +1,3 @@
[document-write-reporting-tentative.html]
expected:
if release_or_beta: ERROR
if (os == "linux") and not debug and not fission: [OK, ERROR]
if (os == "linux") and not debug and fission: [OK, ERROR]
[Document-write Report Format]
expected:
if release_or_beta: NOTRUN
if (os == "linux") and not debug and not fission: [FAIL, NOTRUN]
if (os == "linux") and not debug and fission: [FAIL, NOTRUN]
FAIL
expected: FAIL