Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2095)

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2745653011: Fix the browser not being notified when a webview embedder handles a navigation. (Closed)
Patch Set: without PlzNavigate Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/frame_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 5a7b20148ac4011cbe71da2b291f1ec54410e926..b5265b568b18a623dcf83f63ea1c9ea81ece3da7 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -5264,6 +5264,10 @@ WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation(
this, is_content_initiated, render_view_was_created_by_renderer,
frame_, info.urlRequest, info.navigationType, info.defaultPolicy,
is_redirect)) {
+ if (IsBrowserSideNavigationEnabled()) {
+ // Need to let the browser know so it can notify its observers.
+ Send(new FrameHostMsg_NavigationHandledByEmbedder(routing_id_));
+ }
return blink::WebNavigationPolicyIgnore;
}
#endif
« no previous file with comments | « content/common/frame_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698