Attempt to fix bug 551540 by not waiting for focus. This hangs here locally for me for no good reason (appears to have focus).
authorShawn Wilsher <me@shawnwilsher.com>
Wed, 10 Nov 2010 11:00:31 -0800
changeset 59330 ecdd25bb9d90f7f2b9b47e183194577354c7a1de
parent 59329 c8d8af0fcc3869ad5ee71154b8f5c021ff2b3b7f
child 59331 6716b289e6135d316c272967a80ea8938232621a
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
bugs551540
milestone2.0b8pre
Attempt to fix bug 551540 by not waiting for focus. This hangs here locally for me for no good reason (appears to have focus). r=ehsan
browser/components/places/tests/browser/browser_forgetthissite_single.js
--- a/browser/components/places/tests/browser/browser_forgetthissite_single.js
+++ b/browser/components/places/tests/browser/browser_forgetthissite_single.js
@@ -105,20 +105,18 @@ function test() {
               "be hidden with " + selectionCount + " items selected");
             // Close the context menu
             contextmenu.hidePopup();
             // Wait for the Organizer window to actually be closed
             function closeObserver(aSubject, aTopic, aData) {
               if (aTopic != "domwindowclosed")
                 return;
               ww.unregisterNotification(closeObserver);
-              SimpleTest.waitForFocus(function() {
-                // Proceed
-                funcNext();
-              });
+              // Proceed
+              funcNext();
             }
             ww.registerNotification(closeObserver);
             // Close Library window.
             organizer.close();
           }, true);
           // Get cell coordinates
           var x = {}, y = {}, width = {}, height = {};
           tree.treeBoxObject.getCoordsForCellItem(0, tree.columns[0], "text",