Closed Bug 1662526 Opened 4 years ago Closed 4 years ago

ServiceWorkerOp subclasses' Exec methods should return true if dispatch did not fail

Categories

(Core :: DOM: Service Workers, task)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: rpl, Assigned: rpl)

Details

Attachments

(1 file)

By looking to ServiceWorkerOp::ServiceWorkerOpRunnable::WorkerRun it seems that we consider the ServiceWorkerOp as failed if its Exec method does return false, but in some of the ServiceWorkerOp subclasses the Exec method is returning DispatchFailed(...) and so they are going to return true when dispatching the operation did actually fail.

This issue is marked as a task because what described above shouldn't be currently triggering or hiding any actual issue (because in ServiceWorkerOp::ServiceWorkerOpRunnable::WorkerRun we are currently using that return value only to print a warning in debug builds).

Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Pushed by luca.greco@alcacoop.it:
https://hg.mozilla.org/integration/autoland/rev/68a2b142761a
Exec method of the ServiceWorkerOp subclasses should return true when a dispatch did not fail. r=asuth
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: