Blocklisting/Testing: Difference between revisions

Line 16: Line 16:
# Before https://bugzilla.mozilla.org/show_bug.cgi?id=1618188 was fixed , paste and run this snippet:
# Before https://bugzilla.mozilla.org/show_bug.cgi?id=1618188 was fixed , paste and run this snippet:
   Components.classes["@mozilla.org/extensions/blocklist;1"].getService(Components.interfaces.nsITimerCallback).notify(null);
   Components.classes["@mozilla.org/extensions/blocklist;1"].getService(Components.interfaces.nsITimerCallback).notify(null);
 
# After https://bugzilla.mozilla.org/show_bug.cgi?id=1618188 is fixed, paste and run the snippet :
# After https://bugzilla.mozilla.org/show_bug.cgi?id=1618188 is fixed, paste and run the snippet from below AND if you want to test blocklisting in Staging environment, set the "services.settings.server" value from about:config to "https://settings.stage.mozaws.net/v1. Also, please note that if you want to check that the installation is indeed blocked after running the snippet for a blocklist, you have to create and set the "xpinstall.signatures.dev-root" pref to true AND to modify the value of "xpinstall.signatures.required" to False
#*Snippet :
   const {ExtensionBlocklistRS} = ChromeUtils.import("resource://gre/modules/Blocklist.jsm", null); ExtensionBlocklistRS._client.verifySignature = false; ExtensionBlocklistRS.sync();
   const {ExtensionBlocklistRS} = ChromeUtils.import("resource://gre/modules/Blocklist.jsm", null); ExtensionBlocklistRS._client.verifySignature = false; ExtensionBlocklistRS.sync();


181

edits