W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] Proposal to extend registerProtocolHandler

From: Robert O'Callahan <robert@ocallahan.org>
Date: Thu, 7 Jul 2011 12:53:42 +1200
Message-ID: <CAOp6jLan-TFU1H_n1J_X2BOvNBEWNu6bf1UY6hSr=yk_CMHwJQ@mail.gmail.com>
On Thu, Jul 7, 2011 at 12:53 PM, Robert O'Callahan <robert at ocallahan.org>wrote:

> On Thu, Jul 7, 2011 at 6:41 AM, Olli Pettay <Olli.Pettay at helsinki.fi>wrote:
>
>> On 07/06/2011 07:51 AM, Robert O'Callahan wrote:
>>
>>> I don't think browsers need to prompt for registerProtocolHandler.
>>> Instead,
>>> I would simply allow any site to register as a protocol handler for
>>> almost
>>> anything, and remember all such registration
>>>
>>
>> So all the ad sites (which are embedded via iframe or something) would
>> just register all the possible protocols so that some user might
>> accidentally use their site for protocol handling - especially if the site
>> was the first one to register the protocol.
>> Doesn't sound too good.
>>
>
> I think you could sequester the new app options sufficiently that that
> would not be worth doing.
>

You could also just deny all registerProtocolHandler() attempts from
non-toplevel frames.

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not in
us. If we confess our sins, he is faithful and just and will forgive us our
sins and purify us from all unrighteousness. If we claim we have not sinned,
we make him out to be a liar and his word is not in us." [1 John 1:8-10]
Received on Wednesday, 6 July 2011 17:53:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC