[iOS] Prevent empty omnibox popup from opening on incognito pages
Before, the call to [self.omniboxPopupCoordinator openPopup] in the location bar coordinator would always add the popup, under the assumption that there would always be at least one suggestion (the current page's URL). However, on incognito pages (both NTP and regular pages), this doesn't appear and there are no suggestions, so the popup appears, but is blank. Instead of manually ordering the popup to appear or disappear, we can use the popup's intrinsic content size, which is already how the popup is being sized on iPad. Thus, when we were ordering the popup to appear or collapse, we can instead just update the display status. Bug: 933133 Change-Id: I11d3dff55f1a2f13daad259370e81df6ad7cc55a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1514573 Commit-Queue: Robbie Gibson <rkgibson@google.com> Reviewed-by:Stepan Khapugin <stkhapugin@chromium.org> Reviewed-by:
Gauthier Ambard <gambard@chromium.org> Cr-Commit-Position: refs/heads/master@{#641681}
Showing
Please register or sign in to comment