Index: LayoutTests/http/tests/navigatorcontentutils/register-protocol-handler-expected.txt |
diff --git a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt b/LayoutTests/http/tests/navigatorcontentutils/register-protocol-handler-expected.txt |
similarity index 93% |
rename from LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt |
rename to LayoutTests/http/tests/navigatorcontentutils/register-protocol-handler-expected.txt |
index 0f6e1d64e5833b6458f5bc7514ae6e4e21b8801d..2daec287a89f6d5320a2f0836d06da655d2859e9 100644 |
--- a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt |
+++ b/LayoutTests/http/tests/navigatorcontentutils/register-protocol-handler-expected.txt |
@@ -36,6 +36,7 @@ PASS Invalid scheme "magnet:+" falied. |
PASS Invalid scheme "tel:sip" falied. |
PASS Invalid url "" threw SyntaxError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.". |
PASS Invalid url "%S" threw SyntaxError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.". |
+PASS URL with origin different than document origin threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': Can only register custom handler in the document's origin.". |
PASS Valid call succeeded. |
Check if registerProtocolHandler can register scheme correctly. If isProtocolHandlerRegistered() returns 'registered' state, registerProtoclHandler() works well. |