diff --git a/chrome/content/zotero/xpcom/cookieSandbox.js b/chrome/content/zotero/xpcom/cookieSandbox.js index 0d013ad91f..6d9d4ddb54 100755 --- a/chrome/content/zotero/xpcom/cookieSandbox.js +++ b/chrome/content/zotero/xpcom/cookieSandbox.js @@ -153,8 +153,9 @@ Zotero.CookieSandbox.Observer = new function() { var ir = this.trackedInterfaceRequestors[i].get(); if(!ir) { // The interface requestor is gone, so remove it from the list - this.trackedInterfaceRequestors.splice(i--, 1); - this.trackedInterfaceRequestorSandboxes.splice(i--, 1); + this.trackedInterfaceRequestors.splice(i, 1); + this.trackedInterfaceRequestorSandboxes.splice(i, 1); + i--; } else if(ir == notificationCallbacks) { // We are tracking this interface requestor trackedBy = this.trackedInterfaceRequestorSandboxes[i];