diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 05:41:47 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-10 05:41:47 +0000 |
commit | 8a5926073380bc6c962ff2bfb603186cf74d4d14 (patch) | |
tree | 0f9f6c1030d683e4e100a03044a94da9cd03f6e8 /webkit/glue/webplugin_impl.cc | |
parent | 9a689bd50e409ac0d21375dd51a82206ca403cde (diff) | |
download | chromium_src-8a5926073380bc6c962ff2bfb603186cf74d4d14.zip chromium_src-8a5926073380bc6c962ff2bfb603186cf74d4d14.tar.gz chromium_src-8a5926073380bc6c962ff2bfb603186cf74d4d14.tar.bz2 |
Fix for the Layout test failures occuring as a result of the change to download the plugin
src URL in a background task. The tests fail because the plugin instance is torn down before
the task executes.
The fix is to revoke tasks executing on the current WebPluginImpl instance when it is torn down.
TBR=jam
Bug=12993
Review URL: http://codereview.chromium.org/119410
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18035 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r-- | webkit/glue/webplugin_impl.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc index 9a8a09a..d3c8d6a 100644 --- a/webkit/glue/webplugin_impl.cc +++ b/webkit/glue/webplugin_impl.cc @@ -1395,6 +1395,7 @@ void WebPluginImpl::TearDownPluginInstance( // webframe_ might not be valid anymore. webframe_->set_plugin_delegate(NULL); webframe_ = NULL; + method_factory_.RevokeAll(); } void WebPluginImpl::UpdateVisibility() { |