bzbarsky%mit.edu
1fd4026864
Allow JS 1.7 in XBL. Bug 389322, r=brendan, sr=jst, a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@245814 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-16 05:13:19 +00:00
peterv%propagandism.org
87849c0e7c
Fix for bug 415028 (Startup assertions and crash compiling proto properties with gczeal == 2). r/sr=bz.
...
git-svn-id: svn://10.0.0.236/trunk@245492 18797224-902f-48f8-a5cc-f745e15eee43
2008-02-12 16:02:41 +00:00
peterv%propagandism.org
ddd287d0a6
Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@244430 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-30 02:05:45 +00:00
peterv%propagandism.org
3225521caa
Try to fix orange
...
git-svn-id: svn://10.0.0.236/trunk@244389 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 21:42:06 +00:00
peterv%propagandism.org
26ccbe7007
Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron.
...
git-svn-id: svn://10.0.0.236/trunk@244379 18797224-902f-48f8-a5cc-f745e15eee43
2008-01-29 20:48:35 +00:00
bzbarsky%mit.edu
cfc89d830f
Fix bug 400794 and bug 401569: don't try to uninstall fields that are not
...
installed. r+sr=sicking. Patch in bug 400794.
git-svn-id: svn://10.0.0.236/trunk@239461 18797224-902f-48f8-a5cc-f745e15eee43
2007-11-15 17:09:14 +00:00
peterv%propagandism.org
a0ddff3e86
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).
...
git-svn-id: svn://10.0.0.236/trunk@238286 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-29 13:45:10 +00:00
peterv%propagandism.org
916fca8f47
Backing out once more to fix orange.
...
git-svn-id: svn://10.0.0.236/trunk@238262 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-28 12:49:33 +00:00
peterv%propagandism.org
dbbdaa7c7f
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).
...
git-svn-id: svn://10.0.0.236/trunk@238261 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-28 11:14:43 +00:00
peterv%propagandism.org
0777c3b24f
Backing out to fix orange.
...
git-svn-id: svn://10.0.0.236/trunk@238205 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-26 14:15:29 +00:00
peterv%propagandism.org
8e9fd20749
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).
...
git-svn-id: svn://10.0.0.236/trunk@238201 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-26 13:25:35 +00:00
bzbarsky%mit.edu
ddeeabf55f
Actually unhook the binding proto when we're tearing down the binding anonymous
...
content. Hasn't worked in years, apparently. Bug 398135, r+sr=sicking
git-svn-id: svn://10.0.0.236/trunk@237946 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-20 04:22:43 +00:00
bzbarsky%mit.edu
806d62b1e1
Relanding bug 372769 with some cycle collection changes to fix leaks.
...
r=mrbkap, sr=sicking, with r=sicking on the leak fixes.
git-svn-id: svn://10.0.0.236/trunk@236837 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 13:45:03 +00:00
bzbarsky%mit.edu
3ad55d39e0
Backing out bug 372769 due to leaks.
...
git-svn-id: svn://10.0.0.236/trunk@236713 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-26 14:39:32 +00:00
bzbarsky%mit.edu
5887e44e55
Do lazy evaluation of XBL fields. Bug 372769, r=mrbkap, sr=sicking
...
git-svn-id: svn://10.0.0.236/trunk@236710 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-26 13:55:07 +00:00
peterv%propagandism.org
cd5b18526a
Followup to bug 368774, fix bustage the right way.
...
git-svn-id: svn://10.0.0.236/trunk@226964 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 18:39:49 +00:00
peterv%propagandism.org
cae5ba4341
Fix for bug 368774 (Make cycle collector work with refcounted non-XPCOM objects). r=dbaron, sr=sicking.
...
git-svn-id: svn://10.0.0.236/trunk@226949 18797224-902f-48f8-a5cc-f745e15eee43
2007-05-24 14:10:04 +00:00
graydon%mozilla.com
3998c66e23
Bug 333078: XPCOM cycle collector
...
r=brendan, sicking, bz, dbaron, bsmedberg
git-svn-id: svn://10.0.0.236/trunk@217781 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-04 22:31:26 +00:00
vladimir%pobox.com
ece4ca3cad
backing out bug 333078, xpcom cycle collector due to perf issues
...
git-svn-id: svn://10.0.0.236/trunk@215718 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 23:18:16 +00:00
vladimir%pobox.com
260a2b3959
b=333078, xpcom cycle collector -- patch from graydon@mozilla.com, r=many
...
git-svn-id: svn://10.0.0.236/trunk@215695 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-22 19:23:02 +00:00
dbaron%dbaron.org
6efef3c0ad
Make wrapper preservation (the mechanism that makes the GC use reachability information between certain C++ objects rather than rooting at language boundaries) use an interface (nsIDOMGCParticipant) to get reachability information. Preserve the wrappers for event handlers as long as what they are attached to is reachable (from C++ or JS) to avoid entraining event handler closures in cycles. b=241518 r=mrbkap sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@185636 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-03 07:42:40 +00:00
jst%mozilla.jstenback.com
a9f668bc25
Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
jst%mozilla.jstenback.com
792744ce69
Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
...
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
bzbarsky%mit.edu
aba621f2dc
Preserve XPCNativeWrappers when "expando" properties are set on them. Bug
...
295937, r=shaver, sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@176280 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-19 21:40:33 +00:00
bzbarsky%mit.edu
e01bd5e327
Make sure to call ScriptEvaluated when doing all evaluations, to call it
...
_after_ we've popped the JSContext from the stack, and to handle multiple
termination functions being posted from a single script evaluation. Fixes
leaks when closing windows or tabs with still-loading documents. Bug 295983,
r+sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@174364 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-09 15:42:19 +00:00
timeless%mozdev.org
4a138c6985
Bug 294831 JS OOM crash [@ nsXBLPrototypeBinding::InitClass]
...
r=bz sr=bz a=asa
git-svn-id: svn://10.0.0.236/trunk@173617 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 01:05:55 +00:00
dbaron%dbaron.org
8bfdc8e8be
Change how we preserve XPConnect wrappers on which JS properties have been set or that are otherwise needed by XBL: instead of rooting those wrappers until the document stops being displayed, mark them from GC hooks only if the nodes are reachable (via DOM node traversal, optimizing based on symmetry of reachability between DOM nodes) from the document or from nodes already marked. b=283129 r=jst sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@171344 18797224-902f-48f8-a5cc-f745e15eee43
2005-03-29 23:26:56 +00:00
bzbarsky%mit.edu
efc0b7b7b4
Add some debug members to XBL to catch cases where things are treated as
...
compiled when they're not and vice versa. Bug 280089, r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@168881 18797224-902f-48f8-a5cc-f745e15eee43
2005-02-06 20:34:15 +00:00
bzbarsky%mit.edu
0f9b7ce5cc
Convert various GetDocument() callers in XBL to using GetOwnerDoc() or
...
GetCurrentDoc() depending on which they want. This lays the groundwork for
attaching bindings to nodes that are not in documents. Bug 265086, r=bryner,
sr=jst
git-svn-id: svn://10.0.0.236/trunk@166127 18797224-902f-48f8-a5cc-f745e15eee43
2004-12-02 02:24:28 +00:00
bzbarsky%mit.edu
ab9d28b860
Don't use the global object as the scope object when setting up the class for
...
the proto functions on the a binding. Patch arises from discussion in bug
258832, r+sr=brendan
git-svn-id: svn://10.0.0.236/trunk@162301 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-14 13:33:54 +00:00
bzbarsky%mit.edu
a6a65a4697
Make <constructor> and <destructor> methods, not handlers. Bug 230816,
...
r=bryner, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@162081 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-10 15:29:19 +00:00
jst%mozilla.jstenback.com
57e55d8a58
Fixing bug 248065. Make sure errors in nested scripts don't disrupt the containing script. r+sr=bzbarsky@mit.edu
...
git-svn-id: svn://10.0.0.236/trunk@161580 18797224-902f-48f8-a5cc-f745e15eee43
2004-09-01 16:50:12 +00:00
jst%mozilla.jstenback.com
c70cf3ddf4
Landing fix for bug 239202, patch by trev@gtchat.de. Making nsIScriptGlobalObjectOwner not scriptable. r+sr=jst@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@159342 18797224-902f-48f8-a5cc-f745e15eee43
2004-07-16 17:03:10 +00:00
timeless%mozdev.org
6590580432
Bug 242999 Crash while trying to GC [@ DOMGCCallback]
...
r=jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@156502 18797224-902f-48f8-a5cc-f745e15eee43
2004-05-18 04:00:47 +00:00
gerv%gerv.net
98831918fc
Bug 236613: change to MPL/LGPL/GPL tri-license.
...
git-svn-id: svn://10.0.0.236/trunk@155044 18797224-902f-48f8-a5cc-f745e15eee43
2004-04-17 21:52:36 +00:00
bzbarsky%mit.edu
8177c5ca95
Change the refcounting model for XBL stuff as follows:
...
1) nsXLBDocumentInfo owns all prototype bindings and deletes them in its
destructor
2) Everyone else just has weak refs to prototype bindings
3) nsXBLBinding holds a weak ref to the proto binding and a strong ref to
the document info
4) The document info is what's stored in the chrome cache.
to prevent crashes. Bug 226692, r=timeless, sr=bryner, a=brendan
git-svn-id: svn://10.0.0.236/trunk@152794 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-15 19:24:42 +00:00
jst%mozilla.jstenback.com
854468a176
Fixing bug 233307. deCOMtaminating nsIScript* and related interfaces. r+sr=bryner@brianryner.com.
...
git-svn-id: svn://10.0.0.236/trunk@152565 18797224-902f-48f8-a5cc-f745e15eee43
2004-02-09 22:48:53 +00:00
bzbarsky%mit.edu
f3f750b9eb
If compilation of a prototype member fails, destroy all prototype members
...
before bailing. Bug 232095, r+sr=bryner
git-svn-id: svn://10.0.0.236/trunk@151915 18797224-902f-48f8-a5cc-f745e15eee43
2004-01-27 21:18:00 +00:00
bzbarsky%mit.edu
f37280891e
Convert URL stuff in XBL to use nsIURI instead of strings. Bug 224765, r+sr=bryner
...
git-svn-id: svn://10.0.0.236/trunk@149454 18797224-902f-48f8-a5cc-f745e15eee43
2003-11-17 21:03:32 +00:00
bryner%brianryner.com
eeddf02bde
deCOMtaminate nsIDocument by changing methods to use return value instead of out-params, eliminating unused nsresult return values, moving some members to nsIDocument and inlining the getters/setters. Bug 222134, r=bzbarsky, sr=jst.
...
git-svn-id: svn://10.0.0.236/trunk@148257 18797224-902f-48f8-a5cc-f745e15eee43
2003-10-22 06:09:48 +00:00
jst%mozilla.jstenback.com
ef67a47aab
Fixing bug 215981. DeCOMtaminating nsIContent and nsIDocument some, and also some minor changes to other related interfaces. r=caillon@aillon.org, sr=peterv@propagandism.org.
...
git-svn-id: svn://10.0.0.236/trunk@147354 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-27 04:18:26 +00:00
timeless%mozdev.org
090bed717c
Bug 211493 nsXBLProtoImplMethod::CompileMember doesn't check rv from aContext->CompileFunction. Crash [@ JS_CloneFunctionObject]
...
r=bryner sr=bz
git-svn-id: svn://10.0.0.236/trunk@146736 18797224-902f-48f8-a5cc-f745e15eee43
2003-09-11 04:10:20 +00:00
bzbarsky%mit.edu
67e7a64c5d
DeCOMify GetParent/GetBindingParent/GetDocument on nsIContent. Bug 213823,
...
r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@145285 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-28 21:17:26 +00:00
bzbarsky%mit.edu
5435c5826d
Add correct line number reporting to errors from XBL fields and handlers. Make
...
it possible to pass a url and line number to CompileEventHandler in general.
Bug 127567, r=bryner, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@144752 18797224-902f-48f8-a5cc-f745e15eee43
2003-07-11 22:54:36 +00:00
caillon%returnzero.com
0a6d1ae509
Bug 209087
...
Content interface out-parameters should use ptr-to-ptrs instead of ref-to-ptrs and some small deCOMtamination.
r+sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@143683 18797224-902f-48f8-a5cc-f745e15eee43
2003-06-13 20:10:01 +00:00
bryner%netscape.com
de5a0e85db
Remove nsIXBLPrototypeBinding (part of bug 194834). r=jkeiser, sr=alecf.
...
git-svn-id: svn://10.0.0.236/trunk@139057 18797224-902f-48f8-a5cc-f745e15eee43
2003-03-06 23:59:18 +00:00
dbaron%fas.harvard.edu
f6e15b701a
Adding newline to end of file to fix HP bustage.
...
git-svn-id: svn://10.0.0.236/trunk@107953 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:59:24 +00:00
hyatt%netscape.com
b4e87bafad
Fix for 106153, don't build a content model for XBL's implementation. r=bryner, sr=ben
...
git-svn-id: svn://10.0.0.236/trunk@107944 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 04:09:56 +00:00