Closed Bug 1246439 Opened 8 years ago Closed 8 years ago

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

Categories

(Core :: General, defect)

46 Branch
Unspecified
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: 9bit.overflow, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

183 bytes, text/html
Details
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
OS: Unspecified → Windows 7
Product: Firefox → Core
Could you attach a simple testcase with a html page including a GIF, please.
Flags: needinfo?(9bit.overflow)
Attached file giftest.html (obsolete) —
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)
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>
Attached file 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
Closed: 8 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.

Attachment

General

Creator:
Created:
Updated:
Size: