fx-compat: Remove nsIURI.clone() usage

This commit is contained in:
Dan Stillman 2022-06-21 01:15:48 -04:00
parent 6297d0862f
commit 20945f60c9

View file

@ -158,14 +158,14 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
if (!this._rootURI) { if (!this._rootURI) {
this._init(); this._init();
} }
return this._rootURI.clone(); return this._rootURI;
}, },
get parentURI() { get parentURI() {
if (!this._parentURI) { if (!this._parentURI) {
this._init(); this._init();
} }
return this._parentURI.clone(); return this._parentURI;
}, },
_init: function () { _init: function () {
@ -1397,7 +1397,7 @@ Zotero.Sync.Storage.Mode.WebDAV.prototype = {
return 0; return 0;
}); });
let deleteURI = this.rootURI.clone(); let deleteURI = this.rootURI;
// This should never happen, but let's be safe // This should never happen, but let's be safe
if (!deleteURI.spec.match(/\/$/)) { if (!deleteURI.spec.match(/\/$/)) {
throw new Error("Root URI does not end in slash"); throw new Error("Root URI does not end in slash");