Changeset 241817 in webkit


Ignore:
Timestamp:
Feb 20, 2019 9:11:33 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Epiphany searching for plugins even if plugins are disabled
https://bugs.webkit.org/show_bug.cgi?id=194352

Patch by Carlos Garcia Campos <cgarcia@igalia.com> on 2019-02-20
Reviewed by Michael Catanzaro.

Check pluginsEnabled setting before trying to get plugins from UI process.

  • WebProcess/Plugins/WebPluginInfoProvider.cpp:

(WebKit::WebPluginInfoProvider::populatePluginCache):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r241816 r241817  
     12019-02-20  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK] Epiphany searching for plugins even if plugins are disabled
     4        https://bugs.webkit.org/show_bug.cgi?id=194352
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Check pluginsEnabled setting before trying to get plugins from UI process.
     9
     10        * WebProcess/Plugins/WebPluginInfoProvider.cpp:
     11        (WebKit::WebPluginInfoProvider::populatePluginCache):
     12
    1132019-02-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp

    r239427 r241817  
    3737#include <WebCore/Page.h>
    3838#include <WebCore/SchemeRegistry.h>
     39#include <WebCore/Settings.h>
    3940#include <WebCore/SubframeLoader.h>
    4041#include <wtf/text/StringHash.h>
     
    147148{
    148149    if (!m_pluginCacheIsPopulated) {
    149         HangDetectionDisabler hangDetectionDisabler;
    150 
    151         if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::GetPlugins(m_shouldRefreshPlugins),
    152             Messages::WebProcessProxy::GetPlugins::Reply(m_cachedPlugins, m_cachedApplicationPlugins, m_cachedSupportedPluginIdentifiers), 0))
    153             return;
     150        if (page.settings().arePluginsEnabled()) {
     151            HangDetectionDisabler hangDetectionDisabler;
     152            if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::GetPlugins(m_shouldRefreshPlugins),
     153                Messages::WebProcessProxy::GetPlugins::Reply(m_cachedPlugins, m_cachedApplicationPlugins, m_cachedSupportedPluginIdentifiers), 0))
     154                return;
     155        }
    154156
    155157        m_shouldRefreshPlugins = false;
Note: See TracChangeset for help on using the changeset viewer.