| Index: LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html
|
| diff --git a/LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html b/LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html
|
| index c56a2d6eeebaea225cbccb6e5b1310ce97543e2e..d930fd2c56f75a89e4f4a7f5e4b8bc0b44cdb372 100644
|
| --- a/LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html
|
| +++ b/LayoutTests/fast/dom/navigatorcontentutils/unregister-protocol-handler.html
|
| @@ -53,15 +53,16 @@ var invalid_schemes = ['mailto:', 'ssh:/', 'magnet:+', 'tel:sip'];
|
| invalid_schemes.forEach(function (scheme) {
|
| var succeeded = false;
|
| try {
|
| - window.navigator.registerProtocolHandler(scheme, 'invalid scheme uri=%s', 'title');
|
| + window.navigator.unregisterProtocolHandler(scheme, 'invalid scheme uri=%s', 'title');
|
| } catch (e) {
|
| - succeeded = true;
|
| + succeeded = 'SyntaxError' == e.name;
|
| + errorMessage = e.message;
|
| }
|
|
|
| if (succeeded)
|
| debug('Pass: Invalid scheme "' + scheme + '" falied.');
|
| else
|
| - debug('Fail: Invalid scheme "' + scheme + '" allowed.');
|
| + debug('Fail: Invalid scheme "' + scheme + '" allowed. Threw exception: "' + errorMessage + '".');
|
| });
|
|
|
| var invalid_urls = ["", "%S"];
|
|
|