RESOLVED FIXED 228679
REGRESSION(r279800): IntersectionObserver may never get a delivery of an observation if the element has been unobserved and is disconnected
https://bugs.webkit.org/show_bug.cgi?id=228679
Summary REGRESSION(r279800): IntersectionObserver may never get a delivery of an obse...
Ryosuke Niwa
Reported 2021-07-31 03:26:34 PDT
After r279800 IntersectionObserver's callback may never be delivered if the observed element has been disconnected from the document, and the element has been explicitly unobserved by IntersectionObserver.
Attachments
Fixes the bug (6.90 KB, patch)
2021-07-31 04:28 PDT, Ryosuke Niwa
no flags
Ryosuke Niwa
Comment 1 2021-07-31 04:17:28 PDT
ResizeObserver has a similar code but ResizeObserver.unobserve active observation as well so it doesn't exhibit a bug per se. I don't think this is correct per spec though. Will investigate separately.
Ryosuke Niwa
Comment 2 2021-07-31 04:28:06 PDT
Created attachment 434696 [details] Fixes the bug
Chris Dumez
Comment 3 2021-08-02 08:21:22 PDT
Comment on attachment 434696 [details] Fixes the bug r=me
Ryosuke Niwa
Comment 4 2021-08-02 12:14:39 PDT
Ryosuke Niwa
Comment 5 2021-08-02 12:14:52 PDT
Comment on attachment 434696 [details] Fixes the bug Clearing flags on attachment: 434696 Committed r280549 (240176@main): <https://commits.webkit.org/240176@main>
Ryosuke Niwa
Comment 6 2021-08-02 12:14:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.