blob: 7529a7eb2cb2f066766375ccb5920623392099fe [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Scheme outside white list and isProtocolHandlerRegistered</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script type="application/ecmascript">
test(function() {
var dir_uri = location.href.replace(/\/[^\/]*$/, "");
var scheme = 'http', url = dir_uri + '/%s';
navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
assert_equals(navigator.isProtocolHandlerRegistered(scheme, url), 'new');
});
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>