Firefox xul箭头面板处理程序
我尝试在弹出窗口打开时设置popupshowing处理程序,以便动态设置.panel箭头的右边距我尝试使用XUL绑定,当弹出窗口显示时,我将动态设置.panel箭头的右边距Firefox xul箭头面板处理程序,firefox,xul,Firefox,Xul,我尝试在弹出窗口打开时设置popupshowing处理程序,以便动态设置.panel箭头的右边距我尝试使用XUL绑定,当弹出窗口显示时,我将动态设置.panel箭头的右边距 资源绑定正在运行,但处理程序没有运行。我只是将其复杂化了-修复方法只是将onpopushowing=EXTENSION\u NAME.popushowing添加到面板中 <?xml version="1.0"?> <bindings xmlns="http://www.mozilla.org/xbl"
资源绑定正在运行,但处理程序没有运行。我只是将其复杂化了-修复方法只是将onpopushowing=EXTENSION\u NAME.popushowing添加到面板中
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="panelext_panel_arrow_binding" extends="chrome://global/content/bindings/popup.xml#arrowpanel">
<resources>
<stylesheet src="chrome://panelext/skin/panel.css"/>
</resources>
<handlers>
<handler event="popupshowing">
<![CDATA[
var consoleService = Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService);
consoleService.logStringMessage("panelext CHECK");
]]>
</handler>
</handlers>
</binding>
</bindings>