Closed
Bug 1630144
Opened 6 years ago
Closed 6 years ago
browser.windows.WINDOW_ID_CURRENT does not work in GeckoView
Categories
(GeckoView :: Extensions, defect, P2)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1584252
People
(Reporter: jonalmeida, Unassigned)
Details
When testing out the Multi Account Containers add-on, the error log is seen when trying to access browser.windows.WINDOW_ID_CURRENT:
TypeError: can't access property "WINDOW_ID_CURRENT", browser.windows is undefined
GV version: 77.0a1-20200413034542
R-B version: 1.0.2016
A-C version: 39.0.20200414130248
| Reporter | ||
Comment 1•6 years ago
|
||
The work-around mentioned on Matrix was using browser.tabs.query({ active: true }).windowId to get the windowId for the active session.
Priority: -- → P2
Flags: needinfo?(agi)
Comment 2•6 years ago
|
||
The MAC add-on should just do tabs.query({ active: true, currentWindow: true}) I think, that would help for mobile.
In general this problem will be fixed in Bug 1584252.
Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(agi)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•