[wpt-sync] Sync PR 65074 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=331110
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 65074 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/65074
Details from upstream follow.
Anne van Kesteren <annevk@annevk.nl> wrote:
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=331110
WebKit export from bug: Make a document own its global custom element registry
<pre>
Make a document own its global custom element registryAs in the HTML Standard, a document now holds its global custom element
registry, created when it gets its window, and window.customElements returns
the registry of the window's document. When a window is reused for a new
document, that document creates its own registry, so the window no longer
replaces it. A window reachable from script always has its document, as the
window's global object holds the document's wrapper.The registry now stores whether it is scoped, instead of a weak pointer to its
window that made it count as scoped once the window was gone. define() on the
registry of a document whose window was reused still upgrades nothing, as HTML
upgrades in the window's new document.WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=331110">https://bugs.webkit.org/show_bug.cgi?id=331110</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/326482@main">https://commits.webkit.org/326482@main</a>
</pre>
| Assignee | ||
Updated•10 days ago
|
| Assignee | ||
Comment 1•10 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=123023
| Assignee | ||
Comment 2•9 days ago
|
||
CI Results
Ran 0 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests and 4 subtests
Status Summary
Firefox
OK : 1
PASS: 1
FAIL: 3
Chrome
OK : 1
PASS: 1
FAIL: 3
Safari
OK : 1
PASS: 4
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(Chrome:FAIL, Safari:PASS) - The initial about:blank document keeps its registry when its window is reused:
FAIL(Chrome:FAIL, Safari:PASS) - define() on the initial about:blank document's registry after its window is reused upgrades nothing:
FAIL(Chrome:FAIL, Safari:PASS)
- Each navigable document has its own registry:
Comment 4•8 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/cd075868d224
https://hg.mozilla.org/mozilla-central/rev/052e01646078
Description
•