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

Unified Diff: content/test/data/workers/worker_common.js

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: worker_common.js was missing a license header (also a rebase) Created 5 years, 9 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
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");
}
}
« no previous file with comments | « content/shell/browser/shell_content_browser_client.cc ('k') | content/test/data/workers/worker_tls_client_auth.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698