Open
Bug 1180490
Opened 10 years ago
Updated 3 years ago
Cannot change level of panels in linux/mac
Categories
(Core :: XUL, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: noitidart, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150702173756
Steps to reproduce:
User posted on stackoverflow:
http://stackoverflow.com/questions/31143585/linux-ubuntu-cannot-make-panel-elements-be-level-parent
He was not able to change level of panels on linux/mac
I tested with this code from scratchpad and its true, it doesnt work:
var win = Services.wm.getMostRecentWindow('navigator:browser');
var panel = win.document.createElement('panel');
var screen = Services.appShell.hiddenDOMWindow.screen;
var props = {
noautohide: true,
noautofocus: false,
level: 'parent',
style: 'padding:15px; margin:0; width:' + screen.width + 'px; height:' + screen.height + 'px; background-color:steelblue;'
}
for (var p in props) {
panel.setAttribute(p, props[p]);
}
win.document.querySelector('#mainPopupSet').appendChild(panel);
panel.addEventListener('dblclick', function () {
panel.parentNode.removeChild(panel)
}, false);
panel.openPopup(null, 'overlap', screen.availLeft, screen.availTop);
Actual results:
Code works on windows. If you run that code then do alt+tab you see it comes over that, or focus any other window it comes over that. However on linux/mac it does not.
Component: Untriaged → XUL
Product: Firefox → Core
Comment 1•10 years ago
|
||
The issue here is that you can't reinitialize widget-level properties. You can workaround this by setting the hidden property on the popup and then removing it.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•