Bug 212392

Summary: Use ObjectIdentifier<> instead of uint64_t for context IDs in VideoFullscreenManagerProxy
Product: WebKit Reporter: Peng Liu <peng.liu6>
Component: MediaAssignee: David Kilzer (:ddkilzer) <ddkilzer>
Status: RESOLVED FIXED    
Severity: Normal CC: ddkilzer, eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, useafterfree, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 13   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=212293
Bug Depends on:    
Bug Blocks: 213576    
Attachments:
Description Flags
Patch v1
youennf: review+, ddkilzer: commit-queue-
Patch for landing none

Description Peng Liu 2020-05-26 16:41:33 PDT
A follow-up task based on Youenn's comment: https://bugs.webkit.org/show_bug.cgi?id=212293#c3.
Comment 1 David Kilzer (:ddkilzer) 2020-06-23 20:23:15 PDT
<rdar://problem/61799040>
Comment 2 David Kilzer (:ddkilzer) 2020-06-23 20:32:02 PDT
Created attachment 402620 [details]
Patch v1
Comment 3 youenn fablet 2020-06-24 01:33:36 PDT
Comment on attachment 402620 [details]
Patch v1

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

> Source/WebKit/UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:371
>      MESSAGE_CHECK_CONTEXTID(contextId);

We can remove this one.

> Source/WebKit/UIProcess/Cocoa/PlaybackSessionManagerProxy.mm:504
>      MESSAGE_CHECK_CONTEXTID(contextId);

Ditto here and above.

> Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:512
>      MESSAGE_CHECK_CONTEXTID(contextId);

Do we need to remove this one as well? Ditto below.

> Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:513
>      MESSAGE_CHECK(videoLayerID);

Should we also use ObjectIdentifier for videoLayerID in the future?
Comment 4 David Kilzer (:ddkilzer) 2020-06-24 13:17:30 PDT
Comment on attachment 402620 [details]
Patch v1

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

Will remove the MESSAGE_CHECK_CONTEXTID() checks as they're redundant now.

Thanks!

>> Source/WebKit/UIProcess/Cocoa/VideoFullscreenManagerProxy.mm:513
>>      MESSAGE_CHECK(videoLayerID);
> 
> Should we also use ObjectIdentifier for videoLayerID in the future?

Yes, tracked by <rdar://problem/61806253>.
Comment 5 David Kilzer (:ddkilzer) 2020-06-24 13:26:51 PDT
Created attachment 402679 [details]
Patch for landing
Comment 6 David Kilzer (:ddkilzer) 2020-06-24 14:42:13 PDT
Comment on attachment 402679 [details]
Patch for landing

Marking cq+ since changes are only in Source/WebKit, and thus mac-debug-wk1 can't be affected by failed tests.  (I also built macOS Debug locally.)
Comment 7 EWS 2020-06-24 15:09:38 PDT
Committed r263476: <https://trac.webkit.org/changeset/263476>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 402679 [details].