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

Unified Diff: Source/web/WebDragData.cpp

Issue 193803002: Prevent web content from forging File entries in drag and drop. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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: Source/web/WebDragData.cpp
diff --git a/Source/web/WebDragData.cpp b/Source/web/WebDragData.cpp
index 84f50a3b748ec6b9a65ef4871b7575a66ac69659..6989fa95192de5122b8239f2ac91aafde3837819 100644
--- a/Source/web/WebDragData.cpp
+++ b/Source/web/WebDragData.cpp
@@ -161,4 +161,10 @@ void WebDragData::setFilesystemId(const WebString& filesystemId)
DraggedIsolatedFileSystem::provideTo(*m_private.get(), DraggedIsolatedFileSystem::supplementName(), DraggedIsolatedFileSystem::create(filesystemId));
}
+void WebDragData::setFilenameForNavigation(const WebString& filename)
+{
+ ensureMutable();
+ m_private->setFilenameForNavigation(filename);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698