Commit Graph

432 Commits

Author SHA1 Message Date
Ben Turner
184d478d40 Bug 447711 - "FindInJSObjectScope calls JS from within a request and a lock". r+sr=jst. 2008-08-08 13:13:41 -07:00
Blake Kaplan
3e20948873 Try to fix the orange by overriding platform-specific errors 2008-08-04 18:04:19 -07:00
Blake Kaplan
3b0135e1dd bug 448587 - Allow getting the 'prototype' property through SJOWs. r=jst sr=bzbarsky 2008-08-19 12:48:42 -07:00
Blake Kaplan
2d7e4ce617 Fix missed review comment from bug 408412 2008-08-04 16:54:16 -07:00
Blake Kaplan
0b0d6afb1e Propagate compilation errors to our caller to make syntax errors easier to debug. bug 408412, r=shaver sr=brendan 2008-08-04 10:03:34 -07:00
Ben Turner
f6a7065993 Bug 443878 - "XPConnect doesn't always suspend requests when switching contexts". r+sr=jst. 2008-08-14 12:08:49 -07:00
Blake Kaplan
f903a8ae3c Create implicit XPCNativeWrappers in fewer situations. bug 441087, r=jst sr=bzbarsky 2008-08-11 16:00:24 -07:00
Blake Kaplan
1c6155e1bf Backed out changeset 90020c4ad446 to fix tinderbox orange while I figure out why a test was failing. 2008-08-04 11:12:51 -07:00
Blake Kaplan
52a3888cfa Propagate compilation errors to our caller to make syntax errors easier to debug. bug 408412, r=shaver sr=brendan 2008-08-04 10:03:34 -07:00
Graydon Hoare
78450de1f0 Bug 444845, js hooks to control vtune, r=sayrer 2008-07-29 15:19:26 -07:00
Blake Kaplan
742d27285f Attempt to make XPC_XOW_ClassNeedsXOW faster. bug 444779, r=jorendorff/jst sr=jst 2008-07-23 12:55:57 -04:00
Johnny Stenback
6b0fc3a654 Landing fix for bug 444880. Make the JS component loader use the JS context stack so that pending requests are suspended while components load. Patch by bent.mozilla@gmail.com, r+sr=jst@mozilla.org 2008-07-21 16:56:45 -07:00
Jason Orendorff
a721c4227c Bug 445624 - Delete dead code in JSObject2NativeInterface hot path (r+sr=jst) 2008-07-21 15:16:47 -05:00
gyu-young kim
9620212e54 Bug 426585 - "Additional cache XPCPerThreadData for mainthread" [r=dbradley sr=brendan] 2008-07-12 05:19:56 -05:00
Mike Hommey
0cb69380fc Bug 434492 - "xpcshell doesn't properly report error messages" [p=mh+mozilla@glandium.org (Mike Hommey) r=brendan] 2008-07-12 03:43:09 -05:00
Johnny Stenback
06103555df Landing fix for bug 442066. Make XPCWrappedJS destruction threadsafe. Patch by bruno@flock.com and manish@flock.com, r+sr=jst@ 2008-07-11 14:44:59 -07:00
Graydon Hoare
7c4aa69e9d Bug 444023, Add JS functions to stop/start callgrind, r=sayrer 2008-07-08 15:58:08 -07:00
Blake Kaplan
bc7e519eec Turn off these noisy and now mostly useless printfs for me. No bug, NPOTB 2008-06-26 16:42:41 +02:00
Johnny Stenback
a743b87dec Fixing bug 441377. Don't GC when replacing safe contexts. r+sr=brendan@mozilla.org 2008-06-25 17:04:06 -07:00
Blake Kaplan
4c82468d8d Make PrincipalHolder threadsafe since it can be destroyed from off-thread (thanks to XPCSafeJSContexts) and no additional work is required to make it threadsafe. bug 337611, r+sr=jst 2008-06-24 17:10:08 +02:00
Blake Kaplan
a72799e7fe Make XPCNativeWrapper deal with non-browser embeddings. bug 422113, r+sr=jst 2008-06-24 16:32:41 +02:00
bcrowder@mozilla.com
ad2cd52e5c Backed out changeset f201baf7bf04 (bug 439110), was causing unit-test failures 2008-06-18 15:49:51 -07:00
bcrowder@mozilla.com
d794bbaabb Bug 439110: xpcshell's load() just silently fails for non-existent files, r=brendan, sr=jst 2008-06-18 13:33:54 -07:00
"Doug Turner ext:(%22)
30df99659b Removing Minimo references. b=405705, r=ted 2008-06-16 13:57:42 -07:00
Mark Banner
2919eb146c Bug 435853 Running xpcshell tests involving Mac components leaks memory due to not having an NSAutoreleasePool. r=shaver,sr=brendan 2008-06-03 11:56:09 +01:00
jst@mozilla.org
80e867e806 Fixing bug 434673. Fix GC safety issue when calling through XPCWrapper into an IDL defined function. r+sr=brendan@mozilla.org, a=shaver@mozilla.org 2008-05-27 22:42:53 -07:00
jst@mozilla.org
68a63e6f98 Fixing bug 433005. Make calls through XPConnect on threads other than the main thread suspend JS request to avoid blocking GC on the main thread while calling slow functions on non-main threads. Patch by benjamin@smedbergs.us and jst@mozilla.org, r=jst@mozilla.org, sr=brendan@mozilla.org, a=schrep@mozilla.com 2008-05-27 14:59:58 -07:00
bent.mozilla@gmail.com
eb31e16632 Bug 429442 - "crashes [@ nsJSIID::HasInstance][@ XPCNativeSet::FindInterfaceWithIID]". r+sr=jst, a=beltzner. 2008-05-06 14:37:50 -07:00
bent.mozilla@gmail.com
d2928f847a Bug 430552 - "Browsing on the given site and closing the tab results in no active tab and keyboard shortcuts don't work until you refocus any element". r=jst, sr=mrbkap, a=beltzner. 2008-04-29 11:01:03 -07:00
igor@mir2.org
e573263407 [Bug 430871] Eliminating unused JSINVOKE_INTERNAL and JSFRAME_INTERNAL. r=brendan a1.9=dsicore 2008-04-27 23:50:37 -07:00
gavin@gavinsharp.com
db243d2ea7 Bug 428021: Can't define both a getter and a setter for a property of the global object, patch by Brian Crowder <crowder@fiverocks.com>, r=shaver, r=mrbkap, a=shaver 2008-04-23 16:17:45 -07:00
jruderman@hmc.edu
adc66e8601 Add mochitest 2008-04-22 22:40:56 -07:00
jruderman@hmc.edu
4382c1f13b Add crashtest 2008-04-22 21:16:56 -07:00
jonas@sicking.cc
3201958a8e Fix redness. Stupid second security manager 2008-04-18 10:51:10 -07:00
gavin@gavinsharp.com
81f06fccf5 Bug 425139: XPCSafeJSObjectWrapper provides incorrect type information, patch by shaver@mozilla.org, r=mrbkap, a=beltzner 2008-04-13 18:18:30 -07:00
bent.mozilla@gmail.com
869e288c42 Bug 415498 - "Some errors not displayed in Error Console when using addEventListener". Tests by Sylvain Pasche <sylvain.pasche@gmail.com>. r+sr=jst, a=beltzner. 2008-04-10 10:35:56 -07:00
jruderman@hmc.edu
d0bb18ea76 Reduce the length of the "XPConnect is being called on a scope without a 'Components' property!" assertion message (bug 426954). r=mrbkap, debug-only. 2008-04-09 22:19:30 -07:00
reed@reedloden.com
85aa35af10 Bug 419615 - "use JSVERSION_LATEST in xpcshell" (use a context callback to set error-reporter and jsversion default) [p=crowder@fiverocks.com (Brian Crowder) r+a1.9=shaver] 2008-04-09 00:27:16 -07:00
jonas@sicking.cc
9b874a6992 Allow XMLHttpRequest and document.load load files from subdirectories. r/sr=dveditz 2008-04-08 17:38:12 -07:00
bent.mozilla@gmail.com
ecc33f6aaa Bustage fix for DEBUG_CC builds as a result of the fix for bug 423874. r=dbaron, a=NPOTDB. 2008-04-02 15:18:06 -07:00
igor@mir2.org
303ea3000c [Bug 423874] Allocating functions together with JSObject. r=brendan a1.9=blocking1.9 2008-04-02 00:46:12 -07:00
reed@reedloden.com
62ba3210af Bug 411579 - "Optimize read file buffer sizes for faster startup times" [p=jmathies@mozilla.com (Jim Mathies) r=sayrer sr=bsmedberg a1.9=beltzner] 2008-04-01 23:41:23 -07:00
igor@mir2.org
c0d5c51190 [bug 423874] backing out as a simpler patch would do the job with less code. 2008-03-29 03:34:29 -07:00
jst@mozilla.org
24c87c737a Fixing bug 424449. Clear scope on XOWs when scope is cleared on the object wrapped by the XOW. r+sr=mrbkap@gmail.com 2008-03-26 18:04:14 -07:00
reed@reedloden.com
7931af4544 Bug 422025 - [p=jst@mozilla.org (Johnny Stenback [jst]) r+sr=mrbkap a1.9b5=schrep] 2008-03-25 16:16:21 -07:00
shaver@mozilla.org
367efb39fc Bugs 423443/419661: crash in MarkSharpObjects due to stack overflow, when over-deep engine-internal recursion is triggered in JS components. r=brendan, a-b5=beltzner 2008-03-25 07:08:48 -07:00
igor@mir2.org
eaa513c2f5 bug=423874 r=brendan a1.9b5=dsicore Allocating native functions together with JSObject 2008-03-21 01:19:23 -07:00
jst@mozilla.org
ed1819df0e Followup fix for bug 418356. Re-enable loading file:// URIs using the subscript loader. r+sr=bzbarsky@mit.edu 2008-03-20 22:07:25 -07:00
reed@reedloden.com
08ed4fda6c Bug 420869 - "Script stack space in Firefox 3.0b4pre much smaller than it was in Firefox 2.0.0.12" [p=igor@mir2.org (Igor Bukanov) r=brendan a=blocking1.9+] 2008-03-19 22:57:10 -07:00
timeless@mozdev.org
f33eb4a3b4 reverting, wrong patch, missing AMBIGUOUS 2008-03-19 14:55:22 -07:00
timeless@mozdev.org
8074fda8ae Bug 394114 Interfaces missing from various QI implementations. r=jag sr=jag a=dsicore 2008-03-19 14:19:35 -07:00
igor@mir2.org
f1f37e5921 bug=420869 backing out as the tree is red. 2008-03-18 15:06:38 -07:00
igor@mir2.org
91819053e4 bug=420869 r=brendan a1.9=blocking1.9 bumping script stack quota to 100MB for better compatibility with FF2. 2008-03-18 15:05:35 -07:00
bzbarsky@mit.edu
f73470cb01 Remove method that no longer exists. 2008-03-18 14:58:46 -07:00
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