| Index: LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml b/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f40cdcdda36daf51c86279e08eb7679c090c3c72
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/006.xhtml
|
| @@ -0,0 +1,19 @@
|
| +<?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>
|
|
|