Gabor Krizsanits
8870c5fe96
Bug 735280 - Part 3: Components object specific wrapper. r=bholley
2012-04-24 21:48:02 -04:00
Gabor Krizsanits
be4a7cc030
Bug 735280 - Part 2: Add pre-create to nsXPComponents. r=bholley
2012-04-24 21:48:01 -04:00
Gabor Krizsanits
4b18d7af39
Bug 735280 - Part 1: Connect XPCWrappedNativeScope and Components. r=bholley
2012-04-24 21:47:54 -04:00
Ehsan Akhgari
166aca09f9
Merge mozilla-central into mozilla-inbound
2012-04-24 21:29:44 -04:00
Patrick Wong
4ccd1d2fbb
Bug 745659 - Removed the nsPrintfCString constructor which takes a length and all corresponding instances that call that particular constructor. This is accomplished by removing the length component from the instantiation. r=jlebar
2012-04-24 14:43:00 -04:00
Ehsan Akhgari
7ec790e011
Merge from mozilla-central
2012-04-23 18:17:44 -04:00
Kyle Huey
d5e92f7f5c
Bug 747245: Fix a silly weak reference assertion. r=bent a=mfinkle
2012-04-23 14:14:10 -07:00
Ehsan Akhgari
313c5f8453
Merge mozilla-central into birch
2012-04-22 16:10:35 -04:00
Boris Zbarsky
1c8d9735f3
Bug 742168. Refer to experimental bindings, not Paris bindings, in the pref code, since it will only control a subset of the Paris bindings. r=peterv
2012-04-18 12:02:04 -04:00
Marco Bonardo
e2d27a92bb
Merge last green PGO from inbound to central
2012-04-17 15:31:58 +02:00
Olli Pettay
a575c4db0b
Bug 731875 - Geolocation doorhanger might cause a zombie compartment, GeoPositionOptions part, r=dougt
2012-04-16 22:08:48 +03:00
Justin Lebar
e76a39d9cd
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 12:20:54 +10:00
Justin Lebar
85309d895c
Back out changeset 21f34fdd64a3 (bug 741378) because it breaks telemetry. r=me
2012-04-16 11:34:00 +10:00
Justin Lebar
9362d53674
Bug 741378 - Rejigger the js memory reporters to match jemalloc's. r=njn
2012-04-16 11:17:26 +10:00
Bobby Holley
75d953011d
Bug 745483 - Don't assert that TI is enabled when the pref is disabled. r=jdm
2012-04-15 17:54:03 -07:00
Bobby Holley
5b516e71b9
Bug 743843 - Introduce the options object for Components.Exception. r=Ms2ger,sr=mrbkap
2012-04-15 17:51:37 -07:00
Bobby Holley
fdc7949a32
Bug 743843 - Ditch the confusing switch-based parsing and add some comments. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
3c5dcf2247
Bug 743843 - Factor individual argument parsers into helper methods. r=Ms2ger
2012-04-15 17:51:36 -07:00
Bobby Holley
e228667c97
Bug 743843 - Factor out Exception argument parsing into a helper class. r=Ms2ger
...
For ease of reviewing, note that there are only 2 changes to the big switch statement:
1 - return ThrowAndFail(...) -> return false.
2 - eMsgBytes -> messageBytes
2012-04-15 17:51:36 -07:00
Ms2ger
1e6a07f994
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
2a2428bca8
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
1d66128fff
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
77ca860259
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
69966a9faf
Bug 745427 - Fix XPCWrappedNativeScope::SetContext; r=gal
2012-04-14 15:10:05 +02:00
Ms2ger
2242d1961b
Bug 742893 - Part a: Make xpc_qsValueTo{Uint,Int}64 public; r=bholley
2012-04-14 15:07:31 +02:00
Ms2ger
f3fe45e455
Bug 741349 - Get rid of the mozilla::xpconnect::memory namespace; r=bholley
2012-04-14 15:05:19 +02:00
Ms2ger
23617402f0
Bug 741347 - Remove nsIXPConnect::DefineDOMQuickStubs, call DOM_DefineQuickStubs directly instead; r=bholley
2012-04-14 15:05:17 +02:00
Ms2ger
5a2d0a8476
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Bobby Holley
26bad0fb53
Bug 745661 - Make TI assertion handle safe mode, too. r=khuey
2012-04-16 16:57:36 -07:00
David Anderson
3220976613
Remove more uses of JS_FrameIterator (bug 744617, r=mrbkap).
2012-04-16 12:30:04 -07:00
David Anderson
3fab15f4fb
Remove simple JS_FrameIterator uses in xpconnect (bug 744617, r=bholley).
...
--HG--
extra : rebase_source : c206450cf46011543f58cded4c5aff2d49932afd
2012-04-16 12:25:28 -07:00
Steve Fink
0d02f27af8
Bug 730208 - UnmarkGray fixups for globals and contexts. r=billm
...
A common source of potential black -> gray edges is JSAPI calls made on objects with gray globals or contexts holding gray globals. (The call could potentially update a black object with a pointer to that global.) This patch mostly traps places where contexts are used, and unmarks their globals. It also includes some more global unmarking.
--HG--
extra : rebase_source : 1286bdbc4c337956242c292e0fa385629ee8850b
2012-03-14 09:32:58 -07:00
Steve Fink
f54a7f1a11
Bug 730208 - XPConnect changes to UnmarkGray some more objects and return them for convenience. r=mccr8
...
--HG--
extra : rebase_source : a1d56aa4dc9dcf1fe280c42667710494f2481a7c
2012-03-20 21:22:40 -07:00
Mark Capella
bb0cb90d39
Bug 740688 - Use uintptr_t instead of PRUword, and intptr_t instead of PRWord. r=jwalden
...
--HG--
extra : rebase_source : 648a581323d2c2893df780f71fe34dadcc4bbaab
2012-04-11 17:17:44 -07:00
Luke Wagner
d3faf91314
Bug 744842 - don't include actual args in error.stack.toString (r=dmandelin)
...
--HG--
extra : rebase_source : 66a780c6abfc4fadc7cc08ed97224296af20ad61
2012-04-11 18:07:44 -07:00
Bobby Holley
48dcb4071b
Bug 744034 - Link the script context to the outer window earlier to ensure that we always have TI for content. r=mrbkap
2012-04-12 11:21:12 -07:00
Masatoshi Kimura
7706cbe7a8
Bug 730161 - Replace IDBDatabaseException and FileException with DOMException. r=sicking
2012-04-11 17:55:21 -04:00
Andrew McCreight
8ce598e7c1
Bug 744272. disable test_watchpoints due to bogus failures. rs=billm
2012-04-10 18:43:22 -07:00
Kyle Huey
b6b17661cb
Refix bug 741248 harder. r=me
2012-04-09 17:41:22 -07:00
Matt Brubeck
2584172b19
Merge last green changeset from inbound to mozilla-central
2012-04-09 10:05:48 -07:00
Igor Bukanov
20e5c3933b
Bug 737364 - part 2 - replace JSContext with JSRuntime in the GC-related API
...
This part replaces the JSContext *cx argument in most GC-related API
with JSRuntime *rt. When possible, the patch removes the code to obtain
a temporary cx just to run the GC.
The patch also removes JS_DestroyContextMaybeGC. That function is not
used in FF code base and its implementation is broken. It requires that
the context has an entered compartment when it is destroyed, which in
turns implies a missing leave compartment call.
2012-03-28 12:13:30 +02:00
Kyle Huey
bcc7b8930d
Fix Bug 743376. r=bz
2012-04-06 17:44:50 -07:00
Bill McCloskey
6149e805bc
Bug 742570 - Change API for compartment GCs (r=igor)
2012-04-03 12:23:11 -07:00
Bill McCloskey
2f8a8308b9
Bug 742570 - Remove the compartment option for gczeal (r=igor)
2012-04-03 11:41:56 -07:00
Gabor Krizsanits
0ac891d865
Bug 733035 - postMessage support for sandboxes. r=khuey
2012-04-05 18:33:20 -04:00
Takanori MATSUURA
bd9ba0040a
Bug 737006 - Use internal ply only if needed. r=khuey
2012-04-06 14:06:52 -04:00
Bobby Holley
4be29280b2
Bug 739796 - Make same-origin cross-compartment Location object access go through the LW in the host compartment. r=gal
...
--HG--
extra : rebase_source : d5e07d4628bfd5990d127b4316219a43c4e0de88
2012-04-05 12:21:12 -07:00
Bobby Holley
6aa87dac2b
Bug 739796 - Make js_TransplantObjectWithWrapper and GetSameCompartmentSecurityWrapper play nicely together. r=mrbkap
...
--HG--
extra : rebase_source : c132069987b4cae121dfcf1b19ffacaee845df1e
2012-04-05 12:21:12 -07:00
Bobby Holley
0bc78f58be
Bug 739796 - Move same-compartment security wrapping into a method on XPCWrappedNative. r=gal
...
--HG--
extra : rebase_source : 48c61d699d27d390be2bcfb006f12264345f9d49
2012-04-05 12:21:12 -07:00
Igor Bukanov
18841022a6
Bug 737365 - stop using the cx during finalization, part 3.
...
This part removes the usage of JSContext* during the finalization and
when sweeping the compartments. That required to change quite a few
methods in type inference, jit and debugger implementation to take a
FreeOp rather than JSContext pointer. In turn that also often required
to replace cx->compartment usage with extracting the compartment from
the passed objects or pass the compartment explicitly. On the plus side
it allowed to remove fallible compartment enter code in methods that
could be called during finalization.
2012-03-20 11:22:05 +01:00