gecko-dev/dom/base/crashtests/1757923.html

23 строки
520 B
HTML

<!DOCTYPE html>
<html>
<head>
<script>
class CustomElement extends HTMLElement {
constructor () {
super();
}
}
let element = document.createElement("custom-element");
customElements.define("custom-element", CustomElement);
customElements.upgrade(element);
const internals = element.attachInternals();
element = undefined;
SpecialPowers.forceGC();
SpecialPowers.forceCC();
internals.shadowRoot;
</script>
</head>
</html>