Граф коммитов

1151 Коммитов

Автор SHA1 Сообщение Дата
ccarlen%netscape.com 477e2b7087 Bug 202798 - Save page as fails when downloads.rdf does not exist (new Profile) r=varga/sr=sfraser 2003-04-21 21:43:38 +00:00
seawood%netscape.com 8893b1e6fd Remove global _POSIX_SOURCE & _SVID_SOURCE defines for linux.
Bug #202510 r=darin
2003-04-18 20:14:17 +00:00
ccarlen%netscape.com bff945a71a 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 2003-04-18 13:50:38 +00:00
dougt%netscape.com 1a10cdb8e2 using strnicmp instead. r=darin 2003-04-18 05:43:41 +00:00
mkaply%us.ibm.com 21b4c9b29d 202480 for OS/2 2003-04-18 02:22:17 +00:00
dougt%netscape.com b7c3e27952 bug 202480. Windows doesn't care about case. ::Contains must not either. r=darin 2003-04-18 00:48:38 +00:00
alecf%netscape.com 2354d05a20 fix for bug 199170 - more static atom work in xpcom, chrome registry, rdf, and profile dir service provider.. sr=bryner, r=ccarlen 2003-04-15 22:19:01 +00:00
darin%netscape.com bf110f8e7f fixes bug 201574 "Many Unaligned access messages when reading XUL.mfasl" r/sr=alecf,brendan 2003-04-15 18:17:54 +00:00
brendan%mozilla.org 36867f5dc9 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
2003-04-12 01:34:11 +00:00
alecf%netscape.com 3173b4f529 rev the nsIUnicharInputStream IID, since the mozdev spell checker was using it
(no reviewer, just an IID rev)
2003-04-08 00:39:19 +00:00
ccarlen%netscape.com 28c0f231a8 Bug 200662 - [OSX]GetCurrentProcessDirectory can fail. r=/sr=sfraser. 2003-04-07 14:29:56 +00:00
ssu%netscape.com d6eb21003a fixing bug 195148 - XPInstall API's getFolder should support Classic and OSX folders under OSX. r=ccarlen,dougt sr=sspitzer 2003-04-07 07:02:32 +00:00
darin%netscape.com 488974aec7 fixes bug 193918 "pipe should better utilize current segment (rollback write cursor whenever read cursor == write cursor)" r=dougt sr=bz 2003-04-05 02:02:09 +00:00
alecf%netscape.com 5f29256c3a fix for bug 195298 - pldhash ops tables should be const.. r=dougt, sr=sfraser 2003-04-04 15:10:37 +00:00
alecf%netscape.com 83708b199e fix for bug 199170 - convert xpcom over to using static atoms
r=dougt, r=ccarlen
2003-04-03 20:02:03 +00:00
seawood%netscape.com de59dbee4b Purge XP_PC.
Bug #56767 r=mkaply sr=alecf
2003-04-02 22:45:08 +00:00
darin%netscape.com 69ba0c2280 removing dead code 2003-03-25 02:10:41 +00:00
darin%netscape.com 9fe467d7a9 fixes bug 192352 "~ns{In,Out}putStreamReadyEvent should check nsIEventQueue::isQueueOnCurrentThread"
r+sr=dougt
2003-03-25 02:10:11 +00:00
mkaply%us.ibm.com 94ef89de9c #188249
r=dougt
Cleanup Makefiles, OS/2 GCC landing
2003-03-21 22:26:41 +00:00
ssu%netscape.com 1a5f9f33b8 fixing bug 186088 - Mozilla crashes during installation of XPI Packages [@ nsInstallFile::CreateAllFolders]. r=ccarlen,sr=dveditz 2003-03-21 22:18:17 +00:00
ccarlen%netscape.com 92ad0870c0 Backing out due to huge Ts increase 2003-03-20 08:45:50 +00:00
ccarlen%netscape.com 5d0894cf7d 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 2003-03-20 06:05:03 +00:00
dougt%netscape.com beb0502643 Removing dead code. b=198023, r=darin, sr=dbaron 2003-03-18 20:34:19 +00:00
mkaply%us.ibm.com 2a38fe89b9 OS/2 build doesn't come up if MOZILLA_HOME isn't set 2003-03-16 03:37:08 +00:00
mkaply%us.ibm.com 75947d90c9 OS/2 bustage 2003-03-15 02:27:21 +00:00
dougt%netscape.com be629223b6 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.
2003-03-15 01:04:32 +00:00
ccarlen%netscape.com eada17fc1c If the destination file already exists, moveTo[Native] should replace it. Bug 195109 r=sdagley/sr=sfraser 2003-03-14 20:01:41 +00:00
rginda%netscape.com 959b2433eb 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
2003-03-13 21:23:18 +00:00
cls%seawood.org 74d26b5b5d 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
2003-03-12 08:35:57 +00:00
dougt%netscape.com dc86608ecf adding SpecialSystemDirectory files to trunk. not part of build 2003-03-11 22:47:05 +00:00
dougt%netscape.com da37fd9b09 Converting the file location of the component registry and the xpti manifest file to use the directory service. r=darin, b=191055 2003-03-11 21:36:59 +00:00
cls%seawood.org ab74b36ce8 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
2003-03-07 06:07:56 +00:00
dougt%netscape.com 4e39af8ace fixes warnings 2003-03-06 23:26:43 +00:00
alecf%netscape.com da409bcb97 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
2003-03-06 19:54:51 +00:00
andreas.otte%debitel.net 7bea6bdccb 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 2003-02-27 13:15:19 +00:00
andreas.otte%debitel.net 869bb24c30 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 2003-02-27 10:55:01 +00:00
timeless%mozdev.org 5bcb0eb0a1 Bug 190799 xpcom/io/nsFileSpec.cpp", line 905: Warning: String literal converted to char* in initialization.
r=dougt sr=roc+moz
2003-02-23 04:41:24 +00:00
darin%netscape.com 3512b39216 fixes bug 193017 "downloading via ftp doesn't proceed" r=dougt sr=brendan a=dbaron 2003-02-19 03:44:46 +00:00
brendan%mozilla.org 56efef78eb - 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.
2003-02-16 17:40:16 +00:00
darin%netscape.com 77f2cb10e0 hopefully fixing WIN32 bustage 2003-02-08 02:08:34 +00:00
darin%netscape.com 5a8294b5c8 fixes bug 192196 "crashes on shutdown" r=dougt sr=blizzard a=asa 2003-02-08 00:54:36 +00:00
darin%netscape.com 8304c9ec71 fixes bug 191227 "file uploads hang (especially w/ slower connections or
slower servers)" r=dougt sr=bz a=dbaron
2003-01-31 02:00:45 +00:00
jrgm%netscape.com a7d115616c Guard against bogus entries in the object map of the fastload file, bug 189832, r=ben/jag, sr=jst, a=asa 2003-01-31 01:34:45 +00:00
darin%netscape.com 862e8220fb fixes bug 190549 "Textarea with lots of text within refuses to submit"
r=sicking sr=bzbarsky a=asa
2003-01-29 06:40:16 +00:00
darin%netscape.com 62a619ea3a cleaning up "uninitialized variable" warning resulting from last checkin, b=189689 2003-01-23 05:15:56 +00:00
darin%netscape.com 7406e88216 fixes bug 189689 "intermittent duplicated content on pages, CRC errors in
downloads" r=dougt sr=bzbarsky a=dbaron
2003-01-23 02:39:01 +00:00
mkaply%us.ibm.com bd1e3d305b Oops left printf in 2003-01-22 20:49:21 +00:00
mkaply%us.ibm.com 49eed4b41e #189349
r=cbiesinger, sr=bzbarsky
Have OS/2 follow the Windows path for downloadManager dialog - launch and open in explorer
2003-01-22 04:58:09 +00:00
mkaply%us.ibm.com 93b924445b #189841
r=dougt, sr=dmose
OS/2 only - remove config/os2 from the tree
2003-01-21 00:05:39 +00:00
darin%netscape.com b19f5d1ee0 attemping fix for linux Ts/Txul startup regression, b=189567 2003-01-19 20:46:51 +00:00