Commit Graph

76383 Commits

Author SHA1 Message Date
nicolson%netscape.com
0be719232d build ssl now. 2001-02-09 11:27:13 +00:00
nicolson%netscape.com
dc4a25c558 remove libfort, add lib jssssl. 2001-02-09 11:26:48 +00:00
nicolson%netscape.com
a9186e6910 Checkin new SSL code. SSLClient test works. 2001-02-09 11:26:34 +00:00
jst%netscape.com
afbd4d40e5 Interface cleanup, not part of the build. 2001-02-09 11:20:07 +00:00
hyatt%netscape.com
45d8e8e8db Not part of build. 2001-02-09 09:48:33 +00:00
hyatt%netscape.com
a1ec13c771 Not part of build. 2001-02-09 07:46:46 +00:00
hyatt%netscape.com
593afa17e7 Not part of build. 2001-02-09 07:38:16 +00:00
hyatt%netscape.com
c1ef897223 Not part of build. 2001-02-09 07:21:01 +00:00
sspitzer%netscape.com
25c3d92777 performance tweak. see #68174 2001-02-09 06:33:32 +00:00
waldemar%netscape.com
c1f0f50f76 A few new semantics 2001-02-09 05:00:28 +00:00
leaf%mozilla.org
af4f6480ae change user agent string to reflect reality better (m18->0.8). r=timelese, a=blizzard 2001-02-09 04:48:26 +00:00
nelsonb%netscape.com
ecb09e90e8 Modify ssl_FindSocket() to set error PR_BAD_DESCRIPTOR_ERROR when it
cannot find the SSL layer on the specified PRFileDesc. Ensure all
callers detect when ssl_FindSocket returns NULL and handle it properly.
Bug 68241. Reviewed by jgmyers and relyea.
Modified Files:
 	prelib.c sslauth.c sslsecur.c sslsock.c
2001-02-09 02:11:31 +00:00
javi%netscape.com
55963742ba Clean up the NSS initialization code including loading of Root Cert module. 2001-02-09 01:56:29 +00:00
relyea%netscape.com
a2d46ed98c update certutil and modutil to use the new NSS_Initialize signature.
modutil can now specify it's nocertdb paramter.

bug 64260 reviewed by wtc
2001-02-09 01:38:04 +00:00
relyea%netscape.com
9a4a2d9ddb Allow applications to initialize nss without necessarily initializing databases.Needed to keep old modutil semantics. Bug 66230. reviewed by wtc. 2001-02-09 01:34:12 +00:00
relyea%netscape.com
ea8de3c817 Move cdbhdl.h to private exports. bug 64260 revied by nelsonb. 2001-02-09 01:32:42 +00:00
mscott%netscape.com
5f4d1fbfb0 Bug #67481 --> our JS object needs to implement nsIWeakReference
sr=sspitzer/alecf
r=blake
a=asa
2001-02-09 01:12:57 +00:00
ben%netscape.com
fd197c0951 workaround for .8 for 630seven8, r=blake, cmanske, sr=alecf, a=asa. bug remains open
as this is just a temporary workaround to prevent mac optimized crash.
2001-02-09 01:09:00 +00:00
nelsonb%netscape.com
01bdbccb5d Allow application to customize cert verification slop time.
Default is 24 hours.  Bug 48300. Reviewed by wtc.
Modified Files:
 	lib/nss/nss.def lib/certdb/cert.h lib/certdb/certdb.c
2001-02-09 01:06:41 +00:00
nelsonb%netscape.com
7dcf6f9722 Make SSL API consistent in using SECStatus as return value for functions
that return only values in that enumeration.  Bug 68097. R&A = relyea.
Modified Files:
 	lib/ssl/ssl.h lib/ssl/sslauth.c lib/ssl/sslsecur.c
 	lib/ssl/sslsnce.c lib/ssl/sslsock.c cmd/selfserv/selfserv.c
 	cmd/strsclnt/strsclnt.c
2001-02-09 00:32:14 +00:00
sspitzer%netscape.com
a19886858a NOT PART OF THE BUILD. 2001-02-09 00:23:50 +00:00
rginda%netscape.com
72b7a04c48 mac build goop for tests/cpp and utilities.cpp fix for debug targets on mac 2001-02-09 00:08:22 +00:00
sspitzer%netscape.com
5f38dffcb9 hoy hoy hoy! NOT PART OF THE BUILD. 2001-02-08 23:57:20 +00:00
sspitzer%netscape.com
d8c0564edb NOT PART OF THE BUILD. 2001-02-08 23:44:47 +00:00
javi%netscape.com
4e85b7019a Fix for Bug 68063 r=nelsonb, a=wtc Make NSS_Init backwards compatible for the Mac. 2001-02-08 23:43:00 +00:00
jj%netscape.com
1b0a703137 #65764 / Bugscape #3508: Update Mac version strings to 0.8. a=r=leaf 2001-02-08 23:33:46 +00:00
hyatt%netscape.com
c6ab0beeea XBL insertion point fixes: 67990, 67574, and the dependent bug 55292 all get fixed. 2001-02-08 23:24:55 +00:00
rginda%netscape.com
ff2bfe5809 Changes to get mac building the js2 library 2001-02-08 23:05:53 +00:00
kestes%tradinglinx.com
0220e79ea9 Fixed typo form.
maxdate field was not formatted in the same way as the
mindate field, this caused the value to not be loaded from the URL.
2001-02-08 22:53:34 +00:00
sspitzer%netscape.com
b02818304f more hacking with the anipals. NOT PART OF THE BUILD. 2001-02-08 22:43:29 +00:00
kin%netscape.com
a907c4ffe0 Initial checkin of XPIDL'ized TransactionManager interfaces.
NOT PART OF THE BUILD YET!
2001-02-08 22:12:30 +00:00
sspitzer%netscape.com
c66c6bce12 more hacking with bienvenu. NOT PART OF THE BUILD. 2001-02-08 22:04:50 +00:00
sspitzer%netscape.com
2aab18fb0a NOT PART OF THE BUILD. more hacking with bienvenu. 2001-02-08 22:02:48 +00:00
rginda%netscape.com
43a1235c75 Turn on RTTI 2001-02-08 21:48:19 +00:00
rginda%netscape.com
b219c01b86 Adding windows build goop for the tests 2001-02-08 21:38:52 +00:00
waterson%netscape.com
a964382ebd Bug 67900. Unitialized bare pointer with nsCOMPtr, avoiding crash if GetElementResource() fails, and fixing a leak to boot. r=scottip,rjesup; sr=alecf; a=blizzard 2001-02-08 21:25:13 +00:00
rginda%netscape.com
31b6ee0ac8 Changes to get the lib building in vcc 2001-02-08 21:13:16 +00:00
pinkerton%netscape.com
0e10555210 Backout of 30841 to fix menus not going away when clicking in the title bar
r=pink/sr=hyatt/a=asa
2001-02-08 21:06:43 +00:00
rginda%netscape.com
54ddb30990 ok, let's try that again. 2001-02-08 21:04:06 +00:00
rginda%netscape.com
0b6511d8b3 Changed vc build to make a library instead of an exe 2001-02-08 20:56:56 +00:00
blizzard%redhat.com
90d96ec1d7 Fix bug #68057. Track visibility changes so that windows opened via window.open() actually open properly. 2001-02-08 20:12:13 +00:00
nboyd%atg.com
82bd85bfce Fix for problem:
Subject:
             Rhino Exception Handling: Inconsistency btw Old/New Versions of 1.5
        Date:
             Mon, 05 Feb 2001 06:07:07 -0800
       From:
             Timothy Bergeron <bergeron@resumerabbit.com>
 Organization:
             Another Netscape Collabra Server User
 Newsgroups:
             netscape.public.mozilla.jseng




I've been using Rhino for about a year with almost no problems. However,
I downloaded the latest Rhino tip (rhino15R2pre) and discovered a
significant difference in exception handling.

I rely heavily on JavaScript code like the following:

try {
   var em  = new ExceptionMaker();
   em.npe();  // method throws a java.lang.NullPointerException
   //em.ae();  // method throws a Packages.AutomationException
}
catch (e if (e instanceof java.lang.NullPointerException)) {
   java.lang.System.out.println("Caught a NullPointerException");
   e.printStackTrace();
}
catch (e if (e instanceof Packages.AutomationException)) {
   java.lang.System.out.println("Caught an AutomationException");
}
catch (e) {
   java.lang.System.out.println("Caught an unexpected exception: "+e);
}
finally {
   java.lang.System.out.println("Finally!");
}

Previous Rhino versions worked as expected. The exception thrown from
within the host object would be caught and the appropriate actions could
be taken.

With the most recent tip, the thrown exceptions simply are not caught
within the JavaScript. They propagate back to the Java function invoking
the (in my case) Context.evaluateReader() method.

Running the above JS fragement with the older tip displayed the
following stack trace (when the NullPointerException was caught):

Rhino Version: JavaScript-Java 1.5 release 1 2000 03 15
Caught a NullPointerException
java.lang.NullPointerException
        at java.lang.Throwable.<init>(Throwable.java:84)
        at java.lang.Exception.<init>(Exception.java:35)
        at java.lang.RuntimeException.<init>(RuntimeException.java:39)
        at
java.lang.NullPointerException.<init>(NullPointerException.java:45)
        at ExceptionMaker.jsFunction_npe(ExceptionMaker.java:13)
        at java.lang.reflect.Method.invoke(Native Method)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:497)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1205)
        at org.mozilla.javascript.gen.c1.call(exception.js:3)
        at org.mozilla.javascript.gen.c1.exec(exception.js)
        at
org.mozilla.javascript.Context.evaluateReader(Context.java:739)
        at js.main(js.java:14)
Finally!

When run with the latest tip, the output is:

Rhino Version: JavaScript-Java 1.5 release 1 2000 03
15                                          Finally!
Exception in thread "main" java.lang.NullPointerException
        at java.lang.Throwable.<init>(Throwable.java:84)
        at java.lang.Exception.<init>(Exception.java:35)
        at java.lang.RuntimeException.<init>(RuntimeException.java:39)
        at
java.lang.NullPointerException.<init>(NullPointerException.java:45)
        at ExceptionMaker.jsFunction_npe(ExceptionMaker.java:13)
        at inv2.invoke()
        at
org.mozilla.javascript.FunctionObject.doInvoke(FunctionObject.java:843)
        at
org.mozilla.javascript.FunctionObject.call(FunctionObject.java:486)
        at
org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1199)
        at org.mozilla.javascript.gen.c1.call(Unknown Source)
        at org.mozilla.javascript.gen.c1.exec(Unknown Source)
        at
org.mozilla.javascript.Context.evaluateReader(Context.java:778)
        at js.main(js.java:14)

Curiously, both Rhino versions seem to be returning the same string from
Context.getImplementionVerison();

Anyway, the results from the two runs are clearly different: In the
first case, the exception is thown, the correct catch block is invoked
(hence the stace trace), and the finally block is invoked. In the second
case, the exception is thrown, the finally block is invoked, and the
exception is handled by the calling Java method rather than being
handled by the JavaScript code.

After some research, it appears this change was introducted by a
modification to FunctionObject.call()  (See
http://bugzilla.mozilla.org/show_bug.cgi?id=64788) which used to have:

       try {
            Object result = (method != null)
                            ? method.invoke(thisObj, invokeArgs)
                            : ctor.newInstance(invokeArgs);
            return hasVoidReturn ? Undefined.instance : result;
        }

but now has:

            Object result = method == null ?
ctor.newInstance(invokeArgs)
                                           : doInvoke(thisObj,
invokeArgs);

If I comment out the new code and replace it with the old, the expected
exception handling returns. Is this just an oversight or the new
expected behavior? Are there any negative side effects (other then the
speed decrease in method invocation) if I use the latest tip but use the
old method invocation procedure in FunctionObject.call() rather than the
new?
2001-02-08 18:56:58 +00:00
bienvenu%netscape.com
5cf8693a6e more work on db view NOT PART OF BUILD 2001-02-08 17:46:54 +00:00
sspitzer%netscape.com
1f195e3bf5 fix for #68031.
select all (in an empty thread pane) crashes.
sr=hyatt,brendan a=asa
2001-02-08 17:30:17 +00:00
waterson%netscape.com
0991df1320 Add brendan's js regexp fu. 2001-02-08 06:45:38 +00:00
waterson%netscape.com
74091d7f2d Add support for regexps. 2001-02-08 06:45:29 +00:00
sspitzer%netscape.com
a6bebf95dd NOT PART OF THE BUILD. 2001-02-08 06:18:32 +00:00
sspitzer%netscape.com
1ccc1a5f01 NOT PART OF THE BUILD. hacking with bienvenu... 2001-02-08 06:17:57 +00:00
rginda%netscape.com
da8380bcd8 add some directories to the common makefile 2001-02-08 06:08:42 +00:00
rginda%netscape.com
7ade31ea4f is there no way to combine two .a files? 2001-02-08 06:06:33 +00:00