Blocklisting/Testing: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 29: | Line 29: | ||
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. | 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. | ||
<!-- suck it mediawiki --> | |||
<table width="100%" border="1"> | |||
<tr> | |||
<th>Environment Variable</th> | |||
<th>Sample Value(s)</th> | |||
<th>Meaning</th> | |||
</tr> | |||
<tr> | |||
<td>'''MOZ_GFX_SPOOF_DRIVER_VERSION'''</td> | |||
<td>8.17.18.2563</td> | |||
<td>The version of the driver you want to spoof.</td> | |||
</tr> | |||
<tr> | |||
<td>'''MOZ_GFX_SPOOF_VENDOR_ID'''</td> | |||
<td>0x1002</td> | |||
<td>The PCI vendor ID of the card you want to spoof.</td> | |||
</tr> | |||
<tr> | |||
<td>'''MOZ_GFX_SPOOF_DEVICE_ID'''</td> | |||
<td>0x3245</td> | |||
<td>The PCI device ID of the card you want to spoof.</td> | |||
</tr> | |||
<tr> | |||
<td>'''MOZ_GFX_SPOOF_WINDOWS_VERSION'''</td> | |||
<td> | |||
<table width="100%" border="1"> | |||
<tr><td>Windows 2000</td><td>0x50000</td></tr> | |||
<tr><td>Windows XP</td><td>0x50001</td></tr> | |||
<tr><td>Windows Server 2003</td><td>0x50002</td></tr> | |||
<tr><td>Windows Vista</td><td>0x60000</td></tr> | |||
<tr><td>Windows 7</td><td>0x60001</td></tr> | |||
</table> | |||
</td> | |||
<td>The numeric ID of the Windows version you want to spoof.</td> | |||
</tr> | |||
</table> | |||
Revision as of 21:35, 11 March 2011
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. |