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

Add a way to know if QWebEngineUrlRequestInfo is a download

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • 6.9.0 FF
    • None
    • WebEngine
    • None
    • ecf3a7af6 (dev)

    Description

      Downloads can happens in 2 ways:

      1. The user navigate to a file that chromium cannot open (e.g. a zip file), or the HTTP headers contain an hint that the file should be downloaded
      2. The user makes an explicit download request e.g. by using the DownloadImageToDisk action

      In the first case, we cannot know if the request will lead to a download.

      However in the second case, chromium knows that the request will lead to a download. This info should be exposed so that it is possible to take different actions in the interceptor when we know it is a download.

      Example of use case: we want to prevent users from directly opening a video file, but let them download the file.

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            bterrier Benjamin Terrier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes