990 Commits

Author SHA1 Message Date
dougt%netscape.com
7f4ce8acb7 backing out my backout from nsIOService. Merge conficts with bnesse
git-svn-id: svn://10.0.0.236/trunk@105827 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 21:38:24 +00:00
dougt%netscape.com
8e7ae51ba9 fixing build bustage in nsIOService.cpp
git-svn-id: svn://10.0.0.236/trunk@105823 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 21:28:58 +00:00
dougt%netscape.com
cf60fc042e nsIObserver and nsIObserverService API freeze. r=rpotts@netscape.com, alecf@netscape.com. bug 99163
git-svn-id: svn://10.0.0.236/trunk@105800 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 20:52:59 +00:00
morse%netscape.com
d4ee3f7955 bug 47437, nscookie.cpp is duplicationg URL parsing logic, c=andreas.otte, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@105740 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 02:28:06 +00:00
gordon%netscape.com
c4aa2d1bb8 Fix for bug 101651, nsStdURL::SetSpec can trash memory. r=sfraser, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@105737 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-19 01:59:57 +00:00
darin%netscape.com
2a4326a282 fixes bug 102743 "Crash pressing Back or Forward on O'Reilly website"
r=gagan, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@105690 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-18 10:37:04 +00:00
dbaron%fas.harvard.edu
7bb7b59a69 Replace uses of overloaded |fputs| and most uses of |ns[C]String::ToCString|. b=104763 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@105460 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 03:53:44 +00:00
sspitzer%netscape.com
849b6eccae fix for #104929. some minor optimizations to nsStdURL.cpp.
use PL_strchr() instead of PL_strstr() when possible.

switch from PR_smprintf() to += and AppendInt(), to avoid the malloc and free.

r=sfraser, sr=darin


git-svn-id: svn://10.0.0.236/trunk@105444 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-16 00:29:28 +00:00
darin%netscape.com
e049e476e7 fixes bug 103979 "Crash if autoconfig proxies prefs enabled by the default"
r=gagan,dougt sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@105425 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-15 22:26:19 +00:00
dbaron%fas.harvard.edu
8004e4a54e Reduce string copying in nsLoadGroup::GetName. b=102386 r=jag sr=darin
git-svn-id: svn://10.0.0.236/trunk@105132 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 01:09:18 +00:00
morse%netscape.com
eaa1b1013c backing out fix for bug 47437 due to memory leak
git-svn-id: svn://10.0.0.236/trunk@105129 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-11 00:40:07 +00:00
morse%netscape.com
7b3d740ef8 bug 47437, nsCookie.cpp is duplicating URL parsing logic, c=andreas.otte, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@105114 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 23:16:03 +00:00
bnesse%netscape.com
8722951db4 Fix for bugscape bug 7630, crash at www.barbie.com. Added check to kick out of loop if end of string reached. r=peterlubczynski, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@105113 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-10 22:56:07 +00:00
dougt%netscape.com
343316c034 fixes 89097. Adds pref observer to IOService. r=me, sr=darin, patch submitted by tingley@sundell.net
git-svn-id: svn://10.0.0.236/trunk@104851 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 22:27:14 +00:00
darin%netscape.com
d4b57cd06e fixes bug 103043 "nsSocketTransport should only fire OnStatus when status
changes" r=bbaetz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@104845 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-08 22:17:25 +00:00
andreas.otte%primus-online.de
54069551f0 fix bug 32895 [Converting \ to / in urls on windows only (was: RFC 2396 $2.4.3 non-compliance?)] We no longer convert \ to / inside the core urlparser on windows only. Conversion from filepath to url still does. r=dougt@netscape.com sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@104736 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-06 12:08:44 +00:00
darin%netscape.com
61be184b60 code changes for bug 42898 "iDNS support"
patch=william.tan@i-dns.net r=gordon sr=darin,brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@104649 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-05 07:50:21 +00:00
bbaetz%cs.mcgill.ca
00f048870f Bug 78148. Reorg directory viewer backend to allow file and gopher to use
the html view as well. (This is currently disabled for file because of
i18n issues)

Should also fix dirviewer bugs 38014, 68651, 72724, 78474, and part
of 83881.

r/sr=darin, dougt


git-svn-id: svn://10.0.0.236/trunk@104495 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 00:43:30 +00:00
akkana%netscape.com
727fbd6e72 97677: Check whether a link exists. r=cmanske,sr=darinf
git-svn-id: svn://10.0.0.236/trunk@104493 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 00:40:10 +00:00
akkana%netscape.com
8b05be3419 97677: Check whether a link exists. r=cmanske,sr=darinf
git-svn-id: svn://10.0.0.236/trunk@104489 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-03 00:21:34 +00:00
jaggernaut%netscape.com
51e0dc7a6c Bug 100476: Convert uses of member functions ToNewUnicode, ToNewCString and ToNewUTF8String to their global versions and remove support from nsCString and nsString. r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@104212 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-29 08:28:41 +00:00
gerv%gerv.net
13afb6d0f9 Relicensing Round 1, Take 2. Most C-like NPL files -> NPL/GPL/LGPL. Bug 98089.
git-svn-id: svn://10.0.0.236/trunk@104119 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 20:14:13 +00:00
andreas.otte%primus-online.de
eb149e5f70 fix bug 99081 [ExtractPortFrom sometimes finds ports that are not there] again, this time we were not finding enough ports. Now we are checking for ? and # as additional delimiters. r=dougt@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@104105 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-28 10:57:06 +00:00
cmanske%netscape.com
1c1d2625f0 Fixed nsIOService::ResolveRelativePath problem when basePath ends in '/', b=97682, r=andreas.otte@primus-online.de, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@103848 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 19:34:11 +00:00
dbaron%fas.harvard.edu
8a6246f392 Add PR-logging and assertions used to find bug 94979. r=bbaetz rs=darin, dougt
git-svn-id: svn://10.0.0.236/trunk@103814 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-26 05:21:12 +00:00
darin%netscape.com
614db7419e fixes bug 97997 "easyweb.tdcanadatrust.com does not display" r=bbaetz, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@103419 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-21 03:59:02 +00:00
jaggernaut%netscape.com
8a87c13848 One module per line for REQUIRES. r=/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103116 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 22:01:13 +00:00
jaggernaut%netscape.com
8b71ae9c91 Bug 73353: splitting the modules on the REQUIRES lines in Makefile.in across multiple lines to more clearly show the changes made. sr=alecf
git-svn-id: svn://10.0.0.236/trunk@103093 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-18 13:41:47 +00:00
alecf%netscape.com
e28607491e Final REQUIRES changes for bug 98371, adding support for MOZ_TRACK_MODULE_DEPS to win32. r=cls (and tested by cls!)
git-svn-id: svn://10.0.0.236/trunk@102999 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-17 19:06:35 +00:00
andreas.otte%primus-online.de
84bc369b7e fix bug 97983 [ExtractUrlPart allows no access to the directory part of the url] This patch introduces a new bitmask url_Path that allows accessing the whole path, moved url_Directory from path access to it's original meaning accessing the directory portion of the url. Also fixed some start/endposition calculations, r=dougt@netscape.com,sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102909 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 05:47:54 +00:00
andreas.otte%primus-online.de
3bd3613d5a fix bug 99081 [ExtractPortFrom sometimes finds ports that are not there] ExtractPortFrom trys to parse the portnumber from url-strings and sometimes it found ports that are none like messageids of news urls, r=dougt@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102908 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-14 05:38:51 +00:00
andreas.otte%primus-online.de
07ebb01e7e fix bug 97988 [contractid of nsAuthURLParser same as of nsNoAuthURLParser] seems to be a simple cut and paste error now corrected, r=dougt@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102862 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 07:42:22 +00:00
darin%netscape.com
76c7355ac1 checking bbaetz's patch for bug 89500 "SOCKS: only http|https re-directted in (post Mozilla 0.9.2)"
patch=bbaetz, r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@102859 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-13 02:21:05 +00:00
alecf%netscape.com
d0766d027e add REQUIRES support to jpeg, sun-java, db, etc.. b=98371 r=cls
git-svn-id: svn://10.0.0.236/trunk@102664 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-10 20:48:38 +00:00
andreas.otte%primus-online.de
306f3914a2 fix bug 94796 [code cleanup in nsURLHelper.cpp] remove nsURLEscape/nsURLUnescape from nsURLHelper and replace all usage with nsStdEscape/nsStdUnescape, r=ccarlen@netscape.com, sr=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@102586 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-08 12:47:05 +00:00
dougt%netscape.com
6abd1d51a4 Merge ServiceManager and ComponentManager. Bug 96457. r=dp@netscape.com, sr=wat
erson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@102449 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-06 21:13:11 +00:00
valeski%netscape.com
8db35965a8 r=dbaron, sr=dougt. 97667. nsIInterfaceRequestor is now frozen. nsIInterfaceRequestorUtils.h is now required if you want to use do_GetInterface() for convenience. The two were split because the stuff that is now in nsIInterfaceRequestorUtils.h wasn't ready for freezing. Also, .idl files should just contain interface defs anyway.
git-svn-id: svn://10.0.0.236/trunk@102327 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 21:28:38 +00:00
dougt%netscape.com
466a519589 adding nsIUploadChannel to the build. r=darin, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@102262 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-05 03:32:23 +00:00
darin%netscape.com
f90e1af576 fixes bug 83526 "http should use fewer connections per server per page"
r=bbaetz sr=dougt,blizzard


git-svn-id: svn://10.0.0.236/trunk@102220 18797224-902f-48f8-a5cc-f745e15eee43
2001-09-04 23:02:26 +00:00
cmanske%netscape.com
b4652869c1 Fixed getting fileBaseName and fileExtension parts of nsIOService::ExtactUrlPart(), b=97679, r=dougt, sr=darin, a=bizzard for drivers
git-svn-id: svn://10.0.0.236/trunk@102102 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-31 21:37:30 +00:00
darin%netscape.com
c07308d0f9 fixes bug 93924 "PAC - dnsResolve should have one-element cache"
patch=tingley@sundell.net r=bbaetz, sr=darin, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101997 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-30 01:35:26 +00:00
darin%netscape.com
05e092f2d0 fixes bug 47041 "Unable to unregister an HTTP Notify listener"
r=bbaetz, sr=dougt, a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101779 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:27:06 +00:00
darin%netscape.com
556ee0cf4a fixes bug 95981 "Changes in background images on pages do not show on reload"
r/sr=rpotts,dougt a=roc+moz


git-svn-id: svn://10.0.0.236/trunk@101778 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-24 22:24:10 +00:00
darin%netscape.com
8957fc6413 backing out my patch for bug 95981 to fix blocker bug 96480
git-svn-id: svn://10.0.0.236/trunk@101709 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-23 18:58:25 +00:00
darin%netscape.com
5ba03ff3ef fixes bug 95981 "Changes in background images on pages do not show on reload"
r=pavlov, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101579 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:46:08 +00:00
darin%netscape.com
1d408a0e35 fixes bug 94811 "leaking sockets; nsISocketTransport::IsAlive not implemented reliably"
r=wtc, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@101574 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-22 00:24:26 +00:00
stephend%netscape.com
5d52c1ab97 Attempt to fix rjesup's bustage. a=sheriff
git-svn-id: svn://10.0.0.236/trunk@101562 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 22:43:47 +00:00
rjesup%wgate.com
9773ad26f7 bug 96289: mURLParsers cache wasn't. r=gagan@netscape.com,
sr=dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@101552 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 21:49:04 +00:00
brendan%mozilla.org
6abf5e7f73 Bit checkin for bug 68045, r/sr=waterson&shaver, second attempt. It all works
for me on optimized and debug gcc2.96, rh7.1.

- Better failure codes from nsXULPrototypeScript::Deserialize.

- Call nsXULDocument::AbortFastLoads after nsXULPrototypeScript::Serialize
  failure, instead of just nulling the FastLoad service's output stream.

- Expose nsXULDocument::AbortFastLoads via nsIXULPrototypeCache, for use from
  nsChromeProtocolHandler.cpp.  AbortFastLoads flushes the XUL cache now, for
  good measure.

- The needless "Current" adjective in nsIFastLoadService attribute and method
  names is no more.

- Add a do_GetFastLoadService() helper, to use CID instead of contractid, and
  to let the compiler consolidate the static inline CID.

- Add "nglayout.debug.checksum_xul_fastload_file" pref so people can do without
  the checksum verification step when reading a FastLoad file.

- Verify the FastLoad file checksum, by default.  Also, cache it in the FastLoad
  service so we don't recompute it when re-opening the FastLoad file as mailnews
  and other top-levels start up.  Fill the checksum cache in EndFastLoad, when
  the last pseudo-concurrent top-level finishes loading.

  My hope to compute the checksum while writing the FastLoad file ran afoul of
  misordered writes.  The old code to checksum the in-memory nsFastLoadHeader
  also was broken on little endian platforms.  Now all checksumming is done via
  a separate read pass over the complete file, save for the header's checksum
  field, which is summed as if it contained zero.

- Track and check FastLoad file dependencies.  This required groveling with a
  bunch of Necko interfaces in nsChromeProtocolHandler::NewChannel -- read it
  and weep.  Dependency checking, as well as checksum access and computation,
  use better-factored nsIFastLoad{File,Read,Write}Control interfaces.

- nsBufferedStream::Seek wasn't flushing the buffer when seeking backward
  within the buffer, but it must, because mCursor bounds the amount to write
  if the buffer contains the end of file.

- Add an unbufferedStream readonly attribute to nsIStreamBufferAccess, so we
  don't have to screw around with the bufferying layer when checksumming. Also
  implement nsIStreamBufferAccess in nsBufferedOutputStream.

- nsISeekableOutputStream was bogus, based on a bad state I had put the
  nsBufferedOutputStream code in on its way from being completely broken when
  you seek backwards outside of the buffer.  Removing this interface required
  using nsIFastLoadFileIO in nsFastLoadFileWriter, and it also required careful
  ordering of Close calls (the Reader must close after the Writer or Updater,
  so that the Reader's underlying, unbuffered input stream can be read by
  nsFastLoadFileWriter::Close to compute the checksum.

- Miscellaneous tab/indentation, comment typo, bracing, if( => if ( style,
  nsnull vs. 0, useless variable elimination, tortured control flow,
  AutoString instead of String, and gratuitous ; after nsISupportsUtils.h
  macro call cleanups.


git-svn-id: svn://10.0.0.236/trunk@101544 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:51:34 +00:00
andreas.otte%primus-online.de
a655de9c6e fix bug 84409 [Incorrect request for page components if main page URL contains ";" character] Implementing param support according to RFC 2396, r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@101539 18797224-902f-48f8-a5cc-f745e15eee43
2001-08-21 20:35:01 +00:00