From 4281c73cf28b979c3b286e248109092dbaceebd9 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Sun, 12 Mar 2017 00:53:39 +0530 Subject: [PATCH] renderer: reset plugin cache when render frame is created --- atom/renderer/atom_renderer_client.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/atom/renderer/atom_renderer_client.cc b/atom/renderer/atom_renderer_client.cc index 078bcf743cf..637792c2aed 100644 --- a/atom/renderer/atom_renderer_client.cc +++ b/atom/renderer/atom_renderer_client.cc @@ -271,6 +271,9 @@ void AtomRendererClient::RenderFrameCreated( // FIXME(zcbenz): Can this be moved elsewhere? blink::WebSecurityPolicy::registerURLSchemeAsAllowingServiceWorkers("file"); + // This is required for widevine plugin detection provided during runtime. + blink::resetPluginCache(); + // Parse --secure-schemes=scheme1,scheme2 std::vector secure_schemes_list = ParseSchemesCLISwitch(switches::kSecureSchemes);