Bug 1304531 - Remove CPOW usage from browser_newtabwebchannel.js. r=Felipe, a=test-only
authorBlake Kaplan <mrbkap@gmail.com>
Tue, 20 Sep 2016 18:59:42 -0700
changeset 355930 167b81554585abdf00d3551a16d13325f9e3e7fe
parent 355929 50bc61f63b4ab17507f20ac20c6f6b8eb19d618e
child 355931 146b2adddd476d99c02d989fdcad702ef801ad1e
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)
reviewersFelipe, test-only
bugs1304531
milestone51.0a2
Bug 1304531 - Remove CPOW usage from browser_newtabwebchannel.js. r=Felipe, a=test-only This one also probably wouldn't cause problems, but getting rid of the CPOW was so easy, I did so anyway. MozReview-Commit-ID: IWNwpKF52gI
browser/components/newtab/tests/browser/browser_newtabwebchannel.js
--- a/browser/components/newtab/tests/browser/browser_newtabwebchannel.js
+++ b/browser/components/newtab/tests/browser/browser_newtabwebchannel.js
@@ -236,16 +236,16 @@ add_task(function* open_webchannel_reloa
   });
 
   is(NewTabWebChannel.numBrowsers, 0, "Sanity check");
   yield BrowserTestUtils.withNewTab(tabOptions, function*(browser) {
     let target = yield messagePromise;
     is(NewTabWebChannel.numBrowsers, 1, "One target expected");
     is(target.browser, browser, "Same browser");
 
-    browser.contentWindow.location.reload();
+    browser.reload();
   });
 
   Cu.forceGC();
   is(NewTabWebChannel.numBrowsers, 0, "Sanity check");
   yield unloadPromise;
   cleanup();
 });