Downloading of .webp images in oneboxes is broken

It looks like downloading images in oneboxes is broken. Maybe a recent regression due to changes in onebox or secure media. @vinothkannans Could you take a look please?

Exampe: Oneboxing https://www.samsung.com/us/mobile/galaxy-z-flip doesn’t show an image because the images is loaded over HTTP.

12 Likes

The problem is while downloading the onebox image from URL “http://image-us.samsung.com/SamsungUS/home/samsung-logo-191-1.jpg” it’s returning the file in “.webp” format (samsung-logo-191-1.webp). So we’re unable to download it since the “.webp” file format is not whitelisted in our authorized_extensions site setting.

The favicon is not downloaded since it’s a “.ico” file. Should we allow “ico” files in oneboxes by default?

4 Likes

I wonder if webp only comes because of the use of the Chrome user agent :thinking:

I don’t think so. It’s returning a webp file even when I manually download it in Firefox.

2 Likes

On my version of Firefox (77.0.1 (64-bit) for MacOS), the Accept header in the request for the above URL is:

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

(ie, the browser is asking for a image/webp, if available)

Safari, on the other hand, has an Accept header of:

text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8

and a jpeg is returned by the Samsung webserver. The Onebox displays correctly (with the image) in Safari.

3 Likes