mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 507587 - Warning: reference to undefined property jscookies[cookie.host]. r=zeniko
This commit is contained in:
parent
bf4108370b
commit
33c3327109
@ -1617,14 +1617,9 @@ SessionStoreService.prototype = {
|
||||
if (cookie.isSession && _this._checkPrivacyLevel(cookie.isSecure)) {
|
||||
// use the cookie's host, path, and name as keys into a hash,
|
||||
// to make sure we serialize each cookie only once
|
||||
var isInHash = false;
|
||||
try {
|
||||
if (jscookies[cookie.host][cookie.path][cookie.name])
|
||||
isInHash = true;
|
||||
} catch (e) {
|
||||
// not in hash yet
|
||||
}
|
||||
if (!isInHash) {
|
||||
if (!(cookie.host in jscookies &&
|
||||
cookie.path in jscookies[cookie.host] &&
|
||||
cookie.name in jscookies[cookie.host][cookie.path])) {
|
||||
var jscookie = { "host": cookie.host, "value": cookie.value };
|
||||
// only add attributes with non-default values (saving a few bits)
|
||||
if (cookie.path) jscookie.path = cookie.path;
|
||||
|
Loading…
Reference in New Issue
Block a user