RESOLVED FIXED 100095
Web Inspector: Console message's anchor element should be trimmed for readability.
https://bugs.webkit.org/show_bug.cgi?id=100095
Summary Web Inspector: Console message's anchor element should be trimmed for readabi...
Mike West
Reported 2012-10-23 02:28:27 PDT
Looooong URLs used as the anchor for console messages (e.g. a call stack link) can overflow the width of the window. They should be trimmed. Attached is an example of the issue.
Attachments
Image of looooong anchor elements. (65.21 KB, image/png)
2012-10-23 02:29 PDT, Mike West
no flags
Before the patch. (32.67 KB, image/png)
2012-11-26 05:47 PST, Mike West
no flags
After the patch. (23.30 KB, image/png)
2012-11-26 05:47 PST, Mike West
no flags
Patch (8.92 KB, patch)
2012-11-26 05:48 PST, Mike West
no flags
Fixing V8 expectation. (9.39 KB, patch)
2012-11-26 06:43 PST, Mike West
no flags
Patch (9.42 KB, patch)
2012-11-27 01:58 PST, Mike West
no flags
Patch (8.83 KB, patch)
2012-11-28 10:04 PST, Mike West
no flags
Mike West
Comment 1 2012-10-23 02:29:53 PDT
Created attachment 170091 [details] Image of looooong anchor elements.
Mike West
Comment 2 2012-11-26 05:47:12 PST
Created attachment 175976 [details] Before the patch.
Mike West
Comment 3 2012-11-26 05:47:27 PST
Created attachment 175977 [details] After the patch.
Mike West
Comment 4 2012-11-26 05:48:03 PST
WebKit Review Bot
Comment 5 2012-11-26 06:25:42 PST
Comment on attachment 175978 [details] Patch Attachment 175978 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14983666 New failing tests: http/tests/inspector/network/script-as-text-loading-long-url.html fast/text/atsui-small-caps-punctuation-size.html
Mike West
Comment 6 2012-11-26 06:43:59 PST
Created attachment 175997 [details] Fixing V8 expectation.
Mike West
Comment 7 2012-11-26 06:47:25 PST
(In reply to comment #5) > (From update of attachment 175978 [details]) > Attachment 175978 [details] did not pass chromium-ews (chromium-xvfb): > Output: http://queues.webkit.org/results/14983666 > > New failing tests: > http/tests/inspector/network/script-as-text-loading-long-url.html > fast/text/atsui-small-caps-punctuation-size.html 1. I commented out the critical bit of code to generate the "before" screenshot. I left it in when I uploaded the patch. I am an idiot. :) 2. I needed to have a platform-specific result here, so it wouldn't have worked anyway. Latest patch should fix the issues.
Build Bot
Comment 8 2012-11-26 17:47:09 PST
Comment on attachment 175997 [details] Fixing V8 expectation. Attachment 175997 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14984870 New failing tests: http/tests/inspector/network/script-as-text-loading-long-url.html
Mike West
Comment 9 2012-11-27 01:58:56 PST
Mike West
Comment 10 2012-11-28 01:46:42 PST
(In reply to comment #9) > Created an attachment (id=176202) [details] > Patch Friendly ping. Any inspector folks interested in picking this up? :)
Pavel Feldman
Comment 11 2012-11-28 07:06:13 PST
Comment on attachment 176202 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=176202&action=review Please fix the nit prior to landing. > Source/WebCore/inspector/front-end/inspector.js:997 > +WebInspector.MaxLengthForDisplayedURLs = 150; inspectot.js is currently not compiled - it depends from the universe. We should declare constants in common places instead. Such as WebInspector.Linkifier.MaxLengthForDisplayedURLs
Mike West
Comment 12 2012-11-28 10:04:01 PST
WebKit Review Bot
Comment 13 2012-11-28 23:28:51 PST
Comment on attachment 176508 [details] Patch Clearing flags on attachment: 176508 Committed r136104: <http://trac.webkit.org/changeset/136104>
WebKit Review Bot
Comment 14 2012-11-28 23:28:55 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.