Skip to content

Instantly share code, notes, and snippets.

@bgrins
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgrins/6be1986cab3a3b190fa2 to your computer and use it in GitHub Desktop.
Save bgrins/6be1986cab3a3b190fa2 to your computer and use it in GitHub Desktop.
Fx frontend snippets
Components.classes["@mozilla.org/chrome/chrome-registry;1"]
.getService(Components.interfaces.nsIChromeRegistry)
.convertChromeURL(makeURI("chrome://global/skin/icons/chevron.png")).spec
/* Or, inside of webapprt: */
Components.utils.import("resource://gre/modules/Services.jsm");
Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIChromeRegistry).convertChromeURL(Services.io.newURI("chrome://global/skin/icons/chevron.png",
null, null)).spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment