Bug 1449483 - Update password manager ensure origin code to use a real origin. r=MakeMyDay,a=philipp
authorPhilipp Kewisch <mozilla@kewis.ch>
Tue, 20 Mar 2018 11:36:51 +0100
changeset 30564 33a67b0129b390a6b1fe235155f3a526a36bf4a7
parent 30563 2d0822c5a149c89e047b2e368d91083fbe8badda
child 30565 8fce2733be7c857b9b3e06b99aa538ec1dcb818b
push id2172
push usermozilla@kewis.ch
push dateSun, 15 Apr 2018 05:33:14 +0000
treeherdercomm-beta@33a67b0129b3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMakeMyDay, philipp
bugs1449483
Bug 1449483 - Update password manager ensure origin code to use a real origin. r=MakeMyDay,a=philipp MozReview-Commit-ID: VY2QUcuavh
calendar/base/modules/utils/calAuthUtils.jsm
--- a/calendar/base/modules/utils/calAuthUtils.jsm
+++ b/calendar/base/modules/utils/calAuthUtils.jsm
@@ -211,24 +211,24 @@ var calauth = {
                                                       savepassword,
                                                       aSavePassword);
         }
     },
 
     /**
      * Make sure the passed origin is actually an uri string, because password manager functions
      * require it. This is a fallback for compatibility only and should be removed a few versions
-     * after Lightning 5.5
+     * after Lightning 6.2
      *
      * @param {String} aOrigin      The hostname or origin to check
      * @return {String}             The origin uri
      */
     _ensureOrigin: function(aOrigin) {
         try {
-            return Services.io.newURI(aOrigin).spec;
+            return Services.io.newURI(aOrigin).prePath;
         } catch (e) {
             return "https://" + aOrigin;
         }
     },
 
     /**
      * Helper to insert/update an entry to the password manager.
      *