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

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

Issue 292203007: Need to check invalid scheme in navigator content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt
diff --git a/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt b/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt
index b19e24d7f5d58622872ca764af3487809edf8117..2097022f2db89c785756c52551c6ef21886ae0b5 100644
--- a/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt
+++ b/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler-expected.txt
@@ -24,6 +24,10 @@ Pass: Valid protocol "urn" allowed.
Pass: Valid protocol "webcal" allowed.
Pass: Valid protocol "wtai" allowed.
Pass: Valid protocol "xmpp" allowed.
+Pass: Invalid scheme "mailto:" falied.
+Pass: Invalid scheme "ssh:/" falied.
+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: Valid call succeeded.

Powered by Google App Engine
This is Rietveld 408576698