Open
Bug 1653876
Opened 5 years ago
Updated 5 months ago
tabs API stuck on discarded tabs - promiseTabWhenReady should not wait for discarded tabs
Categories
(WebExtensions :: General, defect, P2)
WebExtensions
General
Tracking
(Not tracked)
NEW
People
(Reporter: robwu, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [addons-jira])
Attachments
(1 file)
961 bytes,
application/x-xpinstall
|
Details |
STR:
- Load attached extension (either at
about:debugging
, or on Nightly withxpinstall.signatures.required
=false
atabout:config
). - Open the global JS console with "Show Content Messages" enabled (or look at the extension's background page's console)
- Click on the extension button.
- Look at the console from step 2. It contains some messages including "Awaiting detectLanguage"
Expected:
- After "Awaiting detectLanguage", there should either be a message:
- "detectLanguage result(...) = ...".
- or an error indicating that the (discarded) tab is not available.
Actual:
- After "Awaiting detectLanguage", there is no more message.
- Even when I click on the tab (which loads the content), the
tabs.detectLanguage
call doesn't resolve. This means that the promise is stuck forever.
It's getting stuck in the promiseTabWhenReady
function (which is also used by many other tabs methods): https://searchfox.org/mozilla-central/rev/b2395478c6adf6e5b241be1610fb1d920ed995ed/browser/components/extensions/parent/ext-tabs.js#513-529
(similar logic also exists on Android)
Reporter | ||
Comment 1•5 years ago
|
||
I found this while reducing the test case from https://bugzilla.mozilla.org/show_bug.cgi?id=1652925#c18.
Although this bug is entirely different from bug 1499667, I'm still linking the two since the other bug's title is a way to describe this bug to users.
Bug 1640192 is definitely (partially) caused by this bug.
Updated•5 years ago
|
Assignee: nobody → rob
Severity: -- → S2
Priority: -- → P1
Comment 2•2 years ago
|
||
Unassigned and changed to P2/S3, same as Bug 1640192.
Assignee: rob → nobody
Severity: S2 → S3
Priority: P1 → P2
Whiteboard: [addons-jira]
Updated•2 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•