| 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 0758389f047aa29c97410f074cf820f928641919..6b22dcdb0fa71d46eab5b2e861235a3268a59160 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -3146,7 +3146,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // load operation (e.g. notifying all observers) and record the URL so
|
| // that errors reported following the 'NO' reply can be safely ignored.
|
| if ([self shouldClosePageOnNativeApplicationLoad])
|
| - [_delegate webPageOrderedClose];
|
| + _webStateImpl->CloseWebState();
|
| [self stopLoading];
|
| [_openedApplicationURL addObject:request.URL];
|
| return NO;
|
| @@ -3197,7 +3197,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // safely ignored.
|
| [_openedApplicationURL addObject:request.URL];
|
| if ([self shouldClosePageOnNativeApplicationLoad])
|
| - [_delegate webPageOrderedClose];
|
| + _webStateImpl->CloseWebState();
|
| }
|
| return NO;
|
| }
|
| @@ -4365,7 +4365,7 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
|
|
| - (void)webViewDidClose:(WKWebView*)webView {
|
| if (self.sessionController.openedByDOM) {
|
| - [self.delegate webPageOrderedClose];
|
| + _webStateImpl->CloseWebState();
|
| }
|
| }
|
|
|
|
|