Fred Jendrzejewski
8759b06c00
Bug 466622. Replace nsCStringArray with nsTArray<nsCString> for more consistent code and fewer heap allocations. r+sr=roc,r=bsmedberg
...
--HG--
extra : rebase_source : b963bf5de9d9c445b14620479691482512e0faf2
2009-01-22 17:15:34 +13:00
Fred Jendrzejewski
7d5761cdfa
Bug 461047 - Replace nsStringArray with nsTArray<nsString>. r+sr=roc
2009-01-18 21:14:14 +01:00
Robert O'Callahan
1a9b00de4e
Backed out changeset 8019a959aade
2009-01-16 22:20:33 +13:00
Fred Jendrzejewski
b79ad6fa55
Bug 461047. Replace nsStringArray with nsTArray<nsString>. r+sr=roc
...
--HG--
extra : rebase_source : 7a20af24c97867efbb28dafa6a70ea1b4cf00e58
2009-01-16 20:51:04 +13:00
timeless@mozdev.org
d79aacc7cc
Bug 471296 nsArray (NS_ARRAY_CONTRACTID) can't be used on a single thread of its creator's choice, r=bsmedberg
2009-01-15 20:02:22 -08:00
timeless@mozdev.org
ba41e71939
Bug 472097 xul!nsMemoryImpl::IsLowMemory is broken on systems w/ lots of vm, r=bsmedberg
2009-01-15 20:02:21 -08:00
Phil Ringnalda
4d8777d31a
Bug 243621 - (Back out) Standardize QueryInterface without throw, r=timeless, sr=sicking
2009-01-15 20:02:21 -08:00
Josh Aas
7537dc5537
Modernize xpcom i/o launch and reveal methods on Mac OS X, 64-bit compat. b=473078 sr=dougt
2009-01-15 17:57:43 -05:00
Benjamin Smedberg
5fc3ec0ea7
Bug 473587 - nsTString::ToInteger can overflow. Detect and prevent this condition, r+sr=dbaron
...
--HG--
extra : rebase_source : b0c9f51f2860aa1008c447334fa9075dd0b8e718
2009-01-15 13:44:46 -05:00
L. David Baron
a59b1cf8db
Only run assertion checks in DEBUG builds. (Bug 472557) r=Waldo,bsmedberg
2009-01-13 11:50:40 -08:00
Mook
d1f50982c8
Bug 472063 - mingw build failure: undefined reference to 'WinMain@16' in windbgdlg.cpp, r=neil, sr=bsmedberg
2009-01-12 21:43:35 -08:00
Benjamin Smedberg
54de57c5d0
Bug 463642 - Safe mode should disable JIT, r+sr=jst
...
--HG--
rename : toolkit/xre/nsIXULRuntime.idl => xpcom/system/nsIXULRuntime.idl
2009-01-12 11:05:10 -05:00
Phil Ringnalda
f4e117542a
Can not aquire, or even acquire, anything other than a CLOSED TREE
2009-01-11 17:42:29 -08:00
Peter Weilbacher
cac12268be
[OS/2] Bug 472753: fix OS/2 build break in nsComponentManager.cpp by adding necessary defines to the os2.h include in nsLocalFileOS2.h (fix suggested by Walter Meinl)
...
(OS/2 only, so does not affect a CLOSED TREE)
2009-01-11 14:19:00 +01:00
L. David Baron
e84f7f11b1
Add ability to mark JSDHashTable/PLDHashTable as immutable and thus prevent RECURSION_LEVEL assertions from firing due to lookups racing on multiple threads. (Bug 469004) r=brendan,mrbkap
2009-01-10 08:28:16 -08:00
L. David Baron
ef141b8d52
Synchronize pldhash with recent changes to jsdhash by rerunning through plify_jsdhash.sed.
2009-01-10 08:28:16 -08:00
Robert O'Callahan
0a88efce86
Bug 462593. Add nsPtrHashKey<T> to XPCOM. r=bsmedberg
2009-01-09 13:12:33 +13:00
L. David Baron
1c70e13d0d
Expose the number of assertions since process start from XPCOM. (Bug 472557) r=bsmedberg
2009-01-08 13:50:21 -08:00
Benjamin Smedberg
cd5512efb5
Bug 463289 - nsNativeModuleLoader doesn't protect its internal data structures, and is accessed on multiple threads (symptom is RECURSION_LEVEL assertions in pldhash.c). This patch is the simple-but-slow path: proxy all non-main-thread requests to the main thread. This is probably sufficient because asking for modules is a relatively rare activity: the component manager caches the factory objects after a lookup, r=brendan
...
--HG--
extra : rebase_source : 3118096536b6271886d5c35a3486bb278dc0fd86
2008-11-26 14:39:36 -05:00
Taras Glek
5c08797a3f
Bug 471087. Kill nsIDKey. r=bsmedberg
...
--HG--
extra : rebase_source : 9d60a541863c545101417cf00a11cb9ceda70a09
2009-01-08 21:43:07 +13:00
Sergey Yanovich
a9bc176a99
Bug 462497. Don't reacquire a monitor in nsComponentManagerImpl::HashContractID that we already hold. r=bsmedberg
...
--HG--
extra : rebase_source : 5a024be37b8d28025f24b207d9622c1b597daea0
2009-01-08 21:41:55 +13:00
timeless@mozdev.org
cdbe2c72aa
Bug 470595 - crash [@ strlen - nsComponentManagerImpl::IsContractIDRegistered], r=bsmedberg
2009-01-07 20:42:15 -08:00
L. David Baron
add2ce5a81
Add nsTArray<E>::TruncateLength, which is like SetLength, except only allows shortening of the array. (Bug 191448) r=bsmedberg
2009-01-06 15:21:00 -08:00
Benjamin Smedberg
720c4f5577
Bug 472348 - Some unused variables found by combing the warning database, rs=bz
2009-01-06 14:25:58 -05:00
Taras Glek
bd7706c891
Bug 470859: speed things up by getting rid of dead nsID callsites r=bsmedberg
2009-01-05 14:48:25 -08:00
timeless@mozdev.org
019a5db754
Bug 444918 - Crash when closing epiphany [@ NS_HasPendingEvents_P] ifndef MOZILLA_INTERNAL_API, r=bsmedberg
2009-01-04 10:59:17 -08:00
Robert O'Callahan
50bd83420a
Bug 469247. Implement 'canPlayType' API for video/audio elements. r=doublec,r+sr=bzbarsky
...
--HG--
extra : rebase_source : 06b14571546a763ee4f4b8641e8582bfff2caf8d
2008-12-17 15:11:07 +13:00
Taras Glek
473fa7beeb
Bug 465128 - .autoreg timestamp problems (component registration owns startup time); Ignore autoreg if timestamps are screwy; r=benjamin
2008-12-13 17:04:06 +01:00
Makoto Kato
1bfe451582
Bug 434989 - patch for FreeBSD 8-current (and after 7.0). r/sr=benjamin, patch by okazaki@kick.gr.jp
2008-12-13 10:18:09 +09:00
Robert Sayre
1afdec58da
Merge tm to m-c.
2008-12-11 15:17:58 -08:00
Benjamin Smedberg
8e93542d35
Bug 469072 - Annotations in XPCOM, and a couple related code fixups, to make outparams spit out useful warnings, r=bent
2008-12-11 15:13:52 -05:00
Brad Lassey
54cfb1894f
Bug 455381 - WinCE XPCOM Explicit Unicode API Calls, Wide Char CheckVersion Function nsCommonProcess changes. relanding after backout. r=bsmedberg
2008-12-11 11:50:24 -08:00
Robert Sayre
a724b3875f
Merge m-c to tracemonkey
2008-12-10 15:40:30 -08:00
Steven Michaud
376bb811ac
Avoid crashing on non-fatal Objective-C exceptions caused by a 10.4-only Apple bug. b=461381 r=josh sr=roc
2008-12-10 15:42:00 -06:00
arno renevier
a66a8a6600
Bug 460295 - nsRefPtrHashtable.h belongs to sdk and includes nsAutoPtr.h which does not; r=benjamin sr=dveditz
2008-12-10 15:17:14 +01:00
Benjamin Smedberg
e8ea9cf02d
Merge mozilla-central into tracemonkey, specifically to pick up bug 467579.
2008-12-09 21:37:35 -05:00
Benjamin Smedberg
829d712e59
Disable the outparams warning "written on NS_FAILED"... we should focus first on the "not written on NS_SUCCEEDED" warnings, which are generally more serious. No bug, NPODB, CLOSED TREE a=johnath
2008-12-09 17:34:48 -05:00
Benjamin Smedberg
893f114acb
Bug 468717 - enable static analysis for js/src, r=jorendorff
...
--HG--
rename : xpcom/analysis/static-checking.js => config/static-checking.js
rename : xpcom/analysis/string-format.js => config/string-format.js
rename : xpcom/analysis/static-checking.js => js/src/config/static-checking.js
rename : xpcom/analysis/string-format.js => js/src/config/string-format.js
rename : xpcom/analysis/jsstack.js => js/src/jsstack.js
2008-12-11 11:40:04 -05:00
Neil Rashbrook
84fcb0c547
Bug 468002 Really make windbgdlg a Unicode application r=blassey sr=bsmedberg
2008-12-05 21:30:17 +00:00
Makoto Kato
85d99e9dad
Bug 447946 - Crash anywhere with optimize on x64 Windows build due to alignment. r/sr=benjamin
2008-12-04 21:38:12 +09:00
Jeff Walden
6fd6a6f04e
Bug 397227 - So the first failure is fixed, but now a Windows box is acting up, so let's try an obvious fix. r=redness, whose patience is being severely tested
2008-12-04 01:13:14 -08:00
Jeff Walden
f9ce0e9aa7
Bug 397227 - Reduce the effort needed to write C++ tests. r=ted
2008-12-03 22:25:00 -08:00
Neil Rashbrook
26a4bc8c33
Bug 467779 IsDebuggerPresent doesn't need to be dynamically loaded any more r=bsmedberg
2008-12-04 00:18:28 +00:00
Gavin Sharp
b6d9f233d4
merge backout of ce8fbd7d222e for bug 455381
2008-12-03 18:51:29 -05:00
Gavin Sharp
23c1b2d6fe
backout changeset ce8fbd7d222e from bug 455381 to fix windows unit test bustage
2008-12-03 18:49:54 -05:00
Benjamin Smedberg
cfb7d3a3c4
When operator new is used on a class with no constructor it generates an AGGR_INIT_EXPR, not a CALL_EXPR... with testcase. NPODB, static-checking only.
2008-12-03 11:49:54 -05:00
Benjamin Smedberg
6925784a52
I switched the stack checker to emit warnings instead of errors. Update the testcases expected results to match.
2008-12-03 11:49:54 -05:00
Brad Lassey
286dc1da9e
Bug 455381 - WinCE XPCOM Explicit Unicode API Calls, Wide Char CheckVersion Function nsCommonProcess changes r=bsmedberg
2008-12-03 08:41:12 -05:00
Brad Lassey
4342224fbe
Bug 455381 - WinCE XPCOM Explicit Unicode API Calls, Wide Char CheckVersion Function r=bsmedberg
2008-12-03 08:41:12 -05:00
Olli Pettay
31da68d393
Trying to fix random orange, backing out Bug 463289,
2008-12-03 15:26:59 +02:00
Benjamin Smedberg
69b2ad97cb
Merge bug 466492, bug 466486, bug 463289, bug 442012, and bug 463420
2008-12-02 14:08:12 -05:00
Brad Lassey
c217f58544
Bug 461859 - windows mobile minor cleanup of xpcom r=bsmedberg
2008-12-03 08:42:03 -05:00
Benjamin Smedberg
9263d3fc6f
Change the stack-class analysis to a warning instead of an error, at least temporarily: the analysis was buggy when originally landed, and there are some heap-allocated autostrings outstanding through the tree.
2008-12-01 13:59:58 -05:00
Josh Aas
7fe11ffa84
comment and whitespace cleanup for Mac OS X filesystem code. no bug.
2008-11-28 13:37:40 -05:00
Justin Wood
b2458c170c
Bug 463824, Introduce GLOBAL_DEPS to build system
...
r=ted, a1.9.1=beltzner [js bits rs=sdwilsh]
2008-11-27 18:26:44 -08:00
Shawn Wilsher
19fcb4b6ab
Backed out changeset 87f6ae0c4324 (bug 435474) for orange.
2008-11-27 13:15:18 -08:00
Justin Wood
293c89f577
Bug 463824, Introduce GLOBAL_DEPS to build system
...
r=ted, a1.9.1=beltzner
2008-11-27 12:27:41 -08:00
Benjamin Smedberg
32cd05bc7d
Bug 463289 - nsNativeModuleLoader doesn't protect its internal data structures, and is accessed on multiple threads (symptom is RECURSION_LEVEL assertions in pldhash.c). This patch is the simple-but-slow path: proxy all non-main-thread requests to the main thread. This is probably sufficient because asking for modules is a relatively rare activity: the component manager caches the factory objects after a lookup, r=brendan
2008-11-26 14:39:36 -05:00
Benjamin Smedberg
0c8ea59022
Bug 442012 - Allocating more than 2GB of memory in mozilla is never a good idea. On 64-bit systems PRSize and size_t are 64-bit and so truncation from PRSize to PRUint32 could cause weird behavior errors. Prevent these huge allocations. r=wtc sr=dveditz
2008-11-26 14:38:53 -05:00
Daniel Veditz
2a977ae2d8
bug 464998 - r+sr=bsmedberg, a=beltzner
2008-11-19 11:55:59 -05:00
Jim Blandy
6721e0d7d2
Bug 462451: Don't be confused by .deps dirs in the source tree. r=bsmedberg
...
$(MDDEPDIR) needs to be created in the build tree, but if make rules
list $(MDDEPDIR) as a dependency, then the VPATH search will tend to
find dependency directories in source trees if the source tree has
been configured in the past. So use $(CURDIR)/$(MDDEPDIR) instead.
Some directory Makefiles have been adding $(MDDEPDIR) to MAKE_DIRS and
GARBAGE_DIRS explicitly, since they're not setting any of the
variables that would cause config/rules.mk to create $(MDDEPDIR)
automatically. Those makefiles would have to use the $(CURDIR) trick
to defeat the VPATH search, too. Instead, have rules.mk check an
additional variable NEED_MDDEPDIRS, and let the makefiles set that;
this keeps the magic in one place.
2008-11-10 12:55:46 -08:00
Karl Tomlinson
112ef7208d
b=461087 provide templates for automatically-releasing handles to foreign resources, r=bsmedberg
2008-11-06 11:13:37 +13:00
Phil Ringnalda
bbe7e1d08a
Bug 461888 - Remove unused PACKAGE_FILE and PACKAGE_VARS and .pkg files, mozilla-central part, r=bsmedberg
2008-11-03 19:46:28 -08:00
Peter Van der Beken
e743beb9c4
Fix for bug 457897 (Remove QI on 'this' object when calling from JS to C++). Patch by jorendorff and me, r/sr=jst.
2008-11-03 11:31:47 +01:00
Walter Meinl
52dd0fc6f0
Bug 454097 - [OS/2] get rid of VisualAge in configures; <nsFileSpecOS2.cpp> leftover; r=mozilla
2008-11-02 19:02:25 +01:00
Dave Townsend
d13a725406
Bug 455906: Support severities for blocklist entries. r=robstrong, r=jst
...
--HG--
rename : toolkit/mozapps/extensions/content/list.xul => toolkit/mozapps/extensions/content/blocklist.xul
rename : toolkit/mozapps/extensions/public/nsIBlocklistService.idl => xpcom/system/nsIBlocklistService.idl
2008-11-02 12:13:48 +00:00
Dave Townsend
d81de86f28
Backed out changeset bbccbf2c7456
2008-11-02 03:27:18 +00:00
Dave Townsend
f6b515d08c
Bug 455906: Support severities for blocklist entries. r=robstrong, r=jst
...
--HG--
rename : toolkit/mozapps/extensions/content/list.xul => toolkit/mozapps/extensions/content/blocklist.xul
rename : toolkit/mozapps/extensions/public/nsIBlocklistService.idl => xpcom/system/nsIBlocklistService.idl
2008-11-02 01:34:45 +00:00
Dave Townsend
719a03bd19
Bug 461594: Interfaces changed without iid updates. r=josh, r=jst
2008-10-31 10:31:43 +00:00
Steve Snyder
57532e4748
Bug 410509 - Set 128-bit alignment for stack in x86, r=bsmedberg
2008-10-30 10:08:42 -07:00
Josh Aas
074998c2bd
back out changeset 47259b642835, b=456662
2008-10-28 17:00:32 -07:00
Josh Aas
33e979243d
bug 456662 bustage fix, remove reference to MoreFiles
2008-10-28 16:10:09 -07:00
Josh Aas
6852fb9eee
Optimizations and 64-bit work for Mac OS X filesystem code. b=456662 r=smichaud sr=dougt
2008-10-28 12:15:56 -07:00
Dave Townsend
9a9dc5395e
Bug 461770: Fix line numbers for methods and attributes and other miscellaneous bits in the idl parser. r=bsmedberg
2008-10-28 09:04:41 +00:00
Daniel Veditz
90dbbefb64
bug 455987 crash fix, r/sr=bsmedberg
2008-10-24 16:15:33 -07:00
Benjamin Smedberg
1de5c15668
Bug 460999 - Generate inheritance graphs for the base of the string hierarchy and upload them to MDC with image maps r=jorendorff
2008-10-24 16:29:33 -04:00
Jason Orendorff
b7fb9bc849
Bug 460865 - Read barrier for cx->fp. r=mrbkap, r=dmandelin.
...
--HG--
extra : rebase_source : 19963188b2f9f96336ce6ca28dbaefccf3a639b7
2008-12-09 10:38:32 -06:00
Dmitry Potapov
7214c98ab9
Bug 412610 - "MAXPATHLEN too small for glibc's realpath()" (define MAXPATHLEN as PATH_MAX when PATH_MAX is available) [r=bsmedberg]
2008-10-20 22:55:57 -05:00
Mike Hommey
9c726ea5c9
Bug 435088 - "Check .autoreg in the GRE directory, too" [r=bsmedberg]
2008-10-20 22:23:45 -05:00
Mike Hommey
cbbe74e9c0
Bug 434503 - "m68k xptcstubs/xptcinvoke fail to build on trunk" [r=bsmedberg]
2008-10-20 22:22:27 -05:00
Mike Hommey
8115570fad
Bug 258429 - "Crash at startup on mips" [sr=bsmedberg]
2008-10-20 21:31:13 -05:00
Serge Gautherie
89718529d9
Bug 457046 - Decide what to do with <TestPipes.cpp> |#if 0|'ed code; (Cv1) Remove obsolete |#if 0| code; r=benjamin
2008-10-20 19:24:43 +02:00
Brad Lassey
dbe8393bf5
Bug 458252: local file paths are wrong on windows mobile r=dougt sr=bsmedberg
2008-10-20 13:03:20 -04:00
Walter Meinl
a04b09093c
Bug 454097 - [OS/2] get rid of VisualAge in configures; m-c part; r=mozilla
2008-10-11 03:01:28 +02:00
Mike Hommey
d4ff8b856e
Bug 440506 - Add a globally shared location for plugins; r=joshmoz sr=jst
2008-10-10 17:54:33 +02:00
Arpad Borsos
8b11d938d2
Bug 456388 - Remove PR_STATIC_CALLBACK and PR_CALLBACK(_DECL) from the tree; r+sr=brendan
2008-10-10 17:04:34 +02:00
Zack Weinberg
d55493eb24
Bug 459158 - XPT files contain wasted space when written on a machine with 64-bit pointers; r=benjamin
2008-10-10 16:53:05 +02:00
Ben Turner
cb9c51cb1f
Backed out changeset 2bbdbe2127d3 due to hanging unit tests.
2008-10-09 12:23:22 -07:00
Josh Aas
73a055d8ee
Get rid of flawed Windows stat cache. b=456603 r=smichaud sr=dougt
2008-10-09 13:52:08 -04:00
Benjamin Smedberg
db0bdeafc2
Bug 458755 - Automated documentation of string classes on MDC using static analysis, r=taras
2008-10-09 12:34:33 -04:00
Doug Turner
59512b44b6
backing out the top level comment line to its orig state
2008-10-08 21:25:11 -07:00
Doug Turner
c0f3061262
removing erronous change to nsLocalFileWin
2008-10-08 21:22:21 -07:00
John Wolfe
feab1c83a3
Bug 436531 - asmXPTC_InvokeByIndex Bogus Return Value in WinMobile builds. sans test cases. r=blassey
2008-10-08 21:17:11 -07:00
Doug Turner
7601be8c85
Backed out changeset 7e5d581bc86d
2008-10-08 21:10:25 -07:00
wolfe@lobo.us
d705e2e90f
Bug 436531 - asmXPTC_InvokeByIndex Bogus Return Value in WinMobile builds. r=bsmedberg/dougt
2008-10-08 20:57:38 -07:00
Doug Turner
996fd0f708
Bug 458917 - Windows CE Cleanup. r/sr=stuart+bsmedberg
2008-10-08 20:51:54 -07:00
Josh Aas
8097f27218
Backed out changeset 4a461b03f6ae, b=456603
2008-10-08 01:32:04 -04:00
Josh Aas
b0da2fc34b
Get rid of flawed Windows stat cache. b=456603 r=smichaud sr=dougt
2008-10-07 23:18:05 -04:00
Josh Aas
e877a4f430
Don't incorrectly change permissions on link target in SetPermissionsOfLink in unix fs code. Just don't do anything for changes targetting links. b=457487 r=smichaud sr=dougt
2008-10-07 21:26:41 -04:00
Serge Gautherie
1947a775cd
Bug 457046 - Decide what to do with <TestPipes.cpp> |#if 0|'ed code; Bv1; r=benjamin
2008-10-08 02:27:05 +02:00