Created
December 17, 2014 17:00
-
-
Save fabricedesre/6e083fe1267e758e8186 to your computer and use it in GitHub Desktop.
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
// Go to about:config, turn on devtools.chrome.enabled and dom.udpsocket.enabled | |
// Open the console with Ctrl+Shift+J | |
// Copy/paste that in the input field: | |
{ | |
var url = "http://foo.com/bar"; | |
Components.utils.import("resource://gre/modules/Services.jsm"); | |
Services.perms.add(Services.io.newURI(url, null, null), "udp-socket", 1, 0, 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment