Brave audio / video capture not blocked and causing memory leak

Description of the issue:
Audio / Video capture is not blocked and a memory leak starts to grow if you visit a page and refresh it a few times. Audio/video capture is not being blocked.

Update from 1.95.101 to 10.95.104 is where the issue started again.

Open Brave without any tabs or anything in background loading.
Visit a site that invokes audio / video capture. (discord.com, x.com, etc.)
Press shift + esc to view browser task manager. Identify audio process and video capture running without a need for it.
Refresh the page a few times and verify memory usage continues to increase.


Even when AudioCaptureAllowed & VideoCaptureAllowed both set to false in brave:policy it will not stop it from loading. Video capture will sometimes follow the policy and others it will stay.

Steps to Reproduce (add as many as necessary): 1. 2. 3.

  1. Open brave browser
  2. Visit page that invokes video capture
  3. Review browser task manager to identify processes and memory

Actual Result (gifs and screenshots are welcome!):
Memory leak on webpages that hold audio / video capture.

Expected result:

Audio and Video capture to be blocked and no memory leak.

Reproduces how often:

Everytime you visit a page that invokes audio/video capture.

Operating System and Brave Version(See the About Brave page in the main menu):
Brave official
1.95.104 Chromium: 153.0.8010.53 (Official Build) (64-bit)
image

Additional Information:
Policies set
Flags set

Brave Support - Group Policy link:

‘https://support.brave.app/hc/en-us/articles/360039248271-Group-Policy’

I am not so sure that it is a good idea to get brave://flags involved?

Also, brave://settings/content ← worth a look, re camera, microphone.

Brave://settings/content all set to don’t allow. First step anyone should take to secure the browser.


Brave://flags are all the variations being set every single time they update the browser. They even set variations with each new build which are viewable under brave://version.

You are referencing the brave generic group policy settings which only mentions a few brave specific group policies and not everything that alters the browser. Brave inherits some (not all) group policies from chrome and would have to reference https://chromeenterprise.google/policies/ along with brave coding to verify what does and does not work.

This wasn’t a issue till they changed to latest chromium version. This has occurred before.

Camera / audio capture still a issue on 1.96.59 Chromium: 154.0.8037.58 (Official Build) (64-bit)

A lot was broken with this update. Dark contents for web pages does not work correclty.
ex.

It seems like CSS / filter rules are not functioning properly either. Have had constant issues with this update.

@ItsPerryXD

Suggest:

For more specific observation of memory being used:

Because Memory Footprint alone, doesn’t yet tell us whether that memory is associated with the webpage, the renderer, the media machinery, or something surviving the navigation.