我有这个代码:
<?xul-overlay href="chrome://myextention/popup.xul"?>
<toolbarbutton id="button" type="menu">
<panel id="popup" />
</toolbarbutton>
当我单击button它时,它会打开popup面板。现在,当我单击另一个窗口中的元素时,我想打开同一个面板。我正在使用当前浏览器navigator:browser,找到面板(例如panel.state工作)并尝试打开它,但它不起作用。
我试过了openPopup,open = true而且openPopupAtScreen- 这些都不起作用。有任何想法吗?