[wpt-sync] Sync PR 64915 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330622
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64915 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64915
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330622
WebKit export from bug: Upgrade custom elements using their definition'<!---->s registry
<pre>
Handle a null custom element registry when upgrading an elementAn earlier custom element reaction can append an element to another document
before the element's queued upgrade reaction runs. If its custom element
registry becomes null as a result, upgrading it dereferenced that null registry
since <a href="https://commits.webkit.org/317462@main">317462@main</a>.Remove the active custom element constructor map entry for the duration of the
upgrade instead, so the HTMLElement constructor falls back to the window's
custom element registry, as it did before <a href="https://commits.webkit.org/317462@main">317462@main</a>.The new test also covers appending to a document with another global registry,
where the upgrade throws. WebKit still upgrades the element there if nothing
has accessed that window's customElements yet, as it creates the registry
lazily.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=330622">https://bugs.webkit.org/show_bug.cgi?id=330622</a>
</pre>
| Assignee | ||
Updated•20 days ago
|
| Assignee | ||
Comment 1•20 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=116818
| Assignee | ||
Comment 2•19 days ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 41 tests and 1975 subtests
Status Summary
Firefox
OK : 1[GitHub] 41[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[GitHub] 2459[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 : 2
Chrome
OK : 1
PASS : 3
FAIL : 2
Safari
ERROR: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /custom-elements/registries/initial-about-blank.window.html [wpt.fyi]
- Each navigable document has its own registry:
FAIL
- Each navigable document has its own registry:
- /custom-elements/registries/per-document.html [wpt.fyi]
- Navigating from the transient about:blank must replace window.customElements:
FAIL
- Navigating from the transient about:blank must replace window.customElements:
Comment 4•8 days ago
|
||
| bugherder | ||
Description
•