Bug 230666

Summary: Unify more media-related WebCore source files
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, mmaxfield, philipj, sergio, simon.fraser, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch thorton: review+, ews-feeder: commit-queue-

Description Simon Fraser (smfr) 2021-09-22 21:34:12 PDT
Unify more media-related WebCore source files
Comment 1 Simon Fraser (smfr) 2021-09-22 21:35:40 PDT
Created attachment 439011 [details]
Patch
Comment 2 Tim Horton 2021-09-22 23:11:22 PDT
Comment on attachment 439011 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=439011&action=review

> Source/WebCore/platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm:-52
> -static const NSString *PlaybackSessionIdKey = @"PlaybackSessionID";

IIRC one of the other common semi-hacky answers was to stick (part of) the filename in it somewhere. Ideally of course it would come from some other file to avoid this problem...

> Source/WebCore/platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm:162
> -static bool isEqual(Uint8Array* data, const char* literal)
> +static bool isEqual2(Uint8Array* data, const char* literal)

Ditto the "maybe file name or some other context instead of weird suffixes"
Comment 3 EWS 2021-09-23 09:44:44 PDT
Tools/Scripts/svn-apply failed to apply attachment 439011 [details] to trunk.
Please resolve the conflicts and upload a new patch.
Comment 4 Simon Fraser (smfr) 2021-09-23 11:23:25 PDT
https://trac.webkit.org/changeset/282973/webkit
Comment 5 Radar WebKit Bug Importer 2021-09-23 11:24:20 PDT
<rdar://problem/83457465>