Index: content/test/data/workers/worker_common.js |
diff --git a/content/test/data/workers/worker_common.js b/content/test/data/workers/worker_common.js |
index 675de0de6d1b8fb4b59bee4151e440f86e25e41f..03cc7f6c4f1f4df0e3e10bfd59e7212332ac3a06 100644 |
--- a/content/test/data/workers/worker_common.js |
+++ b/content/test/data/workers/worker_common.js |
@@ -1,3 +1,7 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
// Track the number of clients for this worker - tests can use this to ensure |
// that shared workers are actually shared, not distinct. |
var num_clients = 0; |
@@ -29,5 +33,11 @@ onmessage = function(evt) { |
} catch (ex) { |
postMessage(ex); |
} |
+ } else if (/tls-client-auth.+/.test(evt.data)) { |
+ try { |
+ importScripts(evt.data.substr(16)); |
+ } catch (ex) { |
+ } |
+ postMessage("done"); |
} |
} |