Merge pull request #8907 from electron/plugin_list_patch

renderer: reset plugin cache when render frame is created
This commit is contained in:
Kevin Sawicki 2017-03-13 09:22:21 -07:00 committed by GitHub
commit 48152a813b

View 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);