Trick: middle-click on sidebar splitter to call deprecated toggleSidebar() and correctly initialize sidebars.
There is new API: SidebarUI.toggle(), SidebarUI.show() and looks like now we have notifications:
let selBrowser = gBrowser.selectedBrowser;
selBrowser.messageManager.sendAsyncMessage("Sidebar:VisibilityChange",
{commandID: commandID, isOpen: true}
);
[Upd] Will be notified only child process? D'oh...
Trick: middle-click on sidebar splitter to call deprecated
toggleSidebar()
and correctly initialize sidebars. There is new API:SidebarUI.toggle()
,SidebarUI.show()
and looks like now we have notifications:[Upd] Will be notified only child process? D'oh...