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

marking qrc as local scheme (avoiding "deprecated on insecure origins" warnings)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.0
    • 5.6
    • WebEngine
    • None
    • 3f0c78f0f688458fa1aac448dcfbb672ed3d066e

    Description

      Trying to use navigator.geolocation.getCurrentPosition(), navigator.webkitGetUserMedia ... from qrc:/ URL prints a console warning

      getCurrentPosition() and watchPosition() are deprecated on insecure origins, and support will be removed in the future. You should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
      

      We could avoid this warning by marking the 'qrc' scheme as either a local or secure scheme (see blink::WebSecurityPolicy, blink::SchemeRegistry).

      Anyhow, marking them as local would restrict access to it from web pages, since "normal pages cannot link to or access URLs from this scheme". This might be a good thing to do in general, but might break existing applications.

      Attachments

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

        Activity

          People

            kkohne Kai Köhne
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes