Benjamin Smedberg
762def30bb
Merge mozilla-central into the static-xpcom-registration branch.
2010-06-23 17:26:25 -04:00
Benjamin Smedberg
76f5edb3bb
Bug 568691 fixups: alter mockObjects.js so that it registers its mock by contractID but doesn't replace the CID. Fix the generic classinfo not to assert when code asks for the class description (which is no longer implemented).
2010-06-23 15:18:13 -04:00
Benjamin Smedberg
202aa47626
Bug 568691 - Add CID data back to classinfo because it's required for fastload to work correctly.
2010-06-22 12:59:57 -04:00
Benjamin Smedberg
45af085fff
Merge mozilla-central into the "branch" for but 568691. The omnijar XPT/component/chrome registration was removed during this merge, and will be re-added to the component manager shortly.
...
--HG--
rename : content/base/public/nsIChromeRegistry.idl => chrome/public/nsIChromeRegistry.idl
2010-06-21 11:41:42 -04:00
Benjamin Smedberg
c23f09c9bf
Merge platform-specific branches of bug 568691.
2010-06-21 08:57:50 -04:00
Benjamin Smedberg
492155b10e
Bug 568691 part C - Register all components based on reading .manifest files from the components directories. Binary components auto-register using "binary-component name.dll". JS components register using "component CID file.js" "contract @mozilla.org/contract;1 CID" and "category categoryname keyname value".
...
This patch has some bugs, specifically we stop looking for .manifest files in chrome/. I will fix that in a followup. It also probably breaks non-libxul builds because of ordering issues.
Another followup will actually fix our in-tree JS components and add build machinery for creating a proper components.manifest file.
2010-06-11 16:13:26 -04:00
Benjamin Smedberg
f4b60bdbf4
Fix Linux-specific issues with static xpcom registration, bug 568691.
2010-06-11 12:47:31 -04:00
Chris Jones
ccb97b45d7
Bug 570912: Allow already_AddRefed<T> to be coerced to already_AddRefed<U> when T can be coerced to U. r=dbaron
2010-06-21 15:35:49 -05:00
Benjamin Smedberg
9045c05660
Bug 568691 part A - register static and binary components using data tables rather than programmatic nsIComponentRegistrar methods. This part contains the important needs-review bits of the change: part B contains the mechanical changes to each module in order to actually get a working build. Part C will contain changes necessary to register JS components from .manifest files
2010-06-10 14:11:11 -04:00
Benjamin Smedberg
c020d3bdef
Bug 570488 - Remove xpti.dat caching which harms us in runtime and code complexity
2010-06-10 12:51:29 -04:00
Dão Gottwald
b314909c2e
Backed out changeset db6f8068e9a5
2010-06-29 17:49:21 +02:00
Saint Wesonga
c3669d7e9c
Bug 562387 - Convert NS_NEWXPCOM/NS_DELETEXPCOM to new/delete. r=bsmedgerg
2010-06-29 17:14:36 +02:00
Jacek Caban
f2c3c460bb
Bug 508905 - /Zc:wchar_t- is no longer required (wince part) r=doug.turner
...
--HG--
extra : rebase_source : 13d6dadb676ca5e29b7e7bcfff5bbb1c964f78e4
2010-06-27 01:30:05 +02:00
Daniel Holbert
cb6a1a06d6
Bug 575014: cast pointer-subtraction in nsTArray to produce index_type instead of (64-bit) size_t, to fix build warning on Win64. (bustage fix) rs=timeless pending-r=bsmedberg
2010-06-26 17:50:36 -07:00
Eli Friedman
622dc3dd3c
Bug 573210 - Consistently qualify accesses to dependent base classes in xpcom C++ code. r=dbaron
2010-06-30 23:11:43 +02:00
Benjamin Smedberg
755c2ae337
Bug 570488 - Stop reading/writing xpti.dat and incrementally loading XPT files [1/2] r=Mossop
...
--HG--
extra : rebase_source : 9f28729c1032b516e8b950d29d80402e87759fda
2010-06-14 16:05:48 -07:00
Ehsan Akhgari
80e08706f6
Bug 570657 - Make the order of releasing objects and removing them in nsCOMArray's consistent; r=shaver
...
--HG--
extra : rebase_source : 16f05bbfbd31bc01e0545af111dc4e4adbac8e33
2010-06-09 14:13:16 -04:00
Ehsan Akhgari
42bde816bb
Bug 569504 - Fix the spell checker leaking windows and documents; r=roc
2010-06-02 14:33:47 -04:00
Michael Wu
f6b9e6e472
Bug 561464 - Add support for XPCOM on Android, patch mostly by vlad, r=bsmedberg
2010-06-01 12:02:42 -07:00
Chris Jones
521f71cd9d
Bug 565461: Implement nsTArray::operator==. r=bsmedberg
2010-05-22 14:35:41 -05:00
Michael Wu
3b29de38dd
Bug 565748 - nsTArray.h:905: warning: unused variable ‘elem’, r=roc
2010-05-18 17:14:34 -07:00
L. David Baron
62fab3b136
Add macro to give alignment requirements of a type. (Bug 562844) r=bsmedberg
2010-05-14 12:05:14 -07:00
Michael Kohler
9397418412
Bug 506041 Part 2: Correct misspellings in source code
...
r=timeless
2010-05-13 14:19:50 +02:00
Ben Newman
552bebef15
Patch to fix bug 563573. r=bent
...
--HG--
extra : rebase_source : cc7f009be395bfc98ffcce4831e233dee1fa7480
2010-05-10 18:05:40 -07:00
Michael Wu
91093439df
Bug 537339 - Add heap functions to nsTArray, r=roc
2010-05-05 10:21:23 -07:00
timeless@mozdev.org
4f32fce575
Bug 562522 - comparison between signed and unsigned integer expressions in nsStringAPI.cpp, r=bsmedberg
...
--HG--
extra : rebase_source : 0568e744cc020fbc8a725ec595213f21fe52681b
2010-04-28 17:30:00 -07:00
timeless@mozdev.org
d7e5a3c86f
Bug 529820 - nsCategoryCache is slightly unsafe, r=biesi
2009-11-19 07:51:00 -08:00
Ginn Chen
0ee7d0e921
Bug 561736 Add has_cpuid_bit support with Sun Studio compiler on Solaris r=dbaron
2010-04-28 17:39:12 +08:00
Mark Banner
bd82595d07
NS_COM_GLUE shouldn't be defined on function definitions/inline functions. Fixing non-libxul bustage on Windows builds from bug 558498. r=bsmedberg over irc
2010-04-27 14:48:25 +01:00
Mark Banner
ace073db56
Try and fix Windows non-libxul bustage from bug 518881 due to NS_COM_GLUE being in the wrong place.
2010-04-27 13:52:42 +01:00
Chris Jones
f1ccfef3ce
Bug 518881: Make Send/Call*() methods for IPDL parent actors warn_unused_result. r=bent
2010-04-27 00:43:00 -05:00
Chris Jones
4665be334c
Bug 545733: |const|-ify some *Channel methods. r=bent
2010-04-27 00:42:59 -05:00
Ben Newman
ec00ae01fb
Support __stdcall nsRunnableMethods (part 2/3 of bug 558498). r=dwitte sr=dbaron
2010-04-20 16:21:32 -07:00
Ben Newman
2b2bd4076f
Eliminate duplicate code by combining nsNonOwningRunnableMethod with nsRunnableMethod (part 1/3 of bug 558498). r=dwitte sr=dbaron
2010-04-20 10:22:04 -07:00
timeless@mozdev.org
2678bea297
Bug 559804 - nsGetInterface::operator() doesn't consistently set *aInstancePtr, r=bsmedberg
...
--HG--
extra : rebase_source : be81640ea16edd00e0898dafeb4c04c7fc511b24
2010-04-16 06:03:00 -07:00
Brian Hackett
7977c3b1cb
Remove spurious \r's. Go Windows. b=541220, r=aidan
2010-04-22 11:13:05 -07:00
Chris Jones
cedd844205
Bug 557060: Interpose _Throw() on MSVC and centralize pseudo-throw code in mozalloc. r=ehsan sr=bsmedberg
2010-04-20 15:12:02 -05:00
Mike Hommey
e38d0a6088
Bug 555901 - Support for GNU/Hurd [r=benjamin]
...
--HG--
extra : rebase_source : 2a455d93f9daaf7760285ea10046cc978ac9f9ad
2010-04-19 10:39:58 +02:00
Brian Hackett
cd6ae28e5f
Bug 541220 - Integrate sixgill into build system. r=dwitte
2010-04-15 11:44:23 -07:00
Daniel Holbert
b00ca2405e
Bug 556303: Fix unsigned/signed compiler warning in nsTArray.cpp. r=bsmedberg
2010-04-05 14:56:35 -07:00
L. David Baron
41cc87c278
Fire assertions when guard objects are used as temporaries. (Bug 531460) r=cjones
2010-04-04 11:15:18 -07:00
Chris Jones
7c959e67d7
Bug 551254: Allow reviewed+approved STL headers to be included through <foo>. (<algorithm> and <vector> are provisionally in the list because of their use in libpr0n, but need to be reviewed in followup bug 556700 and bug 556701). r=ehsan,ted,zwol
2010-04-02 12:58:11 -05:00
Chris Jones
996c23e86b
Backed out changeset cec7b12eb5e3
2010-04-02 13:20:22 -05:00
Chris Jones
94e6bcfee2
Bug 551254: Allow reviewed+approved STL headers to be included through <foo>. (<algorithm> and <vector> are provisionally in the list because of their use in libpr0n, but need to be reviewed in followup bug 556700 and bug 556701). r=ehsan,ted,zwol
2010-04-02 12:58:11 -05:00
Chris Pearce
11fa7ac0dd
Bug 556424 - mozilla::MonitorAutoEnter::NotifyAll() should notify all. r=cjones
2010-04-01 19:54:03 -07:00
Daniel Holbert
eb483b552f
Bug 551298, patch A followup i: Add thread safety assertions to AddRef/Release implementations. r=bsmedberg
2010-04-01 11:05:40 -07:00
Daniel Holbert
5192e33d44
Bug 551298, patch A: Move THEBES_INLINE_DECL_REFCOUNTING to xpcom (with s/THEBES/NS/). r=bsmedberg
2010-04-01 11:05:40 -07:00
Daniel Holbert
56db19649c
Backed out changeset fe801c8a2090 (Bug 551298) due to Linux debug mochitest-5 orange
2010-04-01 09:40:30 -07:00
Daniel Holbert
ef92ece024
Bug 551298, patch A: Move THEBES_INLINE_DECL_REFCOUNTING to xpcom (with s/THEBES/NS/). r=bsmedberg
2010-04-01 08:07:23 -07:00
L. David Baron
60a39f5bec
Add mechanism for assertions that fire when a guard object is used as a temporary. (Bug 531460) r=bsmedberg
2010-03-26 10:12:39 -04:00
Mike Hommey
7467611ddb
Bug 448658 - nsAutoTArray aligns buffer to 32 bits, causing SIGBUS when array entry type requires 64-bit alignment. r=dbaron
2010-03-22 15:16:44 +01:00
Dão Gottwald
55d6554fde
Backed out changeset 7f301b0d3385 hg push
2010-03-22 17:48:45 +01:00
Mike Hommey
02861ae602
Bug 448658 - nsAutoTArray aligns buffer to 32 bits, causing SIGBUS when array entry type requires 64-bit alignment. r=dbaron
2010-03-22 15:16:44 +01:00
Jonathan Watt
9380758ab8
Bug 551299. Add a SetCount() method to nsCOMArray and nsVoidArray. r=bsmedberg.
...
--HG--
extra : rebase_source : 676b497a4fda08ec509c2ce9fdc7060af8be1663
2010-03-15 11:38:50 +00:00
Uli Link
d5626e719c
Bug 537967 - Moving FILE_ILLEGAL_CHARACTERS from nsCRT.h to nsCRTGlue.h for frozen linkages, r=bsmedberg,sr=shaver
2010-03-07 15:15:31 +01:00
Neil Rashbrook
003d545f7b
Bug 543001 Make nsTArray::GreatestIndexLtEq easier to use r=bsmedberg
2010-02-20 15:26:12 +00:00
Mark Banner
4e935520e6
Bustage fix following bug 541594 - revert NS_strtok change that appears to be causing hangs and fix ini parser to work as intended. rs=dolske
2010-02-10 11:55:18 +00:00
Justin Dolske
d8daefadb7
Bug 541594 - extend nsIINIParser to allow writing INI files. p=dolske+benjamin, r=benjamin, r=dolske
2010-02-09 17:05:31 -08:00
Mitchell Field
d25f469072
Bug 542222 - Followup fix for Reduce recursion in makefiles. r=rstrong
2010-02-05 23:25:10 -08:00
Benjamin Smedberg
30bd4e4e51
Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones
...
--HG--
extra : rebase_source : cab356b862a66fb7f5955b1f936944f2395bba3c
2010-02-03 17:17:09 -05:00
Jacek Caban
b57cc9e69d
Bug 505711 - Compilation failure on MinGW in gfx/thebes. r=jfkthame
2010-01-14 21:31:06 +00:00
Brian Birtles
4cd9f0f1e3
Bug 474743 Prequel: Implement nsTPriorityQueue. r=dholbert r=roc sr=bsmedberg
2010-01-12 12:00:49 -08:00
Metal Sonic
4c1b34d634
Bug 507387 - fix copyright holder; Mozilla Corporation -> Mozilla Foundation. r=gerv.
2009-12-21 21:50:30 +00:00
L. David Baron
a9163bab67
Add mozilla::AutoRestore to restore values at the end of a C++ scope. (Bug 518756) r=bsmedberg
2009-12-11 08:13:19 -08:00
L. David Baron
efcc888ba4
Add SSE.h to consolidate code for Intel CPU feature detection at both compile-time and run-time. (Bug 513422) r=vlad
2009-12-11 08:13:19 -08:00
Reed Loden
86d20f782a
Backout patch from bug 528964 due to bustage.
2009-12-03 03:18:52 -06:00
zbychs@gmail.com
ec24a6ee73
Bug 528964 - "Memory leak in GRE_GetGREPathWithProperties" [r=bsmedberg]
2009-12-03 03:07:44 -06:00
cbiesinger@gmail.com
70988940df
Bug 529701 - nsCategoryCache could add a category observer twice in some situation (r=bsmedberg)
2009-11-25 13:50:01 -08:00
Marco Bonardo
86a4770bb1
Bug 522353 - nsCategoryCache is still observing category changes after xpcom-shutdown, r=biesi, moa=bsmedberg
2009-11-19 14:15:05 +01:00
timeless@mozdev.org
a34c72abd2
Bug 464043 - change nsDeque to use malloc for mData, r=bsmedberg
2009-11-14 16:45:42 -08:00
Benjamin Smedberg
43b1c28f44
Bug 526586 - XULRunner crashes on startup on Windows r=bustage fix and at least agreement on the approach from dbaron
2009-11-09 14:30:01 -05:00
L. David Baron
398fdfe781
Fix comment, per bug 520661 comment 4.
2009-10-30 14:31:41 -07:00
Benjamin Smedberg ext:(%2C%20L.%20David%20Baron%20%3Cdbaron%40dbaron.org%3E)
699dcb26a7
Add runtime NS_IsMainThread checks to protect the cycle collector's purple buffer, and make NS_IsMainThread faster on our major platforms. (Bug 521750) r=peterv
2009-10-28 10:28:57 -07:00
Benjamin Smedberg
7d138d4786
Make NS_IsMainThread faster on our major platforms. (Bug 521750) r=dbaron
2009-10-28 10:28:57 -07:00
Boris Zbarsky
e02c1954a4
Bug 523651. Add a CallQueryInterface that works well with nsCOMPtr. r=bsmedberg
2009-10-23 16:24:47 -04:00
L. David Baron
c33d8babd5
Make nsDeque handle allocation failure better. (Bug 520661) r=bsmedberg
2009-10-07 20:22:42 -07:00
Henri Sivonen
7e34492c18
Bug 517943 - Need a way to append the contents of an nsTArray to another without copying. r=benjamin, sr=dbaron.
2009-09-24 20:26:31 +03:00
Benjamin Smedberg
008e309c7f
Bug 513032 - remove empty conditionals in our makefiles, r=ted
2009-08-27 10:48:18 -07:00
Benjamin Smedberg
0df64c6bc4
Additional followup to bug 398573 - remove REQUIRES from the tree even when they are in makefile conditional blocks
...
--HG--
extra : rebase_source : cc65c34a414e6c67a5651fc9cf0b6bd709ebcdbd
2009-08-27 08:53:13 -07:00
Benjamin Smedberg
2e9438fd2f
Followup to bug 398573 - remove REQUIRES from the tree since it is no longer used... automatically generated patch, rs=ted
2009-08-25 08:59:31 -07:00
Hiroyuki Ikezoe
889e998826
Bug 502146 – On WinCE, GRE_GetPathFromRegKey fails even if GRE exists on device. r=blassey
2009-08-08 12:29:13 +09:00
L. David Baron
d71ea7085b
Use char16_t when available, and when it is, don't test for -fshort-wchar. (Bug 502298) r=bsmedberg
2009-07-20 07:04:41 -04:00
Blake Kaplan
96a04e8df6
Bug 501840 - Avoid a warning when a cycle collection participant doesn't use tmp. r+sr=peterv
2009-07-16 13:06:26 -07:00
L. David Baron
9a8d97752d
Make some of the DEBUG_CC code accessible to code in non-debug builds so it can be used by memory tools for Web developers. (Bug 500233) r+sr=peterv
2009-07-08 18:10:29 -07:00
Serge Gautherie
9f99b401d6
Bug 430112 - <nsAutoLock.cpp>: 2 "warning: unused variable status"; (Bv1) Split the init to 2 instructions; r=benjamin
2009-07-06 22:01:37 +02:00
Peter Van der Beken
ca8ccf47e0
Fix for bug 482788 (Lightweight DOM wrappers). r=jst, sr=mrbkap.
2009-05-12 22:20:42 +02:00
Hiroyuki Ikezoe
7630621a0e
Bug 494412 – Make error message more clear when we can't load xpcom due to lack of memory; (XPCOM part); r=benjamin
2009-06-26 09:46:09 +09:00
Chris Jones
1c0eb2d506
bug 491977: fix "leak" of deadlock detector statics. r=bsmedberg
2009-06-16 12:36:44 -07:00
Arpad Borsos
497b2e227d
Back out b8e531a6c961 (Bug 474369), it really did cause the windows dhtml regression
...
--HG--
extra : rebase_source : 568114bcfc5a7710d9e2c2fe5e234fa190bebba1
2009-06-16 14:38:51 +02:00
Arpad Borsos
ef105af6ce
Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron
2009-05-07 17:15:26 +02:00
palo misik
d5531db087
Bug 490587 - "Warning in mozilla/xpcom/glue/nsGenericFactory.cpp" [r=benjamin]
2009-06-14 01:37:38 -07:00
Arpad Borsos
cd1887abfd
Back out bug 474369, suspected of causing dhtml and tp3 regression
2009-06-12 23:20:55 +02:00
Arpad Borsos
3773b464cf
Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron
...
--HG--
extra : rebase_source : 2f40cba97555521222512c7cd793c2a2adcca333
2009-05-07 17:15:26 +02:00
Doug Turner
7e69536472
Bug 488862 - crash while geolocation is retrieving data [@ nsGeolocation::RemoveRequest]. r=dbaron, sr=smaug, r=ctalbert on tests
2009-06-11 17:46:46 -07:00
Benjamin Smedberg
cef8a68e25
Bug 492948 - Windows XULRunner stub can't discover the GRE anymore, due to using NS_ConvertUTF8toUTF16 before having loaded XPCOM, r=blassey
2009-05-20 17:00:45 -04:00
Dave Townsend
99034adf24
Backed out changeset 461d728271d1
2009-05-19 13:51:18 +01:00
Arpad Borsos
584155ddb7
Bug 474369 - get rid of nsVoidArray, remaining parts; r=bz, sr=dbaron
2009-05-07 17:15:26 +02:00
Benjamin Smedberg
02d969acec
Fix trace-malloc build bustage from bug 488175... tracemalloc/nsTraceMalloc.h is no longer
2009-05-18 14:32:00 -04:00
Benjamin Smedberg
bb1c33c4ea
Bug 488175 - flatten dist/include and provide mechanism to install certain headers in namespaced subdirectories (e.g. #include "mozilla/XPCOM.h") r=ted
...
--HG--
rename : xpcom/ds/nsTimeStamp.cpp => xpcom/ds/TimeStamp.cpp
rename : xpcom/ds/nsTimeStamp.h => xpcom/ds/TimeStamp.h
2009-05-18 14:15:05 -04:00
Peter Van der Beken
e267b828d9
Fix for bug 475737 (Windows stay alive too long because nsJSContext doesn't unlink correctly). r=bent, sr=jst.
2009-05-07 11:19:36 -07:00