Title: [241817] trunk/Source/WebKit
- Revision
- 241817
- Author
- [email protected]
- Date
- 2019-02-20 09:11:33 -0800 (Wed, 20 Feb 2019)
Log 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 <[email protected]> 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (241816 => 241817)
--- trunk/Source/WebKit/ChangeLog 2019-02-20 14:34:51 UTC (rev 241816)
+++ trunk/Source/WebKit/ChangeLog 2019-02-20 17:11:33 UTC (rev 241817)
@@ -1,5 +1,17 @@
2019-02-20 Carlos Garcia Campos <[email protected]>
+ [GTK] Epiphany searching for plugins even if plugins are disabled
+ https://bugs.webkit.org/show_bug.cgi?id=194352
+
+ Reviewed by Michael Catanzaro.
+
+ Check pluginsEnabled setting before trying to get plugins from UI process.
+
+ * WebProcess/Plugins/WebPluginInfoProvider.cpp:
+ (WebKit::WebPluginInfoProvider::populatePluginCache):
+
+2019-02-20 Carlos Garcia Campos <[email protected]>
+
[WPE] Send client host fd and library name as web process creation parameters
https://bugs.webkit.org/show_bug.cgi?id=194494
Modified: trunk/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp (241816 => 241817)
--- trunk/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp 2019-02-20 14:34:51 UTC (rev 241816)
+++ trunk/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp 2019-02-20 17:11:33 UTC (rev 241817)
@@ -36,6 +36,7 @@
#include <WebCore/FrameLoader.h>
#include <WebCore/Page.h>
#include <WebCore/SchemeRegistry.h>
+#include <WebCore/Settings.h>
#include <WebCore/SubframeLoader.h>
#include <wtf/text/StringHash.h>
@@ -146,12 +147,13 @@
void WebPluginInfoProvider::populatePluginCache(const WebCore::Page& page)
{
if (!m_pluginCacheIsPopulated) {
- HangDetectionDisabler hangDetectionDisabler;
+ if (page.settings().arePluginsEnabled()) {
+ HangDetectionDisabler hangDetectionDisabler;
+ if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::GetPlugins(m_shouldRefreshPlugins),
+ Messages::WebProcessProxy::GetPlugins::Reply(m_cachedPlugins, m_cachedApplicationPlugins, m_cachedSupportedPluginIdentifiers), 0))
+ return;
+ }
- if (!WebProcess::singleton().parentProcessConnection()->sendSync(Messages::WebProcessProxy::GetPlugins(m_shouldRefreshPlugins),
- Messages::WebProcessProxy::GetPlugins::Reply(m_cachedPlugins, m_cachedApplicationPlugins, m_cachedSupportedPluginIdentifiers), 0))
- return;
-
m_shouldRefreshPlugins = false;
m_pluginCacheIsPopulated = true;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes