Changeset 94079 in webkit
- Timestamp:
- Aug 30, 2011, 9:00:46 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/dom/register-protocol-handler-expected.txt (modified) (1 diff)
-
LayoutTests/fast/dom/register-protocol-handler.html (modified) (1 diff)
-
LayoutTests/platform/chromium/fast/dom/register-protocol-handler-expected.txt (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/page/Navigator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r94077 r94079 1 2011-08-30 Ben Wells <benwells@chromium.org> 2 3 Update registerProtocolHandler scheme whitelist to match spec 4 https://bugs.webkit.org/show_bug.cgi?id=67104 5 6 Reviewed by Darin Adler. 7 8 * fast/dom/register-protocol-handler-expected.txt: 9 * fast/dom/register-protocol-handler.html: 10 * platform/chromium/fast/dom/register-protocol-handler-expected.txt: 11 1 12 2011-08-30 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/LayoutTests/fast/dom/register-protocol-handler-expected.txt
r77607 r94079 5 5 Fail: Invalid protocol "https" allowed. 6 6 Fail: Invalid protocol "file" allowed. 7 Fail: Valid protocol "irc" failed. 8 Fail: Valid protocol "mailto" failed. 9 Fail: Valid protocol "mms" failed. 10 Fail: Valid protocol "news" failed. 11 Fail: Valid protocol "nntp" failed. 12 Fail: Valid protocol "sms" failed. 13 Fail: Valid protocol "smsto" failed. 14 Fail: Valid protocol "tel" failed. 15 Fail: Valid protocol "urn" failed. 16 Fail: Valid protocol "webcal" failed. 7 17 Fail: Invalid url "" allowed. 8 18 Fail: Invalid url "%S" allowed. -
trunk/LayoutTests/fast/dom/register-protocol-handler.html
r87459 r94079 33 33 }); 34 34 35 var valid_protocols = ['irc', 'mailto', 'mms', 'news', 'nntp', 'sms', 'smsto', 'tel', 'urn', 'webcal']; 36 valid_protocols.forEach(function (protocol) { 37 var succeeded = false; 38 try { 39 window.navigator.registerProtocolHandler(protocol, "valid protocol %s", "title"); 40 succeeded = true; 41 } catch (e) { 42 succeeded = false; 43 } 44 45 if (succeeded) 46 debug('Pass: Valid protocol "' + protocol + '" allowed.'); 47 else 48 debug('Fail: Valid protocol "' + protocol + '" failed.'); 49 }); 50 35 51 var invalid_urls = ["", "%S"]; 36 52 invalid_urls.forEach(function (url) { -
trunk/LayoutTests/platform/chromium/fast/dom/register-protocol-handler-expected.txt
r87713 r94079 5 5 Pass: Invalid protocol "https" threw SECURITY_ERR exception. 6 6 Pass: Invalid protocol "file" threw SECURITY_ERR exception. 7 Pass: Valid protocol "irc" allowed. 8 Pass: Valid protocol "mailto" allowed. 9 Pass: Valid protocol "mms" allowed. 10 Pass: Valid protocol "news" allowed. 11 Pass: Valid protocol "nntp" allowed. 12 Pass: Valid protocol "sms" allowed. 13 Pass: Valid protocol "smsto" allowed. 14 Pass: Valid protocol "tel" allowed. 15 Pass: Valid protocol "urn" allowed. 16 Pass: Valid protocol "webcal" allowed. 7 17 Pass: Invalid url "" threw SYNTAX_ERR exception. 8 18 Pass: Invalid url "%S" threw SYNTAX_ERR exception. -
trunk/Source/WebCore/ChangeLog
r94078 r94079 1 2011-08-30 Ben Wells <benwells@chromium.org> 2 3 Update registerProtocolHandler scheme whitelist to match spec 4 https://bugs.webkit.org/show_bug.cgi?id=67104 5 6 Reviewed by Darin Adler. 7 8 * page/Navigator.cpp: 9 (WebCore::initProtocolHandlerWhitelist): 10 1 11 2011-08-30 Vsevolod Vlasov <vsevik@chromium.org> 2 12 -
trunk/Source/WebCore/page/Navigator.cpp
r87713 r94079 191 191 protocolWhitelist = new HashSet<String>; 192 192 static const char* protocols[] = { 193 "irc", 193 194 "mailto", 194 195 "mms", 196 "news", 195 197 "nntp", 196 "rtsp", 198 "sms", 199 "smsto", 200 "tel", 201 "urn", 197 202 "webcal", 198 203 };
Note:
See TracChangeset
for help on using the changeset viewer.