我正在构建一个 Thunderbird 扩展,并通过在 install.rdf 中添加以下内容来启用选项弹出窗口
<em:optionsURL>chrome://content/options.xul</em:optionsURL>
这会启用按钮,但单击它时没有任何反应。options.xul 如下所示
<?xml version="1.0"?>
<prefwindow id="EmailToOSN-prefs"
title="StockWatcher 2 Options"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<prefpane id="sw2-stock-pane" label="Stock Settings">
<preferences>
<preference id="pref_symbol" name="extensions.stockwatcher2.symbol" type="string"/>
</preferences>
<hbox align="center">
<label control="symbol" value="Stock to watch: "/>
<textbox preference="pref_symbol" id="symbol" maxlength="4"/>
</hbox>
</prefpane>
</prefwindow>