Windows created via window.open are not registered in Electron.WindowManager.BrowserWindows #288

Closed
opened 2026-01-29 16:35:46 +00:00 by claunia · 1 comment
Owner

Originally created by @CrisVrinceanu on GitHub (Mar 21, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

As specified in the title the windows created via JavaScript "window.Open" don't get registered in BrowserWindow list neither are marked as a child of parent. However via JavaScript you can see them as child.

It would be nice to have them in order to have full control of child windows.

Originally created by @CrisVrinceanu on GitHub (Mar 21, 2019). Originally assigned to: @GregorBiswanger on GitHub. As specified in the title the windows created via JavaScript "window.Open" don't get registered in BrowserWindow list neither are marked as a child of parent. However via JavaScript you can see them as child. It would be nice to have them in order to have full control of child windows.
claunia added the question label 2026-01-29 16:35:46 +00:00
Author
Owner

@GregorBiswanger commented on GitHub (May 16, 2019):

Please avoid creating windows with DOM. These are getting rid of the standard electron implementation. Both have nothing in common.

Alternatively, you can do the following:

const { BrowserWindow } = require('electron').remote
let win = new BrowserWindow({ width: 800, height: 600 })
win.loadURL('https://github.com')

Important! Electron.NET will NOT get these into the WindowManager. Because the windows were created outside of our API.

@GregorBiswanger commented on GitHub (May 16, 2019): Please avoid creating windows with DOM. These are getting rid of the standard electron implementation. Both have nothing in common. Alternatively, you can do the following: ``` const { BrowserWindow } = require('electron').remote let win = new BrowserWindow({ width: 800, height: 600 }) win.loadURL('https://github.com') ``` **Important! Electron.NET will NOT get these into the WindowManager. Because the windows were created outside of our API.**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#288