Bug 1601484 - Fix failing browser_contentTab.js; rs=bustage-fix
authorGeoff Lankow <geoff@darktrojan.net>
Thu, 05 Dec 2019 11:28:20 +1300
changeset 28315 040ffadfe15ffb98f834ef9495a4dbf87b2f413b
parent 28314 2cfb1d544ba0442fce04865f94804fd79ddeb30e
child 28316 e6ef656abc78e029a8a4922dc3af38882d3329fd
push id16766
push usergeoff@darktrojan.net
push dateWed, 04 Dec 2019 23:14:57 +0000
treeherdercomm-central@040ffadfe15f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage-fix
bugs1601484
Bug 1601484 - Fix failing browser_contentTab.js; rs=bustage-fix
mail/test/browser/content-tabs/browser_contentTab.js
--- a/mail/test/browser/content-tabs/browser_contentTab.js
+++ b/mail/test/browser/content-tabs/browser_contentTab.js
@@ -1,12 +1,14 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+/* globals gFolderTreeView */
+
 "use strict";
 
 var controller = ChromeUtils.import(
   "resource://testing-common/mozmill/controller.jsm"
 );
 var elementslib = ChromeUtils.import(
   "resource://testing-common/mozmill/elementslib.jsm"
 );
@@ -207,9 +209,11 @@ add_task(function test_content_tab_onbef
 // - test find bar
 // - window.close within tab
 // - zoom?
 
 registerCleanupFunction(function teardownModule() {
   while (mc.tabmail.tabInfo.length > 1) {
     mc.tabmail.closeTab(1);
   }
+
+  gFolderTreeView._tree.focus();
 });