summaryrefslogtreecommitdiffstats
path: root/webkit/glue/plugins/test
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-10 05:29:32 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-10 05:29:32 +0000
commitb1c25a2fdeade0e807af70df8136d5efa62033d2 (patch)
tree9ed31642f0e2eb899f6db76b3b33c60f1f0bacb8 /webkit/glue/plugins/test
parente322627c51db7ad243c49d096af20590828a00f9 (diff)
downloadchromium_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.cc14
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;
}