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
Bill McCloskey
943f752751
Bug 770759 - Add mutable handles (r=bhackett)
2012-07-04 11:12:16 -07:00
Gervase Markham
87620f5676
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Brian Hackett
f8aa8c3c5a
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 15:03:45 -07:00
Brian Hackett
aeda1d5c01
Backed out changeset 5fc7462dd394 for android orange.
2012-05-19 11:52:55 -07:00
Brian Hackett
54e8d378fb
Use handles in API object hooks where possible, bug 750733. r=billm
2012-05-19 09:48:09 -07:00
Luke Wagner
57ad808df2
Bug 747617 - fix document.all and swap JSClass::{construct,hasInstance} so this doesn't happen again (r=bz)
...
--HG--
extra : rebase_source : 036acbd046ff8b42f81e63933901b6aaaa595a76
2012-05-07 12:44:08 -07:00
Ms2ger
9a5ae693e0
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-05-05 11:00:05 +02:00
Ms2ger
b8ae2456b2
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
9f95d23e65
Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
2012-04-14 15:05:01 +02:00
Igor Bukanov
3a859b7a76
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
064e2cf3f9
Bug 729940 - Part 2: Stop using crappy hash functions in Gecko. r=bz
...
--HG--
extra : rebase_source : 6fa267a89878cc1a766d8618569debcea9b12e48
2012-03-12 18:53:18 -04:00
David Mandelin
5606b83eed
Bug 732306: Remove typedef jsint, r=luke
...
--HG--
extra : rebase_source : 4d15a8514dbd698c114fa688461e533afab68ffa
2012-03-01 18:54:01 -08:00
Igor Bukanov
212769b040
bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm
2012-02-29 21:23:38 +01:00
Matt Brubeck
b2985cd260
Back out 2778f515ed5a (bug 723286) on suspicion of causing OSX64 crashes
2012-02-29 16:18:22 -08:00
Igor Bukanov
2e914758d0
bug 723286 - remove JSContext * parameter from heap-traversal and related API. r=:billm
2012-02-29 21:23:38 +01:00
David Mandelin
60e80d55b6
Bug 730511: remove obsolete typedefs intN, uintN, r=luke
2012-02-28 15:11:11 -08:00
Bill McCloskey
1f143559c0
Bug 729367 - Add write barrier flag to NPAPI class (r=igor)
2012-02-28 10:44:04 -08:00
David Mandelin
381d879c71
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
2012-02-24 14:19:52 -08:00
Marco Bonardo
22d7a18fa5
Backout 4fc2f49371a8 (bug 725550) for build failures
2012-02-25 00:16:47 +01:00
David Mandelin
5be5dda12e
Bug 725550: remove obsolete typedef jsdouble, r=jwalden
...
--HG--
extra : rebase_source : 772c2982184d7b3d1680737323395365e6b218da
2012-02-24 14:19:52 -08:00
Igor Bukanov
fc29d0f64c
bug 726944 - Remove JSClass::xdrObject and related functionality. r=luke
2012-02-13 09:02:21 +01:00
Bill McCloskey
6b3aa0565d
Bug 641025 - Incremental GC (r=igor,smaug,roc,cdleary,gregor)
2012-02-17 14:35:20 -08:00
Igor Bukanov
748c9f34a7
bug 724310 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : b78519db2ff008eb5143676d2db47935f0e89f45
2012-02-05 21:07:23 +01:00
Igor Bukanov
38fe4ed717
backout merge for bug 724310. r=irc
2012-02-09 21:28:22 +01:00
Igor Bukanov
e4e3433d0c
bug 723517 - drop cx argument from JSObject field and fixed slots infallible API. r=:Waldo
...
--HG--
extra : rebase_source : c461dfc0e0e0462ab262cc01c2a771d3bb0971cc
2012-02-05 21:07:23 +01:00
Nathan Froyd
29793b88f7
Bug 724278 - fix -Wset-but-unused-variable warnings; r=josh
2012-02-04 07:48:02 -05:00
Igor Bukanov
3163d5e91e
bug 723517 - Drop cx argumrent from JS_GetClass(cx, obj). r=luke
2012-02-04 01:54:57 +01:00
Ms2ger
6b0c6353bd
Bug 677079 - Part d: Move js_GetErrorMessage to jsfriendapi.h; r=jorendorff
2012-01-15 09:13:08 +01:00
Ms2ger
badf95659c
Bug 332648 - Part g: Move AutoIdArray to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
dbd0ec7cdd
Bug 332648 - Part e: Move AutoArrayRooter to jsapi.h; r=evilpie
2012-01-11 09:23:09 +01:00
Ms2ger
41e5f45d47
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
d64dce75db
Merge MC -> JM
...
--HG--
rename : js/src/jsparse.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/jsparse.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/jsemit.cpp => js/src/frontend/BytecodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/BytecodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/jsparse.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/jsparse.h => js/src/frontend/ParseNode.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsregexpinlines.h => js/src/vm/RegExpObject-inl.h
rename : js/src/jsregexp.cpp => js/src/vm/RegExpObject.cpp
rename : js/src/jsregexp.h => js/src/vm/RegExpObject.h
rename : js/src/xpconnect/src/xpcjsruntime.cpp => js/xpconnect/src/XPCJSRuntime.cpp
rename : js/src/xpconnect/src/xpcquickstubs.cpp => js/xpconnect/src/XPCQuickStubs.cpp
rename : js/src/xpconnect/src/nsXPConnect.cpp => js/xpconnect/src/nsXPConnect.cpp
2011-10-19 14:26:08 -07:00
Olli Pettay
e5b7e8ee46
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 2, r=jst
...
--HG--
extra : rebase_source : 53dc2ec386f6e4147587e6be3c53d297ad71d57a
2011-10-18 14:19:44 +03:00
Olli Pettay
a86b1a4d43
Bug 682420 - Rename nsINode::GetOwnerDoc to nsINode::OwnerDoc, part 1, r=jst
...
--HG--
extra : rebase_source : baf1a25cdea68d499a7673fdf96e27b5a12dc83c
2011-10-18 13:53:36 +03:00
Brian Hackett
63b298d8b6
Add missing #include, bug 693754.
2011-10-12 12:20:52 -07:00
Brian Hackett
467ea67fc4
Fix use of getPrivate() on function object, bug 693754.
2011-10-12 09:48:46 -07:00
Jeff Walden
723247dcd8
Bug 679509 - Make sure convert hooks in plugin code always return a primitive value. r=mrbkap, r=luke, r=jst
...
--HG--
extra : rebase_source : adf240c22329d3461a2c939d11798247a98b867f
2011-10-14 16:27:50 -07:00
Jeff Walden
70264798ed
Back out bug 679509 -- need to try another approach. r=backout
2011-10-13 11:30:17 -07:00
Jeff Walden
07d060057c
Bug 679509 - Make sure convert hooks in plugin code always return a non-primitive value. r=luke
...
--HG--
extra : rebase_source : 0efa84079b3acb44b796e8542340e8fbd7e7c303
2011-10-11 15:42:15 -07:00
Josh Aas
34871f44d1
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
d8e503c38b
Bug 675553 - Switch from PRBool to bool on a CLOSED TREE , r=bsmedberg,khuey,bz,cjones
...
--HG--
rename : tools/trace-malloc/bloatblame.c => tools/trace-malloc/bloatblame.cpp
2011-09-28 23:19:26 -07:00