Commit Graph

23928 Commits

Author SHA1 Message Date
jband@netscape.com
d4d3d478b6 use generic module stuff. My part to fix bug 22922. r=dp 2000-01-07 02:24:39 +00:00
jband@netscape.com
0193278be5 add support for Components.Constructor to build constructors for xpcom objects from JS. r=mccabe 2000-01-07 02:21:14 +00:00
jband@netscape.com
1fb39b21ef fix leak of argument formatters upon JSContext destruction. bug 22802. r=rogerl 2000-01-07 02:19:44 +00:00
rogerl@netscape.com
b4952fb34f Fixed accidental trailing semi at end of if statement. Many thanks to
everyone who participated in this test of the warning detection system.
2000-01-07 00:15:11 +00:00
norris@netscape.com
19499f6953 Test didn't work with the Rhino feature of reflecting bean properties as JavaScript propertes: getClass() becomes
a "class" property, and eval'ing a property name of "class" causes a syntax error.
2000-01-06 22:54:15 +00:00
edburns@acm.org
48a65e11e8 I know it's unorthodox to do a top level checkin like this, but I've got so many files
in so many different directories, that I think it's the best way.
I've pulled and clobber_all'd my tree and got

r=dp

on this checkin.

Here are the touched files:

M mozilla/embedding/browser/activex/src/control/MozillaBrowser.cpp
M mozilla/embedding/browser/activex/src/control/MozillaBrowser.h
M mozilla/js/src/xpconnect/shell/xpcshell.cpp
M mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp
M mozilla/xpcom/build/nsXPComInit.cpp
M mozilla/xpcom/components/nsComponentManager.cpp
M mozilla/xpcom/components/nsIServiceManager.h
M mozilla/xpcom/components/nsServiceManager.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.cpp
M mozilla/xpcom/io/nsSpecialSystemDirectory.h
M mozilla/xpcom/tests/TestBuffers.cpp
M mozilla/xpcom/tests/TestPipes.cpp
M mozilla/xpcom/tests/TestShutdown.cpp
M mozilla/xpcom/tests/windows/TestHelloXPLoop.cpp
M mozilla/xpcom/tools/registry/regExport.cpp
M mozilla/xpcom/tools/registry/regxpcom.cpp
M mozilla/xpinstall/stub/xpistub.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.cpp
M mozilla/webshell/embed/ActiveX/MozillaBrowser.h
M mozilla/webshell/tests/viewer/nsMacMain.cpp
M mozilla/webshell/tests/viewer/nsPhMain.cpp
M mozilla/webshell/tests/viewer/nsWinMain.cpp
M mozilla/webshell/tests/viewer/unix/gtk/nsGtkMain.cpp
M mozilla/xpfe/appshell/src/nsFileLocations.cpp
M mozilla/xpfe/bootstrap/nsAppRunner.cpp

The heart of this checkin is a change in the signature and symantics
of NS_InitXPCOM.

The new signature is

extern NS_COM nsresult
NS_InitXPCOM(nsIServiceManager* *result, nsFileSpec* binDirectory);

I filed a bug for this problem:

b=23157

The original manifestation of this bug was in mozilla/netwerk/protocol/res/src/nsResProtocolHandler.cpp It used the current process directory to find resources, which is not correct when the current process is not mozilla.exe.

I have added a new type to nsSpecialSystemDirectory, Moz_BinDirectory, and made nsResProtocolHandler use that value.
2000-01-06 01:05:13 +00:00
jdunn@netscape.com
90f7dfb743 |T| requires an accessible default constructor (on some old compilers)
This is the same as mozilla/netwerk/cache/mgr/nsCachedNetData.h
(also declared nsIXPCWrappedNativeScope to be public since by default it is private

r= scc@netscape.com
2000-01-06 00:59:07 +00:00
jband@netscape.com
c4785aaf10 adding new files. not part of build 2000-01-03 22:34:01 +00:00
blizzard@redhat.com
2126e6b818 Change nsComponentManager::ProgIDToCLSID to nsComponentManager::ProgIDToClassID as per bug #3579. Checking in for sford. r=scc,r=blizzard 1999-12-30 22:03:58 +00:00
rogerl@netscape.com
79b27cac74 Fixed copyright dates and added lincense boilerplate. 1999-12-22 22:03:59 +00:00
rogerl@netscape.com
107b19ab58 Changed comment format to C-style. 1999-12-22 22:02:16 +00:00
rogerl@netscape.com
4de1c4b5a5 r=brendan
Bug #20444, delete of non-reference
1999-12-22 22:01:19 +00:00
rogerl@netscape.com
dbf2794ebc r=brendan
Bug #21836, apply didn't check for non-object argument.
1999-12-22 22:00:07 +00:00
rogerl@netscape.com
3e89ef4511 r=brendan
Bug #21799, uncaught throw of null crash.
1999-12-22 21:58:53 +00:00
rogerl@netscape.com
a57fb1aa4b r=norris
Bug #20547 & 20549 - ECMA3 compatible handling of String.replace and fixes
to $ handling.
1999-12-22 21:57:10 +00:00
cls@seawood.org
07e04a0aae Partial fix for bug 20254. Allow flags passed to CFLAGS during configure be used for both compiling & linking. CFLAGS as we know it becomes COMPILE_CFLAGS so that platforms that cannot link using DSO flags (qnx) can still build. The new CFLAGS will not have DSO flags and will be used primarily for linking.
Remove OPTIMIZER & XP_DEFINE from config.mk
1999-12-22 03:40:16 +00:00
mccabe@netscape.com
77c190e947 #ifdefs to build the JavaScript engine under metrowerks on windows machines.
Fixes courtesy Chris Dillman <chrisd@plaidworld.com>.

r=mccabe
a=sdagley
1999-12-22 00:03:50 +00:00
sspitzer@netscape.com
84e7ae5d17 ignore generated Makefile 1999-12-21 22:41:26 +00:00
jband@netscape.com
96cd1122b1 fix new warnings resulting from my carpool 1999-12-18 22:33:18 +00:00
jband@netscape.com
7dd55bbe9f added files: mozilla/js/src/xpconnect/idl/nsIXPConnect.idl 1999-12-18 21:08:57 +00:00
jband@netscape.com
a2f07bf324 added files: mozilla/js/src/xpconnect/src/xpcwrappednativescope.cpp, mozilla/js/src/xpconnect/src/xpcjsruntime.cpp 1999-12-18 20:29:52 +00:00
jband@netscape.com
2e04e1dd4e Landing big set of DOM and XPConnect changes:
DOM: getting rid of JS_GetContextPrivate wherever possible. Use static parent
links where we can. When we do need to find this info about the caller
we call a function that knows how to get that info rather than inline calls
to JS_GetContextPrivate. This is all required for calling DOM objects on
non-DOM JSContexts as we do via xpconnect.

XPConnect: basic refactoring work to disassociate wrappers from the JSContext
that was active when the wrapper was constructed. This allows for calling into
wrapped JS objects on the right JSContext and for proper grouping of wrapped
native objects so that they can share proto objects. This also allows for
better sharing of objects and lays the foundations for threadsafety and
interface flattening.

Also, xpconnect tests are reorganized and improved.

fixes bugs: 13419, 17736, 17746, 17952, 22086

r=vidur r=mccabe r=norris r=cbegle
a=chofmann
1999-12-18 20:29:29 +00:00
jband@netscape.com
3519c71dd9 removed files: mozilla/js/src/xpconnect/idl/xpctest.idl, mozilla/js/src/xpconnect/idl/xpctest2.idl 1999-12-18 19:10:33 +00:00
rginda@netscape.com
17a698b2f0 Updated to match the js1.5 announcement's terminology 1999-12-18 00:53:53 +00:00
rogerl@netscape.com
3cc983c944 Fixed typeof test on enumerated object result - is always string now. 1999-12-17 01:53:48 +00:00
waterson@netscape.com
98d2ea6556 Bug 21643. Temporary hack to avoid leaking root wrapper when creating both, and root != wrapper. Note that the fix is 'sloppy', as there are flows-of-control that could potentially leak the NS_ADDREF(); however, since jband is rewriting this stuff RSN, and that stuff doesn't really ever fail too often, we'll let i slide. r=jband 1999-12-17 00:02:58 +00:00
rginda@netscape.com
fd0f35edcc Updated README document.
formatting nit in jsDriver.pl
Added comment to the rhino neg list
1999-12-16 22:38:49 +00:00
rginda@netscape.com
a40cbd24e1 Added verbose flag for testcase debugging purposes 1999-12-16 22:35:43 +00:00
rginda@netscape.com
f3b732d1fa Fix spacing nit. 1999-12-16 22:34:05 +00:00
rginda@netscape.com
4ee506f507 Fixed 001 test, added 002 test 1999-12-16 22:32:52 +00:00
rginda@netscape.com
d6ef654dc3 Added apply test for bug 21836 1999-12-16 00:21:36 +00:00
rginda@netscape.com
f4d93ea8a8 Adding null throw and undefined throw tests 1999-12-15 21:17:25 +00:00
mccabe@netscape.com
c4a66bfa49 Add missing JS_END_EXTERN_C to match JS_BEGIN_EXTERN_C at the beginning. Thanks to Till Volmer <tvollmer@hyperwave.com> cor spotting this.
r=mccabe, a=brendan.
1999-12-14 22:39:54 +00:00
briano@netscape.com
4f30de40e2 Final portion of the fix for bug 20882. Just a cleaner way of doing what is already being done. 1999-12-14 00:56:50 +00:00
rginda@netscape.com
8f3cedcdb8 Simple get/set test. 1999-12-13 22:47:31 +00:00
shaver@netscape.com
894050b8ad fix JS component loader by reimplementing nsGenericModule (r=dveditz,slamm;a=leaf) 1999-12-13 22:33:11 +00:00
rginda@netscape.com
55d13e1891 Added printStatus function to shell.js
Added some catchguard tests
1999-12-13 00:37:01 +00:00
rogerl@netscape.com
4ec53387e6 Fixed test of enumerated property to use isNaN - a previous bug fix in
enumerated types stopped it from returning anything but strings here.
1999-12-11 00:44:02 +00:00
rogerl@netscape.com
984c02cba3 Removed tests invalidated by new argument rules - java.lang.String is
preferred over java.lang.Double when coming from a Java Object and both
Double & Float have constructors that take a String - only the DataType
toString doesn't return the correct value for the test. (See Christine's
comment).
1999-12-11 00:42:43 +00:00
rogerl@netscape.com
aa9d05f004 Updated tests to account for new LiveConnect behaviour for JS array type
as input argumnet - it used to be handled as any other JS object, but there
are now new rules for arrays, invalidating portions of these tests.
1999-12-10 19:56:23 +00:00
briano@netscape.com
923bb47f3c QNX-specific build bustage fix. va_list is an array on QNX, so assignments need to use array notation. 1999-12-09 03:09:56 +00:00
norris@netscape.com
e0c0885a75 Add list of inapplicable tests for rhino. 1999-12-08 22:42:18 +00:00
rginda@netscape.com
f8ab578dd6 Fixing stupid mistake. 1999-12-08 22:26:19 +00:00
rginda@netscape.com
bd4198e601 Turned off automatic fslash insertion for shellpath (it now takes a full exe name)
Added --noexitmunge option for systems that don't report the exitcode/exitsignal "properly"
1999-12-08 22:21:41 +00:00
fur@netscape.com
907a2d6166 Fix #12367. Don't crash evaluating 'foo.constructor' if foo is a JavaObject.
r:none
1999-12-08 07:41:35 +00:00
briano@netscape.com
39d48b61fa Change for QNX 4 to work around their extremely limited compiler and linker, which aren't capable of creating an object from a lib as we're doing here with jsmath.o. 1999-12-08 04:03:24 +00:00
briano@netscape.com
fb99d15b2a QNX-specific build bustage fix. Also excludes NTO just in case both are defined under Neutrino. 1999-12-08 03:58:40 +00:00
waldemar@netscape.com
a22e371a90 Removed field, method, and constructor. Added static. 1999-12-08 00:35:00 +00:00
waldemar@netscape.com
478f9ea45b Fixed Harlequin incompatibilities 1999-12-08 00:34:29 +00:00
waldemar@netscape.com
12a5f8ac0b Added next-token-unit. Simplified grammar and removed boolean actions that indicate whether the next token can be a regexp. Added assertion that a * can't follow a division. 1999-12-07 22:09:10 +00:00