Closed Bug 1747301 Opened 3 years ago Closed 4 months ago

Destroy TabSession when the related tab is closed

Categories

(Remote Protocol :: CDP, task, P3)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: jdescottes, Unassigned)

References

Details

We don't automatically destroy the TabSession when the corresponding tab is closed.

A TabSession is created for a TabTarget, which is associated with a specific browser/tab. When the tab closes the TabTarget is automatically closed, but the TabSession is not. Keeping the TabSession alive leads to errors during the shutdown sequence of CDP, see 1747041.

Whiteboard: [webdriver:triage]
Whiteboard: [webdriver:triage]
Priority: -- → P3

The problem right now is that the TabSession is destroyed very late when the connection to it gets closed. By that time the TabTarget is already gone for a while. Maybe the destructor of the TabTarget has to request closing the session and then await it's disposal. In such a case there will always be a message manager available.

CDP is deprecated and we no longer actively work on this protocol. As such lets close out this bug.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.