diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 05:29:32 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-10 05:29:32 +0000 |
commit | b1c25a2fdeade0e807af70df8136d5efa62033d2 (patch) | |
tree | 9ed31642f0e2eb899f6db76b3b33c60f1f0bacb8 /webkit/glue/plugins/test | |
parent | e322627c51db7ad243c49d096af20590828a00f9 (diff) | |
download | chromium_src-b1c25a2fdeade0e807af70df8136d5efa62033d2.zip chromium_src-b1c25a2fdeade0e807af70df8136d5efa62033d2.tar.gz chromium_src-b1c25a2fdeade0e807af70df8136d5efa62033d2.tar.bz2 |
Fix plugin window sticking around when parent became invisible. Added test for all different scenarios.
Note I grabbed the plugin hwnd and manually checked it instead of looking for callbacks from the plugin's SetWindow since the latter isn't called if the visibility changes.
BUG=1842096
TEST=regression test included, test http://chromedashboard per bug
Review URL: http://codereview.chromium.org/115169
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/plugins/test')
-rw-r--r-- | webkit/glue/plugins/test/plugin_windowed_test.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/webkit/glue/plugins/test/plugin_windowed_test.cc b/webkit/glue/plugins/test/plugin_windowed_test.cc index 20215ef..4001ba2 100644 --- a/webkit/glue/plugins/test/plugin_windowed_test.cc +++ b/webkit/glue/plugins/test/plugin_windowed_test.cc @@ -18,20 +18,6 @@ NPError WindowedPluginTest::SetWindow(NPWindow* pNPWindow) { return NPERR_INVALID_PARAM; } - if (test_name() == "hidden_plugin") { - NPIdentifier function_id; - if (IsWindowVisible(window)) { - function_id = HostFunctions()->getstringidentifier("windowVisible"); - } else { - function_id = HostFunctions()->getstringidentifier("windowHidden"); - } - - NPVariant rv; - NPObject *window_obj = NULL; - HostFunctions()->getvalue(id(), NPNVWindowNPObject, &window_obj); - HostFunctions()->invoke(id(), window_obj, function_id, NULL, 0, &rv); - } - return NPERR_NO_ERROR; } |