This isnt a solution but start of one.
Option 1
Figure out how to set a style sheet with more importance then this one here:
It looks like when the inactive=true
attribute is set on it chrome://global/content/xul.css
line 289 it gets a css important of height is 0. I tried registering a style sheet with my own height
This is whats applied when `inactive=true` attribute is on it:
toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) {
min-height: 0 !important;
height: 0 !important;
-moz-appearance: none !important;
border-style: none !important;
}
I tried this but my importance is not overriding this, this page is probably worth a read, its about css order priority i think it can be done with this: http://hungred.com/useful-information/css-priority-order-tips-tricks/
I tried this code but it wouldnt take more importance:
// globals
Cu.import('resource://gre/modules/Services.jsm');
var sss = Cc['@mozilla.org/content/style-sheet-service;1'].getService(Ci.nsIStyleSheetService);
try {
sss.unregisterSheet(cssUri, sss.AUTHOR_SHEET);
} catch (ignore) {}
var cssUri;
var css = 'toolbar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) { height: 50px !important; min-height: 50px !important;';
var newURIParam = {
aURL: 'data:text/css,' + encodeURIComponent(css),
aOriginCharset: null,
aBaseURI: null
};
var cssUri = Services.io.newURI(newURIParam.aURL, newURIParam.aOriginCharset, newURIParam.aBaseURI);
sss.loadAndRegisterSheet(cssUri, sss.AUTHOR_SHEET);
I also tried var css = '#toolbar-menubar[type="menubar"][autohide="true"][inactive="true"]:not([customizing="true"]) { height: 50px !important; min-height: 50px !important;';
notoice how i used #toolbar-menubar
id instead of tag selector, id has highest importance, but it didnt work even though i kept the selectivity after it.
Option 2
Mutation observer, whenever inactive=true gets attached, remove it. This is sure fire without thinking guranteed. However I think the CSS option would be preferred as it gives better for performance.