Closed
Bug 1364390
Opened 7 years ago
Closed 7 years ago
autofocus attribute has no effect in browser action popup
Categories
(WebExtensions :: Untriaged, defect, P2)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1324255
People
(Reporter: sebastian.noack, Unassigned)
References
Details
(Whiteboard: triaged)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36 Steps to reproduce: Create and install a WebExtension that uses "browser_action.popup", and has an element like this in the popup page: <input type="text" autofocus> This is the extension I had the problem with, but it uses a workaround now: https://github.com/snoack/mypass/tree/master/extension Actual results: When the browser action button is clicked, the popup shows up, but the element is not automatically focused. In the extension referred to above, the element is inside an initially hidden container, which is made visible after some asynchronous calls completed, in case this is relevant. As a workaround, calling focus() on that element from JavaScript does the trick. Expected results: The element should be focused when the browser action popup shows up (also if the element isn't visible initially). For reference, this is the behavior on Chrome.
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Updated•7 years ago
|
Priority: -- → P2
Whiteboard: triaged
Comment 1•7 years ago
|
||
The element likely does have focus, but the browser certainly does not. This is a dup of bug 1365222, but since this is triaged I'm not sure which bug to dup to which. No browser based popup gets real focus when opened (both Share and Pocket illustrate the same behavior). So is that intentional, a regression or an oversight? In any case, it's not actually a webextension bug so much as a panel bug.
Comment 2•7 years ago
|
||
found another, duping to that.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•