Commit 7a824368 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

Disable "Convert Enter-in-omnibox to a reload" for webview.

This CL disable "Convert Enter-in-omnibox to a reload" when the
navigation entry are created by WebView.

Some WebView initiated navigation were misclassified as "reload".

Bug: 794020
Change-Id: I443bc00601c33c94005aec0eb4f1592f83b6f64b
Reviewed-on: https://chromium-review.googlesource.com/824682Reviewed-by: default avatarCamille Lamy <clamy@chromium.org>
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524086}
parent 8c14ad2e
......@@ -139,6 +139,10 @@ bool ShouldTreatNavigationAsReload(const NavigationEntry* entry) {
if (!entry)
return false;
// Skip navigations initiated by external applications.
if (entry->GetTransitionType() & ui::PAGE_TRANSITION_FROM_API)
return false;
// We treat (PAGE_TRANSITION_RELOAD | PAGE_TRANSITION_FROM_ADDRESS_BAR),
// PAGE_TRANSITION_TYPED or PAGE_TRANSITION_LINK transitions as navigations
// which should be treated as reloads.
......
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