Open Bug 1391942 Opened 7 years ago Updated 2 years ago

windows.onFocusChanged fires for non-browser windows with untracked windowId's and does not fire when leaving them to a different application

Categories

(WebExtensions :: General, defect, P5)

defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: ke5trel, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [windows])

windows.onFocusChanged documentation states: > "Fired when the currently focused window changes. Will be windows.WINDOW_ID_NONE > if all browser windows have lost focus." Switching focus from a browser window to a non-browser window (eg Library, Page Info, notifications, Browser Console etc) triggers onFocusChanged with a windowId that does not correspond to anything returned by windows.getAll() for any windowType. Switching from these non-browser windows to a different application does not fire onFocusChanged with windowId = -1 (WINDOW_ID_NONE) making application-wide focus detection unreliable.
Whiteboard: focus
Priority: -- → P5
Whiteboard: focus → [windows]
Product: Toolkit → WebExtensions
Component: Untriaged → General
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.