Brave closes without user commanding a close event from the top right "X"

@AshLee ,

Try:

Start Brave Browser from the command line; with errors output to a Desktop text file, “brave_console_out.txt”.

The command is in 4 parts:

Part 1 is the path to the Brave executable (brave.exe)

Part 2 is the flag (--incognito)

Part 3 directs error output (2>) to

Part 4 a file on your Desktop (brave_console_out.txt)

NOTE that the location of opening and closing, plain/simple (not curly/smart) double-quote marks is important, in the following, lengthy command:

64 architecture

"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --incognito 2> %USERPROFILE%\Desktop\brave_console_out.txt

Brave Browser will start and open a New Private Window (because: --incognito flag).

Additional flags to use, for testing; choose any single, or combo, with/without the --incognito flag:

--crash-on-failure
--disable-extensions
--disable-gpu
--enable-leak-detection

If Brave Browser keeps running . . .

In a Brave Browser > New Window, go to: brave://settings/cookies

Disable: Clear cookies and site data when you close all windows

Next, go to: brave://settings/clearBrowserData . . . and select the Clear browsing data > Basic tab.

Enable all 3 selections and click the Clear data button – BUT NOTE: the Clear cookies and other site data selection (when Enabled) will sign you out of most websites.

Return to: brave://settings/clearBrowserData

For the Clear browsing data > On Exit tab:

  • Disable: Passwords and other sign-in data
  • Disable: Site and Shields Settings

Click on the Save button.

In a Brave Browser > New Window, go to: brave://net-internals/#dns

and click on Clear host cache

Next, go to: brave://net-internals/#sockets

and click on both (in succession):

  • Close idle sockets
  • Flush socket pools

Exit/Quit everything and restart your computer.

Notes re what are:

DNS cache:

Socket pool:

With pooling, instead of closing a connection after it is used, we can keep it idle while it waits to handle another request. This saves the resources required to create a new connection.

In a Brave Browser > New Window - go to: brave://settings/security

Disable: Use secure DNS

And maybe . . . in a Brave Browser > New Window, go to: brave://settings/?search=Continue+where+you+left+off

And adjust the settings to about:blank as shown;

If you have Brave Browser to be the default Browser, choose a different Internet browser for that.

IOW, take steps to get Brave Browser free and clear from as many burdens as you can.