Jon Coppeard
fd4d274d46
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
ac22f0d0ad
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
fed22eac4c
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Jon Coppeard
4258a261db
Bug 896949 - JS_SetProperty APIs should take an immutable parameter r=waldo r=bz
2013-07-26 10:00:38 +01:00
Jon Coppeard
bd28d643f7
Bug 896540 - GC: Convert JS_SetProperty* to take MutableHandleValue - browser changes r=bz
2013-07-25 13:57:00 +01:00
Jon Coppeard
da545dc61a
Bug 888338 - 6 - more browser post barriers r=mccr8
2013-07-23 10:58:27 +01:00
Kyle Huey
afae5b1108
Bug 885866: Separate deferred finalization from XPConnect so we can use it off the main thread. r=mccr8, peterv, bsmedberg, jorendorff
2013-07-09 07:28:15 -07:00
Jon Coppeard
19b426b223
Bug 885310 - 1 Rename JSHandleFoo in the browser r=bz
2013-06-21 14:12:46 +01:00
Bobby Holley
7a9309f7be
Bug 883450 - Miscellaneous requests. r=gabor
2013-06-20 11:05:34 -07:00
Jon Coppeard
da723794cd
Bug 884371 - Remove JSMutableHandleXXX from the browser r=bz
2013-06-19 11:32:27 +01:00
Bobby Holley
1b2f22fe61
Bug 868130 - Remove the lion's share of JSAutoRequests in gecko. r=gabor
...
There are still a handful that either are used with other runtimes, or that
happen very early/late in cx the lifetime of various things where it doesn't
necessarily make sense to have a cx on the stack. This should definitely ensure
that we're not doing double-duty with the nsCxPusher change, though.
2013-05-22 10:05:28 -06:00
Bobby Holley
ba05c93769
Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor
2013-05-22 10:05:26 -06:00
David Zbarsky
57233197b3
Bug 868312 - Rooting fixes for dom r=bz
2013-05-14 16:25:32 -07:00
David Zbarsky
cbead1c2c7
Backed out changeset 3b73e9c7a5d0 for orange
2013-05-14 01:00:11 -07:00
David Zbarsky
7519411b1e
Bug 868312 - Rooting fixes for dom r=bz
2013-05-14 00:15:53 -07:00
Terrence Cole
fd72fc252e
Bug 777548 - Make non-cc-participant tracing indirect; r=smaug,billm,jst
2013-03-28 13:37:22 -07:00
Sankha Narayan Guria
6349c5c599
Bug 867414 - Rename SafeAutoJSContext to AutoSafeJSContext. r=bholley
2013-05-06 09:04:17 -04:00
David Zbarsky
ef70ce04b7
Bug 868312: Various dom rooting fixes r=bz
2013-05-04 03:52:57 -04:00
Steve Fink
bb2447230f
Bug 866432 - Replace AutoValueRooter with JS::Rooted<JS::Value> in gecko. r=smaug
...
--HG--
extra : rebase_source : 0897fc8f3968619185b754e13ca6119cb1c0f46d
2013-04-26 21:08:15 -07:00
Terrence Cole
60ff037fa7
Bug 860050 - Remove JSMutableHandleObject typedef; r=bz,jonco
2013-04-16 16:20:44 -07:00
Bobby Holley
869a5a1997
Bug 860438 - Remove plugin-specific cx pusher. r=bsmedberg
...
The old code does two little bits of special sauce that are worth mentioning:
1 - It calls OnWrapper{Created,Destroyed} to maintain the lifetime of the
addref'd context stack pointer. But that whole thing is gone now.
2 - It calls ScriptEvaluated to potentially invoke termination functions in
certain cases. nsCxPusher does this too, but with slightly different logic.
In particular, nsCxPusher checks whether the given JSContext was already
on the stack, whereas AutoCXPusher checked whether there was another cx on
the stack above this one. As far as I can tell from my investigations of
this stuff, this is all total voodoo, and I think it should probably be fine
to just use an nsCxPusher here.
Also, termination functions are going away soon in bug 841312.
2013-04-18 11:36:04 -04:00
Bobby Holley
288399f5c0
Bug 860438 - Straightforward cases. r=gabor
2013-04-18 11:36:03 -04:00
Jeff Walden
6539207aee
Bug 858677 - Fix up code not built by SpiderMonkey to use the newly-changed deletion signatures. r=bholley, r=billm
2013-04-05 21:22:55 -07:00
Jacek Szpot
8123bfdfc5
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-11 11:50:18 -07:00
Ryan VanderMeulen
9420af6638
Backed out changeset a85d21e394c0 (bug 854503) for bustage.
2013-04-06 14:37:33 -04:00
Jacek Szpot
ccadc1da47
Bug 854503 - Rename JS unwrapping functions. r=bholley
2013-04-04 12:14:32 +02:00
Jose Cortes
c3d2c6b38c
Bug 842186 - Replace use of jsval with JS::Value in h and cpp files in the dom/bindings/ dom/plugins/ dom/src/ dom/activities/ directories. r=jwalden
...
--HG--
extra : rebase_source : 2757a7ab265153fa4c769a69a4947b9258e4413e
2013-04-02 16:05:37 -07:00
Terrence Cole
16aae426b8
Bug 855145 - DeMACROize the JS tracing interfaces; r=billm,mccr8
...
--HG--
extra : rebase_source : 915c80052b4412f653033eb5fc4d4f96c5d49bd5
2013-03-26 15:10:34 -07:00
John Schoenick
60adc6a628
Bug 851378 - Move removing the plugin prototype from objects to content. r=bsmedberg
2013-03-20 14:29:21 -07:00
Boris Zbarsky
740f15c9d9
Bug 827158 part 7. Make nsJSNPRuntime work with WebIDL objects. r=peterv
2013-03-04 14:08:23 -05:00
Boris Zbarsky
8362da6fe1
Bug 844322. Make plug-in getters and setters JSPROP_SHARED so they don't get shadowed by expandos on the DOM nodes. r=jst
2013-02-24 22:40:42 -05:00
Ryan VanderMeulen
67b204034f
Backed out changeset 2861ef67390a (bug 837566) for Linux32 mochitest-other shutdown hangs.
2013-02-05 07:54:49 -05:00
Nicholas Nethercote
744586f40d
Bug 837566 - Remove js_RemoveRoot. r=terrence.
2013-02-03 20:17:34 -08:00
Bobby Holley
a75f5ca4d9
Bug 800915 - Remove the cx parameter and simplify various APIs. r=sfink,bz
...
If callers want to throw, it's now their responsibility.
2012-11-14 09:56:26 -08:00
Georg Fritzsche
1288b96ef4
Bug 791798 - topcrash in mozilla::plugins::parent::_releaseobject because of incremental GC: we're creating a new wrapper before teardown which races with the release event. r=bsmedberg
2012-10-01 19:53:35 +02:00
Josh Aas
859bce8726
Bug 797100: Replace internal usage of nsIPluginInstanceOwner with nsPluginInstanceOwner. r=jst
2012-10-02 22:43:18 -04:00
Bill McCloskey
f13e8e29d9
Bug 787856 - Convert JS_GetPrototype to support lazy protos (r=bhackett)
2012-09-03 16:42:17 -07:00
Luke Wagner
ce71e55555
Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
...
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Ehsan Akhgari
8c296bbcd4
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Bill McCloskey
81ec200616
Bug 779849 - Fix NPAPI wrapping (r=bholley)
2012-08-03 12:41:49 -07:00
Eric Faust
6d4e293e26
Bug 752223 - Implement JS_NumberValue(), replacing JS_NewNumberValue(). (r=luke)
2012-08-01 17:59:47 -07:00
Ehsan Akhgari
c80897316e
Merge the nullptr conversion from mozilla-central into mozilla-inbound
2012-07-30 10:28:15 -04:00
Aryeh Gregor
57c0ad57fb
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Brian Hackett
4da0b7720d
Use HandleValue and MutableHandleValue in API hooks where possible, bug 776579. r=billm, sr=dmandelin
2012-07-30 05:19:09 -06:00
Bobby Holley
5b1a44348d
Bug 777098 - Null check private of NPObjWrapper in nsJSObjWrapper::GetNewOrUsed. r=bsmedberg
2012-07-27 11:15:43 +02:00
Bobby Holley
f6d4ad4922
Bug 775435 - Wrap-by-default in GetNPObjectWrapper. r=bsmedberg
2012-07-20 09:17:43 +02:00
Bobby Holley
854e142308
Bug 771202 - Don't double-call OnWrapperDestroyed. r=bsmedberg
...
Calling OnWrapperDestroyed at this point in OnDestroy doesn't make sense, because the JS objects have a finalize hook that also calls OnWrapperDestroyed regardless of whether or not they still have a pointer stashed in their private. So when we do this, we get a bunch of assertions about unmatched calls to OnWrapperDestroyed.
AFAICT the only reason this worked before is that this code never ran: I put a MOZ_ASSERT just before call to OnWrappedDestroyed in OnDestroy, and it never fired during the dom/plugins mochitests.
2012-07-13 10:56:38 +02:00
Bobby Holley
be06d8815f
Bug 771202 - Unwrap object arguments passed to plugins. r=bsmedberg
2012-07-13 10:55:14 +02:00
Bobby Holley
1d19de70ff
Bug 771202 - Implement post-transplant plugin behavior. r=bsmedberg
2012-07-13 10:55:14 +02:00
Bobby Holley
2c522abe65
Bug 771202 - Make the prototype climbing code in nsJSNPRuntime unwrap security wrappers. r=bsmedberg
2012-07-13 10:55:14 +02:00