470 Commits

Author SHA1 Message Date
peterlubczynski%netscape.com
64bb7a8cde Top crash fix. Null pointer check on mDocument. bug 62579 a=av sr=buster
git-svn-id: svn://10.0.0.236/trunk@84621 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-09 00:39:46 +00:00
bryner%uiuc.edu
6f97e20f49 Removing dead .toc files. Not part of build. a=sfraser.
git-svn-id: svn://10.0.0.236/trunk@84289 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-03 01:32:06 +00:00
sspitzer%netscape.com
1293b62495 wrap more printfs with #ifdef DEBUG_edburns. no reviewer.
git-svn-id: svn://10.0.0.236/trunk@84239 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 21:08:11 +00:00
sspitzer%netscape.com
fa6ef96fd5 making it so only edburns sees his debugging printfs. no reviewer.
git-svn-id: svn://10.0.0.236/trunk@84236 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-30 20:46:17 +00:00
bryner%uiuc.edu
6b5c296cb7 Removing dead references to old header files that will be going away for bug 38061. r=jag, sr=cls.
git-svn-id: svn://10.0.0.236/trunk@84205 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-29 22:41:22 +00:00
peterlubczynski%netscape.com
f97aecfa0a Set lastModified attribute for a plugin stream b=58134 a=av sr=buster
git-svn-id: svn://10.0.0.236/trunk@83507 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-12 01:00:28 +00:00
peterlubczynski%netscape.com
5322f853e9 Prevents the call into the plugin if the plugin hasn't been already
initilized. bug=58823 r=av


git-svn-id: svn://10.0.0.236/trunk@83501 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 23:00:45 +00:00
peterlubczynski%netscape.com
997c62d20d Set unknown length of stream to -1 bug 59571 a=av sr=buster
git-svn-id: svn://10.0.0.236/trunk@83500 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-11 22:54:54 +00:00
dbaron%fas.harvard.edu
78991cf0e0 Fix leak of nsMemoryImpl from ns4xPlugin::CreatePlugin. b=56584 r=av@netscape.com sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@83438 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-09 04:06:49 +00:00
av%netscape.com
81af44f239 Fixing 18568, addidng some QT specific stuff to avoid build errors, patch by johng@corel.com, sr=brendan, r=pollmann a=av
git-svn-id: svn://10.0.0.236/trunk@83155 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-30 22:01:45 +00:00
cls%seawood.org
8373cf37d8 Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454
git-svn-id: svn://10.0.0.236/trunk@82809 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-21 00:18:46 +00:00
cls%seawood.org
6088dfbf6b Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@82785 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-20 07:16:06 +00:00
edburns%acm.org
7a396be25b bug=40088
r=edburns
sr=shaver
Author = Xiaobin Lu.


git-svn-id: svn://10.0.0.236/trunk@82752 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-17 22:22:47 +00:00
mkaply%us.ibm.com
aa394c6aa0 #58462
r=av, sr/a=none
OS/2 plugins need events too


git-svn-id: svn://10.0.0.236/trunk@82592 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-14 00:40:58 +00:00
mkaply%us.ibm.com
4142342d3e #58491
r=av, sr/a=scc
Change legacy plugin interfaces to C not C++


git-svn-id: svn://10.0.0.236/trunk@82578 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-13 21:40:27 +00:00
bnesse%netscape.com
097e775fd8 Load the library on all platforms if it hasn't already been loaded. Fix for bug #57885 r=av, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@82568 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-13 18:42:43 +00:00
disttsc%bart.nl
b34ed638cd Moving nsIContentViewer over from webshell to docshell, converting from .h to .idl. Needed for bug 46200, r=moa=adam@netscape.com, a=alecf
git-svn-id: svn://10.0.0.236/trunk@82496 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-09 20:30:35 +00:00
dbaron%fas.harvard.edu
04c231b23e Fix leak of arrays allocated in GetPluginInfo. r=av@netscape.com sr=brendan@mozilla.org b=59159
git-svn-id: svn://10.0.0.236/trunk@82416 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 03:10:37 +00:00
av%netscape.com
98f1460974 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
git-svn-id: svn://10.0.0.236/trunk@82103 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-31 20:25:19 +00:00
mkaply%us.ibm.com
d13aab492d #58462
r=jkobal, a=blizzard
OS/2 specific code to fix some plugin problems


git-svn-id: svn://10.0.0.236/trunk@82023 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-30 21:06:11 +00:00
warren%netscape.com
a8b9664a8c Bug 47207. Backing out logging/PRINTF changes until we can fix stopwatch.h, introduce double parens, etc.
git-svn-id: svn://10.0.0.236/trunk@81967 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 22:17:53 +00:00
warren%netscape.com
a0c507376a Adding diffs from obsolete nsPluginsDirUNIX.cpp to nsPluginsDirUnix.cpp
git-svn-id: svn://10.0.0.236/trunk@81908 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 00:52:29 +00:00
warren%netscape.com
9d5b061273 re-removing nsPluginsDirUNIX.cpp
git-svn-id: svn://10.0.0.236/trunk@81907 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 00:47:32 +00:00
warren%netscape.com
1c8bc82a36 readding nsPluginsDirUNIX.cpp
git-svn-id: svn://10.0.0.236/trunk@81906 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 00:47:08 +00:00
warren%netscape.com
b829671032 Fixing printf problem.
git-svn-id: svn://10.0.0.236/trunk@81905 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 00:40:49 +00:00
cls%seawood.org
11850acf77 removing old file again
git-svn-id: svn://10.0.0.236/trunk@81903 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-28 00:18:20 +00:00
warren%netscape.com
b725c37ce9 Removed extra 0 arg
git-svn-id: svn://10.0.0.236/trunk@81893 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 23:21:30 +00:00
warren%netscape.com
c6b67eceeb Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@81885 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:43:51 +00:00
peterlubczynski%netscape.com
e7c9040b5e 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
git-svn-id: svn://10.0.0.236/trunk@81883 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-27 22:05:07 +00:00
edburns%acm.org
e62ec5289e author=joechou@eng.sun.com
r=av
r=edburns@acm.org
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)
{


git-svn-id: svn://10.0.0.236/trunk@81769 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-26 00:12:38 +00:00
av%netscape.com
1c74bacf10 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.
git-svn-id: svn://10.0.0.236/trunk@81589 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-23 00:03:19 +00:00
peterlubczynski%netscape.com
22d2853050 Get and send plugin MIME type, fix for bug 54205 r=sfraser a=buster
git-svn-id: svn://10.0.0.236/trunk@81310 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 20:57:36 +00:00
bnesse%netscape.com
1bef179901 Use same define for all platforms. Fix for bug #45697 r=av, sr=scc, a=rtm++.
git-svn-id: svn://10.0.0.236/trunk@81299 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-17 18:04:47 +00:00
sdagley%netscape.com
107bbe078e Fix #54778 - Make legacy plugins on Mac work from the "Plug-ins" folder. r=av,sr=sfraser,scc.
git-svn-id: svn://10.0.0.236/trunk@81135 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 18:59:05 +00:00
pavlov%netscape.com
ad452e359d fix for bug 45162 new plugins shouldn't use GdkSuperWin's, but instead should use XIDs. sr=blizzard r=valeski
git-svn-id: svn://10.0.0.236/trunk@81092 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 01:10:21 +00:00
pollmann%netscape.com
e2a0a7c26c Fix Un*x bustage (typo in last patch, oops, sorry!)
git-svn-id: svn://10.0.0.236/trunk@81000 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 04:50:35 +00:00
pollmann%netscape.com
06b24f2bf7 Fix AIX build bustage - these constants are already defined in system header files
git-svn-id: svn://10.0.0.236/trunk@80997 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 04:07:45 +00:00
pollmann%netscape.com
5a7a80de57 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)
git-svn-id: svn://10.0.0.236/trunk@80988 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 01:11:38 +00:00
pollmann%netscape.com
56b3f3a359 Bug 48483: Fix HPUX bustage for Unix default plugin fix thanks to wtc, r=jdunn,pollmann sr=mscott
git-svn-id: svn://10.0.0.236/trunk@80984 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-12 00:20:34 +00:00
edburns%acm.org
f684ef784c 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.


git-svn-id: svn://10.0.0.236/trunk@80956 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 22:33:20 +00:00
edburns%acm.org
564f839ce8 bug=
a=brendan
r=av

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

It also cleans things up per Brendan.


git-svn-id: svn://10.0.0.236/trunk@80439 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-05 07:58:51 +00:00
av%netscape.com
4181c8bc8f Fixing 53451. Added retun failure when plugin retuns zero on NPP_WriteReady call, r=waterson
git-svn-id: svn://10.0.0.236/trunk@80115 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-29 00:46:18 +00:00
av%netscape.com
c6e1678052 Fix for 44692, allowing default plugin guess about mime type by extension, a=mscott
git-svn-id: svn://10.0.0.236/trunk@79858 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 06:31:29 +00:00
av%netscape.com
43504d4fc0 Fix for 53399, check for null-pointer to avoid crash, by sean, r=av, a=waterson
git-svn-id: svn://10.0.0.236/trunk@79856 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 06:17:28 +00:00
av%netscape.com
c82a187603 This should fix the redness
git-svn-id: svn://10.0.0.236/trunk@79800 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 01:48:05 +00:00
av%netscape.com
8c26ff9682 Fixing #36089. Allowing Mac browse through both 'Plugins' and 'Plug-ins' folders, a=waterson
git-svn-id: svn://10.0.0.236/trunk@79797 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 00:58:46 +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
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
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