Commit 50e04ea7 authored by Friedrich Horschig's avatar Friedrich Horschig Committed by Commit Bot

Clear keyboard accessory suggestions on reload

Before this CL, the accessory would only clear the accessory suggestions
when the origin changes during a navigation or when new suggestions
overwrite the existing ones.
With this CL, the accessory also clears the suggestions when a reload
was the reason for a page navigation.

Bug: 902716
Change-Id: I897dd774a31676adb4aede8fc4016446f058ffa0
Reviewed-on: https://chromium-review.googlesource.com/c/1323712Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Commit-Queue: Friedrich Horschig [CET] <fhorschig@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606476}
parent 74a4cfc0
......@@ -203,9 +203,6 @@ void PasswordAccessoryController::RefreshSuggestionsForField(
}
void PasswordAccessoryController::DidNavigateMainFrame() {
if (current_origin_.IsSameOriginWith(
web_contents_->GetMainFrame()->GetLastCommittedOrigin()))
return; // Clean requests only if the navigation was across origins.
favicon_tracker_.TryCancelAll(); // If there is a request pending, cancel it.
current_origin_ = url::Origin();
icons_request_data_.clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment