Closed Bug 1828288 Opened 3 years ago Closed 3 years ago

Tab activated triggering twice when console is open using the extensions api, when using ctrl+w

Categories

(DevTools :: Console, defect)

Firefox 113
defect

Tracking

(Not tracked)

RESOLVED INVALID

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.

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.

Component: Untriaged → Console
Product: Firefox → DevTools

After some testing this seems to be a problem on my end. Nevermind.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.