| Index: Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp
|
| index 385f7ee088b0d2f72e17a66f06fe6ff430d477e0..04a33cbcb3dfcf348fb3894d54ee0b6efa296e2d 100644
|
| --- a/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/Source/core/html/HTMLMediaElement.cpp
|
| @@ -2721,6 +2721,9 @@ void HTMLMediaElement::sourceWasAdded(HTMLSourceElement* source)
|
| if (m_nextChildNodeToConsider)
|
| return;
|
|
|
| + if (m_loadState != WaitingForSource)
|
| + return;
|
| +
|
| // 4.8.9.5, resource selection algorithm, source elements section:
|
| // 21. Wait until the node after pointer is a node other than the end of the list. (This step might wait forever.)
|
| // 22. Asynchronously await a stable state...
|
|
|