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

[Android] WebView cannot open local file (net::ERR_ACCESS_DENIED)

    XMLWordPrintable

Details

    • Android
    • f80cd0f766 (qt/tqtc-qtwebview/5.15) f80cd0f766 (qt/tqtc-qtwebview/5.15.11) be675d372 (6.5)

    Description

      WebView fails to show a page which URL is read from a local file.
      The following error is output.

      net::ERR_ACCESS_DENIED to 
      file:///data/user/0/com.steinberg.cubasis3/files/help/in-app/View.html
      

      This happens with Android targetSdkVersion 30. It works fine with 29.

      This might be a result of Android changing a behavior.
      Reference : https://developer.android.com/reference/android/webkit/WebSettings#setAllowFileAccess(boolean)

      How to reproduce

      Attachments

        1. minibrowser_qtbug97487_updated-5-15-11.zip
          152 kB
          Lars Slowak
        2. minibrowser_qtbug97487.zip
          130 kB
          Nahomi Gröhn

        Issue Links

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

          Activity

            People

              stromme Christian
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes