Changeset 132231 in webkit
- Timestamp:
- Oct 23, 2012 9:09:41 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r132229 r132231 1 2012-10-23 Mike West <mkwst@chromium.org> 2 3 Web Inspector: MIME type errors should truncate long URLs. 4 https://bugs.webkit.org/show_bug.cgi?id=100083 5 6 Reviewed by Pavel Feldman. 7 8 * http/tests/inspector/network/image-as-text-loading-data-url-expected.txt: Added. 9 * http/tests/inspector/network/image-as-text-loading-data-url.html: Added. 10 1 11 2012-10-23 Alexander Pavlov <apavlov@chromium.org> 2 12 -
trunk/Source/WebCore/ChangeLog
r132230 r132231 1 2012-10-23 Mike West <mkwst@chromium.org> 2 3 Web Inspector: 'data:' URLs should be properly trimmed for readability. 4 https://bugs.webkit.org/show_bug.cgi?id=100083 5 6 Reviewed by Pavel Feldman. 7 8 We recently landed a patch to trim the middle out of long URLs in 9 console messages in order to improve readability. That patch didn't 10 effect 'data:' URLs, as they didn't match the regex in the linkifier. 11 This patch ensures that 'data:' URLs are properly trimmed down to 12 size. 13 14 This problem came to light while resolving a different, smaller issue: 15 'image/jpg' wasn't whitelisted as an image MIME type. That trivial fix 16 is included in this patch. 17 18 Test: http/tests/inspector/network/image-as-text-loading-data-url.html 19 20 * inspector/front-end/NetworkManager.js: 21 (WebInspector.NetworkManager): 22 Adds 'image/jpg' as a valid image type. 23 * inspector/front-end/ResourceUtils.js: 24 (WebInspector.linkifyStringAsFragmentWithCustomLinkifier): 25 Supports 'data:' URLs in the linkifier's regex. 26 1 27 2012-10-23 Mike West <mkwst@chromium.org> 2 28 -
trunk/Source/WebCore/inspector/front-end/NetworkManager.js
r132130 r132231 63 63 "text/css": {"stylesheet": true}, 64 64 "text/xsl": {"stylesheet": true}, 65 "image/jpg": {"image": true}, 65 66 "image/jpeg": {"image": true}, 66 67 "image/pjpeg": {"image": true}, -
trunk/Source/WebCore/inspector/front-end/ResourceUtils.js
r132197 r132231 86 86 { 87 87 var container = document.createDocumentFragment(); 88 var linkStringRegEx = /(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\/\/| www\.)[\w$\-_+*'=\|\/\\(){}[\]%@&#~,:;.!?]{2,}[\w$\-_+*=\|\/\\({%@&#~]/;88 var linkStringRegEx = /(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\/\/|data:|www\.)[\w$\-_+*'=\|\/\\(){}[\]%@&#~,:;.!?]{2,}[\w$\-_+*=\|\/\\({%@&#~]/; 89 89 var lineColumnRegEx = /:(\d+)(:(\d+))?$/; 90 90
Note: See TracChangeset
for help on using the changeset viewer.