Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=me CLOSED TREE
authorAndrea Marchesini <amarchesini@mozilla.com>
Tue, 31 Jan 2017 18:06:14 +0100
changeset 331842 683b87b736e9e2dfac68e690b58fa557b0f11060
parent 331841 6589d2f22f6a99c78ea519f9df3af75bb2daeb91
child 331843 70e19926d22bc7ad68fc64825a869ab65afde184
push id86372
push useramarchesini@mozilla.com
push dateTue, 31 Jan 2017 17:07:36 +0000
treeherdermozilla-inbound@683b87b736e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1335365
milestone54.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1335365 - Add telemetry to see if we can remove moz-only XHR.reponseType, r=me CLOSED TREE
dom/xhr/XMLHttpRequestMainThread.cpp
--- a/dom/xhr/XMLHttpRequestMainThread.cpp
+++ b/dom/xhr/XMLHttpRequestMainThread.cpp
@@ -739,19 +739,19 @@ XMLHttpRequestMainThread::SetResponseTyp
        aResponseType == XMLHttpRequestResponseType::Moz_chunked_arraybuffer)) {
     aRv.Throw(NS_ERROR_DOM_INVALID_STATE_XHR_CHUNKED_RESPONSETYPES_UNSUPPORTED_FOR_SYNC);
     return;
   }
 
   // We want to get rid of this moz-only types. Bug 1335365.
   if (aResponseType == XMLHttpRequestResponseType::Moz_blob) {
     Telemetry::Accumulate(Telemetry::MOZ_BLOB_IN_XHR, 1);
-  } else if (aResponseType == XMLHttpRequestResponseType::Moz_Chunked_Text) {
+  } else if (aResponseType == XMLHttpRequestResponseType::Moz_chunked_text) {
     Telemetry::Accumulate(Telemetry::MOZ_CHUNKED_TEXT_IN_XHR, 1);
-  } else if (aResponseType == XMLHttpRequestResponseType::Moz_Chunked_Arraybuffer) {
+  } else if (aResponseType == XMLHttpRequestResponseType::Moz_chunked_arraybuffer) {
     Telemetry::Accumulate(Telemetry::MOZ_CHUNKED_ARRAYBUFFER_IN_XHR, 1);
   }
 
   // Set the responseType attribute's value to the given value.
   mResponseType = aResponseType;
 }
 
 NS_IMETHODIMP