Brian Hackett
6c4ed4bfd1
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
acd1121bd5
Bug 777098 - Null check private of NPObjWrapper in nsJSObjWrapper::GetNewOrUsed. r=bsmedberg
2012-07-27 11:15:43 +02:00
Bobby Holley
62b1ab760a
Bug 775435 - Wrap-by-default in GetNPObjectWrapper. r=bsmedberg
2012-07-20 09:17:43 +02:00
Bobby Holley
43cde0f410
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
c53f2abab5
Bug 771202 - Unwrap object arguments passed to plugins. r=bsmedberg
2012-07-13 10:55:14 +02:00
Bobby Holley
69beb6ccbd
Bug 771202 - Implement post-transplant plugin behavior. r=bsmedberg
2012-07-13 10:55:14 +02:00
Bobby Holley
8bee32f12e
Bug 771202 - Make the prototype climbing code in nsJSNPRuntime unwrap security wrappers. r=bsmedberg
2012-07-13 10:55:14 +02:00
Bill McCloskey
a4d863d341
Bug 770759 - Add mutable handles (r=bhackett)
2012-07-04 11:12:16 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
b4c002a912
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
4f8baecc9e
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
b7d2500332
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Luke Wagner
645efe19ef
Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
2012-05-07 12:44:08 -07:00
Ms2ger
b8c940e642
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Ms2ger
54f1f6b78d
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
78bc77e39f
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Igor Bukanov
c7e7021207
Bug 737365 - stop using the cx during finalization, part 1.
...
This part changes the signatures for various finalization API to take
not JSContext* but rather either JSFreeOp structure or its
library-private counterpart FreeOp. These structures wrap parameters
that are passed to the finalizers removing most of explicit dependencies
on JSContext in the finalization code.
2012-03-19 15:34:55 +01:00
Justin Lebar
8dfd539864
Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
2012-03-12 18:53:18 -04:00
David Mandelin
197f344254
Bug 732306: Remove typedef jsint, r=luke
2012-03-01 18:54:01 -08:00
Igor Bukanov
c0611e12fb
bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm
2012-02-29 21:23:38 +01:00
Matt Brubeck
d34102c071
Back out 2778f515ed5a (bug 723286) on suspicion of causing OSX64 crashes
2012-02-29 16:18:22 -08:00
Igor Bukanov
7607cdb290
bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm
2012-02-29 21:23:38 +01:00
David Mandelin
f0690b22d1
Bug 730511: remove obsolete typedefs intN, uintN, r=luke
2012-02-28 15:11:11 -08:00
Bill McCloskey
1939c1436c
Bug 729367 - Add write barrier flag to NPAPI class (r=igor)
2012-02-28 10:44:04 -08:00
David Mandelin
0a4c9bd844
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
2012-02-24 14:19:52 -08:00
Marco Bonardo
7aa79ce5b7
Backout 4fc2f49371a8 (bug 725550) for build failures
2012-02-25 00:16:47 +01:00
David Mandelin
d85948e391
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
2012-02-24 14:19:52 -08:00
Igor Bukanov
0265d1f860
bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke
2012-02-13 09:02:21 +01:00
Bill McCloskey
ca293fdba6
Bug 641025 - Incremental GC (r=igor,smaug,roc,cdleary,gregor)
2012-02-17 14:35:20 -08:00
Igor Bukanov
6fefb1df81
bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
2012-02-05 21:07:23 +01:00
Igor Bukanov
ae7ab9b03a
backout merge for bug 724310. r=irc
2012-02-09 21:28:22 +01:00
Igor Bukanov
12633fbfdd
bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
2012-02-05 21:07:23 +01:00
Nathan Froyd
e4a74f6587
Bug 724278 - fix -Wset-but-unused-variable warnings; r=josh
2012-02-04 07:48:02 -05:00
Igor Bukanov
889c9d4073
bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke
2012-02-04 01:54:57 +01:00
Ms2ger
0da18b7a47
Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff
2012-01-15 09:13:08 +01:00
Ms2ger
9bc33efcf0
Bug 332648 - Part g: Move AutoIdArray to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
481d42e3d2
Bug 332648 - Part e: Move AutoArrayRooter to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
a21b9c58a7
Bug 332648 - Part b: Move AutoValueRooter to jsapi.h; r=evilpie
...
This patch also moves the MarkRuntime function into the JS namespace.
2012-01-11 09:23:08 +01:00
Brian Hackett
2ecf6804fd
Merge MC -> JM
2011-10-19 14:26:08 -07:00
Olli Pettay
ffb4115bc4
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 2, r=jst
2011-10-18 14:19:44 +03:00
Olli Pettay
1cdbb1b884
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst
2011-10-18 13:53:36 +03:00
Brian Hackett
a8d7dceb1f
Add missing #include, bug 693754.
2011-10-12 12:20:52 -07:00
Brian Hackett
55c600efc0
Fix use of getPrivate() on function object, bug 693754.
2011-10-12 09:48:46 -07:00
Jeff Walden
8ce2dc6ecd
Bug 679509 - Make sure convert hooks in plugin code always return a primitive value. r=mrbkap, r=luke, r=jst
2011-10-14 16:27:50 -07:00
Jeff Walden
b02b85d75e
Back out bug 679509 -- need to try another approach. r=backout
2011-10-13 11:30:17 -07:00
Jeff Walden
2004b7a6cf
Bug 679509 - Make sure convert hooks in plugin code always return a non-primitive value. r=luke
2011-10-11 15:42:15 -07:00
Josh Aas
bbe816bfa8
Bug 690459: Remove usage of PR_TRUE and PR_FALSE from base plugin code. r=jst
2011-09-30 02:02:59 -04:00
Michael Wu
0fe7772ece
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
2011-09-28 23:19:26 -07:00
Ms2ger
6057ede4ed
Bug 649603 - Make nsIScriptContext::GetNativeContext return JSContext; r=jst
2011-09-18 11:22:17 +02:00
Benjamin Smedberg
bccb7c9174
Bug 653083 - Deal with NPRuntime identifier which may be non-interned being passed across the process boundary, and the current cache which isn't aware of that problem. r=bent,cdleary
2011-06-14 15:49:48 -04:00