diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 11:45:55 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-20 11:45:55 -0500 |
commit | 87dabd4e0b724bb81db3eaeefa09cfd2c5545a36 (patch) | |
tree | f91a4de96d859747a5028abf252e87d3361006cb /modules | |
parent | 1e640f82104e57d63e268785f75914ca7d3953ce (diff) | |
download | aura-central-87dabd4e0b724bb81db3eaeefa09cfd2c5545a36.tar.gz |
Issue #1 - Restore Gecko Media Plugins
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ForgetAboutSite.jsm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/ForgetAboutSite.jsm b/modules/ForgetAboutSite.jsm index f2f4cd58e..9d7e512a8 100644 --- a/modules/ForgetAboutSite.jsm +++ b/modules/ForgetAboutSite.jsm @@ -84,6 +84,15 @@ this.ForgetAboutSite = { throw new Error("Exception thrown while clearning cookies: " + ex); })); + // EME + promises.push(Task.spawn(function*() { + let mps = Cc["@mozilla.org/gecko-media-plugin-service;1"]. + getService(Ci.mozIGeckoMediaPluginChromeService); + mps.forgetThisSite(aDomain, JSON.stringify({})); + }).catch(ex => { + throw new Error("Exception thrown while clearing Encrypted Media Extensions: " + ex); + })); + // Plugin data const phInterface = Ci.nsIPluginHost; const FLAG_CLEAR_ALL = phInterface.FLAG_CLEAR_ALL; |