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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important 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)

      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

        1. WebEngineTest.zip
          2 kB
          Vladimir Belyavsky
        2. screenshot-1.png
          128 kB
          Vladimir Belyavsky
        For Gerrit Dashboard: QTBUG-112700
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes