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

QWebEngine does not respect iframe permissions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.2, 6.9.0 Beta3
    • WebEngine
    • None

    Description

      We'd like to embed a component that uses audio/video from within an iframe. So you'd normally do something like

      <iframe allow="camera; microphone" src="https://where.ever.net"></iframe>        
      

      When you do this from the QWebEngine, you're getting the permission requests, but the page itself does not see the media devices. If you load the iframe content directly, it works.

      I've prepared a mini demo which you can use to reproduce it in the nanobrowser example. Navigate to https://rosi.naasa.net/itest.html for the iframe version, and https://rosi.naasa.net/test.html for the direct version.

      Here's my result for the iframe version:

      And here for the direct version:

      Both show the same devices in chrome and firefox.

      Attachments

        1. image-2025-03-12-08-50-31-254.png
          84 kB
          Cajus Pollmeier
        2. image-2025-03-12-08-50-50-357.png
          23 kB
          Cajus Pollmeier
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kchehlarski Kaloyan Chehlarski
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes