We’ve seen some crashes caused by dereferencing a WebImage->bitmap(); the callers are assuming that WebImage->bitmap() will never return null, but it can return null in at least some cases where it can’t allocate enough memory. We should make the callers robust by having them check for null. In Radar as <rdar://problem/9606676>
Created attachment 97169 [details] Patch that makes the callers of WebImage check for a null bitmap before dereferencing the bitmap
Assuming a change log
I forgot to add the ChangeLog before uploading the patch, but I will commit it along with the patch.
Fixed in http://trac.webkit.org/changeset/88856
This patch wasn't quite right. We shouldn't be null checking arguments to API functions. I will post a follow up patch in a moment.
Created attachment 97222 [details] Patch
Committed r88906: <http://trac.webkit.org/changeset/88906>