mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00

This test called waitForPaints() after creating an animation, but waitForPaints() didn't wait for a MozAfterPaint event actually since DOMWindowUtils.IsMozAfterPaintPending which is checked a MozAfterPaint event has been queued return false[1]. (i.e. This test didn't wait for a MozAfterPaint) This is related to bug 1341294. If gecko can receive a MozAfterPaint corresponded to own paint, waitForPaint() does not need to check for DOMWindowUtils.IsMozAfterPaintPending. This patch is a workaround until bug 1341294 is resolved. [1] http://searchfox.org/mozilla-central/rev/5696c3e525fc8222674eed6a562f5fcbe804c4c7/testing/mochitest/tests/SimpleTest/paint_listener.js#60 MozReview-Commit-ID: 6Rnv8MBP6Se --HG-- extra : rebase_source : 052f62b01df819961040f6652954e1068f86fc47