Commit Graph

315 Commits

Author SHA1 Message Date
bzbarsky%mit.edu
abdbcef879 Report chrome JS errors to the error console again. Bug 324142, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@221190 18797224-902f-48f8-a5cc-f745e15eee43
2007-03-02 01:05:46 +00:00
peterv%propagandism.org
e3e0240f6a Fix for bug 368369 (nsIScriptContextOwner looks unused). r/sr=jst.
git-svn-id: svn://10.0.0.236/trunk@220731 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-22 13:33:50 +00:00
dbaron%dbaron.org
4e5f01e33a Don't clear scope on Object.prototype. b=368958 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@219553 18797224-902f-48f8-a5cc-f745e15eee43
2007-02-06 04:48:20 +00:00
jst%mozilla.org
bc8b21f33b Attempting to fix crasher bug 367006. Reorder some code to make the GC timer book-keeping reliable. r+sr=jonas@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@218943 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-26 01:19:31 +00:00
jst%mozilla.org
0530ef12c6 Fixing bug 366393. Attempt to schedule GC between pageloads when possible rather than slowing down page load with GC calls while loading. r+sr=bugmail@sicking.cc
git-svn-id: svn://10.0.0.236/trunk@218180 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-11 00:02:58 +00:00
graydon%mozilla.com
75bfd7865e Bug 333078: XPCOM cycle collector, first performance-related followup patch.
Reorganizes collection throttling to coincide with existing JS_GC scheme.


git-svn-id: svn://10.0.0.236/trunk@217799 18797224-902f-48f8-a5cc-f745e15eee43
2007-01-05 01:44:42 +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
bzbarsky%mit.edu
932d12bfe8 Make it possible to start/stop jprof programmatically in C++ inside gklayout.
Bug 354069, r+sr=dbaron


git-svn-id: svn://10.0.0.236/trunk@216879 18797224-902f-48f8-a5cc-f745e15eee43
2006-12-12 15:47:47 +00:00
ajschult%verizon.net
6cb4fa848c Bug 361170: "never show this dialog again" may be too confusing for end user. Patch by Benoît <benoit@gawab.com>, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@216040 18797224-902f-48f8-a5cc-f745e15eee43
2006-11-29 00:38:50 +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
bzbarsky%mit.edu
3a045e820f Fix crash bug 355811. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@213459 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-10 21:32:54 +00:00
bzbarsky%mit.edu
24452c8d4d Make on* (event handler) properties show up inside |with| blocks by making sure
we resolve them even when assigning.  Bug 159849, r=peterv, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@213284 18797224-902f-48f8-a5cc-f745e15eee43
2006-10-07 03:37:15 +00:00
dbaron%dbaron.org
9216c4e082 Call JS_ClearScope up the global object's prototype chain to fix leaks. Consolidate the cleanup of non-fastback-cached inner windows currently spread throughout SetNewDocument into a pair of calls to FreeInnerObjects, and various other cleanup. b=353090 r=jst sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@212044 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-20 01:13:59 +00:00
db48x%yahoo.com
d26cc390f5 bug 353420: [@ PrintWinURI] inverted null check either crashes or errors
r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@212041 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-20 00:53:43 +00:00
bzbarsky%mit.edu
b360e9dfd1 Fix allocator mismatch bug 353109. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@211968 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-19 04:04:46 +00:00
dbaron%dbaron.org
b3ece9b8b4 Be more careful pushing/popping contexts. b=352264 r=jst sr=bzbarsky/jst
git-svn-id: svn://10.0.0.236/trunk@209916 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-12 22:58:11 +00:00
Olli.Pettay%helsinki.fi
fe7d075767 Bug 351036, Combine NS_IMAGE_ERROR and NS_SCRIPT_ERROR, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@209059 18797224-902f-48f8-a5cc-f745e15eee43
2006-09-02 10:00:26 +00:00
bzbarsky%mit.edu
0485771107 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@208365 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-24 23:23:06 +00:00
bzbarsky%mit.edu
4e376c51c2 Work around hidden window stuff. Bug 346984 super-hacky patch, r=mrbkap, sr=jst
git-svn-id: svn://10.0.0.236/trunk@208355 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-24 21:49:14 +00:00
mhammond%skippinet.com.au
9329a9e02d Correct assertion message, as requested by bz
git-svn-id: svn://10.0.0.236/trunk@206666 18797224-902f-48f8-a5cc-f745e15eee43
2006-08-06 09:31:14 +00:00
igor.bukanov%gmail.com
f96eaa3597 Bug 342854: Using JSContext callback to ensure that C stack limit is always set. r=brendan,mrbkap,sr=jst
git-svn-id: svn://10.0.0.236/trunk@205904 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-29 08:39:04 +00:00
jst%mozilla.jstenback.com
f44d5f241d Fixing build bustage by backing out part of my last change.
git-svn-id: svn://10.0.0.236/trunk@205005 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-27 23:30:45 +00:00
jst%mozilla.jstenback.com
e60fe84ab3 Fixing bug 335058. Increase the default for the time we wait (from 5 to 10 seconds) before alerting the user about a possibly infinitely looping script, and give chrome an independent limit (20 seconds). r=bzbarsky@mit.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@205000 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-27 22:36:36 +00:00
mrbkap%gmail.com
8da07e3a1b Fixing DEBUG-only bustage
git-svn-id: svn://10.0.0.236/trunk@201917 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-12 00:26:56 +00:00
mrbkap%gmail.com
0f8aa74e71 Make Function (and window.Function refer to the correct window's function). bug 343966, r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@201908 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 22:28:09 +00:00
mrbkap%gmail.com
84c44f5b10 Add a couple of functions to make debuggin easier:
* JSObject2Win: Given a context and a |JSObject *|, it returns an nsGlobalWindow pointer if the JSObject is wrapping a window.
  * PrintWinURI: Given an nsGlobalWindow, it prints its document's URI.
  * PrintWinCodebase: As above, but using the window's principal's codebase.

bug 344181, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@201903 18797224-902f-48f8-a5cc-f745e15eee43
2006-07-11 21:03:52 +00:00
gijskruitbosch%gmail.com
4f58af4765 Bug 341764 - Should be able to debug from the slow script dialog if a debugger is present
r=bsmedberg for makefile changes and r=sicking for dom changes
sr=shaver


git-svn-id: svn://10.0.0.236/trunk@200621 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 21:30:49 +00:00
bzbarsky%mit.edu
c28a6c9e15 Use the event targe as the scope when wrapping event handler args so that the
event handler can access them.  Bug 342235, r=mhammond, sr=jst


git-svn-id: svn://10.0.0.236/trunk@200556 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-22 02:02:33 +00:00
mrbkap%gmail.com
f9aa89271c Deal with converting null values to jsvals. bug 342219, r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@200538 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-21 22:10:35 +00:00
dbaron%dbaron.org
01293d1a60 Root the result of JSObjectFromInterface. b=341640 r=markh sr=jst
git-svn-id: svn://10.0.0.236/trunk@200381 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-20 00:38:46 +00:00
bclary%bclary.com
5beef40fcd Bug 340036: Script tag should support version 1.7, r=mrbkap, r=peterv, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@200048 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-15 21:47:59 +00:00
mhammond%skippinet.com.au
e96b5e495a Land DOM_AGNOSTIC3_BRANCH, bug 255942. r=a few people, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@199778 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-13 03:07:47 +00:00
mrbkap%gmail.com
0b7523274b Checking in Ben Turner <bent.mozilla@gmail.com> and timeless's patch to make Gecko use the JS engine's request model to help multithreaded embedders avoid GC races and crashes. bug 176182, r=mrbkap assumed-rs=brendan
git-svn-id: svn://10.0.0.236/trunk@199768 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-12 22:39:55 +00:00
timeless%mozdev.org
7185e837bc Bug 337917 Make consumers stop using cids from other modules
r=smontagu sr=darin


git-svn-id: svn://10.0.0.236/trunk@198973 18797224-902f-48f8-a5cc-f745e15eee43
2006-06-03 23:35:59 +00:00
darin%meer.net
42edf059cf landing patch for bug 326273 "Implement nsIThreadManager" (Mac portions by Mark Mentovai) with reviews from bienvenu, bsmedberg, bzbarsky, josh, roc, and ssieb
git-svn-id: svn://10.0.0.236/trunk@196254 18797224-902f-48f8-a5cc-f745e15eee43
2006-05-10 17:30:15 +00:00
bzbarsky%mit.edu
a8bf7b5efc Make sure to always initialize rv. Bug 334233, r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@194556 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-17 23:24:38 +00:00
timeless%mozdev.org
399f898b74 Bug 333837 Crash in [@ nsJSContext::nsJSContext] / XUL / DOM
r=jst sr=bz


git-svn-id: svn://10.0.0.236/trunk@194474 18797224-902f-48f8-a5cc-f745e15eee43
2006-04-16 09:17:46 +00:00
Olli.Pettay%helsinki.fi
b6cdf7cb60 Bug 234455, Centralize event dispatch r=jst, sr=bz
git-svn-id: svn://10.0.0.236/trunk@191900 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-07 17:08:51 +00:00
mrbkap%gmail.com
c1ad1cdaef Clear the pending exception before dispatching any events and potentially running JS on a context that already has an exception thrown. bug 329046, r=brendan sr=jst
git-svn-id: svn://10.0.0.236/trunk@191625 18797224-902f-48f8-a5cc-f745e15eee43
2006-03-02 23:09:43 +00:00
mrbkap%gmail.com
09fb0311d4 bug 318489: It's impossible to use one of the constructors from an XPCNativeWrapped object. Add an IDL interface for these constructors and fix XPCNativeWrapper to forward Construct requests onto its wrapped native. r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@185843 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-09 19:08:45 +00:00
dbaron%dbaron.org
4c020e2d54 Always clear newborn roots whether or not there is already a GC timer, since a timer created in GC may not fire before XPCOM shutdown. b=314199 r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@185731 18797224-902f-48f8-a5cc-f745e15eee43
2005-12-06 05:48:46 +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
895df6e6ca Fixing bug 316794. Moving HandleDOMEvent() and Get/SetDocShell from nsIScriptGlobalObject to nsPIDOMWindow. r=mrbkap@gmail.com, sr=peterv@propagandism.org
git-svn-id: svn://10.0.0.236/trunk@185351 18797224-902f-48f8-a5cc-f745e15eee43
2005-11-28 23:56:44 +00:00
pedemont%us.ibm.com
7cdad186b6 Bug 309337 - Make sure reserving 512k in stack space doesn't cause unsigned stacklimit var to wrap. r=brendan, sr=jst
git-svn-id: svn://10.0.0.236/trunk@181993 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-11 16:50:27 +00:00
bzbarsky%mit.edu
9b25d9f96b Remove silly warning in GetDocShell impls, and use the principal (which we
should always have) instead of the docshell for chrome vs content
determination.  Bug 51962, r+sr=jst


git-svn-id: svn://10.0.0.236/trunk@180786 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-22 02:10:07 +00:00
mrbkap%gmail.com
9729278c48 bug 302333: Save and restore the DOM branch callback time around the GC, since GCing can cause it to be reset. r+sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@180677 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-20 20:59:16 +00:00
bzbarsky%mit.edu
b8e0480ec5 Keep the results of EvaluateStringWithValue properly alive while we're using
them, and make sure we don't GC the xbl property getter when we create the
setter.  Bug 299205, r=jst, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@180397 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-16 15:44:59 +00:00
jst%mozilla.jstenback.com
ea8135d35c Fixing bug 230909. Add a 'Never show this dialog again' checkbox to the dialog we show when a script runs for more than 5 seconds. r=peterv@propagandism.org, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@179694 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-06 14:51:29 +00:00
jst%mozilla.jstenback.com
1b53f11a72 Relanding the fix for bug 304423. Make window instanceof Object and Window etc be true again. This regressed with the split window landing. The fix here is to make the inner and outer windows share the outer's XPConnect prototype (but only that, everything below that on the proto chain comes from the inner window). To make this work with fastback we also needed a way to tell XPConnect to restore an old prototype for the window object when going back/forward. r=mrbkap@gmail.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@179517 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 23:02:57 +00:00