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

[whatwg] Blacklist for regsiterProtocolHandler()

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 19 Apr 2011 11:29:17 -0700
Message-ID: <BANLkTimXtOqzM_89BVgP3XoeyghzLnVYHw@mail.gmail.com>
On Tue, Apr 19, 2011 at 11:11 AM, Lachlan Hunt <lachlan.hunt at lachy.id.au> wrote:
> I'm also curious how we could handle ISBN URNs, like:
>
> ?urn:isbn:0-395-36341-1
>
> That would be useful to have a web service that could look up the ISBN and
> direct users to information about the book, or to an online store.
>
> As currently specified, services have to register a handler for "urn", even
> if they only handle ISBN URNs. ?The other alternative would be to mint a new
> web+isbn scheme, which seems suboptimal.

Presumably we can specifically whitelist "urn:isbn" as a scheme to
support (and adjust the algorithm sufficiently to make this do what's
intended)?  Are there other nested urn: schemes that we could expose?
If so, we could just make the whole class of "urn:*" protocols
available.


>> So e.g. we could whitelist any protocol starting with "web+" and then
>> register that as a common extension point for people inventing protocols
>> for use with this feature, so that people writing OS-native apps would
>> know that if they used a protocol with that prefix it's something that any
>> web site could try to take over.

Sounds good.

~TJ
Received on Tuesday, 19 April 2011 11:29:17 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:03 GMT