Changeset 201749 in webkit


Ignore:
Timestamp:
Jun 7, 2016 7:12:54 AM (8 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Hide GTK+ 2 plugins if GTK+ 2 plugin process was built but is not installed
https://bugs.webkit.org/show_bug.cgi?id=158419

Reviewed by Carlos Garcia Campos.

  • UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp:

(WebKit::PluginInfoStore::getPluginInfo):

  • UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:

(WebKit::PluginProcessProxy::scanPlugin):

Location:
trunk/Source/WebKit2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r201727 r201749  
     12016-06-07  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Hide GTK+ 2 plugins if GTK+ 2 plugin process was built but is not installed
     4        https://bugs.webkit.org/show_bug.cgi?id=158419
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Patch by Alberto Garcia <berto@igalia.com>
     9
     10        * UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp:
     11        (WebKit::PluginInfoStore::getPluginInfo):
     12        * UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp:
     13        (WebKit::PluginProcessProxy::scanPlugin):
     14
    1152016-06-06  Antoine Quint  <graouts@apple.com>
    216
  • trunk/Source/WebKit2/UIProcess/Plugins/unix/PluginInfoStoreUnix.cpp

    r186810 r201749  
    3434#include "NetscapePluginModule.h"
    3535#include "PluginSearchPath.h"
     36#include "ProcessExecutablePath.h"
    3637#include <WebCore/FileSystem.h>
    3738
     
    7071{
    7172#if PLATFORM(GTK)
    72     if (PluginInfoCache::singleton().getPluginInfo(pluginPath, plugin))
     73    if (PluginInfoCache::singleton().getPluginInfo(pluginPath, plugin)) {
     74#if ENABLE(PLUGIN_PROCESS_GTK2)
     75        if (plugin.requiresGtk2) {
     76            String pluginProcessPath = executablePathOfPluginProcess();
     77            pluginProcessPath.append('2');
     78            if (!fileExists(pluginProcessPath))
     79                return false;
     80        }
     81#endif
    7382        return true;
     83    }
    7484
    7585    if (NetscapePluginModule::getPluginInfo(pluginPath, plugin)) {
  • trunk/Source/WebKit2/UIProcess/Plugins/unix/PluginProcessProxyUnix.cpp

    r199002 r201749  
    8484#if PLATFORM(GTK)
    8585    bool requiresGtk2 = pluginRequiresGtk2(pluginPath);
    86     if (requiresGtk2)
     86    if (requiresGtk2) {
    8787#if ENABLE(PLUGIN_PROCESS_GTK2)
    8888        pluginProcessPath.append('2');
     89        if (!fileExists(pluginProcessPath))
     90            return false;
    8991#else
    9092        return false;
    9193#endif
     94    }
    9295#endif
    9396
Note: See TracChangeset for help on using the changeset viewer.