Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: ios/web/web_state/ui/crw_wk_web_view_web_controller.mm

Issue 1504493002: Added |-cancelJavaScriptDialogsForWebController:| to UI delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
index c680bac819c6c8de6d660337a0b4c3c270862794..53e3c92b7648c929d6b7c9a3015afe2d446a4436 100644
--- a/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
+++ b/ios/web/web_state/ui/crw_wk_web_view_web_controller.mm
@@ -889,6 +889,11 @@ WKWebViewErrorSource WKWebViewErrorSourceFromError(NSError* error) {
- (void)webViewWebProcessDidCrash {
_webProcessIsDead = YES;
+ if ([self.UIDelegate
+ respondsToSelector:@selector(
Eugene But (OOO till 7-30) 2015/12/04 23:24:11 ditto
kkhorimoto 2015/12/10 01:27:32 Done.
+ cancelJavaScriptDialogsForWebController:)]) {
+ [self.UIDelegate cancelJavaScriptDialogsForWebController:self];
+ }
if ([self.delegate respondsToSelector:
@selector(webControllerWebProcessDidCrash:)]) {
[self.delegate webControllerWebProcessDidCrash:self];
« ios/web/web_state/ui/crw_web_controller.mm ('K') | « ios/web/web_state/ui/crw_web_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698