Closed
Bug 1366746
Opened 7 years ago
Closed 7 years ago
WebExtension popup page doesn't get focus after clicking browserAction
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1324255
People
(Reporter: 61.1p57, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0 Build ID: 20170518105722 Steps to reproduce: 1. Load the extension below: --- manifest.json--- { "name": "Test Popup Focus", "version": "1.0", "manifest_version": 2, "browser_action": { "default_title": "popup", "default_popup": "popup.html" } } --- popup.html --- <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"/> <script src="./popup.js"></script> </head> <body> <div id="input-panel"> <input id="text-box" autofocus> </div> </body> </html> --- popup.js --- window.onload = () => { document.getElementById('text-box').focus() } 2. Click browserAction icon. Actual results: The input doesn't get focus. Expected results: The input should get focus when the popup opens.
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Updated•7 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(kmaglione+bmo)
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
•