Created
July 12, 2015 10:30
-
-
Save Noitidart/e921c89cb5694ef299ab to your computer and use it in GitHub Desktop.
_ff-addon-createResourceURI - Createa resource:// URI on the fly.
This file contains 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
let res = Services.io.getProtocolHandler("resource").QueryInterface(Ci.nsIResProtocolHandler); | |
res.setSubstitution("rawr", Services.io.newURI('http://www.bing.com/',null,null)); | |
// now try navigating to resource://rawr it will load bing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
README
Rev1
TODO