[wpt-sync] Sync PR 19173 - [IntersectionObserver] If necessary, schedule a frame after delay
Categories
(Core :: Layout, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 19173 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/19173
Details from upstream follow.
Stefan Zager <szager@chromium.org> wrote:
[IntersectionObserver] If necessary, schedule a frame after delay
If the following sequence happens:
- IntersectionObserver sends a notification
- Layout is dirtied in a way that should generate a new notification
- Lifecyce update runs
- IntersectionObserver skips processing due to its 'delay' parameter
... then we need to guarantee that the IntersectionObserver will send
the necessary notification after the necessary delay. If animation
frames are being regularly generated, this won't be a problem, because
the observer will get a chance to run at the end of every lifecycle
update. But if the document goes dormant, and frames are not being
regularly generated, then we must force a lifecycle update after enough
time has passed, to give the observer a chance to run.Change-Id: I74b63486e5c9b05c662f9e2e6e1c0b4baf00eba5
Reviewed-on: https://chromium-review.googlesource.com/1812798
WPT-Export-Revision: ab5fbf40654c3d93d0c2ba3e7c4057db77cee33f
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
| Assignee | ||
Comment 5•6 years ago
|
||
| Assignee | ||
Comment 6•6 years ago
|
||
| Assignee | ||
Comment 7•6 years ago
|
||
Comment 9•6 years ago
|
||
| bugherder | ||
Description
•