| Index: third_party/WebKit/LayoutTests/http/tests/usb/secure-context.html
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/usb/secure-context.html b/third_party/WebKit/LayoutTests/http/tests/usb/secure-context.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..242f7046b6c6175d8e0612c161887cdd711fea88
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/usb/secure-context.html
|
| @@ -0,0 +1,17 @@
|
| +<!DOCTYPE html>
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +<script src="/resources/get-host-info.js"></script>
|
| +<script>
|
| +'use strict';
|
| +
|
| +if (window.location.origin != get_host_info().AUTHENTICATED_ORIGIN) {
|
| + window.location = get_host_info().AUTHENTICATED_ORIGIN +
|
| + window.location.pathname;
|
| +} else {
|
| + test(t => {
|
| + assert_true(window.isSecureContext);
|
| + assert_true(navigator.usb instanceof USB);
|
| + }, 'navigator.usb is present in an insecure context');
|
| +}
|
| +</script>
|
|
|