Closed Bug 1280164 Opened 8 years ago Closed 5 years ago

Wrong assertions in WorkerRunnable::Pre/PostDispatch

Categories

(Core :: DOM: Workers, defect, P3)

49 Branch
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: baku, Assigned: baku)

References

Details

(Whiteboard: btpp-active)

Attachments

(2 files, 1 obsolete file)

When a WorkerRunnable is created with WorkerThreadModifyBusyCount we want it to be created outside the target worker. This means parent process or main-thread. This is what we do everywhere in gecko (and in particular parent-Worker to target-worker is just happening internally in WorkerPrivate code).

In our code base, the use of WorkerRunnable+WorkerThreadModifyBusyCount as base class is not so common. Usually we use some other base class such as WorkerMainThreadRunnable. And all of these classes have custom PreDispatch/PostDispatch.

The only places where we use WorkerRunnable+WorkerThreadModifyBusyCount is in ServiceWorker code and here, the current assertions work fine because such runnables are always created on the main-thread and target SWs are always top-level workers (they cannot be sub-workers).

The intent of this patch is to update the assertion in order to cover the reality of the use of WorkerRunnable in our code base.
Attached patch runnable3.patch (obsolete) — Splinter Review
Attachment #8762794 - Flags: review?(jonas)
Attached patch part 1Splinter Review
Attachment #8762794 - Attachment is obsolete: true
Attachment #8762794 - Flags: review?(jonas)
Attachment #8762796 - Flags: review?(jonas)
Attachment #8762796 - Attachment description: runnable3.patch → part 1
Attached patch part 2Splinter Review
Attachment #8762803 - Flags: review?(jonas)
Depends on: 1279977
Depends on: 1280067
Whiteboard: btpp-active
Priority: -- → P3
Baku: okay if I unassign you from this bug?
Flags: needinfo?(amarchesini)

This bug is not valid anymore.

Status: NEW → RESOLVED
Closed: 5 years ago
Flags: needinfo?(amarchesini)
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: