Closed Bug 1318729 Opened 9 years ago Closed 9 years ago

Crash when setting a style property inside a custom element's shadow root

Categories

(Firefox :: General, defect)

50 Branch
x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1281983

People

(Reporter: srittau, Unassigned)

Details

Attachments

(1 file)

Using Firefox 50.0 with dom.webcomponents.enabled set to true, the following JavaScript code will hard-crash the browser: <html><head></head><body> <script> class MyElement extends HTMLElement { createdCallback() { const root = this.createShadowRoot(); const popup = document.createElement("div"); popup.style.display = "none"; root.appendChild(popup); popup.style.left = 0; } } document.registerElement("my-element", {prototype: MyElement.prototype}); </script> <my-element/> </body></html> This bug shows up in Firefox 50.0, on Debian Linux (package 50.0-1). While I did not test this boiled down code on Windows 7, this is where the bug originally appeared after updating to Firefox 50.0 (from the Firefox stable channel). The browser I tested on is non-e10s enabled. On the browser that this was originally reported on, only the tab crashed. I suspect that that was an e10s enabled version (FF 50.0 under Windows 7), although I can not confirm it at this point. This might be related to bug 1318630, reported earlier.
Attached file 1318729.html
It's a dupe of bug 1281983.
Status: UNCONFIRMED → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: