Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(690)

Unified Diff: content/test/data/workers/worker_tls_client_auth.html

Issue 2889603007: Set render_frame_id while fetching from the dedicated worker for off-main-thread-fetch (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/data/workers/worker_common.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/data/workers/worker_tls_client_auth.html
diff --git a/content/test/data/workers/worker_tls_client_auth.html b/content/test/data/workers/worker_tls_client_auth.html
index 02260cc0b2e663de7a2ce1926e610dcb7ec7d864..725d3a52ddf5ff50bda979f72bc632176ace13a4 100644
--- a/content/test/data/workers/worker_tls_client_auth.html
+++ b/content/test/data/workers/worker_tls_client_auth.html
@@ -7,15 +7,19 @@
<script>
-// TODO(davidben): When URLSearchParams is stable and implemented, switch this
-// (and a lot of other test code) to it. https://crbug.com/303152
-var url = decodeURIComponent(/url=([^&]*)/.exec(location.search)[1]);
+var parms = new URLSearchParams(location.search);
+var test = parms.get("test");
+var url = parms.get("url");
var worker = getWorker("worker_common.js");
worker.onmessage = function(ev) {
if (ev.data == "done")
onSuccess();
};
-worker.postMessage("tls-client-auth " + url);
+if (test == "import") {
+ worker.postMessage("tls-client-auth-import " + url);
+} else if (test == "fetch") {
+ worker.postMessage("tls-client-auth-fetch " + url);
+}
</script>
</head>
« no previous file with comments | « content/test/data/workers/worker_common.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698