https://bugs.webkit.org/show_bug.cgi?id=133357
Reviewed by Anders Carlsson.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView _killWebContentProcess]):
* UIProcess/API/Cocoa/WKWebViewPrivate.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@169435
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2014-05-28 Timothy Horton <timothy_horton@apple.com>
+
+ Add WKWebView SPI to forcefully kill the associated Web process
+ https://bugs.webkit.org/show_bug.cgi?id=133357
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView _killWebContentProcess]):
+ * UIProcess/API/Cocoa/WKWebViewPrivate.h:
+
2014-05-28 Dan Bernstein <mitz@apple.com>
[Cocoa] Crash when trying to decode an instance of a class inheriting from WKObject
return _page->isValid() ? _page->processIdentifier() : 0;
}
+- (void)_killWebContentProcess
+{
+ if (!_page->isValid())
+ return;
+
+ _page->process().terminate();
+}
+
- (NSData *)_sessionState
{
return [wrapper(*_page->sessionStateData(nullptr, nullptr).leakRef()) autorelease];
- (void)_setOverlaidAccessoryViewsInset:(CGSize)inset;
+- (void)_killWebContentProcess;
+
// FIXME: Remove this once nobody uses it.
@property (nonatomic, readonly) NSURL *activeURL;