[Webkit-unassigned] [Bug 35992] Crash at MediaPlayer::duration()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 11 08:12:23 PST 2010


Eric Carlson <eric.carlson at apple.com> changed:

           What    |Removed                     |Added
  Attachment #50463|review?, commit-queue?      |review-
               Flag|                            |

--- Comment #3 from Eric Carlson <eric.carlson at apple.com>  2010-03-11 08:12:23 PST ---
(From update of attachment 50463)
>  float HTMLMediaElement::duration() const
>  {
> -    if (m_readyState >= HAVE_METADATA)
> +    if (m_player && m_readyState >= HAVE_METADATA)
>          return m_player->duration();

While this is a sensible change, it shouldn't be necessary to prevent this
crash because m_readyState should be HAVE_NOTHING if m_player is NULL. I
haven't looked, but I suspect there are more problems waiting to be discovered
when the the player has been destroyed and the state hasn't been reset.Can you
please reset m_readyState and m_networkState to their default values when the
player is destroyed?

> Index: LayoutTests/http/tests/media/video-cancel-load.html

I would *really* like to see this test reformatted to have some structure (text
in the <body>, <script> in <head> etc). I know that many layout tests do not do
this, but I find that it is often much easier to understand what a test is
supposed to do if has some structure.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list