Closed
Bug 910810
Opened 13 years ago
Closed 12 years ago
WebrtcAudioConduit uses preferences off the main thread
Categories
(Core :: WebRTC, defect)
Core
WebRTC
Tracking
()
RESOLVED
FIXED
mozilla27
People
(Reporter: khuey, Assigned: jesup)
References
Details
(Whiteboard: [webrtc])
Attachments
(1 file)
|
1.77 KB,
patch
|
abr
:
review+
|
Details | Diff | Splinter Review |
Webrtc gets and uses the preferences service off the main thread, but prefs are not threadsafe.
http://hg.mozilla.org/mozilla-central/annotate/21b5af569ca2/media/webrtc/signaling/src/media-conduit/AudioConduit.cpp#l324
https://tbpl.mozilla.org/php/getParsedLog.php?id=27184302&tree=Try#error0
| Assignee | ||
Comment 1•13 years ago
|
||
This is caused by the unit tests having a faked-up "MainThread". Actual browser code doesn't have this problem; the code is called from vcmTxStartICE_m(), which (as the _m implies in the webrtc_signaling code) runs on MainThread.
ekr, do you remember what the issues were that caused us to use a fake mainthread in the unit tests?
Component: WebRTC: Audio/Video → WebRTC
Flags: needinfo?(ekr)
| Reporter | ||
Comment 2•13 years ago
|
||
Any movement here?
| Reporter | ||
Comment 3•13 years ago
|
||
Hey Randell, can we get someone to take this?
Flags: needinfo?(rjesup)
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → rjesup
Flags: needinfo?(rjesup)
Whiteboard: [webrtc]
Target Milestone: --- → mozilla27
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Comment 5•13 years ago
|
||
Comment on attachment 809591 [details] [diff] [review]
don't read prefs off "main" thread in unittests
Review of attachment 809591 [details] [diff] [review]:
-----------------------------------------------------------------
Patch got uploaded but forgot to ask for review on it. Pretty simple.... (Larger issue of not running these tests off-mainthread in c++ unit tests will be dealt with elsewhere (bug 925675))
Attachment #809591 -
Flags: review?(khuey)
| Reporter | ||
Comment 6•12 years ago
|
||
Comment on attachment 809591 [details] [diff] [review]
don't read prefs off "main" thread in unittests
Somebody familiar with this code should review this.
Attachment #809591 -
Flags: review?(khuey)
| Assignee | ||
Updated•12 years ago
|
Attachment #809591 -
Flags: review?(adam)
Comment 7•12 years ago
|
||
Comment on attachment 809591 [details] [diff] [review]
don't read prefs off "main" thread in unittests
Review of attachment 809591 [details] [diff] [review]:
-----------------------------------------------------------------
Seems reasonable, given that the constructor sets these to sane defaults.
Attachment #809591 -
Flags: review?(adam) → review+
| Assignee | ||
Comment 8•12 years ago
|
||
Flags: needinfo?(ekr)
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•