Simplify intersection observer property management code.
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 file)
This is causing problems with lazyload for relatively complex reasons. This is a simplification that doesn't fix the root of the problem, but is worth doing anyway.
Assignee | ||
Comment 1•5 years ago
|
||
Removes some duplicated code, and removes the property when the observer hash
table is empty (there's no reason to keep it around).
The keeping the property around is causing issues because we want to change
intersection observers on adopt.
Right now when that happens, we create a property on the new document, but then
override it with the transferred one if present.
We should instead merge the properties rather than transferring them to the new
document, or something. But not keeping the empty property mitigates the
problem.
We should still fix that though, I'll file another bug for it.
Updated•5 years ago
|
Comment 3•5 years ago
|
||
bugherder |
Description
•