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

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc

Issue 2584513003: PlzNavigate: identify same-page browser-initiated navigation. (Closed)
Patch Set: Fix 2 WebContentsImplTest by assigning a document_sequence_number. Created 3 years, 11 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
Index: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
index 1f53fd3d92feca16fd1a9692146b69372fa14cd4..7f854997eab09beefe183a4c8c40bae37da8bf93 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
@@ -209,7 +209,8 @@ void ContentSubresourceFilterDriverFactory::RenderFrameDeleted(
void ContentSubresourceFilterDriverFactory::ReadyToCommitNavigation(
content::NavigationHandle* navigation_handle) {
- DCHECK(!navigation_handle->IsSamePage());
+ if (navigation_handle->IsSamePage())
clamy 2017/01/09 16:58:48 I don't think we want to call ReadyToCommitNavigat
arthursonzogni 2017/01/12 17:32:29 I don't know. I will filter the call to ReadyToCom
nasko 2017/01/13 02:51:09 This means that users of WebContentsObserver will
+ return;
content::RenderFrameHost* render_frame_host =
navigation_handle->GetRenderFrameHost();
GURL url = navigation_handle->GetURL();

Powered by Google App Engine
This is Rietveld 408576698