From 0eca5146212b140220b9b065e42f3bc24565622d Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 13 Feb 2016 18:38:42 -0500 Subject: [PATCH] Add proper socket permissions for running as an extension --- Makefile | 1 + manifest.json | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0582a8b..202a0a0 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,7 @@ include $(NACL_SDK_ROOT)/tools/common.mk # Dirty hack to allow 'make serve' to work in this directory HTTPD_PY := $(HTTPD_PY) --no-dir-check +CHROME_ARGS += --allow-nacl-socket-api=localhost LIBS = ppapi_gles2 ppapi ppapi_cpp pthread nacl_io diff --git a/manifest.json b/manifest.json index 2df2138..720c03e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "manifest_version": 2, - "name": "Moonlight Chrome", + "name": "Moonlight", "version": "0.01", "description": "A Moonlight streaming plugin for Google Chrome", "icons": { @@ -15,6 +15,14 @@ "scripts": ["background.js"] } }, - "permissions": ["fullscreen"] + "permissions": [ + "fullscreen", { + "socket": [ + "tcp-connect", + "resolve-host", + "udp-bind:*:*", + "udp-send-to:*:*" + ] } + ] }