Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-112700

[REG] [macOS] Using getUserMedia() opens new window's tab in Dock

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.4.3, 6.5.0
    • WebEngine
    • None
    • MacBook Pro 13-inch M1, 2020
      macOS Ventura 13.2.1
    • macOS
    • a2d0bb9ef (dev), 03f58a298 (6.5)

    Description

      Using getUserMedia() opens unwanted window's tab (for QtWebEngineProcess) in macOS Dock.
      No such problem with Q 6.3.2.

      Sample code:

      import QtQuick
      import QtQuick.Window
      import QtWebEngine
      
      Window {
          width: 640
          height: 480
          visible: true
      
          WebEngineView {
              anchors.fill: parent
              url: 'https://webrtc.github.io/samples/src/content/getusermedia/gum/'
              onFeaturePermissionRequested: function (securityOrigin, feature) {
                  grantFeaturePermission(securityOrigin, feature, true)
              }
          }
      }
      

      Reproduced with Qt 6.4.3, Qt 6.5.0 and with the latest Qt 6.6.0 snapshot.

      See standalone example WebEngineTest.zip

      Steps to reproduce:
      1. Build and run sample app
      2. Press "Open camera" button
      3. Observe macOS Dock

      Attachments

        1. screenshot-1.png
          screenshot-1.png
          128 kB
        2. WebEngineTest.zip
          2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              anualiyas Anu Aliyas
              studiosus Vladimir Belyavsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes