Closed Bug 1614623 Opened 5 years ago Closed 5 years ago

Simplify intersection observer property management code.

Categories

(Core :: DOM: Core & HTML, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla75
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.

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.

Type: defect → enhancement
Priority: -- → P2
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0da37b6e5823 Simplify intersection observer property handling. r=smaug
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: