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

Unified Diff: content/browser/web_contents/web_drag_dest_gtk.h

Issue 207013003: Mark drags starting in web content as tainted to avoid file path forgery (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More fixes and comment Created 6 years, 9 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/web_contents/web_drag_dest_gtk.h
diff --git a/content/browser/web_contents/web_drag_dest_gtk.h b/content/browser/web_contents/web_drag_dest_gtk.h
index 7258e1bc43ca126975c2e94526a07aa8cbc63607..aef31646c118b16f25ec3238622580ef2f5feee5 100644
--- a/content/browser/web_contents/web_drag_dest_gtk.h
+++ b/content/browser/web_contents/web_drag_dest_gtk.h
@@ -85,6 +85,9 @@ class CONTENT_EXPORT WebDragDestGtk {
// source.
int data_requests_;
+ // Whether the drag we're currently handling originated from a renderer.
+ bool renderer_tainted_;
+
// The last time we sent a message to the renderer related to a drag motion.
gint drag_over_time_;

Powered by Google App Engine
This is Rietveld 408576698