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

Unified Diff: chrome/renderer/render_view.cc

Issue 1403001: Modifying the "dangerous download" algorithm. (Closed)
Patch Set: Adding .sys and .drv as Dangerous extensions 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
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index 0b2ca2307dabe519843d022c7a10fc28c28aa7d5..3b992f74aad676cc2ea93641712c3b729fb52e76 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -3231,7 +3231,7 @@ void RenderView::didStartProvisionalLoad(WebFrame* frame) {
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 @@ void RenderView::willSendRequest(
}
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