Skip to content

[Bug]: Built-in browser denies microphone access to web pages #18970

Closed as not planned

Description

@bjesuiter

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included steps and a result from the current desktop preview.

Area

apps/desktop, built-in browser preview

Problem

Web pages in T3 Code's built-in browser cannot obtain microphone input. This blocks testing WebRTC/audio-capture applications inside the preview.

Steps to reproduce

  1. Open https://webrtc.github.io/samples/src/content/getusermedia/gum/ in T3 Code's built-in browser.
  2. In that page, call navigator.permissions.query({ name: "microphone" }) and navigator.mediaDevices.getUserMedia({ audio: true }).

Actual behavior

In T3 Code Nightly 0.0.46-nightly.20261012.3021 on macOS 26.7.1, the HTTPS page reports isSecureContext === true and navigator.mediaDevices exists, but the microphone permission state is denied. getUserMedia({ audio: true }) rejects with NotSupportedError: Not supported. No grant path is offered to the user.

Expected behavior

A page should be able to request microphone access with an origin-specific user prompt, then capture audio after the user grants the relevant macOS and site permissions. The user should be able to revoke the grant.

Likely cause

The Electron preview session's permission request and check handlers return ALLOWED_PREVIEW_PERMISSIONS.has(permission). The allowlist omits media, so media capture requests are denied. See BrowserSession.ts on current main and the handlers. The behavior was reproduced in the preview; the source points to the likely reason but was not debugged at runtime.

Related reports

Workaround

Open the application in an external browser for microphone testing.

Activity

  1. juliusmarminge commented on Oct 13, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    This isn't a bug in the current preview model. Electron preview sessions use a fixed allowlist in ALLOWED_PREVIEW_PERMISSIONS (clipboard, notifications, geolocation, fullscreen). media has never been on that list—same deny-by-default stance as the deliberate local-fonts omission for untrusted page content—so getUserMedia fails with no grant path by design.

    #12566 is related but different: it was about Tauri/WKWebView silently granting capture, and it called out the Electron path as out of scope. #728 / #7242 are about host/process TCC, not in-preview web pages.

    For mic testing today, use an external browser. If you want origin prompts + revocable grants inside the built-in preview, please open that as an idea in Discussions → Ideas so we can scope the Electron permission UX (and how it interacts with macOS TCC).

  2. added
    enhancement
    on Oct 13, 2026
  3. juliusmarminge commented on Oct 13, 2026

    @juliusmarminge
    Member

    Note

    Grok responding on behalf of Julius.

    Moving this to Ideas as a feature request (per CONTRIBUTING). Continues in #19081.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions