bzbarsky%mit.edu
7204a6d40e
Log creation of XPCNativeWrapper and XPCWrappedNative objects if
...
DEBUG_XPCNativeWrapper is defined. Bug 295435, r+sr=jst, a=shaver.
git-svn-id: svn://10.0.0.236/trunk@173963 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 19:26:24 +00:00
timeless%mozdev.org
6857a9e298
Bug 295636 OOM Crash [@ Init]
...
r=jst sr=jst a=shaver
git-svn-id: svn://10.0.0.236/trunk@173951 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 18:36:25 +00:00
bzbarsky%mit.edu
9792b7f6d0
Fix toString on the XPCNativeWrapper prototype to return something sane instead
...
of crashing. Bug 295430, r+sr=jst, a=shaver
git-svn-id: svn://10.0.0.236/trunk@173914 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 15:20:29 +00:00
cls%seawood.org
448f178000
Use dashes instead of backslashes for program options to avoid msys shell expansion.
...
Thanks to Howard Chu <hyc@symas.com> for the patch.
Bug #294122 r=cls a=shaver
git-svn-id: svn://10.0.0.236/trunk@173906 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 14:28:35 +00:00
bzbarsky%mit.edu
676af6aabc
Separate out deep-ness and auto-unwrapping of native wrappers (base the latter
...
on whether the wrapper is explicit). Bug 295782, r+sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@173870 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 01:46:01 +00:00
bzbarsky%mit.edu
b1ca81d879
Don't return XPCNativeWrappers from an nsIXPConnect::WrapNative call. Bug
...
295152, r+sr=jst, a=brendan
git-svn-id: svn://10.0.0.236/trunk@173868 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 01:21:23 +00:00
brendan%mozilla.org
330492fd04
Fix gcPoke management to cope with nesty destroy-context order (296119, r=shaver, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@173867 18797224-902f-48f8-a5cc-f745e15eee43
2005-06-01 01:16:06 +00:00
jst%mozilla.jstenback.com
a50c8e3c94
Fixing crash introduced with my earlier changes for bug 294893. Make nw and wn finalizers order independent. r+sr=bzbarsky@mit.edu, a=drivers
...
git-svn-id: svn://10.0.0.236/trunk@173798 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 21:35:27 +00:00
jst%mozilla.jstenback.com
d235d374a2
More fixes for bug 294893. When a XPCWrappedNative's scope is cleared, make sure we clear the scope for all of its XPCNativeWrappers as well. r+sr=bzbarsky@mit.edu, a=drivers
...
git-svn-id: svn://10.0.0.236/trunk@173788 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 19:30:36 +00:00
bzbarsky%mit.edu
71e216d36e
Better version of last patch -- don't pin the atoms, and clean up nicely when
...
they're finalized so as not to crash. Bug 294893, assumed future r=brendan,
a=drivers
git-svn-id: svn://10.0.0.236/trunk@173787 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 17:21:29 +00:00
bzbarsky%mit.edu
b683cb9ca0
Backing out to fix orange till I can sort it out.
...
git-svn-id: svn://10.0.0.236/trunk@173785 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 14:41:34 +00:00
bzbarsky%mit.edu
3413d8b3ce
Don't pin object atoms, since those can entrain all sorts of other stuff. Bug
...
294893 some more, r=brendan, sr=jst, a=brendan
git-svn-id: svn://10.0.0.236/trunk@173784 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-26 13:27:57 +00:00
brendan%mozilla.org
5eae8a7eb6
Fix null deref crash on s.match.apply (295052, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@173777 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-25 23:28:00 +00:00
jst%mozilla.jstenback.com
cecf7d93c3
More fixes for leak bug 294893. Make sure to clear the scope of the native wrapper when a wrapped native's scope is cleared. r+sr=bzbarsky@mit.edu, a=drivers
...
git-svn-id: svn://10.0.0.236/trunk@173767 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-25 03:40:24 +00:00
jst%mozilla.jstenback.com
bdc14f292e
More attempts at fixing leak bug 294893 by fixing up parenting of XPCNativeWrapper objects, and fixing problem with accessing a deleted wrapper in some cases. r+sr=bzbarsky@mit.edu, a=asa@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@173756 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-24 20:05:43 +00:00
jst%mozilla.jstenback.com
45fa959fe1
Fixing (hopefully) leak bug 294893. Don't mark mNativeWrapper when an XPCWrappedNative is marked, let XPCNativeWrapper's die when all script references to them are gone even if their XPCWrappedNative is still referenced. r/sr/a=asa@mozilla.org (will get real reviews once people are reachable).
...
git-svn-id: svn://10.0.0.236/trunk@173733 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-24 06:42:30 +00:00
bzbarsky%mit.edu
05b41d7b59
Fix deep-wrapping to reuse existing wrappers if it can. Bug 295301, r+sr=jst,
...
a=asa
git-svn-id: svn://10.0.0.236/trunk@173730 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-24 05:11:20 +00:00
timeless%mozdev.org
fd16d3ef3a
Bug 293992 printf passed user controlled buffer
...
r=shaver sr=bz a=asa
git-svn-id: svn://10.0.0.236/trunk@173714 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-23 21:00:06 +00:00
jst%mozilla.jstenback.com
a1ce7e5f2f
More fixes for bug 295101. Don't leave *pob2 dangling (caught by bz). r+sr=bzbarsky@mit.edu, a=brendan@mozilla.org (on irc)
...
git-svn-id: svn://10.0.0.236/trunk@173708 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-23 16:59:29 +00:00
bzbarsky%mit.edu
7eb8a807b1
Check in jst's patch to auto-mark our new objects before we do things that
...
might trigger gc. Bug 295101 partial patch, r+sr=bzbarsky/brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@173703 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-23 14:14:45 +00:00
brendan%mozilla.org
91831fa5ea
Bypass XPCNativeWrapper's delProperty hook (295122, r+sr=jst).
...
git-svn-id: svn://10.0.0.236/trunk@173699 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-23 05:58:05 +00:00
bzbarsky%mit.edu
322ae93104
Stop forwarding addProperty to the wrapped native. That's not the right thing
...
to do in general (since we use OBJ_DEFINE_PROPERTY in this case in resolve
anyway), and it breaks some things. Bug 295122, r/sr=jst/brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@173687 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-22 20:48:00 +00:00
brendan%mozilla.org
56daf7360e
Fix UMR regression introduced in 3.110 (295116, tachyonal r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@173685 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-22 18:25:08 +00:00
bob%bclary.com
dcaf9a5ff3
Add testcase for bug 295052, by David James. Do not crash on String.prototype.match.apply
...
git-svn-id: svn://10.0.0.236/trunk@173670 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 21:28:43 +00:00
brendan%mozilla.org
1dd5e3a861
Fix 294957 for good.
...
git-svn-id: svn://10.0.0.236/trunk@173669 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 17:35:16 +00:00
brendan%mozilla.org
92cf47419f
Fix from bz for glitch in last checkin.
...
git-svn-id: svn://10.0.0.236/trunk@173665 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 14:55:54 +00:00
brendan%mozilla.org
6660fcc22f
Fix stale comment added in last rev.
...
git-svn-id: svn://10.0.0.236/trunk@173661 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 06:32:12 +00:00
brendan%mozilla.org
f4fdea13ce
Fix adblock and many other non-system chrome users of sytem-chrome xbl (294960, r+sr=bz).
...
git-svn-id: svn://10.0.0.236/trunk@173660 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 06:24:08 +00:00
brendan%mozilla.org
249a3e4b07
Argh, I made JS_IsSystemObject return a bogo-boolean -- thanks to bz for catching this.
...
git-svn-id: svn://10.0.0.236/trunk@173659 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-21 05:52:20 +00:00
brendan%mozilla.org
47f48e97e6
Fix frames[0] case where DOM doesn't use an item method (294960, r+sr=bz).
...
git-svn-id: svn://10.0.0.236/trunk@173649 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 21:46:24 +00:00
brendan%mozilla.org
47a43ee2de
Fix 294957, fallout from the 281988 landing (r+sr=bz).
...
git-svn-id: svn://10.0.0.236/trunk@173644 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 20:06:22 +00:00
bzbarsky%mit.edu
1b4eba5795
Flag our private as ISUPPORTS so object principals, etc, become happy. Bug
...
281988 ongoing, r+sr+a=brendan.
git-svn-id: svn://10.0.0.236/trunk@173639 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 19:00:14 +00:00
brendan%mozilla.org
ad352b70e3
Followup for 281988, r+sr=bz, to make deep XPCNativeWrapper __parent__ mirror wrapped-native parent linkage.
...
git-svn-id: svn://10.0.0.236/trunk@173638 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 18:51:57 +00:00
bzbarsky%mit.edu
bb752a5f05
Make sure to not use an XPCNativeWrapper as the parent for an
...
XPCWrappedNative. Get its underlying XPCWrappedNative and use that instead.
Bug 281988 fun continues, r+sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@173633 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 17:35:11 +00:00
bzbarsky%mit.edu
e432476663
Make GetScopeOfObject() know about XPCNativeWrapper and get the scope of the
...
underlying XPCWrappedNative. Bug 281988, r+sr+a=brendan
git-svn-id: svn://10.0.0.236/trunk@173627 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 05:09:56 +00:00
bzbarsky%mit.edu
a682db6b3c
Fixing build bustage. Thanks to swalker for the heads-up
...
git-svn-id: svn://10.0.0.236/trunk@173626 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 04:47:28 +00:00
brendan%mozilla.org
c1174d1919
Big patch from jst and me to beef up and automate, configurably, XPCNativeWrapper (281988, r+sr=bz/shaver, a=drivers).
...
git-svn-id: svn://10.0.0.236/trunk@173622 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-20 03:12:22 +00:00
brendan%mozilla.org
f2715b2804
Unregress __noSuchMethod__ for 1.8b2.
...
git-svn-id: svn://10.0.0.236/trunk@173519 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 20:01:28 +00:00
brendan%mozilla.org
aa2ce9884b
Another 293782 followup, to restore lost perf in call_enumerate (called from js_PutCallObject, imp. for closure perf).
...
git-svn-id: svn://10.0.0.236/trunk@173516 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 17:44:57 +00:00
brendan%mozilla.org
605a13bf22
Comment tweak.
...
git-svn-id: svn://10.0.0.236/trunk@173501 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 03:00:49 +00:00
brendan%mozilla.org
3c6f97aa3e
Remove harmless but not-ready-for-prime-time stuff that tagged along with the last checkin.
...
git-svn-id: svn://10.0.0.236/trunk@173500 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 02:57:26 +00:00
brendan%mozilla.org
0e92920eef
Duh.
...
git-svn-id: svn://10.0.0.236/trunk@173499 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 02:41:04 +00:00
brendan%mozilla.org
3abcebe4b0
Followup patch for bug 293782 etc., to unregress 137000 (r/a=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@173498 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-17 01:06:35 +00:00
brendan%mozilla.org
28e9ee6cb0
Fast followup to last checkin (bug 293782) to unregress 238881.
...
git-svn-id: svn://10.0.0.236/trunk@173461 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 22:38:12 +00:00
brendan%mozilla.org
54dd7af210
Hide function arg/var properties, to hide pre-ECMA design decision that horks ECMA-conformance and sanity in multiple cases (293782 and its deps, r+a=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@173458 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 18:24:31 +00:00
bob%bclary.com
e50fd8b363
Function arguments, variables should be hidden as Function properties, test by Jonathan Watt
...
git-svn-id: svn://10.0.0.236/trunk@173454 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 17:26:52 +00:00
bob%bclary.com
6f35bf62c5
Test crash during String.replace when accessing String methods on backreferences
...
git-svn-id: svn://10.0.0.236/trunk@173452 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 17:04:00 +00:00
bob%bclary.com
c55942dae7
Test crash bug 294191, testcase by shutdown@ayassi.zzn.com
...
git-svn-id: svn://10.0.0.236/trunk@173451 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-15 16:38:46 +00:00
brendan%mozilla.org
1125e77077
Fix another scripts+runtime survive a zero-context condition bug reported by MikeM@RetekSolutions.com.
...
git-svn-id: svn://10.0.0.236/trunk@173367 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-13 17:47:04 +00:00
brendan%mozilla.org
b5d8775a4b
Flag Script-object compilation so it deoptimizes fully (291213, r=shaver, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@173341 18797224-902f-48f8-a5cc-f745e15eee43
2005-05-12 19:34:13 +00:00