Open Bug 1615407 Opened 4 years ago Updated 2 years ago

BodyStream::ErrorPropagation should do better error-reporting

Categories

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

task

Tracking

()

People

(Reporter: bzbarsky, Unassigned)

Details

Right now it does a generic TypeError. Ideally it would take an ErrorResult coming in from the callers and just propagate that out.

Type: defect → task
Priority: -- → P3

In the meantime bug 1734873 added aError as a parameter. However, we cannot just propagate any internal gecko error to the web pages. We would either need a mapping or trust (let indicate) the callers that they know which errors merit propagation. This might well translate to have an additional (optional) input parameter aJSErrorToBePropagated.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.