tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 7cf8ce04863d806c9dba6d1327fc864b39be303c
parent efccffff3bce0decd79bd8ee5e125d7a085934de
Author: Anne van Kesteren <annevk@annevk.nl>
Date:   Fri, 28 Nov 2025 14:53:54 +0000

Bug 2002794 [wpt PR 56328] - window.customElements is per document, a=testonly

Automatic update from web-platform-tests
window.customElements is per document

See also initial-about-blank.window.js which this test is now aligned with.
--

wpt-commits: 652df95b5414d1f2da0c76616215c6827cc6c863
wpt-pr: 56328

Diffstat:
Mtesting/web-platform/tests/custom-elements/registries/WEB_FEATURES.yml | 4++--
Atesting/web-platform/tests/custom-elements/registries/per-document.html | 14++++++++++++++
Dtesting/web-platform/tests/custom-elements/registries/per-global.html | 14--------------
3 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/testing/web-platform/tests/custom-elements/registries/WEB_FEATURES.yml b/testing/web-platform/tests/custom-elements/registries/WEB_FEATURES.yml @@ -2,7 +2,7 @@ features: - name: autonomous-custom-elements files: - define.html - - per-global.html + - per-document.html - upgrade.html - valid-custom-element-names.html - name: customized-built-in-elements @@ -13,6 +13,6 @@ features: - "*" - "!define-customized-builtins.html" - "!define.html" - - "!per-global.html" + - "!per-document.html" - "!upgrade.html" - "!valid-custom-element-names.html" diff --git a/testing/web-platform/tests/custom-elements/registries/per-document.html b/testing/web-platform/tests/custom-elements/registries/per-document.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<meta charset="utf-8"> +<title>Custom Elements: window.customElements is per document</title> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<link rel="help" href="https://html.spec.whatwg.org/multipage/#custom-elements-api"> +<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me"> +<script src="/common/object-association.js"></script> + +<body> +<script> +"use strict"; +testIsPerDocument("customElements"); +</script> diff --git a/testing/web-platform/tests/custom-elements/registries/per-global.html b/testing/web-platform/tests/custom-elements/registries/per-global.html @@ -1,14 +0,0 @@ -<!DOCTYPE html> -<meta charset="utf-8"> -<title>Custom Elements: CustomElementRegistry is per global</title> -<script src="/resources/testharness.js"></script> -<script src="/resources/testharnessreport.js"></script> -<link rel="help" href="https://html.spec.whatwg.org/multipage/#custom-elements-api"> -<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me"> -<script src="/common/object-association.js"></script> - -<body> -<script> -"use strict"; -testIsPerWindow("customElements"); -</script>