Bug 119358

Summary: Reuse of XMLHttpRequests causes character corruption in response text
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: XMLAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Critical CC: abarth, andersca, ap, beidson, commit-queue, ddkilzer, ggaren, sam, webkit-bug-importer
Priority: P2 Keywords: BlinkMergeCandidate, InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fixes the bug none

Description Ryosuke Niwa 2013-07-31 16:42:11 PDT
Merge https://chromiumcodereview.appspot.com/20625004

XMLHttpRequest should clear the response encoding if it clears responseText.

XMLHttpRequest did not clear the response encoding when it have should, for example, when abort() is called.
This caused character corruption in responseText if we re-opened the XHR object.
Comment 1 Radar WebKit Bug Importer 2013-07-31 16:42:45 PDT
<rdar://problem/14612613>
Comment 2 Ryosuke Niwa 2013-07-31 16:55:34 PDT
Created attachment 207887 [details]
Fixes the bug
Comment 3 WebKit Commit Bot 2013-07-31 17:50:25 PDT
Comment on attachment 207887 [details]
Fixes the bug

Clearing flags on attachment: 207887

Committed r153553: <http://trac.webkit.org/changeset/153553>
Comment 4 WebKit Commit Bot 2013-07-31 17:50:27 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 David Kilzer (:ddkilzer) 2013-12-18 19:29:00 PST
(In reply to comment #0)
> Merge https://chromiumcodereview.appspot.com/20625004

Issue 261140:	Reuse of XMLHttpRequests causes character corruption in response text https://code.google.com/p/chromium/issues/detail?id=261140