Changeset 164146 in webkit
- Timestamp:
- Feb 14, 2014 5:06:42 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r164138 r164146 1 2014-02-14 Anders Carlsson <andersca@apple.com> 2 3 Add SPI for monitoring web process crashes 4 https://bugs.webkit.org/show_bug.cgi?id=128851 5 6 Reviewed by Beth Dakin. 7 8 * UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h: 9 * UIProcess/Cocoa/NavigationState.h: 10 * UIProcess/Cocoa/NavigationState.mm: 11 (WebKit::NavigationState::setNavigationDelegate): 12 (WebKit::NavigationState::LoaderClient::processDidCrash): 13 1 14 2014-02-14 Anders Carlsson <andersca@apple.com> 2 15 -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKNavigationDelegatePrivate.h
r164138 r164146 38 38 - (void)_webView:(WKWebView *)webView didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge; 39 39 40 - (void)_webViewWebProcessDidCrash:(WKWebView *)webView; 41 40 42 @end 41 43 -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.h
r164138 r164146 87 87 virtual bool canAuthenticateAgainstProtectionSpaceInFrame(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, WebKit::WebProtectionSpace*) override; 88 88 virtual void didReceiveAuthenticationChallengeInFrame(WebKit::WebPageProxy*, WebKit::WebFrameProxy*, WebKit::AuthenticationChallengeProxy*) override; 89 virtual void processDidCrash(WebKit::WebPageProxy*) override; 89 90 virtual void didChangeBackForwardList(WebKit::WebPageProxy*, WebKit::WebBackForwardListItem* addedItem, Vector<RefPtr<WebKit::WebBackForwardListItem>> removedItems) override; 90 91 … … 121 122 bool webViewCanAuthenticateAgainstProtectionSpace : 1; 122 123 bool webViewDidReceiveAuthenticationChallenge : 1; 124 bool webViewWebProcessDidCrash : 1; 123 125 } m_navigationDelegateMethods; 124 126 -
trunk/Source/WebKit2/UIProcess/Cocoa/NavigationState.mm
r164138 r164146 92 92 m_navigationDelegateMethods.webViewCanAuthenticateAgainstProtectionSpace = [delegate respondsToSelector:@selector(_webView:canAuthenticateAgainstProtectionSpace:)]; 93 93 m_navigationDelegateMethods.webViewDidReceiveAuthenticationChallenge = [delegate respondsToSelector:@selector(_webView:didReceiveAuthenticationChallenge:)]; 94 m_navigationDelegateMethods.webViewWebProcessDidCrash = [delegate respondsToSelector:@selector(_webViewWebProcessDidCrash:)]; 94 95 } 95 96 … … 403 404 } 404 405 406 void NavigationState::LoaderClient::processDidCrash(WebKit::WebPageProxy*) 407 { 408 if (!m_navigationState.m_navigationDelegateMethods.webViewWebProcessDidCrash) 409 return; 410 411 auto navigationDelegate = m_navigationState.m_navigationDelegate.get(); 412 if (!navigationDelegate) 413 return; 414 415 [static_cast<id <WKNavigationDelegatePrivate>>(navigationDelegate.get()) _webViewWebProcessDidCrash:m_navigationState.m_webView]; 416 } 417 405 418 void NavigationState::LoaderClient::didChangeBackForwardList(WebKit::WebPageProxy*, WebKit::WebBackForwardListItem* addedItem, Vector<RefPtr<WebKit::WebBackForwardListItem>> removedItems) 406 419 {
Note: See TracChangeset
for help on using the changeset viewer.