How to find the browserWindow corresponding to the webview?


#1

I’m using webContents.getAllWebContents() to get all the open windows/webviews.
By checking the url, title, etc I can select the webview I want to do someting with.
in my case I want to send a new url to the webview with a specific title.

in the webview I have an ipc listener which will receive and load the new url.

To send the new url, and to focus is I need to find the corresponding browserWindow.
This I couldn’t get working.
Can somebody point me in the right direction?
many thanks in advance.