Changeset 68682 in webkit


Ignore:
Timestamp:
Sep 29, 2010 1:56:32 PM (14 years ago)
Author:
Joseph Pecoraro
Message:

2010-09-29 Joseph Pecoraro <Joseph Pecoraro>

Reviewed by Simon Fraser.

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

It should not be possible to get to be in the LoadingFromSourceElement
state with a null current source node. This was a possible scenario
where the current source node was cleared but the load state was not
cleared as well. Tried and could not create a test case for this.

  • html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::userCancelledLoad): clear the load state because we also clear the current source node.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r68681 r68682  
     12010-09-29  Joseph Pecoraro  <joepeck@webkit.org>
     2
     3        Reviewed by Simon Fraser.
     4
     5        CRASH at WebCore::HTMLSourceElement::scheduleErrorEvent
     6        https://bugs.webkit.org/show_bug.cgi?id=46777
     7
     8        It should not be possible to get to be in the LoadingFromSourceElement
     9        state with a null current source node. This was a possible scenario
     10        where the current source node was cleared but the load state was not
     11        cleared as well. Tried and could not create a test case for this.
     12
     13        * html/HTMLMediaElement.cpp:
     14        (WebCore::HTMLMediaElement::userCancelledLoad): clear the load state because we also clear the current source node.
     15
    1162010-09-29  David Hyatt  <hyatt@apple.com>
    217
  • trunk/WebCore/html/HTMLMediaElement.cpp

    r68181 r68682  
    19981998#endif
    19991999    stopPeriodicTimers();
     2000    m_loadState = WaitingForSource;
    20002001
    20012002    // 2 - Set the error attribute to a new MediaError object whose code attribute is set to MEDIA_ERR_ABORTED.
Note: See TracChangeset for help on using the changeset viewer.