Open Bug 1222720 Opened 9 years ago Updated 2 years ago

Report additional information when service worker event handler throw

Categories

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

defect

Tracking

()

People

(Reporter: bkelly, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1217909 I am making service workers report uncaught exceptions and syntax errors to the console reliably. It would be nice to provide some additional information in a secondary console line, though. For example: 1) Throwing in the 'fetch' handler should report the FetchEvent.request.url value. 2) Throwing in the 'install' handler should report the service worker scope and indicate install was aborted. 3) Throwing in the 'activate' handler should report the scope and warn that the service worker is still active.
Assignee: nobody → bkelly
Status: NEW → ASSIGNED
(stealing with permission)
Assignee: bkelly → bugmail
No longer blocks: ServiceWorkers-postv1
Priority: -- → P3
asuth: any objection if we unassign you and backlog this?
Flags: needinfo?(bugmail)
Assignee: bugmail → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(bugmail)

Perry, is this bug relevant to the discussion at all hands about improving details in error messages? Could these be some low hanging fruits when we split up the bugs for each of the errors?

Flags: needinfo?(perry)

Yeah, I think this is relevant and would help debugging. I think the classification of error messages in the bug description is a good start.

Flags: needinfo?(perry)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.