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

Unified Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 20625004: XMLHttpRequest should clear the response encoding when it clears responseText. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XMLHttpRequest.cpp
diff --git a/Source/core/xml/XMLHttpRequest.cpp b/Source/core/xml/XMLHttpRequest.cpp
index 01089b1c9ea6213daa6eebc8e317fc3c5b82fa69..282afdab5166c04df88916d33ba7781716363cc0 100644
--- a/Source/core/xml/XMLHttpRequest.cpp
+++ b/Source/core/xml/XMLHttpRequest.cpp
@@ -831,6 +831,7 @@ void XMLHttpRequest::clearResponse()
void XMLHttpRequest::clearResponseBuffers()
{
m_responseText.clear();
+ m_responseEncoding = String();
m_createdDocument = false;
m_responseDocument = 0;
m_responseBlob = 0;
@@ -1082,6 +1083,7 @@ void XMLHttpRequest::didFinishLoading(unsigned long identifier, double)
m_loader = 0;
changeState(DONE);
+ m_responseEncoding = String();
m_decoder = 0;
if (hadLoader)
« no previous file with comments | « LayoutTests/http/tests/xmlhttprequest/resources/get-windows-1251.cgi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698