Add SPI to see if web process is live or got killed
Created attachment 229572 [details] Patch
Comment on attachment 229572 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=229572&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1411 > +- (BOOL)_isValid > +{ > + return _page->isValid(); > +} I think this name is too generic. How about _hasWebProcess? > Source/WebKit2/UIProcess/API/Cocoa/WKWebViewPrivate.h:121 > +- (BOOL)_isValid; This should be a property.
Better way - just make _webProcessIdentifier return 0 if the process was killed.
Created attachment 229577 [details] Patch
Committed r167457: <http://trac.webkit.org/changeset/167457>