renderer: reset plugin cache when render frame is created
authordeepak1556 <hop2deep@gmail.com>
Sat, 11 Mar 2017 19:23:39 +0000 (00:53 +0530)
committerdeepak1556 <hop2deep@gmail.com>
Sat, 11 Mar 2017 19:23:39 +0000 (00:53 +0530)
atom/renderer/atom_renderer_client.cc

index 078bcf7..637792c 100644 (file)
@@ -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<std::string> secure_schemes_list =
       ParseSchemesCLISwitch(switches::kSecureSchemes);