browser.tabs.query does not always contain all open tabs
Categories
(Fenix :: WebExtensions, defect, P3)
Tracking
(firefox122 affected)
Tracking | Status | |
---|---|---|
firefox122 | --- | affected |
People
(Reporter: ottis0011, Unassigned)
References
Details
Attachments
(1 file, 1 obsolete file)
8.56 MB,
video/quicktime
|
Details |
Steps to reproduce:
Browser: Firefox Nightly 120.0a1 (Build #2015976835), e0a9a83894+
-
Open several tabs from a variety of web sites
-
Add my extension to a virtual android device running Android 13 and Firefox Nightly using the command
web-ext run -t firefox-android --adb-device emulator-5554 --firefox-apk org.mozilla.fenix
-
Click the extension's popup action, which causes the results of
await browser.tabs.query({})
to be printed to the console.
Actual results:
The list that is printed to the console only includes one entry, which is the currently visible tab.
If I navigate to one of the other open tabs, pressing the popup action again will now print a list containing 2 entries, and will now include both tabs.
I have to keep navigating to the other open tabs for them to be included in the list.
It appears that if the extension is not running while the tabs are originally opened, they are invisible to the extension.
Expected results:
All open tabs should appear listed in the console.
Updated•1 year ago
|
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:amejia, could you have a look please?
For more information, please visit BugBot documentation.
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Hi, ottis, could you please provide a video recording of the issue to help us reproduce it? Thanks!
Comment 3•1 year ago
|
||
Comment 4•1 year ago
|
||
I can confirm this is occurring for me as well. I've attached a video. From first glance it seems that query
is not getting tabs that have already unloaded. I've moved it to P3. I am working on another API right now but if no one else has taken this by the time I'm done I can circle back to it.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 6•10 months ago
|
||
Clear a needinfo that is pending on an inactive user.
Inactive users most likely will not respond; if the missing information is essential and cannot be collected another way, the bug maybe should be closed as INCOMPLETE
.
For more information, please visit BugBot documentation.
Updated•10 months ago
|
Description
•