Open sadym-chromium opened 3 years ago
Current CDP implementation: an event per target. https://chromedevtools.github.io/devtools-protocol/tot/Target/#event-targetDestroyed
@jgraham @burg do you know what the debug/inspector protocols of Firefox and Safari do here? Would one event per context destroyed be simpler for you as well?
Just returning the context ids seems fine; I don't think the URLs are necessary here. I don't know about the implementation complexity, but the problem with mutliple events for cases like this is it goes against the principle of reducing the amount of traffic over the wire; conceptually a single thing is happening (a context is being discarded along with its descendants), so representing that with one event seems at least better in principle.
Currently, event
browsingContext.contextDestroyed
contains all theBrowsingContextInfo
. I suggest to keep onlycontext
, which seems to be enough.