Oh wow, that's a bit embarrassing :) The urls are now restricted to http and https only. Thanks for noticing!
window.location.href = 'file:///' will return console error: "Not allowed to load local resource"
It might be better to blacklist file:// rather than trying to have a comprehensive whitelist.