WebCore:
Fixed:
<rdar://problem/
3685766> WebDataSource is missing subresources when they use cached WebCore data
<rdar://problem/
3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
Reviewed by darin.
* khtml/misc/loader.cpp:
(CachedObject::~CachedObject): release m_allData
(CachedObject::setAllData): new
(Loader::servePendingRequests): connect slotAllData
(Loader::slotAllData): new
(Cache::requestImage): tweak
* khtml/misc/loader.h:
(khtml::CachedObject::CachedObject): set allData to 0
(khtml::CachedObject::allData): new
* kwq/KWQKJobClasses.h:
* kwq/KWQKJobClasses.mm:
(KIO::TransferJob::TransferJob): set m_allData
(KIO::TransferJob::emitAllData): new
* kwq/KWQLoader.mm:
(KWQCheckCacheObjectStatus): pass WebKit the data instead of the length of the resource
* kwq/KWQResourceLoader.mm:
(-[KWQResourceLoader finishWithData:]): renamed to pass all data for the resource
* kwq/KWQSlot.mm:
(KWQSlot::KWQSlot): support for slotAllData
(KWQSlot::call):
* kwq/WebCoreBridge.h:
* kwq/WebCoreResourceLoader.h:
WebKit:
Fixed:
<rdar://problem/
3685766> WebDataSource is missing subresources when they use cached WebCore data
<rdar://problem/
3722434> REGRESSION?: Assertion failure trying to drag image in iframe (itapema.sc.gov.br)
Reviewed by darin.
* WebCoreSupport.subproj/WebBridge.m:
(-[WebBridge objectLoadedFromCacheWithURL:response:data:]): renamed to pass all data for the resource, moved delegate code to new method
(-[WebBridge syncLoadResourceWithURL:customHeaders:postData:finalURL:responseHeaders:statusCode:]): call renamed method
* WebCoreSupport.subproj/WebSubresourceClient.m:
(-[WebSubresourceClient didFinishLoading]): call renamed method
* WebView.subproj/WebFrame.m:
(-[WebFrame _opened]): call _sendResourceLoadDelegateMessagesForURL:response:length:, not objectLoadedFromCacheWithURL:response:data:
(-[WebFrame _internalLoadDelegate]):
(-[WebFrame _sendResourceLoadDelegateMessagesForURL:response:length:]): moved from objectLoadedFromCacheWithURL:response:data:
* WebView.subproj/WebFrameInternal.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8093
268f45cc-cd09-0410-ab3c-
d52691b4dbfc