URL に相対パスを使用することはできますか?
changelog.htm
と同じディレクトリにあるoptions.xul
のセクションoptions.xul
<setting title="&options.changelog.title;" type="control">
<button label="&options.changelog.label;"
oncommand="openDialog('chrome://myAddon/content/changelog.htm', '',
'dialog=no, modal=no, resizable=yes, width=500, height=600');"/>
</setting>
代替手段はありますか?
更新:
次のことを試みると、NS_ERROR_MALFORMED_URI:"
コンソールにエラー " が表示されます
<setting title="&options.changelog.title;" type="control">
<button label="&options.changelog.label;"
oncommand="openDialog('changelog.htm', '',
'dialog=no, modal=no, resizable=yes, width=500, height=600');"/>
</setting>
更新 2:
テストがオンになっていることを言及する必要があり<em:optionsType>2</em:optionsType>
ましたが、次の回答で説明されているように、機能していないようです。