From 20945f60c9b2d6853bfffca26f6bf477744de970 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Jun 2022 01:15:48 -0400 Subject: [PATCH] fx-compat: Remove nsIURI.clone() usage --- chrome/content/zotero/xpcom/storage/webdav.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js index e6a4c47a8b..a9b846e703 100644 --- a/chrome/content/zotero/xpcom/storage/webdav.js +++ b/chrome/content/zotero/xpcom/storage/webdav.js @@ -158,14 +158,14 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = { if (!this._rootURI) { this._init(); } - return this._rootURI.clone(); + return this._rootURI; }, get parentURI() { if (!this._parentURI) { this._init(); } - return this._parentURI.clone(); + return this._parentURI; }, _init: function () { @@ -1397,7 +1397,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = { return 0; }); - let deleteURI = this.rootURI.clone(); + let deleteURI = this.rootURI; // This should never happen, but let's be safe if (!deleteURI.spec.match(/\/$/)) { throw new Error("Root URI does not end in slash");