Tab activated triggering twice when console is open using the extensions api, when using ctrl+w
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
People
(Reporter: mprops, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/113.0
Steps to reproduce:
Found a bug in my extension (a tab manager). I noticed a ghost tab was left hanging. I was able to reproduce this behavior by closing a tab with ctrl+w when the page's console is open. It works normally if the console is not open, and the bug only happens when closed with ctrl+w. The difference is that a normal close triggers 1 remove event and 1 activation event. Whereas with the console open it triggers a remove event and 2 activation events, one referring to the closed tab. That activation event for the closed tab was messing with my code. I don't think it should fire the action event twice like that.
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Console' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
After some testing this seems to be a problem on my end. Nevermind.
Description
•