Bug 617152. Part 8: Remove useless call to processUpdates. r=dbaron
authorRobert O'Callahan <robert@ocallahan.org>
Mon, 20 Dec 2010 14:37:43 +1300
changeset 59490 4dd001926ff6b8e7109614db8c023a84dd6e45c6
parent 59489 e97fa71300071beeda8eb7ebb1f5b110204b3b8a
child 59491 e9f317c9ab529474c5ae041c9a3fadda75cd5833
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersdbaron
bugs617152
milestone2.0b9pre
Bug 617152. Part 8: Remove useless call to processUpdates. r=dbaron
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -1001,21 +1001,16 @@ function WaitForTestEnd() {
         }
 
         flushWindow(gBrowser.contentWindow);
 
         if (anyPendingPaintsGeneratedInDescendants &&
             !gWindowUtils.isMozAfterPaintPending) {
             LogWarning("Internal error: descendant frame generated a MozAfterPaint event, but the root document doesn't have one!");
         }
-
-        // XXX this should not be necessary!
-        var utils = gBrowser.contentWindow.QueryInterface(CI.nsIInterfaceRequestor)
-                    .getInterface(CI.nsIDOMWindowUtils);
-        utils.processUpdates();
     }
 
     function AfterPaintListener(event) {
         LogInfo("AfterPaintListener in " + event.target.document.location.href);
         if (event.target.document != document) {
             // ignore paint events for subframes or old documents in the window.
             // Invalidation in subframes will cause invalidation in the toplevel document anyway.
             return;