title: safari can't open the specified address because Mac OS X doesn’t recognize Internet addresses starting with
body: <p>We have an app with custom URL scheme, let's say "com.company.app". In a javascript file, we invoke the app by window.location = "com.company.app://";. If the app is not installed, Safari throws the erorr "Safari can't open the specified address..... doesn't recognise Internet addresses starting with 'com.company.app'". This happens only on Safari and not other browsers.</p>
  
  <p>Chrome and Firefox don't throw any errors in similar situation i.e they know that com.company.app is a protocol handler and if the app isn't installed, they don't throw any errors and just continue execution.</p>
  
  <p>Safari thinks that com.company.app is a website and tries to load it instead of trying to open the app.</p>
  
  <p>Note that this happens only when the app is not installed. Works fine with Safari if the app is installed.</p>
  
  <p>I've also tried restarting browsers, restarting machine, removing default app using "Default Apps" app etc.</p>
  
  <p>Safari version: 12.0 (xxxx)
  macOS version : 10.14.x (Mojave)</p>