WebKit2 would fail to build on Windows if Netscape plug-ins were disabled.
authoraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 05:39:23 +0000 (05:39 +0000)
committeraestes@apple.com <aestes@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 05:39:23 +0000 (05:39 +0000)
* UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
(WebKit::PluginInfoStore::getPluginInfo): Return false if ENABLE_NETSCAPE_PLUGIN_API is false.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117221 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/Plugins/win/PluginInfoStoreWin.cpp

index 8624d45..bded34e 100644 (file)
@@ -1,5 +1,12 @@
 2012-05-15  Andy Estes  <aestes@apple.com>
 
+        WebKit2 would fail to build on Windows if Netscape plug-ins were disabled.
+
+        * UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
+        (WebKit::PluginInfoStore::getPluginInfo): Return false if ENABLE_NETSCAPE_PLUGIN_API is false.
+
+2012-05-15  Andy Estes  <aestes@apple.com>
+
         Guard Netscape plug-in code with ENABLE(NETSCAPE_PLUGIN_API)
         https://bugs.webkit.org/show_bug.cgi?id=86496
 
index 78d0562..634225e 100644 (file)
@@ -325,7 +325,13 @@ static uint64_t fileVersion(DWORD leastSignificant, DWORD mostSignificant)
 
 bool PluginInfoStore::getPluginInfo(const String& pluginPath, PluginModuleInfo& plugin)
 {
+#if ENABLE(NETSCAPE_PLUGIN_API)
     return NetscapePluginModule::getPluginInfo(pluginPath, plugin);
+#else
+    UNUSED_PARAM(pluginPath);
+    UNUSED_PARAM(plugin);
+    return false;
+#endif
 }
 
 static bool isOldWindowsMediaPlayerPlugin(const PluginModuleInfo& plugin)