Bug Report: macOS Accessibility immediately causes Brave "web apps" to close

Description of the issue:
When a Brave “app” (created by creating a shortcut) receives any macOS Accessibility event, its window will close immediately.

Steps to Reproduce:

  1. Launch Brave
  2. Navigate to any website.
  3. Create a shortcut to the website as an app, per the steps at https://support.google.com/chrome_webstore/answer/3060053?hl=en. Make sure to check “Open as window” when creating the shortcut.
  4. Open the created “app”. This will show the website in a new window, with less browser chrome.
  5. Launch Accessibility Inspector.
  6. Click the “Crosshair” button and hover the “app” window.

Instead of steps 5+6, one can also use any other tool that uses the Accessibility API, such as BetterTouchTool or my app Timing.

Actual Result:
The window will close almost immediately.

Expected Result:
The window should not close, and Accessibility Inspector should show information about the window.

Reproduces how often:

Brave Version(See the About Brave page in the main menu):
Brave version 1.12.114

Reproducible on current live release (yes/no):

Additional information:
I’m using macOS 10.15.6, all updates installed.