Bug 1750515 - Enable NavigationPreload API on Nightly. r=dom-worker-reviewers,smaug

Depends on D137599

Differential Revision: https://phabricator.services.mozilla.com/D136215
This commit is contained in:
Eden Chuang 2022-02-09 07:14:26 +00:00
Родитель 7e7901fca2
Коммит b7678a86ba
5 изменённых файлов: 103 добавлений и 49 удалений

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

@ -226,6 +226,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "NetworkInformation", android: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
"NavigationPreloadManager",
// IMPORTANT: Do not change this list without review from a DOM peer!
"Notification",
// IMPORTANT: Do not change this list without review from a DOM peer!
"NotificationEvent",

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

@ -797,6 +797,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "NamedNodeMap", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
"NavigationPreloadManager",
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Navigator", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "NetworkInformation", insecureContext: true, desktop: false },

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

@ -225,6 +225,8 @@ var interfaceNamesInGlobalScope = [
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "MessagePort", insecureContext: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
"NavigationPreloadManager",
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "NetworkInformation", insecureContext: true, android: true },
// IMPORTANT: Do not change this list without review from a DOM peer!
{ name: "Notification", insecureContext: true },

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

@ -3397,7 +3397,7 @@
- name: dom.serviceWorkers.navigationPreload.enabled
type: RelaxedAtomicBool
value: false
value: @IS_NIGHTLY_BUILD@
mirror: always
# Mitigates ServiceWorker navigation faults by bypassing the ServiceWorker on

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

@ -42,7 +42,8 @@
expected: FAIL
[NavigationPreloadManager interface: operation enable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions)]
expected: FAIL
@ -54,10 +55,12 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface object length]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: attribute onstatechange]
expected: FAIL
@ -66,10 +69,12 @@
expected: FAIL
[NavigationPreloadManager interface: operation setHeaderValue(ByteString)]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError]
expected: FAIL
@ -99,13 +104,15 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface object]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: operation postMessage(any, sequence<object>)]
expected: FAIL
[NavigationPreloadManager interface: operation disable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: attribute controller]
expected: FAIL
@ -114,13 +121,16 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerRegistration interface: attribute navigationPreload]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation getState()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
@ -129,7 +139,8 @@
expected: FAIL
[NavigationPreloadManager interface object name]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: attribute scriptURL]
expected: FAIL
@ -200,7 +211,8 @@
expected: FAIL
[NavigationPreloadManager interface: operation enable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions)]
expected: FAIL
@ -212,10 +224,12 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface object length]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: attribute onstatechange]
expected: FAIL
@ -224,10 +238,12 @@
expected: FAIL
[NavigationPreloadManager interface: operation setHeaderValue(ByteString)]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError]
expected: FAIL
@ -257,13 +273,15 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface object]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: operation postMessage(any, sequence<object>)]
expected: FAIL
[NavigationPreloadManager interface: operation disable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: attribute controller]
expected: FAIL
@ -272,13 +290,16 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerRegistration interface: attribute navigationPreload]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation getState()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
@ -287,7 +308,8 @@
expected: FAIL
[NavigationPreloadManager interface object name]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: attribute scriptURL]
expected: FAIL
@ -316,43 +338,55 @@
[idlharness.https.any.html]
[NavigationPreloadManager interface object length]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation enable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerRegistration interface: attribute navigationPreload]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation setHeaderValue(ByteString)]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not nightly_build: FAIL
[CacheStorage interface object length]
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface object]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation disable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerRegistration interface: registrationInstance must inherit property "navigationPreload" with the proper type]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation getState()]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface object name]
expected: FAIL
expected:
if not nightly_build: FAIL
[idlharness.https.any.serviceworker.html]
@ -387,7 +421,8 @@
expected: FAIL
[NavigationPreloadManager interface object length]
expected: FAIL
expected:
if not nightly_build: FAIL
[Stringification of serviceWorker]
expected: FAIL
@ -411,7 +446,8 @@
expected: FAIL
[NavigationPreloadManager interface: operation enable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions)]
expected: FAIL
@ -423,16 +459,19 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerRegistration interface: attribute navigationPreload]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker interface: serviceWorker must inherit property "state" with the proper type]
expected: FAIL
[NavigationPreloadManager interface: operation setHeaderValue(ByteString)]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorker must be primary interface of serviceWorker]
expected: FAIL
@ -441,7 +480,8 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError]
expected: FAIL
@ -465,10 +505,12 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface object]
expected: FAIL
expected:
if not nightly_build: FAIL
[NavigationPreloadManager interface: operation disable()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: attribute controller]
expected: FAIL
@ -480,31 +522,36 @@
expected: FAIL
[NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
expected:
if not nightly_build: FAIL
[CacheStorage interface object length]
expected: FAIL
[ServiceWorkerRegistration interface: registration must inherit property "navigationPreload" with the proper type]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerGlobalScope interface: attribute serviceWorker]
expected: FAIL
[NavigationPreloadManager interface: operation getState()]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "register(USVString, optional RegistrationOptions)" with the proper type]
expected: FAIL
[NavigationPreloadManager interface object name]
expected: FAIL
expected:
if not nightly_build: FAIL
[WindowClient interface: attribute ancestorOrigins]
expected: FAIL
[FetchEvent interface: attribute preloadResponse]
expected: FAIL
expected:
if not nightly_build: FAIL
[ServiceWorkerContainer must be primary interface of navigator.serviceWorker]
expected: FAIL
@ -519,7 +566,8 @@
expected: FAIL
[FetchEvent interface: new FetchEvent("type", { request: new Request("") }) must inherit property "preloadResponse" with the proper type]
expected: FAIL
expected:
if not nightly_build: FAIL
[FetchEvent interface: new FetchEvent("type", { request: new Request("") }) must inherit property "replacesClientId" with the proper type]
expected: FAIL