Bug 1261842 - browser_423132.js no longer needs to wait for remoteness flip on initial browser of new window. r?felipe draft
authorMike Conley <mconley@mozilla.com>
Wed, 08 Jun 2016 16:45:37 -0400
changeset 385062 33cc28a55680c836b970c9a5455f7355cd3f7507
parent 385061 8174446218d17f633acf3eab5fc8f7317d178c5c
child 385063 b83c03b6c16c38a7588314e9a783d4c1ad2582e4
push id22415
push usermconley@mozilla.com
push dateThu, 07 Jul 2016 16:50:45 +0000
reviewersfelipe
bugs1261842
milestone50.0a1
Bug 1261842 - browser_423132.js no longer needs to wait for remoteness flip on initial browser of new window. r?felipe MozReview-Commit-ID: 4QniZC8w7pA
browser/components/sessionstore/test/browser_423132.js
--- a/browser/components/sessionstore/test/browser_423132.js
+++ b/browser/components/sessionstore/test/browser_423132.js
@@ -68,19 +68,14 @@ function test() {
           cs.removeAll();
           BrowserTestUtils.closeWindow(newWin).then(finish);
         };
 
         function flushAndReady() {
           TabStateFlusher.flush(newWin.gBrowser.selectedBrowser).then(ready);
         }
 
-        if (newWin.gMultiProcessBrowser) {
-          let tab = newWin.gBrowser.selectedTab;
-          promiseTabRestored(tab).then(flushAndReady);
-        } else {
-          flushAndReady();
-        }
+        flushAndReady();
       }, true, testURL);
     });
   }, false);
 }