Skip to content

webview: allow microphone and camera permission requests#340

Open
codebyfog wants to merge 1 commit into
sonnyp:mainfrom
codebyfog:fix/microphone-permission
Open

webview: allow microphone and camera permission requests#340
codebyfog wants to merge 1 commit into
sonnyp:mainfrom
codebyfog:fix/microphone-permission

Conversation

@codebyfog
Copy link
Copy Markdown

@codebyfog codebyfog commented Apr 30, 2026

Currently, the permission-request handler in WebView.js denies all
permission requests except notifications. This means that calls to
getUserMedia() (used by apps like WhatsApp Web for voice messages) are silently denied — no system dialog is shown to the user.

This patch:

  • Imports UserMediaPermissionRequest from WebKit
  • Adds enable_media_stream: true to WebKit settings
  • Allows UserMediaPermissionRequest in the permission handler

Tested on Arch Linux with GNOME, using WhatsApp Web inside Tangram.
Microphone now works correctly after this change.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant