[wpt-sync] Sync PR 62507 - [CE[ Use HasTagName for tag checks in HTMLCapabilityElementBase
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62507 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62507
Details from upstream follow.
Thomas Nguyen <tungnh@chromium.org> wrote:
[CE[ Use HasTagName for tag checks in HTMLCapabilityElementBase
HTML elements created with an XML namespace prefix (such as via
createElementNS) retain a prefix in their QualifiedName. Direct equality
comparisons using TagQName() == html_names::kInstallTag evaluate to
false due to the prefix difference, preventing tag-specific logic from
matching.
Replace direct QualifiedName comparisons with HasTagName() across
HTMLCapabilityElementBase. This ensures subframe and sandbox state
validation correctly handles prefixed install elements.Fixed: 517366426
Change-Id: Ib1a96940975207c5d23ec789745d0fdc7e8f9550
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8364205
Reviewed-by: Rune Lillesveen \<futhark@chromium.org>
Commit-Queue: Thomas Nguyen \<tungnh@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1693416}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=13a9af067ff4207ef3da0ea1b5877ca79c88f977
| 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 22 tests
Status Summary
Firefox
OK : 1[GitHub] 8[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 : 4[GitHub] 16[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 19[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]
TIMEOUT: 2
NOTRUN : 3
Chrome
OK : 1
PASS : 2
CRASH : 1
FAIL : 2
Safari
OK : 1
FAIL : 4
TIMEOUT: 2
NOTRUN : 3
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[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],TIMEOUT[GitHub] (Chrome:CRASH, Safari:TIMEOUT)- Install element is not allowed in a sandboxed iframe:
TIMEOUT(Safari:TIMEOUT) - Install element is not allowed in a sandboxed iframe even with permissions policy:
NOTRUN(Safari:NOTRUN) - Prefixed install element is not allowed in a sandboxed iframe:
NOTRUN(Safari:NOTRUN) - Prefixed install element is not allowed in a sandboxed iframe even with permissions policy:
NOTRUN(Safari:NOTRUN)
- Install element is not allowed in a sandboxed iframe:
- /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(Chrome:PASS, Safari:FAIL) - Install element is not allowed in an iframe even with permissions policy:
FAIL(Chrome:PASS, Safari:FAIL) - Prefixed install element is not allowed in a same-origin iframe:
FAIL(Chrome:FAIL, Safari:FAIL) - Prefixed install element is not allowed in an iframe even with permissions policy:
FAIL(Chrome:FAIL, Safari: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/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:
- /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[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],TIMEOUT[GitHub] (Chrome:CRASH, Safari:TIMEOUT)
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6f8b3251069e
https://hg.mozilla.org/mozilla-central/rev/8c4ef20f64fc
Description
•