The "Use Microphone" functionality does not work in the Google Gemini Chat sidebar
Categories
(Core :: Machine Learning: General, defect)
Tracking
()
People
(Reporter: rdoghi, Assigned: yjamora, NeedInfo)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [genai])
Attachments
(2 external files)
Found in
- Nightly 129.0a1
Affected versions
- Nightly 129.0a1 (2024-07-04)
Affected platforms
- All
Steps to reproduce
- Reach about:preferences#experimental page.
- Enable the AI Chat integration.
- Select the Google Gemini provider.
- Reach the AI chat Sidebar.
- Try to Use the microphone in order to chat with the google Gemini AI
Expected result
- The Mic Permissions prompt should trigger and the user should be able to use the microphone in order to chat with the AI.
Actual result
- The Permissions Prompt is not triggered. The Use microphone function does not work from the Sidebar.
This functionality works in a new Tab.
Regression range
Not a regression.
Comment 1•1 year ago
|
||
This issue came up on SUMO today: https://support.mozilla.org/questions/1506009
The Browser Console (for 137.0.1) shows:
TypeError: chromeDoc.defaultView.PopupNotifications is undefined
WebRTCParent.sys.mjs:1316:3
I was surprised that explicitly setting an Allow Microphone permission on gemini.google.com did not overcome this issue. But maybe that isn't relevant to the WebRTC code. ??
Updated•1 year ago
|
Comment 2•1 year ago
|
||
Comment 3•1 year ago
|
||
(In reply to jscher2000 from comment #1)
I was surprised that explicitly setting an Allow Microphone permission on gemini.google.com did not overcome this issue
the current code expecting a regular tab makes sure it's the active tab and active window even if the permission is already granted
https://searchfox.org/mozilla-central/rev/ace4c0612207f29c0d0530dec82e15aeb5fe17d5/toolkit/modules/PopupNotifications.sys.mjs#640-641
https://searchfox.org/mozilla-central/rev/ace4c0612207f29c0d0530dec82e15aeb5fe17d5/browser/actors/WebRTCParent.sys.mjs#799-802
perhaps we can have this bug focus on already-granted and split out correctly showing the permission dialog for the chatbot sidebar
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 8•1 year ago
|
||
Reverted this because it was causing mochitests failures in browser_chat_sidebar.js.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/genai/tests/browser/browser_chat_sidebar.js | A promise chain failed to handle a rejection: JSWindowActorParent.sendAsyncMessage: JSWindowActorParent cannot send at the moment - stack: denyRequestNoPermission@resource:///actors/WebRTCParent.sys.mjs:175:10
Comment 9•1 year ago
|
||
Backout merged in central: https://hg-edge.mozilla.org/mozilla-central/rev/0da92081af4f787e7ca2df2b2e0a773d54a65f93
Comment 10•1 year ago
|
||
Comment 11•1 year ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: bug fix - If users request a mic access from the sidebar chatbot, they cant use the mic that already gave a granted permission in a tab.
- Code covered by automated testing: yes
- Fix verified in Nightly: no
- Needs manual QE test: yes
- Steps to reproduce for manual QE testing: Go to "https://gemini.google.com/app" or "https://copilot.microsoft.com/" and click microphone icon -> Will pop a PopupNotification -> Check "Remember all microphone" -> Click Allow button -> Open sidebar or sidebar.revamp = true -> Click the chatbot tool -> Choose a provider either "Gemini" or "Copilot" in chatbot -> Once it is loaded click a microphone icon from its website -> Check if the microphone access works
- Risk associated with taking this patch: low
- Explanation of risk level: It is low because the changes are just a early check for the granted permission by using existing a function.
- String changes made/needed: no
- Is Android affected?: no
| Assignee | ||
Comment 12•1 year ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D261049
Comment 13•1 year ago
|
||
| bugherder | ||
Updated•1 year ago
|
| Reporter | ||
Comment 14•1 year ago
|
||
This issue is verified as fixed in our latest Nightly 145.0a1 (2025-10-05).
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 15•1 year ago
|
||
| uplift | ||
| Reporter | ||
Comment 16•1 year ago
|
||
Verified as fixed in our latest Beta 144.0b11
| Reporter | ||
Comment 17•1 year ago
|
||
Verified as fixed in our latest RC build 144.0 as well
Description
•