WebKit2: Crash when InjectedBundlePageLoaderClient::willSendRequestForFrame returns...
authorbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 02:04:58 +0000 (02:04 +0000)
committerbweinstein@apple.com <bweinstein@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 5 Feb 2011 02:04:58 +0000 (02:04 +0000)
commit26dca632b16d09ab6472858c1d4bf816ebec67f6
tree8c35d343f72ba687c4b0bf893da8e2525ee4f4b0
parent74ddb67c18c9981c56d871fb84428d294dc5421b
WebKit2: Crash when InjectedBundlePageLoaderClient::willSendRequestForFrame returns a null WKURLRequestRef
https://bugs.webkit.org/show_bug.cgi?id=53829

Reviewed by Maciej Stachowiak.

Store the result of m_client.willSendRequestForFrame in a RefPtr, and null check it before
calling resourceRequest() on it.

* WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp:
(WebKit::InjectedBundlePageLoaderClient::willSendRequestForFrame):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77713 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/InjectedBundle/InjectedBundlePageLoaderClient.cpp