Closed Bug 1574061 Opened Last month Closed Last month

Use the proper window for waitForAnimationFrames() in observeStylingInTargetWindow

Categories

(Core :: DOM: Animation, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: hiro, Assigned: hiro)

Details

Attachments

(1 file)

observeStylingInTargetWindow takes a window object but it's not used for waitForAnimationFrames(i.e. not for requestAnimationFrame) which means we call requestAnimationFrame for a different window.

I noticed this problem when I am writing tests for bug 1541705.

Also waitForAnimationReadyToRestyle should use owner window object instead of
global window.

Pushed by hikezoe.birchill@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4473a7402f25
Use the target window object for waitForAnimationFrames in observeStylingInTargetWindow. r=boris
Status: ASSIGNED → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.