Color picker from <input type="color"> element does not work correctly on WebExtension popups
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
People
(Reporter: bz, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36
Steps to reproduce:
Create a simple WebExtension that includes a pop-up window. To this pop-up window, add a HTML element of <input type="color">. When clicking on this field to pick a color, the OS's native color picker window opens, but the WebExtension pop-up closes due to losing focus.
Actual results:
When a color is picked through the system color picker, the new color is not propagated to the field in the WebExt pop-up because the page has been unloaded while the color was being picked.
Expected results:
It is expected that the color gets correctly applied to the input element. It is worth noting that, if the WebExt is loaded as a temporary extension and "Disable pop-up autoclose" is turned on in its inspector, the color is properly applied to the input element after closing the color picker.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
This is a duplicate of Bug 1597143, which has been closed as a duplicate of the more general issue tracked by Bug 1378527 (basically the color picker opens a dialog which make the browserActor popup to be auto-closed because it did lose focus, which also happens for other input elements like the file picker, and that's also why "Disable pop-up autoclose" has the outcome described in comment 0).
Description
•