243 Commits

Author SHA1 Message Date
dougt%netscape.com
175245e2de 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


git-svn-id: svn://10.0.0.236/trunk@87587 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-21 20:38:08 +00:00
radha%netscape.com
af35982fcc Fix for bug # 39938. Client side redirection messes up SH. r=rpotts, adamlock
git-svn-id: svn://10.0.0.236/trunk@87104 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-15 19:10:16 +00:00
disttsc%bart.nl
03f69c5003 Back out dougt's channel changes
git-svn-id: svn://10.0.0.236/trunk@86793 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-12 03:14:23 +00:00
dougt%netscape.com
7af79c83df 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


git-svn-id: svn://10.0.0.236/trunk@86717 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-10 00:16:26 +00:00
gagan%netscape.com
54ad263259 A left over change for the optimization in bug 66577. r=mstoltz, sr=shaver, brendan.
git-svn-id: svn://10.0.0.236/trunk@86415 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 01:14:37 +00:00
radha%netscape.com
deb9261347 Changes related to history listener bug 65608 r=valeski sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@86396 18797224-902f-48f8-a5cc-f745e15eee43
2001-02-07 00:32:04 +00:00
gagan%netscape.com
f3f5b36700 Optimization for scheme comparison of URIs. See bug 66577 for details. r=darin, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@85797 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-31 01:33:03 +00:00
akkana%netscape.com
8d173621f0 56296: Disable popping up new window on target=, pref controlled. r=dveditz, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@85601 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-27 01:08:36 +00:00
locka%iol.ie
149cc8d129 Changed docshell so it turns the mouse pointer "busy" in the associated window while it is loading a document. Removed the hack in the navigator chrome that used the throbber status to set the busy pointer. b=30375 sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@85571 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-26 12:35:32 +00:00
radha%netscape.com
177db2feca Fix for bug # 41973 (Redireted urls are not marked visited) r=rpotts sr=waterson
git-svn-id: svn://10.0.0.236/trunk@85391 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-23 22:16:40 +00:00
rpotts%netscape.com
23f82d0afa Some changes to make nsDocShell::LoadStream() work better...
git-svn-id: svn://10.0.0.236/trunk@84256 18797224-902f-48f8-a5cc-f745e15eee43
2001-01-01 22:48:47 +00:00
rpotts%netscape.com
227a3f4981 bug #15345 (sr=mscott). Replaced nsIDocumentLoaderObserver with nsIWebProgressListener... Also some whitespace cleanup :-)
git-svn-id: svn://10.0.0.236/trunk@83916 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-20 23:18:03 +00:00
radha%netscape.com
8f201f5025 Fix for bug # 59755. SH work wrong after doing view-source:url. Set ViewMode to
viewNormal for all Sh loads.  r=adamlock sr=alecf


git-svn-id: svn://10.0.0.236/trunk@83805 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-18 22:55:46 +00:00
radha%netscape.com
9d0d722f02 Fix for bug # 49913. Pressing enter in the url field adds duplicate entry
to Session History. r=adamlock sr=alecf
 VS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@83791 18797224-902f-48f8-a5cc-f745e15eee43
2000-12-18 20:02:26 +00:00
disttsc%bart.nl
fa14115e0e Convert nsIDocumentCharsetInfo to IDL so we can get rid of more bits of nsBrowse
rInstance. bug=46200, r=erik@netscape.com, r=smfr, a=alecf.


git-svn-id: svn://10.0.0.236/trunk@82694 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-16 21:33:34 +00:00
nhotta%netscape.com
df41eb771b Changed to convert anchor name as UTF-8 instead of Latin1 if that fails then convert it as document charset, bug= 58819,r=erik, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@82625 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-15 00:17:41 +00:00
disttsc%bart.nl
a919ea864b Whoops, forgot to remove one line
git-svn-id: svn://10.0.0.236/trunk@82501 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-09 21:14: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
locka%iol.ie
fc5ff9fc9c Moved URI fixup code out of docshell and into a global service. b=51702, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@82434 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 21:00:37 +00:00
jband%netscape.com
9dc5349161 Add null ptr check to fix bug 59281. r=adamlock sr=waterson
git-svn-id: svn://10.0.0.236/trunk@82422 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-08 06:31:57 +00:00
hyatt%netscape.com
61b754fcae Fix for 54203. r=saari, a=brendan
git-svn-id: svn://10.0.0.236/trunk@82310 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-04 08:21:20 +00:00
jst%netscape.com
606af7f86a Fixing bug 25821. This is only a bandaid for the real problem with targetting javascript: URL's but it fixes the immediate problem while the targetting code is being rewritten. r=brendan, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@82228 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 08:43:19 +00:00
radha%netscape.com
948853ce46 More fixes for bug # 46828. r=pollmann sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@82220 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-02 06:34:44 +00:00
mscott%netscape.com
ed9ad1b996 Bug #56938 --> Break out the code which parses and sets up refresh urls into
a separate method so we can expose it as an interface method
via nsIRefreshURI.
r=sspitzer,sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@82138 18797224-902f-48f8-a5cc-f745e15eee43
2000-11-01 08:03:58 +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
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
radha%netscape.com
1f00f858bb Fix for bug # 55055 r=adamlock sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@81440 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:41:24 +00:00
radha%netscape.com
06a140b64b Fix for bug # 46828. r=mscott sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@81435 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-19 06:24:24 +00:00
radha%netscape.com
4e0df00662 Fix for bug # 55145. r=pollmann a=rpotts
git-svn-id: svn://10.0.0.236/trunk@81140 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-13 20:49:40 +00:00
mscott%netscape.com
17e47fb76c Bug #47636 --> add methods to convert back and forth between a nsIDocShellLoadTypeInfo
and a docshell load tye. Unify nsIURILoadCommand and nsIDocShellLoadType enums so they
can be treated as the same type.
r=radha, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@80965 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 23:17:02 +00:00
pollmann%netscape.com
57aa9ce6fb Bug 53708: Prune session history tree at frame being replaced to prevent wrong pages from being loaded into subframes. r=radha, a=adamlock
git-svn-id: svn://10.0.0.236/trunk@80927 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-11 10:05:17 +00:00
law%netscape.com
69077d80b4 Bug 6119; r=radha@netscape.com; sr=waterson@netscape.com; Use nsIChannel::VALIDATE_NEVER when loading a page for view-source
git-svn-id: svn://10.0.0.236/trunk@80641 18797224-902f-48f8-a5cc-f745e15eee43
2000-10-07 02:24:50 +00:00
nisheeth%netscape.com
787c2b7cf1 r=pollmann. Fix for nsbeta3++ bug 48382. Fixes the infinite loop when location.href was set from the onload handler of a frame.
git-svn-id: svn://10.0.0.236/trunk@80056 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-28 05:44:10 +00:00
vishy%netscape.com
144cb573f0 bugzilla 52182. r=a=mscott.
Modify the logic to launch external browser (only for target=_content
and target=_blank links). Also add something to DocShellLoadInfo
so that a user of nsDocShell::LoadURI can specify the target desired.


git-svn-id: svn://10.0.0.236/trunk@79840 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-22 05:04:58 +00:00
locka%iol.ie
76130c2d8e Fixed typedef problem in Win32. b=50949
git-svn-id: svn://10.0.0.236/trunk@79625 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 13:28:19 +00:00
locka%iol.ie
b3b9b2c9a7 Changes to loadURI & reload methods on nsIDocShell, nsIWebNavigation. b=50949, r=radha, a=radha
git-svn-id: svn://10.0.0.236/trunk@79623 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 12:23:53 +00:00
radha%netscape.com
4e79385613 Fix for dogfood+ bug 46845 r=pollmann
git-svn-id: svn://10.0.0.236/trunk@79387 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-16 04:36:18 +00:00
rayw%netscape.com
31f9bce979 Bug fix for 52648 -- remaining stash of progids which I missed on
the mega-change yesterday.  This will fix a few more issues.

r=warren


git-svn-id: svn://10.0.0.236/trunk@79224 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 23:20:49 +00:00
dougt%netscape.com
5b5da682a9 + Added OnSecurityChange() to nsIWebProgressListener interface.
+ Added dummy function to all users of nsIWebProgressListener
+ Added new security event sink.
+ Hooked up new event sink to docloader and friends.
+ Fixed memory leaks and crashes in nsSecureBrowserImpl.
+ Added AlertPrompt to nsIPrompt Interface.
+ Enabling xpcom test on unix.

Fixes bug 46872.  r=valeski/rpotts


git-svn-id: svn://10.0.0.236/trunk@79206 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 22:56:56 +00:00
locka%iol.ie
d6704f0876 Added test for postdata before invoking the anchor scrolling code to prevent obscure form problem where the submit url is the same as the current url with an anchor appended. b=52290
git-svn-id: svn://10.0.0.236/trunk@79108 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 09:45:14 +00:00
jst%netscape.com
7adb227f26 Checkin in part of the fix for nsbeta3+ bug 42321. Avoid running JS_GC() many times per window open/close, once should be enough. Patch mostly done by alex@cendio.se, r=jst@netscape.com & vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79088 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 06:18:09 +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
mstoltz%netscape.com
3285ad04e9 Fixing 51828, allowing JS/data urls to inheit principal from document if called from system code. r=jst
git-svn-id: svn://10.0.0.236/trunk@78764 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 21:16:58 +00:00
rpotts%netscape.com
ec1ad68225 bug #37434. Added an attribute to nsIDocShellLoadInfo to indicate whether the active document should be stopped immediately...
git-svn-id: svn://10.0.0.236/trunk@78654 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 06:00:46 +00:00
hyatt%netscape.com
9d28cf7f88 Fixes for bugs 45989, 50509, r=ben,jrgm"
git-svn-id: svn://10.0.0.236/trunk@78504 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 08:04:53 +00:00
rpotts%netscape.com
5f1022d223 bug #37434. Stop() is now called on the content viewer, before the old document is destroyed. This allows the old document to release some stuff :-)
git-svn-id: svn://10.0.0.236/trunk@78453 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-08 00:29:13 +00:00
edburns%acm.org
d21a2bba17 r=dbaron
Fix bustage on AIX s/true/PR_TRUE

bug 49522.


git-svn-id: svn://10.0.0.236/trunk@78170 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 21:35:59 +00:00
edburns%acm.org
f4ed6ebe07 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.


git-svn-id: svn://10.0.0.236/trunk@78153 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-05 19:03:56 +00:00
mscott%netscape.com
8f2702399e Bug #32387,47365, 46331, 46338, 23734 --> reset the load type when we get a redirected url so it gets added to
session history properly. Only add to session history if the url resulted in document being
loaded.
r=radha


git-svn-id: svn://10.0.0.236/trunk@77944 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 22:34:19 +00:00
radha%netscape.com
e111e856b3 partial fix for 49498. r=nisheeth.
git-svn-id: svn://10.0.0.236/trunk@77922 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-01 21:29:48 +00:00