Closed
Bug 1280164
Opened 8 years ago
Closed 5 years ago
Wrong assertions in WorkerRunnable::Pre/PostDispatch
Categories
(Core :: DOM: Workers, defect, P3)
Tracking
()
RESOLVED
INVALID
People
(Reporter: baku, Assigned: baku)
References
Details
(Whiteboard: btpp-active)
Attachments
(2 files, 1 obsolete file)
2.45 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
4.83 KB,
patch
|
sicking
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8762794 -
Flags: review?(jonas)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8762794 -
Attachment is obsolete: true
Attachment #8762794 -
Flags: review?(jonas)
Attachment #8762796 -
Flags: review?(jonas)
Assignee | ||
Updated•8 years ago
|
Attachment #8762796 -
Attachment description: runnable3.patch → part 1
Assignee | ||
Comment 3•8 years ago
|
||
Attachment #8762803 -
Flags: review?(jonas)
Updated•8 years ago
|
Whiteboard: btpp-active
Attachment #8762796 -
Flags: review?(jonas) → review+
Attachment #8762803 -
Flags: review?(jonas) → review+
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Comment 5•5 years ago
|
||
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.
Description
•