808 Commits

Author SHA1 Message Date
jband%netscape.com
23b2f2d2a9 fix bug 28381. Make xpcshell bypass the caps security manager. dougt has looked at and used this but is not around for a 'r='. a=jar
git-svn-id: svn://10.0.0.236/trunk@61330 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-19 00:14:44 +00:00
cls%seawood.org
68b542e781 Temporary fix for bug #24892
git-svn-id: svn://10.0.0.236/trunk@61119 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 07:58:45 +00:00
dveditz%netscape.com
9f13883da5 registry speed ups (part of 12817)
git-svn-id: svn://10.0.0.236/trunk@61112 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 07:45:20 +00:00
rginda%netscape.com
caa642de2a Fix for 26725, r=jband
git-svn-id: svn://10.0.0.236/trunk@61089 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 06:26:21 +00:00
rginda%netscape.com
7bc8a3298e Fix for JS bug 26463. r=rogerl
git-svn-id: svn://10.0.0.236/trunk@60990 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 01:02:25 +00:00
rogerl%netscape.com
46789026f0 Bug #9141, prevent recurse death for greedy matching on MAC.
r=rginda


git-svn-id: svn://10.0.0.236/trunk@60982 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-16 00:49:34 +00:00
jband%netscape.com
c87818af7f Reimplement the Components.[ID,Exception,Constructor] properties in C++. These
things were completely unusable due to security restriction in anything besides
xpcshell. This fixes bug 26879 and helps a lot for bug 8700 because is reduces
the work done for JSContext creation.

Also, ease the burden of xptcall porters by doing IS_COMPONENT for all unix platforms.

r=mccabe


git-svn-id: svn://10.0.0.236/trunk@60819 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-15 06:43:51 +00:00
rogerl%netscape.com
906664fef9 Nuts, checked in wrong file AND named wrong bug in previous checkin, msu
be friday or something.
Correct bug# is 26060.


git-svn-id: svn://10.0.0.236/trunk@60528 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 23:00:21 +00:00
rogerl%netscape.com
55516c09bf r=brendan@mozilla.org
bug #26857
Fix for evaluating multi-part script prologs in advance.


git-svn-id: svn://10.0.0.236/trunk@60514 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:21:15 +00:00
rogerl%netscape.com
5433804427 r=brendan@mozilla.org
Prepare for new setter/getter syntax.


git-svn-id: svn://10.0.0.236/trunk@60513 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:19:33 +00:00
rogerl%netscape.com
c31ce73e9e r=mccabe
bug #22866
Support unicode line/paragraph separators.


git-svn-id: svn://10.0.0.236/trunk@60512 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:17:56 +00:00
rogerl%netscape.com
fb68bd916d r=norris
Deal with precendence warning whinings


git-svn-id: svn://10.0.0.236/trunk@60510 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-11 22:16:55 +00:00
mccabe%netscape.com
e704ac16c8 Added comment recommending rooting of new script objects, to address problems experienced by netscape.public.mozilla.jseng developers.
Also verbiage refactory.

r=brendan


git-svn-id: svn://10.0.0.236/trunk@60031 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:38:20 +00:00
rogerl%netscape.com
b0fb5acb33 r=brendan@mozilla.org
Bug #14462, lot's of discussin there about these changes, but here's
Brendan's description :
In order, changes in the patch are:

- Rename JSSLOT_ITR_STATE to be JSSLOT_ITER_STATE (avoid cybercrud abbreviation
as cbrcrd, no more six-char id limits!).

- Property cache tests must occur with the object's scope-lock held, to close a
race with delete (js_DestroyProperty, always called with the property's scope
locked).  Once the cache has been hit, and before the lock is released, the
property's refcount must be bumped.  This requires re-acquisition of the lock
and js_DropScopeProperty afterward.

- Reworked js_FindProperty to use a do-while loop, as cx->fp->scopeChain must be
non-null.  This avoids a gratuitous lastobj init done to "Suppress gcc warning"
in the old revision.

- Akin to the property cache hit cases in jsinterp.c and jsobj.c's
js_FindProperty, code to hold and drop the scope-property by its refcount that
was #ifdef JS_THREADSAFE must be unconditional, now that user-defined getters
and setters may delete the property id they're getting or setting.

- Fixed overlong continuation line in jsobj.h.

/be


git-svn-id: svn://10.0.0.236/trunk@60025 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-08 01:24:53 +00:00
scc%netscape.com
dcee2e659d Pro5 update
git-svn-id: svn://10.0.0.236/trunk@60002 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 23:06:04 +00:00
brendan%mozilla.org
87115d646b Comment/cosmetic changes only (r=shaver@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@59979 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-07 07:28:25 +00:00
norris%netscape.com
664c955bc3 Fix 18860 impossible to call applet's public methods from JavaScript
(fix from jeff.dyer@compilercompany.com, r=norris)


git-svn-id: svn://10.0.0.236/trunk@59959 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-06 23:34:50 +00:00
risto%netscape.com
d9a18e2f49 Changing all cvs-mirror.mozilla.org references to point to politically
correct addresses, for example tinderbox.mozilla.org, lxr.mozilla.org or
bonsai.mozilla.org. cvs-mirror shouldn't use in URLs anymore because it's
now on different server.

r=bryner


git-svn-id: svn://10.0.0.236/trunk@59873 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 07:23:36 +00:00
brendan%mozilla.org
54225d3ee2 Argh, fix stupid typo that sometimes breaks for/in loops (26595, r=jband@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@59831 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 02:04:16 +00:00
brendan%mozilla.org
2e5e3a4050 Fix crash reported in bug 26595 (r=jband@netscape.com) via better compilation-frame conditioning.
git-svn-id: svn://10.0.0.236/trunk@59830 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-05 01:54:13 +00:00
pinkerton%netscape.com
cb0d0da5e1 fix the access paths for pro5 migration. r=macdev.
git-svn-id: svn://10.0.0.236/trunk@59731 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 03:27:36 +00:00
brendan%mozilla.org
43d1d6a141 - Eliminate ancient, bogus proxying of function object for its call objects (23346, r=jband@netscape.com).
- Tabs expanded as much as I could stand, without taking too much cvsblame.


git-svn-id: svn://10.0.0.236/trunk@59716 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 02:01:49 +00:00
rogerl%netscape.com
42e8ee5441 r=Norris
License updating, bug#15529, continuing.


git-svn-id: svn://10.0.0.236/trunk@59693 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-04 00:08:13 +00:00
jband%netscape.com
55b4443d06 fix XPCContext leak bug 25911 r=beard. fix DOM wrapping case where static called object does not have a static DOM scope, but is run in a DOM context; e.g. calling a JS component from within a window that calls some native service that returns a DOM window - the serive is not a DOm object and has no static DOm scope, but the call is made on a DOM context so a dynamic lookup works. r=mscott
git-svn-id: svn://10.0.0.236/trunk@59613 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 03:25:53 +00:00
rogerl%netscape.com
5df6bd4346 r=norris
Bug#24712, regexp greedy recursing wasn't handling zero kid back-tracked
state nor re-setting parenCount correctly.
Added license junk for bug#15529 (continuing).
Fix type-mismatch warning in jsstr.c
Switched off DEBUG only use of fd_pow under Windows.


git-svn-id: svn://10.0.0.236/trunk@59582 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-03 00:44:03 +00:00
mccabe%netscape.com
7113e5b3ae Changes to allow Spider Monkey to be compiled under C++.
Courtesy Bill Gibbons <bill@gibbons.org>

His comments:

Here are the changes to JSRef to make it compile either as C or C++. Mostly the changes are to add missing casts (since C++ doesn't have implict conversion from void* to other pointer types nor implicit casts from ints to enumerations) plus a few random things like the use of "private" as a variable name.

There are a few other minor bug fixes; in particular:

  * A long statement with and'ed conditions is reformatted to make it easier to remove other builtin objects (e.g. Date).

  * A #if was added to jsscript.c for the JS_HAS_SCRIPT_OBJECT off case.

  * In jsmath a #ifdef was changed to #if.

My notes also mention...

  * jsobj.c should include jsopcode.h

  * jsfun.c - doesn't link if JS_HAS_ARGS_OBJECT is off

  * jsarray.c - a reference to js_ValueToSource should be conditional on JS_HAS_TOSOURCE

r=mccabe


git-svn-id: svn://10.0.0.236/trunk@59455 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 01:10:31 +00:00
norris%netscape.com
6fc5a6608b Fix bug #25864 watch() vulnerability
r=vidur,rogerl


git-svn-id: svn://10.0.0.236/trunk@59445 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-02 00:22:58 +00:00
jband%netscape.com
83dccd80dd trivial block scope loop counter variable rename to squelch shadow warning.r=jband
git-svn-id: svn://10.0.0.236/trunk@59390 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 10:53:34 +00:00
mccabe%netscape.com
6668f989b3 Warning fixes. (Found one semantic problem in nsCLiveconnect.cpp)
r=mozbot


git-svn-id: svn://10.0.0.236/trunk@59388 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 09:12:58 +00:00
jband%netscape.com
f0476f0cfd add improved support for dumping the JS stack from the native debugger or using the 'debugger' statement in JavaScript. Doc coming to the mozilla site soon. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@59387 18797224-902f-48f8-a5cc-f745e15eee43
2000-02-01 08:48:17 +00:00
norris%netscape.com
41dfd3c7ea Fix use of unsupported typedef.
r=Jerry.Kirk@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@59300 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-31 23:10:12 +00:00
jband%netscape.com
f41619667d trivial rename of local var in test to fix shadow warning
git-svn-id: svn://10.0.0.236/trunk@59155 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-29 04:53:22 +00:00
jband%netscape.com
77d7383029 show more info when a call to wrapped JS object fails due to lack of the callee method - show what we were trying to call rather than let the engine just error out with 'undefined is not a function'. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@59026 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 06:02:41 +00:00
mang%subcarrier.org
337f8a662f Add rules for incremental relinking on Unix to partially fix bug 23724.
The static libraries on Win32 are still broken. r=mccabe


git-svn-id: svn://10.0.0.236/trunk@58993 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-28 01:39:11 +00:00
jband%netscape.com
d4927333c7 make certain that the JSRuntimeService singleton does not go away before the xpconnect singleton. Fix for bug 25093. r=ssu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@58910 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 08:58:48 +00:00
rginda%netscape.com
760c6d99f2 Fix for gcc opt bug described in bug 24892. JSRef build fix only, mozilla build still needs some lovin'.
r=rogerl


git-svn-id: svn://10.0.0.236/trunk@58848 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-27 00:01:29 +00:00
beard%netscape.com
8672d92f96 changes to build on Mac OS X, r=mccabe
git-svn-id: svn://10.0.0.236/trunk@58831 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:48:49 +00:00
mccabe%netscape.com
33c5ea5faf Fix to 24800. Change FREEBSD to __FreeBSD__, allowing the standalone JS engine to build and link on FreeBSD without the client build system (which defines FREEBSD).
Thanks go to braden@endoframe.com for the patch, and to sidr@albedo.net and fur@geocast.com for bug discussion.


git-svn-id: svn://10.0.0.236/trunk@58823 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:27:51 +00:00
beard%netscape.com
4544e5c832 configuration file for Mac OS X.
git-svn-id: svn://10.0.0.236/trunk@58822 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:27:29 +00:00
rogerl%netscape.com
f04da2ffb4 r=norris,waldemar
Fixes for bugs#23607, 23608, 23610, 23612, 23613. Also, first cut at URI
encode & decode routines.


git-svn-id: svn://10.0.0.236/trunk@58818 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 22:15:06 +00:00
jband%netscape.com
3a859cec33 trivial fixes to get rid of warnings
git-svn-id: svn://10.0.0.236/trunk@58775 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 11:08:24 +00:00
jband%netscape.com
7ac1267323 Lots of xpconnect bug fixes...
- fix bug 12954 "should throw when setting non-settable props".

- fix bug 13418 "xpconnect needs to be threadsafe".
I think I filled in the cracks. Tests would be nice :)

- fix bug 22802 "[MLK] XPConnect Leaks".

- fix bug 24119 "[MLK] Reminder about cleaning up maps".

- fix bug 24453 "xpconnect needs default security manager".
I also changed the code in DOM and caps to just install a default secman and
not install a secman for each JSContext.

- fix bug 24687 "xpconect should avoid resolve performance suckage".
Added (modified) patch from shaver to create my JSObjects with the
global object as the temporary proto to avoid losing lookup.

- hack for bug 24688 "runtime errors in wrapped JS are not made obvious"
Added a debug only printf. We still need a JSErrorConsole service for this.

- fix bug 16130 "createInstanace and getService can create wrappers around wrappers"
Fixing this one really entailed changing the semantics of nsIXPConnect::wrapNative
and nsIXPConnect::wrapJS to use common code in xpcconvert that deals with existing
wrappers and DOM objects (with their own schemes for wrapping and unwrapping).
So, I changed the callers because the params changed slightly and some callers
were doing more work than necessary given the new semantics.

- Continued in the crusade to replace manaual refcounting with nsCOMPtrs whenever
touching old code.

- Added myself as first contributor to xpconnect files (vanity prevails!)

- Added new copyright header on some files that were missing it.

- Added some API comments.

- Converted nsXPCWrappedJS to implement nsIXPConnectWrappedJS via MI rather than
the old loser scheme of the nsIXPConnectWrappedJSMethods tearoff object.

- added DumpJSStack as globals to xpconnect and DOM dlls to be callable from
debuggers. I have ideas on how to improve and expand this support soon.

r=mccabe


git-svn-id: svn://10.0.0.236/trunk@58762 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-26 08:38:10 +00:00
rogerl%netscape.com
52f33a0ee6 !! Not a part of the build !!
r=norris. Updated license contents (continuing bug#15529)


git-svn-id: svn://10.0.0.236/trunk@58616 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 18:42:55 +00:00
brendan%mozilla.org
a3f5a85a8c Track js_Invoke API change (24668, r=jband@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@58555 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-25 04:00:45 +00:00
dougt%netscape.com
714da09a59 Landing nsIFile.
git-svn-id: svn://10.0.0.236/trunk@58490 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-24 21:28:28 +00:00
michael.lowe%bigfoot.com
6856aa06f0 Repeating, prioritised timer implementation for Windows and Gtk (bug 22979). author={Win32=michael.lowe@bigfoot.com, Gtk=alex@cendio.se}, r={kmcclusk,rods,sfraser,et al} a=brendan
git-svn-id: svn://10.0.0.236/trunk@58358 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-21 21:56:09 +00:00
brendan%mozilla.org
ed47451d79 Long-awaited fix courtesy rogerl's keen analysis (19165, r=rogerl@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@58217 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 03:53:07 +00:00
briano%netscape.com
6ffbed72ef Some platforms object to using JS_ASSERT without including jsutil.h.
git-svn-id: svn://10.0.0.236/trunk@58210 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-19 03:00:04 +00:00
shaver%netscape.com
3195f05f4b reminder comment, r=brendan
git-svn-id: svn://10.0.0.236/trunk@58137 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 22:38:56 +00:00
shaver%netscape.com
73c394bee1 add JS_CompileFileHandleForPrincipals, (r=rginda)
git-svn-id: svn://10.0.0.236/trunk@58131 18797224-902f-48f8-a5cc-f745e15eee43
2000-01-18 22:04:01 +00:00