Index: LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt |
diff --git a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt b/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt |
index 11244f273124adf2fe6a7339cf0335658f113396..adca9fbb219218629df2de6136c4988b218a4998 100644 |
--- a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt |
+++ b/LayoutTests/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 protocol correctly. If isProtocolHandlerRegistered() returns 'registered' state, registerProtoclHandler() works well. |