Jose Cortes
ed1d7393df
Bug 842186 - Update use of jsval with JS::Value in cpp and h files in the content/xul/ content/canvas/ content/xslt/ and content/xbl/ directories. r=jwalden
...
--HG--
extra : rebase_source : fc2809818c2601d0b58f503968d579d09de98ea9
2013-03-22 22:05:20 -07:00
Jon Coppeard
8d5fd16382
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 35cbf3cc4da4598c2e9e6975028ef397718849db
2013-03-06 16:41:43 +00:00
Ed Morley
fe417ad697
Backed out changeset 28ef4bdff455 (bug 848395)
2013-03-07 13:03:35 +00:00
Jon Coppeard
fa71007e65
Bug 848395 - GC: Move Rooted to JS namespace - rename js::Rooted to JS::Rooted outside SpiderMonkey r=terrence
...
--HG--
extra : rebase_source : 866879df05e3ec3f8e93570eb3f6b71103636b41
2013-03-06 16:41:43 +00:00
Bobby Holley
d1a3436036
Bug 834732 - Audit callers of GetNativeContext and use AutoPushJSContext where appropriate. r=mrbkap
2013-02-26 11:04:13 -08:00
Bobby Holley
89e4df03dc
Bug 839792 - Revert Tamper-proofing. r=bz
...
This reverts bug 821850 part 16, and updates the tests accordingly.
2013-02-13 19:16:19 +01:00
Bobby Holley
0a9cda6738
Bug 821850 - Clone XBL into the XBL scope's compartment. r=bz
2013-02-08 14:24:22 +00:00
Bobby Holley
8d1e313928
Bug 821850 - Make XBL prototype setup tamper-proof for Xrays. r=bz
...
We make the class object readonly/non-configurable, as well as all the properties
and methods on the class object.
2013-02-08 14:24:21 +00:00
Bobby Holley
f1ce397128
Bug 821850 - Remove unused arguments from InstallMember and simplify calling convention. r=bz
...
Let's just pass a JSContext and do Requests/Compartments in the caller.
2013-02-08 14:24:21 +00:00
Bobby Holley
8dfc5ae9df
Bug 821850 - Make DoInitJSClass unconditionally fill in aClassObject. r=bz
...
Right now, DoInitJSClass only returns non-null if the class object is new
(and thus needs to have members installed on it). The code then goes and
unconditionally tries to install the members, null-checking and aborting
each time.
Instead, let's use an explicit boolean and one early return. This lets us
get a reference to our JSClass no matter what, which we need.
2013-02-08 14:24:20 +00:00
Bobby Holley
8d5b0ca82e
Bug 824864 - Move consumers of CompileFunction to the nsJSUtils version, and kill the nsJSContext version. r=bz
...
Note that the three consumers were all XBL, and were all passing aShared = true,
which had the effect of passing null for the target object. So we actually want
to pass JS::NullPtr() (the HandleObject version of nullptr) instead of
aClassObject in order to maintain the old behavior (whatever that is).
2013-01-16 18:50:25 -08:00
Bobby Holley
b9afeeb542
Bug 795275 - Introduce an explicit mechanism for determining if a script is from XBL. r=mrbkap
...
We want this right now so that we can avoid the scary warning when content Components
access happens in XBL (which we're allowing going forward). This patch would be overkill
just for that, but I also have plans to introduce a SOW-like protection of the Components
wrapper filtering policy. I can't just do the filename hack for that though, because real-
world XBL filenames might be all over the place. So let's just be safe here.
2012-10-03 11:44:18 +02:00
Ehsan Akhgari
b5c39afb4e
Bug 792502 - Kill the FunctionTimer code; r=vlad
2012-09-19 16:59:38 -04:00
Randell Jesup
eedf93a21d
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
Luke Wagner
94264a0bc8
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
0fd9123eac
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
Olli Pettay
a896bb3def
Bug 772966 - force XBL parameter names to be non-zero, r=sicking
2012-08-02 09:12:34 +03:00
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
2b12aedb4f
Bug 745478 - Pass JSObjects to nsXBLProtoImplMember::InstallMember; r=jst
2012-05-05 11:00:06 +02:00
Andrew McCreight
3ac11cfc5b
Bug 744103, part 2 - Change NoteScriptChild to NoteJSChild. r=smaug
2012-05-03 12:28:10 -07:00
Olli Pettay
aef37dab12
Bug 641821, MutationObserver, r=sicking
...
--HG--
extra : rebase_source : a680c883b22976edf38eea23fb516215e081084f
2012-03-31 09:30:13 -07:00
Nathan Froyd
70cbaa6b9e
Bug 732167 - Eliminate duplicate headers in content. r=mounir
2012-03-06 13:55:37 -05:00
Neil Deakin
feb4615c7b
Bug 723676, crash writing to startup cache when an empty method body is used, r=bz
2012-02-13 14:24:28 -05:00
Ms2ger
13974ab4fc
Bug 698389 - Give nsIScriptContext::CompileFunction a JSObject outparam; r=peterv
2011-11-26 11:08:42 +01:00
Ms2ger
9970541b7b
Bug 698386 - Pass JSObject to nsXBLProtoImplMember::CompileMember; r=sicking
2011-11-26 11:06:40 +01:00
Ms2ger
7e146f9cb2
Bug 700172 - Fix XBL_DeserializeFunction's signature; r=enn
2011-11-16 08:50:18 +01:00
Neil Deakin
84538b5409
Bug 94199, part 5, remove line number reading and writing as it isn't necessary, dxr does that for us, r=bz
2011-11-03 16:39:08 -04:00
Neil Deakin
f8a0db5b61
Bug 94199, part 4, serialize/deserialize xbl to startup cache, r=bz
2011-11-03 16:39:08 -04: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
Ehsan Akhgari
2a602a5685
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Ms2ger
7b7048fda0
Bug 649603 - Make nsIScriptContext::GetNativeContext return JSContext; r=jst
2011-09-18 11:22:17 +02:00
Luke Wagner
0d7bf8cc22
Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
...
--HG--
extra : rebase_source : 756a640568464d11fe6bb00104a2fdb6f6d02d02
2011-05-13 08:56:26 -07:00
Peter Van der Beken
2f1dbc28dd
Fix for bug ug 652135 (Add more CC edge names). r=dbaron.
...
--HG--
extra : rebase_source : a29d880341d333f6082f640ea467928b621b5b82
2011-02-02 16:30:03 +01:00
Igor Bukanov
933918e6f4
Bug 614578 - Removal of nsAutoGCRoot. r=mrbkap
2010-11-26 15:11:14 +01:00
Blake Kaplan
a44ad43150
bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst
2010-10-10 15:37:19 -07:00
Blake Kaplan
d8815d1675
Bug 580128 - Fix compartment warnings by entering. r=gal/peterv/jst/mrbkap/jorendorff (and written by all of us too).
2010-09-22 17:34:20 -07:00
Jonas Sicking
26eb9625c3
Bug 562791: Add NS_TIME_FUNCTION and friends to content code. r=jst
2010-04-30 12:40:59 -07:00
Peter Van der Beken
8b5c239aac
Fix for bug 510677 (Avoid XPCCallContext for WrapNativeToJSVal). r/sr=jst.
...
--HG--
extra : rebase_source : 647f360f5603a2f9ade579a9911ba51af1db91b5
2009-08-14 21:00:24 +02:00
timeless@mozdev.org
5d929545cf
Bug 504482 nsXBLProtoImplMethod::CompileMember shouldn't poke args[] outside paramCount condition
...
r=bz
2009-08-12 11:49:52 +02:00
Boris Zbarsky
0460675e76
Bug 489671. Make sure the error reporter doesn't suppress our error reports. r=mrbkap, sr=jst
2009-05-19 22:11:01 -04:00
Blake Kaplan
536a4825b6
Bug 451680 - Use a more reliable function to compile and execute XBL. r+sr=bzbarsky
2008-11-06 18:06:49 -08:00
bzbarsky@mit.edu
a183f5e853
Allow JS 1.7 in XBL. Bug 389322, r=brendan, sr=jst, a=brendan
2008-02-15 21:13:16 -08:00
peterv@propagandism.org
fec1fcec46
Fix for bug 415028 (Startup assertions and crash compiling proto properties with gczeal == 2). r/sr=bz.
2008-02-12 08:02:41 -08:00
peterv@propagandism.org
0614d590fc
Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912).
2007-10-29 06:45:07 -07:00
peterv@propagandism.org
26b136edfe
Backing out once more to fix orange.
2007-10-28 05:49:30 -07:00
peterv@propagandism.org
eae43da5fc
Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912).
2007-10-28 04:14:40 -07:00
peterv@propagandism.org
89c081734f
Backing out to fix orange.
2007-10-26 07:15:28 -07:00
peterv@propagandism.org
7496875bfa
Part 1 of fix for bug 379718 (using trace API for reference counts) and bug 386912 (cycle collector faults after tracing "JS object but unknown to the JS GC"). r=igor/jst, sr=jst, a=blocking1.9+/M9 (for bug 386912).
2007-10-26 06:25:32 -07:00