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

Unified Diff: LayoutTests/fast/dom/unregister-protocol-handler.html

Issue 18234004: Add new schemes to content utils (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a trailing Created 7 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/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 {

Powered by Google App Engine
This is Rietveld 408576698