diff options
author | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 23:28:59 +0000 |
---|---|---|
committer | dschuff@chromium.org <dschuff@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-27 23:28:59 +0000 |
commit | 79b3d1637f84df9bd1fb91387db00adf38476d67 (patch) | |
tree | 47bb340886ad3b236f09e870e5b4f8b8c7a340dc /sandbox | |
parent | 9bf8b953033ce68253875bd722fba6fa7c73ace0 (diff) | |
download | chromium_src-79b3d1637f84df9bd1fb91387db00adf38476d67.zip chromium_src-79b3d1637f84df9bd1fb91387db00adf38476d67.tar.gz chromium_src-79b3d1637f84df9bd1fb91387db00adf38476d67.tar.bz2 |
Ensure that pending PNaCl translations are cleaned up on plugin destruction
The PnaclCoordinator in the plugin sends a TranslationFinished message to the
PnaclHost in the browser when translations are aborted for various errors it can
detect, but on surfaway (or when the embed tag is removed) the plugin simply
gets destroyed. This CL adds an explicit state to indicate that the translation
has finished and been reported to the browser, and if the coordinator is prematurely
destroyed, it sends TranslationFinished so the browser can clean up.
This is tested by hooking the progress events and removing and re-adding the
embed.
R=jvoung@chromium.org, ncbray@chromium.org
BUG=297644
TEST= browser_tests --gtest_filter=NaClBrowserTestPnacl.PnaclErrorHandling
Review URL: https://codereview.chromium.org/23522072
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@225810 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
0 files changed, 0 insertions, 0 deletions