From 8dd16259287f58f9273002717ec4d27e97127719 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 07:43:14 +0200 Subject: Merging upstream version 127.0. Signed-off-by: Daniel Baumann --- testing/mochitest/tests/browser/browser_waitForFocus.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testing/mochitest/tests') diff --git a/testing/mochitest/tests/browser/browser_waitForFocus.js b/testing/mochitest/tests/browser/browser_waitForFocus.js index b41b07f423..93d682525a 100644 --- a/testing/mochitest/tests/browser/browser_waitForFocus.js +++ b/testing/mochitest/tests/browser/browser_waitForFocus.js @@ -103,12 +103,12 @@ add_task(async function () { // Tests focusing the sidebar, which is in a parent process subframe // and then switching the focus to another window. add_task(async function () { - await SidebarUI.show("viewBookmarksSidebar"); + await SidebarController.show("viewBookmarksSidebar"); gURLBar.focus(); // Focus the sidebar. - await SimpleTest.promiseFocus(SidebarUI.browser); + await SimpleTest.promiseFocus(SidebarController.browser); is( document.activeElement, document.getElementById("sidebar"), @@ -120,7 +120,7 @@ add_task(async function () { ); // Focus the sidebar again, which should cause no change. - await SimpleTest.promiseFocus(SidebarUI.browser); + await SimpleTest.promiseFocus(SidebarController.browser); is( document.activeElement, document.getElementById("sidebar"), @@ -156,5 +156,5 @@ add_task(async function () { ); await BrowserTestUtils.closeWindow(window2); - await SidebarUI.hide(); + await SidebarController.hide(); }); -- cgit v1.2.3