DOM wrapper collection is observable with proto mutation

NEW
Unassigned

Status

()

defect
P3
normal
2 years ago
2 months ago

People

(Reporter: jandem, Unassigned)

Tracking

(Depends on 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Reporter

Description

2 years ago
Posted file Testcase
I realized this when looking at bug 1353928.

The attached testcase sometimes prints (may require a few reloads to see the buggy behavior):

Proto: undefined
Proto: [object HTMLDivElementPrototype]

It should print:

Proto: undefined
Proto: undefined
Hmm, I thought we had special code to preserve wrappers when __proto__ was set.
But perhaps I'm thinking ancient pre-Paris-bindings world.
I thought we had a bug about this too, but I can't find it...

But yes, we don't really have a way to hook into proto mutation right now.  :(
Please let me know if we need an owner for this sooner than "someday".
Priority: -- → P3
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.