Bug 253996

Summary: [ManagedMSE] network transfer should be tagged as media between startstreaming/endstreaming events
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: MediaAssignee: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=249569

Description Jean-Yves Avenard [:jya] 2023-03-15 18:12:54 PDT
In bug 249569; we notified the Network Process that network transfer should be tagged as media whenever a MediaSource object was attached to a media element.

A side effect is that all transfers would be tagged as media streaming for the entire lifetime of the MediaSource object.

ManagedMediaSource gives us greater granularity is that we only allow data to be appended to the ManagedSourceBuffer when ManagedMediaSource.streaming is true.

We should only tag traffic as media when ManagedSourceBuffer.streaming is true (which is true between the events startstreaming and endstreaming)
Comment 1 Radar WebKit Bug Importer 2023-03-15 18:13:16 PDT
<rdar://problem/106783581>
Comment 2 Jean-Yves Avenard [:jya] 2023-03-18 23:23:51 PDT
Pull request: https://github.com/WebKit/WebKit/pull/11693
Comment 3 EWS 2023-03-19 18:43:19 PDT
Committed 261850@main (d55ce0bd5ffa): <https://commits.webkit.org/261850@main>

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