Repository navigation
[BUG] Fix camera and microphone for video calls in Chromium tabs - #29
Merged
Merged
Conversation
Zoom, Meet and Teams could not use the camera or microphone in Chromium tabs: after Allow, pages saw an unanswered permission and unnamed devices. - Pin chrome-sdk 77ab40e, which records Allow as a one-time grant and lets Cobble's saved decisions answer camera/microphone status checks, permissions.query and enumerateDevices device details. - Chromium's permission resolver and resets now cover camera and microphone, so turning a permission off or Forget clears Chromium's grant. - Camera, microphone and screen sharing prompts show a hidden sidebar instead of being refused without asking. - When macOS privacy blocks Cobble from the camera or microphone, allowing a site says where to turn it on. - Tests: hidden-sidebar anchor, reveal only when asking, privacy-block detection, and device names after a WebKit grant. The permission fixture gains a devices step. docs/features/screen-sharing.md lists what each test layer proves and a manual release gate on real hardware. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
A Zoom link in a Chromium tab did not work. Three causes:
permissions.query=promptand unnamed devices with empty IDs fromenumerateDevices. Zoom, Meet and Teams use both to choose a device, so they report no camera or microphone. The SDK harness reproduces this on the beta 14 runtime.NotAllowedError.Fix
77ab40e). Allow leaves a one-time grant, and the permission resolver answers camera and microphone too.ChromiumEngine: the resolver maps camera/microphone to Cobble's saved decisions;resetPermissionclears them. The site-menu switch, Settings and Forget now revoke Chromium's camera/microphone grants as well.PagePresenter.revealSiteControlruns only when a prompt will actually ask.BrowserWindowModelthen holds the sidebar visible and lays it out in the same pass, until the prompt resolves.Tests
UITests.testHiddenSidebarShowsTheSiteControlWhileAPromptIsPending,PagePresenterTests.testOriginPromptsRevealTheSiteControlOnlyWhenTheyAsk,PagePresenterTests.testSystemPrivacyBlockIsReportedOnlyForBlockedDevices.docs/features/screen-sharing.mdnow says what each test layer proves and cannot prove, and adds a manual release gate on real hardware: notarized build, TCC prompt, Zoom test meeting and Meet.Validation
./Scripts/test.sh): 652 tests, 0 failures, 2 skipped. The two skipped tests press real prompts and need Cobble in the foreground.swift buildand adapterswift test(12) against pinned77ab40e.Not qualified
The maintainer Mac mini has no camera or microphone, so camera and microphone requests there end in
NotFoundErrorregardless of Cobble.🤖 Generated with Claude Code