Changeset 152162 in webkit
- Timestamp:
- Jun 28, 2013 5:28:00 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r152160 r152162 1 2013-06-28 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Add new schemes to content utils. 4 https://bugs.webkit.org/show_bug.cgi?id=118181 5 6 Reviewed by Christophe Dumez. 7 8 Add new schemes as well as change SYNTAX_ERR, SECURITY_ERR. 9 10 * fast/dom/register-protocol-handler-expected.txt: 11 * fast/dom/register-protocol-handler.html: 12 * fast/dom/unregister-protocol-handler-expected.txt: 13 * fast/dom/unregister-protocol-handler.html: 14 * platform/efl/fast/dom/register-protocol-handler-expected.txt: 15 * platform/efl/fast/dom/unregister-protocol-handler-expected.txt: 16 1 17 2013-06-28 Simon Pena <simon.pena@samsung.com> 2 18 -
trunk/LayoutTests/fast/dom/register-protocol-handler-expected.txt
r94079 r152162 6 6 Fail: Invalid protocol "file" allowed. 7 7 Fail: Valid protocol "irc" failed. 8 Fail: Valid protocol "geo" failed. 8 9 Fail: Valid protocol "mailto" failed. 10 Fail: Valid protocol "magnet" failed. 9 11 Fail: Valid protocol "mms" failed. 10 12 Fail: Valid protocol "news" failed. 11 13 Fail: Valid protocol "nntp" failed. 14 Fail: Valid protocol "sip" failed. 12 15 Fail: Valid protocol "sms" failed. 13 16 Fail: Valid protocol "smsto" failed. 17 Fail: Valid protocol "ssh" failed. 14 18 Fail: Valid protocol "tel" failed. 15 19 Fail: Valid protocol "urn" failed. 16 20 Fail: Valid protocol "webcal" failed. 21 Fail: Valid protocol "xmpp" failed. 17 22 Fail: Invalid url "" allowed. 18 23 Fail: Invalid url "%S" allowed. -
trunk/LayoutTests/fast/dom/register-protocol-handler.html
r135162 r152162 33 33 }); 34 34 35 var valid_protocols = ['irc', ' mailto', 'mms', 'news', 'nntp', 'sms', 'smsto', 'tel', 'urn', 'webcal'];35 var valid_protocols = ['irc', 'geo', 'mailto', 'magnet', 'mms', 'news', 'nntp', 'sip', 'sms', 'smsto', 'ssh', 'tel', 'urn', 'webcal', 'xmpp']; 36 36 valid_protocols.forEach(function (protocol) { 37 37 var succeeded = false; -
trunk/LayoutTests/fast/dom/unregister-protocol-handler-expected.txt
r119482 r152162 6 6 Fail: Invalid protocol "file" allowed. 7 7 Fail: Valid protocol "irc" failed. 8 Fail: Valid protocol "geo" failed. 8 9 Fail: Valid protocol "mailto" failed. 10 Fail: Valid protocol "magnet" failed. 9 11 Fail: Valid protocol "mms" failed. 10 12 Fail: Valid protocol "news" failed. 11 13 Fail: Valid protocol "nntp" failed. 14 Fail: Valid protocol "sip" failed. 12 15 Fail: Valid protocol "sms" failed. 13 16 Fail: Valid protocol "smsto" failed. 17 Fail: Valid protocol "ssh" failed. 14 18 Fail: Valid protocol "tel" failed. 15 19 Fail: Valid protocol "urn" failed. 16 20 Fail: Valid protocol "webcal" failed. 21 Fail: Valid protocol "xmpp" failed. 17 22 Fail: Invalid url "" allowed. 18 23 Fail: Invalid url "%S" allowed. -
trunk/LayoutTests/fast/dom/unregister-protocol-handler.html
r120792 r152162 24 24 window.navigator.unregisterProtocolHandler(protocol, "invalid protocol %s", "title"); 25 25 } catch (e) { 26 succeeded = 'S ECURITY_ERR' == e.name;26 succeeded = 'SecurityError' == e.name; 27 27 } 28 28 29 29 if (succeeded) 30 debug('Pass: Invalid protocol "' + protocol + '" threw S ECURITY_ERRexception.');30 debug('Pass: Invalid protocol "' + protocol + '" threw SecurityError exception.'); 31 31 else 32 32 debug('Fail: Invalid protocol "' + protocol + '" allowed.'); 33 33 }); 34 34 35 var valid_protocols = ['irc', ' mailto', 'mms', 'news', 'nntp', 'sms', 'smsto', 'tel', 'urn', 'webcal'];35 var valid_protocols = ['irc', 'geo', 'mailto', 'magnet', 'mms', 'news', 'nntp', 'sip', 'sms', 'smsto', 'ssh', 'tel', 'urn', 'webcal', 'xmpp']; 36 36 valid_protocols.forEach(function (protocol) { 37 37 var succeeded = false; … … 55 55 window.navigator.unregisterProtocolHandler('web+myprotocol', url, 'title'); 56 56 } catch (e) { 57 succeeded = 'S YNTAX_ERR' == e.name;57 succeeded = 'SyntaxError' == e.name; 58 58 } 59 59 60 60 if (succeeded) 61 debug('Pass: Invalid url "' + url + '" threw S YNTAX_ERRexception.');61 debug('Pass: Invalid url "' + url + '" threw SyntaxError exception.'); 62 62 else 63 63 debug('Fail: Invalid url "' + url + '" allowed.'); -
trunk/LayoutTests/platform/efl/fast/dom/register-protocol-handler-expected.txt
r152158 r152162 6 6 Pass: Invalid protocol "file" threw SecurityError exception. 7 7 Pass: Valid protocol "irc" allowed. 8 Pass: Valid protocol "geo" allowed. 8 9 Pass: Valid protocol "mailto" allowed. 10 Pass: Valid protocol "magnet" allowed. 9 11 Pass: Valid protocol "mms" allowed. 10 12 Pass: Valid protocol "news" allowed. 11 13 Pass: Valid protocol "nntp" allowed. 14 Pass: Valid protocol "sip" allowed. 12 15 Pass: Valid protocol "sms" allowed. 13 16 Pass: Valid protocol "smsto" allowed. 17 Pass: Valid protocol "ssh" allowed. 14 18 Pass: Valid protocol "tel" allowed. 15 19 Pass: Valid protocol "urn" allowed. 16 20 Pass: Valid protocol "webcal" allowed. 21 Pass: Valid protocol "xmpp" allowed. 17 22 Pass: Invalid url "" threw SyntaxError exception. 18 23 Pass: Invalid url "%S" threw SyntaxError exception. -
trunk/LayoutTests/platform/efl/fast/dom/unregister-protocol-handler-expected.txt
r152158 r152162 6 6 Pass: Invalid protocol "file" threw SecurityError exception. 7 7 Pass: Valid protocol "irc" allowed. 8 Pass: Valid protocol "geo" allowed. 8 9 Pass: Valid protocol "mailto" allowed. 10 Pass: Valid protocol "magnet" allowed. 9 11 Pass: Valid protocol "mms" allowed. 10 12 Pass: Valid protocol "news" allowed. 11 13 Pass: Valid protocol "nntp" allowed. 14 Pass: Valid protocol "sip" allowed. 12 15 Pass: Valid protocol "sms" allowed. 13 16 Pass: Valid protocol "smsto" allowed. 17 Pass: Valid protocol "ssh" allowed. 14 18 Pass: Valid protocol "tel" allowed. 15 19 Pass: Valid protocol "urn" allowed. 16 20 Pass: Valid protocol "webcal" allowed. 21 Pass: Valid protocol "xmpp" allowed. 17 22 Pass: Invalid url "" threw SyntaxError exception. 18 23 Pass: Invalid url "%S" threw SyntaxError exception. -
trunk/Source/WebCore/ChangeLog
r152161 r152162 1 2013-06-28 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 3 Add new schemes to content utils. 4 https://bugs.webkit.org/show_bug.cgi?id=118181 5 6 Reviewed by Christophe Dumez. 7 8 According to latest content handler spec, new schemes are added to it. 9 Those are "geo, magnet, sip, ssh and xmpp". 10 11 http://www.w3.org/html/wg/drafts/html/master/webappapis.html#custom-handlers 12 13 Tests: fast/dom/register-protocol-handler.html 14 fast/dom/unregister-protocol-handler.html 15 16 * Modules/navigatorcontentutils/NavigatorContentUtils.cpp: 17 (WebCore::initProtocolHandlerWhitelist): 18 1 19 2013-06-28 Sanghyup Lee <sh53.lee@samsung.com> 2 20 -
trunk/Source/WebCore/Modules/navigatorcontentutils/NavigatorContentUtils.cpp
r149794 r152162 47 47 static const char* protocols[] = { 48 48 "irc", 49 "geo", 49 50 "mailto", 51 "magnet", 50 52 "mms", 51 53 "news", 52 54 "nntp", 55 "sip", 53 56 "sms", 54 57 "smsto", 58 "ssh", 55 59 "tel", 56 60 "urn", 57 61 "webcal", 62 "xmpp" 58 63 }; 59 64 for (size_t i = 0; i < WTF_ARRAY_LENGTH(protocols); ++i)
Note: See TracChangeset
for help on using the changeset viewer.