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

[REG 5.15] recentlyAudibleChanged is never emitted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.1
    • 5.15.0
    • WebEngine
    • None
    • e42ccdad0bae65bdd0e20904df56decb7e93c314 (qt/qtwebengine/5.15)

    Description

      It looks like Qt 5.15 never emits the recentlyAudibleChanged signal, which worked fine with Qt 5.14. To reproduce, patch simplebrowser so it logs something when the signal is emitted:

      diff --git i/examples/webenginewidgets/simplebrowser/webpage.cpp w/examples/webenginewidgets/simplebrowser/webpage.cpp
      index 9f7038cd..45b12783 100644
      --- i/examples/webenginewidgets/simplebrowser/webpage.cpp
      +++ w/examples/webenginewidgets/simplebrowser/webpage.cpp
      @@ -59,6 +59,7 @@
       #include <QStyle>
       #include <QTimer>
       #include <QWebEngineCertificateError>
      +#include <QDebug>
       
       WebPage::WebPage(QWebEngineProfile *profile, QObject *parent)
           : QWebEnginePage(profile, parent)
      @@ -67,6 +68,7 @@ WebPage::WebPage(QWebEngineProfile *profile, QObject *parent)
           connect(this, &QWebEnginePage::featurePermissionRequested, this, &WebPage::handleFeaturePermissionRequested);
           connect(this, &QWebEnginePage::proxyAuthenticationRequired, this, &WebPage::handleProxyAuthenticationRequired);
           connect(this, &QWebEnginePage::registerProtocolHandlerRequested, this, &WebPage::handleRegisterProtocolHandlerRequested);
      +    connect(this, &QWebEnginePage::recentlyAudibleChanged, []() { qDebug() << "audible"; });
       #if !defined(QT_NO_SSL) || QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)
           connect(this, &QWebEnginePage::selectClientCertificate, this, &WebPage::handleSelectClientCertificate);
       #endif
      

      and then play e.g. a YouTube video. It will get emitted with Qt 5.14 but not 5.15.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            the compiler Florian Bruhin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes