• Nate Fischer's avatar
    AW: only call onPageStarted once for loadDataWithBaseUrl · 5b685a09
    Nate Fischer authored
    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: default avatarBo <boliu@chromium.org>
    Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
    Commit-Queue: Nate Fischer <ntfschr@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#504441}
    5b685a09
BUILD.gn 29 KB