| 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 c035b4befecc87b149da90b5183c6d37af97a99b..61179af254dc2d0e63aef4625890518b690cc88c 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -5347,10 +5347,13 @@ const NSTimeInterval kSnapshotOverlayTransition = 0.5;
|
| // If the request is form submission or resubmission, then prompt the
|
| // user before proceeding.
|
| DCHECK(isFormPOSTResubmission);
|
| - [self.delegate webController:self
|
| - onFormResubmissionForRequest:nil
|
| - continueBlock:webViewNavigationBlock
|
| - cancelBlock:defaultNavigationBlock];
|
| + _webStateImpl->ShowRepostFormWarningDialog(
|
| + base::BindBlock(^(bool shouldContinue) {
|
| + if (shouldContinue)
|
| + webViewNavigationBlock();
|
| + else
|
| + defaultNavigationBlock();
|
| + }));
|
| }
|
|
|
| #pragma mark -
|
|
|