| 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 851a9adc829b388ffb0c268ddec85557beae80aa..7f7ccb516da9c4848a93dd7722978245e9a22ed5 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -1310,8 +1310,10 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // Load the url. The UIWebView delegate callbacks take care of updating the
|
| // session history and UI.
|
| const GURL targetURL([self currentNavigationURL]);
|
| - if (!targetURL.is_valid())
|
| + if (!targetURL.is_valid()) {
|
| + [self didFinishWithURL:targetURL loadSuccess:NO];
|
| return;
|
| + }
|
|
|
| // JavaScript should never be evaluated here. User-entered JS should be
|
| // evaluated via stringByEvaluatingUserJavaScriptFromString.
|
|
|