Clean up JSDoc comments and unused field (#5443)

This commit is contained in:
Abe Jellinek 2025-07-31 15:47:42 -04:00 committed by Dan Stillman
parent 72c229eda4
commit d6f83e5f6c
2 changed files with 4 additions and 7 deletions

View file

@ -28,10 +28,10 @@
*
* @constructor
* @param {browser} [browser] Hidden browser object
* @param {String|nsIURI} uri URI of page to manage cookies for (cookies for domains that are not
* @param {String|nsIURI} [uri] URI of page to manage cookies for (cookies for domains that are not
* subdomains of this URI are ignored)
* @param {String} cookieData Cookies with which to initiate the sandbox
* @param {String} userAgent User agent to use for sandboxed requests
* @param {String} [cookieData] Cookies with which to initiate the sandbox
* @param {String} [userAgent] User agent to use for sandboxed requests
*/
Zotero.CookieSandbox = function (browser, uri, cookieData, userAgent) {
this._cookies = {};
@ -52,9 +52,6 @@ Zotero.CookieSandbox = function (browser, uri, cookieData, userAgent) {
if (userAgent) this.userAgent = userAgent;
this._observerService = Components.classes["@mozilla.org/observer-service;1"].
getService(Components.interfaces.nsIObserverService);
if (browser) {
this.attachToBrowser(browser);
}

View file

@ -1337,7 +1337,7 @@ Zotero.Utilities.Internal = {
/**
* Run translation on a Document to try to find a PDF URL
*
* @param {doc} Document
* @param {Document} doc
* @param {Zotero.CookieSandbox} cookieSandbox
* @return {{ title: string, url: string } | false} - PDF attachment title and URL, or false if none found
*/