ImageBridgeChild::CreateImageClient will dispatch task synchronously on the ImageBridgeChild
Categories
(Core :: Graphics, defect)
Tracking
()
People
(Reporter: jya, Unassigned, NeedInfo)
References
Details
Similar to bug 1650728; the ImageBridgeChild will do a sync-dispatch to create an ImageClient
This is problematic when the calling code is also on a background taskqueue as the background threadpool is made of a single thread.
For now we could make the runnable be dispatched with the NS_DISPATCH_EVENT_MAY_BLOCK flag; however it's rather counter-intuitive as the task dispatched isn't blocking on anything; it's the callee that is waiting and blocking until that task is running.
It seems to be a better approach to remove the need for the ImageClient to be created on the ImageBridgeChild thread.
Updated•4 years ago
|
Comment 1•3 months ago
|
||
Seems to still be the case
https://searchfox.org/mozilla-central/rev/213d5278e59db7e6142e2b093d3fd0172f6392a4/gfx/layers/ipc/ImageBridgeChild.cpp#657-675
Comment 2•3 months ago
|
||
The severity field is not set for this bug.
:bhood, could you have a look please?
For more information, please visit BugBot documentation.
Description
•