Disable-plugins-enumeration.patch 855 B

123456789101112131415161718192021222324
  1. From: csagan5 <32685696+csagan5@users.noreply.github.com>
  2. Date: Thu, 22 Mar 2018 22:38:00 +0100
  3. Subject: Disable plugins enumeration
  4. License: GPL-3.0-only - https://spdx.org/licenses/GPL-3.0-only.html
  5. ---
  6. third_party/blink/renderer/core/frame/local_frame.cc | 2 --
  7. 1 file changed, 2 deletions(-)
  8. diff --git a/third_party/blink/renderer/core/frame/local_frame.cc b/third_party/blink/renderer/core/frame/local_frame.cc
  9. --- a/third_party/blink/renderer/core/frame/local_frame.cc
  10. +++ b/third_party/blink/renderer/core/frame/local_frame.cc
  11. @@ -1914,9 +1914,7 @@ WebContentSettingsClient* LocalFrame::GetContentSettingsClient() {
  12. }
  13. PluginData* LocalFrame::GetPluginData() const {
  14. - if (!Loader().AllowPlugins())
  15. return nullptr;
  16. - return GetPage()->GetPluginData();
  17. }
  18. void LocalFrame::SetAdTrackerForTesting(AdTracker* ad_tracker) {
  19. --
  20. 2.25.1