Skip to content

Commit

Permalink
REGRESSION(268393@main): [ macOS wk2 ] http/tests/media/video-webm-st…
Browse files Browse the repository at this point in the history
…all.html is constantly timing out.

https://bugs.webkit.org/show_bug.cgi?id=262604
rdar://116443613

Reviewed by Youenn Fablet.

Once loading had started, the WebM player would continuously returned true
in didLoadingProgress(), by-passing the network stalling detection.
We needed the returned value to change back to false so that it only returns
true if we did do progress.

Covered by existing test being re-enabled.

* LayoutTests/platform/mac-wk2/TestExpectations:
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.h:
* Source/WebCore/platform/graphics/cocoa/MediaPlayerPrivateWebM.mm:
(WebCore::MediaPlayerPrivateWebM::didLoadingProgress const):

Canonical link: https://commits.webkit.org/268982@main
  • Loading branch information
jyavenard committed Oct 6, 2023
1 parent 6c8fe3a commit 6498f1b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion LayoutTests/platform/mac-wk2/TestExpectations
Original file line number Diff line number Diff line change
Expand Up @@ -1689,7 +1689,6 @@ webkit.org/b/255407 [ Monterey x86_64 ] imported/w3c/web-platform-tests/html/sem
[ BigSur Monterey ] fast/images/animated-heics-draw.html [ Skip ]
[ Ventura+ ] fast/images/animated-heics-draw.html [ Pass Timeout ]
[ Ventura+ ] http/tests/resourceLoadStatistics/capped-lifetime-for-cookie-set-in-js.html [ Failure ]
[ Monterey+ ] http/tests/media/video-webm-stall.html [ Timeout ] # re-evaluate after webkit.org/b/262604 is resolved.
[ Monterey+ ] streams/readable-stream-default-controller-error.html [ Pass Crash ]
[ Monterey+ ] fast/repaint/fixed-move-after-keyboard-scroll.html [ Pass Failure Timeout ]
[ Monterey+ x86_64 ] http/tests/media/hls/track-in-band-hls-metadata-cue-duration.html [ Pass Failure ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class MediaPlayerPrivateWebM
bool m_hasVideo { false };
bool m_hasAvailableVideoFrame { false };
bool m_visible { false };
bool m_loadingProgressed { false };
mutable bool m_loadingProgressed { false };
bool m_loadFinished { false };
bool m_parsingSucceeded { true };
bool m_processingInitializationSegment { false };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ static bool isCopyDisplayedPixelBufferAvailable()

bool MediaPlayerPrivateWebM::didLoadingProgress() const
{
return m_loadingProgressed;
return std::exchange(m_loadingProgressed, false);
}

RefPtr<NativeImage> MediaPlayerPrivateWebM::nativeImageForCurrentTime()
Expand Down

0 comments on commit 6498f1b

Please sign in to comment.