Closed Bug 1729252 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 30354 - ServiceWorker: Fix idlharness test bugs

Categories

(Core :: DOM: Service Workers, task, P4)

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 30354 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/30354
Details from upstream follow.

b'Jinho Bang <zino@chromium.org>' wrote:

ServiceWorker: Fix idlharness test bugs

The FetchEvent's constructor requires two arguments, but only one
present currently. So, this patch fixes the problem. After this change,
9 tests are greened.

Bug: none
Change-Id: I1deb1bdf95d3c2ae6dc144be053ea232f9ece2a6
Reviewed-on: https://chromium-review.googlesource.com/3140806
WPT-Export-Revision: e142a0b39c409bc42e4cf07bc10adcfd36c00e7d

Component: web-platform-tests → DOM: Service Workers
Product: Testing → Core

CI Results

Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 4 tests and 153 subtests

Status Summary

Firefox

OK : 4
PASS : 598
FAIL : 175

Chrome

OK : 4
PASS : 661
FAIL : 112

Safari

OK : 3
PASS : 524
FAIL : 96
ERROR: 1

Links

GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/service-workers/idlharness.https.any.serviceworker.html
CacheStorage interface object length: FAIL
/service-workers/idlharness.https.any.html
CacheStorage interface object length: FAIL
/service-workers/idlharness.https.any.worker.html
CacheStorage interface object length: FAIL

New Tests That Don't Pass

/service-workers/idlharness.https.any.sharedworker.html
ServiceWorker interface: existence and properties of interface object: FAIL (Chrome: FAIL)
ServiceWorker interface object length: FAIL (Chrome: FAIL)
ServiceWorker interface object name: FAIL (Chrome: FAIL)
ServiceWorker interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL)
ServiceWorker interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL)
ServiceWorker interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL)
ServiceWorker interface: attribute scriptURL: FAIL (Chrome: FAIL)
ServiceWorker interface: attribute state: FAIL (Chrome: FAIL)
ServiceWorker interface: operation postMessage(any, sequence<object>): FAIL (Chrome: FAIL)
ServiceWorker interface: operation postMessage(any, optional PostMessageOptions): FAIL (Chrome: FAIL)
ServiceWorker interface: attribute onstatechange: FAIL (Chrome: FAIL)
ServiceWorkerRegistration interface: attribute navigationPreload: FAIL (Chrome: PASS)
ServiceWorkerContainer interface: existence and properties of interface object: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface object length: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface object name: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: attribute controller: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: attribute ready: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions): FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: operation getRegistration(optional USVString): FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: operation getRegistrations(): FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: operation startMessages(): FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: attribute oncontrollerchange: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: attribute onmessage: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: attribute onmessageerror: FAIL (Chrome: FAIL)
ServiceWorkerContainer must be primary interface of navigator.serviceWorker: FAIL (Chrome: FAIL)
Stringification of navigator.serviceWorker: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "controller" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "ready" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "register(USVString, optional RegistrationOptions)" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: calling register(USVString, optional RegistrationOptions) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistration(optional USVString)" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistrations()" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "startMessages()" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "oncontrollerchange" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessage" with the proper type: FAIL (Chrome: FAIL)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessageerror" with the proper type: FAIL (Chrome: FAIL)
NavigationPreloadManager interface: existence and properties of interface object: FAIL (Chrome: PASS)
NavigationPreloadManager interface object length: FAIL (Chrome: PASS)
NavigationPreloadManager interface object name: FAIL (Chrome: PASS)
NavigationPreloadManager interface: existence and properties of interface prototype object: FAIL (Chrome: PASS)
NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS)
NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS)
NavigationPreloadManager interface: operation enable(): FAIL (Chrome: PASS)
NavigationPreloadManager interface: operation disable(): FAIL (Chrome: PASS)
NavigationPreloadManager interface: operation setHeaderValue(ByteString): FAIL (Chrome: PASS)
NavigationPreloadManager interface: operation getState(): FAIL (Chrome: PASS)
CacheStorage interface object length: FAIL (Chrome: PASS)
WorkerNavigator interface: attribute serviceWorker: FAIL (Chrome: FAIL)
/service-workers/idlharness.https.any.serviceworker.html
ServiceWorker must be primary interface of serviceWorker: FAIL (Chrome: PASS, Safari: FAIL)
Stringification of serviceWorker: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: serviceWorker must inherit property "scriptURL" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: serviceWorker must inherit property "state" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: serviceWorker must inherit property "postMessage(any, sequence<object>)" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: calling postMessage(any, sequence<object>) on serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: serviceWorker must inherit property "postMessage(any, optional PostMessageOptions)" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: calling postMessage(any, optional PostMessageOptions) on serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorker interface: serviceWorker must inherit property "onstatechange" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerRegistration interface: attribute navigationPreload: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerRegistration interface: registration must inherit property "navigationPreload" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerContainer interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface object length: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface object name: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: attribute controller: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: attribute ready: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions): FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: operation getRegistration(optional USVString): FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: operation getRegistrations(): FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: operation startMessages(): FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: attribute oncontrollerchange: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: attribute onmessage: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: attribute onmessageerror: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer must be primary interface of navigator.serviceWorker: FAIL (Chrome: FAIL, Safari: PASS)
Stringification of navigator.serviceWorker: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "controller" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "ready" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "register(USVString, optional RegistrationOptions)" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: calling register(USVString, optional RegistrationOptions) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistration(optional USVString)" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistrations()" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "startMessages()" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "oncontrollerchange" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessage" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessageerror" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
NavigationPreloadManager interface: existence and properties of interface object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object length: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object name: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation enable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation disable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation setHeaderValue(ByteString): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation getState(): FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerGlobalScope interface: attribute serviceWorker: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerGlobalScope interface: self must inherit property "serviceWorker" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
WindowClient interface: attribute ancestorOrigins: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent interface: attribute preloadResponse: FAIL (Chrome: PASS, Safari: FAIL)
FetchEvent interface: attribute replacesClientId: FAIL (Chrome: FAIL, Safari: FAIL)
FetchEvent interface: new FetchEvent("type", { request: new Request("") }) must inherit property "preloadResponse" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
FetchEvent interface: new FetchEvent("type", { request: new Request("") }) must inherit property "replacesClientId" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
CacheStorage interface object length: FAIL (Chrome: PASS, Safari: PASS)
WorkerNavigator interface: attribute serviceWorker: FAIL (Chrome: FAIL, Safari: PASS)
/service-workers/idlharness.https.any.html
ServiceWorkerRegistration interface: attribute navigationPreload: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerRegistration interface: registrationInstance must inherit property "navigationPreload" with the proper type: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object length: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object name: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation enable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation disable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation setHeaderValue(ByteString): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation getState(): FAIL (Chrome: PASS, Safari: FAIL)
CacheStorage interface object length: FAIL (Chrome: PASS, Safari: PASS)
/service-workers/idlharness.https.any.worker.html
ServiceWorker interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface object length: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface object name: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: attribute scriptURL: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: attribute state: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: operation postMessage(any, sequence<object>): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: operation postMessage(any, optional PostMessageOptions): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorker interface: attribute onstatechange: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerRegistration interface: attribute navigationPreload: FAIL (Chrome: PASS, Safari: FAIL)
ServiceWorkerContainer interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface object length: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface object name: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: attribute controller: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: attribute ready: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: operation register(USVString, optional RegistrationOptions): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: operation getRegistration(optional USVString): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: operation getRegistrations(): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: operation startMessages(): FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: attribute oncontrollerchange: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: attribute onmessage: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer interface: attribute onmessageerror: FAIL (Chrome: FAIL, Safari: FAIL)
ServiceWorkerContainer must be primary interface of navigator.serviceWorker: FAIL (Chrome: FAIL, Safari: FAIL)
Stringification of navigator.serviceWorker: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "controller" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "ready" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "register(USVString, optional RegistrationOptions)" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: calling register(USVString, optional RegistrationOptions) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistration(optional USVString)" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: calling getRegistration(optional USVString) on navigator.serviceWorker with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "getRegistrations()" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "startMessages()" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "oncontrollerchange" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessage" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
ServiceWorkerContainer interface: navigator.serviceWorker must inherit property "onmessageerror" with the proper type: FAIL (Chrome: FAIL, Safari: PASS)
NavigationPreloadManager interface: existence and properties of interface object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object length: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface object name: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation enable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation disable(): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation setHeaderValue(ByteString): FAIL (Chrome: PASS, Safari: FAIL)
NavigationPreloadManager interface: operation getState(): FAIL (Chrome: PASS, Safari: FAIL)
CacheStorage interface object length: FAIL (Chrome: PASS, Safari: PASS)
WorkerNavigator interface: attribute serviceWorker: FAIL (Chrome: FAIL, Safari: PASS)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/bc9ae51ba249
[wpt PR 30354] - ServiceWorker: Fix idlharness test bugs, a=testonly
https://hg.mozilla.org/integration/autoland/rev/ef4cff2a369d
[wpt PR 30354] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.