blob: 685f5d19d7cae0cae1fd7b199dc8f3c9e9bbb636 [file] [log] [blame]
<!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>