Bug 1120051 - Replace nonstandard let block and legacy generator in ForgetAboutSite.jsm. r=Mossop

This commit is contained in:
Chris Peterson 2015-01-07 23:18:37 -08:00
parent 559fdf57a9
commit 430fb17136

View File

@ -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));