fix: check process.isMainFrame in sandboxed_renderer/init.js (#16500)
This commit is contained in:
parent
e6952e2a16
commit
fef262f829
2 changed files with 7 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue