Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/webappapis/system-state-and-capabilities/the-navigator-object/secure_context.html - WPT Dashboard Interop Dashboard
<!DOCTYPE HTML>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(t => {
assert_false('registerProtocolHandler' in navigator);
assert_equals(navigator.registerProtocolHandler, undefined);
}, "navigator.registerProtocolHandler does not exist in non-secure contexts.");
test(t => {
assert_false('unregisterProtocolHandler' in navigator);
assert_equals(navigator.unregisterProtocolHandler, undefined);
}, "navigator.unregisterProtocolHandler does not exist in non-secure contexts.");
</script>
</head>
</html>