Bobby Holley
2eef2f91f9
Bug 821850 - Unwrap |callee| before passing it to InstallXBLField. r=bz
...
InstallXBLField knows how to handle cross-compartment |callee|. However,
The current value will always be wrapped. We need to unwrap said wrappers,
otherwise we'll end up with objects that aren't functions.
2013-02-08 14:24:21 +00:00
Bobby Holley
85c0f5cf46
Bug 821850 - Install XBL field accessors on prototype objects at setup time, and nuke XBLResolve. r=bz
2013-02-08 14:24:21 +00:00
Bobby Holley
c6479a3444
Bug 821850 - Hoist Field machinery into nsXBLProtoImplField. r=bz
...
This is a pure cut/paste except for removing |static| from XBLResolve.
XBLResolve will go away soon, so there's no need to put it in a header.
2013-02-08 14:24:21 +00:00
Bobby Holley
fe9b482b3b
Bug 824864 - Pass EvaluateString out-param as a pointer, not a reference. r=bz
2013-01-16 18:50:27 -08:00
Bobby Holley
89a6e0fc9e
Bug 824864 - Rename EvaluateStringWithValue to EvaluateString. r=bz
...
Now that there's only one of them, we can get rid of the silly suffix. \o/
2013-01-16 18:50:26 -08:00
Bobby Holley
1724ed7409
Bug 824864 - Improve the API for EvaluateStringWithValue. r=bz
...
There are a few changes we make here:
1 - Having callers pass JS::CompileOptions directly.
2 - Removing aUndefined, which makes no sense and is unused by consumers.
3 - Making aScopeObject and aRetValue non-optional, via references.
3 - Adding an argument to optionally coerce the return value to a string.
Coercing jsvals to strings is the reason we currently have two nearly-identical
functions, EvaluateString and EvaluateStringWithValue, since the coercion can
trigger arbitrary script and thus needs to be bracketed by all the junk that
nsJSContext does. However, if callers can be guaranteed that the return value
will be a bonafide string, then they can easily extract the string themselves
if they so desire. This will allow us to combine the two functions.
2013-01-16 18:50:26 -08:00
Bobby Holley
b9b954824f
Bug 820666 - Tag XBL script for <field> elements and child scripts. r=jorendorff
2012-12-12 17:09:37 -08: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
Aryeh Gregor
e806eeab4f
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
David Zbarsky
ae718ee1c0
Bug 763350 - Clean up some includes in content/ and dom/ r=smaug
2012-07-01 16:45:59 -07:00
Jeff Walden
52fa77ed8b
Bug 758912 - Don't use JSCLASS_NEW_RESOLVE_GETS_START in XBL code. r=bz
2012-05-29 12:01:30 -07:00
Gervase Markham
ca171eec44
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01: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
Ginn Chen
4dfb39f696
Bug 701273 Fix prototype mismatch for nsXBLProtoImplProperty and nsXBLProtoImplField (bool vs const bool) r=enndeakin
2011-11-21 11:09:16 +08:00
Ms2ger
433468f9b0
Bug 698380 - Give nsIScriptContext::EvaluateStringWithValue a JS::Value retval parameter; r=peterv
2011-11-16 08:50:20 +01:00
Neil Deakin
f8a0db5b61
Bug 94199, part 4, serialize/deserialize xbl to startup cache, r=bz
2011-11-03 16:39:08 -04: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
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
Ms2ger
7b7048fda0
Bug 649603 - Make nsIScriptContext::GetNativeContext return JSContext; r=jst
2011-09-18 11:22:17 +02:00
Igor Bukanov
933918e6f4
Bug 614578 - Removal of nsAutoGCRoot. r=mrbkap
2010-11-26 15:11:14 +01: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
Boris Zbarsky
5965dd953c
Bug 542406. Make readonly='true' on XBL fields work again. r=sicking
2010-02-03 16:17:55 -05: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
Mats Palmgren
9f762e2a40
Use an iterative algorithm when deleting lists to avoid exhausting the stack space. b=460444 r+sr=dbaron r=jst
2008-12-15 12:33:56 +01:00
Shawn Wilsher
46dc84456b
bug 464174 followup (comment fix only)
2008-11-28 18:24:05 -08:00
Blake Kaplan
a871090e67
Bug 464174. r=sicking, sr=sicking, a=beltzner
2008-11-28 18:16:17 -08:00
bzbarsky@mit.edu
3107f1d479
Don't leave an exception hanging on the JS context when we return ok. Bug 418133, r=jst, sr=brendan, a=beltzner.
2008-03-05 12:41:27 -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
bzbarsky@mit.edu
16d74db68d
Skip installing fields which have no text. Bug 397924, r+sr+a=sicking
2007-10-02 07:38:35 -07:00
bzbarsky@mit.edu
b25b785ddc
Relanding bug 372769 with some cycle collection changes to fix leaks. r=mrbkap, sr=sicking, with r=sicking on the leak fixes.
2007-09-28 06:45:01 -07:00
bzbarsky@mit.edu
5ae0b67801
Backing out bug 372769 due to leaks.
2007-09-26 07:39:31 -07:00
bzbarsky@mit.edu
ee86dfedb4
Do lazy evaluation of XBL fields. Bug 372769, r=mrbkap, sr=sicking
2007-09-26 06:55:06 -07:00
jwalden@mit.edu
e3c4baccae
Bug 348748 - Replace all instances of NS_STATIC_CAST and friends with C++ casts (and simultaneously bitrot nearly every patch in existence). r=bsmedberg on the script that did this. Tune in next time for Macro Wars: Episode II: Attack on the LL_* Macros.
2007-07-08 00:08:04 -07:00
peterv@propagandism.org
98955fbcad
Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking.
2007-05-24 07:10:02 -07:00
hg@mozilla.com
465265d0d4
Free the (distributed) Lizard! Automatic merge from CVS: Module mozilla: tag HG_REPO_INITIAL_IMPORT at 22 Mar 2007 10:30 PDT,
2007-03-22 10:30:00 -07:00