diff options
author | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-02 07:52:11 +0000 |
---|---|---|
committer | cevans@chromium.org <cevans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-02 07:52:11 +0000 |
commit | a2b7c7b35054f37b8bc33e99f7adaf394183f061 (patch) | |
tree | 7479f2f6e71a556c6c732aa3ebf65dc0c09fe528 /webkit/plugins/npapi/test/plugin_client.cc | |
parent | d8b8f76e0ed6cabeef6f9584ad44a6f6b794d511 (diff) | |
download | chromium_src-a2b7c7b35054f37b8bc33e99f7adaf394183f061.zip chromium_src-a2b7c7b35054f37b8bc33e99f7adaf394183f061.tar.gz chromium_src-a2b7c7b35054f37b8bc33e99f7adaf394183f061.tar.bz2 |
Activate / fix the NPAPI plugin test on Linux:
- My install won't tolerate NULLs to XQueryTree(), so fix.
- Need to flag the test plug-in as NOT an Xt-based plug-in.
- Enable the test in the .gypi.
BUG=30700
TEST=ui_tests,NPAPI*.*
Review URL: http://codereview.chromium.org/6349042
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73434 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/npapi/test/plugin_client.cc')
-rw-r--r-- | webkit/plugins/npapi/test/plugin_client.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/plugins/npapi/test/plugin_client.cc b/webkit/plugins/npapi/test/plugin_client.cc index 527485d..2c27f63 100644 --- a/webkit/plugins/npapi/test/plugin_client.cc +++ b/webkit/plugins/npapi/test/plugin_client.cc @@ -208,6 +208,11 @@ NPError NPP_GetValue(NPP instance, NPPVariable variable, void *value) { if (instance == NULL) return NPERR_INVALID_INSTANCE_ERROR; + if (variable == NPPVpluginNeedsXEmbed) { + *static_cast<NPBool*>(value) = 1; + return NPERR_NO_ERROR; + } + // XXXMB - do work here. return NPERR_GENERIC_ERROR; } |