Closed Bug 2090926 Opened 20 days ago Closed 8 days ago

[wpt-sync] Sync PR 64915 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=330622

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
163 Branch
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 element

An 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>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

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

Status: NEW → RESOLVED
Closed: 8 days ago
Resolution: --- → FIXED
Target Milestone: --- → 163 Branch
You need to log in before you can comment on or make changes to this bug.