Closed Bug 666217 Opened 15 years ago Closed 14 years ago

Plugin can not access URLs when cached

Categories

(Core Graveyard :: Plug-ins, defect)

5 Branch
x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: martin, Unassigned)

Details

I wrote a NPRUNTIME plugin that requests the download of additional data from Firefox via a call to NPN_GetURLNotify(). Sometimes (pretty much always when reloading the page, or requesting the same URL multiple times, so I suppose it is cache related) the sequence of actions after that call is: Firefox calls back to: NPP_NewStream, the plugin sets the stream type (*stype argument) to NP_ASFILEONLY. Firefox next (immediately) calls NPP_DestroyStream() with reason = 1 and then NPP_URLNotify(), also with reason = 1 (NPRES_NETWORK_ERR). Sometimes Firefox fetches the content from the web server (or when forced after clearing the cache), and in that case the plugin always gets the proper NPP_StreamAsFile() call before NPP_DestroyStream() with reason = 0.
Component: General → Plug-ins
Product: Firefox → Core
QA Contact: general → plugins
Damn, I am unable to reproduce it with a minimalistic plugin downloading arbitrary data - maybe it is data size related? The original plugin consumes *very huge* files. Also it seems to be gone since the last update on the release channel (i.e. I can not reproduce it with FF 5 build from http://hg.mozilla.org/releases/mozilla-release/rev/7b56ff900c2a), but I still see it with a 6 beta (build from http://hg.mozilla.org/releases/mozilla-beta/rev/0d82a53ffaa6).
A bug in the plugin caused it to delete cache files... Ooops!
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.