chore: emit the document-start and document-end events in a sandboxed renderer (#20992)

This commit is contained in:
trop[bot]
2019-11-05 19:25:10 -08:00
committed by Samuel Attard
parent 1de38af8cc
commit 517a5915d7

View File

@@ -94,6 +94,8 @@ Object.defineProperty(preloadProcess, 'noDeprecation', {
process.on('loaded', () => preloadProcess.emit('loaded'))
process.on('exit', () => preloadProcess.emit('exit'))
process.on('document-start', () => preloadProcess.emit('document-start'))
process.on('document-end', () => preloadProcess.emit('document-end'))
// This is the `require` function that will be visible to the preload script
function preloadRequire (module) {