diff --git a/toolkit/forgetaboutsite/ForgetAboutSite.jsm b/toolkit/forgetaboutsite/ForgetAboutSite.jsm index 88d250cf7ab..b2a0f711eb3 100644 --- a/toolkit/forgetaboutsite/ForgetAboutSite.jsm +++ b/toolkit/forgetaboutsite/ForgetAboutSite.jsm @@ -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));