Commit Graph

729 Commits

Author SHA1 Message Date
disttsc%bart.nl
a6f2f5861a Mass REQUIRES update to synch up with string lib and xul changes in an attempt to fix senna bustage. r=jst, sr=cls 2001-02-22 09:35:51 +00:00
dougt%netscape.com
128f95aa9b Relanding Necko Changes.
Revising nsIChannel to allow for overlapped i/o. This consists of three parts:

1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols). The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-21 20:38:08 +00:00
peterlubczynski%netscape.com
0363d9beec Fix for bug 59394. Number of cached plugins is now a pref:
browser.plugins.max_num_cached_plugins or defaults to 10. a=av sr=attinasi
2001-02-14 23:03:47 +00:00
mkaply%us.ibm.com
0fbd243daa OS/2 only
r=mkaply, a=blizzard
Default (npnul) plugin for OS/2
2001-02-14 00:29:14 +00:00
mkaply%us.ibm.com
a5c4e94461 OS/2 only
r=mkaply, a=blizzard
Default (npnul) plugin for OS/2
2001-02-14 00:17:52 +00:00
pinkerton%netscape.com
d465909997 carbon changes. r=pink/sdagley/beard. a=sfraser. 2001-02-13 21:48:26 +00:00
dprice%netscape.com
997fb091c7 65845 first cut of the order files 2001-02-13 02:48:02 +00:00
disttsc%bart.nl
3d2d80d536 Back out dougt's channel changes 2001-02-12 03:14:23 +00:00
dougt%netscape.com
1b9ca82439 Revising nsIChannel to allow for overlapped i/o. This consists of three parts:
1. Factoring nsIChannel into a protocol specific part, the nsIChannel, and a socket specific, the nsITransport.
2. Derive the nsIChannel from a nsIRequest.
2. Changes the notification system from necko and the URILoader to pass the nsIRequest interface instead of nsIChannel interface.

This goal stems from wanting to be able to have active AsyncRead and AsyncWrite operations on nsSocketTransport.
This is desired because it would greatly simplify the task of maintaining persistent/reusable socket connections
for FTP, HTTP, and Imap (and potentially other protocols).  The problem with the existing nsIChannel interface is
that it does not allow one to selectively suspend just one of the read or write operations while keeping the other active.

The full details of the change on written up in the netlib newsgroup.

r=darin@netscape.com
sr=rpotts@netscape.com
2001-02-10 00:16:26 +00:00
shaver%mozilla.org
3ba4fe9def fix plugger crash by coping with trailing MIME-list separator (#60844, r=av, sr=blizzard) 2001-02-07 01:38:52 +00:00
peterlubczynski%netscape.com
df534c7680 Allow for a common directory among installs for scanning for plugins bugscape 3863 a=av sr=attinasi 2001-02-07 01:13:01 +00:00
beard%netscape.com
d46122ab31 [not part of build] builds "classic" (non-Carbon) plugin support library. 2001-02-07 00:40:28 +00:00
beard%netscape.com
9d41f60b07 [not part of build] builds "classic" (non-Carbon) plugin support library. 2001-02-06 23:49:16 +00:00
rods%netscape.com
baed08e917 Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi
2001-02-06 23:03:17 +00:00
edburns%acm.org
983f562237 bug 49336
r=av
sr=waterson

This code makes sure that if the prefs say to USE DIRECT instead of using
a proxy, the plugin sees it that way.
2001-02-03 02:56:28 +00:00
av%netscape.com
854646027d Bug 61388 -- implementing refresh plugins mechanism without restarting, rs=waterson, r=peterl, a=r=av 2001-02-02 23:48:17 +00:00
edburns%acm.org
9663d702fb bug:66729
sr=waterson
r=akkana
Change PRUint32 to PRInt32.
2001-01-30 20:39:55 +00:00
jgaunt%netscape.com
403987224a bug# 62489 r=bnesse@netscape.com sr=buster@netscape.com a=av@netscape.com
population of filename for plugins at load time, and freeing of that variable as well.
2001-01-23 00:10:38 +00:00
jdunn%netscape.com
b638847c96 fixing the issue of "delete [] (void*)". This is wrong.
since the pointer was 'newed' as a char *, we need to
delete a (char *)

No bug for this... but very similar to
# 34040
r= cls@seawood.org Joe.Chou@eng.sun.com
2001-01-19 01:52:33 +00:00
rich.burridge%sun.com
bb20fc7276 Fix to allow applet doing POST to an https connection over a proxy to work.
r=pollman@netscape.com
sr=waterson@netscape.com
Bugid #60228
2001-01-16 22:53:39 +00:00
mkaply%us.ibm.com
3efe8144c4 r=cls
SHORT_LIBNAME not needed here anymore - gkplugin is 8 chars - fixes OS/2 fullscreen plugins
2001-01-15 15:09:32 +00:00
peterlubczynski%netscape.com
02f4528f8d Fix regression. bug 65162 a=av sr=vidur 2001-01-12 23:45:03 +00:00
peterlubczynski%netscape.com
0402acedf2 Fix for reading content-type header before using default plugin bug 54437 a=av sr=buster 2001-01-10 23:49:19 +00:00
sean%beatnik.com
a3bff791d8 Address npsimple plugin bug discovered by bug 63243. Calling the window proc directly is not safe as the HWND might be ANSI or Unicode. Call indirectly via CallWindowProc. a=av sr=roc+moz 2001-01-10 04:22:08 +00:00
peterlubczynski%netscape.com
d5465517e8 Top crash fix. Null pointer check on mDocument. bug 62579 a=av sr=buster 2001-01-09 00:39:46 +00:00
bryner%uiuc.edu
69e9b90bc6 Removing dead .toc files. Not part of build. a=sfraser. 2001-01-03 01:32:06 +00:00
sspitzer%netscape.com
a8d656a021 ignore generated Makefile, no reviewer. 2000-12-30 21:09:11 +00:00
sspitzer%netscape.com
ac7fdaf776 wrap more printfs with #ifdef DEBUG_edburns. no reviewer. 2000-12-30 21:08:11 +00:00
sspitzer%netscape.com
9b03137d9d making it so only edburns sees his debugging printfs. no reviewer. 2000-12-30 20:46:17 +00:00
bryner%uiuc.edu
9a961598e2 Removing dead references to old header files that will be going away for bug 38061. r=jag, sr=cls. 2000-12-29 22:41:22 +00:00
timeless%mac.com
a60e75dad5 J:\DOCUMENT\Josh\LOCALS~1\Temp\4 2000-12-27 09:32:05 +00:00
bryner%uiuc.edu
a2bc722f32 Removing unused old plugin code. Not part of build. r=av, sr=cls. 2000-12-27 00:22:36 +00:00
av%netscape.com
397475c0d3 Addressing bug 60064, patch by lsv@sparc.spb.su, sr=blizzard, a=av 2000-12-12 01:51:12 +00:00
peterlubczynski%netscape.com
46d8aabec1 Set lastModified attribute for a plugin stream b=58134 a=av sr=buster 2000-12-12 01:00:28 +00:00
peterlubczynski%netscape.com
589ae643ef Prevents the call into the plugin if the plugin hasn't been already
initilized. bug=58823 r=av
2000-12-11 23:00:45 +00:00
peterlubczynski%netscape.com
d061474443 Set unknown length of stream to -1 bug 59571 a=av sr=buster 2000-12-11 22:54:54 +00:00
dbaron%fas.harvard.edu
cafe8ecc88 Fix leak of nsMemoryImpl from ns4xPlugin::CreatePlugin. b=56584 r=av@netscape.com sr=waterson@netscape.com 2000-12-09 04:06:49 +00:00
av%netscape.com
bb2df1a0d2 Fixing 18568, addidng some QT specific stuff to avoid build errors, patch by johng@corel.com, sr=brendan, r=pollmann a=av 2000-11-30 22:01:45 +00:00
av%netscape.com
c481af889b Fixing bug 19617, prevent the default plugin to display multiple dialogs for the same mime type, patch by lsv@sparc.spb.su, sr=blizzard, a=av 2000-11-30 21:32:07 +00:00
danm%netscape.com
ecd9d0c4b3 store dialog pointer in safe place so it can be retrieved in the OK handler. bug 55261. r=av,hyatt,pavlov 2000-11-29 23:44:52 +00:00
cls%seawood.org
434edd6f33 Oops. Fixing bustage introduced by previous checkin. I forgot that XPIDL_MODULE is sometimes set by MODULE. r=blizzard Bug 59454 2000-11-21 00:18:46 +00:00
cls%seawood.org
66a18fcbbf Resurrect REQUIRES so that we have some sort of means to track intermodule dependencies. Bug #59454 r=blizzard@mozilla.org 2000-11-20 07:16:06 +00:00
edburns%acm.org
00e236caf0 bug=40088
r=edburns
sr=shaver
Author = Xiaobin Lu.
2000-11-17 22:22:47 +00:00
mkaply%us.ibm.com
63fb4378ea #58462
r=av, sr/a=none
OS/2 plugins need events too
2000-11-14 00:40:58 +00:00
mkaply%us.ibm.com
a64a03c486 #58491
r=av, sr/a=scc
Change legacy plugin interfaces to C not C++
2000-11-13 21:40:27 +00:00
bnesse%netscape.com
af0e6c13c3 Load the library on all platforms if it hasn't already been loaded. Fix for bug #57885 r=av, sr=waterson. 2000-11-13 18:42:43 +00:00
disttsc%bart.nl
87187c390c Moving nsIContentViewer over from webshell to docshell, converting from .h to .idl. Needed for bug 46200, r=moa=adam@netscape.com, a=alecf 2000-11-09 20:30:35 +00:00
dbaron%fas.harvard.edu
79ce786050 Fix leak of arrays allocated in GetPluginInfo. r=av@netscape.com sr=brendan@mozilla.org b=59159 2000-11-08 03:10:37 +00:00
jj%netscape.com
d35236198f First Checked In. 2000-11-04 00:42:32 +00:00
bnesse%netscape.com
3d81709e9f First Checked In. 2000-11-04 00:11:44 +00:00
av%netscape.com
772e0df749 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
mkaply%us.ibm.com
1aff5c6c56 #58462
r=jkobal, a=blizzard
OS/2 specific code to fix some plugin problems
2000-10-30 21:06:11 +00:00
warren%netscape.com
cd56c0575b 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
warren%netscape.com
b0843fb3cf Removing nslog.h from .c files 2000-10-28 01:11:36 +00:00
warren%netscape.com
1c65924ad2 Adding diffs from obsolete nsPluginsDirUNIX.cpp to nsPluginsDirUnix.cpp 2000-10-28 00:52:29 +00:00
warren%netscape.com
5753ca58a6 re-removing nsPluginsDirUNIX.cpp 2000-10-28 00:47:32 +00:00
warren%netscape.com
429db9c6a2 readding nsPluginsDirUNIX.cpp 2000-10-28 00:47:08 +00:00
warren%netscape.com
c433395ed3 Fixing printf problem. 2000-10-28 00:40:49 +00:00
cls%seawood.org
96988ac812 removing old file again 2000-10-28 00:18:20 +00:00
warren%netscape.com
0735771512 Removed extra 0 arg 2000-10-27 23:21:30 +00:00
warren%netscape.com
9a6d92a433 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
peterlubczynski%netscape.com
65e745be68 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
edburns%acm.org
fc8170442c 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)
{
2000-10-26 00:12:38 +00:00
av%netscape.com
02a80840d9 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
peterlubczynski%netscape.com
1fefa124a2 Get and send plugin MIME type, fix for bug 54205 r=sfraser a=buster 2000-10-17 20:57:36 +00:00
bnesse%netscape.com
6bafa9a564 Use same define for all platforms. Fix for bug #45697 r=av, sr=scc, a=rtm++. 2000-10-17 18:04:47 +00:00
mkaply%us.ibm.com
42308db283 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
mozilla.BenB%bucksch.org
dfc6d0d557 50523: Remove (most) Netscape branding. a=av, sr=scc. 2000-10-15 22:03:54 +00:00
sdagley%netscape.com
f8e7bf5cdc 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
pavlov%netscape.com
542939a025 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
pollmann%netscape.com
e1dfba94e9 Fix Un*x bustage (typo in last patch, oops, sorry!) 2000-10-12 04:49:28 +00:00
pollmann%netscape.com
f824ccc7ad Fix AIX build bustage - these constants are already defined in system header files 2000-10-12 04:07:45 +00:00
pollmann%netscape.com
0e643df6eb 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
pollmann%netscape.com
4c07649147 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
edburns%acm.org
69f3c83ed2 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
pollmann%netscape.com
ad0ba46cb9 Bug 48483: Unix default plugin, fix for OpenVMS bustage r=av@netscape.com a=brendan@mozilla.org 2000-10-10 21:01:14 +00:00
edburns%acm.org
74618bb511 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
av%netscape.com
fc336d6b4b Fixing 53451. Added retun failure when plugin retuns zero on NPP_WriteReady call, r=waterson 2000-09-29 00:46:18 +00:00
cls%seawood.org
962751d334 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
cls%seawood.org
dfbf4d99c1 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
akhil.arora%sun.com
2319351207 implementation of the null plugin for unix
checking in on behalf of stephen mak <smak@sun.com>
b=48483 r=pollmann@netscape.com a=brendan@mozilla.org
2000-09-27 23:44:02 +00:00
av%netscape.com
2f358f1418 Fix for 44692, allowing default plugin guess about mime type by extension, a=mscott 2000-09-22 06:31:29 +00:00
av%netscape.com
32790a3411 Fix for 53399, check for null-pointer to avoid crash, by sean, r=av, a=waterson 2000-09-22 06:17:28 +00:00
av%netscape.com
c988d614ec This should fix the redness 2000-09-22 01:48:05 +00:00
av%netscape.com
089f65cac9 Fixing #36089. Allowing Mac browse through both 'Plugins' and 'Plug-ins' folders, a=waterson 2000-09-22 00:58:46 +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
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
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
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
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
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
morse%netscape.com
f1dd1c89b4 bug 51338, cookie nag box not modal, r=mstoltz 2000-09-07 07:00:36 +00:00
edburns%acm.org
8ee33dddde This was tested on win32, and is known to build on win32 and solaris.
Right now, nsIPluginManager::PostURL() has parameters for
postHeadersLength and postHeaders.  However, nothing is being done with
these parameters.  This bug fix utilizes these params for their intended
purpose: to allow the plugin the ability to add HTTP headers to a POST
data stream.

Important assumptions made by this fix:

* postHeadersLength is the correct length for postHeaders.

* postHeaders is a buffer of headers in the form

  "HeaderName: HeaderValue\r\n"

  each header, including the last, MUST be followed by "\r\n".

To affect this fix I had to modify the following files:

M docshell/base/nsDocShell.cpp
M docshell/base/nsDocShell.h
M docshell/base/nsWebShell.cpp
M modules/plugin/nglsrc/nsPluginViewer.cpp
M docshell/base/nsWebShell.h
M layout/html/base/src/nsObjectFrame.cpp
M modules/plugin/nglsrc/nsIPluginInstanceOwner.h
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginInstancePeer.cpp
M webshell/public/nsILinkHandler.h

Basically, it involved clearing a path so the headers arguments can make
it down to nsIPluginInstanceOwner::GetURL()'s implementation in
nsObjectFrame.cpp, where an nsIInputStream is made of the headers.
2000-09-05 19:03:56 +00:00
dbaron%fas.harvard.edu
01f01c4890 Fixing scc's typo to fix harpoon orange, etc. r=scc 2000-09-04 01:19:36 +00:00
scc%mozilla.org
daa61fe5b5 we think the fix is in to support the original form, so back to the original form we go 2000-09-04 00:50:50 +00:00
scc%mozilla.org
90c34a3a99 and here we are, back to square one. 2000-09-03 08:25:02 +00:00
scc%mozilla.org
aa10bae8a2 I'll try anything, now 2000-09-03 03:25:42 +00:00
scc%mozilla.org
2accda54de OK, nothing has worked yet. It's time to roll out the big guns: |NS_READABLE_CAST| 2000-09-03 02:50:18 +00:00
scc%mozilla.org
15c68c67b7 hack to fix pravda and speedracer bustage 2000-09-03 01:38:38 +00:00
scc%mozilla.org
3093bd5ab5 hack to fix pravda bustage 2000-09-03 00:25:42 +00:00
locka%iol.ie
ecebe2ac21 API changes for embedding. b=46847, r=dougt, a=valeski 2000-08-25 18:39:46 +00:00
edburns%acm.org
6929c922f5 bug=36212
a=waterson,av
r=av,waterson

Here is what I believe to be the correct fix.
This post correspondes to the fix,
second iteration attachments.
M modules/plugin/nglsrc/nsIPluginInstanceOwner.h
M modules/plugin/nglsrc/nsPluginHostImpl.cpp
M modules/plugin/nglsrc/nsPluginInstancePeer.cpp
M modules/plugin/nglsrc/nsPluginViewer.cpp
M layout/html/base/src/nsObjectFrame.cpp

This checkin modifies nsIPluginInstanceOwner::GetURL
to have a length parameter for the post data.
2000-08-24 19:49:08 +00:00
saari%netscape.com
0920228fbd fix for 46938, make sure full content area plugins can still get key events once you've clicked on them 2000-08-24 05:04:06 +00:00
jst%netscape.com
9abec73fbe DOM string changes. All nsString& in DOM interfaces (and interfaces needed by DOM implementations) have been changed to nsAReadableString& and nsAWritableString&. String implementation additions (sanctioned by scc) to support DOM needs. Bug 49091. r=vidur,jst,scc 2000-08-23 17:27:06 +00:00
mccabe%netscape.com
4f49fe305a Further tweak to 39933.
Add a comment mentioning the possible need to implement nsISecurityCheckedComponent.
2000-08-23 00:24:07 +00:00
mccabe%netscape.com
29923e8750 Fix to 39933.
Make the sample plugin implement nsIScriptablePlugin, and update sample .html file with an (unused!) JavaScript evaluator for poking at the plugin.

r=jst
a=ekrock
2000-08-23 00:20:24 +00:00
warren%netscape.com
5135afda02 Removed reference to nsIBaseStream 2000-08-22 09:50:45 +00:00
warren%netscape.com
e05eef45e9 Bug 46777. Redesigned stream interfaces to allows stream observers to be decoupled from pipe implementation. Needed for embedding to fix 'spin' problem. r=rpotts,valeski,ruslan 2000-08-22 07:03:33 +00:00
av%netscape.com
037e5ee9c5 49515, fixing incorrect handling nsPluginInfo struct which prevented
Mac plugins from working, patch by beard, r=av
2000-08-21 21:31:28 +00:00
scc%mozilla.org
77d446201a fixing code that relied on implicit string construction 2000-08-19 21:44:26 +00:00
cltbld%netscape.com
a8b78d24bb Need to declare nsIFile to make WS 5.0 happy -cls 2000-08-19 05:44:34 +00:00
av%netscape.com
c4bedc79a7 Addressing #48856, added argument null-check before passing it to nsCStringKey::nsCStringKey()
patch by warren, r=av
2000-08-18 21:53:03 +00:00
av%netscape.com
8439416960 Part of 46490 fix, r=adamlock 2000-08-17 19:26:15 +00:00
warren%netscape.com
84b5fd67e3 Bug 46711. Removed nsAutoString travisty from nsStringKey. Introduced nsCStringKey. Made them both share the underlying string when possible. r=waterson 2000-08-10 06:19:37 +00:00
av%netscape.com
01ca1eb997 Fixing 39534, patch by sean, r=av 2000-08-07 22:10:07 +00:00
av%netscape.com
0ff6c8206b Fixing 47360, patch by sean@beatnik.com, r=av 2000-08-07 21:51:19 +00:00
mkaply%us.ibm.com
474c320967 r=mkaply, a=brendan
Tinderbox break - Should have been info.fExtensionArray
2000-08-03 02:20:17 +00:00
av%netscape.com
0c06d16845 Fixing Unix redness 2000-08-02 23:36:30 +00:00
av%netscape.com
a371acfc89 Fixing 45895, r=waterson 2000-08-02 23:01:35 +00:00
av%netscape.com
299bf1f85a Fixing 46573, r=serge 2000-08-02 21:35:45 +00:00
cls%seawood.org
01c0f7aed5 The ports tinderboxes were inconveniently down so this bustage was hidden for the past week. Bug #45698 2000-07-28 05:43:24 +00:00
warren%netscape.com
2b01440bc0 Factored string bundles out of necko. Fixes bug 42107 - need to fix string bundle init workaround. Also bug 40506 - nsIWebProgressListener needs status text. Status messages now work in mozilla and viewer with internationalized and parameterized text! Added temporary error architecture until bug 13423 can be fixed. Extended nsIStringBundleService to provide method to format status message. r=valeski,jband,tao. verified=mstoltz 2000-07-25 05:45:56 +00:00
waterson%netscape.com
f364059419 Brownian hacking to fix build bustage. 2000-07-22 03:17:55 +00:00
waterson%netscape.com
b9428404ee Bug 45698. Land PLUGIN_LOVE_2000_07_17_BRANCH. r=av 2000-07-22 02:11:04 +00:00
waterson%netscape.com
b83d0b4407 Bug 45698. Fix Win32 build bustage. Checked in from wrong machine. 2000-07-22 01:58:55 +00:00
waterson%netscape.com
3b56e5fda1 Bug 45698. Land PLUGIN_LOVE_2000_07_17_BRANCH: implement XPCOM plugins. r=av 2000-07-22 01:34:13 +00:00
edburns%acm.org
5b7c874d34 bug=23157
r=av
a=waterson

Don't use hard coded 2000.  Instead use sizeof(path).
2000-07-22 00:48:26 +00:00
edburns%acm.org
8bc3199379 bug=23157
ra=av
This fix makes it so the plugins directory is correctly located
in the embedding case.
2000-07-21 00:27:36 +00:00
edburns%acm.org
9969ad3c8a bug=43280
a=av
r=av

Add a "don't show this dialog again" feature to the
"No Default Plugin Dialog".  In addition, don't display the dialog
more than once per mime-type per session.
2000-07-20 22:53:32 +00:00
edburns%acm.org
0ac863d889 bug=16677
a=av
r=stanley.ho

This fix causes nsPluginHostImpl::FindProxyForURL to honor
the "no proxies for" list.
2000-07-20 19:09:50 +00:00
waterson%netscape.com
a9988fbc1f Bug 37622. The rest of the patch that I somehow missed the first time around. r=blizzard,pavlov 2000-07-20 01:40:54 +00:00
edburns%acm.org
e86c9acda8 a=av
r=av
bug=38848

This bug enables nsIPluginHostImpl::GetValue(nsPluginManagerVariable_XDisplay)
to function correctly.

Thanks to Chris Waterson.

This has been built on win32 and solaris.
2000-07-20 01:16:52 +00:00
waterson%netscape.com
eb10ce3a1a Bug 37622. Hackery to get <embed hidden='true'> to work. Check hidden attribute; if set, size to (0, 0) and don't create a widget. r=pavlov,blizzard. 2000-07-19 23:46:43 +00:00
waterson%netscape.com
a5fbd61475 Remove debugging cruft I left in. 2000-07-19 23:24:35 +00:00
waterson%netscape.com
b95b383548 Bug 37522. Implement ns4xPlugin::GetMIMEDescription() and ns4xPlugin::GetValue(); alter nsPluginsDirUNIX to use these routines (instead of directly calling the NP_* routine) while grovelling through 4.x plugins. r=av 2000-07-19 21:43:46 +00:00
Jerry.Kirk%Nexwarecorp.com
8edb23803e This test relies on GTK libraries and header files, it is not
buildable on other non-GTK unix builds, like Photon. This change to
the Makefile makes sure this test is only built if GTK is enabled.
r=cls
2000-07-17 13:06:50 +00:00
jst%netscape.com
e5da6444bc Fixing nsbeta2+ bug 44022. Loading javascript: URL's from a plugin wasn't always working. r=vidur@netscape.com 2000-07-13 02:44:14 +00:00
pavlov%netscape.com
3f7d6ee2fe 4.x unix plugin changes for bug 37477 r=pollmann, av 2000-07-11 21:44:39 +00:00
bnesse%netscape.com
9c230e7301 Moved code which was initalizing the memory allocation service from the constructor into the CreatePlugin function because it wasn't being called early enough for some plugins. Need to proceed on Bug 19931. r=av. 2000-07-11 20:08:05 +00:00