Entry added to allowedNavigations
for the WebViewAssetLoader
disregards logic from preferences
#1343
Closed
3 tasks done
Bug Report
The change that adds an entry to
allowedNavigations
for the addedWebViewAssetLoader
disregards logic from preferences.Problem
The problem is in the change introduced here: #1275
The
CordovaPreferences
object is never filled, so it has no keys/values. Therefore lines 87 and 88 in the diff above always use the default values.In the end, no matter the values of preferences
AndroidInsecureFileModeEnabled
andhostname
,https://localhost
is always added to theallowedNavigations
.What is expected to happen?
Only when
AndroidInsecureFileModeEnabled
is false, should an entry be added toallowedNavigations
. That entry must use the value fromhostname
when provided.At least it was what I could gather from the code.
What does actually happen?
https://localhost
is always added to theallowedNavigations
, and no entry based onhostname
is added.Version information
Cordova-android 10.1.0
Checklist
The text was updated successfully, but these errors were encountered: