Is it possible to use a relative path for the URL?
changelog.htm
is in the same directory as options.xul
Section of 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>
Are there alternatives?
Update:
If I try the following I get an error "NS_ERROR_MALFORMED_URI:"
in console
<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>
Update2:
I should have mentioned that my testing was on <em:optionsType>2</em:optionsType>
, and as explained in the following answer, it does not seem to work.