Bug 40817 - Web Inspector: REGRESSION (Safari 5.0-r61382): Image heights are displayed as 0
Summary: Web Inspector: REGRESSION (Safari 5.0-r61382): Image heights are displayed as 0
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P1 Normal
Assignee: Pavel Feldman
Keywords: Regression
Depends on:
Reported: 2010-06-18 01:34 PDT by mitz
Modified: 2010-11-02 11:08 PDT (History)
8 users (show)

See Also:

[PATCH] Proposed change. (3.89 KB, patch)
2010-11-02 09:38 PDT, Pavel Feldman
timothy: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2010-06-18 01:34:36 PDT
In the resources pane of the inspector, when inspecting an image resource, the height displayed below the image is always 0.
Comment 1 Pavel Feldman 2010-11-02 09:38:44 PDT
Created attachment 72679 [details]
[PATCH] Proposed change.
Comment 2 Timothy Hatcher 2010-11-02 11:02:11 PDT
Comment on attachment 72679 [details]
[PATCH] Proposed change.

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

> WebCore/inspector/front-end/ImageView.js:92
> +        imagePreviewElement.onload = onImageLoad.bind(this);

Use addEventListener. .onLoad is ugh...
Comment 3 Pavel Feldman 2010-11-02 11:08:43 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
        M       WebCore/ChangeLog
        M       WebCore/inspector/front-end/ImageView.js
Committed r71133