Closed
Bug 1419878
Opened 8 years ago
Closed 8 years ago
Tab not yet removed when onRemoved listener is called
Categories
(WebExtensions :: Compatibility, defect)
WebExtensions
Compatibility
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1396758
People
(Reporter: Oriol, Unassigned)
Details
Attachments
(1 file)
|
641 bytes,
application/x-xpinstall
|
Details |
I'm trying to write a webextension that counts tabs.
The problem is that if I query tabs in a onRemoved listener, the tab is not removed yet. This does not happen on Chrome.
Steps:
1. Go to about:debugging and load the attached xpi as a temporary add-on
2. Open a new window
3. Open a new tab, so that the window has two tabs
4. Close a tab. Now there is 1 tab.
5. The extension counts the number of tabs and shows the result as a badge.
On Firefox I get 2.
On Chrome I get 1, as expected.
Updated•8 years ago
|
Flags: needinfo?(amckay)
Comment 1•8 years ago
|
||
This sounds like a duplicate of bug 1396758, please re-open if you think it isn't.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(amckay)
Resolution: --- → DUPLICATE
Updated•8 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•