Open Bug 1650744 Opened 4 years ago Updated 3 months ago

ImageBridgeChild::CreateImageClient will dispatch task synchronously on the ImageBridgeChild

Categories

(Core :: Graphics, defect)

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.

Severity: -- → S3
Priority: -- → P3
Severity: S3 → --
Component: Graphics: Layers → Graphics
Priority: P3 → --

The severity field is not set for this bug.
:bhood, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(bhood)
You need to log in before you can comment on or make changes to this bug.