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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialsconstainer-securecontext.html

Issue 2634923003: Use SecureContext attribute for IDL of Credential Mgmt API
Patch Set: Added comment Created 3 years, 11 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 | « no previous file | third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-frame-errors.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialsconstainer-securecontext.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialsconstainer-securecontext.html b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialsconstainer-securecontext.html
new file mode 100644
index 0000000000000000000000000000000000000000..2d7c85c27d402c6b00316bf71e836ebab95c0092
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialsconstainer-securecontext.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<title>Credential Manager: PasswordCredential SecureContext.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="/serviceworker/resources/interfaces.js"></script>
+<script>
+if (window.location.hostname == "127.0.0.1") {
+ window.location = "http://example.test:8000/credentialmanager/credentialsconstainer-securecontext.html";
+} else {
+ // After redirect, we are in an insecure context, so navigator.credentials
+ // should be unavailable.
+ test(function () {
+ assert_equals(undefined, navigator.credentials);
+ }, 'CredentialsContainer unavailable in insecure context');
+}
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/credentialmanager/credentialscontainer-frame-errors.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698