Bug 1536069 - Remove DevTools button in browser_multiselect_tabs_using_keyboard.js to prevent branch-specific focus in toolbar r=Gijs a=test-only
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 18 Mar 2019 14:36:13 +0000
changeset 522627 cb4eac8d6594
parent 522626 d15b22ef4b88
child 522628 018abdd16060
push id10871
push usercbrindusan@mozilla.com
push dateMon, 18 Mar 2019 15:49:32 +0000
treeherdermozilla-beta@018abdd16060 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, test-only
bugs1536069
milestone67.0
Bug 1536069 - Remove DevTools button in browser_multiselect_tabs_using_keyboard.js to prevent branch-specific focus in toolbar r=Gijs a=test-only Differential Revision: https://phabricator.services.mozilla.com/D23855
browser/base/content/test/tabs/browser_multiselect_tabs_using_keyboard.js
--- a/browser/base/content/test/tabs/browser_multiselect_tabs_using_keyboard.js
+++ b/browser/base/content/test/tabs/browser_multiselect_tabs_using_keyboard.js
@@ -17,18 +17,23 @@ function synthesizeKeyAndWaitForTabToGet
   return focused;
 }
 
 add_task(async function setup() {
   await SpecialPowers.pushPrefEnv({
     set: [[PREF_MULTISELECT_TABS, true]],
   });
 
+  // The DevEdition has the DevTools button in the toolbar by default. Remove it
+  // to prevent branch-specific rules what button should be focused.
+  CustomizableUI.removeWidgetFromArea("developer-button");
+
   let prevActiveElement = document.activeElement;
   registerCleanupFunction(() => {
+    CustomizableUI.reset();
     prevActiveElement.focus();
   });
 });
 
 add_task(async function changeSelectionUsingKeyboard() {
   await SpecialPowers.pushPrefEnv({
     set: [[PREF_MULTISELECT_TABS, true]],
   });