Closed
Bug 1301089
Opened 8 years ago
Closed 8 years ago
closed tab still visible in tabs array during chrome.tabs.onRemoved event
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1291830
People
(Reporter: zepeuj, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160823121617
Steps to reproduce:
In a background.js add this:
const onRemovedTab = (tabId, removeInfo) => {
chrome.tabs.query({windowId: removeInfo.windowId}, tabs => console.log(tabs.length));
};
const onActivedTab = (activeInfo) => {
chrome.tabs.query({windowId: activeInfo.windowId}, tabs => console.log(tabs.length));
};
chrome.tabs.onRemoved.addListener(onRemovedTab);
chrome.tabs.onActivated.addListener(onActivedTab);
You must have at least 2 tabs opened for the test.
Then you close the active tab.
Actual results:
After the tab is closed:
* the tabs length in the onRemoved listener has not changed because the tab is still accessible with chrome.tabs.query()
* when the other tab is activated the tabs length in the onActivated listener has not changed because the tab is still accessible with chrome.tabs.query()
Expected results:
The closed tab should not be accessible with chrome.tabs.query()
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•