Bug 1450565 use GET for initial authorization request, r?Mossop draft
authorShane Caraveo <scaraveo@mozilla.com>
Tue, 17 Apr 2018 10:06:13 -0500
changeset 783635 ea1318e3e870bfdbd68bcd98e2655367bf0b1e56
parent 782895 6276ec7ebbf33e3484997b189f20fc1511534187
push id106747
push usermixedpuppy@gmail.com
push dateTue, 17 Apr 2018 15:07:03 +0000
reviewersMossop
bugs1450565
milestone61.0a1
Bug 1450565 use GET for initial authorization request, r?Mossop MozReview-Commit-ID: 70PQSeoxvOF
toolkit/components/extensions/parent/ext-identity.js
--- a/toolkit/components/extensions/parent/ext-identity.js
+++ b/toolkit/components/extensions/parent/ext-identity.js
@@ -9,17 +9,17 @@ Cu.importGlobalProperties(["URL", "XMLHt
 
 var {
   promiseDocumentLoaded,
 } = ExtensionUtils;
 
 const checkRedirected = (url, redirectURI) => {
   return new Promise((resolve, reject) => {
     let xhr = new XMLHttpRequest();
-    xhr.open("HEAD", url);
+    xhr.open("GET", url);
     // We expect this if the user has not authenticated.
     xhr.onload = () => {
       reject(0);
     };
     // An unexpected error happened, log for extension authors.
     xhr.onerror = () => {
       reject(xhr.status);
     };