Intent to implement and ship: Disallow some invalid characters from URL host names

78 views
Skip to first unread message

Brett Wilson

unread,
Oct 4, 2016, 3:54:43 PM10/4/16
to blink-dev
Contact email:

Spec:

Bug:

Summary:
Stop supporting certain percent-escaped characters in host names. We currently do this in violation of the spec. This isn't a normal web platform launch, but I'm sending this to blink-dev due to possible compat risk.

Design doc:

Chris Harrelson

unread,
Oct 4, 2016, 8:40:52 PM10/4/16
to Brett Wilson, blink-dev
Hi Brett,

Do you have any data on how often these characters appear in URLs that Chrome attempts to load?

Chris

--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.

Brett Wilson

unread,
Oct 4, 2016, 11:00:51 PM10/4/16
to Chris Harrelson, blink-dev
No, but it would be substantially less than the numbers in the document since most of the bad URLs are from places like unusual blogs. On top of that, most of the URLs with such characters in the hosts are typos on the source page, so knowing the frequency wouldn't tell us much anyway.

Brett

Elliott Sprehn

unread,
Oct 5, 2016, 12:08:06 AM10/5/16
to Brett Wilson, Chris Harrelson, blink-dev

What do other browsers do? This is changing the web facing api which seems like it needs the usual Intent to Ship process.

Brett Wilson

unread,
Oct 5, 2016, 12:57:41 AM10/5/16
to Elliott Sprehn, Chris Harrelson, blink-dev
On Tue, Oct 4, 2016 at 9:07 PM, Elliott Sprehn <esp...@chromium.org> wrote:

What do other browsers do? This is changing the web facing api which seems like it needs the usual Intent to Ship process.

This is discussed in the document.
 
Brett

Elliott Sprehn

unread,
Oct 5, 2016, 1:30:00 AM10/5/16
to Brett Wilson, Chris Harrelson, blink-dev
You should put it in the email and use the standard Intent to Ship template. :)
 
 
Brett


Philip Jägenstedt

unread,
Oct 5, 2016, 4:08:39 AM10/5/16
to Elliott Sprehn, Brett Wilson, Chris Harrelson, blink-dev
From the expected impact part of the doc and the analysis (using what dataset?) the risk here seems fairly low. For some things that already don't work in multiple other browsers the whole intents process is sometimes skipped, but changing how URLs work is scary, so thanks for the paperwork. On that note, can you turn crbug.com/652808 into an OWP launch bug and add a chromestatus.com entry?

Do you have any hunch about what proportion of page loads would have links that will stop working? I'm skeptical of a deprecation message for this as it might be very low signal:noise, but WDYT?

PhistucK

unread,
Oct 10, 2016, 6:17:55 PM10/10/16
to Philip Jägenstedt, Elliott Sprehn, Brett Wilson, Chris Harrelson, blink-dev
According to the document, the risk is limited to non-Windows and non-Android users. That means it is a significantly low risk (since those links are uncommon anyway and there are much less users on those platforms).
(Chrome does not support Windows Vista, XP, 2000 and earlier anyway, on which those links would have worked)


PhistucK

Adam Rice

unread,
Oct 11, 2016, 5:46:17 AM10/11/16
to PhistucK, Philip Jägenstedt, Elliott Sprehn, Brett Wilson, Chris Harrelson, blink-dev
Note in support: there is at least one web-platform-test that fails due to Chrome's behaviour here: http://w3c-test.org/websockets/constructor/002.html

I was planning to do a WebSocket-specific fix,but it would be nice if I didn't have to.

Chris Harrelson

unread,
Nov 9, 2016, 1:18:44 PM11/9/16
to Adam Rice, PhistucK, Philip Jägenstedt, Elliott Sprehn, Brett Wilson, blink-dev
LGTM1

Please make sure there is a chromestatus entry tracking this change. In the future, please also use the official Intent to Ship template; this makes it easier for us to monitor the intents.

Chris

Rick Byers

unread,
Nov 9, 2016, 8:09:03 PM11/9/16
to Chris Harrelson, Adam Rice, PhistucK, Philip Jägenstedt, Elliott Sprehn, Brett Wilson, blink-dev, Anne van Kesteren
LGTM2
Thanks for getting our behavior closer to the URL spec - I know Anne will be happy about this.

Philip Jägenstedt

unread,
Nov 10, 2016, 4:42:42 AM11/10/16
to Rick Byers, Chris Harrelson, Adam Rice, PhistucK, Elliott Sprehn, Brett Wilson, blink-dev, Anne van Kesteren
LGTM3



PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.




Brett Wilson

unread,
Nov 11, 2016, 5:02:33 PM11/11/16
to Chris Harrelson, Adam Rice, PhistucK, Philip Jägenstedt, Elliott Sprehn, blink-dev
On Wed, Nov 9, 2016 at 10:18 AM, Chris Harrelson <chri...@chromium.org> wrote:
LGTM1

Please make sure there is a chromestatus entry tracking this change. In the future, please also use the official Intent to Ship template; this makes it easier for us to monitor the intents.

Reply all
Reply to author
Forward
0 new messages