web_contents->WasShown();Due to the visibility requirement change, the browser test now need to call web_contents->WasShown() before sending geolocation request.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Thanks for review!
web_contents->WasShown();Due to the visibility requirement change, the browser test now need to call web_contents->WasShown() before sending geolocation request.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reland "geolocation: Implement visibility-aware pause and resume for position requests"
This is a reland of commit e62f5b7b6ebb275abd1354914e4fd7ec82d2a2b7
Original change's description:
> geolocation: Implement visibility-aware pause and resume for position requests
>
> This CL implements pause and resume support for Blink Geolocation API
> requests, ensuring mid-flight timeout timers correctly pause while a tab
> is hidden and resume with their exact remaining time upon unhiding.
>
> Requests initiated while hidden are left in a dormant state and armed
> upon foregrounding, preventing spurious background dispatches.
>
> Bug: 534027930
> Change-Id: I9c220d781b4bd68b745762cf3ed201e2960cfa55
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8103623
> Reviewed-by: Matt Reynolds <mattre...@chromium.org>
> Commit-Queue: Alvin Ji <alv...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1667572}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |