From 88e5943defebc2ccf1fb21b9a0fd071298ede8f6 Mon Sep 17 00:00:00 2001 From: "thunder@h-125.office.mozilla.org" Date: Wed, 14 Nov 2007 17:09:09 -0800 Subject: [PATCH] use btoa instead of external base64 library --- services/sync/BookmarksSyncService.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/services/sync/BookmarksSyncService.js b/services/sync/BookmarksSyncService.js index 86d55b0ced9..23ee7559963 100644 --- a/services/sync/BookmarksSyncService.js +++ b/services/sync/BookmarksSyncService.js @@ -1956,18 +1956,6 @@ DAVCollection.prototype = { return this.__dp; }, - __base64: {}, - __base64loaded: false, - get _base64() { - if (!this.__base64loaded) { - let jsLoader = Cc["@mozilla.org/moz/jssubscript-loader;1"]. - getService(Ci.mozIJSSubScriptLoader); - jsLoader.loadSubScript("chrome://sync/content/base64.js", this.__base64); - this.__base64loaded = true; - } - return this.__base64; - }, - _auth: null, get baseURL() { @@ -2092,8 +2080,7 @@ DAVCollection.prototype = { this._log.info("Logging in"); let URI = makeURI(this._baseURL); - this._auth = "Basic " + - this._base64.Base64.encode(username + ":" + password); + this._auth = "Basic " + btoa(username + ":" + password); // Make a call to make sure it's working let gen = this.GET("", cont);