browserAction popup doesn't trigger browser.tabs.onRemoved

UNCONFIRMED
Unassigned
(NeedInfo from)

Status

defect
P3
normal
UNCONFIRMED
2 years ago
Last year

People

(Reporter: baptiste.themine, Unassigned, NeedInfo)

Tracking

59 Branch
All
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Build ID: 20171024165158

Steps to reproduce:

A WebExtension addon, which contains a browserAction popup, is listening the following events :

browser.tabs.onCreated.addListener(function(tab){
	console.log(tab);
});
browser.tabs.onRemoved.addListener(function(tabid,info){
	console.log(tabid);
});

Steps :
1. Click on the browserAction button which opens popup.
2. browser.tabs.onCreated is triggered and log is displayed in the console.
3. Close popup.
2. browser.tabs.onRemoved is not triggered.

Tested on Firefox Nightly Android 57, 58, and 59.


Actual results:

When popup is closed, browser.tabs.onRemoved is triggered on Firefox Nightly Android 57 and 58 but not on Firefox Nightly Android 59.


Expected results:

When popup is closed, browser.tabs.onRemoved should be triggered.
Component: General → WebExtensions: Android
OS: Unspecified → Android
Product: Firefox for Android → Toolkit
Hardware: Unspecified → All
Version: Firefox 59 → 59 Branch
Flags: needinfo?(lgreco)
Priority: -- → P3
Summary: WebExtensions : browserAction popup doesn't trigger browser.tabs.onRemoved → browserAction popup doesn't trigger browser.tabs.onRemoved
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.