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.3, 6.9.0
    • 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

        For Gerrit Dashboard: QTBUG-134637
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change