Closed
Bug 16519
Opened 25 years ago
Closed 24 years ago
NPP_DestroyStream() invoked too often for 4.0 plugin
Categories
(Core Graveyard :: Plug-ins, defect, P3)
Tracking
(Not tracked)
VERIFIED
FIXED
Future
People
(Reporter: grandma, Assigned: serhunt)
References
Details
Attachments
(1 file)
(deleted),
patch
|
Details | Diff | Splinter Review |
Using Shockwave, I loaded a movie whose SRC was 24380 bytes long (a local file),
and it aborted the stream before downloading the entire file. Logging the plugin
methods called, I find :
NPP_NewStream ( returns NPERR_NO_ERROR )
NPP_WriteReady ( returns 32678 )
NPP_Write ( offset 0, len 8192, returns 8192 )
NPP_DestroyStream ( movie won't play cause it ain't all there ! )
If I skip handling NPP_DestroyStream() I get
NPP_NewStream ( returns NPERR_NO_ERROR )
NPP_WriteReady ( returns 32678 )
NPP_Write ( offset 0, len 8192, returns 8192 )
NPP_DestroyStream ( do nothing )
NPP_WriteReady ( returns 32678 )
NPP_Write ( offset 8192, len 8192, returns 8192 )
NPP_DestroyStream ( do nothing )
NPP_WriteReady ( returns 32678 )
NPP_Write ( offset 16384, len 8192, returns 8192 )
NPP_DestroyStream ( do nothing )
NPP_WriteReady ( returns 32678 )
NPP_Write ( offset 16384, len 7996, returns 7996 )
NPP_DestroyStream ( does the real stream end and movie plays )
Furthermore, if I alter my NPP_WriteReady() I get
NPP_WriteReady ( returns 8000 )
NPP_Write ( offset 0, len 8000, returns 8000 )
NPP_WriteReady ( returns 8000 )
NPP_Write ( offset 8000, len 192, returns 192 )
NPP_DestroyStream ( altered to do nothing )
...
And so, I think NPP_DestroyStream() is being called when your buffer (8192) is
consumed, in addition to when the stream en
Comment 1•25 years ago
|
||
Shrirang is now QA owner for Plug-ins; QA assigning all of my Plug-ins bugs over
to him.
Comment 3•25 years ago
|
||
Right, that's what I was looking at too. Let me do more testing before I check
this in.
Comment 5•25 years ago
|
||
NPP_DestroyStream() is no longer invoked too often,
but I will leave this open since it should be reviewd
when AsFileOnly Plugin support arrives.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → LATER
Comment 7•25 years ago
|
||
Reopening since disk cache has arrived, and marking dup of 23667.
Status: RESOLVED → REOPENED
Resolution: LATER → ---
Comment 8•25 years ago
|
||
*** This bug has been marked as a duplicate of 23667 ***
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → DUPLICATE
Comment 11•24 years ago
|
||
M16 has been out for a while now, these bugs target milestones need to be
updated.
Comment 12•24 years ago
|
||
Peter, can you check this bug against a recent build to see if it is still valid?
Comment 13•24 years ago
|
||
Not a Netscape 6 RTM blocker. FUTURE. This bug has been marked Future because
the Netscape engineer it is assigned to is overburdened.
Target Milestone: M16 → Future
Reporter | ||
Comment 14•24 years ago
|
||
From the original comment "... aborted the stream before downloading the
entire ...". This was fixed a long time ago (summer) ... clearly streams are
downloading fully or none of the content would play.
Comment 15•24 years ago
|
||
This bug has been FIXED (probably a long time ago). NPP_DestroyStream should be
called correctly now or 4.x plugins wouldn't be working.
Status: REOPENED → RESOLVED
Closed: 25 years ago → 24 years ago
Resolution: --- → FIXED
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•