Closed Bug 466384 Opened 16 years ago Closed 16 years ago

"ASSERTION: OnDataAvailable implementation consumed no data" loading standalone video from local file

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.2a1

People

(Reporter: dbaron, Assigned: timeless)

References

Details

Attachments

(1 file)

When I load a standalone ogg video file, I get the assertion: ###!!! ASSERTION: OnDataAvailable implementation consumed no data: 'Error', file /home/dbaron/builds/mozilla-central/mozilla/netwerk/base/src/nsInputStreamPump.cpp, line 529 This appears to be happening because the OnDataAvailable works its way through a chain of various listeners and finds its way to nsMediaDocumentStreamListener::OnDataAvailable, where mNextStream is null, so the function returns without doing anything. Steps to reproduce: 1. save http://piercedotzler.com/asa/obama-scaled-high.ogg to a local file 2. load that local file in Firefox Actual results: assertion (above) Expected results: no assertion
nsFileStreamStrategy doesn't need or use the existing channel, it (re)opens the channel as a local file. I think nsMediaDocumentStreamListener::OnStartRequest should return NS_BINDING_ABORTED if no mNextStream listener is attached. Alternately, the nsFileStreamStrategy could attach a listener that just returns the same from OnStartRequest, but that seems uglier.
Assignee: nobody → timeless
Status: NEW → ASSIGNED
Attachment #355089 - Flags: review?(dbaron)
fwiw, this has nothing to do with video/audio, it existed for plugin content and has since at least 2003 (initial version). I suspect there's a much older bug. but my "current" archive doesn't reach that far back.
Component: Video/Audio → DOM
OS: Linux → All
QA Contact: video.audio → general
Hardware: x86 → All
Attachment #355089 - Flags: review?(dbaron) → review?(bzbarsky)
Comment on attachment 355089 [details] [diff] [review] this fixes it [Checkin: Comment 5] Looks good.
Attachment #355089 - Flags: superreview+
Attachment #355089 - Flags: review?(bzbarsky)
Attachment #355089 - Flags: review+
Attachment #355089 - Attachment description: this fixes it → this fixes it [Checkin: Comment 5]
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2a1
Could this have caused bug 472239?
Is bug 472230 a regression from this ?
Depends on: 472239
Depends on: 472230
Can this be backed out to fix bug 472239 and bug 472239? It has been confirmed that backing out this patch locally, fixes those bugs.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Gah. Plugin documents do weird stuff with the OnStartRequest. I'll fix in one of the two regression bugs. Please don't reopen bugs for regressions, ok?
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: