Index: Source/core/page/DragController.cpp |
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp |
index 8a56f75d594ef36f29ce509c49306c31157c5ca4..2eb8351eaf68e30e7f6fb232a0a135c4f383c9fc 100644 |
--- a/Source/core/page/DragController.cpp |
+++ b/Source/core/page/DragController.cpp |
@@ -166,7 +166,7 @@ static PassRefPtr<DocumentFragment> documentFragmentFromDragData(DragData* dragD |
String url = dragData->asURL(DragData::DoNotConvertFilenames, &title); |
if (!url.isEmpty()) { |
RefPtr<HTMLAnchorElement> anchor = HTMLAnchorElement::create(document); |
- anchor->setHref(url); |
+ anchor->setHref(AtomicString(url)); |
if (title.isEmpty()) { |
// Try the plain text first because the url might be normalized or escaped. |
if (dragData->containsPlainText()) |