Closed Bug 1658746 Opened 5 years ago Closed 5 years ago

Color picker from <input type="color"> element does not work correctly on WebExtension popups

Categories

(WebExtensions :: Untriaged, defect)

80 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1378527

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.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Product: Firefox → WebExtensions

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).

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.