Bug 73438 - Web Inspector: Display of data URIs cumbersome in the Elements panel
Summary: Web Inspector: Display of data URIs cumbersome in the Elements panel
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Alexander Pavlov (apavlov)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-30 05:58 PST by Alexander Pavlov (apavlov)
Modified: 2011-11-30 07:14 PST (History)
10 users (show)

See Also:


Attachments
Patch (2.34 KB, patch)
2011-11-30 06:57 PST, Alexander Pavlov (apavlov)
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pavlov (apavlov) 2011-11-30 05:58:21 PST
Not so much a bug, but a major inconvenience. When viewing a page with many images that use data URIs for src attribute. The inspector becomes swamped with completely human unreadable data URIs making it hard to see the page structure.

Would be good if there was an option to only show the start of the URI eg src="data:image/png;base64, ....."  

Upstreaming http://code.google.com/p/chromium/issues/detail?id=105707
Comment 1 Alexander Pavlov (apavlov) 2011-11-30 06:57:55 PST
Created attachment 117185 [details]
Patch
Comment 2 Pavel Feldman 2011-11-30 07:05:39 PST
Comment on attachment 117185 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=117185&action=review

> Source/WebCore/inspector/front-end/ElementsTreeOutline.js:1476
> +                if (value.indexOf("data:") === 0) {

Could we just use trimMiddle(60) for the sake of simplicity?
Comment 3 Alexander Pavlov (apavlov) 2011-11-30 07:14:28 PST
Committed r101510: <http://trac.webkit.org/changeset/101510>