### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/master/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a feature request that matches the one I want to file, without success.

### Electron Version

13.0.1

### What operating system are you using?

macOS

### Operating System Version

macos BigSur 11.4 

### What arch are you using?

arm64 (including Apple Silicon)

### Last Known Working Electron version

12.0.9

### Expected Behavior

I'm using this function to capture my window (window which start app), it work ok on Windows (same electron version) but not working on mac
```js
 await navigator.mediaDevices.getUserMedia({
    video: {
      mandatory: {
        chromeMediaSource: 'desktop',
        chromeMediaSourceId: sourceId,
      },
    })
```
`sourceId` value === `window.getMediaSourceId()`

### Actual Behavior

Black video

### Testcase Gist URL

_No response_

### Additional Information

_No response_
shell/browser/feature_list.cc
#include "electron/shell/browser/feature_list.h"
#include <string>
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/feature_list.h"
#include "base/metrics/field_trial.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "content/public/common/content_features.h"
#include "electron/buildflags/buildflags.h"
#include "media/base/media_switches.h"
#include "net/base/features.h"
#include "services/network/public/cpp/features.h"
namespace electron {
void InitializeFeatureList() {