Bug 1775194 - disable reporting API r=ckerschb,emilio

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-06-30 10:41:48 +00:00
Родитель be05f1a775
Коммит 9861c6626a
9 изменённых файлов: 5 добавлений и 145 удалений

Просмотреть файл

@ -273,12 +273,6 @@ var 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",

Просмотреть файл

@ -332,8 +332,6 @@ var 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 },
@ -967,12 +965,6 @@ var 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 },

Просмотреть файл

@ -273,12 +273,6 @@ var 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 },

Просмотреть файл

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

Просмотреть файл

Просмотреть файл

@ -1,116 +0,0 @@
[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
[idlharness.any.worker.html]
[DeprecationReportBody interface object name]
expected: FAIL
[DeprecationReportBody interface: attribute anticipatedRemoval]
expected: FAIL
[DeprecationReportBody interface: attribute columnNumber]
expected: FAIL
[DeprecationReportBody interface object length]
expected: FAIL
[DeprecationReportBody interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[DeprecationReportBody interface: existence and properties of interface prototype object]
expected: FAIL
[DeprecationReportBody interface: attribute message]
expected: FAIL
[DeprecationReportBody interface: existence and properties of interface object]
expected: FAIL
[DeprecationReportBody interface: attribute sourceFile]
expected: FAIL
[DeprecationReportBody interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[DeprecationReportBody interface: attribute lineNumber]
expected: FAIL
[DeprecationReportBody interface: attribute id]
expected: FAIL
[DeprecationReportBody interface: operation toJSON()]
expected: FAIL

Просмотреть файл

@ -1 +1,2 @@
prefs: [dom.reporting.enabled:true]
leak-threshold: [default:51200]

Просмотреть файл

@ -1,3 +1,3 @@
prefs: [browser.tabs.remote.useCrossOriginEmbedderPolicy:true]
prefs: [browser.tabs.remote.useCrossOriginEmbedderPolicy:true, dom.reporting.enabled:true]
lsan-allowed: [Alloc, Malloc, Then, mozilla::BasePrincipal::CreateContentPrincipal, mozilla::dom::DocGroup::Create, mozilla::dom::ServiceWorkerJobQueue::RunJob, mozilla::dom::ServiceWorkerManager::Unregister, mozilla::dom::ServiceWorkerRegistrationMainThread::Unregister, mozilla::dom::UnregisterCallback::UnregisterCallback, mozilla::net::nsStandardURL::TemplatedMutator, operator]
leak-threshold: [tab:1331200]

Просмотреть файл

@ -1,9 +1,4 @@
prefs: [dom.reporting.enabled:true]
[workers-coep-report.https.html]
expected:
if release_or_beta: ERROR
[Multiple globals for Worker constructor: COEP reports]
expected:
if release_or_beta: TIMEOUT
FAIL
expected: FAIL