Re: [w3c/manifest] Adding protocol handlers (#972)

@marcoscaceres commented on this pull request.



> +          The user agent MUST ask for permission when using a protocol
+          handler for the first time. This feature requires user interaction
+          and a script cannot communicate with another application on its

>  In this case, where the registration happens from the manifest, the prompt appears the first time the protocol handler is invoked for a Web app.

Sorry, I'm still having a hard time following. Can you walk me through the set up end-to-end? 

How do I "invoke a protocol handler"? Do I click on a link on some website (appears to be the case from the HTML spec)? 

I'm also confused about this in the HTML spec:

```JS
navigator.registerProtocolHandler('web+soup', 'soup?url=%s')
```

If I can register protocol handlers to do the same thing in HTML using JS, why do we need them in the manifest again? Does this just duplicate the functionality? Or does this work differently or provide some additional functionality that I'm not getting?

Sorry for the dumb questions. I'm just trying to understand.  


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/manifest/pull/972#discussion_r638424054

Received on Tuesday, 25 May 2021 03:21:58 UTC