fix: don't expose desktopCapturer in sandboxed renderers if the feature is disabled (#14310)
This commit is contained in:
parent
a43a292d18
commit
f1fe485768
4 changed files with 60 additions and 50 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue