Changeset 245773 in webkit


Ignore:
Timestamp:
May 25, 2019 9:41:55 AM (5 years ago)
Author:
youenn@apple.com
Message:

media/video-remote-control-playpause.html is timing out after r245712
https://bugs.webkit.org/show_bug.cgi?id=198238

Reviewed by Eric Carlson.

Source/WebCore:

Fix regression introduced in r245712.
Covered by test no longer timing out.

  • platform/audio/PlatformMediaSessionManager.cpp:

(WebCore::PlatformMediaSessionManager::sessionWillEndPlayback):

LayoutTests:

  • platform/mac/TestExpectations:

Removed old flaky expectation that is no longer valid according dashboard.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r245772 r245773  
     12019-05-25  Youenn Fablet  <youenn@apple.com>
     2
     3        media/video-remote-control-playpause.html is timing out after r245712
     4        https://bugs.webkit.org/show_bug.cgi?id=198238
     5
     6        Reviewed by Eric Carlson.
     7
     8        * platform/mac/TestExpectations:
     9        Removed old flaky expectation that is no longer valid according dashboard.
     10
    1112019-05-25  Simon Fraser  <simon.fraser@apple.com>
    212
  • trunk/LayoutTests/platform/mac/TestExpectations

    r245711 r245773  
    799799webkit.org/b/123099 media/media-controller-time-clamp.html [ Pass Timeout ]
    800800webkit.org/b/123522 media/track/track-in-band-legacy-api.html [ Pass Failure Crash ]
    801 webkit.org/b/130490 media/video-remote-control-playpause.html [ Pass Failure ]
    802801webkit.org/b/131855 media/event-attributes.html [ Pass Failure Timeout ]
    803802webkit.org/b/133363 media/video-rtl.html [ Pass ImageOnlyFailure ]
  • trunk/Source/WebCore/ChangeLog

    r245772 r245773  
     12019-05-25  Youenn Fablet  <youenn@apple.com>
     2
     3        media/video-remote-control-playpause.html is timing out after r245712
     4        https://bugs.webkit.org/show_bug.cgi?id=198238
     5
     6        Reviewed by Eric Carlson.
     7
     8        Fix regression introduced in r245712.
     9        Covered by test no longer timing out.
     10
     11        * platform/audio/PlatformMediaSessionManager.cpp:
     12        (WebCore::PlatformMediaSessionManager::sessionWillEndPlayback):
     13
    1142019-05-25  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp

    r245712 r245773  
    247247{
    248248    ALWAYS_LOG(LOGIDENTIFIER, session.logIdentifier());
    249    
     249
    250250    if (m_sessions.size() < 2)
    251251        return;
     
    255255    for (size_t i = 0, size = m_sessions.size(); i < size; ++i) {
    256256        const auto& oneSession = *m_sessions[i];
    257         if (&oneSession == &session) {
     257        if (&oneSession == &session)
    258258            pausingSessionIndex = i;
     259        else if (oneSession.state() == PlatformMediaSession::Playing)
     260            lastPlayingSessionIndex = i;
     261        else
    259262            break;
    260         }
    261         if (oneSession.state() == PlatformMediaSession::Playing) {
    262             lastPlayingSessionIndex = i;
    263             break;
    264         }
    265         if (oneSession.state() != PlatformMediaSession::Playing)
    266             break;
    267     }
     263    }
     264
    268265    if (lastPlayingSessionIndex == notFound || pausingSessionIndex == notFound)
    269266        return;
    270    
     267
    271268    if (pausingSessionIndex > lastPlayingSessionIndex)
    272269        return;
     
    274271    m_sessions.remove(pausingSessionIndex);
    275272    m_sessions.append(makeWeakPtr(session));
    276    
     273
    277274    ALWAYS_LOG(LOGIDENTIFIER, "session moved from index ", pausingSessionIndex, " to ", lastPlayingSessionIndex);
    278275}
Note: See TracChangeset for help on using the changeset viewer.