Add proper socket permissions for running as an extension

This commit is contained in:
Cameron Gutman 2016-02-13 18:38:42 -05:00
parent e9870cde4f
commit 0eca514621
2 changed files with 11 additions and 2 deletions

View File

@ -12,6 +12,7 @@ include $(NACL_SDK_ROOT)/tools/common.mk
# Dirty hack to allow 'make serve' to work in this directory # Dirty hack to allow 'make serve' to work in this directory
HTTPD_PY := $(HTTPD_PY) --no-dir-check HTTPD_PY := $(HTTPD_PY) --no-dir-check
CHROME_ARGS += --allow-nacl-socket-api=localhost
LIBS = ppapi_gles2 ppapi ppapi_cpp pthread nacl_io LIBS = ppapi_gles2 ppapi ppapi_cpp pthread nacl_io

View File

@ -1,6 +1,6 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Moonlight Chrome", "name": "Moonlight",
"version": "0.01", "version": "0.01",
"description": "A Moonlight streaming plugin for Google Chrome", "description": "A Moonlight streaming plugin for Google Chrome",
"icons": { "icons": {
@ -15,6 +15,14 @@
"scripts": ["background.js"] "scripts": ["background.js"]
} }
}, },
"permissions": ["fullscreen"] "permissions": [
"fullscreen", {
"socket": [
"tcp-connect",
"resolve-host",
"udp-bind:*:*",
"udp-send-to:*:*"
] }
]
} }