Commit Graph

2447 Commits

Author SHA1 Message Date
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
edburns%acm.org
757fe3cde1 r=av
a=waterson
bug=51919

This fix makes it so nsIPluginManager::PostURL() works correctly in the
case of a null target and non-null streamListener.

The fix was to add parameters to NewPluginURLStream() for headers and
post data:

   NS_IMETHOD
-  NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance, nsIPluginStreamListener *aListener);
+  NewPluginURLStream(const nsString& aURL, nsIPluginInstance *aInstance,
+                     nsIPluginStreamListener *aListener,
+                     void *aPostData = nsnull, PRUint32 aPostDataLen = 0,
+                     const char *aHeadersData = nsnull,
+                     PRUint32 aHeadersDataLen = 0);

And to add a new method to correctly send the headers to the channel:

+  NS_IMETHOD
+  AddHeadersToChannel(const char *aHeadersData, PRUint32 aHeadersDataLen,
+                      nsIChannel *aGenericChannel);

Files in this fix:

M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginHostImpl.h
2000-09-08 23:58:36 +00:00
dimator%netscape.com
29df80422c Adding aging to collected address book. bug 46343. r=mscott 2000-09-08 22:56:08 +00:00
jband%netscape.com
2730e37efd warren's fix for the new/free mismatch undid kin's fix for the same problem. Also fix an off by one in the backwards 'for' loop. r=warren 2000-09-08 09:36:35 +00:00
warren%netscape.com
161e98314b Bug 50844. Fixed mismatched memory free. 2000-09-08 04:39:17 +00:00
sfraser%netscape.com
830db60916 Fix build for kandrot. Export NR_RegSetBufferSize from libreg. 2000-09-08 03:52:11 +00:00
kandrot%netscape.com
ec8f5ceddd Fix for bug #46709. Missed this file in checkin.
r=rayw
2000-09-08 02:44:13 +00:00
kandrot%netscape.com
5899bf563d Fix for bug #46709.
Allows buffer size of registry to change.

r=rayw
2000-09-08 01:53:15 +00:00
kandrot%netscape.com
e89ce829b0 Fix for bug #46709
Allows registry buffer size to be modified.  Increases buffer size during
initial start up, then decreases size.

r=rayw
2000-09-08 01:51:45 +00:00
mscott%netscape.com
81b816da2e Bug #43556 --> remove obsolete reference to old class id for the mime service. use the new one.
r=valeski
2000-09-08 00:24:13 +00:00
radha%netscape.com
e3853c347c Fix for bug # 43871. Pref to disable/enable autocomplete. r=ducarroz. 2000-09-07 21:19:36 +00:00
kin%netscape.com
872a42a450 Fix for bug #50927: UMR and FMM: nsJARChannel::GetContentType().
Added check for NULL mJAREntry and we now free filename with 'delete'.
r=warren@netscape.com
2000-09-07 19:31:10 +00:00
morse%netscape.com
f1dd1c89b4 bug 51338, cookie nag box not modal, r=mstoltz 2000-09-07 07:00:36 +00:00
tor%cs.brown.edu
027dad8637 Output console warning if chrome images are abusing alpha (8-bit
channel to represent binary alpha or fully opaque 1-bit alpha).
r=bryner, a=brendan.
2000-09-06 04:42:38 +00:00
pnunn%netscape.com
31041e63eb bug#50778: not a fix, but ifdef code to switch "pin chrome" on&off. 2000-09-06 00:23:46 +00:00
cata%netscape.com
a0b88e8a8c Fix for bug #47341 r=ftang a=ftang. 2000-09-05 23:54:59 +00:00