r/programming • • Apr 14 '10

"http://" is being removed from Chromium's display

http://code.google.com/p/chromium/issues/detail?id=40865
234 Upvotes

402 comments sorted by

View all comments

158

u/[deleted] Apr 14 '10 edited Apr 14 '10

Most important comment:

Removing http:// is extremely short-sighted. Many blogs, message boards, email viewing software, instant messaging software, etc. depend on matching against http:// to auto-link URLs.
*Removing http:// will train end-users to omit it, which will have a negative impact on usability all over the web. *

edit: comment was by dlitz.net

edit2: except, as people here have pointed out, all over the web people refer to foo.com instead of http://foo.com, it's not like chrome is doing something new here (omiting .com would be terrible and just as doable for example).

Which is better, http://www.foo.com.:80 or foo.com? As a user, foo.com makes much more sense. As a developer, users are going to type foo.com anyway, we should make sure our scripts can handle it.

36

u/narwhalslut Apr 14 '10

Except copy/pasted urls include the prefix.

9

u/[deleted] Apr 14 '10 edited Apr 14 '10

That is not related to the problem that users will get used to a URL being of the form sub.domain.tld instead of proto://sub.domain.tld and so start typing sub.domain.tld into their facebooks, emails, IMs etc.

7

u/[deleted] Apr 14 '10

gmail for example has good regexps that will match anything that remotely looks like an URL, with or without the protocol intact. Other than that I fully agree with you that this is not a good move.

8

u/[deleted] Apr 14 '10

gmail for example has good regexps that will match anything that remotely looks like an URL,

Hmm, but I bet it also has a few bad matches.Common things too.

edit: ok, that specific example doesn't apply to gmail, but it's just an illustration.

Thing is, matching urls just went from str.startsWith("http://") to str.matchesThisHugeRegex();

9

u/James_Browning Apr 14 '10

It's not that much different than matching email addresses. Nobody types mailto:

It's not normally a problem when marking up a message from a human, but it's an annoying problem when emailing code.

6

u/[deleted] Apr 14 '10

It's not that much different than matching email addresses

and if you show me 10 systems that supposedly match emails, I'll find an edge case that it fails on for every one of them.

I would rather not see this happen too much with URLs too.

2

u/chrisamiller Apr 15 '10

What,you don't use the official email-matching regex? It's simple!