(intersection-observer) intersectionRect not mapped to the document containing the target in iFrames
Categories
(Core :: Layout, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: denschub, Assigned: emilio)
References
(Blocks 1 open bug, )
Details
Attachments
(1 file)
Reporter | ||
Comment 1•6 years ago
|
||
Reporter | ||
Updated•6 years ago
|
Comment 2•6 years ago
|
||
See bug 1547409. Moving webcompat whiteboard tags to project flags.
Comment 3•6 years ago
|
||
Is there any progress or interest in fixing this? May be I can provide some additional information?
Was reported half a year ago and I have no idea if it was even noticed.
We sadly at Infogram are forced to rely on polyfill instead of using IntersectionObserver in Firefox, but it does not work for case of application embeded to 3rd party website inside iframe without a friendly script in parent page. This causes issues for our clients when they use iframe to embed our charts and expect animation to trigger when users scroll to the embed.
Just checked the fiddle example, and it still works correctly in Chrome while failing in Firefox version 66.0.5
Assignee | ||
Comment 4•6 years ago
|
||
This was never prioritized looks like, and fell off the backlog looks like.
I'll take a look, this looks like a pretty easy bug to fix.
Comment 5•6 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #4)
This was never prioritized looks like, and fell off the backlog looks like.
I'll take a look, this looks like a pretty easy bug to fix.
Ouh, ok good thing that I wrote then :)
Assignee | ||
Comment 6•6 years ago
|
||
targetFrame is modified during the intersection computation loop, so it's not
the viewport you want if there are scrollframes around.
The test is the same as iframe-no-root.html but with a wrapping scroller which
triggers this bug.
This code is quite subtle, so will refactor and clean it up in a followup.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 7•6 years ago
|
||
Sent the simple fix here (in order to hopefully land it in 68), and a proper cleanup in bug 1551716.
Comment 9•6 years ago
|
||
bugherder |
Description
•