From 3e27baea54d3ca09ec7ca89c0238e7de878a31eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A3o=20Gottwald?= Date: Wed, 7 Mar 2018 18:40:55 +0100 Subject: [PATCH] Bug 1443364 - Fix browser_901207_searchbar_in_panel.js intermittent failure. r=Gijs MozReview-Commit-ID: H0F7n3eoV3V --HG-- extra : rebase_source : 219aeb63a4c9c5eadbabf3c97af1ec300ba09cb1 --- .../test/browser_901207_searchbar_in_panel.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js b/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js index cfd20bc3d15f..595864ecb559 100644 --- a/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js +++ b/browser/components/customizableui/test/browser_901207_searchbar_in_panel.js @@ -97,10 +97,8 @@ add_task(async function() { function sendWebSearchKeyCommand() { - if (Services.appinfo.OS === "Darwin") - EventUtils.synthesizeKey("k", {accelKey: true}); - else - EventUtils.synthesizeKey("k", {ctrlKey: true}); + document.documentElement.focus(); + EventUtils.synthesizeKey("k", { accelKey: true }); } function logActiveElement() {