2010-10-11 Joseph Pecoraro <joepeck@webkit.org>
authorJoseph Pecoraro <joepeck@webkit.org>
Mon, 11 Oct 2010 19:03:08 +0000 (19:03 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 24 Jan 2011 21:07:44 +0000 (18:07 -0300)
commit3a5ef1b30efebf5bb4e50ce9914f8b8574ff9810
treea2c085dec8ef8110aa080f39ff1c33882f90e6b7
parent1dc92338a8c1508f00897ace297a368519d894e7
2010-10-11  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Eric Carlson.

        CRASH at WebCore::HTMLSourceElement::scheduleErrorEvent
        https://bugs.webkit.org/show_bug.cgi?id=46777

        Another case that could lead to an improper set of states between
        m_currentNode and m_loadingState. Also added an ASSERT and early
        return to prevent crashes if this case can still happen in other ways.

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::prepareForLoad):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp