2009-06-04 Pierre d'Herbemont <pdherbemont@apple.com>
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2009 16:04:07 +0000 (16:04 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 4 Jun 2009 16:04:07 +0000 (16:04 +0000)
commitdf7ea77a8f33578084aedad89ba4e387d9208955
treee914a0588bb3f50fbc6054c5b369ef3ed0b788c1
parent66ce899547f08b68ac632b768e0745d6ac8a26e9
2009-06-04  Pierre d'Herbemont  <pdherbemont@apple.com>

        Reviewed by Darin Adler.

        Test: media/before-load-member-access.html

        https://bugs.webkit.org/show_bug.cgi?id=26081

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::played): Ensure that if m_playedTimeRanges,
        is not initialized we return a valid range, and don't attempt to use it.

2009-06-04  Pierre d'Herbemont  <pdherbemont@apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=26081

        * media/before-load-member-access-expected.txt: Added.
        * media/before-load-member-access.html: Test access for property accessed before
        loading occurs. That tests for 26081 crasher specifically.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@44415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/before-load-member-access-expected.txt [new file with mode: 0644]
LayoutTests/media/before-load-member-access.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/html/HTMLMediaElement.cpp