Commit Graph

4095 Commits

Author SHA1 Message Date
warren%netscape.com
cdc56bbf4c Landing jar packaging from jar_restructuring_branch. r=hyatt,dprice,sfraser,dveditz,vishy,sgehani
git-svn-id: svn://10.0.0.236/trunk@79641 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 19:35:24 +00:00
waterson%netscape.com
9d38102900 Fix orangeness on Linux.
git-svn-id: svn://10.0.0.236/trunk@79614 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 07:31:53 +00:00
waterson%netscape.com
ac48abcd87 Bug 44352. Remove nsIMemoryPressureObserver in favor of nsIObserverService et al., and convert existing nsIMemoryPressureObserver clients. Add memory flusher thread. Add debug UI to force memory flush. r=alecf,sfraser,warren a=warren
git-svn-id: svn://10.0.0.236/trunk@79603 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-20 05:44:19 +00:00
jband%netscape.com
0d1da1648f Allow for detection and graceful failure when we stumble upon an incompatible typelibs which might exist in the future. bug 53155. NOT fixing brendan's nit about the grammar in the comment. a=brendan@mozilla.org, r=shaver@mozilla.org,mccabe@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79544 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 21:42:47 +00:00
beard%netscape.com
a728f62d23 [Not part of build] Changed getServices() to attribute services.
git-svn-id: svn://10.0.0.236/trunk@79531 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 14:48:11 +00:00
beard%netscape.com
937a69ab56 [Not part of build] Added traceCollection, getServices methods.
git-svn-id: svn://10.0.0.236/trunk@79520 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 05:40:17 +00:00
brendan%mozilla.org
86e239c98f Fixes to use atomic rename(2) if possible in nsLocalFile::MoveTo (33098, r=?),
plus a bunch of other fixes and cleanups:

- Fix comment misstatements of fact in nsIFile.idl, improve style slightly.
- Fix typo in comment in nsILocalFile.idl.
- Avoid gratuitous nsCString and nsXPIDLCString copy-constructions, which
  entail malloc'ing, in nsLocalFileUnix.cpp's CopyTo and GetParent methods.
  But do use nsXPIDLCString instead of raw nsMemory::Alloc/Free.
- Get rid of unnecessary mLL_II2L and mLL_L2II macros, use "prlong.h" API only.
  Also use the LL_* macros consistently in case a Unix lacking long long type
  support wants to use this code.
* BTW, the "Date" methods should be renamed to use "Time" instead -- after all
  PRTime is the type, and traditionally "time" refers to the time-number, a
  scalar independent of one's position on the surface of the earth, while
  "date" refers to a struct full of locale-specific information derived from
  time and some "environment" variables such as DST.  Can we rename these
  nsIFile methods before Mozilla 0.9 / Netscape 6?
- Use CHECK_mPath consistently and first, before any assertions relating to
  arguments (which logically come after the 'this' parameter CHECK_mPath is
  making assertions about).
- Use nsCOMPtr for singly-inheriting implementations of XPCOM interfaces, to
  avoid scary-when-scaled 0-refcnt instances from being handled (these all
  got a ref via QI or equivalent soon enough, but you never know).  This also
  removed some naked deletes.
- Canonize all paths copied into mPath to lack trailing slashes, so we don't
  need to strip trailing slashes elsewhere, in higher-frequency methods (you
  set path less often than you get it or a substring of it).
- ssize_t for strlen return values.
- Since shaver used a function pointer to consolidate creat/mkdir logic, but
  didn't fold the necessary close of the new fd returned by non-failing creat
  into the pointed-at function, I did that.
- AppendRelativePath forbids .. as a component (bounded by / or beginning or
  end of string on either side), not just in the middle of fragment (so that
  foo..bar is not an illegal relative pathname -- it should not be).  BTW,
  what the heck is the difference between NS_ERROR_FILE_UNRECOGNIZED_PATH and
  ...INVALID_PATH?
- SetLeafName was overallocating the new pathname buffer by failing to subtract
  the old leafname's length.
- CopyTo was failing to return an NSRESULT_FOR_ERRNO(), it just called that
  macro on a line by itself -- eek!  It also contained redundant if (newFD
  == nsnull) {...} cleanup code, it did a useless PR_GetFileInfo call, and it
  leaked FDs on read or write error.
- Implemented CopyToFollowingLinks as a forwarded call to CopyTo, Unix does
  not support "copying" a symlink via normal file i/o.  Should we instead
  lstat in CopyTo and if a link is the source of the copy, do readlink and
  then symlink?
- Fixed the readlink method (GetTarget) to null-terminate the link string in
  the out parameter (readlink does not do that for you).
- Lots of little nsnull vs. NULL vs. 0, == and != applied to boolean or null
  literals, white-space, indentation, bracing, comment, and sloppy code order
  (e.g., declaring an initialized variable that's not used till after early
  returns) fixes.  Also invert some return logic so that NS_OK is the normal,
  least indented, final return.


git-svn-id: svn://10.0.0.236/trunk@79492 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-19 00:22:41 +00:00
brendan%mozilla.org
9cb06ebf27 Define QI now that XPConnect wraps JS objects; fix comments (NOT PART OF BUILD).
git-svn-id: svn://10.0.0.236/trunk@79410 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-18 02:31:11 +00:00
cls%seawood.org
cb273a1d7b If MOZ_ENABLE_JAR_PACKAGING is set, do not install the xpcom.properties. They will be in the the jar file
git-svn-id: svn://10.0.0.236/trunk@79371 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-15 22:16:01 +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
mjudge%netscape.com
2fc6190bef small but pervasive change to make nsIDOMSelection an xpidl interface. also broke it into 2 interfaces, nsISelection and nsISelectionPrivate. moved nsIDOMSelectionListener also to xpidl. these new idl files live in layout/base/public. r=sfraser, r=anthonyd bug 48575
git-svn-id: svn://10.0.0.236/trunk@79118 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 11:45:01 +00:00
rayw%netscape.com
65d371209f File went back by mistake, reverting.
git-svn-id: svn://10.0.0.236/trunk@79049 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 04:21:39 +00:00
rayw%netscape.com
c4734d3001 fix to mal-formed contract id introduced in mega-check-in:x
git-svn-id: svn://10.0.0.236/trunk@79048 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-14 04:18:07 +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
jdunn%netscape.com
31c8a39bbc changing C++ comments to C comments since for some reason
nscore.h is being included by intl/lwbrk/src/rulebrk.c &
modules/libpref/src/prefapi.c
r= scc@mozilla.org & brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@79016 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 12:22:17 +00:00
scc%mozilla.org
6dd3b2cf12 adding |.get()| for the other half of |NS_LITERAL_STRING|
git-svn-id: svn://10.0.0.236/trunk@78964 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 03:44:58 +00:00
scc%mozilla.org
086a4f60da if you want a pointer to the characters, you're going to have to |.get()| it
git-svn-id: svn://10.0.0.236/trunk@78959 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:56:52 +00:00
scc%mozilla.org
8ed2788f81 fix typo
git-svn-id: svn://10.0.0.236/trunk@78958 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:56:13 +00:00
scc%mozilla.org
31d7ddd4e2 fixed indentation, added inheritance that makes classes cooperate in our buffer sharing strategy, added |get()| to flat classes, as we're deprecating implicit operators for this task
git-svn-id: svn://10.0.0.236/trunk@78954 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:41:06 +00:00
scc%mozilla.org
9b701c3845 fixed ugly name |nsXXXBufferHandle| --> |nsFlexBufferHandle|; hey, it may not be perfect, but it's better than 'XXX'
git-svn-id: svn://10.0.0.236/trunk@78952 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:27:11 +00:00
scc%mozilla.org
9cf316f94c fixing signatures, includes
git-svn-id: svn://10.0.0.236/trunk@78950 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-13 02:24:55 +00:00
shaver%mozilla.org
34eab08def #44426, fix FreeBSD > 2.5, a=brendan
git-svn-id: svn://10.0.0.236/trunk@78891 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 19:57:02 +00:00
shaver%mozilla.org
08a29e0760 #44857, fix Linux/SPARC compilation (a=brendan)
git-svn-id: svn://10.0.0.236/trunk@78889 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 19:54:45 +00:00
mkaply%us.ibm.com
fa3fbcaa2a OS/2 Tinderbox break
Need cast for VisualAge


git-svn-id: svn://10.0.0.236/trunk@78869 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:28:31 +00:00
mkaply%us.ibm.com
937d270a8c OS/2 Tinderbox break
The Windows way was right, not sure why it was made different for OS/2.


git-svn-id: svn://10.0.0.236/trunk@78868 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 12:24:32 +00:00
warren%netscape.com
3aedef481f Added URL attribute to nsIFile (why: because (a) needs to vary for different implementations, and (b) need to factor out of necko for installer). Not implemented yet.
git-svn-id: svn://10.0.0.236/trunk@78857 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 08:05:13 +00:00
dougt%netscape.com
50c960ea59 Backing out changes which reduces the number of notifies on the event queue monitor. We still are reducing the number of native notifications.
git-svn-id: svn://10.0.0.236/trunk@78845 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-12 04:37:35 +00:00
dougt%netscape.com
d60401e7be PLEvent optimizations. Part of bug 50104. This reduces the number notifications. r-valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78761 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 20:59:56 +00:00
pete%alphanumerica.com
ea81e7b701 cleaned up and added two more functions
a=brendan


git-svn-id: svn://10.0.0.236/trunk@78740 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 16:50:44 +00:00
scc%mozilla.org
3dfbe8d7b7 finishing up the special string class for the parser
git-svn-id: svn://10.0.0.236/trunk@78719 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-11 05:24:49 +00:00
rpotts%netscape.com
b15a924205 Changed the nsIInputStreams created by the storage stream to be thread-safe...
git-svn-id: svn://10.0.0.236/trunk@78667 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-10 08:12:26 +00:00
ccarlen%netscape.com
631d0c38a2 Fix for Win95 machines which don't have APP_DATA dir
r=racham


git-svn-id: svn://10.0.0.236/trunk@78632 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 15:31:27 +00:00
ccarlen%netscape.com
b00daa56ee Fix for #38770
Also fixed (unreported bug) in SetPersistentDescriptor.
r=dougt


git-svn-id: svn://10.0.0.236/trunk@78629 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 15:26:52 +00:00
scc%mozilla.org
49b4e02370 more HPUX fixes
git-svn-id: svn://10.0.0.236/trunk@78625 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 13:26:07 +00:00
scc%mozilla.org
506f2ce6ae HPUX is smarter than me
git-svn-id: svn://10.0.0.236/trunk@78624 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 12:53:38 +00:00
scc%mozilla.org
9a06126e26 moved |Mid|, |Left|, and |Right| to "nsAWritableString.h" since on SunOS, they couldn't compile until after they'd seen the definition of |basic_nsAWritableString|. They're still members or readable ... got to get rid of these functions
git-svn-id: svn://10.0.0.236/trunk@78622 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 11:57:43 +00:00
scc%mozilla.org
0b82101f78 fixing some bugs in the new parser string code; changing some names
git-svn-id: svn://10.0.0.236/trunk@78621 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 11:31:04 +00:00
scc%mozilla.org
4e5ca44047 added method to make linking possible :-)
git-svn-id: svn://10.0.0.236/trunk@78620 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 10:30:49 +00:00
scc%mozilla.org
3807f9b6c2 fixing linux bustage
git-svn-id: svn://10.0.0.236/trunk@78619 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 10:24:45 +00:00
scc%mozilla.org
b86112063e fix typo
git-svn-id: svn://10.0.0.236/trunk@78618 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 10:21:31 +00:00
scc%mozilla.org
39a896fd51 fix |const| error
git-svn-id: svn://10.0.0.236/trunk@78617 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 10:17:45 +00:00
scc%mozilla.org
f82df2e4d8 adding more new string files
git-svn-id: svn://10.0.0.236/trunk@78616 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:50:14 +00:00
scc%mozilla.org
dbd8f750b0 fixing the build for VC++
git-svn-id: svn://10.0.0.236/trunk@78615 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:48:12 +00:00
scc%mozilla.org
bf44e1bf27 fixes for VC++
git-svn-id: svn://10.0.0.236/trunk@78614 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:44:45 +00:00
scc%mozilla.org
a005d85406 fixes to make it compile on VC++
git-svn-id: svn://10.0.0.236/trunk@78613 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:39:44 +00:00
scc%mozilla.org
51c8e6a34a adding new string files to the build
git-svn-id: svn://10.0.0.236/trunk@78611 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 09:05:16 +00:00
scc%mozilla.org
4fe067af30 adding new string files to the build
git-svn-id: svn://10.0.0.236/trunk@78610 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 08:54:03 +00:00
scc%mozilla.org
0a8111b195 adding new string headers to exports
git-svn-id: svn://10.0.0.236/trunk@78609 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 08:53:39 +00:00
scc%mozilla.org
db9cca1eb2 adding new string headers to exports
git-svn-id: svn://10.0.0.236/trunk@78607 18797224-902f-48f8-a5cc-f745e15eee43
2000-09-09 08:24:31 +00:00