jst%mozilla.jstenback.com
953b51be2c
Fixing 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@179452 18797224-902f-48f8-a5cc-f745e15eee43
2005-09-01 03:51:12 +00:00
bob%bclary.com
2798770e9e
Clone WINNT5.1.mk for Windows Server 2003
...
git-svn-id: svn://10.0.0.236/trunk@179414 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 19:56:10 +00:00
bsmedberg%covad.net
1d2d5dce42
Bug 306334 - XULRunner debug doesn't link on mac r=darin/brendan
...
git-svn-id: svn://10.0.0.236/trunk@179397 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 17:20:09 +00:00
mrbkap%gmail.com
98a77f8d52
bug 306591: Make sure that this is an object, since we're calling functions that operate only on objects. r=brendan sr=shaver
...
git-svn-id: svn://10.0.0.236/trunk@179396 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 17:08:24 +00:00
bzbarsky%mit.edu
ceb32c81fe
Fix bug 305959 -- only return "function" from typeof for Scripts, functions,
...
and regexps. Patch by Blake Kaplan <mrbkap@gmail.com>, r=brendan
git-svn-id: svn://10.0.0.236/trunk@179372 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-31 04:26:08 +00:00
mrbkap%gmail.com
74506be7e3
bug 306467: Store an nsIScriptObjectPrincipal in the private data of the sandbox global object so that the global object passes security checks. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@179352 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 23:24:21 +00:00
mrbkap%gmail.com
d984acb804
bug 306382: Make sure that Components.utils.evalInSandbox reports an error if evaluating the JS didn't succeed. r=shaver sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@179309 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 16:28:00 +00:00
brendan%mozilla.org
767175fb91
Generic static method automation to simplify things for callers of generic prototype methods (304828, r=mrbkap, sr=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@179281 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 04:28:45 +00:00
mrbkap%gmail.com
4360615072
bug 289628: Emulate Perl's handling of invalid min/max quantifiers (and match other browsers). r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@179267 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-30 00:25:49 +00:00
mrbkap%gmail.com
220d1315c7
bug 303108: Components.utils.evalInSandbox should throw exceptions that tell the caller what went wrong, instead of always throwing NS_ERROR_FAILURE. r=shaver
...
git-svn-id: svn://10.0.0.236/trunk@179113 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 23:41:06 +00:00
mrbkap%gmail.com
ec686a8d55
bug 305883: Protect against the empty XML list to fix a crash when emitting code for |<></>|. Also fix the decompiler to handle XMLLists correctly. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@179068 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-26 18:34:41 +00:00
mrbkap%gmail.com
ae6fbb954a
bug 302834: Components.utils.evalInSandbox should return the result of the given operations. Introduce a new Sandbox constructor to pass in as the second argument. Also bring the one use of evalInSandbox in the tree up to date with the new API. r=shaver/brendan
...
git-svn-id: svn://10.0.0.236/trunk@178955 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 16:38:58 +00:00
jst%mozilla.jstenback.com
204db39c56
Fixing bug 305528. Make XPCWrappedNative::GetWrappedNativeOfJSObject() attempt to find a wrapper using obj's outer object if it can't find one using obj. r=shaver@mozilla.org, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@178902 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-25 04:30:31 +00:00
brendan%mozilla.org
9cad3f82f3
Restore lost for(i in null); compat (bug 292731, r=mrbkap).
...
git-svn-id: svn://10.0.0.236/trunk@178804 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-24 18:15:53 +00:00
bzbarsky%mit.edu
a1e031e0ea
Make sure all XPCWrappedNatives get their equality op called. Bug 305288, also
...
fixes bug 305421. r+sr=jst
git-svn-id: svn://10.0.0.236/trunk@178748 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 23:01:37 +00:00
mrbkap%gmail.com
51a7e8ecba
bug 305583: Toggle on the XML option, even if the script wasn't invoked with it when the XMLList constructor is used. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@178705 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 17:10:47 +00:00
mrbkap%gmail.com
f466933f81
bug 280769: Clean up the whitespace in jsregexp.c in preparation for fixing large regexp crashes. Patch by Igor Bukanov <igor@mir2.org>. r/sr=mrbkap/brendan
...
git-svn-id: svn://10.0.0.236/trunk@178696 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 16:47:12 +00:00
mrbkap%gmail.com
85bc637ffb
Fix stupid OOM leak. r+a=shaver (bug 305628)
...
git-svn-id: svn://10.0.0.236/trunk@178693 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-23 16:26:36 +00:00
mrbkap%gmail.com
b99362a8b1
bug 292731: Use the same optimization for with as we do for for-in; trying to fix the Tp loss caused by the removal of this optimization when we tried doing this the other way. r=brendan (on IRC)
...
git-svn-id: svn://10.0.0.236/trunk@178643 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:30:08 +00:00
brendan%mozilla.org
306d9c4922
Have to check this instanceof XML in natives after all (305335, r/sr=mrbkap/shaver, a=me).
...
git-svn-id: svn://10.0.0.236/trunk@178641 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 22:20:35 +00:00
mrbkap%gmail.com
778d69a5f2
bug 132949: fix some of the more egregious bugs in jsfile.c, this also cleans up some of the style nits, but is nowhere a complete patch. Use jsfile.c at your own risk! rs=shaver
...
git-svn-id: svn://10.0.0.236/trunk@178611 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 17:30:44 +00:00
mrbkap%gmail.com
1c00f363b1
bug 292731: be consistent in calling valueOf when using for-in. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@178609 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-22 17:09:53 +00:00
brendan%mozilla.org
c769380e0b
Put E4X-only stuff within #if JS_HAS_XML_SUPPORT.
...
git-svn-id: svn://10.0.0.236/trunk@178317 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:35:30 +00:00
brendan%mozilla.org
a5ee8dc118
Forgot this fix to the fix for 301956 -- wahhhh!
...
git-svn-id: svn://10.0.0.236/trunk@178315 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 23:30:47 +00:00
brendan%mozilla.org
e4787dc4af
Patch to bug 305002 written by Hans-Andreas Engel <Hans-A.Engel@unibas.ch>.
...
git-svn-id: svn://10.0.0.236/trunk@178215 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-19 01:48:48 +00:00
brendan%mozilla.org
9c973f5450
C++ auto-storage-class helpers for requests and local roots (needed for 301265 and other bugs).
...
git-svn-id: svn://10.0.0.236/trunk@177951 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 16:26:14 +00:00
dougt%meer.net
a6361ac7ce
WinCE only. Disable opt for xpconnect. Did I mention that the windows ce optimizer blows? bug=304714. r=shaver, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@177931 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 06:21:05 +00:00
timeless%mozdev.org
4dad4e76e9
Bug 303596 DEBUG_CheckClassInfoClaims should tolerate NS_ERROR_OUT_OF_MEMORY
...
r=jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@177929 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 05:36:36 +00:00
timeless%mozdev.org
62408f158b
Bug 303521 !!! Object's nsIClassInfo lies about it's interfaces!!! s.b. "its"
...
r=jst sr=jst
git-svn-id: svn://10.0.0.236/trunk@177928 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-17 03:44:45 +00:00
mrbkap%gmail.com
4717271786
bug 289933: functions, RegExps, and Script objects should all be of type "function" for compatibility with older SpiderMonkeys and to more closely imitate ECMA. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@177895 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 21:40:55 +00:00
jst%mozilla.jstenback.com
3cc6010472
Fixing bug 301476. Make XPCNativeWrapper's checkAccess hook always forward to the wrapper's checkAccess hook, if it's got one. r=shaver@mozilla.org, sr=brendan@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@177879 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-16 20:08:39 +00:00
bsmedberg%covad.net
f5a3c325b8
Bug 299992 (re-landing) - Move pldhash etc. into the xpcom glue, and centralize various instances of nsINIParser in the xpcom glue. Some files were cvscopied from xpcom/ds to xpcom/glue r=brendan/darin
...
git-svn-id: svn://10.0.0.236/trunk@177766 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-15 18:29:55 +00:00
timeless%mozdev.org
866c1e854f
Bug 127760 - complete patch file for OpenUNIX and OpenServer ports
...
js patch
patch by kean@armory.com r=shaver
git-svn-id: svn://10.0.0.236/trunk@177675 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 23:39:46 +00:00
brendan%mozilla.org
9468a47aba
Comment tweak I forgot to bug mrbkap about.
...
git-svn-id: svn://10.0.0.236/trunk@177664 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 22:57:40 +00:00
jst%mozilla.jstenback.com
a9f668bc25
Followup changes to bzabarsky's review for bug 296639. Reviews pending, a=drivers@mozilla.org
...
git-svn-id: svn://10.0.0.236/trunk@177635 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 04:11:00 +00:00
brendan%mozilla.org
21176a96c5
Comment tweak, still avoids subjunctive but qualifies the crash case as fixed.
...
git-svn-id: svn://10.0.0.236/trunk@177633 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 03:32:29 +00:00
mrbkap%gmail.com
431ed93742
bug 304376: Fix hash table refcounting problem while recursively entering a marked object. r+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@177613 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-12 00:46:56 +00:00
bsmedberg%covad.net
bb73805324
Backout bug 299992 - too much odd platform-specific bustage
...
git-svn-id: svn://10.0.0.236/trunk@177596 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 22:07:08 +00:00
bsmedberg%covad.net
b80f390773
Bug 299992, the part before the actual work: move pldhash and the templatized hashtables into the glue (and drop the minor dependencies on NSPR), and centralize our various in-tree nsINIParser classes into the glue (does not affect the ones used for the various installers) r=brendan/darin a=chase/cbeard
...
git-svn-id: svn://10.0.0.236/trunk@177591 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-11 20:40:53 +00:00
brendan%mozilla.org
85ce220a4c
Restore compatibility: allow function(){} at statement level, treating it as an expression statement (303723, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@177313 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-08 06:54:59 +00:00
brendan%mozilla.org
90b059daad
Fix null ptr deref crash on shortid-bearing proto-property watch (303277, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@177293 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-07 19:46:58 +00:00
timeless%mozdev.org
d2c24bde31
Bug 303213 integer overflow in js
...
patch by mrbkap r=brendan a=brendan
git-svn-id: svn://10.0.0.236/trunk@177088 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-04 01:52:01 +00:00
timeless%mozdev.org
9794169aea
Bug 303213 integer overflow in js
...
patch by brendan r=mrbkap a=brendan
git-svn-id: svn://10.0.0.236/trunk@177065 18797224-902f-48f8-a5cc-f745e15eee43
2005-08-03 17:56:43 +00:00
jst%mozilla.jstenback.com
792744ce69
Landing the split window work, bug 296639. This change doesn't have full reviews yet, bzbarsky@mit.edu and shaver@mozilla.org have done partial reviews, but there's still more to look at. Given the current time constraint this is landed with reviews and followup changes that result to come after the initial checkin. a=drivers
...
git-svn-id: svn://10.0.0.236/trunk@176884 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 20:57:07 +00:00
bob%bclary.com
9171dd1720
Date Parsing - fix regression from bug 273292, improve MSIE compatibility, bug 301738. r=mrbkap, r=shaver, a=asa
...
git-svn-id: svn://10.0.0.236/trunk@176868 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 03:15:49 +00:00
bob%bclary.com
6390b6f762
ECMA Compliance: fix daylight savings time before 1970, Bug 58116. Patch by Mike McCabe <mike+mozilla@meer.net>. r+a=shaver
...
git-svn-id: svn://10.0.0.236/trunk@176859 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-30 00:00:05 +00:00
bzbarsky%mit.edu
8b2119f451
Include pointers to the JSObjects involved when printing out the path in the
...
GC_MARK_DEBUG log. Bug 295434, r+a=shaver
git-svn-id: svn://10.0.0.236/trunk@176836 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-29 15:15:48 +00:00
bzbarsky%mit.edu
02bdf94e23
Make XPCNativeWrapper call the wrapped native's classinfo resolve/get/set
...
hooks. Makes native wrappers work in lots of nasty DOM0 corner cases. Bug
296967, r=mrbkap, sr=jst, a=asa
git-svn-id: svn://10.0.0.236/trunk@176835 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-29 15:11:08 +00:00
mrbkap%gmail.com
073f829a1a
bug 302531: QuoteString doesn't deal with not outputting anything. Also fix some whitespace nits. r=shaver a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@176790 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 18:16:30 +00:00
mrbkap%gmail.com
256c67fbd4
bug 302439: Spandep fu doesn't skip unused JSOP_TABLESWITCH jump table entries. Patch by brendan (except for the whitespace cleanup by me), r=shaver a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@176784 18797224-902f-48f8-a5cc-f745e15eee43
2005-07-28 17:39:44 +00:00