зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1120051 - Replace nonstandard let block and legacy generator in ForgetAboutSite.jsm. r=Mossop
This commit is contained in:
Родитель
37ba138447
Коммит
805bc5916c
|
@ -81,10 +81,9 @@ this.ForgetAboutSite = {
|
|||
}
|
||||
|
||||
// EME
|
||||
let (mps = Cc["@mozilla.org/gecko-media-plugin-service;1"].
|
||||
getService(Ci.mozIGeckoMediaPluginService)) {
|
||||
mps.forgetThisSite(aDomain);
|
||||
}
|
||||
let mps = Cc["@mozilla.org/gecko-media-plugin-service;1"].
|
||||
getService(Ci.mozIGeckoMediaPluginService);
|
||||
mps.forgetThisSite(aDomain);
|
||||
|
||||
// Plugin data
|
||||
const phInterface = Ci.nsIPluginHost;
|
||||
|
@ -109,7 +108,7 @@ this.ForgetAboutSite = {
|
|||
}
|
||||
|
||||
if (useJSTransfer) {
|
||||
Task.spawn(function() {
|
||||
Task.spawn(function*() {
|
||||
let list = yield Downloads.getList(Downloads.ALL);
|
||||
list.removeFinished(download => hasRootDomain(
|
||||
NetUtil.newURI(download.source.url).host, aDomain));
|
||||
|
|
Загрузка…
Ссылка в новой задаче