Bug 1146611 - Prompt for opening anything that can be opened#303
Bug 1146611 - Prompt for opening anything that can be opened#303wesj merged 1 commit intomozilla-mobile:masterfrom
Conversation
There was a problem hiding this comment.
I don't like this. I think we should follow what Safari does for at least a few specific url schemes:
telshows an alert: +1234567890 Cancel / Callsmsopens the SMS app directly (no harm because nothing happens until you confirm there)facetimeshows an alert: myapple@id.com Cancel / FaceTime- There is also a special case for App Store links (there are a ton of special links) that we should handle in a non-generic way I think?
For other schemes i think it is good to show something generic.
There was a problem hiding this comment.
I'm fine doing those things. Android has a whitelist for things to not prompt for (including SMS). I'm a little nervous about the app store links (i.e. Its a lot easier to get back to Safari from the store than it is to get back to Firefox), and we shouldn't need them (i.e. the App Store redirects to itms:// urls, but apparently they do it incorrectly sometimes).
I'll file some follow ups for this stuff though. This gets us to the point where everything should work (except the evil app store links that aren't using itms://).
Bug 1146611 - Prompt for opening anything that can be opened
I think we should probably just do something like this (and then get less restrictive from here). i.e. If there's something installed that can open the url, Prompt the user to open with it.