2451 Commits

Author SHA1 Message Date
warren%netscape.com
cdc56bbf4c Landing jar packaging from jar_restructuring_branch. r=hyatt,dprice,sfraser,dveditz,vishy,sgehani
git-svn-id: svn://10.0.0.236/trunk@79641 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 19:35:24 +00:00
edburns%acm.org
e9408a09a9 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


git-svn-id: svn://10.0.0.236/trunk@79618 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 09:27:54 +00:00
waterson%netscape.com
ac48abcd87 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
git-svn-id: svn://10.0.0.236/trunk@79603 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 05:44:19 +00:00
tor%cs.brown.edu
344c4a3a48 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


git-svn-id: svn://10.0.0.236/trunk@79548 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 22:03:31 +00:00
tor%cs.brown.edu
8530ab1bab 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


git-svn-id: svn://10.0.0.236/trunk@79546 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:54:29 +00:00
mkaply%us.ibm.com
56683b9811 #53096
r=akkana, a=brendan
Can't override accelerators properly which we will be doing on OS/2


git-svn-id: svn://10.0.0.236/trunk@79475 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 23:04:07 +00:00
warren%netscape.com
d2adc229cc Setting release timeout inside lock -- avoiding race condition.
git-svn-id: svn://10.0.0.236/trunk@79417 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 07:08:22 +00:00
sspitzer%netscape.com
239ccb5a87 whoops, the default is supposed to be false, not true.
git-svn-id: svn://10.0.0.236/trunk@79412 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 03:35:40 +00:00
sspitzer%netscape.com
9f2af1fdf0 fix for #22163 from Decklin Foster.
set a default pref to prevent the JS exception.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@79411 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 03:27:09 +00:00
warren%netscape.com
0bccd6825d 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
git-svn-id: svn://10.0.0.236/trunk@79409 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 02:18:00 +00:00
mozilla.BenB%bucksch.org
f5321daaea 39372: Changing default to "blockquoting" plaintext (using vertical bars (instead of ">"s) for nested quotes during reply to plaintext msgs). r=a=alecf
git-svn-id: svn://10.0.0.236/trunk@79368 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 22:07:28 +00:00
sspitzer%netscape.com
8b0f81b576 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


git-svn-id: svn://10.0.0.236/trunk@79367 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 21:56:20 +00:00
mstoltz%netscape.com
5fddebe063 Better bustage fix without leak r=scc
git-svn-id: svn://10.0.0.236/trunk@79362 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 21:12:36 +00:00
mstoltz%netscape.com
d0300ddc1e Fixing bustage. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@79359 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 20:38:52 +00:00
mstoltz%netscape.com
6191db92e2 Fix for bugs 24765, 49288. Using Necko file cache for the jar protocol. r=beard, a=warren.
git-svn-id: svn://10.0.0.236/trunk@79353 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 19:27:05 +00:00
dveditz%netscape.com
1df0ee9d48 Eliminate "packageregistry" file on unix (bug 33863), patch by Peter "jag" Annema
<disttsc@bart.nl>, r=dveditz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@79280 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 06:19:53 +00:00
joki%netscape.com
5582940255 Part of fix for bug 5693, add new pref to allow no firing of hierarchical :hover state if performance slowed. r:jst.
git-svn-id: svn://10.0.0.236/trunk@79274 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 06:13:58 +00:00
av%netscape.com
399c390ec8 Part of 33105 fix, added option not to show Bad Plugin warning again, r=serge
git-svn-id: svn://10.0.0.236/trunk@79236 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:58:17 +00:00
rayw%netscape.com
31f9bce979 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


git-svn-id: svn://10.0.0.236/trunk@79224 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:20:49 +00:00
pnunn%netscape.com
b47c567fe2 bug#51249: add chrome to FlushCache. pnunn, r:syd.
git-svn-id: svn://10.0.0.236/trunk@79216 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:09:18 +00:00
edburns%acm.org
f59c24e492 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


git-svn-id: svn://10.0.0.236/trunk@79207 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 22:57:56 +00:00
dveditz%netscape.com
7d6149de7f bug 51056 handle unreadable prefs file, patch from gemal@gemal.dk, r=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79167 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 20:12:59 +00:00
ccarlen%netscape.com
bf946dc3cd First check-in, not yet part of build. This lib is being used to solve bug #48981, but has other uses.
r=racham


git-svn-id: svn://10.0.0.236/trunk@79127 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 13:40:35 +00:00
ccarlen%netscape.com
4f7eba1ffc First check-in, not yet part of build. This lib is being used to solve bug #48981, but has other uses.
r=racham


git-svn-id: svn://10.0.0.236/trunk@79125 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 13:35:28 +00:00
jdunn%netscape.com
8a94c38ead adding newline at end of file (required by hp)
git-svn-id: svn://10.0.0.236/trunk@79114 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 10:50:50 +00:00
edburns%acm.org
fc704a0841 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


git-svn-id: svn://10.0.0.236/trunk@79099 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 08:22:31 +00:00
av%netscape.com
c415ffe1a1 Fixing Mac bustage
git-svn-id: svn://10.0.0.236/trunk@79093 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 07:16:07 +00:00
av%netscape.com
6cd48645de Part of 33105 fix, replaced direct calls to plugins by safe macro, r=serge
git-svn-id: svn://10.0.0.236/trunk@79086 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 06:13:56 +00:00
av%netscape.com
85da22b6b9 Part of 33105 fix, added a method to hsIPluginHost to handle bad plugins, r=serge
git-svn-id: svn://10.0.0.236/trunk@79085 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 06:03:37 +00:00
av%netscape.com
ebb6af908a Part of 33105 fix, first time in, macro for safe plugin calls implemented, r=serge
git-svn-id: svn://10.0.0.236/trunk@79083 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 05:56:28 +00:00
matt%netscape.com
7106079055 fix for bug 44036
r=pav


git-svn-id: svn://10.0.0.236/trunk@79060 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 04:52:50 +00:00
rayw%netscape.com
d9228441a4 Bug 37275, Changing value of all progids, and changing everywhere a progid
is mentioned to mention a contractid, including in identifiers.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79036 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 23:57:52 +00:00
edburns%acm.org
a7679fd4d8 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


git-svn-id: svn://10.0.0.236/trunk@78989 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 07:09:38 +00:00
edburns%acm.org
f12f878020 a=brendan,av
r=av
bug=50811

Should include "nsISupports.idl" not "nsPluginDefs.idl".


git-svn-id: svn://10.0.0.236/trunk@78987 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 07:07:18 +00:00
scc%mozilla.org
c0bfda9230 bug #50811, a=brendan, on behalf of edburns@sun.com
git-svn-id: svn://10.0.0.236/trunk@78983 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 06:45:33 +00:00
edburns%acm.org
9d9e08fdbe 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


git-svn-id: svn://10.0.0.236/trunk@78980 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 06:40:57 +00:00
scc%mozilla.org
e5e006543d if you want a pointer to the characters, you're going to have to |.get()| it
git-svn-id: svn://10.0.0.236/trunk@78957 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:48:08 +00:00
cls%seawood.org
0ad20b5822 Change MDDEPDIR to fix a VPATH issue in srcdir builds.
git-svn-id: svn://10.0.0.236/trunk@78932 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 23:37:16 +00:00
ruslan%netscape.com
5a65d19fea proxy.ssl.connect pref should be always set to true; a=gagan
git-svn-id: svn://10.0.0.236/trunk@78909 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 21:42:54 +00:00
jeff.dyer%compilercompany.com
77c82c67ad FALSE -> PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@78871 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:44:48 +00:00
jeff.dyer%compilercompany.com
b40292e6b9 FALSE -> PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@78867 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:22:52 +00:00
jeff.dyer%compilercompany.com
d227ddb376 b=45692 r=edburns a=brendan: Enable liveconnect security.
git-svn-id: svn://10.0.0.236/trunk@78864 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 11:47:42 +00:00
warren%netscape.com
e8ba31ee50 Fixed error code.
git-svn-id: svn://10.0.0.236/trunk@78848 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 05:11:11 +00:00
dimator%netscape.com
2e1bf42a3f Changing default collect address book maximum from 200 to 700 cards. r=putterman
git-svn-id: svn://10.0.0.236/trunk@78826 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 01:53:20 +00:00
cls%seawood.org
646244734a OS_ARCH does not set release numbers
git-svn-id: svn://10.0.0.236/trunk@78726 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 08:08:24 +00:00
cls%seawood.org
e66480e1b7 Remove unneeded dep that's breaking old gnu makes
git-svn-id: svn://10.0.0.236/trunk@78721 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 06:26:48 +00:00
cls%seawood.org
5a43db5750 Fixing problem of standalone compoennts always building on every build pass. Adding objs.mk files to give better dependency handling. Bug #49937
git-svn-id: svn://10.0.0.236/trunk@78711 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 04:13:16 +00:00
cls%seawood.org
e76d6bcfa7 Make the ifdef match the comment here as well
git-svn-id: svn://10.0.0.236/trunk@78698 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 01:22:45 +00:00
ccarlen%netscape.com
631d0c38a2 Fix for Win95 machines which don't have APP_DATA dir
r=racham


git-svn-id: svn://10.0.0.236/trunk@78632 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 15:31:27 +00:00
rich.burridge%sun.com
60ae2bdd0c Fix to enable XPInstall to build/run on the Solaris platform.
r=sgehani@netscape.com  a=brendan@mozilla.org
BugId: #43080.


git-svn-id: svn://10.0.0.236/trunk@78627 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 14:18:48 +00:00