Closed Bug 1448795 Opened 7 years ago Closed 7 years ago

nsMIMEInputStream must call OnInputStreamReady() with the correct nsIAsyncInputStream

Categories

(Core :: DOM: Core & HTML, enhancement)

58 Branch
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla61
Tracking Status
firefox61 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file)

This is is wrong: nsCOMPtr<nsIAsyncInputStream> asyncStream = do_QueryInterface(mStream); return asyncStream->AsyncWait( aCallback, aFlags, aRequestedCount, aEventTarget); https://searchfox.org/mozilla-central/source/netwerk/base/nsMIMEInputStream.cpp#245-246 because the callback will receive the internal stream as argument and not the current nsIMIMEInputStream.
Attached patch mime.patchSplinter Review
Attachment #8962280 - Flags: review?(bugmail)
Depends on: 1383518
Comment on attachment 8962280 [details] [diff] [review] mime.patch Review of attachment 8962280 [details] [diff] [review]: ----------------------------------------------------------------- Yeah, I cut a corner at the time :(
Attachment #8962280 - Flags: review?(bugmail) → review+
Pushed by amarchesini@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/7429f5566dd9 nsMIMEInputStream must call OnInputStreamReady() with the correct nsIAsyncInputStream, r=asuth
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Depends on: 1451731
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: