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

Unified Diff: content/public/common/drop_data.cc

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: Cleanup 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/public/common/drop_data.cc
diff --git a/content/public/common/drop_data.cc b/content/public/common/drop_data.cc
index 3536efb21cfd2d49ca8315b23e997ee4b407ec75..713751b54a10a1eda6d49bb8833ace5a598e1fd5 100644
--- a/content/public/common/drop_data.cc
+++ b/content/public/common/drop_data.cc
@@ -16,8 +16,8 @@ DropData::FileInfo::FileInfo(const base::string16& path,
}
DropData::DropData()
- : referrer_policy(blink::WebReferrerPolicyDefault) {
-}
+ : did_originate_from_renderer(false),
+ referrer_policy(blink::WebReferrerPolicyDefault) {}
DropData::~DropData() {
}

Powered by Google App Engine
This is Rietveld 408576698