Re: [whatwg/fetch] Define data: URLs (#579)

OK, I think my only remaining concern is with variations of ";base64". Current situation as it seems from test results:
* trailing "; base64" is treated as base64 by Chrome and Edge, but not by Firefox and Safari
* trailing ";base64;" is treated as base64 by Chrome, Edge and Safari, but not by Safari.

I did some poking in HTTPArchive.

There were [429 "; base64"](https://bigquery.cloud.google.com/savedquery/762219082167:28afda96f8f04cbeb2673ace72fdc8a8)
* http://www.sixtyflix.com/css/custom.css has this URL which works in Chrome: `data:image/svg+xml; base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmOWYwMCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZjcxMDAiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+`
* http://www.nagshara-farsh.ir/ has the pinterest logo in a data URL SVG, although I can't see it on the site.
* http://m.wenduedu.com/Content/css/weui.css has fonts in data URLs which presumably do work, but not tested.

There were [19 ";base64;"](https://bigquery.cloud.google.com/savedquery/762219082167:aa13dd2332734b2cbfecedc13bd98455).
* https://barra.to.gov.br/topo.js?k=seduc.to.gov.br uses `data:text/html;base64;charset=utf-8,[body]"` in an iframe, and it works in Chrome. But it's not actually a trailing ";base64;", so not exactly the same case. Needs a test!
* http://www.shtraymel.co.il/css/design.css uses `background: url(data:image/svg+xml;base64;[body]);` which I think can't work anywhere because there's no comma.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/579#issuecomment-355277625

Received on Thursday, 4 January 2018 13:07:46 UTC