зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1343995 - Wait for sanitizing to really finish before shutting down. r=jchen
BrowserApp's sanitize() function assumed that the Sanitizer would return promises for each sanitization handler, so it could wait for them to resolve before proceeding with shutdown (which was also the assumption behind the patch for bug 1266594). In fact even the Sanitizer expected to do this is well, since it wrapped each of its handling functions within a promise/task/sendRequestForResult. However it turns out that Sanitizer's clearItem function then failed to actually return this promise - apparently ever since this was implemented. MozReview-Commit-ID: 6hN3UTXUIuV --HG-- extra : rebase_source : 4971bc02962c817037a565595d3c1cedb0532d76
This commit is contained in:
Родитель
56a2f70418
Коммит
0c214f050c
|
@ -38,10 +38,10 @@ Sanitizer.prototype = {
|
|||
if (typeof canClear == "function") {
|
||||
canClear(function clearCallback(aCanClear) {
|
||||
if (aCanClear)
|
||||
item.clear();
|
||||
return item.clear();
|
||||
});
|
||||
} else if (canClear) {
|
||||
item.clear();
|
||||
return item.clear();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче