diff --git a/browser/base/content/test/pageActions/browser_page_action_menu.js b/browser/base/content/test/pageActions/browser_page_action_menu.js index b11d372e5bc4..11056268490b 100644 --- a/browser/base/content/test/pageActions/browser_page_action_menu.js +++ b/browser/base/content/test/pageActions/browser_page_action_menu.js @@ -848,7 +848,7 @@ add_task(async function contextMenu() { // urlbar tests that run after this one can break if the mouse is left over // the area where the urlbar popup appears, which seems to happen due to the // above synthesized mouse events. Move it over the urlbar. - EventUtils.synthesizeMouseAtCenter(gURLBar, { type: "mousemove" }); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, { type: "mousemove" }); gURLBar.focus(); }); diff --git a/browser/base/content/test/sidebar/browser_sidebar_keys.js b/browser/base/content/test/sidebar/browser_sidebar_keys.js index db92ceed644b..6bfbfe3e1beb 100644 --- a/browser/base/content/test/sidebar/browser_sidebar_keys.js +++ b/browser/base/content/test/sidebar/browser_sidebar_keys.js @@ -2,7 +2,7 @@ * http://creativecommons.org/publicdomain/zero/1.0/ */ async function testSidebarKeyToggle(key, options, expectedSidebarId) { - EventUtils.synthesizeMouseAtCenter(gURLBar, {}); + EventUtils.synthesizeMouseAtCenter(gURLBar.textbox, {}); let promiseShown = BrowserTestUtils.waitForEvent(window, "SidebarShown"); EventUtils.synthesizeKey(key, options); await promiseShown;