Closed Bug 1687063 Opened 4 years ago Closed 4 years ago

Improve error messages when trying to consume a Reponse for WebAssembly

Categories

(Core :: JavaScript: WebAssembly, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox86 --- fixed

People

(Reporter: evilpie, Assigned: evilpie)

Details

Attachments

(1 file)

The error messages in FetchUtil::StreamResponseToJS are not very good. Especially the message "Response has unsupported MIME type" could use some improvements. This sometimes causes confusion from users, like here https://github.com/ruffle-rs/ruffle/issues/400. Chrome has much better errors here.

I think we can't tell if it's for compileStreaming or instantiateStreaming, but I have a patch that makes this a bit better.

Assignee: nobody → evilpies
Status: NEW → ASSIGNED
Pushed by evilpies@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e17994ec6a1d Improve error messages when trying to consume a Reponse for WebAssembly. r=lth
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: