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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/resources/post-securecontext-shared.js

Issue 2365353002: Add 'WorkerGlobalScope::isSecureContext' (Closed)
Patch Set: I hate webexposed tests. Created 4 years, 3 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: third_party/WebKit/LayoutTests/http/tests/security/secureContexts/resources/post-securecontext-shared.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/resources/post-securecontext-shared.js b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/resources/post-securecontext-shared.js
new file mode 100644
index 0000000000000000000000000000000000000000..70f5563903e4bc123a0992345ae5357690d22c40
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/security/secureContexts/resources/post-securecontext-shared.js
@@ -0,0 +1,3 @@
+self.onconnect = e => {
+ e.ports[0].postMessage({ "isSecureContext": self.isSecureContext });
+};

Powered by Google App Engine
This is Rietveld 408576698