WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
170065
Web Inspector: Resource Details Sidebar displays previous image metrics when viewing resource where content load failed
https://bugs.webkit.org/show_bug.cgi?id=170065
Summary
Web Inspector: Resource Details Sidebar displays previous image metrics when ...
Joseph Pecoraro
Reported
2017-03-24 11:28:38 PDT
Summary: Resource Details Sidebar displays previous image metrics when viewing resource where content load failed Steps to Reproduce: 1. Inspect
https://web.whatsapp.com
2. Reload so we get all Image resources 3. Select a data:image/png image resource => Details Sidebar shows correct image size 4. Select a data:image/webp image resource => Details Sidebar shows previous image's size Notes: The frontend failed to load the content, so it should return a failure to the sidebar to update its display in some way (either dashes or remove the section).
Attachments
[PATCH] Proposed Fix
(5.01 KB, patch)
2017-03-24 11:30 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2017-03-24 11:28:52 PDT
<
rdar://problem/27081591
>
Joseph Pecoraro
Comment 2
2017-03-24 11:30:08 PDT
Created
attachment 305306
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2017-03-24 11:30:48 PDT
Comment on
attachment 305306
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=305306&action=review
> Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js:458 > + } else > + hideImageSection.call(this);
An alternative would be to show the section and have emdash values. But seeing as we hide the section above if the `resource.failed` I matched that here.
Matt Baker
Comment 4
2017-03-27 15:50:07 PDT
Comment on
attachment 305306
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=305306&action=review
>> Source/WebInspectorUI/UserInterface/Views/ResourceDetailsSidebarPanel.js:458 >> + hideImageSection.call(this); > > An alternative would be to show the section and have emdash values. But seeing as we hide the section above if the `resource.failed` I matched that here.
r=me. I like this approach, rather than showing emdash values. Cuts down on clutter.
WebKit Commit Bot
Comment 5
2017-03-27 16:19:25 PDT
Comment on
attachment 305306
[details]
[PATCH] Proposed Fix Clearing flags on attachment: 305306 Committed
r214436
: <
http://trac.webkit.org/changeset/214436
>
WebKit Commit Bot
Comment 6
2017-03-27 16:19:28 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