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

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

Issue 22791007: Improve SecurityError message on verifyProtocolHandlerScheme() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 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/register-protocol-handler-expected.txt
diff --git a/LayoutTests/fast/dom/register-protocol-handler-expected.txt b/LayoutTests/fast/dom/register-protocol-handler-expected.txt
index 88d3d7b4fb3d018fae0f8905ff7cca72b3d3b32b..d757f2de99941e0021b32d546426f5dafae1064a 100644
--- a/LayoutTests/fast/dom/register-protocol-handler-expected.txt
+++ b/LayoutTests/fast/dom/register-protocol-handler-expected.txt
@@ -1,10 +1,10 @@
This test makes sure that navigator.registerProtocolHandler throws the proper exceptions and has no-op default implementation.
Pass: window.navigator.registerProtocolHandler is defined.
-Pass: Invalid protocol "http" threw SecurityError exception.
-Pass: Invalid protocol "https" threw SecurityError exception.
-Pass: Invalid protocol "file" threw SecurityError exception.
-Pass: Invalid protocol "web+" threw SecurityError exception.
+Pass: Invalid protocol "http" threw SecurityError exception: "Failed to verify 'http' scheme. 'http' doesn't belong to the protocol whitelist.".
+Pass: Invalid protocol "https" threw SecurityError exception: "Failed to verify 'https' scheme. 'https' doesn't belong to the protocol whitelist.".
+Pass: Invalid protocol "file" threw SecurityError exception: "Failed to verify 'file' scheme. 'file' doesn't belong to the protocol whitelist.".
+Pass: Invalid protocol "web+" threw SecurityError exception: "Failed to verify 'web+' scheme. 'web+' is not valid protocol or length isn't at least five characters.".
Pass: Valid protocol "bitcoin" allowed.
Pass: Valid protocol "geo" allowed.
Pass: Valid protocol "im" allowed.
« no previous file with comments | « LayoutTests/fast/dom/register-protocol-handler.html ('k') | Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698