Commit Graph
1121 Commits
Author SHA1 Message Date
jband@netscape.com 0913c01126 trivial fixes to get rid of warnings 2000-01-26 11:08:24 +00:00
jband@netscape.com 83af0a10ba 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
2000-01-26 08:38:10 +00:00
rogerl@netscape.com b42fb9dc40 !! Not part of the build !!
Fixed some typo's
2000-01-26 01:29:51 +00:00
waldemar@netscape.com c587e4923e Rearranged link order 2000-01-25 23:00:19 +00:00
waldemar@netscape.com 7a50075e2a Added constructor 2000-01-25 22:59:28 +00:00
waldemar@netscape.com 2e0c20860a Added char16 and uchar16 2000-01-25 22:58:55 +00:00
waldemar@netscape.com 119ba33bba Added string, character, and exception utilities 2000-01-25 22:58:34 +00:00
waldemar@netscape.com 11fcf9d5f9 Continuing to implement 2000-01-25 22:57:32 +00:00
waldemar@netscape.com 61beed1df0 Switched to using appendChars 2000-01-25 22:56:48 +00:00
waldemar@netscape.com d2065c0f5e Fixed syntax error 2000-01-25 22:56:14 +00:00
rogerl@netscape.com cc8071d9eb !! Not a part of the build !!
r=norris. Updated license contents (continuing bug#15529)
2000-01-25 18:42:55 +00:00
brendan@mozilla.org afa336d2f5 Track js_Invoke API change (24668, r=jband@netscape.com). 2000-01-25 04:00:45 +00:00
dougt@netscape.com d48ec37751 Landing nsIFile. 2000-01-24 21:28:28 +00:00
michael.lowe@bigfoot.com 9875af405d 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 2000-01-21 21:56:09 +00:00
rginda@netscape.com 17ef68d3a9 Fixed testcase 2000-01-20 20:35:39 +00:00
rginda@netscape.com 8a8fb8de94 Remove 'use 5.004;', only seems to work on linux 2000-01-20 01:21:05 +00:00
brendan@mozilla.org cbda12912a Long-awaited fix courtesy rogerl's keen analysis (19165, r=rogerl@netscape.com). 2000-01-19 03:53:07 +00:00
briano@netscape.com 12c75fcd2f Some platforms object to using JS_ASSERT without including jsutil.h. 2000-01-19 03:00:04 +00:00
rginda@netscape.com 11ccbe1895 Initial add. 2000-01-19 01:46:25 +00:00
rginda@netscape.com fab05d0cc5 Added regexp to test 2000-01-19 01:36:54 +00:00
rginda@netscape.com 2358b74882 Initial Add 2000-01-19 01:19:16 +00:00
rginda@netscape.com 50fee6f872 Initial add 2000-01-19 00:51:21 +00:00
rginda@netscape.com a4c0b5afd2 corrected testcase 2000-01-19 00:47:24 +00:00
rginda@netscape.com ba192426a2 initial add 2000-01-19 00:34:03 +00:00
rginda@netscape.com 9140e4c217 Initial add 2000-01-19 00:16:20 +00:00
rginda@netscape.com 8311b6a26e initial add 2000-01-19 00:08:55 +00:00
shaver@netscape.com c9b82fec65 reminder comment, r=brendan 2000-01-18 22:38:56 +00:00
shaver@netscape.com 0d55725343 add JS_CompileFileHandleForPrincipals, (r=rginda) 2000-01-18 22:04:01 +00:00
brendan@mozilla.org 6002ceb6c7 JS1.5 fixes (17290, 21618, plus shaver's 22243 fix, r=shaver@mozilla.org). 2000-01-18 11:06:05 +00:00
rginda@netscape.com f518ee73bb revised incorrect testcase 2000-01-14 22:23:08 +00:00
jband@netscape.com 609b771967 - checkin of test for arrays of interface fix that went in yesterday.
- fix to xpcconvert NativeData2JS to support getting JSObject of DOM object
even when not running on a DOM created JSContext.
- some updates to comments, etc.
r=mccabe
2000-01-14 08:26:34 +00:00
rginda@netscape.com 98d8ee2caf Initial checkin of tostring test 2000-01-13 00:31:09 +00:00
rginda@netscape.com aa9cf65d3a First round of Mac related changes.
It runs now, but test list files and single test files on the command line are still broken.
2000-01-12 22:02:23 +00:00
pp@ludusdesign.com d459b2ef64 Converting usage of ::GetIID() to NS_GET_IID().
Bug #20232, r=scc@netscape.com
2000-01-11 20:49:15 +00:00
waldemar@netscape.com e7d4521a07 Added unicode character category functions 2000-01-11 05:55:58 +00:00
cls@seawood.org 30b6994f16 Removed redundant XPDIST from the build. Changed existing references to DIST.
Replaced all uses of $(DIST)/include with $(PUBLIC) except those looking for NSPR headers.
Removed extra instances of $(DIST)/include or $(PUBLIC) from INCLUDES as it's already there.
Override OS_LIBS when setting host variables for cross-compiling.
2000-01-11 05:13:01 +00:00
beard@netscape.com 72d04f5e4c initial check-in. 2000-01-11 01:46:27 +00:00
jdunn@netscape.com 81b35946b1 Fix base class specifiers, since be default if they aren't specified it is Private
# 23237
r= warren@netscape.com, ftang@netscape.com, jband@netscape.com
2000-01-11 01:45:34 +00:00
waldemar@netscape.com f2a8e52162 First Checked In. 2000-01-10 21:22:43 +00:00
waterson@netscape.com d16c5155f0 Bug 23320. Per Franz.Sirl-kernel@lauterbach.com's suggestion, fix passing of va_list for platforms that typedef to an array. r=brendan 2000-01-08 00:32:25 +00:00
rginda@netscape.com 6f5469084b s/local/my for strict mode.
y2k fix for results file name.
2000-01-07 21:39:36 +00:00
jdunn@netscape.com df9b4c7a72 resolving all unresolved symbols at link time
#= 18896 (continuation)
r= pepper@netscape.com - but ramiro and I talked about these types of changes ages ago
2000-01-07 02:46:06 +00:00
jband@netscape.com b6719f0a43 change the module string name. not part of build 2000-01-07 02:25:47 +00:00
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