feat: remove nativeWindowOpen option (#29405)
Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
parent
2f9fd06534
commit
d44a187d0b
39 changed files with 316 additions and 1164 deletions
|
@ -1245,8 +1245,8 @@ describe('webContents module', () => {
|
|||
expect(currentRenderViewDeletedEmitted).to.be.false('current-render-view-deleted was emitted');
|
||||
});
|
||||
|
||||
it('does not emit current-render-view-deleted when speculative RVHs are deleted and nativeWindowOpen is set to true', async () => {
|
||||
const parentWindow = new BrowserWindow({ show: false, webPreferences: { nativeWindowOpen: true } });
|
||||
it('does not emit current-render-view-deleted when speculative RVHs are deleted', async () => {
|
||||
const parentWindow = new BrowserWindow({ show: false });
|
||||
let currentRenderViewDeletedEmitted = false;
|
||||
let childWindow: BrowserWindow | null = null;
|
||||
const destroyed = emittedOnce(parentWindow.webContents, 'destroyed');
|
||||
|
@ -2054,7 +2054,7 @@ describe('webContents module', () => {
|
|||
describe('page-title-updated event', () => {
|
||||
afterEach(closeAllWindows);
|
||||
it('is emitted with a full title for pages with no navigation', async () => {
|
||||
const bw = new BrowserWindow({ show: false, webPreferences: { nativeWindowOpen: true } });
|
||||
const bw = new BrowserWindow({ show: false });
|
||||
await bw.loadURL('about:blank');
|
||||
bw.webContents.executeJavaScript('child = window.open("", "", "show=no"); null');
|
||||
const [, child] = await emittedOnce(app, 'web-contents-created');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue