Boris Zbarsky
5e5e0fd66f
Bug 558306 part 2. Switch XPCOM timers to TimeDuration/TimeStamp. r=cjones, sr=brendan
2010-07-15 09:59:24 -04:00
Boris Zbarsky
8a5a8c7f9e
Bug 558306 part 1.5. Make TimeDuration::FromMilliseconds take a double. r=cjones, sr=roc
2010-07-21 15:57:33 -04:00
Mounir Lamouri
530eba15e8
Bug 555559: Make nsCharSeparatedTokenizer a template that can accept varying definitions of whitespace. r=smaug,sicking sr=jst
2010-07-21 09:07:10 -07:00
Boris Zbarsky
b891fc7b78
Bug 578696 part 1. Create new macros to notify nsTObserverArray observers without holding strong refs. No behavior changes yet. r=sicking
2010-07-21 11:33:31 -04:00
Dave Townsend
f1d4bafdbd
Backed out changeset f9a700607b86 from bug556400 due to possible browser-chrome failures.
...
--HG--
extra : transplant_source : %AC%2C%060%A3Shzk%F0%19i%87%AB%D8%87%B8%5E%80%A6
2010-07-02 20:01:44 -07:00
Mitchell Field
eb1e793da7
Remove @status FROZEN and @status UNDER_REVIEW. r=bsmedberg
...
--HG--
extra : rebase_source : 7fab31a6b7898e05ff828482390846cc9ce2854d
2010-07-02 10:27:06 -04:00
Benjamin Smedberg
76af4cae87
Fix --disable-libxul from bug 568691. r=Mossop
2010-07-02 14:23:41 -04:00
Benjamin Smedberg
0b4de441c4
Bug 568691 - Fix MOZ_OMNIJAR registration, r=mwu
...
--HG--
rename : modules/libjar/nsXPTZipLoader.cpp => modules/libjar/nsManifestZIPLoader.cpp
rename : modules/libjar/nsXPTZipLoader.h => modules/libjar/nsManifestZIPLoader.h
rename : xpcom/reflect/xptinfo/public/nsIXPTLoader.idl => xpcom/components/nsIManifestLoader.idl
2010-07-02 09:53:19 -04:00
Benjamin Stover
97eb3d6fee
Bug 556400 - Make adding visits asynchronous. r=sdwilsh r=mak sr=bz
2010-06-30 16:08:28 -07:00
Benjamin Smedberg
c6e4b41b1f
Fix generic classinfo objects so that they are allocated statically, to avoid leak-detector annoyances, but not initialized statically, because compilers are stupid and won't const-data-initialize an object with a vtable, even if they could.
2010-07-01 12:11:42 -04:00
Benjamin Smedberg
4d172dd53d
Merge mozilla-central, including the Electrolysis changes, into the branch for bug 568691.
2010-07-01 11:55:57 -04:00
Benjamin Smedberg
a2833452f8
Merge mozilla-central to the bug 568691 branch.
...
--HG--
rename : gfx/public/nsITheme.h => gfx/src/nsITheme.h
2010-06-30 14:23:23 -04:00
Benoit Jacob
e43682cb4c
b=555798; add CheckedInt class; r=jmuizelaar, r=vladimir
2010-06-30 11:53:41 -04:00
Benjamin Smedberg
28befc0794
Disable the xpt-in-JAR test because that code is changing and running the test with a .manifest isn't worth it.
2010-06-30 09:50:04 -04:00
Benjamin Smedberg
6da9e8c26a
Require XPT files to be loaded explicitly: they are never auto-registered when found in a components/ directory.
2010-06-29 18:16:48 -04:00
Benjamin Smedberg
b83c7495d6
Support Windows line endings in manifest files again (regression introduced in revision 5229353383b0). With test!
2010-06-29 13:16:43 -04:00
Ted Mielczarek
657620b2b4
fix minor type name output in xpt_dump. r=timeless (no bug)
2010-06-29 10:03:47 -04:00
Benjamin Stover
8150bfd360
Backout of bugs 575908, 566738, and 556400
2010-06-29 17:34:52 -07:00
Benjamin Stover
86673a511e
Bug 556400 - Implement asyncable VisitURI. r=sdwilsh, sr=bz
2010-06-29 13:58:36 -07:00
Benjamin Smedberg
449bc3f36e
Fix and test logging of manifest parsing and registration. I discovered that the outer loop doesn't track line numbers correctly when there are multiple newlines in a row, which requires manual looping instead of using nsCRT::strtok.
2010-06-28 13:55:57 -04:00
Benjamin Smedberg
54c6518755
Rename the "xpt" manifest directive to "interfaces", per bug 568691 comment 66.
2010-06-27 21:50:51 -04:00
Benjamin Smedberg
79be6b8325
Rename XRE_AddComponentLocation to XRE_AddManifestLocation to better-convey what it actually does now (it still auto-registers XPT files when passed a directory, but we may get rid of that as well and just fold those into components.manifest), as noted in bug 568691 comment 58.
2010-06-27 21:26:38 -04:00
Benjamin Smedberg
3de93c4ae6
Implement the aReplace parameter to nsICategoryManager.addCategoryEntry which I inadvertently dropped, from bug 568691 comment 63.
2010-06-27 21:14:54 -04:00
Benjamin Smedberg
6669ee04a8
Bug 568691 - Add an ABI chrome registration modifier so that platform-specific directories can be implemented directly in chrome.manifest.
2010-06-27 15:13:04 -04:00
Benjamin Smedberg
9cadd0fe5f
Fix contracts which were not registered correctly: nsPlacesAutoComplete.js was completely missing, and the nsINIParserFactory contract was missing. Fixes test_pref_interval.js to register/unregister its mock objects correctly.
2010-06-25 22:17:31 -04:00
Benjamin Smedberg
d9a041918c
Revert accidental change introduced in revision c66d8c0db184.
2010-06-25 22:16:15 -04:00
Benjamin Smedberg
5b4541cfe9
Fix chrome registry test setup.
2010-06-25 20:53:20 -04:00
Benjamin Smedberg
63c0077443
Merge mozilla-central into the branch for bug 568691, including fixup of the new jetpack binary module.
2010-06-25 19:41:09 -04:00
Benjamin Smedberg
774bb7e0e8
Free the component-location arrays at shutdown.
2010-06-25 17:27:10 -04:00
Benjamin Smedberg
59041fa6cd
Bug 568691 - Normalize relative paths on Windows to use back slashes, and add a manifest processing directive for XPT files so that extension chrome.manifest can point to them and we don't have to troll around in extension components/ directories.
2010-06-25 13:55:46 -04:00
Benjamin Smedberg
f3d3d3d97b
Bug 568691 followup - Clear the static module table at shutdown to fix leaks.
...
--HG--
extra : rebase_source : cc01ea1ae837f5b917d44006dde72484f3ffd104
2010-06-25 10:02:17 -04:00
Benjamin Smedberg
9d69948fbc
Bug 568691, followup to RegisterFactory implementation: make the nsFactoryEntry hold a CIDEntry with the proper CID, because code elsewhere expects that to be present (ContractIDToCID and the pending-CID checks).
2010-06-25 10:44:35 -04:00
Benjamin Smedberg
77282b6432
Allow a manifest to register contracts and cids in any order, by deferring processing of contracts until the manifest is completely parsed. This is needed for extension author sanity, and also because jar.mn packaging doesn't place registration lines in order by default.
2010-06-25 08:19:48 -04:00
Benjamin Smedberg
5ab65cc447
Don't check the persist value for DeleteCategoryEntry, because the original behavior didn't work right anyway, so everybody passes "true".
2010-06-24 22:05:20 -04:00
Benjamin Smedberg
3e93617368
Implement compatibility wrapper so that binary components can be compatible with both Firefox 3.6 and Firefox 4, as a result of registration changes from bug 568691.
...
--HG--
rename : xpcom/components/GenericFactory.cpp => xpcom/glue/GenericFactory.cpp
rename : xpcom/components/GenericFactory.h => xpcom/glue/GenericFactory.h
2010-06-24 16:36:27 -04:00
Benjamin Smedberg
1d0844d671
Revert many of the interface changes from bug 568691, so that binaries can be made which are compatible with Firefox 3.6 and Firefox 4. Note that this is not an ongoing process: it will not be possible to make single binary components which are compatible with both Firefox 4 and Firefox 4.1, but you will be able to ship two components and select one based on the platform version.
2010-06-24 14:31:18 -04:00
Benjamin Smedberg
6e8d912e32
Fix review comments from bug 568691 comment 45.
2010-06-24 11:56:28 -04:00
Benjamin Smedberg
762def30bb
Merge mozilla-central into the static-xpcom-registration branch.
2010-06-23 17:26:25 -04:00
Benjamin Smedberg
2c8a0c3df0
Fix factory registration in test_unsafeBidiChars.xhtml to not override CIDs.
2010-06-23 16:18:08 -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
43047298dd
Address review from bug 568691 comments 31 and 34
2010-06-23 13:43:02 -04:00
Benjamin Smedberg
c072919b32
Remove hard tabs which I accidentally introduced into nsComponentManager.{h,cpp}.
2010-06-23 13:36:53 -04:00
Ginn Chen
91bd938a72
Bug 571210 Fix GetDiskSpaceAvailable for Solaris r=roc
2010-06-23 17:32:17 +08:00
Benjamin Smedberg
785137fec6
Implement RereadChromeManifests for bug 568691.
2010-06-22 16:24:01 -04:00
Benjamin Smedberg
10da45b767
Fix non-debug bustage in nsNativeComponentLoader, this variable should not be debug-only.
2010-06-22 16:22:17 -04:00
Benjamin Smedberg
5311231038
Fix the TestRegistrationOrder test: we no longer support deferred registration.
2010-06-22 13:26:23 -04:00
Benjamin Smedberg
4a738917da
Bug 568691 - Move cycle collection earlier: XPConnect is initialized during component manager initialization and tries to register a CC language helper.
2010-06-22 12:59:57 -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
5cab25b52b
Bug 568691 - Convert existing JS components to use NSGetFactory and add manifest files for them. In a followup we will link the .manifest files together at packaging time. This patch was developed on Linux: Windows and Mac may require additional changes.
...
--HG--
rename : toolkit/components/filepicker/src/nsFilePicker.js.in => toolkit/components/filepicker/src/nsFilePicker.js
2010-06-22 12:59:15 -04:00
Benjamin Smedberg
fcd5c36e9b
Bug 568691 - Fix XPCOMUtils.jsm to generate NSGetFactory, and fix nsSample.js to use XPCOMUtils
2010-06-21 14:29:32 -04:00
Benjamin Smedberg
21bc9c724f
Bug 568691 - build components.manifest instead of components.list, and switch the sample JS component to use standard EXTRA_COMPONENTS machinery.
2010-06-21 13:59:58 -04:00
Benjamin Smedberg
b205909598
Bug 568691 - register chrome/*.manifest in addition to components/*.manifest files, chrome appears to work in xpcshell again.
2010-06-21 13:49:38 -04:00
Benjamin Smedberg
ed3a49c9a2
Address review comments from bug 568691 comment 13/14/17:
...
* rename mozilla::Module struct entries to be clearer
* change Module documentation so that the last entry is { NULL } in all cases (the compiler will 0-expand the structure)
* remove NS_XPCOM_COMPONENT_REGISTRY_FILE
* add MOZ_MEDIA/MOZ_OGG/MOZ_WAVE/MOZ_WEBM ifdefs to nsHTMLMediaElement.h and nsContentUtils.cpp
2010-06-21 12:46:26 -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
ec3aefeff2
Fix review comments from Mossop, bug 570488 comment 5.
2010-06-11 13:35:25 -04:00
Benjamin Smedberg
f4b60bdbf4
Fix Linux-specific issues with static xpcom registration, bug 568691.
2010-06-11 12:47:31 -04:00
Benjamin Smedberg
0570e3db7e
Fix Linux compile errors/warnings in xpcom/components
2010-06-11 12:03:06 -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
c729bcd681
Bug 570488 part B - fix and test loading XPT files from JARs, needed for omnijar, r=mwu
2010-06-10 12:51:43 -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
Ben Turner
8c6da83b49
Bug 574872 - 'Allow XPConnect to pass the JSContext through XPIDL when requested'. r=jst
2010-06-28 15:22:39 -07:00
Olli Pettay
f48d7a4a08
Bug 574089 - Optimize ::GetInnerHTML, r=jst
...
--HG--
extra : rebase_source : 3ed1549eaa96d3ff3fe6bf2bb2562dd9e68fcc17
2010-06-26 23:39:56 +03: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
Ginn Chen
c919b6c6e2
Bug 574650 Fix xpcom/reflect/xptcall for gcc on Solaris r=jst
2010-06-27 00:56:47 +08:00
Doug Turner
26297a1c2a
Backing out af6c00ca82d1
2010-06-26 00:32:19 -07:00
Benjamin Stover
44b838b62d
Bug 556400 - Implement asyncable VisitURI. r=sdwilsh sr=bz
2010-06-25 22:50:29 -07:00
Doug Turner
a8d2b069bc
Bug 571166 - merge from e10s to m-c. r=various. sr=bz. CLOSED TREE.
2010-06-30 23:27:52 -07:00
Doug Turner
ba5d48b7ab
merge with mc
2010-06-30 10:50:45 -07:00
Doug Turner
a73902aba6
Merge with mc
2010-06-29 20:10:23 -07:00
Doug Turner
c92986c46a
Merge from mc
2010-06-29 14:39:57 -07:00
Doug Turner
901e02b2de
Merging with mozilla-central. Manually merged: content/canvas/src/nsCanvasRenderingContext2D.cpp ipc/ipdl/Makefile.in toolkit/toolkit-tiers.mk toolkit/xre/nsEmbedFunctions.cpp
...
--HG--
rename : gfx/thebes/src/gfxSharedImageSurface.cpp => gfx/thebes/gfxSharedImageSurface.cpp
rename : gfx/thebes/public/gfxSharedImageSurface.h => gfx/thebes/gfxSharedImageSurface.h
2010-06-28 16:33:19 -07:00
Doug Turner
4719dd0705
Automerge w mozilla-central
2010-06-24 14:06:13 -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
Jason Duell
d194b9d486
Merge from m-c.
...
Fair amount of merge conflicts.
Biggest item was changes to nsHttpChannel from web sockets changes.
Other likely suspects if things are borken:
nsFrameLoader.cpp:
- nsFrameLoader::EnsureMessageManager: pass "this" (orig e10s code) or
nsnull (m-c) to local process call to new nsFrameMessageManager(),
callback arg? Smaug said null.
- only calling SetCallBackData for local case. also +r smaug.
nsPrefBranch.cpp had fairly extensive merge conflicts.
nsChromeRegistry had lots of changes.
Dougt did most of the non-necko changes (thanks).
--HG--
rename : netwerk/protocol/http/nsHttpChannel.cpp => netwerk/protocol/http/nsHttpChannelAuthProvider.cpp
rename : netwerk/protocol/http/nsHttpChannel.h => netwerk/protocol/http/nsHttpChannelAuthProvider.h
2010-06-22 17:33:57 -07:00
Doug Turner
ded51c1c5f
Merging with M-C.
...
Hand merged the following files:
U chrome/src/nsChromeRegistry.cpp
U chrome/src/nsChromeRegistry.h
U content/base/src/nsFrameLoader.cpp
U content/base/src/nsFrameLoader.h
U dom/src/geolocation/nsGeolocation.cpp
U dom/src/geolocation/nsGeolocation.h
U netwerk/build/Makefile.in
U netwerk/cookie/nsCookieService.cpp
U netwerk/cookie/nsCookieService.h
--HG--
rename : extensions/cookie/test/unit/test_cookies.js => extensions/cookie/test/unit/test_cookies_thirdparty.js
rename : netwerk/cookie/src/nsCookieService.cpp => netwerk/cookie/nsCookieService.cpp
rename : netwerk/cookie/src/nsCookieService.h => netwerk/cookie/nsCookieService.h
rename : netwerk/dns/src/nsIDNKitInterface.h => netwerk/dns/nsIDNKitInterface.h
rename : netwerk/protocol/http/src/nsHttp.h => netwerk/protocol/http/nsHttp.h
rename : netwerk/protocol/http/src/nsHttpChannel.cpp => netwerk/protocol/http/nsHttpChannel.cpp
rename : netwerk/protocol/http/src/nsHttpChannel.h => netwerk/protocol/http/nsHttpChannel.h
rename : netwerk/protocol/http/src/nsHttpChunkedDecoder.h => netwerk/protocol/http/nsHttpChunkedDecoder.h
rename : netwerk/protocol/http/src/nsHttpHandler.cpp => netwerk/protocol/http/nsHttpHandler.cpp
rename : netwerk/protocol/http/src/nsHttpHeaderArray.h => netwerk/protocol/http/nsHttpHeaderArray.h
rename : netwerk/protocol/http/src/nsHttpRequestHead.h => netwerk/protocol/http/nsHttpRequestHead.h
rename : netwerk/protocol/http/src/nsHttpResponseHead.h => netwerk/protocol/http/nsHttpResponseHead.h
rename : netwerk/protocol/http/src/nsHttpTransaction.cpp => netwerk/protocol/http/nsHttpTransaction.cpp
rename : netwerk/protocol/res/src/nsResProtocolHandler.cpp => netwerk/protocol/res/nsResProtocolHandler.cpp
rename : netwerk/protocol/res/src/nsResProtocolHandler.h => netwerk/protocol/res/nsResProtocolHandler.h
2010-06-07 13:38:02 -07:00
Doug Turner
003acc6d48
Merge with mc
2010-05-25 13:48:25 -07:00
Oleg Romashin
b36fb69349
Merge with latest mozilla central r 42802:ffbc3baf03ae
2010-05-25 15:19:33 -04:00
Olli Pettay
58b4f71840
m-c to e10 merge
2010-05-24 17:45:59 +03:00
Steve Harper
9b9de75895
Bug 199473: Make downloads work if temporary directory is encrypted on Windows. r=jmathies
...
--HG--
extra : rebase_source : e88b316e071dd9bb8a57ab11e1bd13bc39d7d8eb
2010-05-23 10:48:21 -07:00
Robert Sayre
def349ad75
Merge mozilla-central to tracemonkey.
2010-05-24 09:05:39 -07:00
Michael Kohler
5f19df86e0
Bug 564091: Fix spelling of nonexistent across the tree. r=timeless
...
--HG--
extra : rebase_source : 4f15f7fd6f90926b77d136be83af7f22c5ffa830
2010-05-23 12:26:15 -07:00
Robert Sayre
13c247559e
Merge mozilla-central to tracemonkey
2010-05-17 13:55:37 -04:00
Doug Turner
3ad0032930
Merged with MC. Hand merged netwerk/protocol/http/src/nsHttpHandler.cpp
...
also removed modules/plugin/default*
2010-05-17 08:59:15 -07:00
Chris Jones
9327ed8dcc
Merged m-c
2010-05-13 18:04:53 -05:00
Daniel Holbert
ee5c59f86c
Bug 573530: Remove unused variable in nsXPComInit.cpp. r=bsmedberg
2010-06-23 17:30:59 -07:00
Doug Turner
fe405e740c
merge with m-c. resolved conflicts in:
...
U chrome/src/nsChromeRegistry.cpp
U content/base/src/Makefile.in
U dom/base/nsDOMClassInfo.cpp
U toolkit/toolkit-tiers.mk
--HG--
rename : toolkit/mozapps/extensions/test/unit/test_bug541420.js => toolkit/mozapps/extensions/test/xpcshell/test_bug541420.js
2010-05-11 11:09:54 -07:00
Chris Jones
521f71cd9d
Bug 565461: Implement nsTArray::operator==. r=bsmedberg
2010-05-22 14:35:41 -05:00
Brad Lassey
a15e734cc6
bug 559263 - implement jemalloc for android r=vlad
2010-05-25 11:28:14 -04:00
Doug Turner
8f97a20153
Merge with m-c. no hand edits
2010-04-29 21:04:50 -07:00
Mike Hommey
0fc23bb0d7
Test for bug 561971 [r=dtownsend]
...
--HG--
extra : rebase_source : 64b4940aaeb7b8e0591f7872f0b48b24e01f213a
2010-04-29 07:25:38 +00:00
Mike Hommey
26856f4648
Bug 543441 - Avoid a race condition induced crash when trying to nsProcess::Kill() a terminated process [r=dtownsend]
...
--HG--
extra : rebase_source : eb04335b397772058c2c272736afb5604b09e0af
2010-04-29 07:24:32 +00:00
Michael Wu
a7bab5285a
Bug 552121 - Add omnijar API [2/7], r=bsmedberg
2010-05-21 10:58:32 -07:00
Benjamin Smedberg
68c4fe2172
Bug 549388 - Don't use refcounting for nsProxyObjectManager: create it once, and destroy it at shutdown after all the clients have finished with it, r=timeless
...
--HG--
extra : rebase_source : d4c0486a748675e29de713a8a55ee594764c4c9b
2010-05-21 11:50:05 -04:00
Mark Banner
c4ebbd68ad
Fix bustage for non-libxul apps following bug 566467 - link xpcom-core against psapi.lib
2010-05-21 09:21:52 +01:00