2462 Commits

Author SHA1 Message Date
warren%netscape.com
181bb2dcb2 Landing jar packaging from jar_restructuring_branch. r=hyatt,dprice,sfraser,dveditz,vishy,sgehani 2000-09-20 19:35:24 +00:00
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
waterson%netscape.com
7dc55680e8 Bug 44352. Remove nsIMemoryPressureObserver in favor of nsIObserverService et al., and convert existing nsIMemoryPressureObserver clients. Add memory flusher thread. Add debug UI to force memory flush. r=alecf,sfraser,warren a=warren 2000-09-20 05:44:19 +00:00
tor%cs.brown.edu
0dcd7b7275 Lie in ImgDWriteReady as a minimal impact workaround until
41831 is fixed.  This was causing JNG images not to display
out of the cache, and probably occasionally a failed first
load.  r=pnunn, a=brendan
2000-09-19 22:03:31 +00:00
tor%cs.brown.edu
0d29237b07 Small change to make a debug message from ilclient.cpp more
accurate, and only print it when compiled in debug mode (was
appearing when switching skins).
r=pnunn, a=brendan
2000-09-19 21:54:29 +00:00
mkaply%us.ibm.com
e2e26b4896 #53096
r=akkana, a=brendan
Can't override accelerators properly which we will be doing on OS/2
2000-09-18 23:04:07 +00:00
warren%netscape.com
c07ca298ed Setting release timeout inside lock -- avoiding race condition. 2000-09-18 07:08:22 +00:00
sspitzer%netscape.com
04d2c4098a whoops, the default is supposed to be false, not true. 2000-09-18 03:35:40 +00:00
sspitzer%netscape.com
1fc3481074 fix for #22163 from Decklin Foster.
set a default pref to prevent the JS exception.
r=sspitzer
2000-09-18 03:27:09 +00:00
warren%netscape.com
a53ac69e4e Backing mstoltz out to get things back up and running with jar packaging. Also, I don't approve of the changes made to nsJARURI.cpp 2000-09-18 02:18:00 +00:00
mozilla.BenB%bucksch.org
b0fecd35e8 39372: Changing default to "blockquoting" plaintext (using vertical bars (instead of ">"s) for nested quotes during reply to plaintext msgs). r=a=alecf 2000-09-15 22:07:28 +00:00
sspitzer%netscape.com
6779b4efd0 fix for bug #51267. intermittent failure when loading files from jars.
the problem is that nsZipArchive and zlib are not thread safe.
for now, add a lock to prevent multiple threads from getting into that code
r=warren,dveditz
super-end-of-game-review=mscott
2000-09-15 21:56:20 +00:00
mstoltz%netscape.com
35d66fed08 Better bustage fix without leak r=scc 2000-09-15 21:12:36 +00:00
mstoltz%netscape.com
9c40decb1a Fixing bustage. r=dveditz 2000-09-15 20:38:52 +00:00
mstoltz%netscape.com
04f1130628 Fix for bugs 24765, 49288. Using Necko file cache for the jar protocol. r=beard, a=warren. 2000-09-15 19:27:05 +00:00
dveditz%netscape.com
72f28baa8a Eliminate "packageregistry" file on unix (bug 33863), patch by Peter "jag" Annema
<disttsc@bart.nl>, r=dveditz@netscape.com
2000-09-15 06:19:53 +00:00
joki%netscape.com
8ebc63b90b Part of fix for bug 5693, add new pref to allow no firing of hierarchical :hover state if performance slowed. r:jst. 2000-09-15 06:13:58 +00:00
av%netscape.com
c77cb66e71 Part of 33105 fix, added option not to show Bad Plugin warning again, r=serge 2000-09-14 23:58:17 +00:00
rayw%netscape.com
3cd14f5878 Bug fix for 52648 -- remaining stash of progids which I missed on
the mega-change yesterday.  This will fix a few more issues.

r=warren
2000-09-14 23:20:49 +00:00
pnunn%netscape.com
288d5211f1 bug#51249: add chrome to FlushCache. pnunn, r:syd. 2000-09-14 23:09:18 +00:00
edburns%acm.org
dee7ed58dd r=vidur, av
a=brendan
bug=49525

This simple fix just adds parameters to an existing method in an XPCOM
safe way, by defining a new method at the end of the interface
definition with the additional parameters.

Original method:

    NS_IMETHOD
    GetURL(nsISupports* pluginInst,
           const char* url,
           const char* target = NULL,
           nsIPluginStreamListener* streamListener = NULL,
           const char* altHost = NULL,
           const char* referrer = NULL,
           PRBool forceJSEnabled = PR_FALSE) = 0;

New method:

    NS_IMETHOD
    GetURLWithHeaders(nsISupports* pluginInst,
                      const char* url,
                      const char* target = NULL,
                      nsIPluginStreamListener* streamListener = NULL,
                      const char* altHost = NULL,
                      const char* referrer = NULL,
                      PRBool forceJSEnabled = PR_FALSE,
                      PRUint32 getHeadersLength = 0,
                      const char* getHeaders = NULL) = 0;

I have modified nsPluginHostImpl.h to include this new method, and
modified nsPluginHostImpl.cpp so that its GetURL calls GetURLWithHeaders
with null values for the last two params.

M modules/plugin/public/nsIPluginManager.h
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginHostImpl.h
2000-09-14 22:57:56 +00:00
dveditz%netscape.com
4c66ffd7fc bug 51056 handle unreadable prefs file, patch from gemal@gemal.dk, r=dveditz@netscape.com 2000-09-14 20:12:59 +00:00
ccarlen%netscape.com
19e3a2949c First check-in, not yet part of build. This lib is being used to solve bug #48981, but has other uses. r=racham 2000-09-14 13:40:35 +00:00
ccarlen%netscape.com
8efcd24a9b First check-in, not yet part of build. This lib is being used to solve bug #48981, but has other uses. r=racham 2000-09-14 13:35:28 +00:00
jdunn%netscape.com
319ebcde95 adding newline at end of file (required by hp) 2000-09-14 10:50:50 +00:00
edburns%acm.org
eee39a1304 a=brendan, ekrock
r=av, sean@beatnik.com
bug=50547

This change allows the plugin to have a greater degree of control over
the plugin lifecycle.  This change makes it possible for the plugin to
tell mozilla:

1. Whether or not they want to allow the browser to cache their
instance.  Default is yes, do allow the browser to cache their instance.

2. If they answer no to 1, that is, no the plugin does not want the
browser to cache their instance, do you want the shutdown calls to be:

a.

          inst->SetWindow(nsnull);
          inst->Stop();
          inst->Destroy();


b.

          inst->Stop();
          inst->Destroy();
          inst->SetWindow(nsnull);

a. is the default.

Please visit the bug to see the patches:

http://bugzilla.mozilla.org/show_bug.cgi?id=50547

Detail:

This fix was requested by Stanley Ho of the Sun Java Plugin Team.  A
conference call between Eric Krock, Andrei Volkov, Sun, Adobe and other
plugin vendors was used to agree on the above solution.

M modules/plugin/public/nsplugindefs.h
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginViewer.cpp
M layout/html/base/src/nsObjectFrame.cpp
2000-09-14 08:22:31 +00:00
av%netscape.com
af172bc1f9 Fixing Mac bustage 2000-09-14 07:16:07 +00:00
av%netscape.com
93ee2b0c9a Part of 33105 fix, replaced direct calls to plugins by safe macro, r=serge 2000-09-14 06:13:56 +00:00
av%netscape.com
111969d988 Part of 33105 fix, added a method to hsIPluginHost to handle bad plugins, r=serge 2000-09-14 06:03:37 +00:00
av%netscape.com
000be3bb8e Part of 33105 fix, first time in, macro for safe plugin calls implemented, r=serge 2000-09-14 05:56:28 +00:00
matt%netscape.com
d60a0695d0 fix for bug 44036
r=pav
2000-09-14 04:52:50 +00:00
rayw%netscape.com
0257791053 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren
2000-09-13 23:57:52 +00:00
edburns%acm.org
61f79884f1 a=brendan,av
r=av
bug=50811

This bug fix was suggested by Stanley Ho <stanley.ho@eng.sun.com>.

Stanley proposed we overload the meaning of the nsIPluginStreamListener
argument to nsIPluginManager::{GetURL,PostURL}() so that it also may
implement an interface for reading headers.  Thus, the browser could QI
the plugin's nsIPluginStreamListener instance to this headers reading
interface and send the plugin the headers from the response.

I have implemented Stanley's above proposal.  I have defined a new
interface, nsIHTTPHeaderListener.idl with one method:

  /**

   * Called for each HTTP Response header.

   * NOTE: You must copy the values of the params.

   */

  void newResponseHeader(in string headerName, in string headerValue);

To affect this fix, I have added a new private method

nsPluginStreamListenerPeer::
ReadHeadersFromChannelAndPostToListener(nsIHTTPChannel *httpChannel,
                                        nsIHTTPHeaderListener *listener)

Then, modified nsPluginStreamListenerPeer::OnDataAvailable() to call
this method BEFORE reading the content data.  However, this fix makes
two important assumptions I would like to check out:

   * Assumption

   * By the time nsPluginStreamListenerPeer::OnDataAvailable() gets
   * called, all the headers have been read.

       * Assumption:

       * The return value from nsIHTTPHeader->{GetFieldName,GetValue}()
       * must be freed.

The following files are included in this fix:

A modules/plugin/public/nsIHTTPHeaderListener.idl
A modules/plugin/public/makefile.win
A modules/plugin/public/Makefile.in
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
2000-09-13 07:09:38 +00:00
edburns%acm.org
b090a933d7 a=brendan,av
r=av
bug=50811

Should include "nsISupports.idl" not "nsPluginDefs.idl".
2000-09-13 07:07:18 +00:00
scc%mozilla.org
c115faa444 bug #50811, a=brendan, on behalf of edburns@sun.com 2000-09-13 06:45:33 +00:00
edburns%acm.org
a96a90e3d9 a=brendan,av
r=av
bug=50811

This bug fix was suggested by Stanley Ho <stanley.ho@eng.sun.com>.

Stanley proposed we overload the meaning of the nsIPluginStreamListener
argument to nsIPluginManager::{GetURL,PostURL}() so that it also may
implement an interface for reading headers.  Thus, the browser could QI
the plugin's nsIPluginStreamListener instance to this headers reading
interface and send the plugin the headers from the response.

I have implemented Stanley's above proposal.  I have defined a new
interface, nsIHTTPHeaderListener.idl with one method:

  /**

   * Called for each HTTP Response header.

   * NOTE: You must copy the values of the params.

   */

  void newResponseHeader(in string headerName, in string headerValue);

To affect this fix, I have added a new private method

nsPluginStreamListenerPeer::
ReadHeadersFromChannelAndPostToListener(nsIHTTPChannel *httpChannel,
                                        nsIHTTPHeaderListener *listener)

Then, modified nsPluginStreamListenerPeer::OnDataAvailable() to call
this method BEFORE reading the content data.  However, this fix makes
two important assumptions I would like to check out:

   * Assumption

   * By the time nsPluginStreamListenerPeer::OnDataAvailable() gets
   * called, all the headers have been read.

       * Assumption:

       * The return value from nsIHTTPHeader->{GetFieldName,GetValue}()
       * must be freed.

The following files are included in this fix:

A modules/plugin/public/nsIHTTPHeaderListener.idl
A modules/plugin/public/makefile.win
A modules/plugin/public/Makefile.in
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
2000-09-13 06:40:57 +00:00
scc%mozilla.org
f75af5e15f if you want a pointer to the characters, you're going to have to |.get()| it 2000-09-13 02:48:08 +00:00
cls%seawood.org
9e2e8ba282 Change MDDEPDIR to fix a VPATH issue in srcdir builds. 2000-09-12 23:37:16 +00:00
ruslan%netscape.com
d905b23b6b proxy.ssl.connect pref should be always set to true; a=gagan 2000-09-12 21:42:54 +00:00
jeff.dyer%compilercompany.com
3c7bf12fc8 FALSE -> PR_FALSE 2000-09-12 12:44:48 +00:00
jeff.dyer%compilercompany.com
ed96265c80 FALSE -> PR_FALSE 2000-09-12 12:22:52 +00:00
jeff.dyer%compilercompany.com
29b8d72406 b=45692 r=edburns a=brendan: Enable liveconnect security. 2000-09-12 11:47:42 +00:00
warren%netscape.com
f1e20aeb6c Fixed error code. 2000-09-12 05:11:11 +00:00
dimator%netscape.com
42480de5f0 Changing default collect address book maximum from 200 to 700 cards. r=putterman 2000-09-12 01:53:20 +00:00
cls%seawood.org
50cf95135d OS_ARCH does not set release numbers 2000-09-11 08:08:24 +00:00
cls%seawood.org
f9ef19da28 Remove unneeded dep that's breaking old gnu makes 2000-09-11 06:26:48 +00:00
cls%seawood.org
6d3cf6985a Fixing problem of standalone compoennts always building on every build pass. Adding objs.mk files to give better dependency handling. Bug #49937 2000-09-11 04:13:16 +00:00
cls%seawood.org
a03d3c155b Make the ifdef match the comment here as well 2000-09-11 01:22:45 +00:00
ccarlen%netscape.com
68500bd674 Fix for Win95 machines which don't have APP_DATA dir r=racham 2000-09-09 15:31:27 +00:00
rich.burridge%sun.com
939ff071ff Fix to enable XPInstall to build/run on the Solaris platform.
r=sgehani@netscape.com  a=brendan@mozilla.org
BugId: #43080.
2000-09-09 14:18:48 +00:00