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

Unified Diff: chrome/renderer/render_view.cc

Issue 3192012: Fix the ChromeFrame ReferrerTest failures. This test fails because we incorre... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 57117)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2527,6 +2527,11 @@
if (renderer_preferences_.browser_handles_top_level_requests &&
IsNonLocalTopLevelNavigation(url, frame, type)) {
GURL referrer(request.httpHeaderField(WebString::fromUTF8("Referer")));
+ // Reset these counters as the RenderView could be reused for the next
+ // navigation.
+ page_id_ = -1;
+ next_page_id_ = 1;
+ last_page_id_sent_to_browser_ = -1;
OpenURL(url, referrer, default_policy);
return WebKit::WebNavigationPolicyIgnore; // Suppress the load here.
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698