summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
authorananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 22:36:04 +0000
committerananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-30 22:36:04 +0000
commit8388adaf8d1ae2d3793c18bb878daadd91f408c7 (patch)
tree710d6d37b0277bb197a030701ab79309b68cd835 /webkit/glue/webplugin_impl.cc
parentde0c4e4f741ee8076e2081564790dbf778eaa7b5 (diff)
downloadchromium_src-8388adaf8d1ae2d3793c18bb878daadd91f408c7.zip
chromium_src-8388adaf8d1ae2d3793c18bb878daadd91f408c7.tar.gz
chromium_src-8388adaf8d1ae2d3793c18bb878daadd91f408c7.tar.bz2
Reverting 22041 as it caused plugin crashes in reliability test runs.
Also reverting 22065/22046/22041 which are changes to knowncrashes.txt. TBR=huanr Review URL: http://codereview.chromium.org/160418 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index 1761b23..826bfb9 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -999,7 +999,13 @@ void WebPluginImpl::didReceiveResponse(WebURLLoader* loader,
base::SysWideToNativeMB(http_response_info.mime_type),
base::SysWideToNativeMB(GetAllHeaders(resource_response)),
http_response_info.expected_length,
- http_response_info.last_modified, request_is_seekable);
+ http_response_info.last_modified, request_is_seekable, &cancel);
+
+ if (cancel) {
+ loader->cancel();
+ RemoveClient(loader);
+ return;
+ }
// Bug http://b/issue?id=925559. The flash plugin would not handle the HTTP
// error codes in the stream header and as a result, was unaware of the