Граф коммитов

59311 Коммитов

Автор SHA1 Сообщение Дата
morse%netscape.com aa4dffcef8 use thayes encryption routines 2000-04-25 01:48:35 +00:00
dougt%netscape.com cf392312f9 checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.
2000-04-25 01:48:02 +00:00
jefft%netscape.com 223fa87dcf fixed bug 17100 - [FEATURE] enabled partial message download for pop3 2000-04-25 01:48:00 +00:00
mscott%netscape.com 514de6b425 fix unnecessary assetions in viewer. 2000-04-25 01:46:39 +00:00
pinkerton%netscape.com 94db71977a update use of clipboard apis. fix bug 36374. 2000-04-25 01:46:29 +00:00
mscott%netscape.com 3fa3bc107a need to fake a onprogress change for the parent
docloader...Fix viewer crash by returning aChannel instead of the
doc channel.
2000-04-25 01:45:37 +00:00
danm%netscape.com f0e2d4bff2 add null check for target document while positioning popups. bug 35643 2000-04-25 01:44:53 +00:00
morse%netscape.com b0ca6192d7 use thayes encryption routijnes 2000-04-25 01:41:23 +00:00
sspitzer%netscape.com 02f1da358b more checkins for the new subscribe dialog.
make it so only subscribable servers show up in the server picker.
make it so "newsgroup" turns to "folder" if subscribing to imap.
do the basic wiring to imap servers are hooked in.
clean up my css.
2000-04-25 01:30:30 +00:00
waterson%netscape.com a76d125ae2 Back out changes: they broke egcs. 2000-04-25 01:28:09 +00:00
ruslan%netscape.com 1fb3f37f7e WIP on 33508, 28890. Adjust response timeout up to 120 seconds by default
as well.
2000-04-25 01:27:30 +00:00
waterson%netscape.com 5eb3e883e3 Bug 34619. Judicious use of fixed size allocators to reduce overhead. 2000-04-25 01:24:24 +00:00
sspitzer%netscape.com a70b3379f0 for the new subscribe dialog. 2000-04-25 01:22:15 +00:00
wtc%netscape.com 1e82ea9d78 Bugzilla bug #30902: use true atomic implementation of the NSPR atomic
routines on Linux on Intel x86.
Modified files: _linux.h, pr/src/md/unix/Makefile,
pr/src/md/unix/Makefile.in, pr/src/md/unix/objs.mk
Added file: os_Linux_x86.s
2000-04-25 01:22:14 +00:00
waterson%netscape.com ea8dbfd673 Use fixed size arena allocator for element map. 2000-04-25 01:21:57 +00:00
ducarroz%netscape.com 0aabf66d87 Fix for bug 36939. Autocomplete widget doesn't use anymore its own tag but instead, it's now a textfield with the attribute "autocomplete" set to true. 2000-04-25 01:21:56 +00:00
waterson%netscape.com be9641ebd5 Clean up pool initialization. 2000-04-25 01:20:00 +00:00
waterson%netscape.com c7e85ce37b Change from an array of sizes to a linked list so it can handle new sizes after initialization. 2000-04-25 01:18:56 +00:00
ducarroz%netscape.com ce16b1ecb7 Fix for bug 22338, 27171, 36939 and part of bug 35038. Some UI and autocomplete cleanup. 2000-04-25 01:18:41 +00:00
gagan%netscape.com f9ff19a205 Fixed bug 36831. Removed an accidental checkin of an assertion. 2000-04-25 01:18:26 +00:00
shaver%mozilla.org 7b6f80d5fb Linux/m68k xptcall port from <Michael_Fedrowitz@gmx.net> 2000-04-25 01:15:51 +00:00
gagan%netscape.com ec97858c67 First checkin of proxy auto config stuff. 2000-04-25 01:15:35 +00:00
brendan%mozilla.org 99896c816a Final destroy-context must await racing GCs before freeing atom state (32525, r=jband). 2000-04-25 01:12:36 +00:00
shaver%mozilla.org 8e0c600b26 add CurrentItemInPlaceUTF8 to reduce startup alloc by 2.3M(!), r=brendan 2000-04-25 01:11:08 +00:00
jdunn%netscape.com 2b62cd63ba Remove HP specific stanza. It is not needed and causes 11.00 tinderbox bustage 2000-04-25 01:10:28 +00:00
shaver%mozilla.org e0e27607a5 replace GC cache with LRU linked-list thing. r=pavlov 2000-04-25 01:09:32 +00:00
brendan%mozilla.org a3dc40d18b Count allocations too; dump nodes ranked by mean allocation size. 2000-04-24 23:52:27 +00:00
dougt%netscape.com 79681b7a19 Adding xpcom.currentProcess 2000-04-24 22:54:04 +00:00
rogerl%netscape.com 1b75c7efbb Fixes for handling missing params. 2000-04-24 22:40:53 +00:00
putterman%netscape.com 1e939cc1a2 Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:29:06 +00:00
dougt%netscape.com 3909c7cfe0 Fixing tree blocker. nsInstallFolder did not return an error code when
it could not initialize itself.  This caused crashes and return values which
were not correct.  I also fixed a huge about of memory leaks for allocation
of strings that were never freed.  r=dveditz, a=leaf.
2000-04-24 22:23:44 +00:00
putterman%netscape.com 2426cb03a2 Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:21:56 +00:00
putterman%netscape.com af52293cd0 Backing out troy's changes to fix various UI blocker bugs. 2000-04-24 22:15:55 +00:00
putterman%netscape.com 96f16854ec backing out troy's changes to fix various ui not working blocker bugs. 2000-04-24 22:05:39 +00:00
rginda%netscape.com 5edf52ba65 adding comments 2000-04-24 21:43:49 +00:00
rpallath%eng.sun.com 6ddd80caf1 modified README 2000-04-24 21:28:42 +00:00
rginda%netscape.com 5945808db5 NotARegister check in GenericBranch::print() 2000-04-24 20:08:16 +00:00
norris%netscape.com 45ea2bb652 Patch from Matthias Radestock <rade@logee.com>:
Subject:
             JavaAdapter return type conversion
        Date:
             Wed, 19 Apr 2000 12:12:47 +0100
       From:
             Matthias Radestock <rade@logee.com>
 Organization:
             Logee
         To:
             norris@netscape.com
         CC:
             mccabe@netscape.com, beard@netscape.com, rogerl@netscape.com




Dear Rhino team,

When returning an array from a scripted Java object (i.e. a JS object
that implements a Java interface), no type conversion is performed, ie.
a NativeArray is returned instead of a Java array. Example:

Java:
interface Foo {
        public String[] boo();
        }

JS:
FooI = {
        boo: function() { return ["Boo"];}
        }
myFoo = new Packages.Foo(FooI);
myFoo.boo(); //==> breaks with a ClassCastException


Looking at the JavaAdapter code, there is no code for array conversion.
This is particularly bad because precisely such a conversion *does*
happen when calling a Java method from JS. So we end up with a
discrepancy.

See attachment for a patch to fix this and little test program. The
patch works by calling the coerceType function on NativeJavaObject,
which is the function responsible for doing the conversion when calling
from JS to Java. I've simplified the code so that this function gets
called for all non-primitive return type, not just arrays. There are
probably more efficient solutions but I'm not a Java bytecode hacker.


Matthias
PS: I didn't open a bug for this because I wasn't sure whether you guys
would agree that this is indeed a problem ;)





public interface JSReturnTest {

  public boolean returnBoolean();
  public char returnChar();
  public int returnInt();
  public String returnString();
  public org.mozilla.javascript.Scriptable returnScriptable();
  public Object returnObject();
  public boolean[] returnBooleanA();
  public char[] returnCharA();
  public int[] returnIntA();
  public String[] returnStringA();
  public org.mozilla.javascript.Scriptable[] returnScriptableA();
  public Object[] returnObjectA();
  public Object[][] returnObjectAA();
}




Index: JavaAdapter.java
===================================================================
RCS file: /cvsroot/mozilla/js/rhino/org/mozilla/javascript/JavaAdapter.java,v
retrieving revision 1.21
diff -r1.21 JavaAdapter.java
54c54,59
<
---
>
>     public static Object convertResult(Object result, String classname)
>     throws ClassNotFoundException {
>         return NativeJavaObject.coerceType(Class.forName(classname),
>                                            result);
>     }
467,474c472,474
<         } else  if (retType.equals(String.class)) {
<             cfw.add(ByteCode.INVOKESTATIC,
<                     "org/mozilla/javascript/Context",
<                     "toString", "(Ljava/lang/Object;)",
<                     "Ljava/lang/String;");
<             cfw.add(ByteCode.ARETURN);
<         } else if (retType.equals(Scriptable.class)) {
<             cfw.add(ByteCode.ALOAD_0);  // load 'this' to find scope from
---
>         } else {
>             String retTypeStr = retType.getName();
>             cfw.addLoadConstant(retTypeStr);
476,477c476,477
<                     "org/mozilla/javascript/Context",
<                     "toObject",
---
>                     "org/mozilla/javascript/JavaAdapter",
>                     "convertResult",
479,500c479,480
<                      "Lorg/mozilla/javascript/Scriptable;)",
<                     "Lorg/mozilla/javascript/Scriptable;");
<             cfw.add(ByteCode.ARETURN);
<         } else {
<             // If it is a wrapped type, cast to Wrapper and call unwrap()
<             cfw.add(ByteCode.DUP);
<             cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper");
<             // skip 3 for IFEQ, 3 for CHECKCAST, and 5 for INVOKEINTERFACE
<             cfw.add(ByteCode.IFEQ, 11);
<             cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper");
<             cfw.add(ByteCode.INVOKEINTERFACE,
<                     "org/mozilla/javascript/Wrapper",
<                     "unwrap", "()", "Ljava/lang/Object;");
<
<             // If Undefined, return null
<             cfw.add(ByteCode.DUP);
<             cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined");
<             // skip 3 for IFEQ, 1 for ACONST_NULL, 1 for ARETURN
<             cfw.add(ByteCode.IFEQ, 5);
<             cfw.add(ByteCode.ACONST_NULL);
<             cfw.add(ByteCode.ARETURN);
<
---
>                     "Ljava/lang/String;)",
>                     "Ljava/lang/Object;");
502,503c482
<             String retTypeStr = retType.getName().replace('.', '/');
<             cfw.add(ByteCode.CHECKCAST, retTypeStr);
---
>             cfw.add(ByteCode.CHECKCAST, retTypeStr.replace('.', '/'));



   testpatch.js

               Name:
                     testpatch.js
                Type:
                     JavaScript Program (application/x-javascript)
             Encoding:
                     7bit
2000-04-24 19:36:51 +00:00
rpallath%eng.sun.com 5bb34f0760 New Tests for getAlignment 2000-04-24 19:02:42 +00:00
rpallath%eng.sun.com 7cbb98a1dd getAlignment tests for API -> LEFT 2000-04-24 18:58:18 +00:00
rpallath%eng.sun.com 4b43efb8a7 GetAlignment API tests 2000-04-24 18:55:25 +00:00
rpallath%eng.sun.com b544fdc66d New files for Killer app on Win32 2000-04-24 18:52:40 +00:00
rginda%netscape.com 66299105f3 quieting linux warnings 2000-04-24 18:41:05 +00:00
rpallath%eng.sun.com 22bea2735d Added README and BWTest.lst
Updated some test cases
2000-04-24 18:25:27 +00:00
brade%netscape.com c6cac4df01 fixing build bustage; submitted by Philip.Blundell@pobox.com (a=granrose) 2000-04-24 15:42:15 +00:00
dveditz%netscape.com 6281fa3350 fixing clobber bustage 2000-04-24 15:03:47 +00:00
ftang%netscape.com fb6de8a58a Change the implementation to use nsILocalFile as the first step to fix
non ASCII problem. We will change to use the unicode version of the method in the
near future. The unicode version is put in the comment for now. After we validate the
nsILocalFile version have no problem. We will switch to it's unicode version of method
r=dougt
2000-04-24 14:51:48 +00:00
dcone%netscape.com 05733b66af Round the stikewidth properly.. instead of truncation. 2000-04-24 14:32:58 +00:00
dveditz%netscape.com 4cafcc8125 First cut at chrome install 2000-04-24 13:53:38 +00:00
dveditz%netscape.com 4b19a51ec6 added missing dependency 2000-04-24 13:36:06 +00:00