diff --git a/lib/renderer/web-view/web-view.js b/lib/renderer/web-view/web-view.js index ac45ab32a1c6..b5f2d30c00b7 100644 --- a/lib/renderer/web-view/web-view.js +++ b/lib/renderer/web-view/web-view.js @@ -27,7 +27,7 @@ class WebViewImpl { // on* Event handlers. this.on = {} this.browserPluginNode = this.createBrowserPluginNode() - const shadowRoot = this.webviewNode.createShadowRoot() + const shadowRoot = this.webviewNode.attachShadow({mode: 'open'}) shadowRoot.innerHTML = '' this.setupWebViewAttributes() this.setupFocusPropagation()