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 35088a037230b2..d3c2b9e1f5c797 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
@@ -513,13 +513,6 @@ onload = function() {
});
}, 'Worker() in a dedicated worker');
- subsetTestByKey('workers', async_test, function() {
- var worker = new Worker(input_url_worker_sharedworker);
- worker.onmessage = this.step_func_done(function(e) {
- assert_equals(e.data, expected_utf8);
- });
- }, 'SharedWorker() in a dedicated worker');
-
subsetTestByKey('workers', async_test, function() {
var worker = new SharedWorker(input_url_sharedworker_importScripts);
worker.port.onmessage = this.step_func_done(function(e) {
@@ -534,13 +527,6 @@ onload = function() {
});
}, 'Worker() in a shared worker');
- subsetTestByKey('workers', async_test, function() {
- var worker = new SharedWorker(input_url_sharedworker_sharedworker);
- worker.port.onmessage = this.step_func_done(function(e) {
- assert_equals(e.data, expected_utf8);
- });
- }, 'SharedWorker() in a shared worker');
-
// WebSocket()
subsetTestByKey('websocket', async_test, function() {
var ws = new WebSocket('ws://{{host}}:{{ports[ws][0]}}/echo-query?\u00E5');
diff --git a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resource.py b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resource.py
index 60eb4a15a06cd4..a6cfab61ed75e8 100644
--- a/html/infrastructure/urls/resolving-urls/query-encoding/resources/resource.py
+++ b/html/infrastructure/urls/resolving-urls/query-encoding/resources/resource.py
@@ -39,23 +39,12 @@ def main(request, response):
} catch(ex) {
postMessage(String(ex));
}""" % encoding)
- elif type == b'worker_sharedworker':
- return ([(b"Content-Type", b"text/javascript; charset=%s" % encoding)], # charset should be ignored for workers
- b"""try {
- var worker = new SharedWorker('?q=\\u00E5&type=sharedworker&encoding=%s');
- worker.port.onmessage = function(e) {
- postMessage(e.data);
- close();
- };
- } catch(ex) {
- postMessage(String(ex));
- }""" % encoding)
elif type == b'sharedworker_importScripts':
- return ([(b"Content-Type", b"text/javascript; charset=%s" % request.GET[b'encoding'])], # charset should be ignored for workers
- b"""onconnect = function(e) {
+ return ([(b"Content-Type", b"text/javascript; charset=%s" % encoding)], # charset should be ignored for workers
+ b"""var x = 'importScripts failed to run';
+ onconnect = function(e) {
var connect_port = e.source;
try {
- var x = 'importScripts failed to run';
importScripts('?q=\\u00E5&type=js&var=x&encoding=%s');
connect_port.postMessage(x);
close();
@@ -77,25 +66,6 @@ def main(request, response):
connect_port.postMessage(String(ex));
}
};""" % encoding)
- elif type == b'sharedworker_sharedworker':
- return ([(b"Content-Type", b"text/javascript; charset=%s" % encoding)], # charset should be ignored for workers
- b"""onconnect = function(e) {
- var connect_port = e.source;
- try {
- onerror = function(msg) {
- connect_port.postMessage(msg);
- close();
- return false;
- };
- var worker = new SharedWorker('?q=\\u00E5&type=sharedworker&encoding=%s');
- worker.port.onmessage = function(e) {
- connect_port.postMessage(e.data);
- close();
- };
- } catch(ex) {
- connect_port.postMessage(String(ex));
- }
- };""" % encoding)
elif type == b'eventstream':
return [(b"Content-Type", b"text/event-stream")], b"data: %s\n\n" % isomorphic_encode(q)
elif type == b'svg':