diff --git a/testing/mochitest/Makefile.in b/testing/mochitest/Makefile.in index 1564d767a17..0c53d8f25e7 100644 --- a/testing/mochitest/Makefile.in +++ b/testing/mochitest/Makefile.in @@ -49,6 +49,7 @@ _SERV_FILES = \ runtestsb2g.py \ runtestsremote.py \ runtestsvmware.py \ + manifest.webapp \ $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanager.py \ $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerADB.py \ $(topsrcdir)/testing/mozbase/mozdevice/mozdevice/devicemanagerSUT.py \ diff --git a/testing/mochitest/manifest.webapp b/testing/mochitest/manifest.webapp new file mode 100644 index 00000000000..0e2f492910a --- /dev/null +++ b/testing/mochitest/manifest.webapp @@ -0,0 +1,38 @@ +{ + "name": "Mochitest", + "type": "certified", + "description": "Mochitests", + "developer": { + "name": "The Ateam", + "url": "https://wiki.mozilla.org/Auto-tools" + }, + "permissions": { + "alarms": {}, + "browser":{}, + "power":{}, + "webapps-manage":{}, + "mobileconnection":{}, + "mozBluetooth":{}, + "bluetooth":{}, + "telephony":{}, + "voicemail":{}, + "device-storage:pictures":{ "access": "readwrite" }, + "settings":{ "access": "readwrite" }, + "storage":{}, + "camera":{}, + "geolocation":{}, + "wifi-manage":{}, + "wifi":{}, + "desktop-notification":{}, + "idle":{}, + "network-events":{}, + "embed-apps":{} + }, + "locales": { + "en-US": { + "name": "Mochitest", + "description": "Mochitests" + } + }, + "default_locale": "en-US" +} diff --git a/testing/mochitest/runtestsb2g.py b/testing/mochitest/runtestsb2g.py index 5a96456295c..3ab07f798b6 100644 --- a/testing/mochitest/runtestsb2g.py +++ b/testing/mochitest/runtestsb2g.py @@ -397,6 +397,7 @@ const CHILD_LOGGER_SCRIPT = "chrome://specialpowers/content/MozillaLogger.js"; let homescreen = document.getElementById('homescreen'); let container = homescreen.contentWindow.document.getElementById('test-container'); +container.setAttribute('mozapp', 'http://mochi.test:8888/manifest.webapp'); let specialpowers = {}; let loader = Cc["@mozilla.org/moz/jssubscript-loader;1"].getService(Ci.mozIJSSubScriptLoader); @@ -428,7 +429,6 @@ user_pref("dom.mozBrowserFramesEnabled", true); user_pref("dom.ipc.tabs.disabled", false); user_pref("dom.ipc.browser_frames.oop_by_default", false); user_pref("dom.mozBrowserFramesWhitelist","app://test-container.gaiamobile.org,http://mochi.test:8888"); -user_pref("network.dns.localDomains","app://test-container.gaiamobile.org"); user_pref("marionette.loadearly", true); """) f.close()