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

Unified Diff: LayoutTests/navigatorcontentutils/unregister-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/unregister-protocol-handler.html
diff --git a/LayoutTests/navigatorcontentutils/unregister-protocol-handler.html b/LayoutTests/navigatorcontentutils/unregister-protocol-handler.html
index 852511e74e9b977b331811918b18cebf3faf594e..b6180f93e6e679c119a050b860e816e0f61852b7 100644
--- a/LayoutTests/navigatorcontentutils/unregister-protocol-handler.html
+++ b/LayoutTests/navigatorcontentutils/unregister-protocol-handler.html
@@ -55,7 +55,7 @@ invalid_schemes.forEach(function (scheme) {
try {
window.navigator.unregisterProtocolHandler(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