Index: Source/core/xml/XMLHttpRequest.cpp |
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp |
index 03f4ee76bc6974be96338ece9b63ee3e41f7708e..8764c90e7e655ecd10b4156c0e8a8906c86a152b 100644 |
--- a/Source/core/xml/XMLHttpRequest.cpp |
+++ b/Source/core/xml/XMLHttpRequest.cpp |
@@ -469,7 +469,10 @@ String XMLHttpRequest::responseType() |
String XMLHttpRequest::responseURL() |
{ |
- return m_response.url().string(); |
+ KURL responseURL(m_response.url()); |
+ if (!responseURL.isNull()) |
+ responseURL.removeFragmentIdentifier(); |
+ return responseURL.string(); |
} |
XMLHttpRequestUpload* XMLHttpRequest::upload() |