From d1c8e457af24e3fe6b0f51d4b1989a37506d9280 Mon Sep 17 00:00:00 2001 From: "pkw%us.ibm.com" Date: Thu, 4 Mar 2004 22:45:24 +0000 Subject: [PATCH] Bug 161138 - Default/null plugin downloads embedded content anyway. r=bryner@brianryner.com, sr=blizzard@mozilla.org git-svn-id: svn://10.0.0.236/trunk@153537 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/plugin/samples/default/unix/npshell.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mozilla/modules/plugin/samples/default/unix/npshell.c b/mozilla/modules/plugin/samples/default/unix/npshell.c index b549cf42ab3..4be92c2a7ea 100644 --- a/mozilla/modules/plugin/samples/default/unix/npshell.c +++ b/mozilla/modules/plugin/samples/default/unix/npshell.c @@ -249,10 +249,6 @@ NPP_NewStream(NPP instance, } -int32 STREAMBUFSIZE = 0X0FFFFFFF; /* If we are reading from a file in NPAsFile - * mode so we can take any size stream in our - * write call (since we ignore it) */ - int32 NPP_WriteReady(NPP instance, NPStream *stream) { @@ -263,7 +259,7 @@ NPP_WriteReady(NPP instance, NPStream *stream) \*******************************************/ /* Number of bytes ready to accept in NPP_Write() */ - return STREAMBUFSIZE; + return -1L; /* don't accept any bytes in NPP_Write() */ } @@ -277,7 +273,7 @@ NPP_Write(NPP instance, NPStream *stream, int32 offset, int32 len, void *buffer) This = (PluginInstance*) instance->pdata; \**************************************/ - return len; /* The number of bytes accepted */ + return -1; /* tell the browser to abort the stream, don't need it */ }