One method the WPT runner uses to detect a crash inside the browser its to check if WebDriver continues to respond to a simple property get over the connection like current_window_handle
If an exception its returned then its assumed the browser has crashed and WebDriver its restarted
Currently the WebKitGTK webdriver hangs instead of returning an exception.
The Chrome WebDriver returns an InvalidSessionID message in case of crash with the error code "session deleted because of page crash"
We can do something similar for WebKitGTK WebDriver
Created attachment 390394 [details]
Comment on attachment 390394 [details]
Clearing flags on attachment: 390394
Committed r256430: <https://trac.webkit.org/changeset/256430>
All reviewed patches have been landed. Closing bug.