Commit Graph

43717 Commits

Author SHA1 Message Date
kmcclusk%netscape.com
adda5e2aff Changed WIN32 windows style from WS_EX_CLIENTEDGEto WS_EX_WINDOWEDGE to
stop drawing client windows sunken. bug=15151; r=rods@netscape.com
1999-10-11 23:56:55 +00:00
rods%netscape.com
3a21cb8387 changed fonts for select and optgroup to match r=kmcclusk b=12230 1999-10-11 23:48:41 +00:00
varada%netscape.com
bbcbe74143 fix to bug #15339- added SetForegroundWindowin the OnSetActive code in the wizardui.cpp 1999-10-11 23:47:49 +00:00
nhotta%netscape.com
d02f41691b Adding a new interface which does a charset conversion plus NE and NCR for fallback. Part of bug fix #8865, r=ftang. 1999-10-11 23:47:27 +00:00
rods%netscape.com
576fcbcff3 removed css system color references (not implemented on Mac yet)
changed all checkbox borders to 2 pixels r=kmcclusk b=13854
1999-10-11 23:44:36 +00:00
nisheeth%netscape.com
b052eec318 We now use the new RAPTOR_STOPWATCH_DEBUGTRACE macro to annotate all manipulations of the timers. 1999-10-11 23:42:56 +00:00
nisheeth%netscape.com
7487a52273 Changes not part of build. We now use the new RAPTOR_STOPWATCH_DEBUGTRACE macro to annotate all manipulations of the timers. 1999-10-11 23:33:14 +00:00
nisheeth%netscape.com
ee6b5053d3 Changes not part of build. Added a debug trace macro that outputs to the console only when DEBUG_STOPWATCH is defined. 1999-10-11 23:30:45 +00:00
rogerl%netscape.com
0ac353dd25 NOT A PART OF SEAMONKEY BUILD
- fixed test ECMA references,
- added test to -002
1999-10-11 22:59:25 +00:00
norris%netscape.com
11fd4bbe0e Fix bug:
Subject:
        optimizer SecurityException
   Date:
        Mon, 11 Oct 1999 17:37:51 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com (Norris Boyd)
    CC:
        Howard Lin <howard@softcom.com>




We use our own SecuritySupport implementation in Rhino.  This is properly
getting called by the optimizer to generate new classes (e.g.
org.mozilla.javascript.gen.c5 etc.)

However, after defining the class, Codegen.compile calls getClassLoader()
on the new class.  The default SecurityManager doesn't allow
getClassLoader() to be called and so an exception is thrown:

java.lang.RuntimeException: Malformed optimizer package
java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader )
        at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:138)
        at org.mozilla.javascript.Context.compile(Context.java:1761)
        at org.mozilla.javascript.Context.compile(Context.java:1691)
        at org.mozilla.javascript.Context.compileReader(Context.java:810)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:725)
        [...]

This is kind of a pain to duplicate outside of our application, but if you
require a test case I can create one.

Codegen is attempting to call loadClass() after it uses
SecuritySupport.defineClass().  Our SecuritySupport calls loadClass()
internally in its defineClass() implementation.  This is what JavaAdapter
expects.

This is from Codegen.compile():

                         if (securitySupport == null) {
                             if (Context.isSecurityDomainRequired())
                                 throw new SecurityException("Required " +
                                             "security context missing");
                             if (classLoader == null)
                                 classLoader = new JavaScriptClassLoader();
                             clazz = classLoader.defineClass(name, classFile);
                         } else {
                             clazz = securitySupport.defineClass(name,
classFile,
                                                                 securityDom
securityDomain);
                         }
                         ClassLoader loader = clazz.getClassLoader();
                         clazz = loader.loadClass(name);


This is from JavaAdapter.createAdapterClass():


         SecuritySupport ss = cx.getSecuritySupport();
         if (ss != null)  {
             Object securityDomain = cx.getSecurityDomainForStackDepth(-1);
             return ss.defineClass(adapterName, bytes, securityDomain);
         } else {
             if (classLoader == null)
                 classLoader = new MyClassLoader();
             classLoader.defineClass(adapterName, bytes);
             return classLoader.loadClass(adapterName, true);
         }


So JavaAdapter is assuming SecuritySupport.defineClass() will call
ClassLoader.loadClass() on the new class, while Codegen is assuming it
needs to call ClassLoader.loadClass() on the class defined by
SecuritySupport.defineClass().

These should be made consistent, and in both cases it should be assumed
that SecuritySupport will both define and load the class.


Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com
1999-10-11 22:48:13 +00:00
rogerl%netscape.com
ecb681ee1d NOT A PART OF SEAMONKEY BUILD
- removed redundant test & fixed test for 'super' to detect syntax error
1999-10-11 22:38:40 +00:00
varada%netscape.com
8ffaa571f3 #6569 adding Message function to OnNext handler 1999-10-11 22:30:02 +00:00
varada%netscape.com
6cea469ee8 #15327 changing minlen to maxlen 1999-10-11 22:28:59 +00:00
sfraser%netscape.com
ef4b4b1cca Part of fix for 15795; nsFileSpecMac.cpp is no longer pulled in with a nasty #include, and is thus added to the project. r=dougt 1999-10-11 21:19:47 +00:00
terry%mozilla.org
a34292afc3 Got rid of silly debugging hack. 1999-10-11 21:19:46 +00:00
sfraser%netscape.com
2204476289 Fix for bugs 15795 and 16090 -- fix startup crash which was due to an uninitialized nsFileSpec trashing the stack. Also no longer set mError on CreateDirectory if the dir already exists, prevent += "foo" when mError is set, and add assertions XP to catch calls with NULL strings. reviewed by dougt and (in part) sspitzer. a=leaf. 1999-10-11 21:19:06 +00:00
terry%mozilla.org
53a33fe098 Sort votes in decreasing order, not increasing. 1999-10-11 21:17:17 +00:00
slamm%netscape.com
433b7fdae9 Remove '-test' from output file name 1999-10-11 19:46:59 +00:00
slamm%netscape.com
603f841ff7 finished testing 1999-10-11 19:43:46 +00:00
slamm%netscape.com
c9900fb7f7 New file indexing. Use '/cvsroot' instead of lxr index. 1999-10-11 19:42:53 +00:00
slamm%netscape.com
d5f9a540a6 Skip attic files. 1999-10-11 19:40:51 +00:00
slamm%netscape.com
d7e352b1be slight tweak. take 2. 1999-10-11 19:37:32 +00:00
slamm%netscape.com
2b0daf64f5 slight tweak 1999-10-11 19:36:12 +00:00
slamm%netscape.com
baa1b34dbe Need to account for ,v 1999-10-11 19:34:57 +00:00
slamm%netscape.com
7e79a116f4 Test new file indexing. 1999-10-11 19:26:38 +00:00
varada%netscape.com
f6b0f8643a checking in fixes for bug #6569 - confirmation on clicking the finish button 1999-10-11 19:23:25 +00:00
terry%mozilla.org
5d0924fdfb Let's not keep everything locked up while regenerating. 1999-10-11 19:02:49 +00:00
terry%mozilla.org
2b2d779419 Stop reporting "area"; don't report voters on the CC line. 1999-10-11 18:54:45 +00:00
terry%mozilla.org
622cca3806 Make "rescanall" only check bugs which have changed in the last two days. 1999-10-11 18:23:21 +00:00
terry%mozilla.org
1913f31fc9 Added ability to run "processmail rescanall" to scan *every* bug for
any mail that ought to be sent to someone.
1999-10-11 18:18:39 +00:00
terry%mozilla.org
e4ec856a08 Oops; need extra directions to avoid problems when removing the "area" column. 1999-10-11 17:41:47 +00:00
terry%mozilla.org
3c2c5481bf Stupid hack to let things work with people who have bookmarked
vote-sorting URLs using the old style.
1999-10-11 17:21:18 +00:00
terry%mozilla.org
cb052f3b3d Added a "votes" field to the bugs table, which caches the total number
of votes that have been cast for that bug.  This let me simplify the
SQL in buglist.cgi, which makes things more efficient and fixes
several strange bugs.
1999-10-11 17:14:32 +00:00
kipp%netscape.com
b3194a801c Updated documentation to be more accurate; provided description of command line arguments 1999-10-11 15:30:17 +00:00
Jerry.Kirk%Nexwarecorp.com
6f32546fc6 Adding a "; else true" to work around broken shell under QNX4 for the
Neutrino cross-compile.
Bug #16049 r=Dale.Stansberry@Nexwarecorp.com
1999-10-11 14:41:25 +00:00
neeti%netscape.com
338a784b77 updating status 1999-10-11 14:17:18 +00:00
briano%netscape.com
76926a308a Automated update 1999-10-11 11:16:05 +00:00
briano%netscape.com
9c70dc453d Automated update 1999-10-11 11:07:20 +00:00
ramiro%netscape.com
06980d0827 Fix for bug 13522. Duplicate nsTimer.cpp files. Removing the old ones.
r=pavlov@netscape.com,sfraser@netscape.com.
1999-10-11 04:01:35 +00:00
ramiro%netscape.com
3849c0fcb8 Fix for bug 13522. Duplicate nsITimer.h files. Removing the old ones.
r=pavlov@netscape.com.
1999-10-11 03:48:21 +00:00
pavlov%netscape.com
f2d1718e03 Do not draw images if we have an empty clip region r=syd fixes bug #11086 1999-10-11 03:04:59 +00:00
mcafee%netscape.com
0bd8bf7016 Enable Solaris/Intel/egcs to build & run. Patch submitted by Roy Jones, r=mcafee 1999-10-10 23:41:23 +00:00
putterman%netscape.com
df01d32703 Remove ctor/dtor counter macros I added before it was determined we shouldn't
use them for xpcom classes.
1999-10-10 22:52:49 +00:00
putterman%netscape.com
6a6fa70abd Use ctor/dtor counter macros on non xpcom classes. reviewed by mscott. no bug. 1999-10-10 22:32:54 +00:00
putterman%netscape.com
805ef226be Switch over mailnews/base to use nsIModule. I forgot to mention that these
checkins were reviewed by mscott.  There's no bug.
1999-10-10 22:32:25 +00:00
putterman%netscape.com
489e979124 Switch over mailnews/base to use nsIModule. 1999-10-10 22:31:48 +00:00
putterman%netscape.com
07068ab854 Create a version of NS_GENERIC_FACTORY_CONSTRUCTOR that lets you pass in
an initialization function.  No bug.  Reviewed by dp.
1999-10-10 22:30:55 +00:00
rpotts%netscape.com
9ced2151e2 Removed 2 *extra* calls to NS_RELEASE in failure cases... 1999-10-10 06:58:42 +00:00
dveditz%netscape.com
47ef8ef344 build fix, packager needs to know about changed Win32 names 1999-10-10 04:59:59 +00:00
warren%netscape.com
bb32e6e730 Fixed refcounting problem and possible out-of-memory condition. r=kipp 1999-10-10 02:08:08 +00:00