WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 100083
Web Inspector: MIME type errors should truncate long URLs.
https://bugs.webkit.org/show_bug.cgi?id=100083
Summary
Web Inspector: MIME type errors should truncate long URLs.
Mike West
Reported
2012-10-23 00:56:01 PDT
Flickr.com has tons of MIME-type errors like: Resource interpreted as Image but transferred with MIME type image/jpg: "data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD ... [STUNNINGLY LONG URL TRUNCATED HERE] ... x6w9MsYHzFWzmbZUP/2Q==". Two things should change here: 1. 'image/jpg' should be whitelisted as an Image URL type. 2. URLs in this error message should be `trimMiddle`d. I thought the change we made in
http://trac.webkit.org/changeset/131353
would take care of this, but it apparently uses a different code path.
Attachments
Patch
(9.84 KB, patch)
2012-10-23 02:15 PDT
,
Mike West
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Mike West
Comment 1
2012-10-23 02:02:51 PDT
(In reply to
comment #0
)
> Flickr.com has tons of MIME-type errors like: > > Resource interpreted as Image but transferred with MIME type image/jpg: "data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD ... [STUNNINGLY LONG URL TRUNCATED HERE] ... x6w9MsYHzFWzmbZUP/2Q==". > > Two things should change here: > > 1. 'image/jpg' should be whitelisted as an Image URL type. > 2. URLs in this error message should be `trimMiddle`d. I thought the change we made in
http://trac.webkit.org/changeset/131353
would take care of this, but it apparently uses a different code path.
It looks like the linkifier regex doesn't match data: URLs. I'll have a patch up in a few minutes.
Mike West
Comment 2
2012-10-23 02:15:28 PDT
Created
attachment 170089
[details]
Patch
WebKit Review Bot
Comment 3
2012-10-23 09:09:53 PDT
Comment on
attachment 170089
[details]
Patch Clearing flags on attachment: 170089 Committed
r132231
: <
http://trac.webkit.org/changeset/132231
>
WebKit Review Bot
Comment 4
2012-10-23 09:09:57 PDT
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.
Top of Page
Format For Printing
XML
Clone This Bug