Align SessionStore.jsm with the updated nsICookieManager2.add() API

This commit is contained in:
JustOff 2018-04-14 22:24:54 +03:00 • committed by Roy Tam
commit 65f1f88bdb

View file

@ -3655,7 +3655,7 @@ let SessionStoreInternal = {
try {
Services.cookies.add(cookie.host, cookie.path || "", cookie.name || "",
cookie.value, !!cookie.secure, !!cookie.httponly, true,
"expiry" in cookie ? cookie.expiry : MAX_EXPIRY);
"expiry" in cookie ? cookie.expiry : MAX_EXPIRY, {});
}
catch (ex) { Cu.reportError(ex); } // don't let a single cookie stop recovering
}