Bug 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling: remove unused variable assignment
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 27 May 2019 11:28:23 +0200
changeset 475700 37fb14fc763aa87699c0c00157e00546333186d8
parent 475699 7a8efbb255f992bd16e63aee70672b512162bb68
child 475701 6f3ded4cf77287eb566e8ff8d40bb3d272722a0d
push id86420
push userarchaeopteryx@coole-files.de
push dateMon, 27 May 2019 09:29:33 +0000
treeherderautoland@37fb14fc763a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1554542
milestone69.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 1554542 - Fix browser.urlbar.doubleClickSelectsAll handling: remove unused variable assignment
browser/components/urlbar/tests/browser/browser_doubleClickSelectsAll.js
--- a/browser/components/urlbar/tests/browser/browser_doubleClickSelectsAll.js
+++ b/browser/components/urlbar/tests/browser/browser_doubleClickSelectsAll.js
@@ -12,17 +12,17 @@ function doubleClick(target) {
 add_task(async function() {
   await SpecialPowers.pushPrefEnv({set: [
     ["browser.urlbar.clickSelectsAll", false],
     ["browser.urlbar.doubleClickSelectsAll", true],
   ]});
 
   let url = "about:mozilla";
   let win = await BrowserTestUtils.openNewBrowserWindow();
-  let tab = await BrowserTestUtils.openNewForegroundTab({ gBrowser: win.gBrowser, url });
+  await BrowserTestUtils.openNewForegroundTab({ gBrowser: win.gBrowser, url });
 
   await doubleClick(win.gURLBar.inputField);
   is(win.gURLBar.selectionStart, 0, "Selection should start at the beginning of the urlbar value");
   is(win.gURLBar.selectionEnd, url.length, "Selection should end at the end of the urlbar value");
 
   win.close();
 });