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

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

    XMLWordPrintable

    Details

    • Platform/s:
      Android
    • Commits:
      f80cd0f766 (qt/tqtc-qtwebview/5.15) f80cd0f766 (qt/tqtc-qtwebview/5.15.11)

      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

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

          Activity

            People

            Assignee:
            stromme Christian
            Reporter:
            nagrohn Nahomi Gröhn
            Votes:
            9 Vote for this issue
            Watchers:
            12 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are 2 open Gerrit changes