Extension development - can I overlay a vbox?
Posted: 2019-09-07, 04:00
First attempt at extension development.
I want to extend the about:permissions window with an additional section for site specific user-agent overrides. I opened it up in DOM inspector, and found that there is a hbox entry for each type of permission, all inside a vbox named 'permissions-box'. I tried to overlay this by adding another hbox block like so:
and I have the relevant entry in chrome.manifest as well -
but when I install it on a fresh profile and restart, there's nothing to be seen (not in DOM inspector either).
Is it possible to overlay at the vbox level, or am I missing something here?
The only example of an overlay I could find when searching was for the main menu, in the XUL School tutorial.
I want to extend the about:permissions window with an additional section for site specific user-agent overrides. I opened it up in DOM inspector, and found that there is a hbox entry for each type of permission, all inside a vbox named 'permissions-box'. I tried to overlay this by adding another hbox block like so:
Code: Select all
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin/"?>
<?xml-stylesheet type="text/css" href="chrome://PermissionsPlus/skin/browserOverlay.css"?>
<overlay id="permissionsplus-browser-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<stringbundleset id="stringbundleset">
<stringbundle id="permissionsplus-string-bundle" src="chrome://permissionsplus/locale/browserOverlay.properties" />
</stringbundleset>
<vbox id="permissions-box" flex="1">
<hbox id="permissionplus-user-agent-override" align="center">
<label id="permissionsbox.section.useragent.label" value="&permissionsbox.section.useragent.label"/>
<textbox id="permissionsbox.section.useragent.value" value="Add user agent override here."/>
</hbox>
</vbox>
</overlay>
Code: Select all
overlay chrome://browser/content/browser.xul chrome://permissionsplus/content/browserOverlay.xul
Is it possible to overlay at the vbox level, or am I missing something here?
The only example of an overlay I could find when searching was for the main menu, in the XUL School tutorial.