fix: don't expose desktopCapturer in sandboxed renderers if the feature is disabled (#14310)

This commit is contained in:
Milan Burda 2018-08-27 20:16:52 +02:00 committed by Charles Kerr
parent a43a292d18
commit f1fe485768
4 changed files with 60 additions and 50 deletions

View file

@ -1,10 +1,12 @@
/* eslint no-eval: "off" */
/* global binding, Buffer */
const events = require('events')
const electron = require('electron')
process.atomBinding = require('../common/atom-binding-setup')(binding.get, 'renderer')
// The electron module depends on process.atomBinding
const electron = require('electron')
const v8Util = process.atomBinding('v8_util')
// Expose browserify Buffer as a hidden value. This is used by C++ code to
// deserialize Buffer instances sent from browser process.