701 Commits

Author SHA1 Message Date
gagan%netscape.com
8bed9e2e2a First checkin. Not in the build yet. Moving the HTTP event sink from .h to .idl.
git-svn-id: svn://10.0.0.236/trunk@62188 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-04 00:40:35 +00:00
gagan%netscape.com
29705b3412 Fix for bug 29477 on behalf of norris. r=gagan.
git-svn-id: svn://10.0.0.236/trunk@62078 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 21:45:51 +00:00
bruce%cybersight.com
28c2c1e7e3 Fix small, localized leak of HTTP atoms. Well tested on MacOS and under Purify with no ill effects. r=gagan
git-svn-id: svn://10.0.0.236/trunk@62057 18797224-902f-48f8-a5cc-f745e15eee43
2000-03-02 13:45:28 +00:00
valeski%netscape.com
31d191de79 29164. r=shaver. The user agent setup no longer uses a string bundle. UA string formatting changes that use prefs for values.
git-svn-id: svn://10.0.0.236/trunk@61887 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 20:39:18 +00:00
mkaply%us.ibm.com
bc38f9abb8 # 25555
r= warren@netscape.com
OS/2 changes for Mozilla - add #ifdef, change #ifdef


git-svn-id: svn://10.0.0.236/trunk@61869 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 15:40:42 +00:00
ftang%netscape.com
09fbc986bb fix bug 14155 . make sure the NS_NewURI handle escaped URI. r=warren a=bobj
git-svn-id: svn://10.0.0.236/trunk@61851 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 07:04:17 +00:00
rpotts%netscape.com
2bc8ade797 Fix unix build bustage...
git-svn-id: svn://10.0.0.236/trunk@61841 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 05:05:08 +00:00
rpotts%netscape.com
67c7a2fd94 bug #24711 (r=gagan). Changed cache channels to behave like transports rather than protocol channels...
git-svn-id: svn://10.0.0.236/trunk@61838 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 04:44:37 +00:00
valeski%netscape.com
62b4256381 r=rpotts. a=jar (checkin on red approval = leaf). built, run and pre-checkin tested on all three platforms. 28042. The FTP thread is now threadsafe, and I've reduced the amount of proxy object usage.
git-svn-id: svn://10.0.0.236/trunk@61829 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 03:29:08 +00:00
tbogard%aol.net
13b61ed851 Changed nsIAppShellService and nsIWindowMediator to talk in terms of nsIXULWindow instead of nsIWebShellWindow. Also removed the function nsIAppShellService::RunModalDialog since windows should be created using the nsIDOMWindow::OpenDialog. r=danm a=jevering
git-svn-id: svn://10.0.0.236/trunk@61816 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-29 00:20:55 +00:00
valeski%netscape.com
78bd116b65 r-rpotts, 29293. FTP was choking on servers that didn't support the SIZE command
git-svn-id: svn://10.0.0.236/trunk@61744 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-26 15:45:50 +00:00
gagan%netscape.com
0633641153 Made the crash go away only in release builds... hopefully this will help us track the real problem. a=jevering.
git-svn-id: svn://10.0.0.236/trunk@61591 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 05:36:52 +00:00
bienvenu%netscape.com
013bb0305a fix build bustage for gagan
git-svn-id: svn://10.0.0.236/trunk@61562 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 02:44:44 +00:00
gagan%netscape.com
9ff37795da FTP's change for checking the proxy setting. r=valeski
git-svn-id: svn://10.0.0.236/trunk@61561 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 02:10:32 +00:00
gagan%netscape.com
4426486abd Removed the check for proxy types here with the latest change in protocolproxyservice. r-valeski
git-svn-id: svn://10.0.0.236/trunk@61560 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-24 02:09:46 +00:00
rpotts%netscape.com
f69e4b3fee bug #23777 (r=valeski). Reworked the parsing of the HTTP server version to avoid a floating-point rounding error which caused the server version to be incorrect...
git-svn-id: svn://10.0.0.236/trunk@61540 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 23:57:20 +00:00
valeski%netscape.com
f79435262e 28782. a=jar. r=alecf. nsHTTPHandler now has an extra product token for the User Agent string. we now use the PRUnichar = operator for string stuff, and retrieve vendor info from a string bundle.
git-svn-id: svn://10.0.0.236/trunk@61530 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:50:45 +00:00
norris%netscape.com
bf96355ad4 Fix 28612 META Refresh allowed in Mail/News
r=mstoltz,a=jar
Fix 28658 File upload vulnerability
r=vidur,a=jar


git-svn-id: svn://10.0.0.236/trunk@61523 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 22:34:40 +00:00
gagan%netscape.com
570f14d71b r=valeski,rjc a=jar. Fixes for the following bugs-
bug 1582 - HTTP Referer header problem.
This is now resolved with a preference (network.sendRefererHeader)
If set to 0 no referrer header is sent (ever) If set to 1 the
referrer header is sent only in cases of user link-clicks and if
set to 2 is sent from image requests as well.

bug 17158 - No Proxies For wasn't implemented.
This was not being read correctly and I also moved and cleaned up
the parsing function to nsProtocolProxyService (thereby also
killing bug 27728)

bug 24642 - http://www.win98central.com/#437 was crashing.
bug 26686 - crash in nsHTTPRequest destructor.
Both of these crashes were because of the nsHTTPRequest being
unconditionally released in the destructor of nsHTTPChannel. Although the main problem remains, I have made it a non-crasher now.

bug 27844 - HTTP breaks when only using FTP proxy.
This was happening because we were not resetting values of the
proxy when they are removed from the preference pane.


git-svn-id: svn://10.0.0.236/trunk@61512 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 21:17:17 +00:00
valeski%netscape.com
a430ade485 r=andreas. a=jevering. fixing leaky sieve. Another example of where a comptr saves the day.
git-svn-id: svn://10.0.0.236/trunk@61501 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 20:19:46 +00:00
bryner%uiuc.edu
b6cefe359f Changing this to use the TEXT_PLAIN define instead of the string
"text/plain".  r=shaver, a=waterson.


git-svn-id: svn://10.0.0.236/trunk@61481 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 06:53:46 +00:00
rpotts%netscape.com
6d00563bd8 bug #21556. Gave nsHTTPChannel, nsHTTPResponseListener, nsHTTPRequest and nsHTTPEncodeStream thread-safe implementations of AddRef() and Release() since those methods are called on multiple threads...
git-svn-id: svn://10.0.0.236/trunk@61475 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-23 04:38:42 +00:00
rpotts%netscape.com
b6c08cd3ef Partial fix for bug #24711 (r=valeski). If a channel which had been deferred because no socket transports were available resumed and found a valid cache entry it would stall (never finish). A notable example of this was http://www.abcnews.com
git-svn-id: svn://10.0.0.236/trunk@61334 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 00:58:22 +00:00
cls%seawood.org
8260bc5e34 More tweaks needed to get BeOS to compile for M14. For now, we use the Unix local file implementation. a,r=leaf
git-svn-id: svn://10.0.0.236/trunk@61216 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-17 20:24:24 +00:00
valeski%netscape.com
6ada398c43 fixing a linux warning, re-ordering initialization to match declaration order in .h
git-svn-id: svn://10.0.0.236/trunk@60969 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:05:06 +00:00
valeski%netscape.com
115ea08a9f no longer used as part of FTP proxy changes
git-svn-id: svn://10.0.0.236/trunk@60945 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:25:33 +00:00
brade%netscape.com
7f4abd0f39 remove nsFTPListener.cpp (r=valeski)
git-svn-id: svn://10.0.0.236/trunk@60944 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:25:14 +00:00
valeski%netscape.com
0daf57b0a1 r=gagan. 15594. FTP proxies implemented.
git-svn-id: svn://10.0.0.236/trunk@60935 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 22:02:11 +00:00
wtc%netscape.com
1042f52101 Bugzilla bug #27457: prepare the Windows build system for NSPR library
name change.  Define a new makefile variable LIBPLC.
Modified files:
mozilla/config/config.mak
mozilla/dom/src/build/makefile.win
mozilla/extensions/wallet/cookieviewer/makefile.win
mozilla/extensions/wallet/editor/makefile.win
mozilla/extensions/wallet/signonviewer/makefile.win
mozilla/extensions/wallet/walletpreview/makefile.win
mozilla/mailnews/import/eudora/src/makefile.win
mozilla/mailnews/import/oexpress/makefile.win
mozilla/mailnews/import/outlook/src/makefile.win
mozilla/mailnews/import/src/makefile.win
mozilla/mailnews/import/text/src/makefile.win
mozilla/netwerk/protocol/jar/src/makefile.win
mozilla/profile/Acctidl/makefile.win
mozilla/profile/src/makefile.win
mozilla/xpcom/sample/makefile.win


git-svn-id: svn://10.0.0.236/trunk@60875 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 14:35:15 +00:00
valeski%netscape.com
81bf4379e8 r=gramps (yea, that's right), 15594 (partial). In order for FTP proxies to work, HTTP needs to implement nsIProxy. FTP uses the HTTP protocol to piggy back as a real proxy handler.
git-svn-id: svn://10.0.0.236/trunk@60715 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 08:40:05 +00:00
gagan%netscape.com
e997a4893d Now allowing FTP to specify an ftp URL-- bug 15594 (and in general allow any non-HTTP handler to use HTTP as a proxy) r=valeski
git-svn-id: svn://10.0.0.236/trunk@60711 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 07:06:32 +00:00
valeski%netscape.com
2647265f3a r=mcafee. FTP now retrieves username and password info directly from the respective URL accessors. This removes any unescaping burden from FTP. These accessors are guaranteed to return unescaped strings
git-svn-id: svn://10.0.0.236/trunk@60691 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 05:49:55 +00:00
mstoltz%netscape.com
eb1d039627 Changed GetOwner() to read owner from underlying nsJAR rather than saving it locally. SetOwner() now does nothing. bug=7270 r=norris
git-svn-id: svn://10.0.0.236/trunk@60680 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-14 01:59:09 +00:00
rpotts%netscape.com
b3bc7d662e Fixed purify [UMR] by initializing mProxyPort
git-svn-id: svn://10.0.0.236/trunk@60589 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-12 06:15:19 +00:00
gagan%netscape.com
0a8cc2cacb I am an idiot...
git-svn-id: svn://10.0.0.236/trunk@60472 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 11:42:38 +00:00
gagan%netscape.com
bc8ff516cd removed an unnecessary include.
git-svn-id: svn://10.0.0.236/trunk@60404 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:34:07 +00:00
gagan%netscape.com
2ce835680d Fixing horkage... God please stop allowing people to use gotos in C++...
git-svn-id: svn://10.0.0.236/trunk@60401 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 01:26:23 +00:00
valeski%netscape.com
6c6a66b718 removing extraneous export on a file that DNE anymore
git-svn-id: svn://10.0.0.236/trunk@60351 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 00:55:01 +00:00
gagan%netscape.com
660a5e7f37 Fixed bug 27024. Changed nsIHTTPChannel.idl to have proxy host/port
accessors and modifiers. Channels may now override the proxy setting
from the HTTP handler. r=valeski

Fixed bug 24329. Made mProxyAuthList in nsAuthEngine to keep the list of proxy authentications. Logout now clears both proxy and basic auths. r=rjc

Fixed bug 26149. Authenticate now aborts only if the user doesn't click cancel on the PromptUserPass dialog. Removed the unnecessary nsIChannel* parameter on Authenticate. r=rjc

Fixed bug 24304. We now register a callback for proxy preferences. r=rjc

Fixed bug 17158. We now honor "network.proxy.no_proxies_on" preference to diable proxy activity on specified host or domain. We still need a fix for 27141 to read and write this pref correctly. r=rjc

Fixed bug 16442. Referer is only added if its an http URI. r=rjc


git-svn-id: svn://10.0.0.236/trunk@60340 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 00:47:50 +00:00
mscott%netscape.com
8c683aeba6 bug #26959 and bug #26958 --> if create category service returns an error, don't force an abort
on creating the http protocol handler.
r=valeski.


git-svn-id: svn://10.0.0.236/trunk@60216 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 08:25:11 +00:00
valeski%netscape.com
8e0a440cc5 getting the rest of necko to use the mimetypes file. also added protection for UA string setup
git-svn-id: svn://10.0.0.236/trunk@60201 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-09 05:04:52 +00:00
dp%netscape.com
7a38f72e34 Fixing build.
<valeskiAIM> dp: go baby go


git-svn-id: svn://10.0.0.236/trunk@60103 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 07:29:47 +00:00
sfraser%netscape.com
5aee3cc188 Removed nsHTTPHandlerFactory.cpp for valeski.
git-svn-id: svn://10.0.0.236/trunk@60095 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 06:25:58 +00:00
valeski%netscape.com
4fdf04bef6 r=dougt. 10465. The http protocol handler now has the USer agent api hanging off of it. I also cleaned up the HTTP component so it is a clean service w/ a cid now.
git-svn-id: svn://10.0.0.236/trunk@60090 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 06:20:54 +00:00
dp%netscape.com
82c758fc55 HTTP protocol shall startup every cid/progid as a service under
NS_HTTP_STARTUP_CATEGORY. This will be used by cookies to come alive. r=gagan


git-svn-id: svn://10.0.0.236/trunk@60086 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 06:08:27 +00:00
dp%netscape.com
1a3daa98f1 Adding NS_HTTP_STARTUP_CATEGORY r=gagan
git-svn-id: svn://10.0.0.236/trunk@60083 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 06:05:36 +00:00
scc%netscape.com
dcee2e659d Pro5 update
git-svn-id: svn://10.0.0.236/trunk@60002 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 23:06:04 +00:00
bryner%uiuc.edu
30360193f9 Removing erroneous comments. r=ben.
git-svn-id: svn://10.0.0.236/trunk@59955 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-06 22:24:06 +00:00
scc%netscape.com
0d5ba1e01b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@59852 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 04:58:53 +00:00
warren%netscape.com
b07abd219e Added stream buffering. Made file transport use it. Bug #19233 r=dougt
git-svn-id: svn://10.0.0.236/trunk@59751 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 07:31:43 +00:00