| 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 d0950fbcb81ea84ea6b353172dec424f7d97ecc2..168ba8a0db8f5c54537a4829dd7070de0ce2cb23 100644
|
| --- a/ios/web/web_state/ui/crw_web_controller.mm
|
| +++ b/ios/web/web_state/ui/crw_web_controller.mm
|
| @@ -5345,10 +5345,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 -
|
|
|