Open Bug 1474423 Opened 7 years ago Updated 2 years ago

popups autohide after opening non-gecko sub-popups

Categories

(Toolkit :: UI Widgets, defect, P5)

63 Branch
x86
Windows 10
defect

Tracking

()

Tracking Status
firefox61 --- affected
firefox62 --- affected
firefox63 --- affected

People

(Reporter: cito, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0 Build ID: 20180704003137 Steps to reproduce: To reproduce this issue, you can use the cookie-bg-picker web-extension example that can be found here: https://github.com/mdn/webextensions-examples/tree/master/cookie-bg-picker Contrary to its name, that example extension does not feature a color picker, so you need to add one by replacing the code for the reset button in bgpicker.html, <button>Reset</button> with the code for a color picker: <input type="color" value="#a00000"> Make sure you use the default settings and don't have autohide disabled in the Debugger, as explained here: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Debugging#Debugging_popups Actual results: Now when you click on the button of the cookie-bg-picker web extension, you should see a red button that corresponds to the color picker. When you click that red button, the color picker opens, but the popup of the web extension closes. Expected results: The color picker should open, and the popup of the web extension should also stay open, like when you click on any other input element.
Hi, i tried reproducing this issue using Firefox Nightly 63.0a1 (2018-07-11) but without any success, after i set the ui.popup.disable_autohide = "true" in "about:config" the pop-up from the web extension would also stay open once the color picker is opened. Can you try reproducing this issue using a fresh profile? you have the steps here: https://support.mozilla.org/en-US/kb/profile-manager-create-and-remove-firefox-profiles?redirectlocale=en-US&redirectslug=Managing-profiles#w_starting-the-profile-manager
Flags: needinfo?(cito)
Right, when ui.popup.disable_autohide = true, which is a setting intended to be used for debugging purposes only, then the popup stays open. But when ui.popup.disable_autohide = false, which is the default setting, then it closes. I can reproduce it with 61.0.1 and Nightly 63.0a1 (2018-07-11). Note that I have tested it under Windows 10. Maybe it behaves differently on other OSes.
Flags: needinfo?(cito)
Yes it does reproduce for me as well when the ui.popup.disable_autohide = false, i will set the component for this one to Toolkit Add-on manager
Status: UNCONFIRMED → NEW
Component: Untriaged → Add-ons Manager
Ever confirmed: true
OS: Unspecified → Windows 10
Product: Firefox → Toolkit
Hardware: Unspecified → x86
Flags: needinfo?(mixedpuppy)
This is a very long standing issue with popups in Firefox. There are several types of popups that will not work from within a popup, this is just one. You're probably better off finding a js library that implements its own color picker than trying to get popups within popups to work right.
Component: Add-ons Manager → XUL Widgets
Flags: needinfo?(mixedpuppy)
Priority: -- → P5
Summary: Web-extension popup auto hides after click on color picker → popups autohide after click on color picker
Summary: popups autohide after click on color picker → popups autohide after opening non-gecko sub-popups
See Also: → 1378527
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.