-
antti@apple.com authored
Reviewed by Darin. Fix http://bugs.webkit.org/show_bug.cgi?id=17862 REGRESSION (r31038): Reproducible crash under DocLoader::checkForReload() at marware.com This was a memory smasher introduced by the preloading patch. If a script resource was marked uncacheable, early deletion of the Request object would cause deletion of the CachedResource too if it was referred more than once in a single document. Test: http/tests/misc/uncacheable-script-repeated.html * loader/loader.cpp: (WebCore::Loader::Host::servePendingRequests): (WebCore::Loader::Host::didFinishLoading): LayoutTests: Reviewed by Darin. Test for http://bugs.webkit.org/show_bug.cgi?id=17862 REGRESSION (r31038): Reproducible crash under DocLoader::checkForReload() at marware.com * http/tests/misc/resources/uncacheable-script.cgi: Added. * http/tests/misc/uncacheable-script-repeated-expected.txt: Added. * http/tests/misc/uncacheable-script-repeated.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
226fbdf7