Bug 230970 - MediaSource SourceBuffer never fires any event beyond updatestart
Summary: MediaSource SourceBuffer never fires any event beyond updatestart
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-09-29 10:49 PDT by Sam Sneddon [:gsnedders]
Modified: 2021-09-29 11:02 PDT (History)
2 users (show)

See Also:


Attachments
testcase (but needs file from WPT) (1.44 KB, text/html)
2021-09-29 10:49 PDT, Sam Sneddon [:gsnedders]
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.