Closed caimingxue51 closed 3 years ago
Bug description
When encountering the following code:
newPrint = window.open(''); newPrint.document.write('<script>window.onload = function(){window.print();}</script>'); newPrint.document.write(str); newPrint.document.close(); // str is html script code
this.webContents.addListener( 'new-window', (e, url, frameName, disposition) => { ... else if (disposition === 'foreground-tab') { e.preventDefault(); this.window.viewManager.create({ url, active: true }, true); }
The new tab cannot display the content of the webpage.
To Reproduce
Expected behavior
Screenshots
Details:
Additional context
Bug description
When encountering the following code:
this.webContents.addListener( 'new-window', (e, url, frameName, disposition) => { ... else if (disposition === 'foreground-tab') { e.preventDefault(); this.window.viewManager.create({ url, active: true }, true); }
The new tab cannot display the content of the webpage.
To Reproduce
Expected behavior
Screenshots
Details:
Additional context