Closed Bug 1546467 Opened 5 years ago Closed 5 years 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
normal

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...

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: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: