Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.6, 6.2
-
-
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
- Use minibrowser_qtbug97487.zip
- If you change targetSdkVersion to 29 in build.gradle, it works.
Attachments
Issue Links
- is duplicated by
-
QTBUG-108087 Android SDK31 WebView не отображает локальные файлы «ERR_ACCESS_DENIED»
- Closed
For Gerrit Dashboard: QTBUG-97487 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
401659,7 | Android: Make is possible to change setAllowFileAccess() | dev | qt/qtwebview | Status: DEFERRED | 0 | 0 |
416797,14 | Add settings API for QtWebView | dev | qt/qtwebview | Status: MERGED | +2 | 0 |
417034,8 | Android: Make is possible to change setAllowFileAccess() | tqtc/lts-5.15 | qt/tqtc-qtwebview | Status: MERGED | +2 | 0 |