Bug 124779

Summary: Web Inspector: Styles: Truncate long URLs (e.g. base64)
Product: WebKit Reporter: Andrew Theroux <therouxdown+spam>
Component: Web InspectorAssignee: Nikita Vasilyev <nvasilyev>
Status: RESOLVED MOVED    
Severity: Normal CC: inspector-bugzilla-changes, mattbaker, nvasilyev, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 178176    
Bug Blocks:    

Andrew Theroux
Reported 2013-11-22 09:32:01 PST
Consider truncating base64 encoded images and fonts. The encoded information is of little use to the developer, yet consumes a sizable amount of screen real estate. This is how Safari handles it: http://cl.ly/image/021W1M320l2b vs. Chrome: http://cl.ly/image/1w2X1p0b2P3k
Attachments
Antoine Quint
Comment 1 2013-11-22 09:57:45 PST
I wonder if we should just truncate everything after "base64", I don't see how any of that could be of use to the developer in the sidebar, and Cmd+click would show the full string in the stylesheet.
Joseph Pecoraro
Comment 2 2013-11-22 10:19:48 PST
(In reply to comment #1) > I wonder if we should just truncate everything after "base64", I don't see how any of that could be of use to the developer in the sidebar, and Cmd+click would show the full string in the stylesheet. Good idea! That sounds good to me.
Timothy Hatcher
Comment 3 2013-12-02 12:39:11 PST
I was thinking about this when it was brought to my attention on Twitter. Turing these URLs into a token (like addresses in Mail's address field) might be best — to make it look like an actionable item. CodeMirror has support for replaced ranges which would be useful for this. We can replace the whole URL with any DOM element we want. On entry into the range it can auto expand even. But likely just a single click to a context menu to edit the URL would be best.
Timothy Hatcher
Comment 4 2013-12-02 12:40:36 PST
In fact almost any long URL could be treated this way.
David Kilzer (:ddkilzer)
Comment 5 2016-09-09 11:11:17 PDT
Matt Baker
Comment 6 2017-10-16 12:17:46 PDT
Closing. This is being resolved in: <https://webkit.org/b/178176> Web Inspector: Styles Redesign: apply syntax highlighting to property values
Note You need to log in before you can comment on or make changes to this bug.