gecko-dev/testing/web-platform/tests/intersection-observer
Stefan Zager 3370e3b76b Bug 1582635 [wpt PR 19173] - [IntersectionObserver] If necessary, schedule a frame after delay, a=testonly
Automatic update from web-platform-tests
[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 required 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/c/chromium/src/+/1812798
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Stefan Zager <szager@chromium.org>
Cr-Commit-Position: refs/heads/master@{#699093}

--

wpt-commits: ac95b44dc6369126f8b97ea1308921533dfdd39b
wpt-pr: 19173
2019-09-26 20:26:06 +00:00
..
resources Bug 1581974 - Change DOMIntersectionObserver::Update to use the BrowsingContext parent chain. r=jwatt 2019-09-20 04:59:56 +00:00
v2 Bug 1582635 [wpt PR 19173] - [IntersectionObserver] If necessary, schedule a frame after delay, a=testonly 2019-09-26 20:26:06 +00:00
bounding-box.html
client-rect.html
containing-block.html
cross-origin-iframe.sub.html Bug 1574064 [wpt PR 18443] - [IntersectionObserver] Use inclusive intersect with remote frame parent, a=testonly 2019-08-27 04:11:21 +00:00
disconnect.html
display-none.html
edge-inclusive-intersection.html
empty-root-margin.html
idlharness.window.js
iframe-no-root-with-wrapping-scroller.html
iframe-no-root.html
initial-observation-with-threshold.html
inline-client-rect.html
inline-with-block-child-client-rect.html
isIntersecting-change-events.html
isIntersecting-threshold.html
META.yml
multiple-targets.html
multiple-thresholds.html
observer-attributes.html
observer-exceptions.html
observer-in-iframe.html
observer-without-js-reference.html
remove-element.html
root-margin-root-element.html Bug 1559230 [wpt PR 17323] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=198784, a=testonly 2019-07-24 13:29:36 +01:00
root-margin-rounding.html
root-margin.html
rtl-clipped-root.html Bug 1568719 [wpt PR 18065] - [IntersectionObserver] Fix for rtl clipped explicit root, a=testonly 2019-08-05 14:49:33 +00:00
same-document-no-root.html
same-document-root.html
same-document-zero-size-target.html
same-origin-grand-child-iframe.sub.html Bug 1581974 - Change DOMIntersectionObserver::Update to use the BrowsingContext parent chain. r=jwatt 2019-09-20 04:59:56 +00:00
shadow-content.html
target-in-different-window.html
text-target.html
timestamp.html
unclipped-root.html
zero-area-element-hidden.html
zero-area-element-visible.html