On Mon, Jul 13, 2009 at 9:22 AM, Evan Martin <[email protected]> wrote:

> I think it'd be pretty interesting to fully suspend background tabs,
> but doing it safely is likely tricky.  For example, imagine a page
> that has Javascript that is driving a Flash plugin playing background
> music.


For a common real-life example people want to work, imagine having Pandora
open in a background tab.  People expect it to keep playing music.

> Other things to look at would be timers that fire 'too often', and
> > pausing animated content such as gifs and flash.
>
> Even for stuff like gifs that don't have audio, you could imagine a
> page with a very long animated gif, where I might switch away from the
> tab and expect it to be farther along when I come back.


In fact GIFs do not animate when they're not visible (i.e. in background
tabs), they simply check how much time has elapsed since their last paint
when they become visible again, and spin the GIF forward as necessary to
simulate having been animating the whole time.  (This code went in last
fall.)

PK

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to