[iOS] Disable share menu when overlays are presented.
The share menu requires JavaScript execution to capture the page's canonical URL, but script execution is halted when JavaScript dialogs are running. This CL adds LocationBarMediator as an OverlayPresenterObserver and disables the button when a overlays are displayed in OverlayModality::kWebContentArea. To accomplish this, the mediator needs access to the OverlayPresenter at that modality, which requires plumbing the Browser object through BVC to the LocationBarCoordinator. Bug: 987247 Change-Id: Ifccd68ae283e27c609e2204795be54cd0500516b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1742889 Commit-Queue: Kurt Horimoto <kkhorimoto@chromium.org> Reviewed-by:Stepan Khapugin <stkhapugin@chromium.org> Reviewed-by:
Eugene But <eugenebut@chromium.org> Reviewed-by:
edchin <edchin@chromium.org> Reviewed-by:
Sergio Collazos <sczs@chromium.org> Cr-Commit-Position: refs/heads/master@{#692912}
Showing
This diff is collapsed.
Please register or sign in to comment