Changeset 91944 in webkit


Ignore:
Timestamp:
Jul 28, 2011, 12:45:36 PM (14 years ago)
Author:
brettw@chromium.org
Message:

Merge 91789 - Cancel the load when an associated URL loader goes out of scope.
Previously, the load would continue even when the WebURLLoader object
was deleted, and the data would just get queued up.

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

Reviewed by Darin Fisher.

  • src/AssociatedURLLoader.cpp:

(WebKit::AssociatedURLLoader::~AssociatedURLLoader):
(WebKit::AssociatedURLLoader::cancel):

TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/7530003

Location:
branches/chromium/835/Source/WebKit/chromium
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/chromium/835/Source/WebKit/chromium/ChangeLog

    r91868 r91944  
     12011-07-26  Brett Wilson  <brettw@chromium.org>
     2
     3        Cancel the load when an associated URL loader goes out of scope.
     4        Previously, the load would continue even when the WebURLLoader object
     5        was deleted, and the data would just get queued up.
     6
     7        https://bugs.webkit.org/show_bug.cgi?id=65204
     8
     9        Reviewed by Darin Fisher.
     10
     11        * src/AssociatedURLLoader.cpp:
     12        (WebKit::AssociatedURLLoader::~AssociatedURLLoader):
     13        (WebKit::AssociatedURLLoader::cancel):
     14
    1152011-07-27  Sadrul Habib Chowdhury  <sadrul@chromium.org>
    216
  • branches/chromium/835/Source/WebKit/chromium/src/AssociatedURLLoader.cpp

    r89089 r91944  
    216216AssociatedURLLoader::~AssociatedURLLoader()
    217217{
    218     if (m_clientAdapter)
    219         m_clientAdapter->clearClient();
     218    cancel();
    220219}
    221220
     
    256255void AssociatedURLLoader::cancel()
    257256{
    258     if (m_loader) {
     257    if (m_clientAdapter)
    259258        m_clientAdapter->clearClient();
     259    if (m_loader)
    260260        m_loader->cancel();
    261     }
    262261}
    263262
Note: See TracChangeset for help on using the changeset viewer.