Bug 274820 - Microphone permission popup is hidden in fullscreen
Summary: Microphone permission popup is hidden in fullscreen
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 17
Hardware: iPhone / iPad iOS 17
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2024-05-29 01:58 PDT by Ben
Modified: 2024-06-06 22:25 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben 2024-05-29 01:58:07 PDT
The getUserMedia microphone permission popup is hidden when Safari is in fullscreen.

Tested on iPad 17.5.1

Test:
https://output.jsbin.com/yogecumufe

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>test</title>
  <script>
    async function start() {
      await document.documentElement.requestFullscreen();
      const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false});      
    }    
  </script>
</head>
<body>
  <button onclick="start()">Start</button>
</body>
</html>
Comment 1 Radar WebKit Bug Importer 2024-05-29 10:30:11 PDT
<rdar://problem/128949984>
Comment 2 Ahmad Saleem 2024-05-30 05:26:08 PDT
@Ben - I am unable to trigger any permission pop-up in iPadOS. Can you share video recording to help us understand better - what are steps to reproduce and we can try on our side?

Looking forward to your support. Thanks!
Comment 3 Ben 2024-06-05 07:17:14 PDT
The JavaScript to reproduce this bug is added in the first post. Specifically:
await document.documentElement.requestFullscreen();
const stream = await navigator.mediaDevices.getUserMedia({audio: true, video: false});

1. Open this page
https://benbro.github.io/samples/src/content/getusermedia/gum/
2. Click on the red "Open camera" button.
3. It should start full screen and show the microphone permission popup.
On iPadOS the microphone permission popup is not shown. Only when you exit fullscreen by clicking on the X on the top left you see the popup.
Test it on Chrome on Windows to see the popup.
Comment 4 Karl Dubost 2024-06-06 22:25:15 PDT
@Ben thanks a lot for the simple test page. 
It reproduces indeed.