Closed Bug 1546467 Opened 7 months ago Closed 7 months ago

Custom elements may lose their prototype if their wrapper was created before the element is upgraded.

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file)

Testcase in bug 1500626.

Ugh. Yeah, we need to preserve the wrapper when we JS_SetPrototype in HTMLConstructor. I should have caught that...

Blocks: 1545263
Attachment #9060206 - Attachment description: Bug 1546467 - Preserve wrappers of custom elements when they already have a wrapper. r=bzbarsky → Bug 1546467 - Preserve reflectors of custom elements when they already have one. r=bzbarsky
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/db8e013ac78c
Preserve reflectors of custom elements when they already have one. r=bzbarsky
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.