News for hackers. Stuff that matters.
Re:Inventing Favicon.ico by TazeTSchnitzel on Sunday March 29, 2015 @07:21PM (#9286886)
> The icon definition hasn't expanded with its new scope, so specifying low, medium, and high definition formats is left up to server hacks

Not really. The Windows icon format .ico did "responsive design" before the term was even coined. It supports multiple sizes and bit depths (remember Windows used to have to support everything from 1-bit to 24-bit colour) stored within a single file.

> There's no way of in-lining the icon (e.g. for single page applications, appliances, etc).

Huh? <link rel="shortcut icon"> works with data: URIs just like everything else. For example, my personal site uses one: http://ajf.me/

Source code:

  <link rel="shortcut icon" href="data:image/x-icon;base64,AAABAAEAEBACAAEAAQCwAAAAFgAAACgAAAAQAAAAIAAAAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP//AAD+fwAA/38AAP9/AADFbwAAuW8AAL1vAADBbwAA/W8AAL1vAADDQwAA/+8AAP9vAAD/8wAA//8AAP//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA">
> Apple now has their own incompatible favicon "apple-touch-icon" which is just a higher resolution favicon.

This is mostly true, but I guess they wanted to avoid scaling up 16x16 favicons into a blurry mess on iOS, so made icons specially tailored for the iOS homescreen into their own category.

> They can be used to trick less technical users into believing a HTTP site is a HTTPS one. For example make the favicon a green padlock. This is mostly a browser issue, and may be resolved by marking all HTTP sites as insecure (which some have proposed).

This could be solved in future by allowing them only for HTTPS sites :D

Re:Inventing Favicon.ico by KMag on Monday March 30, 2015 @04:58AM (#9288385)
> This could be solved in future by allowing them only for HTTPS sites :D

Ooh... this would be a good first step in gradually introducing marking all HTTP connections as insecure, similar to how Chrome is gradually deprecating SHA-1 certificates:

(1) Stop showing favicons for HTTP connections

(2) Start showing a cautionary icon (perhaps a yellow triangle containing an exclamation point) for HTTP sites and self-signed HTTPS sites

(3) Start showing a scarier looking warning for HTTP sites, but leave a cautionary warning for self-signed certs

(4) Start showing a cautionary icon for connections not using perfect forward secrecy

With Ed25519, Curve25519 and ChaCha20, the computational overhead for perfect forward secrecy has come down significantly.

Now if only we had a good standard for in-browser support of one or more password-authenticated key-agreement (PAKE)[1] algorithms for password input fields so that websites never held passwords. (This could be done via adding an extra attribute to the password input tag, so older browsers would submit the password, and newer browsers would perform PAKE verification.)

Hey, a guy can dream.

[1] https://en.wikipedia.org/wiki/Password-authenticated_key_agr...

Re:Inventing Favicon.ico by zamalek on Monday March 30, 2015 @04:28AM (#9288259)
> This is mostly true, but I guess they wanted to avoid scaling up 16x16 favicons into a blurry mess on iOS, so made icons specially tailored for the iOS homescreen into their own category.

Vista introduced dumping pngs directly into icos[1].

I think Apple went this route to avoid having to download the ico as it contains multiple images and is hence quite a bit larger than the e.g. single 57x57 png you are looking for.

[1]: https://msdn.microsoft.com/en-us/library/dn742485.aspx

Re:Inventing Favicon.ico by talideon on Monday March 30, 2015 @08:36AM (#9289048)
The downside of .ico files is that the format doesn't support compression, so those files can get quite big.
Re:Inventing Favicon.ico by cornstalks on Monday March 30, 2015 @09:35AM (#9289358)
Yes they do. You can put PNG encoded images into an ICO format container.
Re:Inventing Favicon.ico by talideon on Monday March 30, 2015 @01:06PM (#9290880)
Only as of Windows Vista, and how well supported are ICO-wrapped-PNGs in browsers?
Re:Inventing Favicon.ico by cben on Friday April 03, 2015 @08:12AM (#9315416)
Does it matter much given HTTP compression?
[dead]
Re:Inventing Favicon.ico by DanBC on Monday March 30, 2015 @04:29AM (#9288267)
Please put four spaces in front of that very long unbroken line.
Re:Inventing Favicon.ico by ChoGGi on Monday March 30, 2015 @04:02AM (#9288166)
Re:Inventing Favicon.ico by oneeyedpigeon on Monday March 30, 2015 @04:00AM (#9288161)
Down voted for breaking the site. Not that it helps...