Unreviewed, rolling out r99979.
authorgavinp@chromium.org <gavinp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Nov 2011 16:53:33 +0000 (16:53 +0000)
committergavinp@chromium.org <gavinp@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 11 Nov 2011 16:53:33 +0000 (16:53 +0000)
http://trac.webkit.org/changeset/99979
https://bugs.webkit.org/show_bug.cgi?id=72136

bad commit message (Requested by gavinp on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-11-11

* loader/cache/CachedResourceRequest.cpp:
(WebCore::CachedResourceRequest::didReceiveData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@99981 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/loader/cache/CachedResourceRequest.cpp

index 9d92600..bcc1668 100644 (file)
@@ -1,3 +1,14 @@
+2011-11-11  Sheriff Bot  <webkit.review.bot@gmail.com>
+
+        Unreviewed, rolling out r99979.
+        http://trac.webkit.org/changeset/99979
+        https://bugs.webkit.org/show_bug.cgi?id=72136
+
+        bad commit message (Requested by gavinp on #webkit).
+
+        * loader/cache/CachedResourceRequest.cpp:
+        (WebCore::CachedResourceRequest::didReceiveData):
+
 2011-11-11  Gavin Peters  <gavinp@chromium.org>
 
         Protect Document during error responses
index 71c84b2..3501b9d 100644 (file)
@@ -293,9 +293,6 @@ void CachedResourceRequest::didReceiveData(SubresourceLoader* loader, const char
         return;
 
     if (m_resource->response().httpStatusCode() >= 400 && !m_resource->shouldIgnoreHTTPStatusCodeErrors()) {
-        // Prevent the document from being destroyed before we are done with
-        // the cachedResourceLoader that it will delete when the document gets deleted.
-        RefPtr<Document> protector(m_cachedResourceLoader->document());
         if (!m_multipart)
             m_cachedResourceLoader->decrementRequestCount(m_resource);
         m_finishing = true;