Fx60 compatibility: 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
6d491b1956
commit
ea77b407a3
|
@ -221,7 +221,7 @@ Zotero.CookieSandbox.prototype = {
|
||||||
*/
|
*/
|
||||||
"getCookiesForURI": function(uri) {
|
"getCookiesForURI": function(uri) {
|
||||||
var hostParts = Zotero.CookieSandbox.normalizeHost(uri.host).split('.'),
|
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';
|
cookies = {}, found = false, secure = uri.scheme.toUpperCase() == 'HTTPS';
|
||||||
|
|
||||||
// Fetch cookies starting from the highest level domain
|
// Fetch cookies starting from the highest level domain
|
||||||
|
|
Loading…
Reference in New Issue
Block a user