diff --git a/dom/apps/tests/file_manifest.json b/dom/apps/tests/file_manifest.json index 42a3f553fda8..1569a1efe691 100644 --- a/dom/apps/tests/file_manifest.json +++ b/dom/apps/tests/file_manifest.json @@ -1,19 +1,13 @@ { "name": "My W3C Web App", "short_name": "My App", - "icons": { - "15": "/tests/dom/apps/tests/icon15.png", - "48": "/tests/dom/apps/tests/icon48.png" - }, - "start_url": "/index.html", - "display": "standalone", - "entry_points": { - "ep1": { - "name": "This is an entry point", - "icons": { - "15": "/tests/dom/apps/tests/icon15alternate.png", - "48": "/tests/dom/apps/tests/icon48.png" - } + "icons": [ + { + "src": "/favicon.ico", + "sizes": "64x64", + "type": "image/png" } - } -} + ], + "start_url": "/index.html", + "display": "standalone" +} \ No newline at end of file diff --git a/dom/apps/tests/file_packaged_app.sjs b/dom/apps/tests/file_packaged_app.sjs index 4bda60a7fe10..788ff22b85f0 100644 --- a/dom/apps/tests/file_packaged_app.sjs +++ b/dom/apps/tests/file_packaged_app.sjs @@ -17,13 +17,6 @@ var gAppName = "appname"; var gDevName = "devname"; var gDevUrl = "http://dev.url"; -var gIconData = -"iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAABGdBTUEAANbY1E9YMgAAABl0RVh0" + -"U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAA5UExURbVCQs6UlM6EhJwhIa0hIc5zc5wQ" + -"EL1SUu/W1rVjY6UQELUAAOfGxue1tZwAAIwAAP///3sAAK0AAOytg2MAAABmSURBVHjabIkLEsJA" + -"CEOz249aIUDvf1ihVWe208ADQvDeh8I+6s7zSw0wJ6vPA5z7o+u8LbrUD4SXnkln5XSHJnAhDWau" + -"tia1jeXlz7SeeRy5TC6wkBaWhLZoL4RF9Q/EqKv/CDAAFpEM3avxBREAAAAASUVORK5CYII="; - function handleRequest(request, response) { var query = getQuery(request); @@ -94,9 +87,6 @@ function handleRequest(request, response) { appName, devName, devUrl); addZipEntry(zipWriter, app, "index.html"); - var iconString = atob(gIconData); - addZipEntry(zipWriter, iconString, "icon.png"); - zipWriter.close(); } diff --git a/dom/apps/tests/file_packaged_app.template.webapp b/dom/apps/tests/file_packaged_app.template.webapp index 14510b36b3f6..6d4bc0c7480f 100644 --- a/dom/apps/tests/file_packaged_app.template.webapp +++ b/dom/apps/tests/file_packaged_app.template.webapp @@ -12,9 +12,6 @@ "downloads": {} }, "launch_path": "tests/dom/apps/tests/file_packaged_app.sjs", - "icons": { - "15": "icon.png" - }, "developer": { "name": "DEVELOPERTOKEN", "url": "DEVELOPERURLTOKEN" diff --git a/dom/apps/tests/icon15.png b/dom/apps/tests/icon15.png deleted file mode 100644 index f752986b7e13..000000000000 Binary files a/dom/apps/tests/icon15.png and /dev/null differ diff --git a/dom/apps/tests/icon15alternate.png b/dom/apps/tests/icon15alternate.png deleted file mode 100644 index a85552b240fb..000000000000 Binary files a/dom/apps/tests/icon15alternate.png and /dev/null differ diff --git a/dom/apps/tests/icon48.png b/dom/apps/tests/icon48.png deleted file mode 100644 index c4307fc84184..000000000000 Binary files a/dom/apps/tests/icon48.png and /dev/null differ diff --git a/dom/apps/tests/mochitest.ini b/dom/apps/tests/mochitest.ini index 793675e2b8ee..798a32bd9617 100644 --- a/dom/apps/tests/mochitest.ini +++ b/dom/apps/tests/mochitest.ini @@ -28,9 +28,6 @@ support-files = test_packaged_app_common.js marketplace/* pkg_install_iframe.html - icon15.png - icon15alternate.png - icon48.png [test_app_addons.html] skip-if = os == "android" || toolkit == "gonk" # embed-apps doesn't work in mochitest app diff --git a/dom/apps/tests/test_packaged_app_install.html b/dom/apps/tests/test_packaged_app_install.html index 3065b3e77be0..1eca12f8bfb5 100644 --- a/dom/apps/tests/test_packaged_app_install.html +++ b/dom/apps/tests/test_packaged_app_install.html @@ -76,15 +76,6 @@ function checkInstalledApp(aMiniManifestURL, }; } -var gIconData = -"iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAMAAAAMCGV4AAAABGdBTUEAANbY1E9YMgAAABl0RVh0" + -"U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAA5UExURbVCQs6UlM6EhJwhIa0hIc5zc5wQ" + -"EL1SUu/W1rVjY6UQELUAAOfGxue1tZwAAIwAAP///3sAAK0AAOytg2MAAABmSURBVHjabIkLEsJA" + -"CEOz249aIUDvf1ihVWe208ADQvDeh8I+6s7zSw0wJ6vPA5z7o+u8LbrUD4SXnkln5XSHJnAhDWau" + -"tia1jeXlz7SeeRy5TC6wkBaWhLZoL4RF9Q/EqKv/CDAAFpEM3avxBREAAAAASUVORK5CYII="; - -var gIconSize = 15; - SimpleTest.waitForExplicitFinish(); SimpleTest.requestFlakyTimeout("untriaged"); @@ -204,7 +195,6 @@ var steps = [ info("== TEST == Install packaged app"); var miniManifestURL = PackagedTestHelper.gSJS + "?getManifest=true"; - navigator.mozApps.mgmt.oninstall = function(evt) { info("Got oninstall event"); PackagedTestHelper.gApp = evt.application; @@ -241,25 +231,6 @@ var steps = [ function() { PackagedTestHelper.setAppVersion(3, PackagedTestHelper.next, false, true); }, - function() { - info("== TEST == Get icon"); - var app = PackagedTestHelper.gApp; - - navigator.mozApps.mgmt.getIcon(app, gIconSize).then((blob) => { - var reader = new FileReader(); - - reader.onloadend = function() { - var success = btoa(reader.result) == gIconData; - ok(success, "== TEST == Icon matches expected icon"); - PackagedTestHelper.next(); - } - - reader.readAsBinaryString(blob); - }, (err) => { - ok(false, "Can't get icon: " + err); - PackagedTestHelper.finish(); - }); - }, function() { info("== TEST == Install packaged app with a cancel/resume"); var miniManifestURL = PackagedTestHelper.gSJS + diff --git a/dom/apps/tests/test_web_app_install.html b/dom/apps/tests/test_web_app_install.html index 071aecb25301..c57f08b5e8ef 100644 --- a/dom/apps/tests/test_web_app_install.html +++ b/dom/apps/tests/test_web_app_install.html @@ -19,19 +19,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id={1075716}