27 lines
940 B
Diff
27 lines
940 B
Diff
From: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
Date: Thu, 22 Mar 2018 22:38:00 +0100
|
|
Subject: Disable plugins enumeration
|
|
|
|
---
|
|
third_party/blink/renderer/core/frame/local_frame.cc | 6 ++----
|
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
|
|
--- a/third_party/blink/renderer/core/frame/local_frame.cc
|
|
+++ b/third_party/blink/renderer/core/frame/local_frame.cc
|
|
@@ -1782,10 +1782,8 @@ WebContentSettingsClient* LocalFrame::GetContentSettingsClient() {
|
|
}
|
|
|
|
PluginData* LocalFrame::GetPluginData() const {
|
|
- if (!Loader().AllowPlugins(kNotAboutToInstantiatePlugin))
|
|
- return nullptr;
|
|
- return GetPage()->GetPluginData(
|
|
- Tree().Top().GetSecurityContext()->GetSecurityOrigin());
|
|
+ // what about no
|
|
+ return nullptr;
|
|
}
|
|
|
|
void LocalFrame::SetAdTrackerForTesting(AdTracker* ad_tracker) {
|
|
--
|
|
2.17.1
|
|
|