Bug 792808 - Change dom/push to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz,dragana
authorThomas Wisniewski <wisniewskit@gmail.com>
Tue, 19 Sep 2017 11:47:55 -0400
changeset 404222 2caa8dcfef0f6ac8c95c6ed0dd81fb3a5381213f
parent 404221 41e250a79eeb0295f951ec5c73633a70cb02ef40
child 404223 b2aa9ec1a16389df69befa4960d0f1d3aebd5619
push id99968
push userrgurzau@mozilla.com
push dateFri, 16 Feb 2018 22:14:56 +0000
treeherdermozilla-inbound@2e16779c96cc [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz, dragana
bugs792808
milestone60.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 792808 - Change dom/push to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz,dragana MozReview-Commit-ID: KbyYOz9ZWHq
dom/push/test/xpcshell/head-http2.js
--- a/dom/push/test/xpcshell/head-http2.js
+++ b/dom/push/test/xpcshell/head-http2.js
@@ -39,18 +39,17 @@ CertOverrideListener.prototype = {
               getService(Ci.nsICertOverrideService);
     cos.rememberValidityOverride(this.host, this.port, cert, this.bits, false);
     dump("Certificate Override in place\n");
     return true;
   },
 };
 
 function addCertOverride(host, port, bits) {
-  var req = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
-            .createInstance(Ci.nsIXMLHttpRequest);
+  var req = new XMLHttpRequest();
   try {
     var url;
     if (port && (port > 0) && (port !== 443)) {
       url = "https://" + host + ":" + port + "/";
     } else {
       url = "https://" + host + "/";
     }
     req.open("GET", url, false);