1150 Commits

Author SHA1 Message Date
ccarlen%netscape.com
c64a019647 Bug 202798 - Save page as fails when downloads.rdf does not exist (new Profile) r=varga/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141531 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-21 21:43:38 +00:00
seawood%netscape.com
3b350b75cd Remove global _POSIX_SOURCE & _SVID_SOURCE defines for linux.
Bug #202510 r=darin


git-svn-id: svn://10.0.0.236/trunk@141408 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 20:14:17 +00:00
ccarlen%netscape.com
8a64538c4b Bug 164396 - Change internal representation of file from FSRef to CFURL, reducing conversions between path and FSRef and fixing other bugs. 2nd checkin of this after testing on other Tinderboxen showed Ts improvement. r=sdagley/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@141381 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 13:50:38 +00:00
dougt%netscape.com
1692de2512 using strnicmp instead. r=darin
git-svn-id: svn://10.0.0.236/trunk@141362 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 05:43:41 +00:00
mkaply%us.ibm.com
1527023f41 202480 for OS/2
git-svn-id: svn://10.0.0.236/trunk@141357 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 02:22:17 +00:00
dougt%netscape.com
ea5682a29c bug 202480. Windows doesn't care about case. ::Contains must not either. r=darin
git-svn-id: svn://10.0.0.236/trunk@141349 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-18 00:48:38 +00:00
alecf%netscape.com
b514d56ca5 fix for bug 199170 - more static atom work in xpcom, chrome registry, rdf, and profile dir service provider.. sr=bryner, r=ccarlen
git-svn-id: svn://10.0.0.236/trunk@141199 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 22:19:01 +00:00
darin%netscape.com
6fb2f64a45 fixes bug 201574 "Many Unaligned access messages when reading XUL.mfasl" r/sr=alecf,brendan
git-svn-id: svn://10.0.0.236/trunk@141189 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-15 18:17:54 +00:00
brendan%mozilla.org
271e886eb3 Reduce seeks outside the FastLoad file's underlying stream buffer (195010,
r=ben, sr=bryner).

- Pass null scope objects into nsIScriptContext::Compile{EventHandler,Script}
when precompiling for brutal sharing.  The JS engine does not need a non-null
object parameter for static scope.  That parameter can be non-null only if it
helps the compiler "pre-bind" functions to the same scope object that they'll
be parented by when executing, but with brutal sharing, functions are
precompiled once and executed against many different scope objects.

- A problem in XUL FastLoad was that it would serialize master .xul document
out-of-line scripts (those included via script src= from non-overlay, "master"
.xul docs) far from the place in the FastLoad file where XUL prototype script
info was serialized for the <script src=> tag itself.  I fixed that so that,
unless the out-of-line script was previously serialized (by a different src=
reference from another .xul file), the OOL script data immediately follows the
proto-script info in the FastLoad file.

This required adding a SerializeOutOfLine method to nsXULPrototypeScript, which
restores symmetry by matching the existing DeserializeOutOfLine(Script) (note:
I dropped the redundant "Script" from the end of the latter method's name.  We
need SerializeOutOfLine to handle overlay OOL scripts.	They are serialized by
nsXULDocument::OnStreamComplete, because that code knows the difference between
an overlay and a master doc.  This removes all trace of FastLoad writing from
nsXULPrototypeScript::Compile -- FastLoad stuff didn't belong there, not only
because we now want to write master OOL scripts later, when walking the master
XUL prototype doc's element tree, but also for modularity reasons.  The caller
knows about FastLoad, nsXULPrototypeScript::Compile does just what its name
implies.

There are 132 seeks with the patch, only 49 of which dump the underlying file
stream's buffer, vs. 133 seeks without the patch, 87 of which dump the buffer.

- Nit-picked some comments to fit in 80 columns, and made other cosmetic fixes.

- Implicated the nsXULDocument::mIsWritingFastLoad flag from the useXULCache
"is the XUL cache enabled?" flag, so other places that test mIsWritingFastLoad
don't have to query whether the cache is enabled.

- Added METERING synchronous meter-dumping to /tmp/bufstats, only ifdef
DEBUG_brendan, in netwerk/base/src/nsBufferedStreams.cpp.

- Added the deferred seek optimization from the first patch in bug 195010 to
nsFastLoadFile.cpp.

- Fixed nsFastLoadFileReader so it overrides readSegments as well as read.
This catches up with the interface extension made to nsIInputStream to add
readSegments.  The nsFastLoadFileReader extends nsBinaryInputStream, which is
a concrete class, and overrides Read in order to snoop on *all* bytes read.
It does this in order to demultiplex documents interleaved when the FastLoad
file was written.

But since the readSegments move into nsIInputStream.idl, certain primitives
in nsBinaryStream.cpp, e.g., nsBinaryInputStream::ReadCString, have used
ReadSegments, not Read, to consume parts of the underlying stream (to read
the C string's chars, in that example), and the FastLoad file implementation
has not accounted for those bytes.

- Added a new method to nsIFastLoadFileControl and its impls: hasMuxedDocument.
 This is needed when serializing master XUL doc OOL scripts, because we must
not serialize twice, and any OOL script that other XUL docs can include via
script src= could already be in the FastLoad mux.

/be


git-svn-id: svn://10.0.0.236/trunk@141047 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 01:34:11 +00:00
alecf%netscape.com
5d27a0b2ff rev the nsIUnicharInputStream IID, since the mozdev spell checker was using it
(no reviewer, just an IID rev)


git-svn-id: svn://10.0.0.236/trunk@140829 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 00:39:19 +00:00
ccarlen%netscape.com
f41eee9b95 Bug 200662 - [OSX]GetCurrentProcessDirectory can fail. r=/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@140806 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 14:29:56 +00:00
ssu%netscape.com
7bcfb95f5b fixing bug 195148 - XPInstall API's getFolder should support Classic and OSX folders under OSX. r=ccarlen,dougt sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@140789 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 07:02:32 +00:00
darin%netscape.com
4ce36801bf fixes bug 193918 "pipe should better utilize current segment (rollback write cursor whenever read cursor == write cursor)" r=dougt sr=bz
git-svn-id: svn://10.0.0.236/trunk@140737 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 02:02:09 +00:00
alecf%netscape.com
8d4f1935a6 fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@140696 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:10:37 +00:00
alecf%netscape.com
daf11f6832 fix for bug 199170 - convert xpcom over to using static atoms
r=dougt, r=ccarlen


git-svn-id: svn://10.0.0.236/trunk@140652 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-03 20:02:03 +00:00
seawood%netscape.com
5921049139 Purge XP_PC.
Bug #56767 r=mkaply sr=alecf


git-svn-id: svn://10.0.0.236/trunk@140602 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 22:45:08 +00:00
darin%netscape.com
de3c6a4399 removing dead code
git-svn-id: svn://10.0.0.236/trunk@140196 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 02:10:41 +00:00
darin%netscape.com
c7dbb27bac fixes bug 192352 "~ns{In,Out}putStreamReadyEvent should check nsIEventQueue::isQueueOnCurrentThread"
r+sr=dougt


git-svn-id: svn://10.0.0.236/trunk@140195 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 02:10:11 +00:00
mkaply%us.ibm.com
c4dd287ca5 #188249
r=dougt
Cleanup Makefiles, OS/2 GCC landing


git-svn-id: svn://10.0.0.236/trunk@139989 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 22:26:41 +00:00
ssu%netscape.com
5e2bb02a1f fixing bug 186088 - Mozilla crashes during installation of XPI Packages [@ nsInstallFile::CreateAllFolders]. r=ccarlen,sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@139987 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-21 22:18:17 +00:00
ccarlen%netscape.com
b48a83b1bd Backing out due to huge Ts increase
git-svn-id: svn://10.0.0.236/trunk@139829 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 08:45:50 +00:00
ccarlen%netscape.com
b2784602b3 Bug 164396 - [OS X]Reduce conversions between path and FSRef. Changes internal representation to not use FSRef which should fix various bugs. r=sdagley/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@139825 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-20 06:05:03 +00:00
dougt%netscape.com
1f77942025 Removing dead code. b=198023, r=darin, sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@139694 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-18 20:34:19 +00:00
mkaply%us.ibm.com
85ec2faae7 OS/2 build doesn't come up if MOZILLA_HOME isn't set
git-svn-id: svn://10.0.0.236/trunk@139554 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-16 03:37:08 +00:00
mkaply%us.ibm.com
e4dd3e2675 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@139488 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 02:27:21 +00:00
dougt%netscape.com
fed2927b2c Create a new xpcom obsolete library (and component library).
Moved nsFileSpec and related classes into this obsolete library.
  Moved nsRegistry and related libreg functionality into the obsolete library.

Updated many callers using the obsolete nsFile spec to use nsIFile and Necko to do file IO.

Combined the following DLLs (source -> dest)
  uriloader -> docshell
  shistory -> docshell
  jsurl -> jsdom
  gkview -> gklayout

Moved nsAdapterEnumerator out of xpcom/ds and into mailnews, since they're the only consumer

Modifed the xpt_link tool so that you can specify a “only include” cid list that can mask CID’s that you are not interested in.

Added build options:
Prevent the building of xpinstall (--disable-xpinstall)
Prevent the building js component loader (--disable-jsloader)
A build option to only build a single profile (--enable-single-profile)
A build flag to only built the required xpfe components (--disable-xpfe-components).

Removal or hiding of unused functions and classes including nsEscape*, nsDequeIterator, nsRecyclingAllocatorImpl, nsDiscriminatedUnion, nsOpaqueKey, nsCRT::strlen, NS_NewCommandLineService

Bug 194240, r/sr = darin, alec.


git-svn-id: svn://10.0.0.236/trunk@139480 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-15 01:04:32 +00:00
ccarlen%netscape.com
aa7c17d84b If the destination file already exists, moveTo[Native] should replace it. Bug 195109 r=sdagley/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@139464 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-14 20:01:41 +00:00
rginda%netscape.com
8f40c15175 bug 170585, Scriptable streams are broken; r=darinf, sr=dougt
add factories so js can create the nsIBinary*Stream objects,
also adds read/writeByteArray functions


git-svn-id: svn://10.0.0.236/trunk@139398 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-13 21:23:18 +00:00
cls%seawood.org
7eb198d87a Remove bogus mingw & win16 ifdefs from plevent.h
Add stub declaration for _mbstr which isn't defined in the current mingw headers but is present in the libs.
Fix GRE definition of XPCOM_DLL for mingw.
Bug #134113 r=dougt


git-svn-id: svn://10.0.0.236/trunk@139321 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-12 08:35:57 +00:00
dougt%netscape.com
9cfbe5b54d adding SpecialSystemDirectory files to trunk. not part of build
git-svn-id: svn://10.0.0.236/trunk@139293 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 22:47:05 +00:00
dougt%netscape.com
928f8738d9 Converting the file location of the component registry and the xpti manifest file to use the directory service. r=darin, b=191055
git-svn-id: svn://10.0.0.236/trunk@139289 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-11 21:36:59 +00:00
cls%seawood.org
609a196b54 XP code changes required for mingw landing.
Add NS_STDCALL macros for functions that require stdcall declarations.
Add NS_STDCALL_FUNCPROTO macro for stdcall function prototype typedefs.
Bug #134113 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@139083 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-07 06:07:56 +00:00
dougt%netscape.com
ef0769cc32 fixes warnings
git-svn-id: svn://10.0.0.236/trunk@139054 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 23:26:43 +00:00
alecf%netscape.com
326b7425d7 fix for bug 191416 - clean up nsIUnicharInputStream to make it more like nsIInputStream:
- hide Fill() (or remove it where not necessary)
- add ReadSegments() so that we can do reads without copying
- remove the extra offset parameter to Read()
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@139039 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 19:54:51 +00:00
andreas.otte%debitel.net
30116951cd fix bug 193477 [URL: colon ":" in URI is escaped in request (not scheme or port delimiter)] no longer escape the colon when it is part of the filename in urls, but force it's escape in links when building dir/index listings, r=bbaetz@acm.org, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@138607 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 13:15:19 +00:00
andreas.otte%debitel.net
65d7d8a7c6 fix bug 191638 [index/html: files|dirs with "%" need to be properly encoded] force escape of % as part of filenames to %25 to not be damaged by unescape, r=bbaetz@acm.org, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@138605 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-27 10:55:01 +00:00
timeless%mozdev.org
561a23d669 Bug 190799 xpcom/io/nsFileSpec.cpp", line 905: Warning: String literal converted to char* in initialization.
r=dougt sr=roc+moz


git-svn-id: svn://10.0.0.236/trunk@138275 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-23 04:41:24 +00:00
darin%netscape.com
1f38ffd219 fixes bug 193017 "downloading via ftp doesn't proceed" r=dougt sr=brendan a=dbaron
git-svn-id: svn://10.0.0.236/trunk@137969 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-19 03:44:46 +00:00
brendan%mozilla.org
6348c215f4 - Turn jrgm's helpful assert/defend changes into assertions that mCIDOffset
is never 0, and make the memset-to-zero required for these assertions be
  #ifdef NS_DEBUG.
- Extend FastLoad file format to encode a singleton flag in the high bit of
  nsFastLoadSharpObjectInfo.mWeakRefCnt.  The updater code needs to test this
  bit in order to deserialize a singleton that was not read by the updater's
  reader during this FastLoad episode.  Otherwise the updater is likely to
  reserialize the singleton, leading to multiple entries in the object map
  for the same object, and UMRs when loading from the writer's object map
  enumeration (objvec) in nsFastLoadFileWriter::WriteFooter.
- Remove bogus assertion that worked only when an XPCOM data structure being
  serialized was still alive at the time the writer closed.  In general, there
  is no relationship between the strong ref-counts in a FastLoad file and the
  XPCOM refcnts in memory at close time.
- Bug 189832, r=jrgm, sr=ben, a=dbaron.


git-svn-id: svn://10.0.0.236/trunk@137872 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-16 17:40:16 +00:00
darin%netscape.com
dc87cb06f2 hopefully fixing WIN32 bustage
git-svn-id: svn://10.0.0.236/trunk@137578 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-08 02:08:34 +00:00
darin%netscape.com
1b46f4a68a fixes bug 192196 "crashes on shutdown" r=dougt sr=blizzard a=asa
git-svn-id: svn://10.0.0.236/trunk@137573 18797224-902f-48f8-a5cc-f745e15eee43
2003-02-08 00:54:36 +00:00
darin%netscape.com
979608deea fixes bug 191227 "file uploads hang (especially w/ slower connections or
slower servers)" r=dougt sr=bz a=dbaron


git-svn-id: svn://10.0.0.236/trunk@137175 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 02:00:45 +00:00
jrgm%netscape.com
be802e1b74 Guard against bogus entries in the object map of the fastload file, bug 189832, r=ben/jag, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@137173 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-31 01:34:45 +00:00
darin%netscape.com
57bac18c51 fixes bug 190549 "Textarea with lots of text within refuses to submit"
r=sicking sr=bzbarsky a=asa


git-svn-id: svn://10.0.0.236/trunk@137068 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-29 06:40:16 +00:00
darin%netscape.com
fe90a2b41e cleaning up "uninitialized variable" warning resulting from last checkin, b=189689
git-svn-id: svn://10.0.0.236/trunk@136869 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 05:15:56 +00:00
darin%netscape.com
725a3c23ee fixes bug 189689 "intermittent duplicated content on pages, CRC errors in
downloads" r=dougt sr=bzbarsky a=dbaron


git-svn-id: svn://10.0.0.236/trunk@136863 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-23 02:39:01 +00:00
mkaply%us.ibm.com
be1cb53837 Oops left printf in
git-svn-id: svn://10.0.0.236/trunk@136853 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 20:49:21 +00:00
mkaply%us.ibm.com
171a806dc5 #189349
r=cbiesinger, sr=bzbarsky
Have OS/2 follow the Windows path for downloadManager dialog - launch and open in explorer


git-svn-id: svn://10.0.0.236/trunk@136811 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-22 04:58:09 +00:00
mkaply%us.ibm.com
912ee5ce97 #189841
r=dougt, sr=dmose
OS/2 only - remove config/os2 from the tree


git-svn-id: svn://10.0.0.236/trunk@136704 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-21 00:05:39 +00:00
darin%netscape.com
455bcc2aa7 attemping fix for linux Ts/Txul startup regression, b=189567
git-svn-id: svn://10.0.0.236/trunk@136646 18797224-902f-48f8-a5cc-f745e15eee43
2003-01-19 20:46:51 +00:00