Open whimboo opened 5 months ago
The Browser Testing and Tools Working Group just discussed Add event "browsingContext.crashed" to indicate a crash of the web content process
.
In case of Firefox I want to add that at the moment we take down the browser if a tab crashes. I would be really happy to change that when a client can successfully handle those crashes.
At the same time we should make sure that test harnesses can check for existing minidump files and as well correlate those with the received event from the BiDi client. Maybe we would have to add a field to the event that points to the specific minidump files created for this crash.
Maybe we would have to add a field to the event that points to the specific minidump files created for this crash.
I feel like having vendor extensions on this event would be exceptionally useful — we don't seem to have at all specified whether or not events (or other messages) can contain extension fields (nor what "matching" means at all, #102), because one can easily imagine wanting to send PID when possible, maybe some other metadata about the process, maybe a crashlog, maybe a link to a crash file, etc. etc. etc.
But what we want to return seems very likely to vary between implementations.
It would be good to inform the client about crashes of web content processes. In CDP there is the following event:
https://chromedevtools.github.io/devtools-protocol/tot/Target/#event-targetCrashed
The event should contain the usual
BrowsingContextInfo
field as payload.Note: I don't think that we can / have to do the same for browser crashes given that we most likely won't be able to send out this event.