BrowserWindow reloads upon webview src property change


In my app, say I have a webview. If I want to programatically change its location, I would use whateverWebview.src = "", correct?

Well when I do this my BrowserWindow reloads as well, but if I prevent it from reloading, the Webview loads fine, but I can’t close the app. Pretty sure this is a bug, just wanted to make sure before posting an issue on GitHub.


Found the problem.

Wasn’t related to the Webview at all. I was using a form for getting a URL into it, and totally forgot that submitting a form refreshes the page if you don’t stop it explicitly. Sorry about that.