Index: third_party/WebKit/Source/core/clipboard/DataObject.cpp |
diff --git a/third_party/WebKit/Source/core/clipboard/DataObject.cpp b/third_party/WebKit/Source/core/clipboard/DataObject.cpp |
index c6513633a12aff40f44d173467509a522a30903c..14f5f2b848edd3ccc8c0f7cc53497e018f92628b 100644 |
--- a/third_party/WebKit/Source/core/clipboard/DataObject.cpp |
+++ b/third_party/WebKit/Source/core/clipboard/DataObject.cpp |
@@ -226,6 +226,7 @@ void DataObject::addSharedBuffer(const String& name, PassRefPtr<SharedBuffer> bu |
DataObject::DataObject() |
: m_modifiers(0) |
+ , m_canReadContent(true) |
{ |
} |
@@ -298,6 +299,8 @@ DataObject* DataObject::create(WebDragData data) |
if (!data.filesystemId().isNull()) |
DraggedIsolatedFileSystem::prepareForDataObject(dataObject, data.filesystemId()); |
+ |
+ dataObject->m_canReadContent = data.canReadContent(); |
return dataObject; |
} |
@@ -350,6 +353,7 @@ WebDragData DataObject::toWebDragData() |
itemList[i] = item; |
} |
data.swapItems(itemList); |
+ data.setCanReadContent(m_canReadContent); |
return data; |
} |