Bug Report
The change that adds an entry to allowedNavigations for the added WebViewAssetLoader 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 and hostname, https://localhost is always added to the allowedNavigations.
What is expected to happen?
Only when AndroidInsecureFileModeEnabled is false, should an entry be added to allowedNavigations. That entry must use the value from hostname when provided.
At least it was what I could gather from the code.
What does actually happen?
https://localhost is always added to the allowedNavigations, and no entry based on hostname is added.
Version information
Cordova-android 10.1.0
Checklist
Bug Report
The change that adds an entry to
allowedNavigationsfor the addedWebViewAssetLoaderdisregards logic from preferences.Problem
The problem is in the change introduced here: #1275
The
CordovaPreferencesobject 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
AndroidInsecureFileModeEnabledandhostname,https://localhostis always added to theallowedNavigations.What is expected to happen?
Only when
AndroidInsecureFileModeEnabledis false, should an entry be added toallowedNavigations. That entry must use the value fromhostnamewhen provided.At least it was what I could gather from the code.
What does actually happen?
https://localhostis always added to theallowedNavigations, and no entry based onhostnameis added.Version information
Cordova-android 10.1.0
Checklist