diff --git a/fetch/metadata/resources/record-header.py b/fetch/metadata/resources/record-header.py index 05b60eba13b1cf..a9666033449f63 100644 --- a/fetch/metadata/resources/record-header.py +++ b/fetch/metadata/resources/record-header.py @@ -122,20 +122,6 @@ def main(request, response): response.headers.set(b"Content-Type", b"application/javascript") return b"self.postMessage('loaded');" - ## Return an appcache manifest - if key.startswith(b"appcache-manifest"): - response.headers.set(b"Content-Type", b"text/cache-manifest") - return b"""CACHE MANIFEST -/fetch/metadata/resources/record-header.py?file=appcache-resource%s - -NETWORK: -*""" % key[17:] - - ## Return an appcache resource - if key.startswith(b"appcache-resource"): - response.headers.set(b"Content-Type", b"text/html") - return b"Appcache!" - ## Return a valid XSLT if key.startswith(b"xslt"): response.headers.set(b"Content-Type", b"text/xsl") diff --git a/html/browsers/offline/appcache/appcache-iframe.https.html b/html/browsers/offline/appcache/appcache-iframe.https.html deleted file mode 100644 index 8e72664371540f..00000000000000 --- a/html/browsers/offline/appcache/appcache-iframe.https.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - diff --git a/html/browsers/offline/appcache/resources/appcache-data.py b/html/browsers/offline/appcache/resources/appcache-data.py deleted file mode 100644 index c364bff4e03b80..00000000000000 --- a/html/browsers/offline/appcache/resources/appcache-data.py +++ /dev/null @@ -1,5 +0,0 @@ -def main(request, response): - type = request.GET[b'type'] - if request.GET[b'type'] == b'fallingback': - return 404, [(b'Content-Type', b'text/plain')], u"Page not found" - return [(b'Content-Type', b'text/plain')], type diff --git a/html/browsers/offline/appcache/resources/appcache-iframe.manifest b/html/browsers/offline/appcache/resources/appcache-iframe.manifest deleted file mode 100644 index 7221e909c6fe6d..00000000000000 --- a/html/browsers/offline/appcache/resources/appcache-iframe.manifest +++ /dev/null @@ -1,8 +0,0 @@ -CACHE MANIFEST - -appcache-iframe.py?type=cached -appcache-data.py?type=cached - -FALLBACK: -appcache-iframe.py?type=fallingback appcache-iframe.py?type=fallbacked -appcache-data.py?type=fallingback appcache-data.py?type=fallbacked diff --git a/html/browsers/offline/appcache/resources/appcache-iframe.py b/html/browsers/offline/appcache/resources/appcache-iframe.py deleted file mode 100644 index 6a5fd594ff8873..00000000000000 --- a/html/browsers/offline/appcache/resources/appcache-iframe.py +++ /dev/null @@ -1,43 +0,0 @@ -script = b''' - -''' - -def main(request, response): - type = request.GET[b'type'] - if request.GET[b'type'] == b'fallingback': - return 404, [(b'Content-Type', b'text/plain')], u"Page not found" - return [(b'Content-Type', b'text/html')], script % type diff --git a/html/browsers/offline/appcache/workers/appcache-worker.https.html b/html/browsers/offline/appcache/workers/appcache-worker.https.html deleted file mode 100644 index 96fe5f2b7d22c1..00000000000000 --- a/html/browsers/offline/appcache/workers/appcache-worker.https.html +++ /dev/null @@ -1,81 +0,0 @@ - - - - - diff --git a/html/browsers/offline/appcache/workers/resources/appcache-dedicated-worker-not-in-cache.js b/html/browsers/offline/appcache/workers/resources/appcache-dedicated-worker-not-in-cache.js deleted file mode 100644 index d4ed500496b45b..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-dedicated-worker-not-in-cache.js +++ /dev/null @@ -1 +0,0 @@ -postMessage('Done'); diff --git a/html/browsers/offline/appcache/workers/resources/appcache-shared-worker-not-in-cache.js b/html/browsers/offline/appcache/workers/resources/appcache-shared-worker-not-in-cache.js deleted file mode 100644 index 303595ca37606d..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-shared-worker-not-in-cache.js +++ /dev/null @@ -1,64 +0,0 @@ -var info = ''; - -var initPromise = new Promise(resolve => { - self.addEventListener('connect', event => { - self.postMessage = msg => { event.ports[0].postMessage(msg); }; - resolve(); - }); -}); - -function importNotInCacheSciptTest() { - return new Promise((resolve, reject) => { - try { - importScripts('appcache-worker-import.py?type=not-in-cache'); - } catch(e) { - reject(new Error('Error while importing the not-in-cache script: ' + - e.toString())); - return; - } - if (info != 'Set by the not-in-cache script') { - reject(new Error('The not-in-cache script was not correctly executed')); - } - resolve(); - }); -} - -function importFallbackSciptTest() { - return new Promise((resolve, reject) => { - try { - importScripts('appcache-worker-import.py?type=fallingback'); - reject(new Error('Importing a fallback script must fail.')); - } catch(e) { - resolve(); - } - }); -} - -function fetchNotInCacheFileTest() { - return fetch('appcache-worker-data.py?type=not-in-cache') - .then(res => res.text(), - _ => { throw new Error('Failed to fetch not-in-cache file'); }) - .then(text => { - if (text != 'not-in-cache') { - throw new Error('not-in-cache file mismatch'); - } - }) -} - -function fetchFallbackFileTest() { - return fetch('appcache-worker-data.py?type=fallingback') - .then(res => { - if (res.status != 404) { - throw new Error( - 'Fetching fallback file must resolve with 404 response'); - } - }, - _ => { throw new Error('Fetching fallback file must not fail'); }); -} - -initPromise - .then(importNotInCacheSciptTest) - .then(importFallbackSciptTest) - .then(fetchNotInCacheFileTest) - .then(fetchFallbackFileTest) - .then(_ => postMessage('Done'), error => postMessage(error.toString())); diff --git a/html/browsers/offline/appcache/workers/resources/appcache-worker-data.py b/html/browsers/offline/appcache/workers/resources/appcache-worker-data.py deleted file mode 100644 index c364bff4e03b80..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-worker-data.py +++ /dev/null @@ -1,5 +0,0 @@ -def main(request, response): - type = request.GET[b'type'] - if request.GET[b'type'] == b'fallingback': - return 404, [(b'Content-Type', b'text/plain')], u"Page not found" - return [(b'Content-Type', b'text/plain')], type diff --git a/html/browsers/offline/appcache/workers/resources/appcache-worker-import.py b/html/browsers/offline/appcache/workers/resources/appcache-worker-import.py deleted file mode 100644 index 73ccbc3d3988b0..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-worker-import.py +++ /dev/null @@ -1,7 +0,0 @@ -script = b'info = \'Set by the %s script\';' - -def main(request, response): - type = request.GET[b'type'] - if request.GET[b'type'] == b'fallingback': - return 404, [(b'Content-Type', b'text/plain')], u"Page not found" - return [(b'Content-Type', b'text/javascript')], script % type diff --git a/html/browsers/offline/appcache/workers/resources/appcache-worker.manifest b/html/browsers/offline/appcache/workers/resources/appcache-worker.manifest deleted file mode 100644 index f369a766404c3f..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-worker.manifest +++ /dev/null @@ -1,10 +0,0 @@ -CACHE MANIFEST - -appcache-worker.py?type=cached -appcache-worker-import.py?type=cached -appcache-worker-data.py?type=cached - -FALLBACK: -appcache-worker.py?type=fallingback appcache-worker.py?type=fallbacked -appcache-worker-import.py?type=fallingback appcache-worker-import.py?type=fallbacked -appcache-worker-data.py?type=fallingback appcache-worker-data.py?type=fallbacked diff --git a/html/browsers/offline/appcache/workers/resources/appcache-worker.py b/html/browsers/offline/appcache/workers/resources/appcache-worker.py deleted file mode 100644 index 4f990389e2b68a..00000000000000 --- a/html/browsers/offline/appcache/workers/resources/appcache-worker.py +++ /dev/null @@ -1,103 +0,0 @@ -script = b''' -var initPromise = Promise.resolve(); - -if ('SharedWorkerGlobalScope' in self && - self instanceof SharedWorkerGlobalScope) { - initPromise = new Promise(resolve => { - self.addEventListener('connect', event => { - self.postMessage = msg => { event.ports[0].postMessage(msg); }; - resolve(); - }); - }); -} - -var info = ''; - -function importCachedScriptTest() { - return new Promise((resolve, reject) => { - info = ''; - try { - importScripts('appcache-worker-import.py?type=cached'); - } catch(e) { - reject(new Error('Error while importing the cached script: ' + - e.toString())); - return; - } - if (info != 'Set by the cached script') { - reject(new Error('The cached script was not correctly executed')); - } - resolve(); - }); -} - -function importNotInCacheScriptTest() { - return new Promise((resolve, reject) => { - try { - importScripts('appcache-worker-import.py?type=not-in-cache'); - reject(new Error('Importing a non-cached script must fail.')); - } catch(e) { - resolve(); - } - }); -} - -function importFallbackScriptTest() { - return new Promise((resolve, reject) => { - info = ''; - try { - importScripts('appcache-worker-import.py?type=fallingback'); - } catch(e) { - reject(new Error('Error while importing the fallingback script: ' + - e.toString())); - } - if (info != 'Set by the fallbacked script') { - reject(new Error('The fallingback script was not correctly executed')); - } - resolve(); - }); -} - -function fetchCachedFileTest() { - return fetch('appcache-worker-data.py?type=cached') - .then(res => res.text(), - _ => { throw new Error('Failed to fetch cached file'); }) - .then(text => { - if (text != 'cached') { - throw new Error('cached file missmatch'); - } - }); -} - -function fetchNotInCacheFileTest() { - return fetch('appcache-worker-data.py?type=not-in-cache') - .then(_ => { throw new Error('Fetching not-in-cache file must fail'); }, - _ => {}); -} - -function fetchFallbackFileTest() { - return fetch('appcache-worker-data.py?type=fallingback') - .then(res => res.text(), - _ => { throw new Error('Failed to fetch fallingback file'); }) - .then(text => { - if (text != 'fallbacked') { - throw new Error('fallbacked file miss match'); - } - }); -} - -initPromise - .then(importCachedScriptTest) - .then(importNotInCacheScriptTest) - .then(importFallbackScriptTest) - .then(fetchCachedFileTest) - .then(fetchNotInCacheFileTest) - .then(fetchFallbackFileTest) - .then(_ => postMessage('Done: %s'), - error => postMessage(error.toString())); -''' - -def main(request, response): - type = request.GET[b'type'] - if request.GET[b'type'] == b'fallingback': - return 404, [(b'Content-Type', b'text/plain')], u"Page not found" - return [(b'Content-Type', b'text/javascript')], script % type diff --git a/html/browsers/offline/application-cache-api/api_status_idle.https.html b/html/browsers/offline/application-cache-api/api_status_idle.https.html deleted file mode 100644 index c55e4fc589f121..00000000000000 --- a/html/browsers/offline/application-cache-api/api_status_idle.https.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - Offline Application Cache - API_status_IDLE - - - - - -
- - - diff --git a/html/browsers/offline/application-cache-api/api_status_uncached.https.html b/html/browsers/offline/application-cache-api/api_status_uncached.https.html deleted file mode 100644 index 300c4a1b182b6e..00000000000000 --- a/html/browsers/offline/application-cache-api/api_status_uncached.https.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Offline Application Cache - API_status_UNCACHED - - - - -
- - - - diff --git a/html/browsers/offline/application-cache-api/api_swapcache_error.https.html b/html/browsers/offline/application-cache-api/api_swapcache_error.https.html deleted file mode 100644 index 4e069d73f7f54f..00000000000000 --- a/html/browsers/offline/application-cache-api/api_swapcache_error.https.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Offline Application Cache - API_swapCache_error - - - - -
- - - - diff --git a/html/browsers/offline/application-cache-api/api_update.https.html b/html/browsers/offline/application-cache-api/api_update.https.html deleted file mode 100644 index 0cb281fba5682e..00000000000000 --- a/html/browsers/offline/application-cache-api/api_update.https.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - Offline Application Cache - API_update - - - - -
- - - - diff --git a/html/browsers/offline/application-cache-api/api_update_error.https.html b/html/browsers/offline/application-cache-api/api_update_error.https.html deleted file mode 100644 index 46386939c5c848..00000000000000 --- a/html/browsers/offline/application-cache-api/api_update_error.https.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Offline Application Cache - API_update_error - - - - -
- - - - - diff --git a/html/browsers/offline/application-cache-api/secure_context.html b/html/browsers/offline/application-cache-api/secure_context.html deleted file mode 100644 index b9ccc1f854a613..00000000000000 --- a/html/browsers/offline/application-cache-api/secure_context.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - - - diff --git a/html/browsers/offline/introduction-4/event_cached.https.html b/html/browsers/offline/introduction-4/event_cached.https.html deleted file mode 100644 index 24f57769fc58b4..00000000000000 --- a/html/browsers/offline/introduction-4/event_cached.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Offline Application Cache - Event_cached - - - - -
- - - - diff --git a/html/browsers/offline/introduction-4/event_checking.https.html b/html/browsers/offline/introduction-4/event_checking.https.html deleted file mode 100644 index c180eca9d92161..00000000000000 --- a/html/browsers/offline/introduction-4/event_checking.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Offline Application Cache - Event_checking - - - - -
- - - - diff --git a/html/browsers/offline/introduction-4/event_noupdate.https.html b/html/browsers/offline/introduction-4/event_noupdate.https.html deleted file mode 100644 index 1e4dd89cf31276..00000000000000 --- a/html/browsers/offline/introduction-4/event_noupdate.https.html +++ /dev/null @@ -1,19 +0,0 @@ - - - - Offline Application Cache - Event_noupdate - - - - -
- - - - - diff --git a/html/browsers/offline/introduction-4/event_progress.https.html b/html/browsers/offline/introduction-4/event_progress.https.html deleted file mode 100644 index a808db757046e2..00000000000000 --- a/html/browsers/offline/introduction-4/event_progress.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Offline Application Cache - Event_progress - - - - -
- - - - diff --git a/html/browsers/offline/manifest_url_check.https.https.html b/html/browsers/offline/manifest_url_check.https.https.html deleted file mode 100644 index 02bf70b163dd14..00000000000000 --- a/html/browsers/offline/manifest_url_check.https.https.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Offline Application Cache - URL_# - - - - -
- - - - diff --git a/html/browsers/offline/no-appcache-in-shared-workers-historical.https.html b/html/browsers/offline/no-appcache-in-shared-workers-historical.https.html deleted file mode 100644 index edfcc3e43605c5..00000000000000 --- a/html/browsers/offline/no-appcache-in-shared-workers-historical.https.html +++ /dev/null @@ -1,19 +0,0 @@ - - -AppCache should not exist in shared workers, even though it was specced at some point - - - - - - - diff --git a/html/browsers/offline/no-appcache-in-shared-workers-historical.js b/html/browsers/offline/no-appcache-in-shared-workers-historical.js deleted file mode 100644 index 4f9b732e34a0a4..00000000000000 --- a/html/browsers/offline/no-appcache-in-shared-workers-historical.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -self.importScripts('/resources/testharness.js'); - -test(() => { - assert_equals(self.applicationCache, undefined, "self.applicationCache must be undefined"); - assert_false("applicationCache" in self, "applicationCache must not even be a property of self"); -}, "self.applicationCache must not exist"); - -test(() => { - assert_equals(self.ApplicationCache, undefined, "self.ApplicationCache must be undefined"); - assert_false("ApplicationCache" in self, "ApplicationCache must not even be a property of self"); -}, "ApplicationCache must not be exposed"); - -done(); diff --git a/html/browsers/the-window-object/security-window/window-security.https.html b/html/browsers/the-window-object/security-window/window-security.https.html index ad8f177f37d2ad..68af5bd90b864a 100644 --- a/html/browsers/the-window-object/security-window/window-security.https.html +++ b/html/browsers/the-window-object/security-window/window-security.https.html @@ -24,7 +24,6 @@ //SecurityError should be thrown [ //attributes - {name: "applicationCache"}, {name: "devicePixelRatio"}, {name: "document"}, {name: "external"}, diff --git a/html/browsers/the-window-object/window-properties.https.html b/html/browsers/the-window-object/window-properties.https.html index fa75faa6f16955..980db277597d51 100644 --- a/html/browsers/the-window-object/window-properties.https.html +++ b/html/browsers/the-window-object/window-properties.https.html @@ -122,7 +122,6 @@ "history", "frameElement", "navigator", - "applicationCache", // WindowSessionStorage "sessionStorage", diff --git a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js index 01c8a59cd2f0ea..0b8493da6cbcf3 100644 --- a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js +++ b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resolve-url.js @@ -561,24 +561,6 @@ onload = function() { assert_true(ws.url.indexOf(expected_utf8) > -1, msg(expected_utf8, got)); }, 'WebSocket#url'); - // Parsing cache manifest - function test_cache_manifest(mode) { - subsetTestByKey('appcache', async_test, function() { - var iframe = document.createElement('iframe'); - var uuid = token(); - iframe.src = 'resources/page-using-manifest.py?id='+uuid+'&encoding='+encoding+'&mode='+mode; - document.body.appendChild(iframe); - this.add_cleanup(function() { - document.body.removeChild(iframe); - }); - poll_for_stash(this, uuid, expected_utf8); - }, 'Parsing cache manifest (' + mode + ')'); - } - - 'CACHE, FALLBACK, NETWORK'.split(', ').forEach(function(str) { - test_cache_manifest(str); - }); - // CSS function test_css(tmpl, expected_cssom, encoding, use_style_element) { var desc = ['CSS', (use_style_element ? '