Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: Source/WebKit/chromium/src/AssociatedURLLoader.cpp

Issue 7530003: Merge 91789 - Cancel the load when an associated URL loader goes out of scope. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/AssociatedURLLoader.cpp
===================================================================
--- Source/WebKit/chromium/src/AssociatedURLLoader.cpp (revision 91943)
+++ Source/WebKit/chromium/src/AssociatedURLLoader.cpp (working copy)
@@ -215,8 +215,7 @@
AssociatedURLLoader::~AssociatedURLLoader()
{
- if (m_clientAdapter)
- m_clientAdapter->clearClient();
+ cancel();
}
#define COMPILE_ASSERT_MATCHING_ENUM(webkit_name, webcore_name) \
@@ -255,10 +254,10 @@
void AssociatedURLLoader::cancel()
{
- if (m_loader) {
+ if (m_clientAdapter)
m_clientAdapter->clearClient();
+ if (m_loader)
m_loader->cancel();
- }
}
void AssociatedURLLoader::setDefersLoading(bool defersLoading)
« no previous file with comments | « Source/WebKit/chromium/ChangeLog ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698