diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/base/content/test/plugins/blocklist_proxy.js | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/base/content/test/plugins/blocklist_proxy.js')
-rw-r--r-- | browser/base/content/test/plugins/blocklist_proxy.js | 78 |
1 files changed, 0 insertions, 78 deletions
diff --git a/browser/base/content/test/plugins/blocklist_proxy.js b/browser/base/content/test/plugins/blocklist_proxy.js deleted file mode 100644 index 1a4ed4726..000000000 --- a/browser/base/content/test/plugins/blocklist_proxy.js +++ /dev/null @@ -1,78 +0,0 @@ -var Cc = Components.classes; -var Ci = Components.interfaces; -var Cu = Components.utils; -var Cm = Components.manager; - -const kBlocklistServiceUUID = "{66354bc9-7ed1-4692-ae1d-8da97d6b205e}"; -const kBlocklistServiceContractID = "@mozilla.org/extensions/blocklist;1"; -const kBlocklistServiceFactory = Cm.getClassObject(Cc[kBlocklistServiceContractID], Ci.nsIFactory); - -Cu.import('resource://gre/modules/XPCOMUtils.jsm'); - -/* - * A lightweight blocklist proxy for the testing purposes. - */ -var BlocklistProxy = { - _uuid: null, - - QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, - Ci.nsIBlocklistService, - Ci.nsITimerCallback]), - - init: function() { - if (!this._uuid) { - this._uuid = - Cc["@mozilla.org/uuid-generator;1"].getService(Ci.nsIUUIDGenerator) - .generateUUID(); - Cm.nsIComponentRegistrar.registerFactory(this._uuid, "", - "@mozilla.org/extensions/blocklist;1", - this); - } - }, - - uninit: function() { - if (this._uuid) { - Cm.nsIComponentRegistrar.unregisterFactory(this._uuid, this); - Cm.nsIComponentRegistrar.registerFactory(Components.ID(kBlocklistServiceUUID), - "Blocklist Service", - "@mozilla.org/extensions/blocklist;1", - kBlocklistServiceFactory); - this._uuid = null; - } - }, - - notify: function (aTimer) { - }, - - observe: function (aSubject, aTopic, aData) { - }, - - isAddonBlocklisted: function (aAddon, aAppVersion, aToolkitVersion) { - return false; - }, - - getAddonBlocklistState: function (aAddon, aAppVersion, aToolkitVersion) { - return 0; // STATE_NOT_BLOCKED - }, - - getPluginBlocklistState: function (aPluginTag, aAppVersion, aToolkitVersion) { - return 0; // STATE_NOT_BLOCKED - }, - - getAddonBlocklistURL: function (aAddon, aAppVersion, aToolkitVersion) { - return ""; - }, - - getPluginBlocklistURL: function (aPluginTag) { - return ""; - }, - - getPluginInfoURL: function (aPluginTag) { - return ""; - }, -} - -BlocklistProxy.init(); -addEventListener("unload", () => { - BlocklistProxy.uninit(); -}); |