Bug 132489

Summary: [Mac] -[_WKThumbnailView _requestSnapshotIfNeeded] assumes that taking a snapshot will always succeed
Product: WebKit Reporter: Mark Rowe (bdash) <mrowe>
Component: WebKit Misc.Assignee: Mark Rowe (bdash) <mrowe>
Status: RESOLVED FIXED    
Severity: Normal Keywords: InRadar
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+

Mark Rowe (bdash)
Reported 2014-05-02 14:29:13 PDT
The takeSnapshot callback in -[_WKThumbnailView _requestSnapshotIfNeeded] assumes that taking the snapshot will always succeed. If it fails and the callback receives a null ShareableBitmap::Handle, as can happen if the WKView is closed while a snapshot request is pending, the callback will dereference null.
Attachments
Patch (1.79 KB, patch)
2014-05-02 14:37 PDT, Mark Rowe (bdash)
thorton: review+
Mark Rowe (bdash)
Comment 1 2014-05-02 14:29:29 PDT
Mark Rowe (bdash)
Comment 2 2014-05-02 14:37:04 PDT
Mark Rowe (bdash)
Comment 3 2014-05-02 15:04:32 PDT
Note You need to log in before you can comment on or make changes to this bug.