Closed Bug 1856222 Opened 1 year ago Closed 10 months ago

browser.tabs.query does not always contain all open tabs

Categories

(Fenix :: WebExtensions, defect, P3)

Firefox 120
All
Android
defect

Tracking

(firefox122 affected)

RESOLVED INCOMPLETE
Tracking Status
firefox122 --- affected

People

(Reporter: ottis0011, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Steps to reproduce:

Browser: Firefox Nightly 120.0a1 (Build #2015976835), e0a9a83894+

  1. Open several tabs from a variety of web sites

  2. 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

  3. 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.

See Also: → 1551378, 1583281

The severity field is not set for this bug.
:amejia, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(amejiamarmol)
Severity: -- → S3
Flags: needinfo?(amejiamarmol)
Priority: -- → P4

Hi, ottis, could you please provide a video recording of the issue to help us reproduce it? Thanks!

Flags: needinfo?(ottis0011)

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.

Priority: P4 → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attachment #9385695 - Attachment is obsolete: true

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.

Flags: needinfo?(ottis0011)
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: