Brave 1.27.109 crashes on MacOS Big Sur 11.5 upon closing a window

Description of the issue:

When closing a window of Brave (red cross), Brave unexpectedly quits (crashes). This results in all windows of Brave closing, and upon restarting, it shows a message: “Brave did not shut down correctly.”

**Steps to Reproduce (add as many as necessary): **

  1. Open Brave
  2. Click on the red cross (left top) to close a window
  3. Brave crashes

**Actual Result (gifs and screenshots are welcome!):
Brave crashes

Expected result:
Brave should close just the window I want to close, instead of shutting down (crashing).

Reproduces how often: Every time.

Operating System and Brave Version(See the About Brave page in the main menu):
Brave 1.27.109 on MacOS Big Sur 11.5

Additional Information:
Crash ID

Type brave://flags/#global-media-controls-cast-start-stop in the address bar and make sure flag’s value is set to Default.

Found the same crash ID’s in the Github report below.

P.S Do you happen to use Yabai? Provided crash ID’s appear in a report related to Yabai as well.

FYI, the setting was already set to Default.
The issue persists.

Do you happen to use Yabai ?

I don’t know what Yabai is, so I doubt it. :slight_smile:

Could you check whether the issue will appear in a fresh user profile?

The issue does not appear with a fresh user profile.
How could I determine the cause with my existing profile?

If you happen to use any extensions, disable them and slowly enable them one by one until you find the one causing those crashes.

I found the extension that caused the crash. Thank you. The problem is now solved.