DescriptionFix Guest geolocation API, we were using |bridge_id| and |request_id| interchangeably which is wrong.
A |bridge_id| is specific to geolocation request in chrome/browser/geolocation/* where request_id is BrowserPluginGuest's local id of all types of permission requests.
Fix WebViewTest.GeolocationAPIEmbedderHasAccess* test flakiness, after frustrating hours, I found that ui_test_utils::OverrideGeolocation() is not set up to mock multiple geolocation requests reliably, made tests separate and use cached values for geolocation requests other than the first (/w maxiumAge + timeout = 0).
BUG=225819, 223877
TEST=Added tests to cover bridge_id change, using iframe to trigger second geolocation request from different frame (testMultipleBridgeIdAllow).
Fixed WebViewTest.GeolocationAPIEmbedderHasAccess flakiness due to mocking geolocation (ran them separately on each of win_rel, linux_chromeos, mac_rel and linux_rel trybots for 50/100 times).
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193230
Patch Set 1 #Patch Set 2 : Use correct base. #
Total comments: 4
Patch Set 3 : Test for CancelGeolocationPermission + remove wrong DCHECK. #
Total comments: 2
Patch Set 4 : Address comments from fsamuel@ #Patch Set 5 : Sync. #Messages
Total messages: 11 (0 generated)
|