Skip to content

Commit

Permalink
[ios] Show error page over content filter webkit errors.
Browse files Browse the repository at this point in the history
iOS 12.2 has a bug where the WKWebView internal page doesn't display.

Bug: 950488, 793317
Change-Id: Idf3e26125b121a7b753f65e176337f5fc67ce2ee
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1562218
Reviewed-by: Eugene But <eugenebut@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Auto-Submit: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#649632}
  • Loading branch information
Justin Cohen authored and Commit Bot committed Apr 10, 2019
1 parent cda0515 commit 4caa364
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ios/web/web_state/ui/crw_web_controller.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5235,13 +5235,6 @@ - (void)handleLoadError:(NSError*)error
return;
}

if (error.code == web::kWebKitErrorUrlBlockedByContentFilter &&
web::GetWebClient()->IsSlimNavigationManagerEnabled()) {
// If URL is blocked due to Restriction, do not take any further action as
// WKWebView will show a built-in error.
return;
}

if (error.code == web::kWebKitErrorFrameLoadInterruptedByPolicyChange) {
// This method should not be called if the navigation was cancelled by
// embedder.
Expand Down

0 comments on commit 4caa364

Please sign in to comment.