gecko-dev/modules/plugin
edburns%acm.org 93895f6f63 a=beard, waterson
r=av
bug=52963

Tested on win32.  Tested to build on win32 and solaris.

This patch fixes bug 52963, bug 52965, and bug 52973.

This patch contributed by Stanley Ho <stanley.ho@eng.sun.com>

52963: nsIPluginStreamListener::OnStartBinding isn't always called:

Added new ivar, mStartBinding:

   * Set to PR_TRUE after nsIPluginInstancePeer::OnStartBinding() has
   * been called.  Checked in ::OnStopRequest so we can call the
   * plugin's OnStartBinding if, for some reason, it has not already
   * been called.

52965: Length isn't always set:

  rv = channel->GetContentLength(&length);

  // it's possible for the server to not send a Content-Length.  We should
  // still work in this case.
  if (NS_FAILED(rv)) {
    mPluginStreamInfo->SetLength(-1);
  }
  else {
    mPluginStreamInfo->SetLength(length);
  }

52973: nsIHTTPHeaderListener called before nsIPluginStreamListener::NewStream

This fix required rolling back Andrei Volkov's change to the signature
of nsPluginStreamListenerPeer::SetUpStreamListener().  In order to call
the plugin with the headers before the NewStream is sent, we need the
nsIChannel.

files in this fix:

M modules/plugin/nglsrc/nsPluginHostImpl.cpp
2000-09-20 09:27:54 +00:00
..
SanePlugin Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
bad Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
base a=beard, waterson 2000-09-20 09:27:54 +00:00
default/windows Fixing 46573, r=serge 2000-08-02 21:35:45 +00:00
macbuild bug #50811, a=brendan, on behalf of edburns@sun.com 2000-09-13 06:45:33 +00:00
mpdk Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
nglsrc a=beard, waterson 2000-09-20 09:27:54 +00:00
public r=vidur, av 2000-09-14 22:57:56 +00:00
samples Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
src Removed obsolete REQUIRES variable from every Makefile.in/makefile.win 2000-06-30 08:08:04 +00:00
test Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
tools/mpdk Bug 37275, Changing value of all progids, and changing everywhere a progid 2000-09-13 23:57:52 +00:00
.cvsignore
Makefile.in This test relies on GTK libraries and header files, it is not 2000-07-17 13:06:50 +00:00
makefile.win #43500, making the default plugin part of the build on Windows, r=pollmann 2000-07-05 22:51:34 +00:00