AW: only call onPageStarted once for loadDataWithBaseUrl
Previously, WebView would explicitly post onPageStarted for loadDataWithBaseUrl, since this navigation was handled by blink and it did not generate the event. With browser-side navigation (PlzNavigate), this is no longer the case and the navigation code will post this event under the normal pipeline. For this reason, we need to disable the extra postOnPageStarted when browser-side is turned on. As part of the implementation, this adds a Java wrapper around IsBrowserSideNavigationEnabled. This also modifies an integration test to check that we only get onPageStarted called once. Bug: 702785 Test: run_webview_instrumentation_test_apk -f LoadDataWithBaseUrlTest#testloadDataWithBaseUrlCallsOnPageStarted Change-Id: I3abc7b3503feee26e5b2438f9b039be30750e4ef Reviewed-on: https://chromium-review.googlesource.com/683634Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
John Abd-El-Malek <jam@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#504441}
Showing
Please register or sign in to comment