From 76f6266d3b974b24efc0a0bbba3762ab27d473aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Thu, 23 Nov 2023 16:52:58 +0000 Subject: [PATCH] Bug 1784757 - Wait for one frame before asserting restyling state. r=hiro Differential Revision: https://phabricator.services.mozilla.com/D194209 --- .../mochitest/helper_fission_animation_styling_in_oopif.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/layers/apz/test/mochitest/helper_fission_animation_styling_in_oopif.html b/gfx/layers/apz/test/mochitest/helper_fission_animation_styling_in_oopif.html index c7064994bab8..b95111781adb 100644 --- a/gfx/layers/apz/test/mochitest/helper_fission_animation_styling_in_oopif.html +++ b/gfx/layers/apz/test/mochitest/helper_fission_animation_styling_in_oopif.html @@ -92,6 +92,9 @@ async function test() { // overflow: hidden style in the out-of-process iframe. await setup_in_oopif(); + // Wait for a frame to make sure animations are properly started. + await observe_styling_in_oopif(1); + let restyleCount = await observe_styling_in_oopif(5); is(restyleCount, 0, "Animation in an out-of-process iframe which is initially clipped out " +