Closed
Bug 1749725
Opened 3 years ago
Closed 5 months ago
Verify if WorkerRunnable::Cancel can just assert against re-entrance
Categories
(Core :: DOM: Workers, task)
Core
DOM: Workers
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jstutte, Unassigned)
References
Details
In bug 1741182 we updated all WorkerRunnable::Cancel
overrides for correct error handling. During review, :smaug asked if we could instead just assert this.
Here is a try run with this assert.
Even if this is green, it is not immediately clear, if Cancel
can be called (or triggered to be called) more than once through JS and having appropriate error handling is actually needed here.
Reporter | ||
Comment 1•5 months ago
|
||
I assume this is still relevant after your runnable refactorings?
Flags: needinfo?(echuang)
Comment 2•5 months ago
|
||
Will double check if we can replace checking with assertion.
Flags: needinfo?(echuang)
Updated•5 months ago
|
Flags: needinfo?(echuang)
Comment 3•5 months ago
•
|
||
We don't need assertion since WorkerRunnable::Cancel() no need to be called in inherited Cancel() implementation.
Status: NEW → RESOLVED
Closed: 5 months ago
Flags: needinfo?(echuang)
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•