Commit Graph

978 Commits

Author SHA1 Message Date
jst@mozilla.org
3e5524417a Fixing bustage. 2008-03-18 14:28:43 -07:00
jst@mozilla.org
3c2ee1f987 Fixing bug 422205. Make XOW/SJOW wrappers do security checks on enumeration and interation. r+sr=mrbkap@gmail.com 2008-03-18 14:17:58 -07:00
bzbarsky@mit.edu
5383803699 Finally kill off CheckSameOriginPrincipal, fix remaining callers to do the checks they really want to be doing. Fix screw-up in nsPrincipal::Equals if one principal has a cert and the other does not. Bug 418996, r=mrbkap,dveditz, sr=jst 2008-03-18 14:14:49 -07:00
bzbarsky@mit.edu
5f774d2153 Set the right url in the script and don't allow loading non-chrome scripts. Bug 418356, r+sr=jst 2008-03-17 20:46:53 -07:00
dbaron@dbaron.org
537f2f5b13 Add knowledge of edge names to cycle collector, ifdef DEBUG_CC. b=420514 r+sr=peterv a=damons 2008-03-17 16:11:08 -07:00
crowder@fiverocks.com
2b92df76d8 Bug 422885: uninitialized memory-read in XPCWrapper::AddProperty, r/sr=mrbkap, a=:luser 2008-03-14 07:44:27 -07:00
mattwillis@gmail.com
2ac0c39bd4 Bug 422161 - Fix JS strict errors in *.jsm modules. r and rs=gavin, a1.9+=damons 2008-03-12 14:56:59 -07:00
reed@reedloden.com
39420158ed Bug 418406 - "Make network error constants accessible via Components.results" [p=trev.moz@adblockplus.org (Wladimir Palant) r=biesi sr=sicking a1.9=damons] 2008-03-11 01:14:04 -07:00
gavin@gavinsharp.com
0de56e7ca2 Back out the patch from bug 420642 because it broke gmail (bug 421571) 2008-03-10 01:28:51 -07:00
dbaron@dbaron.org
d6f406d8a8 Deal with nsXPCWrappedJS::GetClass being null, which it can be after Unlink. a=Not part of the default build (DEBUG_CC only) 2008-03-07 09:54:41 -08:00
mrbkap@gmail.com
4db8f39fc6 Allow things to happen to SJOWs if there's no code running. bug 420647, r+sr=jst 2008-03-06 12:04:05 -08:00
mrbkap@gmail.com
b18eda65b8 Remove a now-unnecessary eval hack. bug 420642, r+sr=jst a=beltzner 2008-03-06 12:01:26 -08:00
mrbkap@gmail.com
bfb69adb4e Fix mochitest depending on the old toString behavior. 2008-03-06 12:00:23 -08:00
mrbkap@gmail.com
edc3fdc8d8 Propagate getters and setters onto the inner object. bug 420585, r+sr=jst 2008-03-06 11:58:28 -08:00
mrbkap@gmail.com
a7eaea7ec0 Fix bracing mistake from bug 344494. 2008-03-04 18:45:09 -08:00
mrbkap@gmail.com
73e056c67d Always wrap content nodes in chrome with some sort of wrapper. bug 344494, r+sr=jst 2008-03-04 17:39:45 -08:00
brendan@mozilla.org
bec079b0d6 Fix over-including dependencies, and relocate ID_TO_VALUE to avoid over-including (r=mrbkap, bustage fix). 2008-03-04 15:58:10 -08:00
timeless@mozdev.org
64fa3a079b Bug 420807 xpconnect should not use fun->atom r=dbradley a=brendan 2008-03-03 19:19:17 -08:00
bent.mozilla@gmail.com
372aac713d Bug 414977 - "insufficient unlink methods in some DOM classes?". Fix for DEBUG_xpc_hacker builds. Not part of the normal build, r+sr+a=jst. 2008-03-03 17:20:55 -08:00
jruderman@hmc.edu
b63894e5d5 Add crashtest 2008-03-02 23:13:04 -08:00
jruderman@hmc.edu
29c0574170 Add crashtest 2008-03-02 22:40:11 -08:00
bent.mozilla@gmail.com
c8de939d3c Bug 414977 - "insufficient unlink methods in some DOM classes?". Allow the cycle collector to unlink XPCWrappedNatives in one cycle instead of two. r=peterv, sr=jst, a1.9b4+=schrep. 2008-02-28 18:09:10 -08:00
dougt@meer.net
256982d515 WINCE Only. Slash doesn't work in MINGW32, but - works everywhere. 2008-02-22 17:31:02 -08:00
jst@mozilla.org
532545b9dd Landing fix for bug 418377. Don't run code on invalid contextx. Patch by mrbkap@gmail.com, r+sr=jst@mozilla.org 2008-02-20 15:00:56 -08:00
bzbarsky@mit.edu
7de886172c Fix line numbering in JS components so it's not off by 1. Bug 418491, r+sr+a=brendan 2008-02-19 19:57:11 -08:00
brendan@mozilla.org
080383a8f8 Lazy ComputeGlobalThis required now in fast native implementations (417893, r=mrbkap). 2008-02-17 16:12:33 -08:00
jruderman@hmc.edu
7445015a73 Add crashtest 2008-02-15 21:29:10 -08:00
brendan@mozilla.org
dfd7f0a7b4 Optimize wrapper creation via JS_NewObjectWithGivenProto, and avoid cycle-check overhead in JS_Set{Prototype,Parent} (408871, r=mrbkap). 2008-02-13 21:10:42 -08:00
jwalden@mit.edu
247329e211 Bug 397929 - Convert GetMessage APIs to GetMessageMoz APIs, at the C++ symbol level only (vtables remain the same), to work around brain-dead, idiotic, insane Windows API macros. r=bsmedberg, a=schrep 2008-02-11 20:11:07 -08:00
jruderman@hmc.edu
e15b941bae Add crashtests 2008-02-09 02:43:15 -08:00
jst@mozilla.org
7031e5cbf6 Fixing bug 410462. Quiet down a bogus assertion. r+sr=peterv@propagandism.org, a=mtschrep@gmail.com 2008-02-08 15:15:00 -08:00
jst@mozilla.org
66c429560a Landing updated fix for bug 410223. Don't allocate links on the heap. Patch by mrbkap@gmail.com and jst@mozilla.org, r+sr=brendan@mozilla.org/mrbkap@mozilla.org 2008-02-08 15:10:06 -08:00
dbaron@dbaron.org
341458ed79 More detailed description of JS objects. b=414972 r+sr=peterv a=not part of default build (DEBUG_CC only) 2008-02-08 11:50:47 -08:00
dbaron@dbaron.org
9c5ed38724 Add comment explaining mJSRoots and ExplainLiveExpectedGarbage business. 2008-02-08 11:50:16 -08:00
peterv@propagandism.org
e40e28c8f6 Fix for bug 415037 ("success" returned uninitialized from XPCVariant::VariantDataToJS). r/sr=jst, a=schrep. 2008-02-07 03:38:13 -08:00
peterv@propagandism.org
0baafbfe92 Fix for bug 415017 ("ASSERTION: Fault in cycle collector: script pointer traversal failed"). r/sr=jst, a=beltzner. 2008-01-31 17:06:53 -08:00
reed@reedloden.com
0582342e0a Back out jimm's patch from bug 411579 due to regressions. [a1.9b3=mconnor] 2008-01-30 15:39:42 -08:00
jst@mozilla.org
a45232f25f Landing followup to the fix for bug 412491, this one somehow slipped through, just more of the same. 2008-01-29 21:55:12 -08:00
mrbkap@gmail.com
bcc1b2d3e4 Don't wrap chrome objects in SJOWs if we don't have to. bug 414296, r=jst sr=bzbarsky 2008-01-29 21:13:19 -08:00
crowder@fiverocks.com
8770eff094 Bug 331043 - Improve hash performance using _rotr intrinsic (js/src hunk), patch by Michael Moy <mmoy@yahoo.com> with updates by me and r=wtc, r=brendan, a=brendan 2008-01-29 18:36:33 -08:00
jst@mozilla.org
fa3722f2b7 Fixing bug 413774. Don't suspend/resume requests when making native calls into C++ in XPConnect, do the suspend/resume when pushing/popping JS contexts off of the context stack instead. r=shaver@mozilla.org, sr=brendan@mozilla.org 2008-01-29 18:28:58 -08:00
mrbkap@gmail.com
bf6ad82099 SJOW's equality hook returns true too much. bug 413902, r+sr=jst a=damons 2008-01-29 18:06:17 -08:00
peterv@propagandism.org
6d9909d3c6 Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron. 2008-01-29 18:05:43 -08:00
mrbkap@gmail.com
23f577e2e9 Preserve interesting attributes on same-origin XOWs. bug 393269, r+sr=jst a=beltzner 2008-01-29 16:28:30 -08:00
jst@mozilla.org
58f7d84c76 Fixing bug 414658. Make sure to not use a context from a different thread when calling functions on a wrapped JS object. r+sr=peterv@propagandism.org 2008-01-29 15:56:49 -08:00
peterv@propagandism.org
ac2b416a74 Try to fix orange 2008-01-29 13:42:05 -08:00
reed@reedloden.com
2e75103f0e Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-29 12:51:46 -08:00
peterv@propagandism.org
02be459ead Fix for bug 407034 (JS_Assert "!rt->gcRunning" unbinding link elements in cycle collector with JS protocol handlers), r/sr=dbaron. 2008-01-29 12:48:32 -08:00
jst@mozilla.org
5b693cda1d Fixing windows bustage. 2008-01-28 15:54:56 -08:00
mrbkap@gmail.com
016c02e592 Backing out to see if this is the cause for apparent random crashes. 2008-01-28 15:52:54 -08:00
jst@mozilla.org
0617bf0012 Fixing bug 413559. Make XPConnect use faster accessors for JS class/parent/private/proto. r=mrbkap@gmail.com, sr=brendan@mozilla.org 2008-01-28 15:19:51 -08:00
mrbkap@gmail.com
f1674b21d6 There might be a pushed context but no running code. bug 413200, r+sr=jst a=blocking-1.9+ 2008-01-28 15:10:30 -08:00
mrbkap@gmail.com
228f48bb7b Don't allocate links on the heap. bug 410223, r+sr=brendan a=schrep 2008-01-28 15:03:42 -08:00
jst@mozilla.org
2bc0dc4a67 Landing fix for bug 412462. Do the right thing when converting objects wrapped in XOWs. Patch by mrbkap@gmail.com, r=jst@mozilla.org, sr=brendan@mozilla.org 2008-01-25 16:36:44 -08:00
jst@mozilla.org
918fe24c0f Fixing bug 397791. Prevent document principals from ever changing, and make us not use XOWs for same origin document objects. r=jonas@sickin.cc, sr=bzbarsky@mit.edu 2008-01-25 13:49:11 -08:00
jst@mozilla.org
a396f5c5b2 Fixing bug 413569. Make XPCWrappedNative::CallMethod() initialize the nsAutoString buffer used for [out] string param handling only when needed. r+sr=jonas@sicking.cc 2008-01-23 17:17:13 -08:00
sayrer@gmail.com
0940f6e7ea Bug 411365. Shark functions. r/sr=brendan 2008-01-21 22:37:53 -08:00
mrbkap@gmail.com
c5b1743399 Use already running code's context when executing JS code from C++. bug 412598, r+sr=jst 2008-01-21 16:27:13 -08:00
jst@mozilla.org
e3b9c872ac Fixing bug 412698. Make XPConnect cache the per thread data for the main thread and use the cache when running on the main thread to save on time getting at the per thread data. r=dbradley@gmail.com, sr=brendan@mozilla.org 2008-01-20 20:51:55 -08:00
jst@mozilla.org
298532b587 Fixing bug 408301. Make more XPConnect wrappers share their JS object maps. r=peterv@propagandism.org, sr=brendan@mozilla.org 2008-01-20 13:03:52 -08:00
peterv@propagandism.org
4112c6c1b2 Part of fix for bug 412491 (function objects cloned by XPConnect still keep hidden window alive late into shutdown). r=igor, sr=jst. 2008-01-20 09:29:35 -08:00
timeless@mozdev.org
4e4cbbbb99 Bug 334195 XPCWrappedNative::HandlePossibleNameCaseError dereferences an unitialized value if !set r=dbradley sr=jst a=mtschrep 2008-01-20 03:21:36 -08:00
sayrer@gmail.com
7b20fcd464 Bug 412874. Need Shark functions in JS component global scope. r/sr=brendan 2008-01-19 18:31:10 -08:00
sayrer@gmail.com
4475a39348 Bug 411365. JS Shark renames per brendan. r/a=brendan 2008-01-19 15:33:08 -08:00
peterv@propagandism.org
63e4ecdee0 Back out remainder of patch for bug 412491 to try to fix orange. 2008-01-18 07:36:28 -08:00
peterv@propagandism.org
9926e9682e Back out to try to fix orange. 2008-01-18 05:59:07 -08:00
peterv@propagandism.org
4c040e3394 Fix for bug 412491 (function objects cloned by XPConnect still keep hidden window alive late into shutdown). r=igor, sr=jst. 2008-01-18 05:29:06 -08:00
reed@reedloden.com
2c81d2a307 Back out patch from bug 411579, as there may be a Ts perf regression. 2008-01-18 02:36:40 -08:00
reed@reedloden.com
cf0a71a1f5 Bug 412811 - "xpconnect-tools build broken" [p=armin76@gentoo.org (Raúl Porcel) r+sr=bsmedberg (NPODB)] 2008-01-18 01:09:18 -08:00
reed@reedloden.com
a6dbb66e21 Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a=blocking1.9+] 2008-01-18 01:08:09 -08:00
sayrer@gmail.com
721a421573 Bug 411365. Start and stop Shark from JS. r=crowder, sr=jst 2008-01-16 12:42:50 -08:00
bent.mozilla@gmail.com
cd9ef5755c Bug 352791 - "Permission denied to get property XULElement.ownerDocument". Patch by Blake Kaplan <mrbkap@gmail.com>. r=jst,bzbarsky. sr=brendan. a=blocking1.9. 2008-01-15 10:23:46 -08:00
benjamin@smedbergs.us
f4fc98e442 Bug 411327 - nsIXPCNativeCallContext should not inherit from nsISupports, r=mrbkap, a=schrep 2008-01-15 07:57:43 -08:00
benjamin@smedbergs.us
dfc4cee45d Bug 411327 - nsIXPCNativeCallContext should not inherit from nsISupports, r=mrbkap, a=schrep 2008-01-15 07:50:57 -08:00
jag@tty.nl
9d8ca5c0c9 Bug 406800: HP's OA crash [@js_FinalizeObject][@ RtlpDeCommitFreeBlock] when loading blade enclosure info. r/sr=peterv GC was clearing mJSVal without updating mData, so XPCTraceableVariant's destructor would get confused and call Cleanup() on mData when it shouldn't (the buffer pointed to wasn't ours to free, you see). Instead of avoiding Cleanup(), make it be harmless by nulling out the pointer to the buffer. 2008-01-13 10:21:08 -08:00
dwitte@stanford.edu
97a45f037f thoroughly whack mallocfest in nsID/nsJSID and friends. b=410250, r+sr=jst, a=blocking1.9+ 2008-01-11 20:30:42 -08:00
myk@mozilla.org
dbbcaac1ab backing out jst's fix for bug 408301 because it seems to have turned some tinderboxen red, others orange, and caused web content regressions 2008-01-11 17:56:21 -08:00
jst@mozilla.org
0619ce52c3 Re-landing fix for bug 408301 to see if it really was the cause of the orange last time it landed. Make more XPConnect wrappers share their JSObject maps. r=peterv@propagandism.org, sr=brendan@mozilla.org 2008-01-11 15:06:40 -08:00
dbaron@dbaron.org
79f94348dc Unset and reset the JS context global objects when doing ExplainLiveExpectedGarbage, just like when doing normal cycle collection. b=410116 r+sr=peterv Not part of default build (DEBUG_CC-only). 2008-01-11 14:24:33 -08:00
benjamin@smedbergs.us
d4e1973996 Bug 411531 - Assertion failure !rt->gcRunning because I accidentally turned off deffered-release of wrapped natives during GC, r+sr=peterv 2008-01-11 06:52:45 -08:00
dwitte@stanford.edu
66d4df40f5 backing out the rest. 2008-01-11 02:56:35 -08:00
dwitte@stanford.edu
9d626da131 partial backout in an attempt to fix orange. 2008-01-11 02:08:58 -08:00
dwitte@stanford.edu
8a6c4d235f relanding bug 410250. 2008-01-11 01:13:04 -08:00
dwitte@stanford.edu
d2b6f4f5ed backing out to fix orange. 2008-01-10 20:59:44 -08:00
dwitte@stanford.edu
1798542e9f thoroughly whack mallocfest in nsID/nsJSID and friends. b=410250, r+sr=jst, a=blocking1.9+ 2008-01-10 19:56:00 -08:00
igor@mir2.org
7bc03fee82 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst 2008-01-10 07:39:02 -08:00
peterv@propagandism.org
bd933a00a4 Fix for bug 402966 (JS_Assert "!rt->gcRunning"). r/sr=dbaron. 2008-01-10 06:10:03 -08:00
igor@mir2.org
1a974d67e5 Bug 409109: backing the checking as the tree was closed. 2008-01-09 07:31:13 -08:00
igor@mir2.org
f8145c5e61 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. r=brendan,jst 2008-01-09 07:20:39 -08:00
roc+@cs.cmu.edu
2726b61178 Backing out 408301 to see if it fixes winxp01 orange 2008-01-08 19:21:35 -08:00
jst@mozilla.org
34718748bd Fixing bug 408301. Make more XPConnect wrappers share their JSObject maps. r=peterv@propagandism.org, sr=brendan@mozilla.org 2008-01-08 15:38:24 -08:00
igor@mir2.org
7cb5b01011 Bug 409109: Backing out once again to figure out the reason for talos regressions. 2008-01-05 17:20:16 -08:00
igor@mir2.org
9bb5aae331 Bug 409109: using the new operation counting JS API for monitoring long-running scripts. a,r=brendan 2008-01-05 03:25:49 -08:00
jruderman@hmc.edu
acec28b307 Add moving-between-frames crashtest 2008-01-04 22:54:28 -08:00
mrbkap@gmail.com
4dfe6493da Add a way to find all of the XOWs for an object and use it to deal with hard cases where we have to clear the scope of XOWs in order to reflect changes to the underlying object. Also deal with objects moving between scopes by ensuring that we're always able to find their XOWs. bug 399587, r+sr=jst r=brendan for some last-minute changes added in this version. 2008-01-04 20:45:16 -08:00
mrbkap@gmail.com
3706fb3053 Do not allow scripted getters or setters on XPCNativeWrappers. bug 387390, r=jst sr=brendan 2008-01-04 17:37:48 -08:00
mrbkap@gmail.com
e458b8b61d Use the currently active scope to find the prototype. bug 408639, r=jst sr=brendan 2008-01-04 17:25:35 -08:00
jst@mozilla.org
41ea116da8 Fixing bug 410851. Expose a faster way of getting the subject principal, and use that from performance critical code. r+sr=mrbkap@gmail.com 2008-01-04 15:59:12 -08:00
jruderman@hmc.edu
0368dbc3d2 The last backout introduced some mochitest orange. Let's see whether backing out bug 393267 as well fixes that. 2008-01-03 21:13:59 -08:00
jruderman@hmc.edu
8a25f3a779 Backing out mrbkap's fix for bug 399587, in the hope of fixing bug 410323 and perhaps bug 410291. 2008-01-03 20:12:48 -08:00
gavin@gavinsharp.com
15be910811 Back out patch for bug 409109 because its suspected of causing the fxdbug-win32-tb orange 2008-01-03 15:03:19 -08:00
igor@mir2.org
1240c7eabe Bug 409109: switching to new operation counting API. r=jst a=beltzner 2008-01-03 07:27:28 -08:00
benjamin@smedbergs.us
f75d637c57 Bug 409433 - XPConnect should never allow GC off the main thread, r=mrbkap sr=jst a=luser 2007-12-31 10:17:35 -08:00
mrbkap@gmail.com
3467b91cc2 Fix silly think-o from bug 410090, r=lumpy 2007-12-30 12:37:49 -08:00
mrbkap@gmail.com
a3cb3e9386 Preserve interesting attributes on same-origin XOWs. bug 393267, r+sr=jst a=beltzner 2007-12-29 20:36:37 -08:00
mrbkap@gmail.com
67bcba4a97 Add a way to find all of the XOWs for an object and use it to deal with hard cases where we have to clear the scope of XOWs in order to reflect changes to the underlying object. Also deal with objects moving between scopes by ensuring that we're always able to find their XOWs. bug 399587, r+sr=jst 2007-12-29 20:34:49 -08:00
mrbkap@gmail.com
f544e27288 Make enumeration over SJOWs walk the prototype chain. Also make SJOWs unwrap same-origin XOWs. bug 410090, r+sr=jst 2007-12-29 15:40:50 -08:00
mrbkap@gmail.com
c668cc7f5c Allow chrome to use SJOWs. bug 409889, r+sr=jst 2007-12-29 15:38:36 -08:00
jruderman@hmc.edu
91424bc51f Backing out igor's fixes for bug 409109 and bug 364776 in an attempt to fix Tinderbox tgfx failures that are keeping talos red 2007-12-26 11:19:17 -08:00
igor@mir2.org
20fdb17cc6 Bug 409109: using operation counting API instead of the branch callback. r,sr=jst 2007-12-25 02:46:50 -08:00
mrbkap@gmail.com
0af959a35c Do not propagate our toString function onto the wrapped objects. bug 390949, r+sr=jst 2007-12-24 12:17:16 -08:00
mrbkap@gmail.com
d6945425b5 Add mochitests for bug 409298 and bug 403005 r=bzbarsky 2007-12-24 11:28:21 -08:00
jruderman@hmc.edu
ca2676f2b9 Add crashtest 2007-12-23 17:25:00 -08:00
jruderman@hmc.edu
eb3288308b Add crashtest 2007-12-23 16:45:48 -08:00
jwalden@mit.edu
a906fd95ab Kick the stupid Windows tinderbox. 2007-12-22 08:36:21 -08:00
mrbkap@gmail.com
f1c34acb2b Don't resolve things on SJOW's prototype and make toString on it work again. bug 409298, r+sr=jst a=beltzner 2007-12-21 11:05:05 -08:00
mrbkap@gmail.com
7c7e1261bf Give the JS engine some knowledge of wrappers so that they can compare equal and be noticed when they take part in __proto__ cycles; this was supposed to land before. bug 397855, r=brendan sr=dveditz 2007-12-21 01:10:59 -08:00
mrbkap@gmail.com
e718c42249 Fix this test to deal with the new error that's being thrown. 2007-12-20 15:46:08 -08:00
mrbkap@gmail.com
ace379fdfe Give the JS engine some knowledge of wrappers so that they can compare equal and be noticed when they take part in __proto__ cycles. bug 397855, r=brendan sr=dveditz 2007-12-20 14:59:44 -08:00
mrbkap@gmail.com
fb11cb8ad9 Use two flags for filenames: "system" and "want native wrappers". bug 408859, r=jst sr+a=brendan 2007-12-19 19:11:02 -08:00
mrbkap@gmail.com
62ccffd6aa Sync XPCSafeJSObjectWrapper with similar fixes that we took for XPCNativeWrapper. bug 399299, r+sr=jst 2007-12-18 15:33:14 -08:00
mrbkap@gmail.com
972347941c Make |foo instanceof XOW| work as expected. bug 396849, r+sr=jst 2007-12-18 13:06:44 -08:00
mrbkap@gmail.com
a4484eddc8 Work around weird behavior from JS_NewObject when we pass it a parent. bug 407289, r=jst sr=brendan 2007-12-18 11:40:46 -08:00
jst@mozilla.org
4cba3701b2 Fixing orange. 2007-12-17 17:57:19 -08:00
jst@mozilla.org
72e01bc642 Fixing bustage. 2007-12-17 16:49:21 -08:00
jst@mozilla.org
e00cf25458 Fixing bug 408139. Make XPConnect string argument handling code use stack space for string wrappers rather than to heap allocate them for each string argument. r+sr=bzbarsky@mit.edu 2007-12-17 16:39:28 -08:00
jst@mozilla.org
2a57cdbdb4 Fixing bug 408143. Make the JSObject for XPConnect wrappers that have classinfo share maps with their prototypes. r+sr+a=brendan@mozilla.org 2007-12-13 17:39:28 -08:00
jst@mozilla.org
17c85fe694 Fixing bug 408009. Make doGetObjectPrincipal() faster. r+sr=bzbarsky@mit.edu, r+a=brendan@mozilla.org 2007-12-12 15:02:25 -08:00
pavlov@pavlov.net
1cd88420f7 bug 407824. XPCJSContextStack::Push doesn't need to allocate as much as it does. use an nsAutoTArray<> instead. r/sr=jst 2007-12-11 00:40:57 -08:00
reed@reedloden.com
33158fbeeb Bug 407815 - Speed up GetSecurityManager() in our XOW code [p=jst@mozilla.org (Johnny Stenback [jst]) r+sr=sicking a=blocking1.9+] 2007-12-11 00:27:41 -08:00
reed@reedloden.com
12e0fa1a55 Bug 407819 - Speed up GetScopeOfObject() [p=jst@mozilla.org (Johnny Stenback [jst]) r+sr=sicking a=blocking1.9+] 2007-12-11 00:24:17 -08:00
sayrer@gmail.com
5cd33817cc backout bug 407815 due to test failures 2007-12-10 21:11:30 -08:00
reed@reedloden.com
f09f67bea1 Back out jst's patch from bug 407819 to see if it fixes qm-centos5-01's mochitest failures. 2007-12-10 19:48:02 -08:00
jst@mozilla.org
e1ffacc0eb Fixing bug 407819. Speed up GetScopeOfObject(). r+sr=jonas@sicking.cc 2007-12-10 18:00:40 -08:00
jst@mozilla.org
c0792b2946 Fixing bug 407819. Speed up GetScopeOfObject(). r+sr=jonas@sicking.cc 2007-12-10 17:42:19 -08:00
jst@mozilla.org
6306fba65f Fixing bug 407815. Speed up GetSecurityManager() in our XOW code. r+sr=jonas@sicking.cc 2007-12-10 17:21:37 -08:00
mrbkap@gmail.com
33c1a8132b Backing this out to fix mochitest failures. 2007-12-04 16:52:02 -08:00
mrbkap@gmail.com
85a5d646af Preserve more important attributes. bug 393269, r+sr=jst a=beltzner 2007-12-04 16:17:06 -08:00
mrbkap@gmail.com
1eab27a903 Complete the checkin for bug 399298. r+sr=jst 2007-12-04 16:13:49 -08:00
mrbkap@gmail.com
58b7f4efda Set XOWs' prototypes to null to avoid confusion. bug 405726, r+sr=jst a=beltzner 2007-12-04 11:07:08 -08:00
jag@tty.nl
aa639ffd66 Bug 382034: support optional arguments in idl; follow-up patch to address reading absent optional arguments from argv. r=enndeakin, sr=jst, a=mtschrep 2007-12-02 20:20:13 -08:00
reed@reedloden.com
58880b2278 Bug 398579 - "Allow using chrome:// URLs in Components.utils.import()" [p=ajvincent@gmail.com (Alex Vincent) r=sayrer sr=bsmedberg a1.9=damons] 2007-11-30 22:45:04 -08:00
reed@reedloden.com
3c4ac4c8f4 Back out WeirdAl's patch from bug 398579 to see if it caused the perf regression on Linux. 2007-11-30 17:23:10 -08:00
reed@reedloden.com
892f2e7f36 Bug 398579 - "Allow using chrome:// URLs in Components.utils.import()" [p=ajvincent@gmail.com (Alex Vincent) r=sayrer sr=bsmedberg a1.9=damons] 2007-11-30 12:03:37 -08:00
mrbkap@gmail.com
81e35c902c Make XOW's toString consistent over all cases. bug 398109, r=jst sr=bzbarsky a=beltzner 2007-11-27 17:09:31 -08:00
mrbkap@gmail.com
9faca3d85d Don't use a prototype to do any work, just do it ourselves. bug 399298, r=jst sr=brendan a=blocking-1.9 2007-11-27 17:03:41 -08:00
mrbkap@gmail.com
b00023d855 Actually throw if the thrown thing was not an nsresult. bug 401735, r+sr+a=jst 2007-11-27 16:49:08 -08:00
jst@mozilla.org
a668c9bc61 Landing fix for bug 393267. Fixing problem with setting __proto__ on objects with XOW's on its prototype chain. Patch by mrbkap@gmail.com, r=jst@mozilla.org, sr=brendan@mozilla.org 2007-11-27 15:45:20 -08:00
peterv@propagandism.org
9989fb489f Fix for bug 375808 (Replacing GCX_PRIVATE by GCX_FUNCTION). r=igor, sr=jst, a=schrep. 2007-11-18 06:10:28 -08:00
reed@reedloden.com
4c5746dc93 relanding bug 400687 since it doesn't look to be the source of the Ts regression 2007-11-14 20:16:35 -08:00
gavin@gavinsharp.com
939757e2f4 Back out the patch for bug 400687 to see whether it caused the Ts regression, a=sicking 2007-11-14 16:17:28 -08:00
igor@mir2.org
0f544e4c18 Bug 396487: objects can be marked as system only during creation. r,a=brendan 2007-11-13 16:50:17 -08:00
igor@mir2.org
ca808e133e Bug 400687: removal of dependency of xpconnect on internal JS GC thing types. r,a=brendan 2007-11-13 13:23:07 -08:00
reed@reedloden.com
6af24f946e Bug 398177 - "ISO 8601 dates helper" [p=erwan@flock.com (Erwan Loisant) r=sayrer sr=mscott a1.9=damons] 2007-11-13 00:12:56 -08:00
peterv@propagandism.org
db82918acf Fix for bug 402535 (Cycle collection crashes with Leak Monitor extension installed). Pending-r=sicking, sr=jst, a=dsicore. 2007-11-05 11:43:08 -08:00
peterv@propagandism.org
93565d5348 Fix for bug 402379 (Crash with Venkman profiling [@ JS_IsSystemObject]). r=igor, pending-sr=jst. 2007-11-05 01:12:16 -08:00
jonas@sicking.cc
6c25f1dfd7 Bug 404402: Don't remove an XPCTraceableVariant from root set in dtor if it has already been done during unlinking. Patch by peterv. r/sr=sicking 2007-11-04 18:07:09 -08:00
peterv@propagandism.org
03c2ddbbf8 Fix crash from patch for bug 401687 (Stop refcounting JS objects in the cycle collector). r/sr=jst, a=dsicore@mozilla.com. 2007-11-02 08:48:00 -07:00
jst@mozilla.org
b82c1c86f3 Fixing solaris bustage from bug 401687. r+sr=jonas@sicking.cc 2007-11-01 18:09:53 -07:00
jst@mozilla.org
858f753261 Landing patch for bug 401687. Stop reference counting JS objects in the cycle collector. Patch by peterv@propagandism.org, r+sr=dbaron@mozilla.com,igor@mir2.org, a=dsicore@mozilla.com 2007-11-01 15:51:57 -07: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
jonas@sicking.cc
903acf3ee6 bug 394390: Don't report bogus warnings to the error console when using cross-site xmlhttprequest. Patch by Surya Ismail <suryaismail@gmail.com>, r/sr=sicking 2007-10-26 18:46:09 -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
reed@reedloden.com
8d268b59fb Bug 393627 - "JS XPCOM component exception handled by native code shows up in error console" (don't report nsresult exceptions thrown from JS) [p=mrbkap r+sr=jst aM9=beltzner] 2007-10-24 22:59:37 -07:00
bent.mozilla@gmail.com
fca40ef963 Oops, removing windows line endings I accidentally checked in when fixing bug 399094. 2007-10-09 13:18:44 -07:00
bent.mozilla@gmail.com
dcf0aa1c00 Bug 399094 - "Wrappers don't deal with non-native objects". Patch by Blake Kaplan <mrbkap@gmail.com>, r+sr+a=jst. 2007-10-08 23:16:55 -07:00
mrbkap@gmail.com
ec86169c52 Don't call setters if there is no setter to call. bug 398040, r=brendan sr=jst a=blocking1.9+ 2007-10-06 10:14:34 -07:00
mrbkap@gmail.com
3b183e4e87 Implement an iterator hook for cross origin wrappers to avoid wrongly walking up the prototype chain during enumeration. bug 390947, r+a=brendan sr=jst 2007-09-30 17:31:22 -07:00
reed@reedloden.com
c4a5cce285 Bug 397536 - "performance improvements for JSON.jsm" (optimize string serialization) [p=zeniko@gmail.com (Simon Bünzli) r=sspitzer sr=brendan a1.9=mconnor] 2007-09-27 09:50:29 -07:00
bent.mozilla@gmail.com
d621642b2b Bug 397311 - Need a JSAutoRequest in xpcJSWeakReference::Init. r=brendan, sr+a=jst. 2007-09-23 23:09:56 -07:00
mrbkap@gmail.com
40d1182d3f Fix obsolete test and add a new test to fix orange. 2007-09-22 14:42:36 -07:00
mrbkap@gmail.com
e2aef6cdbe Only allow XOW wrapped prototypes to go to null, not other objects. bug 394815, r+sr+a=brendan 2007-09-22 14:12:32 -07:00
mrbkap@gmail.com
dbdd20c732 Fix Convert to work for JSTYPE_VOID and make sure it reports an error. bug 394436, r=jst sr=brendan 2007-09-22 14:09:51 -07:00
sayrer@gmail.com
a7d449ed50 Bug 396651. Fix JS Request assert in nsXPCComponents_Utils::LookupMethod. r/sr/a=brendan 2007-09-19 13:47:38 -07:00
sayrer@gmail.com
8bcd5fb9f2 Bug 396452. Enforce SpiderMonkey request model with assertions. r=mrbkap, sr/a=brendan 2007-09-18 17:26:39 -07:00
mattwillis@gmail.com
cd1237608a bug 396119 - Fix minor errors in XPCOMUtils.jsm. Patch by Manish Singh <manish@flock.com>, r1=gavin, r2=sayrer 2007-09-18 15:11:31 -07:00
igor@mir2.org
cc6784b030 Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-18 00:34:54 -07:00
brendan@mozilla.org
19b6fcc0f0 Back-out due to test failure. 2007-09-17 18:22:20 -07:00
brendan@mozilla.org
2260fcfe2e Make GCF_SYSTEM immutable per object (396487, r=igor). 2007-09-17 17:47:42 -07:00
igor@mir2.org
aacdc13f0f Bug 394551: taking out the last patch as broke Windows build. 2007-09-17 12:28:14 -07:00
igor@mir2.org
065a93dd1c Bug 394551: no JS frames for fast native calls. r=brendan 2007-09-17 12:08:46 -07:00
reed@reedloden.com
b121ae0350 Backing out patch by Mook from bug 390328 due to compile errors. 2007-09-15 11:15:01 -07:00
reed@reedloden.com
3f0587a64a Bug 390328 - "Let nsIXPConnect::debugDumpJSStack take a file" [p=Mook r=bsmedberg sr=bzbarsky a1.9=jst] 2007-09-15 11:03:33 -07:00
sayrer@gmail.com
4f76121753 Bug 395849. XPCVariant::VariantDataToJS leaks strings with sizes. r/sr=jst 2007-09-14 15:48:47 -07:00
benjamin@smedbergs.us
66d4e82f55 Bug 395444 - Fast-path QueryInterface in XPCWrappedNative::CallMethod, r=mrbkap sr=jst a=damons 2007-09-10 11:16:05 -07:00
gavin@gavinsharp.com
b239b12db5 Back out patch for bug 395256 because it caused bug 395467 (a=schrep/bsmedberg) 2007-09-07 18:43:13 -07:00
benjamin@smedbergs.us
a79f1f491e Bug 395256 - Make nsJSID/IID/CID objects .equals method slightly faster, r=mrbkap sr=jst a=damons 2007-09-07 11:06:15 -07:00
jag@tty.nl
d535057a5e Bug 271824: do_GetFastLoadService should use nsGetServiceByCID. r=/sr=/a=bsmedberg 2007-09-05 02:13:57 -07:00
jwalden@mit.edu
f57320c98b Bug 348748 - Cleanup from the handful of patches which have landed since the initial landing that have readded cast macros; I intend to remove the rest of the instances Very Soon, all but certainly before the M8 freeze, so the macro definitions can be removed, again all but certainly before the M8 freeze, if people are okay with them being removed. Still r=bsmedberg, a=no-functionality-change 2007-09-04 23:41:35 -07:00
bent.mozilla@gmail.com
fd28607fdf Bug 304048 - Backing out patch due to TXUL regression. 2007-08-30 17:52:58 -07:00
bent.mozilla@gmail.com
dea35a2d77 Bug 304048 - "xpconnect getters/setters don't have principals until after they pass or fail their security check." Patch by jst, sr=bzbarsky, a=jst. 2007-08-28 17:16:21 -07:00
rflint@ryanflint.com
c3a749a333 Bug 386536 - Add category manager helpers to XPCOMUtils. Patch by Nickolay Ponomarev <asqueella@gmail.com>, r=sayrer/mark.finkle a=jst 2007-08-23 17:21:10 -07:00
dbaron@dbaron.org
1a55872e93 When doing ExplainLiveExpectedGarbage, suspect all nsXPCWrappedJS so that we get more objects in the graph. b=387224 r=graydon a=brendan 2007-08-22 17:47:24 -07:00
dbaron@dbaron.org
456ce4796e Make ExplainLiveExpectedGarbage print *all* references to JS objects with refcount imbalances. b=387224 r=graydon a=brendan 2007-08-22 17:46:43 -07:00
gavin@gavinsharp.com
c17bc2363b Bug 393206: fix JSON tests, patch by Simon Bünzli <zeniko@gmail.com>, r=me 2007-08-22 11:16:01 -07:00
gavin@gavinsharp.com
6572f6cf4b disable failing tests for the moment (bug 393206) 2007-08-22 08:34:15 -07:00
gavin@gavinsharp.com
0b758ec54e Bug 386789: create JSON utilities module and use it for search suggest/sessionstore/Places, patch by Simon Bünzli <zeniko@gmail.com>, r=sspitzer, sr+a=brendan 2007-08-22 07:47:56 -07:00
mrbkap@gmail.com
86520181f1 Get the right property attributes and actually look up the prototype chain. bug 390948, r+sr+a=jst 2007-08-16 13:32:27 -07:00
mrbkap@gmail.com
776963dff3 Allow 'this' to not be a wrapped object. bug 390560, r+sr+a=jst 2007-08-15 14:20:45 -07:00
mrbkap@gmail.com
1f8de346fe Make XPCSafeJSObjectWrapper usage in PAC actually work correctly for the common case. bug 391515, r=jst sr+a=brendan 2007-08-15 14:16:52 -07:00
mrbkap@gmail.com
193df57c3c Don't assume that all XOWs are equal. bug 391497, r+sr=jst 2007-08-15 14:13:49 -07:00
mrbkap@gmail.com
ca45b33a3e Don't wrap everything that comes out of a wrapped function, if that function is same-origin. bug 390946, r+sr+a=jst 2007-08-15 14:09:27 -07:00
igor@mir2.org
14e3457a58 Bug 386265: using double kashing for atoms. r=brendan 2007-08-11 13:25:16 -07:00
dbaron@dbaron.org
3d937ce26b Fix leak in DEBUG-only code. b=391769 r+sr+a=jst 2007-08-10 17:53:53 -07:00
jst@mozilla.org
64193de21c Fixing bug 390275. Make setTimeout() always register the timeout on the right inner window, and add a new JS_GetGlobalForObject() JS API to eliminate some code duplication. r=mrbkap@gmail.com/brendan@mozilla.org, sr=bzbarsky@mit.edu 2007-08-09 15:19:59 -07:00
mrbkap@gmail.com
e255840140 Add a mochitest for __parent__ wrapping. 2007-08-07 19:18:05 -07:00
mrbkap@gmail.com
0292761798 Add a mochitest for bug 390001. r=sayrer sr=bzbarsky 2007-08-07 19:12:31 -07:00
mrbkap@gmail.com
b1458c56ab De-confuse GetWrappedNativeOfJSObject about wrappers around the outer object. bug 391055, r+sr=jst 2007-08-07 18:54:48 -07:00
mrbkap@gmail.com
0197403515 Allow UniversalXPConnect scripts to touch XPCNativeWrappers. bug 390788, r+sr=bzbarsky a=jst 2007-08-07 18:51:43 -07:00
mrbkap@gmail.com
10a72405d4 Make XPCSafeJSObjectWrapper easier to use by not throwing for primitive values passed to the constructor. Use it in more places in PAC. bug 388450, r=crowder sr=brendan a=bzbarsky 2007-08-07 18:49:49 -07:00
sayrer@gmail.com
304d723cfe Bug 390958. XPCWrappedNativeScope leaks a WrappedNative2WrapperMap. r=brendan/mrbkap, sr=brendan, a=jst 2007-08-06 20:57:15 -07:00
bzbarsky@mit.edu
0ae3ce0662 Don't set aside the JS stack when pushing a JSContext which is already on top of the JSContext stack on top of itself. Bug 390488, r=jst, sr=brendan, a=jst 2007-08-06 19:05:24 -07:00
benjamin@smedbergs.us
0e047142a4 Bug 386025 - Expose cycle-collection symbols, r=graydon 2007-08-06 07:34:02 -07:00
dbaron@dbaron.org
b8ec995348 Fix leak of JSScript when a JSFunction is collected in a later GC than its function object. This changes GCX_PRIVATE to GCX_FUNCTION, and is essentially the same as the finalization part of the changes from bug 375808 (by igor). b=389757 r=igor a1.9=brendan 2007-08-04 00:00:43 -07:00
martijn.martijn@gmail.com
8ff4e4f1a5 Bug 390042 - mingw build error - error: no matching function for call to nsAutoString::nsAutoString(jschar*), r=mrbkap, sr=jst, a=jst 2007-08-03 03:15:36 -07:00
dbaron@dbaron.org
8f2ee90bcb Fix leak of xptiInterfaceInfo in DebugDump. b=389765 r+sr=jst a=DEBUG-only 2007-08-02 17:08:28 -07:00
mrbkap@gmail.com
9e31657307 Remove an unused variable. no bug, r=sparky sr=lumpy 2007-08-02 16:42:33 -07:00
mrbkap@gmail.com
cc9667a9a4 Detect cyclic __proto__ values ourselves because the JS engine gets confused by the wrappers. bug 390626, r=brendan sr=jst 2007-08-02 16:38:11 -07:00
brendan@mozilla.org
37164c6b8c Remove deadlock hazard when reparenting, single-threaded DOM so don't worry (390551, r+sr=jst). 2007-08-02 13:56:02 -07:00
mrbkap@gmail.com
f429921c80 Make enumeration over XOWs work. bug 390001, r=jst/brendan sr=jst 2007-08-01 15:25:47 -07:00
mrbkap@gmail.com
7713385300 Let "window.eval" work again by always wrapping eval when it comes out of a cross origin wrapper. bug 389878, r+sr=jst 2007-07-31 13:15:21 -07:00
mrbkap@gmail.com
4b4cd4b8f1 Protect vp from garbage collection, since GC could nest under several of the calls here. bug 390222, r+sr=jst 2007-07-31 12:17:31 -07:00
mrbkap@gmail.com
d20c9c9b30 Don't call FindInJSObjectScope on an object that's being finalized because its parent might have been finalized already. bug 389985, r+sr=jst 2007-07-30 15:39:53 -07:00
mrbkap@gmail.com
053410f558 Deal with XPCCallContexts that aren't able to initialize themselves. This also fixes bugs related to finalizing objects on dead contexts. bug 390083, r+sr=jst 2007-07-30 14:50:10 -07:00
mrbkap@gmail.com
2ccd5c8afc Implement cross-origin wrappers to gate accesses between sites that are cross origin. This will prevent sites from monkeying with each other by doing bad things to allAccess properties, and pave the way for more security work. bug 367911, r=jst rs=brendan 2007-07-26 12:18:06 -07:00
benjamin@smedbergs.us
2694ad77f8 Fix MSVC7 build bustage from bug 389401, a=gavin for checkin to closed tree 2007-07-26 07:09:46 -07:00
mrbkap@gmail.com
32e5403680 Don't double-wrap objects when getting them out of an XPCVariant. bug 384632, r=peterv sr=jst 2007-07-20 18:03:55 -07:00
dbaron@dbaron.org
e2de611d66 Add more useful assertion for debugging cycle collector faults. b=386912 r+sr=peterv 2007-07-18 21:58:39 -07:00
dmose@mozilla.org
b67b115f9b Fix comment to say 'createInstance' when it really means that, since this is pointed to by devmo as API documentation; no bug; rs=shaver 2007-07-18 13:19:05 -07:00
mrbkap@gmail.com
243fcf04c8 Move where we convert things into strings into a more centralized place. bug 372075, r=bzbarsky sr=jst 2007-07-17 13:12:21 -07:00
dolske@mozilla.com
6bf090c4dc Bug 388190: XPCOMUtils spews uuids when registering components. r=sayrer, sr=benjamin 2007-07-16 10:57:49 -07:00
alex@croczilla.com
1f0c5d93d4 Bug 381693 - Allow null targetObj arg to xpcIJSModuleLoader::import().
r=sayrer, src=brendan.
2007-07-15 11:21:11 -07:00
asqueella@gmail.com
25882be3be synchronize documentation, Sylvain Pasche <sylvain.pasche@gmail.com>
r=sayrer, bug 380970
2007-07-14 14:43:35 -07:00
jwalden@mit.edu
af5688aa77 Back out bug 386635; it broke restoring sessions in the browser. 2007-07-12 12:11:45 -07:00
jwalden@mit.edu
8f1a184c3f Back out bug 387390; it causes the marquee binding to throw security exceptions. 2007-07-11 20:14:27 -07:00
mrbkap@gmail.com
ab6b85e4fa Don't trust the filename of cloned functions. bug 387390, r=jst sr=brendan 2007-07-11 18:27:03 -07:00
mrbkap@gmail.com
fcde0538ee Always return XPCSafeJSObjectWrappers from Components.utils.Sandbox and evalInSandbox. This makes this interface much, much easier to use safely, as the wrapper takes care of several common problems that occur when touching regular JS objects directly. bug 386635, r=jst sr=brendan 2007-07-11 15:52:28 -07:00
neil@parkwaycc.co.uk
11ed13d71f Followup to bug 348748 to fix the alignment of trailing backslashes in macros
[xxx_cast<foo*>(bar) is three characters shorter than NS_XXX_CAST(foo*, bar)]
2007-07-11 01:46:44 -07:00
bzbarsky@mit.edu
a91172fdd2 Clean up the XDR properly even if JS_XDRScript fails. In particular, don't
double-free things.  Bug 387572, r+sr=brendan
2007-07-10 20:10:43 -07:00
bzbarsky@mit.edu
8a55f7964d Relanding bug 326777, r=bsmedberg, sr=jst 2007-07-10 17:57:17 -07:00
mrbkap@gmail.com
bb96ca4a6a Create exceptions with the right parent. bug 387390, r=jst sr=brendan 2007-07-10 17:37:03 -07:00
mrbkap@gmail.com
c71d4d7cd9 Avoid asserting for user-controlled thing (through __proto__ setting). bug 387182, r+sr=jst 2007-07-10 17:27:57 -07:00
bzbarsky@mit.edu
b684e745b0 Backing out to fix red 2007-07-09 21:07:45 -07:00
bzbarsky@mit.edu
e57cc08535 Make sure that we push a null JSContext on the current thread's XPConnect stack
before processing events.  Bug 326777, r=bsmedberg, sr=jst
2007-07-09 20:48:06 -07:00
mrbkap@gmail.com
623c0f85b7 Attempt to fix leaks. 2007-07-09 17:24:16 -07:00
mrbkap@gmail.com
9142f922fa Back out this change to hopefully fix the rest of the regressions test failures (from bug 386695). 2007-07-09 16:34:58 -07:00
mrbkap@gmail.com
9f3554437c Associate XPCWrappedNativeScopes with XPCContexts, like the DOM does with windows and contexts, so that we can push a context that's allowed to actually call XPCWrappedJS functions. bug 352791, r=jst sr=brendan 2007-07-09 14:51:57 -07:00
mrbkap@gmail.com
980c3bec0a Don't create exceptions using the global object as the parent, since that's bogus, use the scope chain instead. bug 386695, r+sr=jst 2007-07-09 14:46:18 -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
dbaron@dbaron.org
85bc16700d Fix bogus trace names. b=387223 r=brendan 2007-07-07 00:30:58 -07:00
mrbkap@gmail.com
978a357c6f Allow chrome files to touch implicit XPCNativeWrappers. bug 387084, r+sr=jst 2007-07-06 17:52:44 -07:00
jwatt@jwatt.org
b661213963 Fixing bug 317304. Implement weak references for JavaScript. Patch by Alex Fritze <alex@croczilla.com>. r+sr=shaver@mozilla.org 2007-07-06 13:13:12 -07:00
mrbkap@gmail.com
774b9ea95f Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:13:43 -07:00
mrbkap@gmail.com
a3f0810cc1 Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-05 13:01:12 -07:00
dbaron@dbaron.org
b55a2cb262 Put comment in the right place. b=180380 2007-07-03 14:31:02 -07:00
mrbkap@gmail.com
1605bc2452 Backing out these changes to fix tinderbox orange. 2007-07-02 18:12:41 -07:00
mrbkap@gmail.com
ba27e0932a Ensure that accesses to implicit XPCNativeWrappers are actually legal. bug 384750, r+sr=jst 2007-07-02 16:39:41 -07:00
sayrer@gmail.com
523df9c569 Bug 180380. nsXPCComponents object and its wrapper leaked at shutdown. Patch by David Baron, David Bradley, and Robert Sayre. r=jst/bzbarsky, sr=dbaron 2007-06-30 16:00:09 -07:00
dbaron@dbaron.org
ab765e1d21 Suspect all native wrappers during cycle collection (last part, rest already done by Graydon). b=368869 r=graydon sr=jst 2007-06-29 20:03:30 -07:00
dbaron@dbaron.org
1f58020b96 Make wrapped native debug dump log the native that is wrapped. b=385549 r+sr=jst 2007-06-29 20:02:15 -07:00
jst@mozilla.org
92a4c5b092 Fixing bug 380474. Use the inner object when looking up methods and adding event listeners. r=mrbkap@mozilla.org, sr=brendan@mozilla.org 2007-06-27 17:28:02 -07:00
enndeakin@sympatico.ca
d165145397 Bug 382034, support optional args in idl, try again with fix for crash calling toString, r+sr=shaver 2007-06-25 07:23:26 -07:00
enndeakin@sympatico.ca
2364c01e63 Bug 382034, back out due to test content/base/test/test_bug352728.html failing 2007-06-22 08:21:13 -07:00
enndeakin@sympatico.ca
23b79c6763 Bug 382034, support optional arguments in idl, r+sr=shaver 2007-06-22 07:22:20 -07:00
dbaron@dbaron.org
4f57c6e110 Back out again. 2007-06-21 20:11:41 -07:00
dbaron@dbaron.org
3416985295 Bug 368869, suspect all native wrappers for cycle collection. Relanding. Patch by graydon@mozilla.com. r=brendan, sr=jst 2007-06-21 15:25:51 -07:00
sayrer@gmail.com
8e7abbc126 Bug 381651. Tweak XPCOMUtils. Patch by Nickolay_Ponomarev <asqueella@gmail.com>. r=sayrer, sr=bsmedberg 2007-06-20 21:53:35 -07:00
mrbkap@gmail.com
5154e96e3e Implement a full nsIScriptSecurityManager in xpcshell. bug 239969, r+sr=jst 2007-06-20 17:10:48 -07:00
sayrer@gmail.com
7dae407d8c Bug 384168. C.u.import doesn't prevent recursion in the presence of circular dependencies. r=brendan, sr=bsmedberg 2007-06-19 23:29:49 -07:00
gavin@gavinsharp.com
72a9b9d6c0 Back out previous patch for bug 239969 (bustage, and tree is closed) 2007-06-19 19:30:54 -07:00
mrbkap@gmail.com
ed3cb9fd25 Implement an nsIScriptSecurityManager for the xpcshell. bug 239969, r+sr=jst 2007-06-19 19:13:22 -07:00
jwatt@jwatt.org
bc9300967d Fixing bug 383917. The new Components.utils.import code shouldn't spam the console. r=sayrer@gmail.com, sr=brendan@mozilla.com 2007-06-18 08:36:16 -07:00
mrbkap@gmail.com
56aed6adf0 Restrict who can claim to implement nsISecurityCheckedComponent. bug 352882, r=jst sr=bzbarsky 2007-06-15 14:44:51 -07:00
igor@mir2.org
bc0a21a243 Bug 378793: Patch from Mike Moening and me to implement per-context debug hooks. r=brendan 2007-06-14 23:44:18 -07:00
mrbkap@gmail.com
781e986b4b Allow C.u.Sandbox to take a principal or an nsIScriptObjectPrincipal. bug 353732, r+sr=jst 2007-06-14 16:50:28 -07:00
graydon@mozilla.com
ebd1fa3764 Amazingly, backing out 368869 again. 2007-06-14 13:40:17 -07:00
graydon@mozilla.com
7e6c0bf09e Bug 368869, suspect all native wrappers for cycle collection. Nth attempt, slightly safer.r=brendan, sr=jst 2007-06-14 12:42:58 -07:00
bzbarsky@mit.edu
33a8653e15 Change the URI argument to Components.utils.import to be a resource: URI. Bug380970, patch by Alex Vincent <ajvincent@gmail.com>, r=sayrer, sr=bsmedberg 2007-06-10 14:13:18 -07:00
graydon@mozilla.com
65eb1c1bf4 Backing out patch in bug 368869, again. Still randomly crashing (as in bug 383763). 2007-06-08 12:08:26 -07:00
gavin@gavinsharp.com
218738d375 Bug 381031: make JS1.8 the default for <xul:script>, and add a JSVERSION_LATEST #define to simplify future changes, patch by Nickolay Ponomarev <asqueella@gmail.com>, r+sr=brendan 2007-06-07 15:50:12 -07:00
asqueella@gmail.com
7cbb96fa68 Bug 381499 - Components.utils.import reports NS_ERROR_FAILURE when the file not existsswitch to NS_ERROR_FILE_NOT_FOUND and update testsr=sayrer, sr=brendan 2007-06-07 15:34:06 -07:00
graydon@mozilla.com
ad2d5719f0 Bug #368869, suspect all native wrappers as cycle roots (yet again, after Igor's change to js gc).r=brendan, sr=jst 2007-06-05 16:50:22 -07:00
mattwillis@gmail.com
6f6f76486f bug 382744 - Correct backwards assertion check in XPCNativeScriptableInfo. Patch by Manish Singh <manish@flock.com>, r=dbaron, sr=shaver 2007-06-05 08:59:44 -07:00
mrbkap@gmail.com
93e990bf21 Remove indirect eval. bug 382509, r=brendan 2007-06-04 16:03:03 -07:00
mrbkap@gmail.com
0f3c9fea93 Create XPCNativeWrapper function wrappers with the right parent. bug 370127, r=bzbarsky sr=brendan 2007-06-04 14:43:57 -07:00
peterv@propagandism.org
0aec607ac4 Fix for bug 382133 ("(function(){}).apply.ee = <foo/>;" causes shutdown crash [@ nsXPConnect::Unlink] during nsCycleCollector::CollectWhite). r/sr=jst. 2007-06-04 03:01:34 -07:00
igor@mir2.org
7d41735dbf Bug 379220: replacing JS_AddRoot calls via doubly-linked lists. r=jst sr=brendan 2007-06-02 08:11:52 -07:00
mvl@exedo.nl
21821eaf0b bug 382237: make xpctools profiler work, and make it record time spend in the function itself. r=shaver 2007-05-28 08:00:50 -07:00
neil@parkwaycc.co.uk
17aa0501f7 Bug 351007 Crash @ XPCWrappedNative::CallMethod passing null to out A*String parameters r+sr=jst 2007-05-25 13:45:50 -07:00
peterv@propagandism.org
7e189d8549 Fix for bug 377884 (Switch nsXPConnect::Traverse to use tracing). r=jst/igor, sr=dbaron. 2007-05-25 01:42:08 -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
mrbkap@gmail.com
7985ba2c50 Back this out for now to sort out what happens when we're called from C++, not from Javascript. 2007-05-23 17:50:50 -07:00
mrbkap@gmail.com
2409391b2a Use the currently executing function as the nominal parent for our function so that we pull the correct prototype for our function. bug 370127, r+sr=jst 2007-05-23 17:18:00 -07:00
asqueella@gmail.com
5919a26047 bug 381369 - improve Components.utils.import-related commentsr=sayrer 2007-05-22 14:57:42 -07:00
sayrer@gmail.com
c1cab1cba0 Bug 238324. Tweak generateFactory to call new, and add unit tests for module loading. Patch by Alex Vincent <ajvincent@gmail.com>. r=sayrer, sr=bsmedberg 2007-05-20 15:45:14 -07:00
sayrer@gmail.com
90faa81713 JS code-sharing module system. Patch by Alex Fritze <alex@croczilla.com> and Robert Sayre <sayrer@gmail.com>. r=shaver/brendan, sr=brendan 2007-05-15 16:27:40 -07:00
igor@mir2.org
0b07474b6a Bug 340212: All XPC GC tracing now happens in the runtime trace callback. 2007-05-15 02:01:34 -07:00
graydon@mozilla.com
df0899706b Back out patch for bug 368869, yet again. Seems to cause some obscure crashesin nightlies. 2007-05-05 20:46:06 -07:00
bzbarsky@mit.edu
5a7814a82a When pushing on top of a JSContext on the XPConnect JSContext stack, save offthe JSStackFrame chain on that JSContext. When popping, restore the stackframe chain. Bug 371858, r=jst, sr=brendan 2007-05-04 22:55:47 -07:00
peterv@propagandism.org
5415bac556 Fix for bug 379593 (Only create one XPCCallContext per cycle collection). r=jst, sr=brendan. 2007-05-04 01:55:08 -07:00
graydon@mozilla.com
5336c6731e Bug #368869, suspect all native wrappers as cycle roots (again).r=brendan, sr=jst 2007-05-03 15:53:00 -07:00
igor@mir2.org
e5defb0763 Bug 377751: Switching JSClass.mark in XPConnect to the tracing semantics. r=jst, sr=brendan 2007-05-02 13:20:21 -07:00
igor@mir2.org
1160f3bc2d Bug 377751: removal of the commit. 2007-05-01 14:54:29 -07:00
igor@mir2.org
4626b2a66f Bug 377751: More build fixes. 2007-05-01 14:44:15 -07:00
igor@mir2.org
1b2ef20671 Bug 377751: Fixing windows compilation problem. 2007-05-01 14:33:00 -07:00
igor@mir2.org
1ce0c4d485 Bug 377751: JSClass instances in xpconnect use the tracing API. r=brendan, sr=jst 2007-05-01 14:06:07 -07:00
peterv@propagandism.org
378d89744e Part of bug 377606 (Switch cycle collector to more efficient hashtables - only keep hashtable around while collecting). r=graydon, sr=dbaron. 2007-05-01 05:51:39 -07:00
igor@mir2.org
d69de1f698 Bug 379165: Simplifing JS_DimpHeap while fixing BeOS build problems. r=brendan 2007-04-29 14:49:00 -07:00
igor@mir2.org
bd2f8f4e1f Bug 378255: DEBUG build of xpc now dumps JS heap on shutdown to a file defined by XPC_SHUTDOWN_HEAP_DUMP environment variable. r=brendan sr=jst 2007-04-26 23:12:39 -07:00
bzbarsky@mit.edu
36656a88fa Allow getting the lineNumber of XPConnect expceptions. Bug 291377, r=sicking,sr=jst. r=mrbkap, sr=jst for the test. 2007-04-26 21:19:11 -07:00
peterv@propagandism.org
f61971e016 Fix for bug 378595 (Improve cycle collection QI performance). r/sr=sicking. 2007-04-25 09:35:27 -07:00
igor@mir2.org
68d7b74a96 Bug 378261: Replacing GC_MARK_DEBUG by DumpHeap. r=brendan 2007-04-25 06:43:18 -07:00
dbaron@dbaron.org
436a51a9c7 Followup fixes to making cycle collector use more efficient hashtables: shrink size of table and fix warnings on 64-bit machines. b=377606 sr=peterv r=graydon 2007-04-23 16:34:33 -07:00
peterv@propagandism.org
fa1d45ea66 Fix for bug 372110 (Make cycle-collection debugging features optional at compile time). r=graydon, sr=jst. 2007-04-21 10:43:19 -07:00
peterv@propagandism.org
01dc49f9b9 Fix for bug 377606 (Switch cycle collector to more efficient hashtables). Patch by graydon, r=peterv, sr=dbaron. 2007-04-20 01:01:01 -07:00
jst@mozilla.org
e6a180e75b One more fix for bug 368945. Make sure to find the right this object when calling functions through a wrapper. r+sr=brendan@mozilla.org 2007-04-19 13:27:57 -07:00
peterv@propagandism.org
d114bf0dbe Fix for bug 374872 (freeze/pause after clicking on a link). Patch by sspitzer, r/sr=peterv. 2007-04-18 03:14:38 -07:00
mrbkap@gmail.com
eb8514f0f0 Protect against someone calling XPCSafeJSObjectWrapper.prototype(). bug 375164, r+sr=brendan 2007-04-10 09:04:43 -07:00
igor@mir2.org
dac58ab9ec Taking out the patches for bug 375999 and bug 375808 until the reason for ref counting leak would be clear. 2007-03-31 23:48:21 -07:00
igor@mir2.org
7ccbbd605a Bug 375808 - GCX_PRIVATE is replaced by GCX_FUNCTION. r=brendan 2007-03-29 23:23:00 -07:00
bzbarsky@mit.edu
f16f948579 Fix JS strict warning in the wrapper code. Bug 371948, r+sr=brendan 2007-03-28 13:29:00 -07:00
dbaron@dbaron.org
a7d9802f77 Remove GetKeyPointer method from nsTHashtable key types. b=374906 r=bsmedberg 2007-03-27 08:34:59 -07:00
dbaron@dbaron.org
85eb65ced4 Remove unused getKey callback from PLDHashTableOps/JSDHashTableOps. b=374906 r=bsmedberg 2007-03-27 08:33:38 -07:00
peterv@propagandism.org
a21e9fae83 Relanding part of the fix for bug 372960 (Make XPConnect traverse more JS edges). r=brendan, sr=jst. 2007-03-23 06:21:22 -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