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)

task

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.

See Also: → 1741182

I assume this is still relevant after your runnable refactorings?

Flags: needinfo?(echuang)

Will double check if we can replace checking with assertion.

Flags: needinfo?(echuang)
Flags: needinfo?(echuang)

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.