WebKit Bugzilla
Attachment 361906 Details for
Bug 194352
: WebKit searches for plugins even if plugins are disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
wk-plugins-disabled.diff (text/plain), 2.29 KB, created by
Carlos Garcia Campos
on 2019-02-13 03:10:19 PST
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Carlos Garcia Campos
Created:
2019-02-13 03:10:19 PST
Size:
2.29 KB
patch
obsolete
>diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog >index 0b53f229aff..cbc041eff9d 100644 >--- a/Source/WebKit/ChangeLog >+++ b/Source/WebKit/ChangeLog >@@ -1,3 +1,15 @@ >+2019-02-13 Carlos Garcia Campos <cgarcia@igalia.com> >+ >+ [GTK] Epiphany searching for plugins even if plugins are disabled >+ https://bugs.webkit.org/show_bug.cgi?id=194352 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Check pluginsEnabled setting before trying to get plugins from UI process. >+ >+ * WebProcess/Plugins/WebPluginInfoProvider.cpp: >+ (WebKit::WebPluginInfoProvider::populatePluginCache): >+ > 2019-02-13 Ryosuke Niwa <rniwa@webkit.org> > > Crash in Page::setActivityState because m_page is null >diff --git a/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp b/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp >index 5455b30f40e..a17a8477550 100644 >--- a/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp >+++ b/Source/WebKit/WebProcess/Plugins/WebPluginInfoProvider.cpp >@@ -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,11 +147,12 @@ Vector<WebCore::PluginInfo> WebPluginInfoProvider::webVisiblePluginInfo(Page& pa > void WebPluginInfoProvider::populatePluginCache(const WebCore::Page& page) > { > if (!m_pluginCacheIsPopulated) { >- 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 (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; >+ } > > m_shouldRefreshPlugins = false; > m_pluginCacheIsPopulated = true;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 194352
:
361906
|
362602