diff --git a/lib/sandboxed_renderer/init.js b/lib/sandboxed_renderer/init.js index db711e638add..9bdd726992c6 100644 --- a/lib/sandboxed_renderer/init.js +++ b/lib/sandboxed_renderer/init.js @@ -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) {