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 525625 cb4eac8d65949e75804cfc6f373a844961c6ec31
parent 525624 d15b22ef4b88a6be3e0adaf3163022e61fe3e275
child 525626 018abdd16060b7849be760b348242a12ec8cf4dd
push id2032
push userffxbld-merge
push dateMon, 13 May 2019 09:36:57 +0000
treeherdermozilla-release@455c1065dcbe [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]],
   });