Closed
Bug 1365222
Opened 8 years ago
Closed 8 years ago
focus panels when opened
Categories
(WebExtensions :: General, enhancement, P5)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1324255
People
(Reporter: jkt, Unassigned)
References
Details
(Whiteboard: [design-decision-needed])
Using the page visibility API or any other means I couldn't auto focus an item in my browser action without the user focusing the action itself.
document.addEventListener("focus", () => {
// Initial page focus received can now .focus() element desired
});
Was expecting the following to work:
document.addEventListener("visibilitychange", () => {
importantEl.focus();
}, false);
This means users who use keyboards have to do the following:
1. Trigger command shortcut
2. Tab
3. Hit other shortcuts the extension has setup in page listeners
2. seems like a bug to me, search extensions for example won't be intuitive.
I'm not sure what Chrome does here for commands?
Updated•8 years ago
|
Flags: needinfo?(mixedpuppy)
Priority: -- → P5
Whiteboard: investigating
Comment 1•8 years ago
|
||
pageAction and browserAction panels are not focused when they are opened, in fact none of our panels have focus (e.g. pocket) without the user progressing focus somehow (tab, click). We'll need to make a decision on whether page/browserAction should receive focus on opening. That sounds more straightforward than it is (I attempted to move focus into browser.document with focusmanager, it didn't budge).
Flags: needinfo?(mixedpuppy)
Summary: [commands] Browser action isn't focused when _execute_browser_action is triggered → focus panels when opened
Whiteboard: investigating → [design-decision-needed]
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•