[Webkit-unassigned] [Bug 174874] New: RenderImageResourceStyleImage::image() should return the nullImage() if the image is not available

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 26 14:32:13 PDT 2017


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

            Bug ID: 174874
           Summary: RenderImageResourceStyleImage::image() should return
                    the nullImage() if the image is not available
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

Like the base class virtual method RenderImageResource::image(), RenderImageResourceStyleImage::image() should return the nullImage() if the image is not available.

This is to prevent a crash we saw recently because of calling image()->stopAnimation() in RenderImageResourceStyleImage::shutdown(). The crash was happening because RenderImageResourceStyleImage::image() can return a null Image pointer . m_styleImage->image() can return a null pointer via StyleCachedImage::image() or StyleGeneratedImage::image().

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170726/1e2c3ffd/attachment-0001.html>


More information about the webkit-unassigned mailing list