Bug 242212 - REGRESSION(251564@main-251572@main?): [ Mac wk2 ] media/media-source/media-webm-vorbis-partial.html is a constant failure
Summary: REGRESSION(251564@main-251572@main?): [ Mac wk2 ] media/media-source/media-we...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-06-30 15:51 PDT by Hercules Hjalmarsson
Modified: 2022-09-19 09:39 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hercules Hjalmarsson 2022-06-30 15:51:50 PDT
media/media-source/media-webm-vorbis-partial.html

Is a constant text failure on Monterey WK2.

HISTORY:
https://results.webkit.org/?suite=layout-tests&test=media%2Fmedia-source%2Fmedia-webm-vorbis-partial.html

DIFF:
--- /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK2-Tests/build/layout-test-results/media/media-source/media-webm-vorbis-partial-expected.txt
+++ /Volumes/Data/worker/Apple-Monterey-Release-AppleSilicon-WK2-Tests/build/layout-test-results/media/media-source/media-webm-vorbis-partial-actual.txt
@@ -2,21 +2,9 @@
 RUN(video.src = URL.createObjectURL(source))
 EVENT(sourceopen)
 RUN(sourceBuffer = source.addSourceBuffer(loader.type()))
+NotSupportedError: The operation is not supported.
 RUN(sourceBuffer.appendBuffer(loader.initSegment()))
-EVENT(update)
-Divide the first media segment in two.
-RUN(partial1 = loader.mediaSegment(0).slice(0, loader.mediaSegment(0).byteLength / 2))
-RUN(partial2 = loader.mediaSegment(0).slice(loader.mediaSegment(0).byteLength / 2))
-Append a partial media segment.
-RUN(sourceBuffer.appendBuffer(partial1))
-EVENT(update)
-EXPECTED (sourceBuffer.buffered.length == '1') OK
-EXPECTED (sourceBuffer.buffered.end(0).toFixed(2) == '0.64') OK
-Complete the partial media segment.
-RUN(sourceBuffer.appendBuffer(partial2))
-EVENT(update)
-EXPECTED (sourceBuffer.buffered.length == '1') OK
-EXPECTED (sourceBuffer.buffered.end(0).toFixed(2) == '1.34') OK
-EXPECTED (sourceBuffer.buffered.end(0) == source.duration == 'true') OK
+TypeError: undefined is not an object (evaluating 'sourceBuffer.appendBuffer')
+Caught exception: "TypeError: undefined is not an object (evaluating 'element.addEventListener')" FAIL
 END OF TEST

DIFF URL:
https://build.webkit.org/results/Apple-Monterey-Release-AppleSilicon-WK2-Tests/251572@main%20(3774)/media/media-source/media-webm-vorbis-partial-diff.txt
Comment 1 Radar WebKit Bug Importer 2022-06-30 15:52:23 PDT
<rdar://problem/96251821>
Comment 2 Hercules Hjalmarsson 2022-06-30 17:40:30 PDT
I was able to reproduce this issue at Monterey production ToT by running:

run-webkit-tests media/media-source/media-webm-vorbis-partial.html

I was not able to narrow down the regression to a specific build due to not having sufficient builds available to test on within the regression range. However, I was able to narrow down possible commits that may have caused the issue to three separate commits:

https://commits.webkit.org/251565@main
https://commits.webkit.org/251570@main
https://commits.webkit.org/251568@main
Comment 3 Hercules Hjalmarsson 2022-06-30 18:20:05 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1973
Comment 4 EWS 2022-06-30 18:24:15 PDT
Test gardening commit 252023@main (22240adcfea4): <https://commits.webkit.org/252023@main>

Reviewed commits have been landed. Closing PR #1973 and removing active labels.
Comment 5 EWS 2022-09-19 09:13:16 PDT
Test gardening commit 254632@main (9b8b03c3754c): <https://commits.webkit.org/254632@main>

Reviewed commits have been landed. Closing PR #4487 and removing active labels.