| Index: third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| diff --git a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| index 66b9457b48a42b0fc524b5e73851c94df520491c..cc579d1d50a5558b64b4293f66ef4a56a77c1cb0 100644
|
| --- a/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| +++ b/third_party/WebKit/Source/core/clipboard/DataTransfer.cpp
|
| @@ -43,6 +43,7 @@
|
| #include "platform/MIMETypeRegistry.h"
|
| #include "platform/clipboard/ClipboardMimeTypes.h"
|
| #include "platform/clipboard/ClipboardUtilities.h"
|
| +#include "platform/network/NetworkUtils.h"
|
| #include <memory>
|
|
|
| namespace blink {
|
| @@ -276,8 +277,8 @@ static void writeImageToDataObject(DataObject* dataObject,
|
| String imageExtension = cachedImage->getImage()->filenameExtension();
|
| ASSERT(!imageExtension.isEmpty());
|
|
|
| - // Determine the filename for the file contents of the image.
|
| - String filename = cachedImage->response().suggestedFilename();
|
| + String filename = NetworkUtils::getSuggestedFilename(
|
| + url, cachedImage->response().httpHeaderField("content-disposition"));
|
| if (filename.isEmpty())
|
| filename = url.lastPathComponent();
|
|
|
|
|