Backed out changeset 87be514024ac (bug 1541860) for wpt failures on SXG reporting. a=backout
authorCsoregi Natalia <ncsoregi@mozilla.com>
Tue, 30 Apr 2019 12:51:29 +0300
changeset 530670 eb1856c0dc21b8c431818b09ed7628702e3679d5
parent 530669 53014805c60bd6c37f9d4bcb9bc268ac54242fb8
child 530671 20d44dfc1b05a7d4715fedbd786d5946691c0630
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs1541860
milestone68.0a1
backs out87be514024ac53ab6362ffc26610c063d50abe07
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
Backed out changeset 87be514024ac (bug 1541860) for wpt failures on SXG reporting. a=backout
security/manager/ssl/RemoteSecuritySettings.jsm
--- a/security/manager/ssl/RemoteSecuritySettings.jsm
+++ b/security/manager/ssl/RemoteSecuritySettings.jsm
@@ -25,19 +25,17 @@ const INTERMEDIATES_PRELOADED_TELEMETRY 
 const INTERMEDIATES_UPDATE_MS_TELEMETRY  = "INTERMEDIATE_PRELOADING_UPDATE_TIME_MS";
 
 XPCOMUtils.defineLazyGlobalGetters(this, ["fetch"]);
 
 XPCOMUtils.defineLazyGetter(this, "gTextDecoder", () => new TextDecoder());
 
 XPCOMUtils.defineLazyGetter(this, "baseAttachmentsURL", async () => {
   const server = Services.prefs.getCharPref("services.settings.server");
-  const serverInfo = await (await fetch(`${server}/`, {
-    credentials: "omit",
-  })).json();
+  const serverInfo = await (await fetch(`${server}/`)).json();
   const {capabilities: {attachments: {base_url}}} = serverInfo;
   return base_url;
 });
 
 XPCOMUtils.defineLazyGetter(this, "log", () => {
   let { ConsoleAPI } = ChromeUtils.import("resource://gre/modules/Console.jsm");
   return new ConsoleAPI({
     prefix: "RemoteSecuritySettings.jsm",
@@ -178,20 +176,18 @@ this.RemoteSecuritySettings = class Remo
      * @return {Promise}          resolves to a Uint8Array on success
      */
     async _downloadAttachmentBytes(record) {
       const {attachment: {location}} = record;
       const remoteFilePath = (await baseAttachmentsURL) + location;
       const headers = new Headers();
       headers.set("Accept-Encoding", "gzip");
 
-      return fetch(remoteFilePath, {
-        headers,
-        credentials: "omit",
-      }).then(resp => {
+      return fetch(remoteFilePath, {headers})
+      .then(resp => {
         log.debug(`Download fetch completed: ${resp.ok} ${resp.status}`);
         if (!resp.ok) {
           Cu.reportError(`Failed to fetch ${remoteFilePath}: ${resp.status}`);
 
           Services.telemetry.getHistogramById(INTERMEDIATES_ERRORS_TELEMETRY)
             .add("failedToFetch");
 
           return Promise.reject();