6056 Commits

Author SHA1 Message Date
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
dougt%netscape.com
89089054dc now correctly determines when two services race on a single cid. patch by mscott+dougt, r=dbaron, b=194568.\nalso removes xpcom component release location sr=alecf b=201263
git-svn-id: svn://10.0.0.236/trunk@141128 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 20:50:14 +00:00
dougt%netscape.com
0f51d838a7 Fixes bug - Mozilla fails to run due to missing StubNNN global data. r=dbradley bug=201490. patch submitted by jim@rrsl.rsmas.miami.edu
git-svn-id: svn://10.0.0.236/trunk@141127 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-14 20:43:22 +00:00
dougt%netscape.com
267f519b22 Fixes a crash on shutdown. patch by bryner. r+sr=dougt
git-svn-id: svn://10.0.0.236/trunk@141059 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-12 07:16:31 +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
bsmedberg%covad.net
062f86d6e3 forgot Makefile.in bug 200709 r=jkeiser sr=alecf Many apologies, this is my first mozilla checkin.
git-svn-id: svn://10.0.0.236/trunk@140971 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 14:14:32 +00:00
bsmedberg%covad.net
2c502145aa win32 bustage-fix for bug 200709
git-svn-id: svn://10.0.0.236/trunk@140970 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 14:01:03 +00:00
bsmedberg%covad.net
2151b43815 bug 200709 remove dynamic linking of nsTHashtable and family. r=jkeiser sr=alecf
git-svn-id: svn://10.0.0.236/trunk@140969 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 13:27:16 +00:00
mhammond%skippinet.com.au
78d983040a Fix bug 200893 - Timeline Service is not thread aware,
and bug 200204 - Timeline service should expose NS_TIMELINE_MARK_TIMER1
sr=alecf, r=alecf/dougt


git-svn-id: svn://10.0.0.236/trunk@140963 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-10 05:39:46 +00:00
dougt%netscape.com
d1364544e7 attempt 2 to fix mac os X bustage
git-svn-id: svn://10.0.0.236/trunk@140880 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 23:45:17 +00:00
dougt%netscape.com
fbd5443c8c doh. missed a endif
git-svn-id: svn://10.0.0.236/trunk@140877 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 22:26:13 +00:00
dougt%netscape.com
93df0f2658 attempting to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@140869 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 21:51:58 +00:00
dougt%netscape.com
3410e51cf4 spelling error fixed - thanks pkw@us.ibm.com.
git-svn-id: svn://10.0.0.236/trunk@140867 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 21:13:54 +00:00
dougt%netscape.com
196b953d34 fixing mistake in help option
git-svn-id: svn://10.0.0.236/trunk@140864 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:58:08 +00:00
dougt%netscape.com
a199957be1 RegXPCOM rewrite - see bug 183075 for details. sr=darin & alecf
git-svn-id: svn://10.0.0.236/trunk@140856 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:46:17 +00:00
dougt%netscape.com
539f10d62a Removing obsolete files r=dougt
git-svn-id: svn://10.0.0.236/trunk@140854 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:40:05 +00:00
dougt%netscape.com
fdffcd9198 removing removed NS_DEF_FACTORY and nsXPComFactory.h. r=alecf b=200750
git-svn-id: svn://10.0.0.236/trunk@140853 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:37:02 +00:00
dougt%netscape.com
4153606096 removing status and registry locations from xcdll. These two members are not being used. r=alecf. b=200722
git-svn-id: svn://10.0.0.236/trunk@140851 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-08 20:29:43 +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
timeless%mozdev.org
31f7fae4f0 Bug 199006 there are two independent initializations of nsMemoryImpl before Init_XPCOM2 finishes
r=dougt


git-svn-id: svn://10.0.0.236/trunk@140804 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 14:20:19 +00:00
dougt%netscape.com
2426fb6bb1 Allowing assertion dialog to work in GRE / ActiveX control apps. See 181434.
git-svn-id: svn://10.0.0.236/trunk@140803 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-07 13:58:45 +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
jkeiser%netscape.com
7f5c58a0a0 Warning fixes (bug 200709), patch by bsmedberg@covad.net, r=jkeiser@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140733 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-05 00:16:32 +00:00
dbradley%netscape.com
dc3c50a5a2 Fix for alecf's const bustage at line 1548
git-svn-id: svn://10.0.0.236/trunk@140704 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 16:39:31 +00:00
timeless%mozdev.org
f7b26c1d78 Bug 200424 nsEventQueueServiceImpl::GetThreadEventQueue might return NS_OK w/ null out [@ nsMemoryImpl::FlushMemory]
r=darin


git-svn-id: svn://10.0.0.236/trunk@140702 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 15:56:37 +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
seawood%netscape.com
d664a38a67 Add explicit dependency upon mozilla-config.h
Bug #200574 r=dougt sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@140675 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-04 04:50:58 +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
alecf%netscape.com
d9d575a55b remove #ifdef NS_DEBUG as per bug 200241
code was already reviewed, just moved out of #ifdef per bryner


git-svn-id: svn://10.0.0.236/trunk@140593 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 15:47:16 +00:00
seawood%netscape.com
ae6ed306ca msgCore.h seems to think that os2 has isalpha() too
git-svn-id: svn://10.0.0.236/trunk@140577 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 08:31:39 +00:00
jkeiser%netscape.com
3358821b5e Templatized hashtable class by bsmedberg@covad.net (bug 180264), r=jkeiser@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140570 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 06:53:57 +00:00
darin%netscape.com
ccf746783b fixes bug 199221 "provide inline implementations of common string methods" r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@140568 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 06:24:47 +00:00
alecf%netscape.com
bc74aa5083 fix for bug 199170, convert layout to use nsStaticAtom. sr=dbaron
git-svn-id: svn://10.0.0.236/trunk@140556 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-02 04:51:07 +00:00
seawood%netscape.com
8480117132 Obsoleting xp_str.h:
* Move XP_IS_ macros into nsCRT.h & rename them to NS_IS_
* Make local XP_IS_ macros use the nsCRT ones
* Remove NOT_NULL defines
Bug #199920 r=alecf sr=bryner


git-svn-id: svn://10.0.0.236/trunk@140498 18797224-902f-48f8-a5cc-f745e15eee43
2003-04-01 19:38:12 +00:00
dbaron%dbaron.org
dd955ffdf2 Use an autoconf test to set HAVE_CPP_TYPENAME. (fix bustage on newer versions of the IRIX native compiler) b=199625 r=bbaetz sr=brendan a=asa
git-svn-id: svn://10.0.0.236/trunk@140466 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 21:30:33 +00:00
seawood%netscape.com
8340936c55 Do not place dependency upon mozilla meta-build targets as we're not parallel-safe across build phases.
Bug #183263 r=bryner,dcran a=asa


git-svn-id: svn://10.0.0.236/trunk@140461 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-31 20:54:37 +00:00
jst%netscape.com
08e9d026e0 Fixing bug 124412. Making nsXULDocument inherit nsXMLDocument to avoid the need to duplicate a large amount of code in nsXULDocument. Also removing nsMarkupDocument and nsIDOMEventCapturer that are no longer needed. Changing the inheritance of nsIDOMXULDocument to avoid ~60 or so forwarding methods, and doing a *lot* of code cleanup. r=bugmail@sicking.cc, sr=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@140344 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 07:41:30 +00:00
mkaply%us.ibm.com
e94225246a #188249
r=dbradley
OS/2 GCC changes


git-svn-id: svn://10.0.0.236/trunk@140333 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-26 04:18:02 +00:00
alecf%netscape.com
671997c658 one more thing for bug 195262 - export nsStaticAtom.h - not used anywhere yet
git-svn-id: svn://10.0.0.236/trunk@140283 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 21:46:33 +00:00
sicking%bigfoot.com
0ace7bd025 Preparation for bug 185797, compiled XSLT stylesheets.
r=Pike rs=peterv


git-svn-id: svn://10.0.0.236/trunk@140273 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 20:28:09 +00:00
alecf%netscape.com
f24ccb3da0 landing attempt #2 for 195262 - support for static atoms, and converting atoms over to UTF8 to reduce bloat - now without performance regressions!
sr=darin, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@140260 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 18:55:59 +00:00
timeless%mozdev.org
d6486a04cc Bug 190058 Remove xpcom/tests/TestBuffers.cpp
r=darin sr=darin


git-svn-id: svn://10.0.0.236/trunk@140253 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 16:11:01 +00:00
dbaron%dbaron.org
4744a88e24 Fix shutdown leaks in nsTraceRefcnt. b=63665 r=timeless sr=alecf
git-svn-id: svn://10.0.0.236/trunk@140245 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 14:53:01 +00:00
neil%parkwaycc.co.uk
a8347d1ab6 Bug 198685 need nsCOMArray function like IndexOf that checks COM object identity p=bsmedberg@covad.net r=alecf (no sr needed)
git-svn-id: svn://10.0.0.236/trunk@140238 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 13:16:02 +00:00
jshin%mailaps.org
18198834d1 bug 191542 : Add UTF-8 equivalent of |IsASCII|, IsUTF8. r=smontagu, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@140230 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 08:11:13 +00:00
dbradley%netscape.com
5a90e4c06b Bug 189922 - Uninitialized variable in xpcom/typelib/xpt/src/xpt_struct. r=timeless, sr=jst
git-svn-id: svn://10.0.0.236/trunk@140225 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 07:07:48 +00:00
seawood%netscape.com
5ce9a0b484 Fix signature of standalone embedstring version of |Distance|.
Bug #198276 r=jag sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@140219 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-25 06:46:49 +00:00