mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1120051 - Replace nonstandard let block and legacy generator in ForgetAboutSite.jsm. r=Mossop
This commit is contained in:
parent
559fdf57a9
commit
430fb17136
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user