ankon opened a new issue #539: `file://` in allow-navigation crashes on iOS
URL: https://github.com/apache/cordova-ios/issues/539
 
 
   # Bug Report
   
   ## Problem
   
   Using `<allow-navigation href="file://"></allow-navigation>` crashes 
`parseWhitelistUrlForATS` on iOS.
   
   ### What is expected to happen?
   
   "Nothing", as the setting is the default.
   
   ### What does actually happen?
   
   An error that `indexOf` isn't a function on undefined :)
   
   ## Information
   
   
https://github.com/apache/cordova-ios/blob/5e688ca4ddf698fad5d10185f7583dec49abcfe1/bin/templates/scripts/cordova/lib/prepare.js#L1051-L1068
   
   As per the documentation the value `file://` is the default 
(https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-whitelist/),
 but when using that value `!retObject.HostName` is true-ish, but there is no 
`href.pathname`.
   
   ### Version information
   
   cordova-ios 5.0.0.
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to