wilander@apple.com | 4ae349a | 2019-10-10 00:03:47 +0000 | [diff] [blame] | 1 | <!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> |