Commit Graph

1696 Commits

Author SHA1 Message Date
Xiaobin.Lu%eng.Sun.com
a67c6f0e53 Fix for bug 74482, Calling top.window.close() does not work
Work done by Nikolay and me
r=beard sr=brendan a=asa


git-svn-id: svn://10.0.0.236/trunk@97017 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-13 01:03:25 +00:00
Xiaobin.Lu%eng.Sun.com
c693d77633 Fix for bug 77600
r=beard, sr=brendan, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@96627 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-07 16:20:50 +00:00
brendan%mozilla.org
0ad0668194 Fix duplicate switch case detector bugs (83532, rogerl's patch, sr=jband, sr=brendan, a=chofmann).
git-svn-id: svn://10.0.0.236/trunk@96567 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-06 23:28:29 +00:00
valeski%netscape.com
b75b28be35 r=chak, sr=vidur, a=tor. 82000. removing unused arg from nsICategoryManager.
git-svn-id: svn://10.0.0.236/trunk@96452 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 21:25:57 +00:00
jband%netscape.com
5ee87bd70e fix bug 84020 - don't override the context global, bug 83367 - add deferred Release of natives of wrappednatives to avoid nesting into js_AllocGCThing during JS gc, and bug 82274 - fix a little leak (patch from dbradley). sr=jst r=dbradley a=drivers
git-svn-id: svn://10.0.0.236/trunk@96387 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:59:53 +00:00
jband%netscape.com
e5d45072c3 fix bug 78428 by making sure to use the lesser of the freeslot or nslots value when marking slots. This is necessary because objects can now be in an initial state where the freeslots is a larger number than the nslots - and the actual number of slots in the array. sr=brendan r=beard a=drivers
git-svn-id: svn://10.0.0.236/trunk@96380 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:47:56 +00:00
jband%netscape.com
cf62f803ac fix bug 82034 by making wrapped Java objects be not JS natives again but with their own slot accessors. This should bring JS -> Java communication back to life. sr=brendan r=beard a=drivers
git-svn-id: svn://10.0.0.236/trunk@96374 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:39:13 +00:00
cls%seawood.org
0c2a0a2f8c Handle cygwin & mks uname output on win32.
Bug #72154 r=pschwartau@netscape.com a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@96365 18797224-902f-48f8-a5cc-f745e15eee43
2001-06-05 00:08:21 +00:00
jband%netscape.com
010607cb22 NOT PART OF ANY BUILD - adding a test case for use in demonstrating a crash to be fixed
git-svn-id: svn://10.0.0.236/trunk@96123 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-31 18:13:26 +00:00
brendan%mozilla.org
bf20b1ca3d - Add a generation number to JSDHashTable that counts entryStore changes due
to grows, shrinks, and compresses.  This helps JS_DHashTableOperate callers
  who hold returned entry pointers to validate those pointers and avoid having
  to re-lookup an entry by its key.
- Balance that addition by removing JSDHashTable.sizeMask, which is induced by
  JSDHashTable.sizeLog2 at the cost of two typically single-cycle instructions.
- Use JSDHashTable.generation in jsobj.c to avoid unsafely dereferencing an
  entry pointer held across calls to JSClass.resolve from js_LookupProperty,
  which may recur and add entries to cx->resolving, growing that table and
  invalidating entry pointers held by earlier js_LookupProperty activations.
(bug 78121, r=jst@netscape.com, sr=jband@netscape.com, a=asa@mozilla.org)


git-svn-id: svn://10.0.0.236/trunk@95896 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-25 03:05:38 +00:00
brendan%mozilla.org
d442d78367 Fix failure to round up in chunked realloc test in AddCharsToURI (82306, r=rginda, sr=scc).
git-svn-id: svn://10.0.0.236/trunk@95819 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:49:19 +00:00
brendan%mozilla.org
5ec88cd71a Add intern help message, caught by epstein@tellme.com (not part of build).
git-svn-id: svn://10.0.0.236/trunk@95814 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 06:13:13 +00:00
brendan%mozilla.org
678d939e1c Lazily pin the less likely atoms when resolving standard class names (77861, r=jst, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@95787 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 04:02:06 +00:00
jband%netscape.com
c3c82b5b1c fix bug 82220. enumeration of Components.interfaces should only include scriptable interfaces. r=vidur sr=jst
git-svn-id: svn://10.0.0.236/trunk@95742 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-23 00:12:04 +00:00
rginda%netscape.com
6cb853ad8b create a dummy stack frame before calling out to the new-script-hook. The dummy frame prevents the script from being affected by any GC the hook may trigger. See bug 77636. author=shaver, r=me, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@95736 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:57:37 +00:00
brendan%mozilla.org
0bcb3723cd Warning abatement (r=polarbear, sr=lumpy).
git-svn-id: svn://10.0.0.236/trunk@95727 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 23:25:18 +00:00
scc%mozilla.org
fccb53ea7f ok, but make this local bustage fix into a global one
git-svn-id: svn://10.0.0.236/trunk@95666 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:43:30 +00:00
scc%mozilla.org
e1841460d5 Fixing AIX/BeOS bustage. The statically determined length of the string was |0|, and on these ports, that was erroneously considered a candidate for conversion to a pointer, which made selection of the appropriate constructor for |nsDependentString| ambiguous ... go figure.
git-svn-id: svn://10.0.0.236/trunk@95664 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 08:02:58 +00:00
scc%mozilla.org
1b7f52f09f Fixing AIX/BeOS bustage. The statically determined length of the string was |0|, and on these ports, that was erroneously considered a candidate for conversion to a pointer, which made selection of the appropriate constructor for |nsDependentString| ambiguous ... go figure.
git-svn-id: svn://10.0.0.236/trunk@95659 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-22 07:25:25 +00:00
jband%netscape.com
cfb2c4ef41 - Fix bug 81341. Force creation of a WrappedJS around the JSObject of
aWrappedNative when doing aggregation. r=dradley sr=jst.
- Fix bug 81877. Avoid infinite recursion when reporting threadsafety
error. r=perterv,dradley sr=jst.
- Fix bug 81882. Use JS_AddNamedRootRT in XPCWrappedNative::AddRef to avoid
the unnecessary cost of creating an XPCCallContext in this frequently called
method. r=dbaron,dbradley sr=jst.


git-svn-id: svn://10.0.0.236/trunk@95624 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-21 22:45:14 +00:00
jst%netscape.com
535c86019d scc checking in from jst's account. bug #75220: sr=jst, rs=brendan. renaming |nsPromiseC?Concatenation| to |nsDependentC?Concatenation|; |nsPromiseC?Substring| to |nsDependentC?Substring|; |nsLiteralC?String| and |nsLocalC?String| to |nsDependentC?String|, as these new names better reflect clients obligations to instances.
git-svn-id: svn://10.0.0.236/trunk@95533 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-19 11:27:30 +00:00
jband%netscape.com
c70bc4bbd4 fix bug 49017. This extends our mapping of idl [function] interfaces so that they will try to treat the JSObject as a callable function (as before), but if the JSObject is *not* a function object then xpconnect will fall back to the non-[function] behaviour of trying to lookup a named function on the JSObject and then call that. r=jst sr=brendan,vidur,jst,(and everyone else I guess)
git-svn-id: svn://10.0.0.236/trunk@95468 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:35:03 +00:00
jband%netscape.com
dba2f210f3 fix bug 81542. Reorder interface methods so that they do not break compatibility with previously deployed plugins that work with previous versions of our software. The error was that I moved some around at all rather than just adding them to the end of the interfaces! Also, I added back in one method and marked it deprecated. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@95467 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:30:28 +00:00
jband%netscape.com
dd0e8f1737 fix bug 81436. Some Solaris compilers screwup symbol resolution if there is a file scope var that is also declared as extern. So we'll just make it not declare these two static (thses are not names that is going to conflict with anything!) r=timeless rs=jband
git-svn-id: svn://10.0.0.236/trunk@95464 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-18 23:24:19 +00:00
rogerl%netscape.com
8396238b82 Fix bug #76054. sr=brendan, r=beard. Generate lower case tags for all the
string tagify'ing helper functions like 'big()' etc. to be XHTML compliant.


git-svn-id: svn://10.0.0.236/trunk@95312 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 21:37:33 +00:00
jband%netscape.com
cb8d49d560 fix bug 81117. allow unsecure access to creating xpconnect wrappers around nsXPCException objects and expose the 'code' property. This saves us from cryptic errors in the JSConsole and DOMExceptions that don't work. r=mstoltz sr=jst
git-svn-id: svn://10.0.0.236/trunk@95266 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 18:25:06 +00:00
beard%netscape.com
33f6e00f51 bug #77856, r/sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@95225 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:45:51 +00:00
beard%netscape.com
c214d9131c bug #77247, r/sr=brendan
git-svn-id: svn://10.0.0.236/trunk@95224 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 05:42:18 +00:00
vidur%netscape.com
46bb7a6e6f Reverting bogus assert. r/sr=brendan,jband
git-svn-id: svn://10.0.0.236/trunk@95209 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 04:55:49 +00:00
brendan%mozilla.org
0c0e5d9a7b Unified resolve recursion damping (70358) and resolve-from-js_SetProperty (72354), r/sr=jband,jst,shaver.
git-svn-id: svn://10.0.0.236/trunk@95183 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 01:43:58 +00:00
brendan%mozilla.org
152f495269 STORE_NUMBER's final param must be a jsdouble; fix INTEGER_OPs (81245, r=rogerl, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@95182 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-17 01:40:32 +00:00
brendan%mozilla.org
8425d31606 Fix ChangeTable and how it's called (74883, r=gordon, sr=waterson, mcafee approved).
git-svn-id: svn://10.0.0.236/trunk@95146 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 21:41:52 +00:00
Xiaobin.Lu%eng.Sun.com
5f83020d4c r=timeless sr=shaver
bug 72807 "c++ style comment warning"


git-svn-id: svn://10.0.0.236/trunk@95089 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-16 02:24:44 +00:00
brendan%mozilla.org
d5037366b0 Add optional JSDHashTableOps.initEntry hook, spruce up comments (74883, r=waterson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@95050 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 21:07:10 +00:00
brendan%mozilla.org
0abf3306e0 Re-init pinned atoms after 1=>0=>1 contexts-in-runtime transition (80619, sr=jband&shaver).
git-svn-id: svn://10.0.0.236/trunk@95024 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 19:39:16 +00:00
jband%netscape.com
e8ee3b88c6 remove commented out code
git-svn-id: svn://10.0.0.236/trunk@95022 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-15 19:15:30 +00:00
jband%netscape.com
a537ae5c5c bug 80062. Various post xpcdom branch landing fixes. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@94729 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-12 02:56:47 +00:00
pschwartau%netscape.com
8c29047265 Updated JS_GetImplementationVersion() to date of latest JS release (67111).
git-svn-id: svn://10.0.0.236/trunk@94678 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-11 20:05:34 +00:00
jband%netscape.com
244e7df40b fix bug 79907.r=rginda sr=jst
git-svn-id: svn://10.0.0.236/trunk@94473 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 09:45:28 +00:00
shaver%mozilla.org
ef2688e613 76659: make JSRegExps use JSClass.mark instead of GCThing locking, sr=brendan, r=rogerl
git-svn-id: svn://10.0.0.236/trunk@94468 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 08:05:45 +00:00
cls%seawood.org
223305e2e8 Do not attempt to compile lock_SunOS.s on Solaris Intel. (Native compiler only)
Bug #79598


git-svn-id: svn://10.0.0.236/trunk@94461 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-10 06:40:58 +00:00
jband%netscape.com
37e50deb64 fix linux startup assertion due to null PRLock. Trying to cleanup the xpcdom landing! r=dbaron
git-svn-id: svn://10.0.0.236/trunk@94275 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 21:40:00 +00:00
dbaron%fas.harvard.edu
923585dfda Attempt to fix AIX and OS/2 bustage by changing nsAReadableString (which is const) to nsAString. r=jband
git-svn-id: svn://10.0.0.236/trunk@94268 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 20:54:53 +00:00
dbaron%fas.harvard.edu
4af734d3cf Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband
git-svn-id: svn://10.0.0.236/trunk@94248 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:11:51 +00:00
jst%netscape.com
43eee52859 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94242 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:42:36 +00:00
brendan%mozilla.org
da4224d9bf - Fix bug 79054, AB-BA deadlock between rt->setSlotLock and one or more claimed scopes (r=shaver, sr=jband)
js_SetProtoOrParent should always have used a condvar in addition to a lock.
- Fix bug 79129, assert-botch in js_AllocSlot (r/sr=jband, sr=shaver)
  JS_INITIAL_NSLOTS is the minimum number of slots, js_FreeSlot guarantees it.


git-svn-id: svn://10.0.0.236/trunk@94190 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:31:02 +00:00
brendan%mozilla.org
7b329a191b Deoptimize JSOP_TABLESWITCH to JSOP_LOOKUPSWITCH upon first duplicate case label (74474, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@94187 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:21:01 +00:00
kandrot%netscape.com
2f7e9262c9 Check in for Ron Guilmette. r=shaver, sr=waterson. For intl r=nhotta. Changes for NS_IMPL_NSGETMODULE. bug #46775.
git-svn-id: svn://10.0.0.236/trunk@94028 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 05:33:37 +00:00
brendan%mozilla.org
79e0885618 Fix DEBUG-only bytecode stack input/output tracing, patch from Steven C. Cole <scole@planet-nospam-web.com>.
git-svn-id: svn://10.0.0.236/trunk@94010 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-05 01:04:19 +00:00
rginda%netscape.com
7df5359714 part two of fix for bug 77081 r=rogerl, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@93992 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-04 23:03:11 +00:00