Closed Bug 2071040 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62574 - [WebInstallAPI] Resolve relative manifest URLs

Categories

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

task

Tracking

(firefox158 fixed)

RESOLVED FIXED
158 Branch
Tracking Status
firefox158 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Lia Hiscock <liahiscock@microsoft.com> wrote:

[WebInstallAPI] Resolve relative manifest URLs

Resolve manifest URLs supplied through navigator.install() and the
\<install> element against the document's base URL. Previously, relative
values were treated as invalid absolute URLs.

Bug: 333795265
Change-Id: Ia0c6c2db6302ad4e512ce0d0c5573c089864c0e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8341388
Reviewed-by: Daniel Murphy \<dmurph@chromium.org>
Commit-Queue: Lia Hiscock \<liahiscock@microsoft.com>
Reviewed-by: Lu Huang \<luhua@microsoft.com>
Reviewed-by: Alison Maher \<almaher@microsoft.com>
Reviewed-by: Nate Chapin \<japhet@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1694773}

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 : 1[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: 9[GitHub] 16[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 : 1
PASS: 9

Safari

OK : 1
FAIL: 9

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: PASS, Safari: FAIL)
    • navigator.install(url, manifestId) rejects with TypeError.: FAIL (Chrome: PASS, 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: " \t\n "}) rejects with TypeError for a whitespace-only manifest URL.: FAIL (Chrome: PASS, Safari: FAIL)
    • navigator.install({manifest: "https://["}) 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
    • navigator.install({manifest}) rejects with NotAllowedError without a user activation.: FAIL
    • navigator.install({manifest, installurl}) ignores installurl and rejects with NotAllowedError without a user activation.: FAIL
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.