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

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

Issue 1504493002: Added |-cancelJavaScriptDialogsForWebController:| to UI delegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SEL stack variables 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_web_controller.mm
diff --git a/ios/web/web_state/ui/crw_web_controller.mm b/ios/web/web_state/ui/crw_web_controller.mm
index 43b1f97c2e818635ea150411989d4e579d704fcc..9d14095f931d9b7ce29d765f282dd96ef6746bd3 100644
--- a/ios/web/web_state/ui/crw_web_controller.mm
+++ b/ios/web/web_state/ui/crw_web_controller.mm
@@ -691,6 +691,11 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
if (!self.webView)
return;
+ SEL cancelDialogsSelector =
+ @selector(cancelJavaScriptDialogsForWebController:);
+ if ([self.UIDelegate respondsToSelector:cancelDialogsSelector])
+ [self.UIDelegate cancelJavaScriptDialogsForWebController:self];
+
if (allowCache)
_expectedReconstructionURL = [self currentNavigationURL];
else
« no previous file with comments | « ios/web/public/web_state/crw_web_user_interface_delegate.h ('k') | ios/web/web_state/ui/crw_wk_web_view_web_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698