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)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: good-first-bug, Whiteboard: [necko-would-take])
Attachments
(1 file)
|
1.69 KB,
text/html
|
Details |
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).
| Reporter | ||
Comment 1•20 years ago
|
||
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.
| Reporter | ||
Updated•20 years ago
|
Summary: nsDownloader fails for small images → nsDownloader::init(observer, null) fails for small images
Comment 2•20 years ago
|
||
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?
| Reporter | ||
Comment 3•20 years ago
|
||
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
Updated•18 years ago
|
Assignee: darin → nobody
QA Contact: benc → networking
Version: 1.7 Branch → Trunk
Updated•9 years ago
|
Whiteboard: [necko-would-take][good first bug]
Comment 4•8 years ago
|
||
Hello, can I work on this ?
Comment 5•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Updated•5 years ago
|
Keywords: good-first-bug
Whiteboard: [necko-would-take][good first bug] → [necko-would-take]
Comment 6•4 years ago
|
||
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)
Comment 7•4 years ago
|
||
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.
Description
•