Index: LayoutTests/fast/dom/unregister-protocol-handler.html |
diff --git a/LayoutTests/fast/dom/unregister-protocol-handler.html b/LayoutTests/fast/dom/unregister-protocol-handler.html |
index d28685c541b3027fc6d87ce0a5912cb343366c57..514f7c8db65c6507ed8fb1049c9ff061320a107f 100644 |
--- a/LayoutTests/fast/dom/unregister-protocol-handler.html |
+++ b/LayoutTests/fast/dom/unregister-protocol-handler.html |
@@ -23,16 +23,16 @@ invalid_protocols.forEach(function (protocol) { |
try { |
window.navigator.unregisterProtocolHandler(protocol, "invalid protocol %s", "title"); |
} catch (e) { |
- succeeded = 'SECURITY_ERR' == e.name; |
+ succeeded = 'SecurityError' == e.name; |
} |
if (succeeded) |
- debug('Pass: Invalid protocol "' + protocol + '" threw SECURITY_ERR exception.'); |
+ debug('Pass: Invalid protocol "' + protocol + '" threw SecurityError exception.'); |
else |
debug('Fail: Invalid protocol "' + protocol + '" allowed.'); |
}); |
-var valid_protocols = ['bitcoin', 'irc', 'mailto', 'mms', 'news', 'nntp', 'sms', 'smsto', 'tel', 'urn', 'webcal']; |
+var valid_protocols = ['bitcoin', 'irc', 'geo', 'mailto', 'magnet', 'mms', 'news', 'nntp', 'sip', 'sms', 'smsto', 'ssh', 'tel', 'urn', 'webcal', 'xmpp']; |
valid_protocols.forEach(function (protocol) { |
var succeeded = false; |
try { |