Closed Bug 1319134 Opened 8 years ago Closed 7 years ago

(intersection-observer) Switch from idle callback to post task.

Categories

(Core :: Layout, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla54
Tracking Status
firefox54 --- fixed

People

(Reporter: tschneider, Assigned: tschneider)

References

Details

Attachments

(1 file)

Assignee: nobody → tschneider
Attachment #8835193 - Flags: review?(mstange)
Comment on attachment 8835193 [details]
Bug 1319134 - (intersection-observer) Switch from idle callback to post task.

https://reviewboard.mozilla.org/r/110882/#review112514

So you now notify after one event loop trip after each refresh tick? Ok.
One problem here (which we might have had before) is that since refresh ticks have higher priority in the event loop, we might end up with two adjacent refresh ticks and then twe adjacent intersection observer notifications, instead of having them interleaved. I don't know if that's going to matter.
Attachment #8835193 - Flags: review?(mstange) → review+
We should be fine since the spec removed any mentioning of exact timing. Simply scheduling an event to be executed at next event loop iteration should be fine.
Keywords: checkin-needed
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/98b6a20708cd
(intersection-observer) Switch from idle callback to post task. r=mstange
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/98b6a20708cd
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: