Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..3c0c375647b52e8bb3bee91be7227291b07f6655 100644
--- a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt
+++ b/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt
@@ -37,6 +37,7 @@ 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 Valid call succeeded.
+PASS Invalid url threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': Can only register handler in the document's origin.".
Check if registerProtocolHandler can register protocol correctly. If isProtocolHandlerRegistered() returns 'registered' state, registerProtoclHandler() works well.
'bitcoin' protocol will be registered for testing.

Powered by Google App Engine
This is Rietveld 408576698