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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2528813002: Fix Self-Referencing OOPIF Infinite Loop (Closed)
Patch Set: actually fix broken test 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: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 19b6871a0dd725a5d5ee74355f97b54f3b8e7f81..9d0c86c0949951e4cb4b68576a1de742ab37951a 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -353,6 +353,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// Populates |throttles_| with the throttles for this navigation.
void RegisterNavigationThrottles();
+ // Checks for attempts to navigate to a page that is already referenced more
+ // than once in the frame's ancestors. This is a helper function used by
+ // WillStartRequest and WillRedirectRequest to prevent the navigation.
+ bool IsSelfReferentialURL();
+
// See NavigationHandle for a description of those member variables.
GURL url_;
scoped_refptr<SiteInstance> starting_site_instance_;

Powered by Google App Engine
This is Rietveld 408576698