Bug 199865 - Hop to the main thread when doing logging in RealtimeIncomingVideoSourceCocoa
Summary: Hop to the main thread when doing logging in RealtimeIncomingVideoSourceCocoa
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-07-17 09:03 PDT by youenn fablet
Modified: 2019-07-17 11:32 PDT (History)
6 users (show)

See Also:


Attachments
Patch (3.77 KB, patch)
2019-07-17 09:06 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2019-07-17 09:03:10 PDT
Hop to the main thread when doing logging in RealtimeIncomingVideoSourceCocoa
Comment 1 youenn fablet 2019-07-17 09:06:43 PDT
Created attachment 374298 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2019-07-17 09:06:55 PDT
<rdar://problem/53205430>
Comment 3 Darin Adler 2019-07-17 09:23:33 PDT
Comment on attachment 374298 [details]
Patch

This looks like a fine way to fix this case. Any ideas on how to notice in the future when we accidentally log on non-main threads?
Comment 4 Darin Adler 2019-07-17 09:23:55 PDT
Also, is there an easy way to make Logger itself handle this so we don’t push the responsibility onto all the callers?
Comment 5 youenn fablet 2019-07-17 11:11:21 PDT
Yes, I think some refactoring in LoggerHelper is probably needed to make it stronger/easier to use.
Comment 6 WebKit Commit Bot 2019-07-17 11:32:30 PDT
Comment on attachment 374298 [details]
Patch

Clearing flags on attachment: 374298

Committed r247525: <https://trac.webkit.org/changeset/247525>
Comment 7 WebKit Commit Bot 2019-07-17 11:32:31 PDT
All reviewed patches have been landed.  Closing bug.