• Karan Bhatia's avatar
    CTS: Make ExtensionAPITest.ActiveTab work with runtime host permissions enabled. · da05d4bb
    Karan Bhatia authored
    Currently the ExtensionAPITest.ActiveTab fails with the RuntimeHostPermissions
    feature since it assumes that the active tab access grant is revoked when the
    page is navigated. However, with the runtime host permissions feature enabled,
    the active tab grant is only revoked when the page navigates to a different
    origin. Fix the test and also test the behavior with RuntimeHostPermissions
    enabled.
    
    This is in preparation of enabling RuntimeHostPermissions for field trial
    testing.
    
    BUG=888158
    
    Change-Id: I46c2c1f92d273eff80395642d0fe2733528cdf70
    Reviewed-on: https://chromium-review.googlesource.com/1239210
    Commit-Queue: Karan Bhatia <karandeepb@chromium.org>
    Reviewed-by: default avatarDevlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#593691}
    da05d4bb
active_tab_apitest.cc 14.3 KB