Closed Bug 263120 Opened 20 years ago Closed 4 years ago

nsDownloader fails for small images when second param to init is null

Categories

(Core :: Networking, defect, P5)

x86
Windows XP
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: good-first-bug, Whiteboard: [necko-would-take])

Attachments

(1 file)

I'm writing an extension that sends an image to an external program.  The
extension calls nsDownloader::init(observer, null).  When the image is large
enough that it has its own file in the cache, this works, and the observer
callback has a file as a parameter.  When the image is small, the observer
callback gets result == 0x80040111 (NS_ERROR_NOT_AVAILABLE).

I think the failure occurs for small images because they are cached differently
(in memory or in block cache files rather than normal files in the cache).
This testcase requires chrome privs.  One way to test it is to install
http://ted.mielczarek.org/code/mozilla/extensiondev/ and paste this testcase
into a chrome Real-Time HTML Editor.
Summary: nsDownloader fails for small images → nsDownloader::init(observer, null) fails for small images
so is it that init throws an exception, like the summary says, or that init
works and the observer is called, with a failure status, like comment 0 says?
Comment 0 was correct; clarified summary.
Summary: nsDownloader::init(observer, null) fails for small images → nsDownloader fails for small images when second param to init is null
Assignee: darin → nobody
QA Contact: benc → networking
Version: 1.7 Branch → Trunk
Whiteboard: [necko-would-take][good first bug]
Hello, can I work on this ?
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Keywords: good-first-bug
Whiteboard: [necko-would-take][good first bug] → [necko-would-take]

Hey @valentin
I was thinking to take this up!
Will it be possible for me to work on this, provided I have MacOS rather than Windows XP?
If yes, could please guide me more?

Thankyou! :)

Flags: needinfo?(valentin.gosu)

This is a very old bug, and seems to have been fixed at some point.
Didn't check when. In any case, nothing more needs to be done here.

Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(valentin.gosu)
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: