BackForwardCache: Unblocklist pages requesting Geolocation permission.
This CL allows pages which have requested Geolocation permission from entering BFCache, and verifies that the inflight geolocation requests from renderer are canceled when the page enters bfcache. This CL doesn't implement the request cancel logic. * The Blink code [1] already has this implemented. * This CL is just adding browser_test to verify the cancel logic. We are replacing the "real" implementations of the device service counterpart to a "fake" one so we can: - decouple the browser_test from relying on a real GPS device - "keep the request inflight": renderer requestPosition, but the "fake" service can be Pause()-d to not respond to the request, so we can test that renderer would forcibly cancel the request when put into BFCache on that case. - count the active number of mojo-channels renderer<->device_svc, to confirm that the request has been cancelled. [1] src/third_party/blink/renderer/modules/geolocation/geolocation.cc Bug: 989847 Change-Id: I9b5b5af2ee50418ff92738560039967fcb20b8a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1730153 Commit-Queue: Kouhei Ueno <kouhei@chromium.org> Reviewed-by:Nasko Oskov <nasko@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Reviewed-by:
Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by:
Ken Rockot <rockot@google.com> Reviewed-by:
Hajime Hoshi <hajimehoshi@chromium.org> Reviewed-by:
Lowell Manners <lowell@chromium.org> Reviewed-by:
Alexander Timin <altimin@chromium.org> Cr-Commit-Position: refs/heads/master@{#694645}
Showing
Please register or sign in to comment