Blocklisting/Testing
Testing Staged Blocklist
To test a staged block:
- Go to about:config, find the
extensions.blocklist.urlpref and change theaddons.mozilla.orgpart of the value toaddons.allizom.org
Forcing a Blocklist Ping
- Open Error Console
- Paste and run this snippet:
Components.classes["@mozilla.org/extensions/blocklist;1"].getService(Components.interfaces.nsITimerCallback).notify(null);
Testing Graphics Blocklist entries
(Note: this only applies to Windows.)
- If the blocklist entry is on staging, see above for testing a staged blocklist first.
- Ensure you're currently hardware accelerated by opening about:support and looking at the Graphics section. Check that you have:
- Direct2D true (if on Windows 7 or Vista with the platform update)
- Hardware accelerated windows 1/1 Direct3D 9 (or 10)
- Force a blocklist ping, as above.
- Wait 5 seconds.
- Restart your browser.
- Open about:support and look at the Graphics section again. Ensure that:
- Direct2D is false
- Hardware accelerated windows 0/1
Spoofing Hardware Details for Blocklist Testing
Sometimes you don't have hardware or software available to test a given blocklist entry. On Windows, you can spoof your hardware and software details to the graphics blacklist using environment variables.
| Environment Variable | Sample Value(s) | Meaning | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MOZ_GFX_SPOOF_DRIVER_VERSION | 8.17.18.2563 | The version of the driver you want to spoof. | ||||||||||
| MOZ_GFX_SPOOF_VENDOR_ID | 0x1002 | The PCI vendor ID of the card you want to spoof. | ||||||||||
| MOZ_GFX_SPOOF_DEVICE_ID | 0x3245 | The PCI device ID of the card you want to spoof. | ||||||||||
| MOZ_GFX_SPOOF_WINDOWS_VERSION |
|
The numeric ID of the Windows version you want to spoof. |