fix: check process.isMainFrame in sandboxed_renderer/init.js (#16500)

This commit is contained in:
Milan Burda 2019-01-24 19:53:16 +01:00 committed by Shelley Vohr
parent e6952e2a16
commit fef262f829
2 changed files with 7 additions and 3 deletions

View file

@ -17,7 +17,7 @@ function handleFocusBlur (guestInstanceId) {
}
module.exports = function (contextIsolation, webviewTag, guestInstanceId) {
// Load webview tag implementation.
// Don't allow recursive `<webview>`.
if (webviewTag && guestInstanceId == null) {
const webViewImpl = require('@electron/internal/renderer/web-view/web-view-impl')
if (contextIsolation) {