Created
October 27, 2012 17:31
-
-
Save xabolcs/3965443 to your computer and use it in GitHub Desktop.
Moving forward from nightly.variables.toolkit == "cairo"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { classes: Cc, interfaces: Ci, utils: Cu } = Components; | |
var gfxInfo = Cc["@mozilla.org/gfx/info;1"].getService(Ci.nsIGfxInfo); gfxInfo.getInfo().toSource(); | |
/** | |
* Example output: | |
* ({AzureCanvasBackend:"cairo", AzureFallbackCanvasBackend:"none", AzureContentBackend:"none"}) | |
* | |
* Or: | |
* Error: gfxInfo.getInfo is not a function | |
* | |
* Or even: | |
* Error: Cc['@mozilla.org/gfx/info;1'] is undefined | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment