Bug 255192

Summary: [GTK] Some GIFs fail to load on Reddit main page
Product: WebKit Reporter: Kdwk <kdwkleung>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply, mcatanzaro
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
Attachments:
Description Flags
Screencast showing GIF not loading on main page but only when post is opened
none
The GIF in question
none
Loupe the image viewer is unable to display the GIF none

Description Kdwk 2023-04-08 05:44:04 PDT
Created attachment 465816 [details]
Screencast showing GIF not loading on main page but only when post is opened

On https://www.reddit.com/r/memes/comments/12eog2u/crossgenerational_meme/, the GIF can load when the post is opened but not on the main page itself.

Tested on WebKitGTK 2.40, Gnome Web 44.1
Comment 1 Michael Catanzaro 2023-04-08 06:40:16 PDT
I suppose https://www.reddit.com/r/memes/ would be the link for reproducing the bug with the GIFs not loading, but actually they do load for me when I view that page....
Comment 2 Kdwk 2023-04-08 06:47:11 PDT
Created attachment 465817 [details]
The GIF in question
Comment 3 Kdwk 2023-04-08 06:48:28 PDT
Created attachment 465818 [details]
Loupe the image viewer is unable to display the GIF

Loupe the image viewer reports that the GIF has a malformed GIF header and is not able to open the file. EOG could not open the GIF either.
Comment 4 Kdwk 2023-04-08 06:49:45 PDT
However, the GIF was able to play when Epiphany opens the URL I downloaded the GIF from, https://preview.redd.it/6nv9i3ucahsa1.gif?format=mp4&v=enabled&s=2488375b3a897f877b62c50d40bd123b738ef883
Comment 5 Michael Catanzaro 2023-04-08 15:51:13 PDT
Well there's a hint right there in the URL. It's an MP4 with a .gif file extension for some reason.