Closed Bug 2067664 Opened 3 months ago Closed 2 months ago

[wpt-sync] Sync PR 62234 - [WebInstall] Remove legacy install URL support from Web Install

Categories

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

task

Tracking

(firefox157 fixed)

RESOLVED FIXED
157 Branch
Tracking Status
firefox157 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Kristin Lee <kristinlee@microsoft.com> wrote:

[WebInstall] Remove legacy install URL support from Web Install

  • Remove navigator.install(install_url[, manifest_id]) overloads and
    WebInstallResult.manifestId.

  • Standard Web IDL dictionary semantics now ignore installurl when
    manifest is present and reject calls missing the required manifest.

  • Remove \<install installurl> IDL and reject any remaining uses in
    Blink, so the retired attribute reports invalid data instead of
    unexpectedly installing the current document.

  • Delete obsolete Mojo, browser service, command, scheduler, and UI
    plumbing used only by install document URLs.

  • Preserve navigator and element installation for current documents
    and explicit manifest URLs.

  • Port reusable permission, attribution, repair, dialog, and PWA-window
    coverage to retained manifest URL paths.

  • Update Blink, browser, WPT, and web-exposed interface tests.

  • Internal design doc:
    https://docs.google.com/document/d/1rGvLhD4SR8Y9M1wVmqgyesPNkbZGU7HOqlttjEFJ5Vo/edit?tab=t.0

  • Test site:
    https://kbhlee2121.github.io/pwa/web-install-manifest-url/index.html

Bug: 520025525, 333795265
Change-Id: I67aefeb897ff1490ad541d299cf62a4ab4f3eae6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8265584
Reviewed-by: Lia Hiscock \<liahiscock@microsoft.com>
Reviewed-by: Mike West \<mkwst@chromium.org>
Reviewed-by: Daniel Murphy \<dmurph@chromium.org>
Commit-Queue: Kristin Lee \<kristinlee@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1687363}

Whiteboard: [wptsync downstream] → [wptsync downstream error]
Whiteboard: [wptsync downstream error] → [wptsync downstream]

CI Results

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

Total 4 tests and 3 subtests

Status Summary

Firefox

OK : 2[GitHub] 4[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 11[GitHub] 15[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]

Chrome

OK : 2
PASS: 9
FAIL: 2

Safari

OK : 2
FAIL: 11

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

  • /web-install/navigator-install-bad-inputs.tentative.https.html [wpt.fyi]
    • navigator.install(url) rejects with TypeError.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.install(url, manifestId) rejects with TypeError.: FAIL (Chrome: FAIL, Safari: FAIL)
    • navigator.install({}) rejects with TypeError when manifest is missing.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest: ""}) rejects with TypeError for empty manifest URL.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest: "://invalid"}) rejects with TypeError for invalid manifest URL.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest, manifestId: ""}) rejects with TypeError for empty manifestId.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest, manifestId: "://invalid"}) rejects with TypeError for invalid manifestId.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({installurl}) rejects with TypeError when manifest is missing.: FAIL (Chrome: PASS, Safari: FAIL)
  • /web-install/navigator-install-defined.tentative.https.html [wpt.fyi]
    • navigator.install() is defined.: FAIL
  • /web-install/navigator-install-sandboxed-iframe.tentative.https.html [wpt.fyi]
    • navigator.install() in sandboxed iframe (allow-scripts) should throw SecurityError.: FAIL
    • navigator.install() in sandboxed iframe (allow-scripts allow-same-origin) should throw SecurityError.: FAIL
    • navigator.install() in a same-origin iframe should throw InvalidStateError.: FAIL
  • /web-install/navigator-install-user-activation.tentative.https.html [wpt.fyi]
    • navigator.install() rejects with NotAllowedError without a user activation.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest}) rejects with NotAllowedError without a user activation.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest, installurl}) ignores installurl and rejects with NotAllowedError without a user activation.: FAIL (Chrome: PASS, Safari: FAIL)
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 157 Branch
You need to log in before you can comment on or make changes to this bug.