Animated .gif playing outside of viewport will hang process after re-entering viewport

RESOLVED INCOMPLETE

Status

()

Core
General
RESOLVED INCOMPLETE
3 years ago
9 months ago

People

(Reporter: PParrot, Unassigned)

Tracking

46 Branch
Unspecified
Windows 7
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

183 bytes, text/html
Details
(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0
Build ID: 20160205004003

Steps to reproduce:

Open an animated .gif Image and scroll the entire image out of the viewport margins
After some time (Depending on .gif Size, frame number and duration) scroll it back into the viewport


Actual results:

Process hangs for several seconds up to several minutes depending on the time the .gif has been outside of the viewport


Expected results:

.gif re-entering the viewport should start playing either from the last frame in viewport or from the first frame of the animation
(Reporter)

Updated

3 years ago
OS: Unspecified → Windows 7

Updated

3 years ago
Component: Untriaged → Untriaged
Product: Firefox → Core

Comment 1

3 years ago
Could you attach a simple testcase with a html page including a GIF, please.
Flags: needinfo?(9bit.overflow)
(Reporter)

Comment 2

3 years ago
Created attachment 8716783 [details]
giftest.html

A very barebone test case, scroll down to load the gif and then scroll back up top, wait some time (I would suggest more than an hour) and then scroll it back into view.

Epilepsy Warning
Flags: needinfo?(9bit.overflow)
(Reporter)

Comment 3

3 years ago
Comment on attachment 8716783 [details]
giftest.html

><head></head>
><body>
><div id="top">...</div> <div id="emptyspace" style="height: 8000px;">&nbsp;</div> <div id="bottom"><img src=http://i.imgur.com/k9Tvi4t.gif></img></div>
></body>
(Reporter)

Comment 4

3 years ago
Created attachment 8716785 [details]
giftest2.html

I'm sorry, making a mess here

scroll down to load the gif and then scroll back up top, wait some time (I would suggest more than an hour) and then scroll it back into view.

Epilepsy Warning
Attachment #8716783 - Attachment is obsolete: true
Hi PParrot,

I have tested your issue on latest Nightly (47.0a1) build, latest Aurora (46.0a2) build and could not reproduce it. I have ran your provided test case and followed your steps but after an hour when I scrolled back into the viewport, the ".gif" started playing again. 


Firefox: 47.0a1, Build ID: 20160208030244
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0
Firefox: 46.0a2, Build ID: 20160209004008
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

Can you please test this on the latest  Nightly (47.0a1, https://nightly.mozilla.org/) and tell me if this still reproduces for you ? When doing this please use a new fresh Firefox profile, maybe also in safe mode (https://support.mozilla.org/en-US/kb/troubleshoot-and-diagnose-firefox-problems). 

Thanks,
Cosmin.
Flags: needinfo?(9bit.overflow)
Marking this as Resolved: Incomplete due to the lack of response from the reporter.
If anyone can still reproduce it on latest versions, feel free to reopen the issue and provide more information.

Thnaks,
Cosmin.
Status: UNCONFIRMED → RESOLVED
Last Resolved: 2 years ago
Flags: needinfo?(9bit.overflow)
Resolution: --- → INCOMPLETE
Moving from Core::Untriaged to Core::General https://bugzilla.mozilla.org/show_bug.cgi?id=1407598
Component: Untriaged → General
You need to log in before you can comment on or make changes to this bug.