Bug 124779 - Web Inspector: Styles: Truncate long URLs (e.g. base64)
Summary: Web Inspector: Styles: Truncate long URLs (e.g. base64)
Status: RESOLVED MOVED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nikita Vasilyev
URL:
Keywords: InRadar
Depends on: 178176
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-22 09:32 PST by Andrew Theroux
Modified: 2017-10-16 12:17 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Theroux 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
Comment 1 Antoine Quint 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.
Comment 2 Joseph Pecoraro 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.
Comment 3 Timothy Hatcher 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.
Comment 4 Timothy Hatcher 2013-12-02 12:40:36 PST
In fact almost any long URL could be treated this way.
Comment 5 David Kilzer (:ddkilzer) 2016-09-09 11:11:17 PDT
<rdar://problem/28228553>
Comment 6 Matt Baker 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