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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 2461173002: Disable memory cache for ArrayBuffer XHRs (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index dbe4f19fddce269a3b6051c85df6b6d74759b7e8..d6d39f30698d4795251162561e4bcf5cf8577788 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -1040,6 +1040,10 @@ void XMLHttpRequest::createRequest(PassRefPtr<EncodedFormData> httpBody,
resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
}
+ if (getResponseTypeCode() == ResponseTypeArrayBuffer) {
+ resourceLoaderOptions.dataBufferingPolicy = DoNotBufferData;
+ }
+
m_exceptionCode = 0;
m_error = false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698