diff --git a/browser/base/content/test/general/gZipOfflineChild_uncompressed.html b/browser/base/content/test/general/gZipOfflineChild_uncompressed.html deleted file mode 100644 index 904cc5d9a5321..0000000000000 --- a/browser/base/content/test/general/gZipOfflineChild_uncompressed.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - -

Child

- - diff --git a/dom/tests/mochitest/ajax/offline/445544.cacheManifest b/dom/tests/mochitest/ajax/offline/445544.cacheManifest deleted file mode 100644 index 344ab53a3f31f..0000000000000 --- a/dom/tests/mochitest/ajax/offline/445544.cacheManifest +++ /dev/null @@ -1,8 +0,0 @@ -CACHE MANIFEST -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -test_bug445544.html -445544_part1.html - -# not including 445544_part2.html diff --git a/dom/tests/mochitest/ajax/offline/445544.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/445544.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/445544.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/445544_part1.html b/dom/tests/mochitest/ajax/offline/445544_part1.html deleted file mode 100644 index d5219e4b7b191..0000000000000 --- a/dom/tests/mochitest/ajax/offline/445544_part1.html +++ /dev/null @@ -1,9 +0,0 @@ - - -testing navigation part 1 - - - -testing navigation... - - diff --git a/dom/tests/mochitest/ajax/offline/445544_part2.html b/dom/tests/mochitest/ajax/offline/445544_part2.html deleted file mode 100644 index 74dec4a9a8c94..0000000000000 --- a/dom/tests/mochitest/ajax/offline/445544_part2.html +++ /dev/null @@ -1,9 +0,0 @@ - - -testing navigation part 2 - - - -success. - - diff --git a/dom/tests/mochitest/ajax/offline/460353_iframe_nomanifest.html b/dom/tests/mochitest/ajax/offline/460353_iframe_nomanifest.html deleted file mode 100644 index 75b297bbd2bd0..0000000000000 --- a/dom/tests/mochitest/ajax/offline/460353_iframe_nomanifest.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Bug 460353, iframe with no manifest reference - - - - This is an iframe without a manifest reference - - diff --git a/dom/tests/mochitest/ajax/offline/460353_iframe_ownmanifest.html b/dom/tests/mochitest/ajax/offline/460353_iframe_ownmanifest.html deleted file mode 100644 index 2bcdb4611ed2b..0000000000000 --- a/dom/tests/mochitest/ajax/offline/460353_iframe_ownmanifest.html +++ /dev/null @@ -1,21 +0,0 @@ - - -Bug 460353, iframe with a different manifest reference - - - - - - This is an iframe with a different manifest reference - - diff --git a/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html b/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html deleted file mode 100644 index de357827b6a2b..0000000000000 --- a/dom/tests/mochitest/ajax/offline/460353_iframe_samemanifest.html +++ /dev/null @@ -1,25 +0,0 @@ - - -Bug 460353, iframe with a different manifest reference - - - - - - This is an iframe with the same manifest reference - - diff --git a/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest b/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest deleted file mode 100644 index c0f4b855c5766..0000000000000 --- a/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest +++ /dev/null @@ -1,37 +0,0 @@ -CACHE MANIFEST - -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -# more than 15 what is a number of parallel loads -subresource744719.html?001 -subresource744719.html?002 -subresource744719.html?003 -subresource744719.html?004 -subresource744719.html?005 -subresource744719.html?006 -subresource744719.html?007 -subresource744719.html?008 -subresource744719.html?009 -# this one is non existing and should cancel the load -nonexistent744719.html?010 -subresource744719.html?011 -subresource744719.html?012 -subresource744719.html?013 -subresource744719.html?014 -subresource744719.html?015 -subresource744719.html?016 -subresource744719.html?017 -subresource744719.html?018 -subresource744719.html?019 -subresource744719.html?020 -subresource744719.html?021 -subresource744719.html?022 -subresource744719.html?023 -subresource744719.html?024 -subresource744719.html?025 -subresource744719.html?026 -subresource744719.html?027 -subresource744719.html?028 -subresource744719.html?029 -subresource744719.html?030 diff --git a/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/744719-cancel.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/744719.cacheManifest b/dom/tests/mochitest/ajax/offline/744719.cacheManifest deleted file mode 100644 index f6ac2986e7258..0000000000000 --- a/dom/tests/mochitest/ajax/offline/744719.cacheManifest +++ /dev/null @@ -1,36 +0,0 @@ -CACHE MANIFEST - -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -# more than 15 what is a number of parallel loads -subresource744719.html?001 -subresource744719.html?002 -subresource744719.html?003 -subresource744719.html?004 -subresource744719.html?005 -subresource744719.html?006 -subresource744719.html?007 -subresource744719.html?008 -subresource744719.html?009 -subresource744719.html?010 -subresource744719.html?011 -subresource744719.html?012 -subresource744719.html?013 -subresource744719.html?014 -subresource744719.html?015 -subresource744719.html?016 -subresource744719.html?017 -subresource744719.html?018 -subresource744719.html?019 -subresource744719.html?020 -subresource744719.html?021 -subresource744719.html?022 -subresource744719.html?023 -subresource744719.html?024 -subresource744719.html?025 -subresource744719.html?026 -subresource744719.html?027 -subresource744719.html?028 -subresource744719.html?029 -subresource744719.html?030 diff --git a/dom/tests/mochitest/ajax/offline/744719.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/744719.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/744719.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest b/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest deleted file mode 100644 index 97ce7363f47d3..0000000000000 --- a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest +++ /dev/null @@ -1,3 +0,0 @@ -# This doesn't start with the magic cache manifest line. -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js diff --git a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/badManifestMagic.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/browser.ini b/dom/tests/mochitest/ajax/offline/browser.ini deleted file mode 100644 index 3935dd31521c6..0000000000000 --- a/dom/tests/mochitest/ajax/offline/browser.ini +++ /dev/null @@ -1,8 +0,0 @@ -[DEFAULT] -support-files = - file_simpleManifest.html - file_testFile.sjs - file_simpleManifest.cacheManifest - -[browser_disableAppcache.js] -skip-if = !e10s || (toolkit == 'android') || debug # Slow diff --git a/dom/tests/mochitest/ajax/offline/browser_disableAppcache.js b/dom/tests/mochitest/ajax/offline/browser_disableAppcache.js deleted file mode 100644 index 41465087cf9b6..0000000000000 --- a/dom/tests/mochitest/ajax/offline/browser_disableAppcache.js +++ /dev/null @@ -1,22 +0,0 @@ -const PATH = "http://example.com/browser/dom/tests/mochitest/ajax/offline/"; -const URL = PATH + "file_simpleManifest.html"; -const MANIFEST = PATH + "file_simpleManifest.cacheManifest"; -const PREF_NETWORK_PROXY = "network.proxy.type"; - -add_task(async function test_pref_removes_api() { - await BrowserTestUtils.openNewForegroundTab(gBrowser, URL); - await SpecialPowers.spawn(gBrowser.selectedBrowser, [], async () => { - // Have to use in page checking as IsSecureContextOrObjectIsFromSecureContext is true for spawn() - is( - content.document.getElementById("hasAppcache").textContent, - "no", - "Appcache is disabled" - ); - is( - content.document.getElementById("hasOfflineResourceList").textContent, - "no", - "OfflineResourceList is disabled" - ); - }); - gBrowser.removeCurrentTab(); -}); diff --git a/dom/tests/mochitest/ajax/offline/bypass.cacheManifest b/dom/tests/mochitest/ajax/offline/bypass.cacheManifest deleted file mode 100644 index ec31a901d728a..0000000000000 --- a/dom/tests/mochitest/ajax/offline/bypass.cacheManifest +++ /dev/null @@ -1,7 +0,0 @@ -CACHE MANIFEST - -bypass.html - -NETWORK: -namespace1/sub -namespace2 diff --git a/dom/tests/mochitest/ajax/offline/bypass.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/bypass.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/bypass.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/bypass.html b/dom/tests/mochitest/ajax/offline/bypass.html deleted file mode 100644 index f5bf71e9e3d66..0000000000000 --- a/dom/tests/mochitest/ajax/offline/bypass.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/changing1Hour.sjs b/dom/tests/mochitest/ajax/offline/changing1Hour.sjs deleted file mode 100644 index 2a103596507a5..0000000000000 --- a/dom/tests/mochitest/ajax/offline/changing1Hour.sjs +++ /dev/null @@ -1,8 +0,0 @@ -function handleRequest(request, response) -{ - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/plain"); - response.setHeader("Cache-Control", "max-age=3600"); - - response.write(Date.now()); -} diff --git a/dom/tests/mochitest/ajax/offline/changing1Sec.sjs b/dom/tests/mochitest/ajax/offline/changing1Sec.sjs deleted file mode 100644 index cb9428b6c32eb..0000000000000 --- a/dom/tests/mochitest/ajax/offline/changing1Sec.sjs +++ /dev/null @@ -1,9 +0,0 @@ -function handleRequest(request, response) -{ - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/plain"); - response.setHeader("Cache-Control", "max-age=1"); - - response.write(Date.now()); -} - diff --git a/dom/tests/mochitest/ajax/offline/changingManifest.sjs b/dom/tests/mochitest/ajax/offline/changingManifest.sjs deleted file mode 100644 index 4d178d1dd750f..0000000000000 --- a/dom/tests/mochitest/ajax/offline/changingManifest.sjs +++ /dev/null @@ -1,27 +0,0 @@ -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 204, "No content"); - setState("offline.changingManifest", match[1]); - } - - if (request.queryString == "") - { - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/cache-manifest"); - response.setHeader("Cache-Control", "no-cache"); - response.write( - "CACHE MANIFEST\n" + - "# v" + getState("offline.changingManifest") + "\n" + - "changing1Hour.sjs\n" + - "changing1Sec.sjs\n"); - - if (getState("offline.changingManifest") != "2") { - response.write( - "NETWORK:\n" + - "onwhitelist.html\n"); - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/dynamicRedirect.sjs b/dom/tests/mochitest/ajax/offline/dynamicRedirect.sjs deleted file mode 100644 index d2bb845f605f3..0000000000000 --- a/dom/tests/mochitest/ajax/offline/dynamicRedirect.sjs +++ /dev/null @@ -1,27 +0,0 @@ -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 200, "No content"); - setState("state", match[1]); - response.write("state='" + match[1] + "'"); - } - - if (request.queryString == "") - { - switch (getState("state")) - { - case "": // The default value - response.setStatusLine(request.httpVersion, 307, "Moved temporarly"); - response.setHeader("Location", "https://example.org/non-existing-dynamic.html"); - response.setHeader("Content-Type", "text/html"); - break; - case "on": - response.setStatusLine(request.httpVersion, 200, "OK"); - response.setHeader("Content-Type", "text/html"); - response.write("Dynamic page"); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs b/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs deleted file mode 100644 index 501d1a71d4cf9..0000000000000 --- a/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs +++ /dev/null @@ -1,27 +0,0 @@ -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 200, "No content"); - setState("state", match[1]); - response.write("state='" + match[1] + "'"); - } - - if (request.queryString == "") - { - switch (getState("state")) - { - case "": // The default value - response.setStatusLine(request.httpVersion, 307, "Moved temporarly"); - response.setHeader("Location", "https://example.com/non-existing-explicit.html"); - response.setHeader("Content-Type", "text/html"); - break; - case "on": - response.setStatusLine(request.httpVersion, 200, "OK"); - response.setHeader("Content-Type", "text/html"); - response.write("Explicit page"); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest b/dom/tests/mochitest/ajax/offline/fallback.cacheManifest deleted file mode 100644 index dad050991b146..0000000000000 --- a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest +++ /dev/null @@ -1,11 +0,0 @@ -CACHE MANIFEST -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -FALLBACK: -namespace1/ fallback.html -namespace1/sub/ fallback2.html -namespace2/ fallbackTop.html - -NETWORK: -onwhitelist.html diff --git a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/fallback.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/fallback.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/fallback.html b/dom/tests/mochitest/ajax/offline/fallback.html deleted file mode 100644 index 9b591a11951fc..0000000000000 --- a/dom/tests/mochitest/ajax/offline/fallback.html +++ /dev/null @@ -1,12 +0,0 @@ - - -fallback page for fallback test - - - - - - -Fallback page - - diff --git a/dom/tests/mochitest/ajax/offline/fallback2.html b/dom/tests/mochitest/ajax/offline/fallback2.html deleted file mode 100644 index ce737b09e6233..0000000000000 --- a/dom/tests/mochitest/ajax/offline/fallback2.html +++ /dev/null @@ -1,12 +0,0 @@ - - -fallback page for fallback test - - - - - - -Sub fallback page - - diff --git a/dom/tests/mochitest/ajax/offline/fallbackTop.html b/dom/tests/mochitest/ajax/offline/fallbackTop.html deleted file mode 100644 index 5de4316c04fc4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/fallbackTop.html +++ /dev/null @@ -1,8 +0,0 @@ - - -Fallback for top window - - - - - diff --git a/dom/tests/mochitest/ajax/offline/file_simpleManifest.cacheManifest b/dom/tests/mochitest/ajax/offline/file_simpleManifest.cacheManifest deleted file mode 100644 index a6b430488b788..0000000000000 --- a/dom/tests/mochitest/ajax/offline/file_simpleManifest.cacheManifest +++ /dev/null @@ -1,5 +0,0 @@ -CACHE MANIFEST -http://example.com/browser/dom/tests/mochitest/ajax/offline/file_testFile.sjs -http://example.com/browser/dom/tests/mochitest/ajax/offline/file_simpleManifest.html -http://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - diff --git a/dom/tests/mochitest/ajax/offline/file_simpleManifest.html b/dom/tests/mochitest/ajax/offline/file_simpleManifest.html deleted file mode 100644 index dc365807b6702..0000000000000 --- a/dom/tests/mochitest/ajax/offline/file_simpleManifest.html +++ /dev/null @@ -1,23 +0,0 @@ - - -load manifest test - - - - - - -Offline testing
-We have AppCache:
-We have OfflineResourceList:
- - - - diff --git a/dom/tests/mochitest/ajax/offline/file_testFile.sjs b/dom/tests/mochitest/ajax/offline/file_testFile.sjs deleted file mode 100644 index 62d020b355eb3..0000000000000 --- a/dom/tests/mochitest/ajax/offline/file_testFile.sjs +++ /dev/null @@ -1,25 +0,0 @@ -function handleRequest(request, response) { - var match = request.queryString.match(/^state=(.*)$/); - if (match) { - response.setStatusLine(request.httpVersion, 204, "No content"); - setState("version", match[1]); - return; - } - const state = getState("version"); - let color = "green"; - if (state === "evil") { - color = "red"; - } - const frameContent = ` - - - - - - -

Offline file: ${state}

- `; - response.setHeader("Content-Type", "text/html"); - response.setHeader("Cache-Control", "no-cache"); - response.write(frameContent); -} diff --git a/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest b/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest deleted file mode 100644 index 4b713f844375b..0000000000000 --- a/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest +++ /dev/null @@ -1,3 +0,0 @@ -CACHE MANIFEST - -foreign2.html diff --git a/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/foreign1.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest b/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest deleted file mode 100644 index 4b713f844375b..0000000000000 --- a/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest +++ /dev/null @@ -1,3 +0,0 @@ -CACHE MANIFEST - -foreign2.html diff --git a/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/foreign2.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/foreign2.html b/dom/tests/mochitest/ajax/offline/foreign2.html deleted file mode 100644 index 126ee47a6002e..0000000000000 --- a/dom/tests/mochitest/ajax/offline/foreign2.html +++ /dev/null @@ -1,69 +0,0 @@ - - -Foreign page 2 - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/jupiter.jpg b/dom/tests/mochitest/ajax/offline/jupiter.jpg deleted file mode 100644 index cddf589d56b41..0000000000000 Binary files a/dom/tests/mochitest/ajax/offline/jupiter.jpg and /dev/null differ diff --git a/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs b/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs deleted file mode 100644 index 5f562ec31048f..0000000000000 --- a/dom/tests/mochitest/ajax/offline/manifestRedirect.sjs +++ /dev/null @@ -1,6 +0,0 @@ -function handleRequest(request, response) -{ - response.setStatusLine(request.httpVersion, 307, "Moved temporarly"); - response.setHeader("Location", "https://example.com/tests/dom/tests/mochitest/ajax/offline/updating.cacheManifest"); - response.setHeader("Content-Type", "text/cache-manifest"); -} diff --git a/dom/tests/mochitest/ajax/offline/missing.html b/dom/tests/mochitest/ajax/offline/missing.html deleted file mode 100644 index 3e4fef759dea3..0000000000000 --- a/dom/tests/mochitest/ajax/offline/missing.html +++ /dev/null @@ -1,24 +0,0 @@ - - -missing test - - - - -

- diff --git a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest b/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest deleted file mode 100644 index 4c0bf27a137e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest +++ /dev/null @@ -1,6 +0,0 @@ -CACHE MANIFEST -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -# The following item doesn't exist, and will cause an update error. -https://example.com/tests/dom/tests/mochitest/ajax/offline/doesntExist.html diff --git a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/missingFile.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/mochitest.ini b/dom/tests/mochitest/ajax/offline/mochitest.ini deleted file mode 100644 index 64c2363bfb8d5..0000000000000 --- a/dom/tests/mochitest/ajax/offline/mochitest.ini +++ /dev/null @@ -1,97 +0,0 @@ -[DEFAULT] -scheme = https -skip-if = e10s #SLOW_DIRECTORY -support-files = - 445544.cacheManifest - 445544.cacheManifest^headers^ - 445544_part1.html - 445544_part2.html - 460353_iframe_nomanifest.html - 460353_iframe_ownmanifest.html - 460353_iframe_samemanifest.html - 744719-cancel.cacheManifest - 744719-cancel.cacheManifest^headers^ - 744719.cacheManifest - 744719.cacheManifest^headers^ - badManifestMagic.cacheManifest - badManifestMagic.cacheManifest^headers^ - bypass.cacheManifest - bypass.cacheManifest^headers^ - bypass.html - changing1Hour.sjs - changing1Sec.sjs - changingManifest.sjs - dynamicRedirect.sjs - explicitRedirect.sjs - fallback.cacheManifest - fallback.cacheManifest^headers^ - fallback.html - fallback2.html - fallbackTop.html - foreign1.cacheManifest - foreign1.cacheManifest^headers^ - foreign2.cacheManifest - foreign2.cacheManifest^headers^ - foreign2.html - jupiter.jpg - manifestRedirect.sjs - missing.html - missingFile.cacheManifest - missingFile.cacheManifest^headers^ - notonwhitelist.html - obsolete.html - obsoletingManifest.sjs - offlineChild.html - offlineTests.js - onwhitelist.html - onwhitelist.html^headers^ - overlap.cacheManifest - overlap.cacheManifest^headers^ - redirects.sjs - simpleManifest.cacheManifest - simpleManifest.cacheManifest^headers^ - subresource744719.html - unknownSection.cacheManifest - unknownSection.cacheManifest^headers^ - updatingIframe.sjs - updatingImplicit.html - updatingManifest.sjs - wildcardManifest.cacheManifest - wildcardManifest.cacheManifest^headers^ - namespace1/opp.html - namespace1/script.js - namespace1/redirectToDifferentOrigin.sjs - namespace1/sub/opp.html - namespace1/sub/script1.js - namespace1/sub2/script2.js - namespace2/script3.js - -[test_badManifestMagic.html] -[test_bug445544.html] -[test_bug460353.html] -[test_bug474696.html] -[test_bug544462.html] -[test_bug744719-cancel.html] -[test_bug744719.html] -[test_bug765203.html] -[test_bypass.html] -[test_cancelOfflineCache.html] -[test_changingManifest.html] -[test_fallback.html] -[test_foreign.html] -[test_identicalManifest.html] -[test_missingFile.html] -[test_missingManifest.html] -[test_noManifest.html] -[test_obsolete.html] -[test_offlineIFrame.html] -[test_offlineMode.html] -skip-if = true # disabled due to bug 656943 -[test_overlap.html] -[test_redirectManifest.html] -[test_redirectUpdateItem.html] -[test_refetchManifest.html] -[test_simpleManifest.html] -[test_updateCheck.html] -[test_updatingManifest.html] -[test_xhtmlManifest.xhtml] diff --git a/dom/tests/mochitest/ajax/offline/namespace1/opp.html b/dom/tests/mochitest/ajax/offline/namespace1/opp.html deleted file mode 100644 index daf4abf2130ac..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/opp.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Falback namespace page 1 - - - -Page in fall back namespace No. 1 - - diff --git a/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs b/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs deleted file mode 100644 index a64e00e044c85..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs +++ /dev/null @@ -1,6 +0,0 @@ -function handleRequest(request, response) -{ - response.setStatusLine(request.httpVersion, 307, "Moved temporarly"); - response.setHeader("Location", "https://example.org/tests/dom/tests/mochitest/ajax/offline/fallback2.html"); - response.setHeader("Content-Type", "text/html"); -} diff --git a/dom/tests/mochitest/ajax/offline/namespace1/script.js b/dom/tests/mochitest/ajax/offline/namespace1/script.js deleted file mode 100644 index 61ffb174f2bc9..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/script.js +++ /dev/null @@ -1,4 +0,0 @@ -function scriptNo0Function() -{ - return true; -} diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html b/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html deleted file mode 100644 index 2d0996553d260..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Falback namespace page 2 - - - -Page in fall back namespace No. 2 - - diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js b/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js deleted file mode 100644 index 30829316b2358..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js +++ /dev/null @@ -1,4 +0,0 @@ -function scriptNo1Function() -{ - return true; -} diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js b/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js deleted file mode 100644 index 586d39a19cc86..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js +++ /dev/null @@ -1,4 +0,0 @@ -function scriptNo2Function() -{ - return true; -} diff --git a/dom/tests/mochitest/ajax/offline/namespace2/script3.js b/dom/tests/mochitest/ajax/offline/namespace2/script3.js deleted file mode 100644 index 20dd8b97d25dc..0000000000000 --- a/dom/tests/mochitest/ajax/offline/namespace2/script3.js +++ /dev/null @@ -1,4 +0,0 @@ -function scriptNo3Function() -{ - return true; -} diff --git a/dom/tests/mochitest/ajax/offline/notonwhitelist.html b/dom/tests/mochitest/ajax/offline/notonwhitelist.html deleted file mode 100644 index 7b61c6843618d..0000000000000 --- a/dom/tests/mochitest/ajax/offline/notonwhitelist.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Page NOT on whitelist - - - -Page NOT on whitelist - - diff --git a/dom/tests/mochitest/ajax/offline/obsolete.html b/dom/tests/mochitest/ajax/offline/obsolete.html deleted file mode 100644 index 6c76529e8c9fb..0000000000000 --- a/dom/tests/mochitest/ajax/offline/obsolete.html +++ /dev/null @@ -1,69 +0,0 @@ - - -obsolete test - - - - -

- diff --git a/dom/tests/mochitest/ajax/offline/obsoletingManifest.sjs b/dom/tests/mochitest/ajax/offline/obsoletingManifest.sjs deleted file mode 100644 index f53dbeb79d363..0000000000000 --- a/dom/tests/mochitest/ajax/offline/obsoletingManifest.sjs +++ /dev/null @@ -1,31 +0,0 @@ -var manifest = - "CACHE MANIFEST\n" + - "obsolete.html\n"; - -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 204, "No content"); - response.setHeader("Cache-Control", "no-cache"); - setState("offline.obsoletingManifest", match[1]); - } - - if (request.queryString == "") - { - switch (getState("offline.obsoletingManifest")) - { - case "": // The default value - response.setStatusLine(request.httpVersion, 404, "Not found"); - response.setHeader("Cache-Control", "no-cache"); - break; - case "manifestPresent": - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/cache-manifest"); - response.setHeader("Cache-Control", "no-cache"); - response.write(manifest); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/offlineChild.html b/dom/tests/mochitest/ajax/offline/offlineChild.html deleted file mode 100644 index 66ef74576ed2b..0000000000000 --- a/dom/tests/mochitest/ajax/offline/offlineChild.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/offlineTests.js b/dom/tests/mochitest/ajax/offline/offlineTests.js deleted file mode 100644 index 44a4e464330c0..0000000000000 --- a/dom/tests/mochitest/ajax/offline/offlineTests.js +++ /dev/null @@ -1,390 +0,0 @@ -// Utility functions for offline tests. -var Cc = SpecialPowers.Cc; -var Ci = SpecialPowers.Ci; -var Cu = SpecialPowers.Cu; -var LoadContextInfo = Cc["@mozilla.org/load-context-info-factory;1"].getService(Ci.nsILoadContextInfoFactory); -var CommonUtils = Cu.import("resource://services-common/utils.js", {}).CommonUtils; - -const kNetBase = 2152398848; // 0x804B0000 -var NS_ERROR_CACHE_KEY_NOT_FOUND = kNetBase + 61; -var NS_ERROR_CACHE_KEY_WAIT_FOR_VALIDATION = kNetBase + 64; - -// Reading the contents of multiple cache entries asynchronously -function OfflineCacheContents(urls) { - this.urls = urls; - this.contents = {}; -} - -OfflineCacheContents.prototype = { -QueryInterface: function(iid) { - if (!iid.equals(Ci.nsISupports) && - !iid.equals(Ci.nsICacheEntryOpenCallback)) { - throw Cr.NS_ERROR_NO_INTERFACE; - } - return this; - }, -onCacheEntryCheck: function() { return Ci.nsICacheEntryOpenCallback.ENTRY_WANTED; }, -onCacheEntryAvailable: function(desc, isnew, status) { - if (!desc) { - this.fetch(this.callback); - return; - } - - var stream = desc.openInputStream(0); - var sstream = Cc["@mozilla.org/scriptableinputstream;1"] - .createInstance(SpecialPowers.Ci.nsIScriptableInputStream); - sstream.init(stream); - this.contents[desc.key] = sstream.read(sstream.available()); - sstream.close(); - desc.close(); - this.fetch(this.callback); - }, - -fetch: function(callback) -{ - this.callback = callback; - if (this.urls.length == 0) { - callback(this.contents); - return; - } - - var url = this.urls.shift(); - var self = this; - - var cacheStorage = OfflineTest.getActiveStorage(); - cacheStorage.asyncOpenURI(CommonUtils.makeURI(url), "", Ci.nsICacheStorage.OPEN_READONLY, - SpecialPowers.wrapCallbackObject(this)); -} -}; - -var OfflineTest = { - -_hasSlave: false, - -// The window where test results should be sent. -_masterWindow: null, - -// Array of all PUT overrides on the server -_pathOverrides: [], - -// SJSs whom state was changed to be reverted on teardown -_SJSsStated: [], - -setupChild: function() -{ - this._masterWindow = window; - return true; -}, - -/** - * Setup the tests. This will reload the current page in a new window - * if necessary. - * - * @return boolean Whether this window is the slave window - * to actually run the test in. - */ -setup: function() -{ - this._masterWindow = window; - return true; -}, - -teardownAndFinish: function() -{ - this.teardown(function(self) { self.finish(); }); -}, - -teardown: function(callback) -{ - // First wait for any pending scheduled updates to finish - this.waitForUpdates(function(self) { - // Remove the offline-app permission we gave ourselves. - - SpecialPowers.removePermission("offline-app", window.document); - - // Clear all overrides on the server - for (override in self._pathOverrides) - self.deleteData(self._pathOverrides[override]); - for (statedSJS in self._SJSsStated) - self.setSJSState(self._SJSsStated[statedSJS], ""); - - self.clear(); - callback(self); - }); -}, - -finish: function() -{ - SimpleTest.executeSoon(SimpleTest.finish); -}, - -// -// Mochitest wrappers - These forward tests to the proper mochitest window. -// -ok: function(condition, name) -{ - // Forward all arguments to SimpleTest.ok where we will check that ok() was - // called with at most 2 arguments. - return this._masterWindow.SimpleTest.ok.apply(this._masterWindow.SimpleTest, - arguments); -}, - -is: function(a, b, name) -{ - return this._masterWindow.SimpleTest.is(a, b, name); -}, - -isnot: function(a, b, name) -{ - return this._masterWindow.SimpleTest.isnot(a, b, name); -}, - -todo: function(a, name) -{ - return this._masterWindow.SimpleTest.todo(a, name); -}, - -clear: function() -{ - // XXX: maybe we should just wipe out the entire disk cache. - var applicationCache = this.getActiveCache(); - if (applicationCache) { - applicationCache.discard(); - } -}, - -waitForUpdates: function(callback) -{ - var self = this; - var observer = { - notified: false, - observe: function(subject, topic, data) { - if (subject) { - subject.QueryInterface(SpecialPowers.Ci.nsIOfflineCacheUpdate); - dump("Update of " + subject.manifestURI.spec + " finished\n"); - } - - SimpleTest.executeSoon(function() { - if (observer.notified) { - return; - } - - var updateservice = Cc["@mozilla.org/offlinecacheupdate-service;1"] - .getService(SpecialPowers.Ci.nsIOfflineCacheUpdateService); - var updatesPending = updateservice.numUpdates; - if (updatesPending == 0) { - try { - SpecialPowers.removeObserver(observer, "offline-cache-update-completed"); - } catch(ex) {} - dump("All pending updates done\n"); - observer.notified = true; - callback(self); - return; - } - - dump("Waiting for " + updateservice.numUpdates + " update(s) to finish\n"); - }); - } - } - - SpecialPowers.addObserver(observer, "offline-cache-update-completed", false); - - // Call now to check whether there are some updates scheduled - observer.observe(); -}, - -failEvent: function(e) -{ - OfflineTest.ok(false, "Unexpected event: " + e.type); -}, - -// The offline API as specified has no way to watch the load of a resource -// added with applicationCache.mozAdd(). -waitForAdd: function(url, onFinished) { - // Check every half second for ten seconds. - var numChecks = 20; - - var waitForAddListener = SpecialPowers.wrapCallbackObject({ - onCacheEntryCheck: function() { return Ci.nsICacheEntryOpenCallback.ENTRY_WANTED; }, - onCacheEntryAvailable: function(entry, isnew, status) { - if (entry) { - entry.close(); - onFinished(); - return; - } - - if (--numChecks == 0) { - onFinished(); - return; - } - - setTimeout(OfflineTest.priv(waitFunc), 500); - } - }); - - var waitFunc = function() { - var cacheStorage = OfflineTest.getActiveStorage(); - cacheStorage.asyncOpenURI(CommonUtils.makeURI(url), "", Ci.nsICacheStorage.OPEN_READONLY, waitForAddListener); - } - - setTimeout(this.priv(waitFunc), 500); -}, - -manifestURL: function(overload) -{ - var manifestURLspec; - if (overload) { - manifestURLspec = overload; - } else { - var win = window; - while (win && !win.document.documentElement.getAttribute("manifest")) { - if (win == win.parent) - break; - win = win.parent; - } - if (win) - manifestURLspec = win.document.documentElement.getAttribute("manifest"); - } - - var ios = Cc["@mozilla.org/network/io-service;1"] - .getService(Ci.nsIIOService) - - var baseURI = ios.newURI(window.location.href); - return ios.newURI(manifestURLspec, null, baseURI); -}, - -loadContext: function() -{ - return SpecialPowers.wrap(window).docShell - .QueryInterface(SpecialPowers.Ci.nsILoadContext); -}, - -loadContextInfo: function() -{ - return LoadContextInfo.fromLoadContext(this.loadContext(), false); -}, - -getActiveCache: function(overload) -{ - // Note that this is the current active cache in the cache stack, not the - // one associated with this window. - var serv = Cc["@mozilla.org/network/application-cache-service;1"] - .getService(Ci.nsIApplicationCacheService); - - var groupID = serv.buildGroupIDForInfo(this.manifestURL(overload), this.loadContextInfo()); - var cache; - // Sometimes this throws a NS_ERROR_UNEXPECTED when cache isn't init - try { - cache = serv.getActiveCache(groupID); - } catch (e) { - cache = false; - } - return cache; -}, - -getActiveStorage: function() -{ - var cache = this.getActiveCache(); - if (!cache) { - return null; - } - - var cacheService = Cc["@mozilla.org/netwerk/cache-storage-service;1"] - .getService(Ci.nsICacheStorageService); - return cacheService.appCacheStorage(LoadContextInfo.default, cache); -}, - -priv: function(func) -{ - var self = this; - return function() { - func(arguments); - } -}, - -checkCacheEntries: function(entries, callback) -{ - var checkNextEntry = function() { - if (entries.length == 0) { - setTimeout(OfflineTest.priv(callback), 0); - } else { - OfflineTest.checkCache(entries[0][0], entries[0][1], checkNextEntry); - entries.shift(); - } - } - - checkNextEntry(); -}, - -checkCache: function(url, expectEntry, callback) -{ - var cacheStorage = this.getActiveStorage(); - this._checkCache(cacheStorage, url, expectEntry, callback); -}, - -_checkCache: function(cacheStorage, url, expectEntry, callback) -{ - if (!cacheStorage) { - if (expectEntry) { - this.ok(false, url + " should exist in the offline cache (no session)"); - } else { - this.ok(true, url + " should not exist in the offline cache (no session)"); - } - if (callback) setTimeout(this.priv(callback), 0); - return; - } - - var _checkCacheListener = SpecialPowers.wrapCallbackObject({ - onCacheEntryCheck: function() { return Ci.nsICacheEntryOpenCallback.ENTRY_WANTED; }, - onCacheEntryAvailable: function(entry, isnew, applicationCache, status) { - if (entry) { - if (expectEntry) { - OfflineTest.ok(true, url + " should exist in the offline cache"); - } else { - OfflineTest.ok(false, url + " should not exist in the offline cache"); - } - entry.close(); - } else { - if (status == NS_ERROR_CACHE_KEY_NOT_FOUND) { - if (expectEntry) { - OfflineTest.ok(false, url + " should exist in the offline cache"); - } else { - OfflineTest.ok(true, url + " should not exist in the offline cache"); - } - } else if (status == NS_ERROR_CACHE_KEY_WAIT_FOR_VALIDATION) { - // There was a cache key that we couldn't access yet, that's good enough. - if (expectEntry) { - OfflineTest.ok(!mustBeValid, url + " should exist in the offline cache"); - } else { - OfflineTest.ok(mustBeValid, url + " should not exist in the offline cache"); - } - } else { - OfflineTest.ok(false, "got invalid error for " + url); - } - } - if (callback) setTimeout(OfflineTest.priv(callback), 0); - } - }); - - cacheStorage.asyncOpenURI(CommonUtils.makeURI(url), "", Ci.nsICacheStorage.OPEN_READONLY, _checkCacheListener); -}, - -setSJSState: function(sjsPath, stateQuery) -{ - var client = new XMLHttpRequest(); - client.open("GET", sjsPath + "?state=" + stateQuery, false); - - var appcachechannel = SpecialPowers.wrap(client).channel.QueryInterface(Ci.nsIApplicationCacheChannel); - appcachechannel.chooseApplicationCache = false; - appcachechannel.inheritApplicationCache = false; - appcachechannel.applicationCache = null; - - client.send(); - - if (stateQuery == "") - delete this._SJSsStated[sjsPath]; - else - this._SJSsStated.push(sjsPath); -} - -}; diff --git a/dom/tests/mochitest/ajax/offline/onwhitelist.html b/dom/tests/mochitest/ajax/offline/onwhitelist.html deleted file mode 100644 index 9e40cadbf2cd1..0000000000000 --- a/dom/tests/mochitest/ajax/offline/onwhitelist.html +++ /dev/null @@ -1,9 +0,0 @@ - - -Page on whitelist - - - -Page on whitelist - - diff --git a/dom/tests/mochitest/ajax/offline/onwhitelist.html^headers^ b/dom/tests/mochitest/ajax/offline/onwhitelist.html^headers^ deleted file mode 100644 index 9e23c73b7ffba..0000000000000 --- a/dom/tests/mochitest/ajax/offline/onwhitelist.html^headers^ +++ /dev/null @@ -1 +0,0 @@ -Cache-Control: no-cache diff --git a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest b/dom/tests/mochitest/ajax/offline/overlap.cacheManifest deleted file mode 100644 index 8b8e8c118a277..0000000000000 --- a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest +++ /dev/null @@ -1,12 +0,0 @@ -CACHE MANIFEST - -CACHE: -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -NETWORK: -bogus/specific/ - -FALLBACK: -# Fall back for a bogus namespace -bogus/ fallback.html diff --git a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/overlap.cacheManifest^headers^ deleted file mode 100644 index 257f2eb60f11f..0000000000000 --- a/dom/tests/mochitest/ajax/offline/overlap.cacheManifest^headers^ +++ /dev/null @@ -1 +0,0 @@ -Content-Type: text/cache-manifest diff --git a/dom/tests/mochitest/ajax/offline/redirects.sjs b/dom/tests/mochitest/ajax/offline/redirects.sjs deleted file mode 100644 index fb2e0ce902fce..0000000000000 --- a/dom/tests/mochitest/ajax/offline/redirects.sjs +++ /dev/null @@ -1,52 +0,0 @@ -ver1manifest = - "CACHE MANIFEST\n" + - "# v1\n" + - "\n" + - "https://example.com/tests/SimpleTest/SimpleTest.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs"; - -ver2manifest = - "CACHE MANIFEST\n" + - "# v2\n" + - "\n" + - "https://example.com/tests/SimpleTest/SimpleTest.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs"; - -ver3manifest = - "CACHE MANIFEST\n" + - "# v3\n" + - "\n" + - "https://example.com/tests/SimpleTest/SimpleTest.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/explicitRedirect.sjs"; - -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 204, "No content"); - setState("state", match[1]); - } - - if (request.queryString == "") - { - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/cache-manifest"); - response.setHeader("Cache-Control", "no-cache"); - switch (getState("state")) - { - case "": // The default value - response.write(ver1manifest + "\n#" + getState("state")); - break; - case "second": - response.write(ver2manifest + "\n#" + getState("state")); - break; - case "third": - response.write(ver3manifest + "\n#" + getState("state")); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest b/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest deleted file mode 100644 index c9d152bc5afc2..0000000000000 --- a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest +++ /dev/null @@ -1,7 +0,0 @@ -CACHE MANIFEST -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -# The following item is not a valid URI and will be ignored -bad:/uri/invalid - diff --git a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/simpleManifest.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/subresource744719.html b/dom/tests/mochitest/ajax/offline/subresource744719.html deleted file mode 100644 index 86ba068ec2cf9..0000000000000 --- a/dom/tests/mochitest/ajax/offline/subresource744719.html +++ /dev/null @@ -1 +0,0 @@ -Dummy subresource \ No newline at end of file diff --git a/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html b/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html deleted file mode 100644 index 42c0bc8b2c115..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_badManifestMagic.html +++ /dev/null @@ -1,53 +0,0 @@ - - -bad manifest magic - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug445544.html b/dom/tests/mochitest/ajax/offline/test_bug445544.html deleted file mode 100644 index c8054f3a66409..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug445544.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - -Test for Bug 445544 - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug460353.html b/dom/tests/mochitest/ajax/offline/test_bug460353.html deleted file mode 100644 index ac10d7a041de6..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug460353.html +++ /dev/null @@ -1,100 +0,0 @@ - - -Bug 460353 - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug474696.html b/dom/tests/mochitest/ajax/offline/test_bug474696.html deleted file mode 100644 index a178521309516..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug474696.html +++ /dev/null @@ -1,41 +0,0 @@ - - -Fallback on different origin redirect test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug544462.html b/dom/tests/mochitest/ajax/offline/test_bug544462.html deleted file mode 100644 index 38ccbff7c7373..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug544462.html +++ /dev/null @@ -1,53 +0,0 @@ - - -wildcard in network section test - - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug744719-cancel.html b/dom/tests/mochitest/ajax/offline/test_bug744719-cancel.html deleted file mode 100644 index c4dc850cbe929..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug744719-cancel.html +++ /dev/null @@ -1,84 +0,0 @@ - - -parallel load canceled - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug744719.html b/dom/tests/mochitest/ajax/offline/test_bug744719.html deleted file mode 100644 index 815d3db58e7c5..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug744719.html +++ /dev/null @@ -1,77 +0,0 @@ - - -parallel load - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bug765203.html b/dom/tests/mochitest/ajax/offline/test_bug765203.html deleted file mode 100644 index 734e565e94518..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bug765203.html +++ /dev/null @@ -1,73 +0,0 @@ - - -unknown section - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_bypass.html b/dom/tests/mochitest/ajax/offline/test_bypass.html deleted file mode 100644 index 27e91ca12d434..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_bypass.html +++ /dev/null @@ -1,37 +0,0 @@ - - -Bypass test - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_cancelOfflineCache.html b/dom/tests/mochitest/ajax/offline/test_cancelOfflineCache.html deleted file mode 100644 index 91360be7e3efa..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_cancelOfflineCache.html +++ /dev/null @@ -1,58 +0,0 @@ - - -Cancel offline cache - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_changingManifest.html b/dom/tests/mochitest/ajax/offline/test_changingManifest.html deleted file mode 100644 index 6af5c4c56a712..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_changingManifest.html +++ /dev/null @@ -1,116 +0,0 @@ - - -changing manifest test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_fallback.html b/dom/tests/mochitest/ajax/offline/test_fallback.html deleted file mode 100644 index 5dce657eb5d28..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_fallback.html +++ /dev/null @@ -1,129 +0,0 @@ - - -Fallback entry test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_foreign.html b/dom/tests/mochitest/ajax/offline/test_foreign.html deleted file mode 100644 index fec4d1cd29c34..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_foreign.html +++ /dev/null @@ -1,60 +0,0 @@ - - -Foreign test - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_identicalManifest.html b/dom/tests/mochitest/ajax/offline/test_identicalManifest.html deleted file mode 100644 index 466d7807cd438..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_identicalManifest.html +++ /dev/null @@ -1,86 +0,0 @@ - - -identical manifest test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_missingFile.html b/dom/tests/mochitest/ajax/offline/test_missingFile.html deleted file mode 100644 index f06e445b88a87..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_missingFile.html +++ /dev/null @@ -1,53 +0,0 @@ - - -missing manifest file test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_missingManifest.html b/dom/tests/mochitest/ajax/offline/test_missingManifest.html deleted file mode 100644 index 2fb764371f8eb..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_missingManifest.html +++ /dev/null @@ -1,33 +0,0 @@ - - -Test missing manifest - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_noManifest.html b/dom/tests/mochitest/ajax/offline/test_noManifest.html deleted file mode 100644 index efeb63020fc41..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_noManifest.html +++ /dev/null @@ -1,43 +0,0 @@ - - -bad manifest content type - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_obsolete.html b/dom/tests/mochitest/ajax/offline/test_obsolete.html deleted file mode 100644 index 9318d058250f5..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_obsolete.html +++ /dev/null @@ -1,42 +0,0 @@ - - -Test obsolete application caches - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_offlineIFrame.html b/dom/tests/mochitest/ajax/offline/test_offlineIFrame.html deleted file mode 100644 index 568347040522e..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_offlineIFrame.html +++ /dev/null @@ -1,46 +0,0 @@ - - -offline iframe test - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_offlineMode.html b/dom/tests/mochitest/ajax/offline/test_offlineMode.html deleted file mode 100644 index 39e7feab79423..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_offlineMode.html +++ /dev/null @@ -1,165 +0,0 @@ - - -Offline mode test - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_overlap.html b/dom/tests/mochitest/ajax/offline/test_overlap.html deleted file mode 100644 index 85f71c72a1842..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_overlap.html +++ /dev/null @@ -1,35 +0,0 @@ - - -overlapping namespaces test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_redirectManifest.html b/dom/tests/mochitest/ajax/offline/test_redirectManifest.html deleted file mode 100644 index 43701a3d08f40..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_redirectManifest.html +++ /dev/null @@ -1,44 +0,0 @@ - - -Fail update on manifest redirection test - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_redirectUpdateItem.html b/dom/tests/mochitest/ajax/offline/test_redirectUpdateItem.html deleted file mode 100755 index 21bc1897e12f0..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_redirectUpdateItem.html +++ /dev/null @@ -1,137 +0,0 @@ - - -Entries redirection handling during update test - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_refetchManifest.html b/dom/tests/mochitest/ajax/offline/test_refetchManifest.html deleted file mode 100644 index a580edc1a3455..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_refetchManifest.html +++ /dev/null @@ -1,88 +0,0 @@ - - -refetch manifest test - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_simpleManifest.html b/dom/tests/mochitest/ajax/offline/test_simpleManifest.html deleted file mode 100644 index 3e18a340a8953..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_simpleManifest.html +++ /dev/null @@ -1,130 +0,0 @@ - - -simple manifest test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_updateCheck.html b/dom/tests/mochitest/ajax/offline/test_updateCheck.html deleted file mode 100644 index fb675c326152a..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_updateCheck.html +++ /dev/null @@ -1,87 +0,0 @@ - - -Cache update test - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_updatingManifest.html b/dom/tests/mochitest/ajax/offline/test_updatingManifest.html deleted file mode 100644 index c15555761abf4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_updatingManifest.html +++ /dev/null @@ -1,346 +0,0 @@ - - -Cache update test - - - - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/test_xhtmlManifest.xhtml b/dom/tests/mochitest/ajax/offline/test_xhtmlManifest.xhtml deleted file mode 100644 index 3efc8eee23a87..0000000000000 --- a/dom/tests/mochitest/ajax/offline/test_xhtmlManifest.xhtml +++ /dev/null @@ -1,32 +0,0 @@ - - -xhtml manifest test - - - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest b/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest deleted file mode 100644 index ae88e75278671..0000000000000 --- a/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest +++ /dev/null @@ -1,10 +0,0 @@ -CACHE MANIFEST -https://example.com/tests/SimpleTest/SimpleTest.js - -UNKNOWN-SECTION: -https://example.com/tests/dom/tests/mochitest/ajax/offline/jupiter.jpg -here can be anything the current implementaion -is not able to parse at all and is just silently ignored - -CACHE: -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js diff --git a/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/unknownSection.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/mochitest/ajax/offline/updatingIframe.sjs b/dom/tests/mochitest/ajax/offline/updatingIframe.sjs deleted file mode 100644 index 91325d282038a..0000000000000 --- a/dom/tests/mochitest/ajax/offline/updatingIframe.sjs +++ /dev/null @@ -1,45 +0,0 @@ -ver1iframe = - "\n" + - "\n" + - "Update iframe\n" + - "\n" + - "\n" + - "First version of updating iframe.\n" + - "\n" + - "\n"; - -ver2iframe = - "\n" + - "\n" + - "Update iframe\n" + - "\n" + - "\n" + - "Second version of updating iframe.\n" + - "\n" + - "\n"; - -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 204, "No content"); - setState("offline.updatingIframe", match[1]); - } - - if (request.queryString == "") - { - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/html"); - response.setHeader("Cache-Control", "no-cache"); - switch (getState("offline.updatingIframe")) - { - case "": // The default value - response.write(ver1iframe); - break; - case "second": - response.write(ver2iframe); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/updatingImplicit.html b/dom/tests/mochitest/ajax/offline/updatingImplicit.html deleted file mode 100644 index 44931dd9da175..0000000000000 --- a/dom/tests/mochitest/ajax/offline/updatingImplicit.html +++ /dev/null @@ -1,53 +0,0 @@ - - -Updating implicit - - - - - - - - - - - diff --git a/dom/tests/mochitest/ajax/offline/updatingManifest.sjs b/dom/tests/mochitest/ajax/offline/updatingManifest.sjs deleted file mode 100644 index d6e3411cabd57..0000000000000 --- a/dom/tests/mochitest/ajax/offline/updatingManifest.sjs +++ /dev/null @@ -1,66 +0,0 @@ -ver1manifest = - "CACHE MANIFEST\n" + - "# v1\n" + - "\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/updatingIframe.sjs\n" + - "\n" + - "FALLBACK:\n" + - "namespace1/ fallback.html\n" + - "\n" + - "NETWORK:\n" + - "onwhitelist.html\n"; - -ver2manifest = - "CACHE MANIFEST\n" + - "# v2\n" + - "\n" + - "https://example.com/tests/SimpleTest/SimpleTest.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/updatingIframe.sjs" + - "\n" + - "FALLBACK:\n" + - "namespace1/ fallback.html\n" + - "namespace1/sub/ fallback2.html\n"; - -ver3manifest = - "CACHE MANIFEST\n" + - "# v3\n" + - "\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js\n" + - "https://example.com/tests/dom/tests/mochitest/ajax/offline/updatingIframe.sjs" + - "\n" + - "FALLBACK:\n" + - "namespace1/sub fallback2.html\n" + - "\n" + - "NETWORK:\n" + - "onwhitelist.html\n"; - -function handleRequest(request, response) -{ - var match = request.queryString.match(/^state=(.*)$/); - if (match) - { - response.setStatusLine(request.httpVersion, 204, "No content"); - setState("offline.updatingManifest", match[1]); - } - - if (request.queryString == "") - { - response.setStatusLine(request.httpVersion, 200, "Ok"); - response.setHeader("Content-Type", "text/cache-manifest"); - response.setHeader("Cache-Control", "no-cache"); - switch (getState("offline.updatingManifest")) - { - case "": // The default value - response.write(ver1manifest + "\n#" + getState("offline.updatingManifest")); - break; - case "second": - response.write(ver2manifest + "\n#" + getState("offline.updatingManifest")); - break; - case "third": - response.write(ver3manifest + "\n#" + getState("offline.updatingManifest")); - break; - } - } -} diff --git a/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest b/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest deleted file mode 100644 index 27a5ca1d56bce..0000000000000 --- a/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest +++ /dev/null @@ -1,7 +0,0 @@ -CACHE MANIFEST - -https://example.com/tests/SimpleTest/SimpleTest.js -https://example.com/tests/dom/tests/mochitest/ajax/offline/offlineTests.js - -NETWORK: -* diff --git a/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest^headers^ b/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest^headers^ deleted file mode 100644 index 5efde3c5b01e4..0000000000000 --- a/dom/tests/mochitest/ajax/offline/wildcardManifest.cacheManifest^headers^ +++ /dev/null @@ -1,2 +0,0 @@ -Content-Type: text/cache-manifest - diff --git a/dom/tests/moz.build b/dom/tests/moz.build index e89073cd7ee83..7d15fc30f06f0 100644 --- a/dom/tests/moz.build +++ b/dom/tests/moz.build @@ -37,9 +37,6 @@ with Files("browser/browser_test_focus_after_modal_state.js"): with Files("mochitest/ajax/**"): BUG_COMPONENT = ("Testing", "Mochitest") -with Files("mochitest/ajax/offline/**"): - BUG_COMPONENT = ("Core", "Networking: Cache") - with Files("mochitest/beacon/**"): BUG_COMPONENT = ("Core", "DOM: Networking") @@ -151,7 +148,6 @@ with Files("unit/test_PromiseDebugging.js"): MOCHITEST_MANIFESTS += [ "mochitest/ajax/jquery/mochitest.ini", "mochitest/ajax/mochikit/mochitest.ini", - "mochitest/ajax/offline/mochitest.ini", "mochitest/ajax/prototype/mochitest.ini", "mochitest/ajax/scriptaculous/mochitest.ini", "mochitest/beacon/mochitest.ini", @@ -192,7 +188,6 @@ XPCSHELL_TESTS_MANIFESTS += ["unit/xpcshell.ini"] BROWSER_CHROME_MANIFESTS += [ "browser/browser.ini", "browser/perfmetrics/browser.ini", - "mochitest/ajax/offline/browser.ini", ] TEST_HARNESS_FILES.testing.mochitest.tests.dom.tests.mochitest.ajax.lib += [ diff --git a/testing/runtimes/manifest-runtimes-unix.json b/testing/runtimes/manifest-runtimes-unix.json index dd1a71e3b90e9..4654905233bab 100644 --- a/testing/runtimes/manifest-runtimes-unix.json +++ b/testing/runtimes/manifest-runtimes-unix.json @@ -225,7 +225,6 @@ "dom/serviceworkers/test/browser.ini": 12.26, "dom/tests/browser/browser.ini": 314.8, "dom/tests/browser/perfmetrics/browser.ini": 4.07, - "dom/tests/mochitest/ajax/offline/browser.ini": 0.55, "dom/u2f/tests/browser/browser.ini": 4.16, "dom/url/tests/browser.ini": 1.2, "dom/webauthn/tests/browser/browser.ini": 13.18, diff --git a/testing/runtimes/manifest-runtimes-windows.json b/testing/runtimes/manifest-runtimes-windows.json index 5a1a1ce098a16..b5c8f74e7cb57 100644 --- a/testing/runtimes/manifest-runtimes-windows.json +++ b/testing/runtimes/manifest-runtimes-windows.json @@ -223,7 +223,6 @@ "dom/serviceworkers/test/browser.ini": 6.51, "dom/tests/browser/browser.ini": 285.12, "dom/tests/browser/perfmetrics/browser.ini": 2.46, - "dom/tests/mochitest/ajax/offline/browser.ini": 0.43, "dom/u2f/tests/browser/browser.ini": 2.36, "dom/url/tests/browser.ini": 0.54, "dom/webauthn/tests/browser/browser.ini": 9.1,