blob: 64158d27e07e1158c30b046b55f56997a8090c62 [file] [log] [blame]
wilander@apple.com4ae349a2019-10-10 00:03:47 +00001<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="UTF-8">
5 <script src="/js-test-resources/js-test.js"></script>
6</head>
7<body>
8<script>
9 description("Tests that IsLoggedIn is unavailable in insecure contexts.");
10
11 if (internals)
12 internals.markContextAsInsecure();
13
14 if (navigator.setLoggedIn === undefined)
15 testPassed("navigator.setLoggedIn is undefined on a page with protocol " + document.location.protocol);
16 else
17 testFailed("navigator.setLoggedIn is defined and is of type " + typeof navigator.setLoggedIn + " on a page with protocol " + document.location.protocol);
18</script>
19</body>
20</html>