In this case, I don’t believe it’s a browser setting. I’ve never had this behavior on any other website and I tend to use the console window as much as the regular window. It might be a behavior limited to Brave browser; I’ve been able to reproduce it on multiple computers.
I noticed that Brave was originally blocking the “consent.js” script – that’s the one that asks us to accept cookies. While that script was blocked, this behavior didn’t happen. It was only after I allow that script and accept cookies that it starts to forcefully close the console.
I’m having the same issue here, using Brave Browser.
It doesn’t matter if the console is in the same window or detached as a separate window.
However, I tried with chrome and there it still seems to work without closing.