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

Load signals not emitted when opening a google result

    XMLWordPrintable

Details

    • 8b5e3a46f2 (qt/qtwebengine/dev) 0588e7bae9 (qt/qtwebengine/6.3) 477d471458 (qt/qtwebengine/6.2) 73e76f9e86 (qt/qtwebengine/5.15) 0588e7bae9 (qt/qtwebengine/6.3.0) 477d471458 (qt/qtwebengine/6.2) 477d471458 (qt/qtwebengine/6.2)

    Description

      After making a search on Google and clicking on a link, the load of the "clicked" link does not trigger any load signals.

      acceptNavigationRequest() is called.
      urlChanged() and faviconChanged() are emitted.

      But none of loadStarted(), loadProgress() and loadFinished() are called.

      Qt WebEngine 5.15.4 does not have this issue.

      More info

      The issue does not happen when using a Chrome/Chromium user agent.
      The issue happens when using (at least) Firefox or Safari user agents.

      Adding the following code in the main of the simplebrowser allows to reproduce the issue:

       QWebEngineProfile::defaultProfile()->setHttpUserAgent("Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0");
      

      Also when it happens the acceptNavigation() gives NavigationTypeRedirect while it gives NavigationTypeLinkClicked when using a Chromium user agent.

      With Qt WebEngine 5.15.4, when using a Firefox user agent, acceptNavigation() still gives NavigationTypeRedirect, but signals are emitted.

      Attachments

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

        Activity

          People

            kiburtse Kirill Burtsev
            bterrier Benjamin Terrier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: