Bug 1431267 - expect about:studies to open in a new tab; r=mythmon
authorMyk Melez <myk@mykzilla.org>
Thu, 18 Jan 2018 14:32:54 -0800
changeset 454212 4b7ad48ad5e51a5614e764f20eabae8aa1c4d9e8
parent 454211 48498377365030c654dc982f868d790e8a64e493
child 454213 70c2890fb8759067869e582c71d8123c9535841e
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmythmon
bugs1431267
milestone59.0a1
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
Bug 1431267 - expect about:studies to open in a new tab; r=mythmon MozReview-Commit-ID: 6eHMnnFMCQx
browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
--- a/browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
+++ b/browser/extensions/shield-recipe-client/test/browser/browser_about_preferences.js
@@ -166,14 +166,16 @@ decorate_task(
 
 decorate_task(
   withPrivacyPrefs,
   async function testViewStudiesLink(browser) {
     browser.contentDocument.getElementById("viewShieldStudies").click();
     await BrowserTestUtils.waitForLocationChange(gBrowser);
 
     is(
-      browser.currentURI.spec,
+      gBrowser.currentURI.spec,
       "about:studies",
-      "Clicking the view studies link opens about:studies."
+      "Clicking the view studies link opens about:studies in a new tab."
     );
+
+    gBrowser.removeCurrentTab();
   }
 );