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 468861 683b87b736e9e2dfac68e690b58fa557b0f11060
parent 468860 6589d2f22f6a99c78ea519f9df3af75bb2daeb91
child 468862 70e19926d22bc7ad68fc64825a869ab65afde184
push id43551
push userbmo:kgilbert@mozilla.com
push dateTue, 31 Jan 2017 23:27:06 +0000
reviewersme
bugs1335365
milestone54.0a1
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