Fx60: Fix "path is undefined" in cookie sandbox
getCookiesForURI() seems to now get an nsIURL that won't query to nsIURI, so look for `filePath` in addition to `path`.
This commit is contained in:
parent
6fd879fc16
commit
c07379fe33
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ Zotero.CookieSandbox.prototype = {
|
|||
*/
|
||||
"getCookiesForURI": function(uri) {
|
||||
var hostParts = Zotero.CookieSandbox.normalizeHost(uri.host).split('.'),
|
||||
pathParts = Zotero.CookieSandbox.normalizePath(uri.path).split('/'),
|
||||
pathParts = Zotero.CookieSandbox.normalizePath(uri.filePath || uri.path).split('/'),
|
||||
cookies = {}, found = false, secure = uri.scheme.toUpperCase() == 'HTTPS';
|
||||
|
||||
// Fetch cookies starting from the highest level domain
|
||||
|
|
Loading…
Reference in a new issue