Commit 266ef855 authored by Eugene But's avatar Eugene But Committed by Commit Bot

Disable StopNavigationAfterPolicyDeciderCallback for iOS 13.

WKWebView has undefined behavior regarding start the navigation
on iOS 13. It's not a bug, just a difference in behavior from
iOS 11 and 12, where navigation always starts on simulator but
never starts on device.

The test is disabled for iOS 13, because it's not possible
(and unnecessary) to test undefined behavior.

Bug: 983150
Change-Id: I69f5b503bc994bebd803fda4021cb88d4ba0c3e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1698779Reviewed-by: default avatarRohit Rao <rohitrao@chromium.org>
Commit-Queue: Eugene But <eugenebut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#676878}
parent cddea030
......@@ -2256,6 +2256,12 @@ TEST_P(WebStateObserverTest, ImmediatelyStopNavigation) {
// simulator-only.
#if TARGET_IPHONE_SIMULATOR
TEST_P(WebStateObserverTest, StopNavigationAfterPolicyDeciderCallback) {
if (@available(iOS 13, *)) {
// The navigation may or may not start, which is ok, but there is no need to
// test this scenario.
return;
}
GURL url(test_server_->GetURL("/hung"));
NavigationContext* context = nullptr;
int32_t nav_id = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment