New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 852239 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

onRemoved fire when a tab is discarded

Reported by cado...@gmail.com, Jun 13 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

Steps to reproduce the problem:
1- Put a listener with onRemoved event 
2- Discard a tab
3- onRemoved is fired even if the tab was not closed but only discarded to save memory.

See the included video to have a better understanding of the issue it cause. 

What is the expected behavior?

What went wrong?
I'm using an extension (Tabulator https://github.com/akhaku/tabulator ) that use the onRemoved event to delete the screenshot of the tabs when they are closed but the problem is  that the event is also fired when the tabs goes in discarded state too.

When the tabs are discarded via "chrome.tabs.discard" by an extension or chrome itself it should not fire a, "onRemoved" event since the tab is nor closed.

IMO one good solution would be to have an event to detect if tab is discarded. 

Here's a video to demonstrate the problem that this false message cause with this extension and many other that expect to receive the onRemoved event only when a tab is closed and not when a tabs enter in a discarded state: http://screencast-o-matic.com/watch/cF1IfxFhMj

If it is not enough clear let me know and I will to make my best to answer you questions. 

Regards !

Did this work before? No 

Does this work in other browsers? No

Chrome version: 66.0.3359.117 (Build officiel) (32 bits)  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: Shockwave Flash 28.0 r0
 
Labels: Needs-Milestone
Cc: sindhu.chelamcherla@chromium.org
Components: Platform>Extensions
Labels: Needs-Feedback Triaged-ET
@Reporter: Could you please let us know how to install tabulator extension from downloaded .zip folder from  https://github.com/akhaku/tabulator . Or else please provide this extension in form of .zip folder along with manifest.json file. This would help in further triaging of the issue.

Thanks!

Comment 3 by cado...@gmail.com, Jun 15 2018

To see the interface just open a new tab since the extension override the new tab page.

Regards ! 😊
Tabulator.zip
66.1 KB Download
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 15 2018

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment