summaryrefslogtreecommitdiffstats
path: root/Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp')
-rw-r--r--Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp b/Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
index b396b0b34..8b8eaa0bc 100644
--- a/Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
+++ b/Source/WebKit2/WebProcess/Plugins/Netscape/unix/NetscapePluginUnix.cpp
@@ -51,13 +51,14 @@ bool NetscapePlugin::platformPostInitialize()
}
#endif
- if (m_impl) {
- m_npWindow.type = m_impl->windowType();
- m_npWindow.window = m_impl->window();
- m_npWindow.ws_info = m_impl->windowSystemInfo();
- callSetWindow();
- }
+ // Windowed plugins need a platform implementation.
+ if (!m_impl)
+ return !m_isWindowed;
+ m_npWindow.type = m_impl->windowType();
+ m_npWindow.window = m_impl->window();
+ m_npWindow.ws_info = m_impl->windowSystemInfo();
+ callSetWindow();
return true;
}