Index: content/browser/frame_host/navigation_handle_impl.cc |
diff --git a/content/browser/frame_host/navigation_handle_impl.cc b/content/browser/frame_host/navigation_handle_impl.cc |
index 2e525bbe4956a473d0c41d0d2051e1d5801bdef4..6edf22d5591f2b5c8a22c099076abd30e03b1740 100644 |
--- a/content/browser/frame_host/navigation_handle_impl.cc |
+++ b/content/browser/frame_host/navigation_handle_impl.cc |
@@ -656,6 +656,14 @@ void NavigationHandleImpl::DidCommitNavigation( |
} else { |
state_ = DID_COMMIT; |
} |
+ |
+ if (url_.SchemeIs(url::kDataScheme) && IsInMainFrame() && |
+ IsRendererInitiated()) { |
+ GetRenderFrameHost()->AddMessageToConsole( |
+ CONSOLE_MESSAGE_LEVEL_WARNING, |
+ "Upcoming versions will block content-initiated top frame navigations " |
+ "to data: URLs. For more information, see https://goo.gl/BaZAea."); |
+ } |
} |
void NavigationHandleImpl::Transfer() { |