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

Expose "HTTPS by default" for schemeless navigations

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • WebEngine
    • None

      Chromium 90 introduced a new way of navigating to schemeless URLs: It first tries HTTPS and only falls back to HTTP if that is unavailable: Chromium Blog: A safer default for navigation: HTTPS.

      Unfortunately, I can't see a way to use this from QtWebEngine: It needs a QUrl, and QUrl.fromUserInput("qt.io") results in http://qt.io (which is probably okay in the context of a generic QUrl).

      I tried url.setScheme("") and thus loading //qt.io, but that simply results in about:blank being loaded.

      I suppose either that should work, or perhaps QWebEngineView/Page::load() or QWebEngineHttpRequest could have a way to pass an user input as string, which is then handled according to Chromium's rules.

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

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

              Created:
              Updated:

                There are no open Gerrit changes