Bug 700640 - Have extensions.xml set XHR responseType to document for update release notes. r=hsivonen, r=Mossop

This commit is contained in:
Thomas Wisniewski 2016-08-09 16:28:56 -04:00
Родитель f69df51c78
Коммит d0dfbfb36e
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1473,6 +1473,7 @@
var dataReq = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
.createInstance(Components.interfaces.nsIXMLHttpRequest);
dataReq.open("GET", aURI.spec, true);
dataReq.responseType = "document";
dataReq.addEventListener("load", handleResponse, false);
dataReq.addEventListener("error", handleError, false);
dataReq.send(null);
@ -1480,6 +1481,7 @@
var styleReq = Components.classes["@mozilla.org/xmlextras/xmlhttprequest;1"]
.createInstance(Components.interfaces.nsIXMLHttpRequest);
styleReq.open("GET", UPDATES_RELEASENOTES_TRANSFORMFILE, true);
styleReq.responseType = "document";
styleReq.addEventListener("load", handleResponse, false);
styleReq.addEventListener("error", handleError, false);
styleReq.send(null);