[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webkit-dev
Subject:    Re: [webkit-dev] Support "registerProtocolHandler" in WebKit2
From:       Gyuyoung Kim <gyuyoung.kim () webkit ! org>
Date:       2015-05-22 4:50:07
Message-ID: CA+94+n4N-z2SYRnrNXfeZX9YXrSAivFwzqbDS2rt8-ctT9aq+g () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


>On the face of it, the registerProtocolHandler API seems more general than
necessary, but the actual spec for it has a whitelist of specific schemes,
most of which seem reasonable for this kind of >purpose:
https://html.spec.whatwg.org/#custom-handlers

Yes, the custom-handlers specification only allows us to use specific
schemes, and current WebCore implementation was implemented based on the
spec.
Current supported schemes are only below,

        "bitcoin", "geo", "im", "irc", "ircs", "magnet", "mailto", "mms",
"news", "nntp", "sip", "sms", "smsto", "ssh", "tel", "urn", "webcal",
"wtai", "xmpp"


>> (I am more dubious of the content handler aspect.)

>Agreed, especially as it requires the service to download the resource
>again. For that use case we need something smarter where you can pass
>along an object/stream of sorts I think.

I also don't want to support the "content handler" feature at the moment.
The feature might be more clear and mature. The patch of Bug 92749 only
supports registerProtocolHandler,
and unregisterProtocolHandler and isProtocolHandlerRegistered are supported
as optional.

 https://bugs.webkit.org/show_bug.cgi?id=92749

Gyuyoung.


On Fri, May 22, 2015 at 12:50 PM, Anne van Kesteren <annevk@annevk.nl>
wrote:

> On Fri, May 22, 2015 at 12:26 PM, Maciej Stachowiak <mjs@apple.com> wrote:
> > (I am more dubious of the content handler aspect.)
>
> Agreed, especially as it requires the service to download the resource
> again. For that use case we need something smarter where you can pass
> along an object/stream of sorts I think.
>
>
> --
> https://annevankesteren.nl/
> _______________________________________________
> webkit-dev mailing list
> webkit-dev@lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-dev
>

[Attachment #5 (text/html)]

<div dir="ltr"><div style="font-size:12.8000001907349px">&gt;On the face of it, the \
registerProtocolHandler API seems more general than necessary, but the actual spec \
for it has a whitelist of specific schemes, most of which seem reasonable for this \
kind of &gt;purpose:<a href="https://html.spec.whatwg.org/#custom-handlers" \
target="_blank">https://html.spec.whatwg.org/#custom-handlers</a></div><div><br></div><div>Yes, \
the custom-handlers specification only allows us to use specific schemes, and current \
WebCore implementation was implemented based on the spec.</div><div>Current supported \
schemes are only below,</div><div><br></div><div><div>            \
&quot;bitcoin&quot;, &quot;geo&quot;, &quot;im&quot;, &quot;irc&quot;, \
&quot;ircs&quot;, &quot;magnet&quot;, &quot;mailto&quot;, &quot;mms&quot;, \
&quot;news&quot;, &quot;nntp&quot;, &quot;sip&quot;, &quot;sms&quot;, \
&quot;smsto&quot;, &quot;ssh&quot;, &quot;tel&quot;, &quot;urn&quot;, \
&quot;webcal&quot;, &quot;wtai&quot;, \
&quot;xmpp&quot;</div></div><div><br></div><div><br></div><div><span class="im" \
style="font-size:12.8000001907349px">&gt;&gt; (I am more dubious of the content \
handler aspect.)<br><br></span><span style="font-size:12.8000001907349px">&gt;Agreed, \
especially as it requires the service to download the resource</span><br \
style="font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px">&gt;again. For that use case we need something \
smarter where you can pass</span><br style="font-size:12.8000001907349px"><span \
style="font-size:12.8000001907349px">&gt;along an object/stream of sorts I \
think.</span><br></div><div><span \
style="font-size:12.8000001907349px"><br></span></div><div><span \
style="font-size:12.8000001907349px">I also don&#39;t want to support the \
&quot;content handler&quot; feature at the moment. The feature might be more clear \
and mature. The patch of Bug 92749 only supports \
registerProtocolHandler,</span></div><div><span \
style="font-size:12.8000001907349px">and unregisterProtocolHandler and \
isProtocolHandlerRegistered are supported as optional.</span></div><div><span \
style="font-size:12.8000001907349px"><br></span></div><div><span \
style="font-size:12.8000001907349px">  </span><a \
href="https://bugs.webkit.org/show_bug.cgi?id=92749" target="_blank" \
style="font-size:12.8000001907349px">https://bugs.webkit.org/show_bug.cgi?id=92749</a><span \
style="font-size:12.8000001907349px"><br></span></div><div><br></div><div>Gyuyoung.</div><div><span \
style="font-size:12.8000001907349px"><br></span></div></div><div \
class="gmail_extra"><br><div class="gmail_quote">On Fri, May 22, 2015 at 12:50 PM, \
Anne van Kesteren <span dir="ltr">&lt;<a href="mailto:annevk@annevk.nl" \
target="_blank">annevk@annevk.nl</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span class="">On Fri, May 22, 2015 at 12:26 PM, Maciej \
Stachowiak &lt;<a href="mailto:mjs@apple.com">mjs@apple.com</a>&gt; wrote:<br> &gt; \
(I am more dubious of the content handler aspect.)<br> <br>
</span>Agreed, especially as it requires the service to download the resource<br>
again. For that use case we need something smarter where you can pass<br>
along an object/stream of sorts I think.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
<a href="https://annevankesteren.nl/" \
target="_blank">https://annevankesteren.nl/</a><br> \
_______________________________________________<br> webkit-dev mailing list<br>
<a href="mailto:webkit-dev@lists.webkit.org">webkit-dev@lists.webkit.org</a><br>
<a href="https://lists.webkit.org/mailman/listinfo/webkit-dev" \
target="_blank">https://lists.webkit.org/mailman/listinfo/webkit-dev</a><br> \
</div></div></blockquote></div><br></div>



_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic