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

Unified Diff: LayoutTests/navigatorcontentutils/register-protocol-handler.html

Issue 349193002: Call isValidProtocol() function first in order to remove duplicated protocol checking in NavigatorC… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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.html
diff --git a/LayoutTests/navigatorcontentutils/register-protocol-handler.html b/LayoutTests/navigatorcontentutils/register-protocol-handler.html
index 94f4f210f7284f034c90dbe088f96459c888977a..5501432fa49436f100272390e8ab95ad2cd87286 100644
--- a/LayoutTests/navigatorcontentutils/register-protocol-handler.html
+++ b/LayoutTests/navigatorcontentutils/register-protocol-handler.html
@@ -56,7 +56,7 @@ invalid_schemes.forEach(function (scheme) {
try {
window.navigator.registerProtocolHandler(scheme, 'invalid scheme uri=%s', 'title');
} catch (e) {
- succeeded = 'SyntaxError' == e.name;
+ succeeded = 'SecurityError' == e.name;
errorMessage = e.message;
}

Powered by Google App Engine
This is Rietveld 408576698