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

Unified Diff: chrome/renderer/render_view.cc

Issue 5603008: Modify the "dangerous download" algorithm as follows. Original patch by Pier... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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 | « chrome/common/resource_dispatcher.cc ('k') | webkit/glue/resource_loader_bridge.h » ('j') | 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 68377)
+++ chrome/renderer/render_view.cc (working copy)
@@ -3231,7 +3231,7 @@
bool is_top_most = !frame->parent();
if (is_top_most) {
navigation_gesture_ = frame->isProcessingUserGesture() ?
- NavigationGestureUnknown : NavigationGestureAuto;
+ NavigationGestureUser : NavigationGestureAuto;
// Make sure redirect tracking state is clear for the new load.
completed_client_redirect_src_ = GURL();
@@ -3599,6 +3599,8 @@
}
request.setRequestorID(routing_id_);
+ request.setHasUserGesture(frame->isProcessingUserGesture());
+
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kNoReferrers))
request.clearHTTPHeaderField("Referer");
« no previous file with comments | « chrome/common/resource_dispatcher.cc ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698