popup-tab
popup-tab copied to clipboard
Popup window forced on top (Linux)
The created popup window is somehow flagged or forced to be above (overlapping) other Firefox windows. It will not lower. I see this on Linux but not Windoz 10. I tried Ubuntu 14 (Unity) and Debian Stretch (Xfce4 ) and problem appears in both.
I'm not sure if this is controllable. There is an alwaysOnTop property on Window type, but I don't know how to set it.
I guess I could try a window-type of panel instead of popup, also, the problem could be coming from the onFocusChanged listener. It might be necessary to check for WINDOW_ID_NONE ref: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/windows/onFocusChanged
It's not the alwaysOnTop property, it seems like it's just because of the popup type.

Would type: "panel" solve this?
No, setting the type to panel is actually the exact same as popup in this case. I don't know if it can be fixed without an api change for WebExtensions.
Also:
- https://github.com/aqt/webext-popup/issues/1#issue-262936402
Currently not possible due to API limitations, …