Closed Bug 126344 Opened 23 years ago Closed 19 years ago

nsDownloader::OnStartRequest() should handle failure of SetCacheAsFile()

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 209560
Future

People

(Reporter: gordon, Assigned: dougt)

References

Details

(Keywords: helpwanted)

nsDownloader::OnStartRequest() will simply fail if SetCacheAsFile() fails.  It
should probably try streaming the data to a temp file...or something.
This may have an impact on signed javascript.
+helpwanted: eng requests go straight to eng triage.
Keywords: helpwanted
neeti can you look at this.
Assignee: new-network-bugs → neeti
Target Milestone: --- → mozilla1.4alpha
mitch, darin: what is the impact here if SetCacheAsFile() fails in 
nsDownloader::OnStartRequest() ?
neeti: nsDownloader is used to download remote jar files (e.g., URLs like:
jar:http://...).  if nsDownloader fails, then loading of such a jar file will
fail.  NOTE: the jar protocol circumvents nsDownloader if the inner URL can be
mapped to a nsIFile (which is the case for resource:// and file://).

this bug may prevent jar:https:// URLs from loading since https:// URLs are not
cached on disk.  or, does SetCacheAsFile(PR_TRUE) trump that??
darin, mitch: Do you know of any urls I could use to test the download code for
jar:https:// URLs ?

thanks,
Neeti


neeti: no, i don't know of any sample URLs.  you might also want to check out
bug 172279, which is somewhat related.
Target Milestone: mozilla1.4alpha → Future
neeti no longer works on mozilla stuff.
Assignee: neeti → dougt
I fixed this in bug 209560.
Status: NEW → RESOLVED
Closed: 19 years ago
Depends on: jar:https
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

*** This bug has been marked as a duplicate of 209560 ***
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.