diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-20 10:31:40 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-20 10:31:40 +0000 |
commit | 404b6442179f959f21e6f61f32c979a754b074c8 (patch) | |
tree | deaba68238902882e1b877ec657a828cbad6d2f1 | |
parent | eba18c8ab6c52e1673f65b6d82ee5559e4556f9a (diff) | |
download | chromium_src-404b6442179f959f21e6f61f32c979a754b074c8.zip chromium_src-404b6442179f959f21e6f61f32c979a754b074c8.tar.gz chromium_src-404b6442179f959f21e6f61f32c979a754b074c8.tar.bz2 |
Display windowless plugins on Linux as windowed.
Until we properly support windowless plugins, tell plugins that we don't support windowless. The plugins will have to be windowed for now. This allows a lot of wmode flash to play, instead of trying to be windowless and failing.
Review URL: http://codereview.chromium.org/20418
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10088 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/glue/plugins/plugin_host.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/plugins/plugin_host.cc b/webkit/glue/plugins/plugin_host.cc index 8338b2a1a..2cc2933 100644 --- a/webkit/glue/plugins/plugin_host.cc +++ b/webkit/glue/plugins/plugin_host.cc @@ -777,7 +777,14 @@ NPError NPN_GetValue(NPP id, NPNVariable variable, void *value) { case NPNVSupportsWindowless: { NPBool* supports_windowless = reinterpret_cast<NPBool*>(value); +#if defined(OS_LINUX) + // TODO(deanm): Remove me once windowless plugins work on Linux. Right now + // it's better to tell the plugin we don't support windowless, then have it + // try and fail. + *supports_windowless = FALSE; +#else *supports_windowless = TRUE; +#endif rv = NPERR_NO_ERROR; break; } |