Backed out changeset f56181344f2a (bug 1921536) for causing bc failures @ browser_bookmark_context_menu_contents.js & browser_reviewchecker_sidebar.js CLOSED TREE
This commit is contained in:
@@ -27,14 +27,7 @@ var showSidebar = async function (win = window) {
|
||||
|
||||
var hideSidebar = async function (win = window) {
|
||||
let button = win.document.getElementById("sidebar-button");
|
||||
let box = win.document.getElementById("sidebar-box");
|
||||
|
||||
EventUtils.synthesizeMouseAtCenter(button, {}, win);
|
||||
await BrowserTestUtils.waitForMutationCondition(
|
||||
box,
|
||||
{ attributes: true, attributeFilter: ["hidden"] },
|
||||
() => box.hidden
|
||||
);
|
||||
ok(!win.SidebarController.isOpen, "Sidebar is closed");
|
||||
ok(!button.hasAttribute("checked"), "Toolbar button isn't checked");
|
||||
};
|
||||
@@ -81,16 +74,7 @@ add_task(async function () {
|
||||
}
|
||||
}
|
||||
let otherWin = await BrowserTestUtils.openNewBrowserWindow();
|
||||
info("Waiting for the sidebar to initialize in the new browser window");
|
||||
await BrowserTestUtils.waitForCondition(
|
||||
() => otherWin.SidebarController.uiStateInitialized,
|
||||
"The uiStateInitialized is true in the new window"
|
||||
);
|
||||
if (!sidebarRevampEnabled) {
|
||||
ok(
|
||||
!otherWin.SidebarController.isOpen,
|
||||
"The sidebar panel isn't open in the new window"
|
||||
);
|
||||
await showSidebar(otherWin);
|
||||
is(
|
||||
otherWin.SidebarController.currentID,
|
||||
|
||||
Reference in New Issue
Block a user