Closed Bug 1762375 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 33353 - [dPWA] Sub Apps - add code for remove() API

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(firefox101 fixed)

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

(Depends on 1 open bug, )

Details

(Whiteboard: [wptsync downstream])

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

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

Ivan Šandrk <isandrk@chromium.org> wrote:

[dPWA] Sub Apps - add code for remove() API

This CL adds the functionality for removing sub-apps that were added by
the parent app that is calling the API.

Sub Apps API enables PWAs to create multiple launch icons with distinct
names.

Design doc: go/multi-apps

Bug: 1171317
Change-Id: Ic518edccb91162a42f5c409456db6becc961283f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3307049
Reviewed-by: Jeremy Roman \<jbroman@chromium.org>
Reviewed-by: Robert Sesek \<rsesek@chromium.org>
Reviewed-by: Phillis Tang \<phillis@chromium.org>
Reviewed-by: Daniel Murphy \<dmurph@chromium.org>
Commit-Queue: Ivan Šandrk \<isandrk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#987396}

CI Results

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

Total 3 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS : 13
FAIL : 22
ERROR: 2

Chrome

OK : 1
PASS : 13
FAIL : 22
ERROR: 2

Safari

OK : 1
PASS : 13
FAIL : 22
ERROR: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

/subapps/idlharness.tentative.https.window.html
SubApps interface: existence and properties of interface object: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface object length: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface object name: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: existence and properties of interface prototype object: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: existence and properties of interface prototype object's "constructor" property: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: existence and properties of interface prototype object's @@unscopables property: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: operation add(DOMString): FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: operation list(): FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: operation remove(DOMString): FAIL (Chrome: FAIL, Safari: FAIL)
SubApps must be primary interface of navigator.subApps: FAIL (Chrome: FAIL, Safari: FAIL)
Stringification of navigator.subApps: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: navigator.subApps must inherit property "add(DOMString)" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: calling add(DOMString) on navigator.subApps with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: navigator.subApps must inherit property "list()" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: navigator.subApps must inherit property "remove(DOMString)" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
SubApps interface: calling remove(DOMString) on navigator.subApps with too few arguments must throw TypeError: FAIL (Chrome: FAIL, Safari: FAIL)
Navigator interface: attribute subApps: FAIL (Chrome: FAIL, Safari: FAIL)
Navigator interface: navigator must inherit property "subApps" with the proper type: FAIL (Chrome: FAIL, Safari: FAIL)
/subapps/remove-error.tentative.https.html: ERROR (Chrome: ERROR, Safari: ERROR)
The object is no longer associated to a document.: FAIL (Chrome: FAIL, Safari: FAIL)
API is only supported in top-level browsing contexts.: FAIL (Chrome: FAIL, Safari: FAIL)
Remove call failed.: FAIL (Chrome: FAIL, Safari: FAIL)
/subapps/remove-success.tentative.https.html: ERROR (Chrome: ERROR, Safari: ERROR)
Remove API call works.: FAIL (Chrome: FAIL, Safari: FAIL)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a79701bed981
[wpt PR 33353] - [dPWA] Sub Apps - add code for remove() API, a=testonly
https://hg.mozilla.org/integration/autoland/rev/60f64b33c6c1
[wpt PR 33353] - Update wpt metadata, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.