Fix lock up issue in TizenWinset widget
authoreojin.ham <eojin.ham@samsung.com>
Wed, 17 Jul 2013 14:41:52 +0000 (23:41 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 17 Jul 2013 14:49:45 +0000 (14:49 +0000)
[Title] Fix lock up issue in TizenWinset widget.
[Problem] N_SE-46482
          Lock up occur when enter and exit page has specific audio tag.
[Cause] Source of <audio> element is Video file.
        But it doesn't suspended because it is audio tag and this app support background mode.
[Solution] Suspend <audio> element if it has video source.

Change-Id: I9a30828e155bf433e2d8dbe8264f3031d82f9d0c

Source/WebCore/html/HTMLMediaElement.cpp

index 72db174..118c94d 100755 (executable)
@@ -4789,7 +4789,7 @@ bool HTMLMediaElement::shouldSuspendMedia()
     if (!m_player)
         return false;
 
-    if (isVideo())
+    if (isVideo() || hasVideo())
         return true;
 
 #if ENABLE(TIZEN_EXTENSIBLE_API)