tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit cc7610a13af29c341d86f6fbec3c2d6eebd5b920
parent eae5f512286e62a853209bb05a46a172805fd555
Author: Daniel Holbert <dholbert@cs.stanford.edu>
Date:   Fri,  2 Jan 2026 07:28:59 +0000

Bug 1990127: Adjust reftest 593243-2.html to wait on MozReftestInvalidate to detect when initial painting is done (rather than MozAfterPaint). r=tnikkel,layout-reviewers

MozAfterPaint may fire very early, before the load event has even fired, so it's
not what this test really wanted to be using.

Note also that MozReftestInvalidate only fires once, so we don't need to bother
unregistering the event listener inside of 'initialPaint' anymore.

Differential Revision: https://phabricator.services.mozilla.com/D277746

Diffstat:
Mlayout/reftests/bugs/593243-2.html | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/layout/reftests/bugs/593243-2.html b/layout/reftests/bugs/593243-2.html @@ -8,7 +8,6 @@ <title></title> <script type="text/javascript"> function initialPaint() { - window.removeEventListener("MozAfterPaint", initialPaint); setTimeout(type, 0); } @@ -27,7 +26,7 @@ function finish() { document.documentElement.removeAttribute("class"); } -window.addEventListener("MozAfterPaint", initialPaint); +window.addEventListener("MozReftestInvalidate", initialPaint); </script> </head>