[Webkit-unassigned] [Bug 48781] Add a resourceload delegate method to query if WebCore should paint the default broken image for failed images.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 22 11:17:03 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=48781


David Kilzer (ddkilzer) <ddkilzer at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78883|review?                     |review+, commit-queue-
               Flag|                            |




--- Comment #26 from David Kilzer (ddkilzer) <ddkilzer at webkit.org>  2011-02-22 11:17:02 PST ---
(From update of attachment 78883)
View in context: https://bugs.webkit.org/attachment.cgi?id=78883&action=review

r=me, but consider the comments.

> WebKit/mac/WebView/WebResourceLoadDelegatePrivate.h:59
> + @param imageURL The url of the offending image.

Maybe use "broken" instead of "offending" here.

> LayoutTests/fast/images/support-broken-image-delegate.html:26
> +<img id="broken" onError="loaded()" onLoad="loaded()" src="resources/broken-image-with-invalid-format.png">

Instead of calling loaded() in the onload="" attribute, can you call a different function that always sets result.innerHTML to "FAIL" since this code path is unexpected?  (Or is there a reason for setting onload and onerror to the same function?)

> LayoutTests/fast/images/resources/broken-image-with-invalid-format.png:1
> +fsadljf903q2asdfic-=29q24;lasdf

Is the MIME type for this file correct?  Strange that it shows up as text in the diff.  May need to fix this up in svn after the commit.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list