Changeset 45537 in webkit


Ignore:
Timestamp:
Jul 3, 2009 1:54:24 PM (15 years ago)
Author:
Simon Fraser
Message:

2009-07-03 Simon Fraser <Simon Fraser>

Reviewed by Sam Weinig.

Background audio stops playing when JS GC runs
https://bugs.webkit.org/show_bug.cgi?id=26956

Ensure we keep the Audio object around while it is playing, so that it
doesn't get collected.

Not testable because there's no way to know whether the audio keeps
playing without holding a reference to it.

  • bindings/js/JSDOMBinding.cpp: (WebCore::isObservableThroughDOM):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r45535 r45537  
     12009-07-03  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Reviewed by Sam Weinig.
     4
     5        Background audio stops playing when JS GC runs
     6        https://bugs.webkit.org/show_bug.cgi?id=26956
     7       
     8        Ensure we keep the Audio object around while it is playing, so that it
     9        doesn't get collected.
     10       
     11        Not testable because there's no way to know whether the audio keeps
     12        playing without holding a reference to it.
     13
     14        * bindings/js/JSDOMBinding.cpp:
     15        (WebCore::isObservableThroughDOM):
     16
    1172009-07-02  Xan Lopez  <xlopez@igalia.com>
    218
  • trunk/WebCore/bindings/js/JSDOMBinding.cpp

    r44916 r45537  
    3333#include "ExceptionCode.h"
    3434#include "Frame.h"
     35#include "HTMLAudioElement.h"
    3536#include "HTMLImageElement.h"
    3637#include "HTMLScriptElement.h"
     
    289290        if (node->hasTagName(scriptTag) && !static_cast<HTMLScriptElement*>(node)->haveFiredLoadEvent())
    290291            return true;
     292#if ENABLE(VIDEO)
     293        if (node->hasTagName(audioTag) && !static_cast<HTMLAudioElement*>(node)->paused())
     294            return true;
     295#endif
    291296    }
    292297
Note: See TracChangeset for help on using the changeset viewer.