зеркало из https://github.com/mozilla/gecko-dev.git
Bug 668646 - Invalid cookie hosts causes sessionstore to stop updating [r=dietrich]
This commit is contained in:
Родитель
d7fbcd333c
Коммит
f4b9eb199e
|
@ -2222,8 +2222,14 @@ SessionStoreService.prototype = {
|
|||
if (!aWindow._hosts)
|
||||
return;
|
||||
for (var [host, isPinned] in Iterator(aWindow._hosts)) {
|
||||
var list = CookieSvc.getCookiesFromHost(host);
|
||||
while (list.hasMoreElements()) {
|
||||
let list;
|
||||
try {
|
||||
list = CookieSvc.getCookiesFromHost(host);
|
||||
}
|
||||
catch (ex) {
|
||||
debug("getCookiesFromHost failed. Host: " + host);
|
||||
}
|
||||
while (list && list.hasMoreElements()) {
|
||||
var cookie = list.getNext().QueryInterface(Ci.nsICookie2);
|
||||
// aWindow._hosts will only have hosts with the right privacy rules,
|
||||
// so there is no need to do anything special with this call to
|
||||
|
|
Загрузка…
Ссылка в новой задаче