summaryrefslogtreecommitdiff
path: root/chromium/content/browser/renderer_host/render_frame_host_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/render_frame_host_impl.cc')
-rw-r--r--chromium/content/browser/renderer_host/render_frame_host_impl.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/content/browser/renderer_host/render_frame_host_impl.cc b/chromium/content/browser/renderer_host/render_frame_host_impl.cc
index e4e16ccdcd2..81ee9846e14 100644
--- a/chromium/content/browser/renderer_host/render_frame_host_impl.cc
+++ b/chromium/content/browser/renderer_host/render_frame_host_impl.cc
@@ -5491,12 +5491,12 @@ void RenderFrameHostImpl::TakeFocus(bool reverse) {
void RenderFrameHostImpl::UpdateTargetURL(
const GURL& url,
blink::mojom::LocalMainFrameHost::UpdateTargetURLCallback callback) {
- // Prerendering pages should not reach this code since the renderer only calls
- // this when the mouse over the URL or keyboard focuses the URL.
- if (lifecycle_state_ == LifecycleStateImpl::kPrerendering) {
- mojo::ReportBadMessage("Unexpected UpdateTargetURL from renderer");
+ // An inactive document should ignore to update the target url.
+ if (!IsActive()) {
+ std::move(callback).Run();
return;
}
+
delegate_->UpdateTargetURL(this, url);
std::move(callback).Run();
}