[wpt-sync] Sync PR 62876 - [WebInstallAPI] Resolve relative manifest IDs
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox159 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62876 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62876
Details from upstream follow.
Lia Hiscock <liahiscock@microsoft.com> wrote:
[WebInstallAPI] Resolve relative manifest IDs
Resolve manifest IDs against the document base URL for both
navigator.install() and the \<install> element. Trim surrounding HTML
whitespace before resolution.For \<install> specifically, only attempt current document install if
both attributes are absent (previously, present but empty attributes
also qualified).Bug: 397043069, 469801429, 333795265
Change-Id: Ic418731be269fa8de63a16ab82181cdd7143d2f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8384777
Reviewed-by: Lu Huang \<luhua@microsoft.com>
Commit-Queue: Lia Hiscock \<liahiscock@microsoft.com>
Reviewed-by: Daniel Murphy \<dmurph@chromium.org>
Reviewed-by: Mike West \<mkwst@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1703014}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=96106
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 28 tests
Status Summary
Firefox
OK : 3[GitHub] 14[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]
PASS: 5[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 12[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 25[GitHub] 48[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 51[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 3
PASS: 25
Safari
OK : 3
FAIL: 25
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/permission-element/install/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/sandbox-not-allowed.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/bounded-css-properties.tentative.html [wpt.fyi]
- Properties with values over bounds should be clamped down:
FAIL - Properties with values under bounds should be clamped up:
FAIL
- Properties with values over bounds should be clamped down:
- /html/semantics/permission-element/install/bounded-sizes.tentative.html [wpt.fyi]
- Properties with out-of-bounds values should be corrected:
FAIL - Properties with values in bounds should not be modified:
FAIL - 'Min' properties should not be allowed to go over the maximum allowed values for 'max' properties:
FAIL
- Properties with out-of-bounds values should be corrected:
- /html/semantics/permission-element/install/iframe-not-allowed.tentative.html [wpt.fyi]
- Install element is not allowed in a same-origin iframe:
FAIL - Install element is not allowed in an iframe even with permissions policy:
FAIL - Prefixed install element is not allowed in a same-origin iframe:
FAIL - Prefixed install element is not allowed in an iframe even with permissions policy:
FAIL
- Install element is not allowed in a same-origin iframe:
- /html/semantics/permission-element/install/install-element-feature-detect.tentative.html [wpt.fyi]
- Test HTMLInstallElement existence and instanceof:
FAIL
- Test HTMLInstallElement existence and instanceof:
- /html/semantics/permission-element/install/install-element-invalid-targets.tentative.https.html [wpt.fyi]
- An empty manifest attribute returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A whitespace-only manifest attribute returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A malformed non-empty manifest attribute returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - An empty manifestid attribute without a manifest returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A whitespace-only manifestid attribute without a manifest returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A manifestid attribute without a manifest returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - An empty manifestid attribute with a manifest returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A whitespace-only manifestid attribute with a manifest returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL) - A malformed non-empty manifestid attribute returns invalid_data:
FAIL(Chrome:PASS, Safari:FAIL)
- An empty manifest attribute returns invalid_data:
- /html/semantics/permission-element/install/install-element-url-attributes.tentative.html [wpt.fyi]
- The manifest and manifestId IDL attributes are null when omitted:
FAIL(Chrome:PASS, Safari:FAIL) - The manifest IDL attribute resolves a relative URL against the document base URL:
FAIL(Chrome:PASS, Safari:FAIL) - The manifest IDL attribute trims HTML whitespace before resolving a relative URL:
FAIL(Chrome:PASS, Safari:FAIL) - The manifestId IDL attribute resolves a relative URL against the document base URL:
FAIL(Chrome:PASS, Safari:FAIL) - The manifestId IDL attribute trims HTML whitespace before resolving a relative URL:
FAIL(Chrome:PASS, Safari:FAIL) - The manifestId IDL attribute setter reflects values and removes null:
FAIL(Chrome:PASS, Safari:FAIL)
- The manifest and manifestId IDL attributes are null when omitted:
- /html/semantics/permission-element/install/invalid-css-properties.tentative.html [wpt.fyi]
- None of the listed properties should be applied:
FAIL
- None of the listed properties should be applied:
- /html/semantics/permission-element/install/negative-offset.tentative.html [wpt.fyi]
- Negative offset should be changed to 0px:
FAIL - Expressions offset min(-50px, 50px) should return at least 0px:
FAIL - Expressions offset clamp(-100px, 1vw, -50px) should return at least 0px:
FAIL
- Negative offset should be changed to 0px:
- /html/semantics/permission-element/install/no-children-rendered.tentative.html [wpt.fyi]
- The install element should have no end tag or contents:
FAIL
- The install element should have no end tag or contents:
- /html/semantics/permission-element/install/no-focus.tentative.html [wpt.fyi]
- Install element is not focusable by script without user activation:
FAIL
- Install element is not focusable by script without user activation:
- /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: " \t\n "}) rejects with TypeError for whitespace-only manifestId.:
FAIL(Chrome:PASS, Safari:FAIL) - navigator.install({manifest, manifestId: "https://["}) 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)
- navigator.install(url) rejects with TypeError.:
- /web-install/navigator-install-defined.tentative.https.html [wpt.fyi]
- navigator.install() is defined.:
FAIL
- navigator.install() is defined.:
- /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
- navigator.install() in sandboxed iframe (allow-scripts) should throw SecurityError.:
- /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
- navigator.install() rejects with NotAllowedError without a user activation.:
- /html/semantics/permission-element/install/install-element-with-comment.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/install/pseudo-elements-in-div.tentative.html [wpt.fyi]:
FAIL - /html/semantics/permission-element/install/pseudo-elements.tentative.html [wpt.fyi]:
FAIL
Tests Disabled in Gecko Infrastructure
- /html/semantics/permission-element/install/display-values.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-image-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/parent-mask.tentative.html [wpt.fyi]:
SKIP - /html/semantics/permission-element/install/sandbox-not-allowed.tentative.html [wpt.fyi]:
SKIP
Comment 4•1 month ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/06c868f2b718
https://hg.mozilla.org/mozilla-central/rev/3d748014ce41
Comment 5•1 month ago
|
||
| bugherder | ||
Description
•