Backed out 2 changesets (bug 1140286) for browser_thumbnails_bg_no_cookies_stored.js timeouts
authorPhil Ringnalda <philringnalda@gmail.com>
Mon, 12 Sep 2016 21:37:20 -0700
changeset 354842 4850895eb2fbee98b74a885ea00be1cadc352313
parent 354841 2883c2d2181594e833d81667a83aeca8d033a82a
child 354843 bdf56e1152aa2678b498cfcc0c0a36728c0cefa7
push id6570
push userraliiev@mozilla.com
push dateMon, 14 Nov 2016 12:26:13 +0000
treeherdermozilla-beta@f455459b2ae5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1140286
milestone51.0a1
backs out2883c2d2181594e833d81667a83aeca8d033a82a
124402b3d83398f66112b34dfb6085fb41bc5a52
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out 2 changesets (bug 1140286) for browser_thumbnails_bg_no_cookies_stored.js timeouts Backed out changeset 2883c2d21815 (bug 1140286) Backed out changeset 124402b3d833 (bug 1140286)
toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
--- a/toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
+++ b/toolkit/components/thumbnails/test/browser_thumbnails_bg_no_cookies_stored.js
@@ -10,20 +10,19 @@ function* runTests() {
     xhr: bgTestPageURL({ setRedCookie: true})
   });
   ok(!thumbnailExists(url), "Thumbnail file should not exist before capture.");
   yield bgCapture(url);
   ok(thumbnailExists(url), "Thumbnail file should exist after capture.");
   removeThumbnail(url);
   // now load it up in a browser - it should *not* be red, otherwise the
   // cookie above was saved.
-  let tab = yield BrowserTestUtils.openNewForgroundTab(gBrowser, url);
+  let tab = gBrowser.loadOneTab(url, { inBackground: false });
   let browser = tab.linkedBrowser;
+  yield whenLoaded(browser);
 
   // The root element of the page shouldn't be red.
-  yield ContentTask.spawn(browser, null, function() {
-    Assert.notEqual(content.document.documentElement.style.backgroundColor,
-                    "rgb(255, 0, 0)",
-                    "The page shouldn't be red.");
-  });
-
+  let redStr = "rgb(255, 0, 0)";
+  isnot(browser.contentDocument.documentElement.style.backgroundColor,
+        redStr,
+        "The page shouldn't be red.");
   gBrowser.removeTab(tab);
 }