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

AcceptNavigationRequest, loadStarted, loadProgress loadFinished sometimes aren't called

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • 5.15.7, 6.5.2
    • WebEngine
    • None
    • Gentoo Linux
    • Linux/X11

    Description

      In some situations, QWebEnginePage::acceptNavigationRequest() is not called and the loadStarted(), loadProgress() and loadFinished() signals aren't emitted, neither from QWebEnginePage nor from QWebEngineView.

      An example of when this happens is the following:

      The pull request page is correctly displayed, but the none of the debug messages are shown. Note that if you enter the URL of the pull request page directly in the URL bar of the browser, the signals are correctly emitted.

      You can see this behavior using the simplebrowser example included with QtWebEngine, adding some calls to qDebug. I attach modified versions of the webpage.cpp, webpage.h and webview.cpp files included in the example which contains such calls.

      This behavior makes it impossible for the program to detect when a page has actually finished loading, causing, for example, the bug reported at https://bugs.kde.org/show_bug.cgi?id=467850.

      Attachments

        1. webpage.cpp
          2 kB
        2. webpage.h
          0.8 kB
        3. webview.cpp
          13 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mnegyokru Martin Negyokru
            stefano.crocco Stefano Crocco
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes