Re: [w3ctag/design-reviews] Other Spec Review: local+ prefix for URI schemes (Issue #1316)

david-risney left a comment (w3ctag/design-reviews#1316)

This feature is not shipping yet - sorry for any confusion!

The idea is to allow apps to mark their app protocol URL schemes as not intended to be invoked from the web. There's two main pieces:

| CL | Feature flag | Current default |
| --- | --- | --- |
| 1. [CL 8382199 — Block web-initiated local+ external protocol launches](https://chromium-review.googlesource.com/c/chromium/src/+/8382199) | kLocalOnlyAppProtocolPrefix | Disabled by default |
| 2. [CL 8588703 — Block web-initiated Windows LocalOnly protocol launches](https://chromium-review.googlesource.com/c/chromium/src/+/8588703) | kLocalOnlyAppProtocolWindows | Disabled by default; Windows-only |

([Design doc](https://docs.google.com/document/d/1aaRYjRwqMEW6agAz1m6tPaCefdKJPqv8FBcZTKJUqNs/edit?tab=t.izuz9sw7wnqb#heading=h.jl1rd0gxjqu2))

In (1) browsers check for a 'local+' URI prefix and block app protocol launches and in (2) browsers check for OS specific URL registration metadata and block app protocol launches.

> It's not something that can be done unilaterally without a lot of consultation.

Agreed!

> This requires a syntax reservation in the scheme part of URIs.

I had imagined this similar to the `web+` URI prefix for [registerProtocolHandler](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler). Its not a carve out of URI scheme names globally, but specific to browsers launching URIs via the OS.

> The receiving end also needs to change to flag that the target is potentially sensitive. In the proposal, that involves changing the scheme, which is probably the least compatible option imaginable.

Right, (1) URI prefix is more useful for apps with new URI schemes.

> In an alternative, this is an annotation passed to the operating system when registering a scheme handler; call that a "trusted only" flag.

Yes, (2) is better for apps with an existing URI scheme where it is likely not practical to change it.

We have both approaches because while (2) works for both new and existing URI schemes it requires per-OS registration, different for each OS, and that the OS supports such a feature. Whereas for (1) there's one way to do it that works across browsers.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3ctag/design-reviews/issues/1316#issuecomment-7321813770
You are receiving this because you are subscribed to this thread.

Message ID: <w3ctag/design-reviews/issues/1316/7321813770@github.com>

Received on Tuesday, 1 December 2026 18:56:14 UTC