Bug 230970

Summary: MediaSource SourceBuffer never fires any event beyond updatestart
Product: WebKit Reporter: Sam Sneddon [:gsnedders] <gsnedders>
Component: MediaAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
testcase (but needs file from WPT) none

Description Sam Sneddon [:gsnedders] 2021-09-29 10:49:23 PDT
Created attachment 439627 [details]
testcase (but needs file from WPT)

Loading the attached test over HTTPS from the web-platform-test server/directory gives:

Resource fetch success
[object MediaSource]: sourceopen
[object SourceBuffer]: updatestart

This isn't an acceptable output, as far as I can tell; there should always be an updateend event (and either an update or error event between them). This is causing a fair few WPT tests to timeout in Safari, so this would be good to improve.
Comment 1 Radar WebKit Bug Importer 2021-09-29 10:49:33 PDT
<rdar://problem/83678497>
Comment 2 Jer Noble 2021-09-29 11:02:12 PDT
This is (currently) expected behavior. The file in question is encrypted, and the parser is stalled waiting for the page to handle the generated "encrypted" event. I suspect that the stalling WPT tests in question are EME tests, and there is no EME test support for FairPlay encryption, which is the only CDM Cocoa-ports support.