Commit Graph
581 Commits
Author SHA1 Message Date
[email protected] 63b61fc0ba First Checked In. 2000-11-04 00:42:32 +00:00
[email protected] 7a6195b1c2 First Checked In. 2000-11-04 00:11:44 +00:00
[email protected] b66ff8dae4 Fixing bug 58095, retrieving right user agent string instead of harcoded one. Goes to the trunk only as per yesterday PDT meeting. r=valeski, r=serge, sr=waterson, a=av 2000-10-31 20:25:19 +00:00
[email protected] e4cc073106 #58462
r=jkobal, a=blizzard
OS/2 specific code to fix some plugin problems
2000-10-30 21:06:11 +00:00
[email protected] 0462ea4ce8 Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc. 2000-10-28 22:17:53 +00:00
[email protected] c4c9ff0261 Removing nslog.h from .c files 2000-10-28 01:11:36 +00:00
[email protected] 261841207f Adding diffs from obsolete nsPluginsDirUNIX.cpp to nsPluginsDirUnix.cpp 2000-10-28 00:52:29 +00:00
[email protected] 6fbcd2192b re-removing nsPluginsDirUNIX.cpp 2000-10-28 00:47:32 +00:00
[email protected] c64cd4dee6 readding nsPluginsDirUNIX.cpp 2000-10-28 00:47:08 +00:00
[email protected] 2606b110d2 Fixing printf problem. 2000-10-28 00:40:49 +00:00
[email protected] 9430f242c6 removing old file again 2000-10-28 00:18:20 +00:00
[email protected] cbbf5385d4 Removed extra 0 arg 2000-10-27 23:21:30 +00:00
[email protected] 7730ce0cd3 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
[email protected] faa6665213 Prevent call into plugin if plugin is stopped. Fixes crash in plugin while reload/navigate while plugin is streaming. bug 54186, r=av, sr=buster 2000-10-27 22:05:07 +00:00
[email protected] da1957f75c [email protected]
r=av
[email protected]
sr=waterson
bug= 56019
///////////////////////////////////////////////////////////////////////////////
// Currently, in the MIME type info passed in by plugin, a ';' is used as the
// separator of two MIME types, and also the sparator of a version in one MIME
// type. For example:
// "application/x-java-applet;version1.3::java(TM) plugin;application/x-java-
// applet...".
// The ambiguity of ';'  causes the browser fail to parse the MIME types
// correctly.
//
// This method parses the MIME type input, and replaces the MIME type
// separators with '|' to eliminate the ambiguity of ';'. (The Windows version
// also uses '|' as the MIME type separator.)
//
// Input format: "...type[;version]:[extension]:[desecription];..."
// Output format: "...type[;version]:[extension]:[desecription]|..."
//
static void SetMIMETypeSeparator(char *minfo)
{
2000-10-26 00:12:38 +00:00
[email protected] 72c7a48f26 Bug 57210, sr=waterson, r=edburns, r=serge. Fixing crash when plugin reports not file exts or mime descriptions not matching to mime types on the start up scan. 2000-10-23 00:03:19 +00:00
[email protected] 4a226e748f Get and send plugin MIME type, fix for bug 54205 r=sfraser a=buster 2000-10-17 20:57:36 +00:00
[email protected] c9f3aba3c7 Use same define for all platforms. Fix for bug #45697 r=av, sr=scc, a=rtm++. 2000-10-17 18:04:47 +00:00
[email protected] 1caef73eff IRIX/SunOS breakge on ports
C++ comments in a header included by a C file
Come on guys, this is really basic stuff here
2000-10-17 00:13:01 +00:00
[email protected] e72f739d0b 50523: Remove (most) Netscape branding. a=av, sr=scc. 2000-10-15 22:03:54 +00:00
[email protected] 00b142ed3d Fix #54778 - Make legacy plugins on Mac work from the "Plug-ins" folder. r=av,sr=sfraser,scc. 2000-10-13 18:59:05 +00:00
[email protected] ec387c127b fix for bug 45162 new plugins shouldn't use GdkSuperWin's, but instead should use XIDs. sr=blizzard r=valeski 2000-10-13 01:10:21 +00:00
[email protected] a125c0be95 Fix Un*x bustage (typo in last patch, oops, sorry!) 2000-10-12 04:49:28 +00:00
[email protected] acd5f8a281 Fix AIX build bustage - these constants are already defined in system header files 2000-10-12 04:07:45 +00:00
[email protected] 647e1b9da6 Bug 48483: Fix HPUX bustage for Unix default plugin, fix thanks to wtc (added #ifdef guards to previous checkin per review by wtc, will not affect build) 2000-10-12 01:11:38 +00:00
[email protected] 4f7293ba62 Bug 48483: Fix HPUX bustage for Unix default plugin fix thanks to wtc, r=jdunn,pollmann sr=mscott 2000-10-12 00:20:34 +00:00
[email protected] 2fd18dcfaa bug=54291
a=brendan
r=edburns, scc

This checkin does three things:

1. Makes it so on Unix the user can set the env var NS600_PLUGIN_PATH to point
to a directory that will be used as the location for searching for plugins.

2. Removes nsPluginsDirUNIX.cpp and replaces it with nsPluginsDirUnix.cpp

3. Correctly formats nsPluginsDirUnix per brendan's recommendation.
2000-10-11 22:33:20 +00:00
[email protected] de5caf005a Bug 48483: Unix default plugin, fix for OpenVMS bustage [email protected] [email protected] 2000-10-10 21:01:14 +00:00
[email protected] dc44e9b650 bug=
a=brendan
r=av

This bug fix makes it so nsPluginHostImp::FindProxyForURL()
honors ProxyAutoConfig settings.

It also cleans things up per Brendan.
2000-10-05 07:58:51 +00:00
[email protected] ab30b8cfa7 Fixing 53451. Added retun failure when plugin retuns zero on NPP_WriteReady call, r=waterson 2000-09-29 00:46:18 +00:00
[email protected] e3082ee289 Some platforms include a version number for their dll suffixes. Use SHARED_LIBRARY instead of hardcoding a library name & suffix. 2000-09-28 06:57:00 +00:00
[email protected] 9948b385a4 Only build nullplugin when MOZ_ENABLE_GTK is set because nullplugin requires gtk and is breaking our non-gtk ports. 2000-09-28 06:48:02 +00:00
[email protected] 7bc61049c9 implementation of the null plugin for unix
checking in on behalf of stephen mak <[email protected]>
b=48483 [email protected] [email protected]
2000-09-27 23:44:02 +00:00
[email protected] f3301972f4 Fix for 44692, allowing default plugin guess about mime type by extension, a=mscott 2000-09-22 06:31:29 +00:00
[email protected] 1a32c71e21 Fix for 53399, check for null-pointer to avoid crash, by sean, r=av, a=waterson 2000-09-22 06:17:28 +00:00
[email protected] 6323b11027 This should fix the redness 2000-09-22 01:48:05 +00:00
[email protected] 0a5d96ad36 Fixing #36089. Allowing Mac browse through both 'Plugins' and 'Plug-ins' folders, a=waterson 2000-09-22 00:58:46 +00:00
[email protected] af3edef261 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 <[email protected]>

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
[email protected] 77cfafd195 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
[email protected] b7ff89147f Part of 33105 fix, added option not to show Bad Plugin warning again, r=serge 2000-09-14 23:58:17 +00:00
[email protected] 13cf732a0e 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
[email protected] 90edcbdbf8 adding newline at end of file (required by hp) 2000-09-14 10:50:50 +00:00
[email protected] ae81174800 a=brendan, ekrock
r=av, [email protected]
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
[email protected] a847b5deb0 Fixing Mac bustage 2000-09-14 07:16:07 +00:00
[email protected] 761a9f1960 Part of 33105 fix, replaced direct calls to plugins by safe macro, r=serge 2000-09-14 06:13:56 +00:00
[email protected] 16ea5ebff4 Part of 33105 fix, added a method to hsIPluginHost to handle bad plugins, r=serge 2000-09-14 06:03:37 +00:00
[email protected] 6a2e2ed173 Part of 33105 fix, first time in, macro for safe plugin calls implemented, r=serge 2000-09-14 05:56:28 +00:00
[email protected] c6334366cb 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
[email protected] 3892a7af07 a=brendan,av
r=av
bug=50811

This bug fix was suggested by Stanley Ho <[email protected]>.

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
[email protected] c6d2b49799 a=brendan,av
r=av
bug=50811

Should include "nsISupports.idl" not "nsPluginDefs.idl".
2000-09-13 07:07:18 +00:00