- Electron version: 1.2.7
- Operating system: Mac OSX El Capitan
- Widevine CDM version: 1.4.8.885

I'm trying to build an app which play widevine-encrypted video. My prototype works only if I type `navigator.plugins` in console or if I execute `console.log(navigator.plugins);` (with console open). Otherwise it won't work.

I tried it with shaka player demo page and with local dashjs-based player.

atom/renderer/atom_renderer_client.cc
int world_id) override {
    if (ShouldNotifyClient(world_id))
      renderer_client_->WillReleaseScriptContext(context, render_frame_);
  }
  void OnDestruct() override {
    delete this;
  }
 private:
  content::RenderFrame* render_frame_;
  AtomRendererClient* renderer_client_;
  DISALLOW_COPY_AND_ASSIGN(AtomRenderFrameObserver);
};
v8::Local<v8::Value> GetRenderProcessPreferences(
    const PreferencesManager* preferences_manager, v8::Isolate* isolate) {
  if (preferences_manager->preferences())
    return mate::ConvertToV8(isolate, *preferences_manager->preferences());
  else
    return v8::Null(isolate);
}
void AddRenderBindings(v8::Isolate* isolate,
                       v8::Local<v8::Object> process,
                       const PreferencesManager* preferences_manager) {
  mate::Dictionary dict(isolate, process);
  dict.SetMethod(
      "getRenderProcessPreferences",
      base::Bind(GetRenderProcessPreferences, preferences_manager));
}
bool IsDevToolsExtension(content::RenderFrame* render_frame) {