I'm trying to get Justin D-Arcangelo's dns-sd.js (https://github.com/justindarc/dns-sd.js) Javascript code to work in a web extension for Firefox 51.0.1 (Ubuntu 14.04)
I have the following manifest.json file:
{
"name": "discover",
"version": "1.0",
"description": "Discovers Bonjour/Avahi based services",
"developer": {
},
"type": "privileged",
"permissions": {
"udp-socket": {}
},
"browser_action": {
"default_icon": "icons/border-48.png",
"default_title": "Discovery",
"default_popup": "popup/discover.html"
},
"icons": {
"48": "icons/border-48.png"
}
}
As recommended by the author referred to above, I have the following in the manifest.json file:
"type": "privileged",
"permissions": {
"udp-socket": {}
},
Unfortunately, when I attempt to load this manifest file in Firefox's add-on test page under 'about:debugging'. it complains that
"There was an error during installation: permissions is not iterable".
From what I see here, the permissions are represented in an array i.e. ["x","y",etc.]
How do I reconcile these two different usages? What is the correct way of setting the udp_socket
permission in my manifest.json?