Commit Graph

23928 Commits

Author SHA1 Message Date
mccabe@netscape.com
b6ddc7bb6f Warning fix for uninitialized structure members. r=fur,slamm. 1999-11-11 01:15:43 +00:00
waterson@netscape.com
fbf00c7078 Bug 18408. Use 'ObjectAt()' rather than 'Peek()', which looks at the
front of the queue. r=jband
1999-11-10 21:59:05 +00:00
shaver@netscape.com
7b9ca640ce fix build bustage from big dumb shaver 1999-11-10 02:04:58 +00:00
shaver@netscape.com
693e975de4 - use JSThreadContextStack and JSRuntimeService (more) correctly in loader
- teach loader about unloading and deferring components
- turn off some DEBUG_shaver noise
- better error reporting
- use nsXPIDLCString
- use nsCOMPtr
- add missing cxstack->Pop() in the xpcshell
- Components.results.NS_ERROR_FACTORY_REGISTER_AGAIN (want better text for
  error message)
- handle thrown-nsresult correctly where C++ calls JS without an active JS
  stack
- remove missing cxstack->Pop() from TestXPC
r=jband,brendan
1999-11-10 00:34:26 +00:00
dmose@mozilla.org
796280940b updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 03:40:37 +00:00
dmose@mozilla.org
34fd2555cf updated license boilerplate to xPL 1.1, a=chofmann@netscape.com,r=endico@mozilla.org 1999-11-06 02:47:15 +00:00
taek@netscape.com
86ac02e738 updated to use /share/builds/components 1999-11-06 02:11:18 +00:00
drapeau@eng.sun.com
a9d6b644fd r=fur@netscape.com, approval=chofmann@netscape.com. Fix for bug 5369
("[PP]Crash on startup because of Java Plug-in 1.3 for Netscape
Navigator.")  Make the code more bulletproof by checking for NULL
arguments to several methods.  If JVM isn't running, jEnv arg should
be NULL.

This doesn't entirely fix the problem of a JVM gone awry in all cases;
in the case of this particular bug, the Sun JDK 1.3 Beta HotSpot VM
caused an error, and there's no way for Mozilla code to detect this
failure mode.  The fix for that half of the problem is to use the new
JDK 1.3 Early Access VM, which does not exhibit the problem.
1999-11-06 00:24:42 +00:00
rogerl@netscape.com
9f07839adf Not a part of SeaMonkey Build
- new LiveConnect AIX4.3 makefile for server builds
1999-11-03 22:55:03 +00:00
rogerl@netscape.com
51125ccd6c Added defn of AIX4_3 to help fix dup typedef int8,int16 etc 1999-11-03 18:56:17 +00:00
mccabe@netscape.com
4a54c7ad67 Fix many nsInterfaceInfo leaks, thanks in part to patches provided by Patrick Beard. Fixes 15855. Some remain.
Clear up build warnings, and quiet nsInterfaceInfomanager debug output unless DEBUG_iim.  Makes startup a li'l less noisy.  Fixes 15628.

r=jband
1999-11-03 07:23:37 +00:00
waldemar@netscape.com
1d1b6dd0c0 Removed distribution restrictions because this is part of the language spec 1999-11-03 03:59:31 +00:00
waldemar@netscape.com
c44aef0135 Updated to Mozilla 1.1 license 1999-11-03 03:58:07 +00:00
rogerl@netscape.com
26ba46ec7f Not a part of SeaMonkey Build
- added lnker option for server folks
1999-11-03 00:28:51 +00:00
jband@netscape.com
10d744c960 r=mccabe use NS_NewTimer stuff only on Win32 in this test code. This avoids Unix build order problems that were keeping the xpconnect test components from working at all. 1999-11-02 23:35:54 +00:00
jband@netscape.com
ab1468d021 r=mccabe make output from xpcshell's new 'dump' method go to the same place as output of 'print': stdout rather than stderr 1999-11-02 23:31:09 +00:00
dmose@mozilla.org
9a2e0100b4 updated license boilerplate to xPL v1.1 1999-11-02 22:23:59 +00:00
waldemar@netscape.com
c152184cb0 Added more no-line-break constraints, simplified visibility treatment, and added named function arguments 1999-11-02 21:12:04 +00:00
msw@gimp.org
222578deb7 applied patch in 14263 to build xpconnect as a component on
Linux/alpha.  Should also fix 13601, 11847.
r=jband@netscape.com
1999-11-02 21:03:13 +00:00
waldemar@netscape.com
671d090951 Fixed constraint positioning bug 1999-11-02 20:54:44 +00:00
mccabe@netscape.com
5cb8995f3d Reverting lib fix to fix impending bustage. 1999-11-02 07:39:51 +00:00
mccabe@netscape.com
372f099bc1 Another stab at linking with the timer static library - this time using EXTRA_DSO_LDOPTS.
r=jband
1999-11-02 06:53:58 +00:00
jband@netscape.com
bfdc4682d1 - Add test code for calling back via a timer on potentially other JSConetxt
to the xpconnect echo interface. This will help fix bug 17736. This includes
using nsITimer which is a pretty messed up xpcom interface w/o a factory.

- Added dump() to xpcshell to make it compatible with browsers debug
output method.

- reformat beard's leak fix to follow 80 column rule.

- Add a missing dont_AddRef to avoid a leak in some debug code.

r=mccabe
1999-11-02 05:55:29 +00:00
brendan@mozilla.org
90f0a68b62 Fixed getter/setters, pave way for brutal sharing (15146, r=shaver@mozilla.org,rogerl@netscape.com) 1999-11-02 02:23:50 +00:00
rogerl@netscape.com
b6dc7bcbcf Changed -n to regular since the error is getting detected in the code now. 1999-11-02 01:55:59 +00:00
waldemar@netscape.com
723ab242ee Added basic no-line-break constraints matching JavaScript 1.x 1999-11-02 01:46:05 +00:00
waldemar@netscape.com
36cc2b06c4 Added no-line-break constraints 1999-11-02 01:45:31 +00:00
waldemar@netscape.com
e054c75a91 Fixed comment 1999-11-02 01:45:14 +00:00
waldemar@netscape.com
2f72348d0d Added :no-line-break 1999-11-02 01:44:24 +00:00
waldemar@netscape.com
d32e63ffd1 Fixed annoying use of *error-output* that would always bring the listener window to the front while compiling a grammar 1999-11-02 01:43:52 +00:00
rogerl@netscape.com
84f03d358a That's much cooler - i'm putting the 0 case back then. 1999-11-02 01:31:45 +00:00
rogerl@netscape.com
ecf199121f Needed string parameter in order to pass type comparison correctly.
Added missing TITLE declaration.
1999-11-02 01:03:52 +00:00
rogerl@netscape.com
c4884cb93a Moved nested function out - new ECMA definition. 1999-11-02 01:02:55 +00:00
rogerl@netscape.com
61b4efff32 Put test case in eval statement to catch error. 1999-11-02 01:02:03 +00:00
rogerl@netscape.com
d5016869e5 Added missing TITLE declaration 1999-11-02 01:01:34 +00:00
rogerl@netscape.com
479a45b695 Belay that, the tests were fine, the code HAS changed. 1999-11-01 23:16:00 +00:00
tbogard@aol.net
d9fee9031e Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt 1999-11-01 21:43:56 +00:00
beard@netscape.com
2e3c5abacf fix nsIInterfaceInfoManager leak. bug=15380, r=jband 1999-10-30 05:48:07 +00:00
rogerl@netscape.com
7e49a982e8 I changed the exepcted value for object.toString() calls on the empty
object - There's no clear documentation of the result, but the source
code unambiguously calls 'js_obj_toSource', which inserts the extra '()'
under the version1_2 flag, so I believe this is the correct result.
1999-10-29 23:02:17 +00:00
rogerl@netscape.com
7b45f8d2ed Changed to account for latest ECMA spec on back-references vs. octal 1999-10-29 22:50:43 +00:00
rogerl@netscape.com
8f9028c625 New ECMA spec for no argument calls to max & min - should return +/- Inf 1999-10-29 22:48:33 +00:00
brendan@mozilla.org
b2e12917e3 Add JS_VersionToString and JS_StringToVersion, updated Impl. Version (13163, r=shaver@mozilla.org). 1999-10-29 22:44:35 +00:00
rogerl@netscape.com
a641109cfa r=norris
Change for ECMA spec. - String.charCodeAt, etc call ToInteger on index.
Ditto - String.match(re) was constructing /undefined/ instead of empty
regexp.
1999-10-29 22:27:33 +00:00
rogerl@netscape.com
458e63e1ee r=norris
Opinion was that Script.exec() should execute in global scope, not caller.
1999-10-29 22:25:25 +00:00
rogerl@netscape.com
b3b0eef21f r=norris
Fixed accidental eating of exceptions (match loop didn't terminate on
failure). New ECMA definition (again) of back reference format.
1999-10-29 22:23:36 +00:00
rogerl@netscape.com
22682816bb r=norris
New ECMA behaviour for max & min.
1999-10-29 22:21:54 +00:00
rogerl@netscape.com
726172dc11 r=norris
Upgrading to new ECMA - conversionError subsumed by TypeError.
1999-10-29 22:20:23 +00:00
rogerl@netscape.com
4850db25f2 r=norris, Bug#16984
New error message for function.apply arguments.
1999-10-29 22:19:04 +00:00
rogerl@netscape.com
a09a4d2a9c New, spawned from AIX4.2.mk. 1999-10-29 21:14:31 +00:00
jband@netscape.com
341e56987e r=shaver@mozilla.org
- Fix for bug 13419 - xpconnect calls wrapped JS objects on wrong JSContext.
Added code to use the nsThreadJSContextStack in order to call wrapped
JS object on the JSContext that is current for the running thread.

We've made the rule that xpconnect only supports one JSRuntime. We
partially enforce that here by enforcing that the JSContext on which
we will run code hails from the same JSRuntime as the JSContext on
which the wrapper for the JS code was built.

Because it is perfectly legal for the nsThreadJSContextStack to be empty
if a wrapped JS object is being called from code other than a DOM event,
this system will lazily create a JSContext for the current thread and
maintain it in TLS. This JSContext is used as necessary. If it uses such
a JSContext that was not already on the nsThreadJSContextStack then the
system will temporarily push that JSContext onto the nsThreadJSContextStack
during the course of the function call being performed. This is all managed
my a new auto class: AutoPushCompatibleJSContext. This is used in the two
places where wrapped JS code is called from native code.

[the two places where this system is invoked are currently disabled due to
the fact that the DOM code makes bad assumptions about the JSContext on
which DOM objects can be accessed. We are working to fix that and then this
code will be enabled.]

- Add #ifdef XPC_DETECT_LEADING_UPPERCASE_ACCESS_ERRORS code that will help
users when we do things like fix bug 14460. As soon as we make more of the
idl declarations of methods leadingLowercase then we will have
LeadingUppercase calls from JS breaking at runtime. It is expected that this
will especially be a problem for coders working with the same interfaces
from both C++ and JS (since from C++ an interface has LeadingUpper methods and
the *same* interface seen from JS has leadingLowecase names). This code
(as suggested by shaver) will print out an informative error message when
it detects the misuse. This is currently enabled for DEBUG builds only.

- Copy code from xpcshell to TestXPC to use the JSRuntimeSerivce.

r=norris@netscape.com
- Check to see if a wrapped JS object has a QueryInterface property before
trying to call that method. This is a speed optimization. It also and makes
norris happy because his perrenial breakpoint in jsReportErrorNumber is not
getting hit (even though the old code was safe).
1999-10-29 05:42:41 +00:00