2011-03-15 Alexis Menard <alexis.menard@openbossa.org>

        Reviewed by Eric Carlson.

        HTMLMediaElement::mediaPlayerPlaybackStateChanged should not change the "public" state of the element
        if it's an internal pause for example.
        https://bugs.webkit.org/show_bug.cgi?id=56374

        In case of an internal pause, the callback from the mediaplayer should be ignored to avoid reflecting the
        change into the DOM.

        No new tests: Verified manually.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@81145 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent fef8f2e9
2011-03-15 Alexis Menard <alexis.menard@openbossa.org>
Reviewed by Eric Carlson.
HTMLMediaElement::mediaPlayerPlaybackStateChanged should not change the "public" state of the element
if it's an internal pause for example.
https://bugs.webkit.org/show_bug.cgi?id=56374
In case of an internal pause, the callback from the mediaplayer should be ignored to avoid reflecting the
change into the DOM.
No new tests: Verified manually.
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::mediaPlayerPlaybackStateChanged):
2011-03-12 Pavel Podivilov <podivilov@chromium.org>
Reviewed by Yury Semikhatsky.
......
......@@ -1920,7 +1920,7 @@ void HTMLMediaElement::mediaPlayerPlaybackStateChanged(MediaPlayer*)
{
LOG(Media, "HTMLMediaElement::mediaPlayerPlaybackStateChanged");
if (!m_player)
if (!m_player || m_pausedInternal)
return;
beginProcessingMediaPlayerCallback();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment