Under certain conditions, the various image object "frameAtIndex" methods return null. This means that 'nativeImageForCurrentFrame" can also return null. This has resulted in a set of patches to ImageSVG (Bug 14531), BitmapImage (Bug 68753), ImageCG (Bug 61684), GraphicsLayerChromium (Bug 98456) and others (Bug 39797) to deal with the null return. A number of classes check for null return and exit early (ImageWx.cpp, parts of ImageWinCE.cpp, ImageSkia.cpp, ImageCairoWin.cpp, ImageQt.cpp, ImageMac.mm, BitmapImageCG.cpp, BitmapImageCairo.cpp) However, several others take the return value and use without validating (ImageCGWin.cpp, ImageCairoWin.cpp, parts of ImageWinCE.cpp) This bug applies the same null checking used elsewhere in the codebase to these missed locations.
Created attachment 175898 [details] Patch
Comment on attachment 175898 [details] Patch Attachment 175898 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14982425
Comment on attachment 175898 [details] Patch Attachment 175898 [details] did not pass cr-android-ews (chromium-android): Output: http://queues.webkit.org/results/14989360
These kinds of bugs are likely to creep in again. I wonder if any of C++ method declarations could help in the future?
Created attachment 175901 [details] Patch
Comment on attachment 175901 [details] Patch Attachment 175901 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/14985439 New failing tests: svg/W3C-SVG-1.1/animate-elem-52-t.svg
I don't think the cr-linux failure is real, based on a review of the test bot output, and the fact that the cr-android test seems to succeed. Can any Chromium people confirm for me if the patch causes a failure for them?
Created attachment 176581 [details] Patch
Comment on attachment 176581 [details] Patch Attachment 176581 [details] did not pass gtk-ews (gtk): Output: http://queues.webkit.org/results/15023580
Comment on attachment 176581 [details] Patch r=me
Comment on attachment 176581 [details] Patch Clearing flags on attachment: 176581 Committed r136147: <http://trac.webkit.org/changeset/136147>
All reviewed patches have been landed. Closing bug.