Bug 133193

Summary: Potential null dereference in WebFrameLoaderClient::dispatchDidFailProvisionalLoad()
Product: WebKit Reporter: Jon Honeycutt <jhoneycutt>
Component: WebKit2Assignee: Jon Honeycutt <jhoneycutt>
Status: RESOLVED FIXED    
Severity: Normal CC: aestes, ap, beidson, commit-queue, ddkilzer, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Jon Honeycutt 2014-05-22 17:01:59 PDT
WebFrameLoaderClient::dispatchDidFailProvisionalLoad() calls the InjectedBundleLoaderClient's didFailProvisionalLoadWithErrorForFrame() before sending a message to the UI process that a provisional load has failed. It's possible for the provisional document loader to become null while calling into the InjectedBundleLoaderClient (as is the case with the WebKitTestRunner's injected bundle), leading to a null dereference when trying to send the DidFailProvisionalLoadForFrame message.
Comment 1 Jon Honeycutt 2014-05-22 17:07:02 PDT
Created attachment 231921 [details]
Patch
Comment 2 Brady Eidson 2014-05-23 09:43:05 PDT
Comment on attachment 231921 [details]
Patch

Any way to API test this?
Comment 3 Jon Honeycutt 2014-05-23 17:34:05 PDT
(In reply to comment #2)
> (From update of attachment 231921 [details])
> Any way to API test this?

Yes, I think so. I'm working on that now.
Comment 4 WebKit Commit Bot 2014-05-24 20:31:26 PDT
Comment on attachment 231921 [details]
Patch

Clearing flags on attachment: 231921

Committed r169315: <http://trac.webkit.org/changeset/169315>
Comment 5 WebKit Commit Bot 2014-05-24 20:31:29 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 Radar WebKit Bug Importer 2014-05-27 14:00:52 PDT
<rdar://problem/17042850>