90 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
661029441c Correct line endings (CR-LF to LF), fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@96103 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 02:43:38 +00:00
mkaply%us.ibm.com
0ef728fdb8 Unix bustage from peterl
git-svn-id: svn://10.0.0.236/trunk@96102 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 02:33:30 +00:00
dbaron%fas.harvard.edu
55a756c29a Fix windows bustage (hopefully) by removing extra ^M.
git-svn-id: svn://10.0.0.236/trunk@96101 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 02:21:43 +00:00
peterlubczynski%netscape.com
2c07697623 Fix for bug 82415 nsIPluginStreamListener changed! r=dougt sr=attinasi a=dbaron
git-svn-id: svn://10.0.0.236/trunk@96096 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 01:21:05 +00:00
dougt%netscape.com
3ab5958916 Implements NPN_RequestRead(). Bug number 53363. r=peterl@netscape.com, sr=attinasi@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@95714 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 22:32:45 +00:00
av%netscape.com
f05d8ec049 For 73856, adding new header file to the list of files to be exported, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91178 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:41:19 +00:00
av%netscape.com
09c8488159 For 73856, new private interface for the plugin host, first time in, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91177 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:35:57 +00:00
av%netscape.com
2d89d9e3a4 For 73856, adding new values to nsPluginInstanceVariable enum type, sr=vidur, ra=av
git-svn-id: svn://10.0.0.236/trunk@91175 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 21:33:17 +00:00
joe.chou%eng.sun.com
7ed08b37f7 After converting nsIPluginManager.h to nsIPluginManager.idl (64297, already checked in), the original nsIPluginManager.h is no longer neede.
git-svn-id: svn://10.0.0.236/trunk@91151 18797224-902f-48f8-a5cc-f745e15eee43
2001-04-03 19:09:39 +00:00
joe.chou%eng.sun.com
ef0e4bc915 Re-checkin fix of bug 64296 after updating the Mac file, build/mac/build_scripts
/MozillaBuildList.pm.

bug=64296
r=edburns
sr=waterson

This checkin idlifies some files in the plugin hierarchy.

The following files are in this checkin.

build/mac/build_scripts/MozillaBuildList.pm
modules/oji/public/MANIFEST
modules/oji/public/MANIFEST_IDL
modules/oji/macbuild/ojiIDL.mcp
modules/plugin/public/MANIFEST
modules/plugin/public/MANIFEST_IDL
modules/plugin/macbuild/pluginIDL.mcp
modules/oji/public/Makefile.in
modules/oji/public/makefile.win
modules/oji/public/nsIJVMPluginInstance.idl
modules/plugin/public/Makefile.in
modules/plugin/public/makefile.win
modules/plugin/public/nsIPluginManager.idl


git-svn-id: svn://10.0.0.236/trunk@90831 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-30 05:00:56 +00:00
bryner%uiuc.edu
a90edd2fb0 Backing out joe.chou@eng.sun.com's changes, they broke the Mac. r=sdagley.
git-svn-id: svn://10.0.0.236/trunk@90475 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 03:49:31 +00:00
joe.chou%eng.sun.com
ca525acad2 bug=64296
r=edburns
sr=waterson

This checkin idlifies some files in the plugin hierarchy.

The following files are in this checkin.

build/mac/build_scripts/MozillaBuildList.pm
modules/oji/public/MANIFEST
modules/oji/public/MANIFEST_IDL
modules/oji/macbuild/ojiIDL.mcp
modules/plugin/public/MANIFEST
modules/plugin/public/MANIFEST_IDL
modules/plugin/macbuild/pluginIDL.mcp
modules/oji/public/Makefile.in
modules/oji/public/makefile.win
modules/oji/public/nsIJVMPluginInstance.idl
modules/plugin/public/Makefile.in
modules/plugin/public/makefile.win
modules/plugin/public/nsIPluginManager.idl


git-svn-id: svn://10.0.0.236/trunk@90461 18797224-902f-48f8-a5cc-f745e15eee43
2001-03-27 00:37:58 +00:00
beard%netscape.com
362aa398db [not part of build] builds "classic" (non-Carbon) plugin support library.
git-svn-id: svn://10.0.0.236/trunk@86400 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 00:40:28 +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
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
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
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
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
waterson%netscape.com
9ea597c1b1 Bug 45698. Land PLUGIN_LOVE_2000_07_17_BRANCH: implement XPCOM plugins. r=av
git-svn-id: svn://10.0.0.236/trunk@74624 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-22 01:34:13 +00:00
mccabe%netscape.com
d02312ed59 Makefile fix, thanks to Dan Veditz. Should fix bustage.
git-svn-id: svn://10.0.0.236/trunk@72171 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 02:40:00 +00:00
mccabe%netscape.com
552b1a1104 Backing out for now to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@72170 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 02:33:45 +00:00
mccabe%netscape.com
35280d6bef Fix to 39911, which nsbeta+ 38495 depends on.
Build nsIScriptablePlugin.idl on Unix and Windows.

a=beard


git-svn-id: svn://10.0.0.236/trunk@72166 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 01:21:39 +00:00
mccabe%netscape.com
984f9b048c Part of fix for 39911, which is a dependency of nsbeta+ bug 38495.
Interface for plugins to expose to advertise a scriptable peer object and the interface that XPConnect should expose it with.

r=sechevarria@beatnik.com,beard@netscape.com
a=beard@netscape.com

NOTE This is not yet built on any platform.


git-svn-id: svn://10.0.0.236/trunk@72163 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-14 01:04:06 +00:00
warren%netscape.com
c7bdf7e501 Lowercased handleEvent
git-svn-id: svn://10.0.0.236/trunk@70826 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-25 08:29:10 +00:00
warren%netscape.com
cf7701ec8a New beta-quality Plugin API (now in IDL!).
git-svn-id: svn://10.0.0.236/trunk@70561 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-20 20:03:36 +00:00
av%netscape.com
9889e4de2b #26893, moved GetDOMElement from nsIPluginTagInfo to nsIPluginTagInfo2.h
git-svn-id: svn://10.0.0.236/trunk@66316 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:44:56 +00:00
pavlov%netscape.com
4c7207106a fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@62902 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 07:42:31 +00:00
pavlov%netscape.com
936a018533 add defined(RHAPSODY) around the XP_MAC lines
git-svn-id: svn://10.0.0.236/trunk@62890 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-14 06:16:13 +00:00
mkaply%us.ibm.com
1a08d30a61 # 25555
r= beard@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61785 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-28 15:00:30 +00:00
av%netscape.com
e05d740183 Bug 22598. r=vidur
git-svn-id: svn://10.0.0.236/trunk@56781 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-05 01:18:38 +00:00
dmose%mozilla.org
0efb7c174c updated xPL license boilerplate to v1.1, a=chofmann@netscape.com,r=endico@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@52910 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:54 +00:00
briano%netscape.com
1be96e2703 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47265 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-14 02:51:42 +00:00
cyeh%netscape.com
e066f641bc Remove IGNORE_MANIFEST=1. It doesn't do anything and it confuses people.
git-svn-id: svn://10.0.0.236/trunk@45411 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-01 01:24:51 +00:00
beard%netscape.com
aed0c41533 reverting GetDocumentBase() to be consistent with other accessors. If we decide to change this, let's change ALL of them.
git-svn-id: svn://10.0.0.236/trunk@41935 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-03 02:51:39 +00:00
beard%netscape.com
6c1052d0ba sizeof(mode) field was dependent on compiler settings, now nsPluginPrint.mode is always a PRUint16.
git-svn-id: svn://10.0.0.236/trunk@41861 18797224-902f-48f8-a5cc-f745e15eee43
1999-08-02 21:44:54 +00:00
hoa.nguyen%intel.com
cee5e76d6e Added #define NS_INLINE_PLUGIN_PROGID_PREFIX "component://netscape/inline-plugin/" to be used a the prefix for the ProgID of all plugins.
git-svn-id: svn://10.0.0.236/trunk@40372 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 23:49:51 +00:00
beard%netscape.com
3812cbbdf7 added GetIID() accessor
git-svn-id: svn://10.0.0.236/trunk@39810 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-17 01:57:10 +00:00
warren%netscape.com
2f522c1be0 More necko changes. Changed nsIPluginTagInfo2::GetDocumentBase to copy string.
git-svn-id: svn://10.0.0.236/trunk@36581 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-23 19:55:21 +00:00
beard%netscape.com
40ffb6fae1 added GetJSContext()
git-svn-id: svn://10.0.0.236/trunk@30824 18797224-902f-48f8-a5cc-f745e15eee43
1999-05-08 16:33:40 +00:00
beard%netscape.com
01376e94c6 added IID accessor, changed GetJavaClass() to have a JNIEnv* parameter, no longer inherits from nsIPlugin.
git-svn-id: svn://10.0.0.236/trunk@27791 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 02:10:05 +00:00
beard%netscape.com
339c93d08f added IID accessor, added GetJavaEnv() method.
git-svn-id: svn://10.0.0.236/trunk@27790 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 02:08:50 +00:00
beard%netscape.com
0f4244e2d0 added IID accessor, changed GetJavaClass() to have a JNIEnv* parameter.
git-svn-id: svn://10.0.0.236/trunk@27789 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-16 02:08:15 +00:00
beard%netscape.com
edb049b30e added GetJSThread(), to obtain the thread ID to send events to via nsIThreadManager::PostEvent().
git-svn-id: svn://10.0.0.236/trunk@27124 18797224-902f-48f8-a5cc-f745e15eee43
1999-04-12 03:14:19 +00:00
beard%netscape.com
27e9c3208e removed GetJSWindow, moved to nsIPluginInstancePeer2
git-svn-id: svn://10.0.0.236/trunk@25035 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 03:32:22 +00:00
beard%netscape.com
cf7fc5c734 added nsIPluginInstancePeer2.h
git-svn-id: svn://10.0.0.236/trunk@25030 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 03:29:54 +00:00
beard%netscape.com
2cb165ea4a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@25024 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-25 02:45:38 +00:00
beard%netscape.com
849bde491e added GetJSWindow()
git-svn-id: svn://10.0.0.236/trunk@24975 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-24 05:46:23 +00:00
beard%netscape.com
5f070d8c6c added nsICookieStorage.h
git-svn-id: svn://10.0.0.236/trunk@24596 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-20 23:07:52 +00:00
beard%netscape.com
ec20be3608 added CreatePluginInstance, to create a plugin instance with a specified MIME type.
git-svn-id: svn://10.0.0.236/trunk@24133 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-14 20:09:12 +00:00
beard%netscape.com
284c311805 added IID_ACCESSOR
git-svn-id: svn://10.0.0.236/trunk@24042 18797224-902f-48f8-a5cc-f745e15eee43
1999-03-13 03:12:16 +00:00