зеркало из https://github.com/mozilla/gecko-dev.git
Bug 700640 - Have extensions.xml set XHR responseType to document for update release notes. r=hsivonen, r=Mossop
This commit is contained in:
Родитель
f69df51c78
Коммит
d0dfbfb36e
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче