popups opened from a panel cause the panel to close
Categories
(Core :: XUL, defect)
Tracking
()
People
(Reporter: blask, Unassigned)
References
Details
Attachments
(3 files, 1 obsolete file)
Updated•8 years ago
|
Comment 1•8 years ago
|
||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
Updated•8 years ago
|
Comment 3•8 years ago
|
||
Updated•8 years ago
|
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Comment 5•7 years ago
|
||
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 15•5 years ago
|
||
Why still Status: UNCONFIRMED
and no priority?
It would be really nice to have. I mean, file input is pretty common element so not being able to use it in popups at all is bad.
Comment 16•5 years ago
|
||
I have to disable the file picker in my add-on.
Will this bug be ever fixed?
Comment 17•5 years ago
|
||
It is a low priority since the work around of using a tab exists. I'm not sure that form controls is the right component though. The problem would need to be addressed more generally with panels, allowing them to remain open during any kind of sub-popup control. Some of those controls are complicated to deal with as they use OS-level controls (e.g. colorpicker)
Comment 21•4 years ago
|
||
(In reply to Shane Caraveo (:mixedpuppy) from comment #17)
It is a low priority since the work around of using a tab exists. I'm not sure that form controls is the right component though. The problem would need to be addressed more generally with panels, allowing them to remain open during any kind of sub-popup control. Some of those controls are complicated to deal with as they use OS-level controls (e.g. colorpicker)
Could you explain the work around of using a tab?
I also can't make file picker work with my add-on.
Comment 22•4 years ago
|
||
You have to reopen your `popup.html' in a new tab like a normal page.
It's a terrible workaround though and pretty shitty UX :(
Comment 24•3 years ago
|
||
I'm not sure why this is reported as UNCONFIRMED. I've attached a minimal reproducer. See https://bugzilla.mozilla.org/show_bug.cgi?id=1762774 for reproduce steps.
Could someone take another look at this? It will be nice to have the correct labels assigned to this bug.
Comment 25•2 years ago
|
||
Thanks. I can reproduce with the attached extension (in comment 24).
(In reply to Shane Caraveo (:mixedpuppy) from comment #17)
I'm not sure that form controls is the right component though. The problem would need to be addressed more generally with panels, allowing them to remain open during any kind of sub-popup control.
Agreed. Form controls happen to be one thing that spawn new windows and cause the popup to lose focus, but there are other things as well; e.g. traditional window.open(..., 'popup=true');
style popups do as well.
I can reproduce this bug with a modified version of the comment 24 extension, where the button triggers a window.open
popup instead of a file-picker. That makes the extension popup disappear in Firefox, but not in Chrome.
So this bug is about popup panels themselves and what causes them to maintain vs. lose-focus-and-disappear. I'm tentatively reclassifying as XUL under that framing. (XUL is largely removed these days but nsXULPopupManager
still exists, and I think it's what manages these WebExtension popups.)
Updated•2 years ago
|
Comment 26•2 years ago
|
||
Comment 27•2 years ago
|
||
Comment 28•2 years ago
•
|
||
Here's a screencast of testcase 2 in Chrome vs. Firefox.
In Chrome, the extension popup-panel remains open even after the window.open-spawned window appears and gains focus (though it does auto-close if I try to interact with it again [not shown in the screencast] or if I close the new window, at t=7s in the screencast).
In Firefox, the extension popup-panel closes immediately as soon as the window.open-spawned popup-window appears (i.e. as soon as I click the button, t=12s in the screencast).
(window.open() might not be a super useful thing for an extension to do (or maybe it is? I'm not sure). I'm just using it to demonstrate that this Firefox-vs-Chromium behavior-difference isn't specific to form control popups, but seems to apply to anything that can generate a new OS-level dialog/window and cause the panel to lose focus.)
Description
•