[Webkit-unassigned] [Bug 113561] [WinCE]checkForHTTPStatusCodeError() in SubresourceLoader::didReceiveResponse causes CRASH in ResourceHandle::onRequestComplete

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 29 01:30:23 PDT 2013


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





--- Comment #1 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2013-03-29 01:28:34 PST ---
Reason for this bug:

1) When loading a sub resource(Not-Existed.css) from a main html, SubresourceLoader::didReceiveResponse will be called in ResourceHandle::onRequestComplete(), but checkForHTTPStatusCodeError() in SubresourceLoader::didReceiveResponse may deref itself, which causes delete call to ResourceHandleClient* client(), so MUST provide a protector to surrond the 3 calls: 
    resourceHandleClient->didReceiveResponse
    resourceHandleClient->didReceiveData
    resourceHandleClient->didFinishLoading

2) SubresourceLoader::didReceiveResponse may get 404 error, in which situation any following action should be stopped, so we need to check this error, and return false ahead if needed.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list