Is your feature request related to a problem? Please describe.
Electron 12 has a new API to capture and prevent window creation, webContents.setWindowOpenHandler. See: https://www.electronjs.org/docs/tutorial/security#how-10.
The existing new-window event has been deprecated.
Describe the solution you'd like
LIMIT_NAVIGATION_JS_CHECK should detect the presence of the new handler API and treat it the same way as the new-window event, assuming it is an appropriate alternative (or addition).
Describe alternatives you've considered
It's possible to continue using the deprecated event. It is not entirely clear to me how these APIs interact when used together, or whether they are completely interchangeable .
Is your feature request related to a problem? Please describe.
Electron 12 has a new API to capture and prevent window creation,
webContents.setWindowOpenHandler. See: https://www.electronjs.org/docs/tutorial/security#how-10.The existing
new-windowevent has been deprecated.Describe the solution you'd like
LIMIT_NAVIGATION_JS_CHECKshould detect the presence of the new handler API and treat it the same way as thenew-windowevent, assuming it is an appropriate alternative (or addition).Describe alternatives you've considered
It's possible to continue using the deprecated event. It is not entirely clear to me how these APIs interact when used together, or whether they are completely interchangeable .