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

Unified Diff: LayoutTests/navigatorcontentutils/is-protocol-handler-registered.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
« no previous file with comments | « no previous file | LayoutTests/navigatorcontentutils/register-protocol-handler.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html
diff --git a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html b/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html
index 3bc676b36faf623ac2b92793a0a3ffb445449f6b..c015588eb72d2f1d91f65860245c6d39fdb8fd1f 100644
--- a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html
+++ b/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html
@@ -37,7 +37,7 @@ invalid_schemes.forEach(function (scheme) {
try {
window.navigator.isProtocolHandlerRegistered(scheme, 'invalid scheme uri=%s');
} catch (e) {
- succeeded = 'SyntaxError' == e.name;
+ succeeded = 'SecurityError' == e.name;
errorMessage = e.message;
}
« no previous file with comments | « no previous file | LayoutTests/navigatorcontentutils/register-protocol-handler.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698