Commit Graph

46 Commits

Author SHA1 Message Date
dougt@netscape.com
a70fce6f87 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
rods@netscape.com
e57f7d4be9 Printing of selected frameset frames and Iframes
Bug 66783 r=dcone sr=buster,attinasi
2001-02-06 23:03:17 +00:00
peterlubczynski@netscape.com
5ee6067adf Top crash fix. Null pointer check on mDocument. bug 62579 a=av sr=buster 2001-01-09 00:39:46 +00:00
disttsc@bart.nl
c4f11568a5 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
warren@netscape.com
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
warren@netscape.com
cbbf5385d4 Removed extra 0 arg 2000-10-27 23:21:30 +00:00
warren@netscape.com
7730ce0cd3 Bug 47207. Changing printf to PRINTF to use new logging facility. r=valeski,sr=waterson 2000-10-27 22:43:51 +00:00
edburns@acm.org
ae81174800 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
edburns@acm.org
c05e057a42 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
locka@iol.ie
eceb4c06f4 API changes for embedding. b=46847, r=dougt, a=valeski 2000-08-25 18:39:46 +00:00
edburns@acm.org
eced31d76a 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
213b5792ca 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
av@netscape.com
ffce77f1aa Fixing 47360, patch by sean@beatnik.com, r=av 2000-08-07 21:51:19 +00:00
waterson@netscape.com
9025a95ae1 Bug 45698. Land PLUGIN_LOVE_2000_07_17_BRANCH: implement XPCOM plugins. r=av 2000-07-22 01:34:13 +00:00
av@netscape.com
35aed86094 Addressing 22954, patch by amusil, r=av 2000-06-29 21:48:09 +00:00
rpotts@netscape.com
b03177ae34 DocShell cleanup. Removed the implementation of the unused nsIDocSHell::SetDocument() method and moved the implementation responsibility to the nsIContentViewer 2000-06-22 05:38:07 +00:00
scc@netscape.com
73cfb8980b making string conversions explicit 2000-04-03 11:20:35 +00:00
warren@netscape.com
a2fb078809 Necko API changes: primarily nsIChannel, changing initialization parameters to accessors. Got javascript: evaluation to happen at the right time (when AsyncRead is called) as well as on the right thread. 2000-03-29 03:58:50 +00:00
rhp@netscape.com
751a971a46 Changes to fix many bugs including quoting style size - vcard I18N fixes - compose fixes - etc - Bug #: 12505 25610 29806 30048 30744 31207 31589 2000-03-15 01:47:36 +00:00
tbogard@aol.net
1ca1064fef ContentViewer Initialization now take an nsIWidget instead of a native window. Set status using the nsIWebBrowserChrome interface instead of the old nsIBrowserWindow interface. 2000-03-11 01:25:34 +00:00
tbogard@aol.net
1c7bf629cf nsIPref is no longer passed around through inits on webshell, content viewers and presContext. In places where it is needed, it can be retrieved from the service manager. I removed a number of the getters and setters for prefs as the prefs will be the same from the service manager so we don't need getters. r=waterson a=rickg 2000-03-02 07:13:02 +00:00
dcone@netscape.com
fb837a9f39 support for regression testing. r=rods 2000-01-26 15:14:41 +00:00
tbogard@aol.net
75823eb78c Fixing some places when talking to the webshell object to start talking through the new docshell interfaces. 1999-12-18 02:09:29 +00:00
warren@netscape.com
3abca0bf7e Landing no_neckoutil2_branch. Bug #11159. Removes neckoutil_s.lib from build which helps beos and openvms. 1999-11-30 04:50:42 +00:00
buster@netscape.com
cd7c34c530 moved content-specific data and methods from nsIWebShell to appropriate content viewer interface
no bug number, this is for webshell redesign work
r=rickg, travis
1999-11-19 07:35:27 +00:00
tbogard@aol.net
e8b476b7bf Changed places where containers were set to use nsISupports instead of nsIContentViewerContainer. r=dp 1999-11-15 22:17:54 +00:00
tbogard@aol.net
11696e2a43 Reflect changes to nsIContentViewer::SetContainer and GetContainer API. r=pavlov 1999-11-14 10:12:21 +00:00
law@netscape.com
5235266ee3 Fix bustage by backing out some CallQueryInterface calls (for Travis); r=travis@netscape.com 1999-11-13 08:20:53 +00:00
tbogard@aol.net
9930c3cba0 Changed storage of of the container to hold simply nsISupports as the mContainer instead of nsIContentViewerContainer. Changed calls to QueryCapability to use the nsIInterfaceRequestor::GetInterface(). r=scc 1999-11-13 07:36:28 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
cls@seawood.org
824ba18df3 Removed unused NECKO ifdefs.
a=leaf
1999-11-02 23:34:03 +00:00
rpotts@netscape.com
99310e1cea Removed 2 *extra* calls to NS_RELEASE in failure cases... 1999-10-10 06:58:42 +00:00
warren@netscape.com
0e06959ae2 Fixed refcounting problem and possible out-of-memory condition. r=kipp 1999-10-10 02:08:08 +00:00
av@netscape.com
1543f96cf4 Fixing dereferencing null-pointer. Caused crash, #14496 1999-10-01 20:10:39 +00:00
mccabe@netscape.com
915593e1ab NS_DECL_NSIFOO spam for nsIRequest, nsIChannel, nsIStreamListener, nsIStreamObserver, all from netwerk/
convert manual interface method declarations in implementation class to NS_DECL_NSIFOO macro.
1999-08-22 13:26:18 +00:00
warren@netscape.com
489c1d2df9 Added channel argument to nsIStreamObserver/nsIStreamListener/nsIProgressEventSink methods. 1999-07-07 08:08:40 +00:00
warren@netscape.com
1496c3eec1 Renamed OnStartBinding/OnStopBinding to OnStartRequest/OnStopRequest (removing the redundant ones from necko). Numerous necko fixes. Necko now using nsIPrompt interface instead of nsINetSupport. 1999-07-01 19:30:20 +00:00
mscott@netscape.com
c418673639 necko change: nsIStreamListener::OnDataAvailable now takes a nsIInputStream instead of a nsIBufferInputStream. 1999-06-28 20:43:28 +00:00
warren@netscape.com
0dddd47c95 Necko ifdefs for layout and rdf. 1999-06-26 06:36:26 +00:00
warren@netscape.com
753ac43fff Renamed nsIURL to nsIURI in preperation for necko. More NECKO ifdefs too. 1999-06-23 03:29:44 +00:00
valeski@netscape.com
3737aa0d15 NECKO ifdef (ifdef'd _off_ by default) this checkin should not impact anything. checkin approved. If someone runs into a problem, call me at 303.546.0061. 1999-06-18 17:34:08 +00:00
dcone@netscape.com
8c4eeb6d8e added a webshell parameter to the PrintContent call, unhooked the PresShell from the
document before deletion.  Fixed a leak.
1999-05-14 14:40:59 +00:00
neeti@netscape.com
b8c43a5bb8 Fixed SetEnableRendering() in nsDocumentViewer.cpp
Initialized mEnableRendering in constructors of nsDocumentViewer.cpp and nsPlugin.cpp to a default value of PR_TRU
Do EnableRefresh only if mEnableRendering is set to true in nsHTMLContentSink.cpp,nsXMLContentSink.cpp,
nsXMLContentSink.h
1999-05-13 20:27:47 +00:00
dcone@netscape.com
9c428b7a1e added a PrintContent() method to these classes 1999-05-12 13:32:09 +00:00
kipp@netscape.com
a5d1783ab8 Implement support for SetEnableRendering/GetEnableRendering 1999-05-07 19:26:23 +00:00
kipp@netscape.com
43604f549c Moved from webshell/src 1999-05-06 19:25:40 +00:00