Commit Graph

81798 Commits

Author SHA1 Message Date
jst%netscape.com
ea706038cf Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 17:42:36 +00:00
leaf%mozilla.org
a755724867 merging for jst. 2001-05-08 17:14:15 +00:00
jst%netscape.com
2d222be91e Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 17:02:10 +00:00
ashuk%eng.sun.com
d39dc7e321 Bug=61977
author=ashuk
Fix changes CurrentPageImpl.java and fixes leading "null" from
getPageSource and getPageSourceBytes
2001-05-08 16:58:36 +00:00
jst%netscape.com
f7460d0269 Landing the XPCDOM_20010329_BRANCH branch, changes mostly done by jband@netscape.com and jst@netscape.com, also some changes done by shaver@mozilla.org, peterv@netscape.com and markh@activestate.com. r= and sr= by vidur@netscape.com, jband@netscape.com, jst@netscpae.com, danm@netscape.com, hyatt@netscape.com, shaver@mozilla.org, dbradley@netscape.com, rpotts@netscape.com. 2001-05-08 16:46:42 +00:00
mkaply%us.ibm.com
bbb16707b2 #78728
r=pierre, sr=waterson
Change bool/true/false cases to PRBool/PR_TRUE/PR_FALSE
2001-05-08 14:19:01 +00:00
brade%netscape.com
983a447cbf fix gcc/MacOSX build (bug #66742); patch from davea@xetron.com 2001-05-08 14:12:06 +00:00
nboyd%atg.com
66b3d8aae3 Change use of deprecated method. 2001-05-08 13:51:18 +00:00
nboyd%atg.com
991a880e56 Commit missing messages for new idswitch tool. 2001-05-08 13:42:56 +00:00
nboyd%atg.com
49ee5104a9 Subject:
Rhino: optimization for NativeFunction.java
        Date:
             Mon, 07 May 2001 14:19:59 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

Hi, Norris!

This is the first of 3 patches that are completly independent from each
other.

Currently in NativeFunction its name stored as the first element in the
names array. But this lead to creation of a single element array for
each FunctionObject and for each script function that does not have
arguments or variables. The attached patch splits NativeFunction names
into simple functionName and argNames arrays and adjust code elsewhere
accordingly. This patch can increase memory footprint for anonymous
script functions without arguments because it adds additional field to
each NativeFunction, but I do not think this is a case to worry about.

Regards, Igor
2001-05-08 13:40:22 +00:00
brade%netscape.com
90cb41a2a5 fix Composer keybindings (bugs #76917, 78064) 2001-05-08 13:39:36 +00:00
nboyd%atg.com
bd685b66b2 Subject: Rhino: execMethod/methodArity cleanup.
Date: Mon, 07 May 2001 14:25:34 +0200
From: Igor Bukanov <igor.bukanov@windriver.com>
Organization: Wind River
To: Norris Boyd <nboyd@atg.com>

The current code that implements execMethod/methodArity for IdFunction
support returns an arbitrary value for id that is not known. This is not
very good behavior because it may hide bugs in the id support and it
also does not allow to distinguish ids that are used for function  from
ids used for properties like String.length.

To fix this I changed semantic of the methodArity method to return -1
for an unknown/non-method id and added code to throw an exception for
bad ids. This change requires to adjust all NativeSomething objects that
use IdScriptabl and after a release all such interface changes would be
no go, but is not a release yet, right?

I also eliminated the "IdFunction f" argument from
IdFunction.Master.methodArity and the tagId field from IdFunction. When
I wrote  the initial code for IdFunction.java, I added that just to be
able to use same id number in a class that implements IdFunction.Master
and its descendants via checking idTag. But that does not work in
general because IdScriptable can use id for non-function fields as well
so to avoid id clashes another way should be used. For example, if
someone would like to extend NativeMath to support more functionality,
he can use:

class Math2: extends NativeMath {
     private static idBase;

     {
         if (idBase == 0) idBase = super.getMaximumId();
     }

      public int methodArity(int methodId) {
          switch (methodId - idBase) {
             case Id_foo: return 2;
             case Id_bar: return 3;
         }
         return super.methodArity(methodId);
     }

      public Object execMethod
          (int methodId, IdFunction f,
           Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
          throws JavaScriptException
      {
          switch (methodId - idBase) {
             case Id_foo: return ...;
             case Id_bar: return ...;
         }
          return super.execMethod(methodId, f, cx, scope, thisObj, args);
     }

      protected int getMaximumId() { return idBase + MAX_ID; }

      protected String getIdName(int id) {
          switch (id - idBase) {
             case Id_foo: return "for";
             case Id_bar: return "bar";
         }
         return super.getIdName(id);
     }
     ...
     private static final int
         Id_foo = 1,
         Id_bar = 2,
         MAX_ID = 2;

etc.


Note that a simpler solution to make MAX_ID field public in NativeMath
and write in Math2:
     private static final int
         Id_foo = NativeMath.MAX_ID + 1,
         Id_bar = NativeMath.MAX_ID + 2,
         MAX_ID = NativeMath.MAX_ID + 2;

does not work because in this way adding any new id to NativeMath would
break binary compatibility with Math2.
2001-05-08 13:36:16 +00:00
dcone%netscape.com
c1af829899 Minor fix. r=sfraser. Does not effect build 2001-05-08 13:35:48 +00:00
nboyd%atg.com
9129bdc5d6 Subject:
Rhino: fix for race conditions in listeners code in Context.java
        Date:
             Mon, 07 May 2001 14:22:57 +0200
       From:
             Igor Bukanov <igor.bukanov@windriver.com>
 Organization:
             Wind River
         To:
             Norris Boyd <nboyd@atg.com>

The current code for listeners and contextListeners in Context.java is
not race condition free. If contextListeners Vector would be modified
during context event firing loops, the code can produce
index-out-of-bounds exception. The problem with listeners array is more
subbtle and comes from the fact that ListenerCollection.java uses code like:
         for(Enumeration enum = getAllListeners();enum.hasMoreElements();) {
             Object listener = enum.nextElement();
             if(iface.isInstance(listener)) {
                 array.addElement(listener);
             }
         }
where getAllListeners() uses Vector.elements to get element enumeration.
But to work with such enumeration in a thread safe way, one has to
synchronized against Vector, otherwise between enum.hasMoreElements()
and enum.nextElement() the last element can be removed.

Initially I thought to fix ListenerCollection and use it for
contextListeners as well, but then I realized that in its current form
ListenerCollection is very inefficient (it produces too many objects
just to get simple array to fire events), so I wrote ListenerArray.java
and use it in Context.java. It makes life simpler and shrinks code as well.
2001-05-08 13:33:43 +00:00
jst%netscape.com
6f4b5a29d3 Adding makefile, not part of the build yet. 2001-05-08 12:34:29 +00:00
timeless%mac.com
dbe24cc4ef Bugzilla Bug 79132 Xlib toolkit is kinda inefficient
Cache mStretches[] and mWeights[] to avoid repeated pointer dereferences.
r=dbaron@fas.harvard.edu sr=alecf
2001-05-08 09:34:17 +00:00
rbs%maths.uq.edu.au
5f2388d3f9 Typographical changes 2001-05-08 08:36:02 +00:00
rbs%maths.uq.edu.au
3a003c2b87 Correct stretchy metadata 2001-05-08 08:34:13 +00:00
rbs%maths.uq.edu.au
ad22a693b8 Correct a faulty mapping 2001-05-08 08:31:48 +00:00
ftang%netscape.com
9501179328 fix #ifdef IBMBID bustage
change other.mUnicodeBidi to other->mUnicodeBidi
r=noone sr=onone
2001-05-08 08:13:12 +00:00
alecf%netscape.com
1498b45526 add mozilla-based preloader to the cvs tree (not part of build yet) 2001-05-08 07:19:39 +00:00
tajima%eng.sun.com
9ea1bd187a bug 78704 Preedit text is displayed with bold font in over-the-spot mode
r=tor,blizzard sr=blizzard
2001-05-08 06:11:05 +00:00
alecf%netscape.com
8a57a514a8 minor tweak so fast-update picks up new directories. not part of build 2001-05-08 05:21:28 +00:00
edburns%acm.org
c4a354c5aa Files in this Checkin:
M classes_spec/org/mozilla/webclient/test/EMWindow.java
M classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
M src_moz/NativeEventThreadActionEvents.cpp
M src_moz/WindowControlActionEvents.cpp

bug:  79278

This checkin makes webclient work with the trunk as of 7 May 2001 AM PDT.

It also adds support for PROGRESS_URL_LOAD and STATUS_URL_LOAD events.
2001-05-08 04:50:33 +00:00
pavlov%netscape.com
7b41e6b5bf the rest of 79314 r=bryner sr=hyatt 2001-05-08 04:21:49 +00:00
eddyk%netscape.com
0d08755a5a bug 63539: clarify networking cache panel
sr=ben@netscape.com r=bryner
2001-05-08 04:16:50 +00:00
pavlov%netscape.com
b59b508a20 fixing bug 74284 r=bryner sr=ben 2001-05-08 04:12:40 +00:00
bryner%uiuc.edu
e603ac5aeb Bug 76234 - XPCOM cleanups in PSM2. r=javi, sr=ben. 2001-05-08 04:09:28 +00:00
pavlov%netscape.com
e7a6b56631 fixing up the logging in imglib bug 79314 r=bryner sr=hyatt 2001-05-08 04:01:28 +00:00
nelsonb%netscape.com
1ca01b9eec Restore explicit dependencies on headers and other sources. 2001-05-08 03:50:02 +00:00
pavlov%netscape.com
4ae3184536 adding some new files... not part of the build 2001-05-08 03:38:35 +00:00
rbs%maths.uq.edu.au
73f00b7d99 Save cycles by removing unneed code b=74494 sr=brendan 2001-05-08 02:33:53 +00:00
cmanske%netscape.com
2731f757a4 Fixed order of keybinding modifiers, b=78406, r=hurricane, sr=kin 2001-05-08 02:16:52 +00:00
bryner%uiuc.edu
fb881f011a Part of fix for 74387 -- return an error code from nsSocketTransport::Init if we don't have a socket provider for the given socket type, such as if PSM is not installed. r=bbaetz, sr=darin. 2001-05-08 02:06:46 +00:00
cmanske%netscape.com
6517f80c8b Fixed menu text for Find and Replace dialogs, b=78227, r=brade, sr=kin 2001-05-08 02:04:36 +00:00
cmanske%netscape.com
eaf45e97c5 Append '.html' extension when user doesn't, b=77474, r=law, sr=kin 2001-05-08 02:01:49 +00:00
hewitt%netscape.com
52a0cc0d16 78574 - Mail crashes Trunk when entering a second email address, r=ducarroz, sr=mscott 2001-05-08 01:43:33 +00:00
bnesse%netscape.com
fe37cea912 Fix for broken color preferences. bug 77828. r=sfraser, sr=alecf. 2001-05-08 01:40:09 +00:00
morse%netscape.com
361d651e22 bug 78262, can't delete certain passwords, r=matt, sr=alecf 2001-05-08 01:37:18 +00:00
morse%netscape.com
e6fa01de51 bug 77525, shouldn't save password when password field is empty, r=matt, sr=alecf 2001-05-08 01:34:54 +00:00
brendan%mozilla.org
841f7a55dd - Fix bug 79054, AB-BA deadlock between rt->setSlotLock and one or more claimed scopes (r=shaver, sr=jband)
js_SetProtoOrParent should always have used a condvar in addition to a lock.
- Fix bug 79129, assert-botch in js_AllocSlot (r/sr=jband, sr=shaver)
  JS_INITIAL_NSLOTS is the minimum number of slots, js_FreeSlot guarantees it.
2001-05-08 01:31:02 +00:00
brendan%mozilla.org
1cc8066f79 Deoptimize JSOP_TABLESWITCH to JSOP_LOOKUPSWITCH upon first duplicate case label (74474, r=rogerl, sr=shaver). 2001-05-08 01:21:01 +00:00
srilatha%netscape.com
75161436ac Fix for packager-* problem bug# 78926.
r=domse, sr=sspitzer
2001-05-08 01:13:46 +00:00
ftang%netscape.com
9ef7b577a4 fix bug 75814. add hkscs support
r=nhotta
sr=blizzard
2001-05-08 00:44:30 +00:00
ftang%netscape.com
a3bfee2226 fix bug 75814. add hkscs-1 support for unix
r=nhotta sr=blizzard
2001-05-08 00:43:06 +00:00
ftang%netscape.com
72e13eb90d fix 75814. add HKSCS langgroup
r=nhotta
sr=blizzard
2001-05-08 00:41:08 +00:00
ftang%netscape.com
a99dc055a5 fix bug 75814. r=nhotta sr=blizzard add nsUnicodeToHKSCS.cpp 2001-05-08 00:39:46 +00:00
ftang%netscape.com
fd45f149bb fix bug 75814. make it build on window and unix first
r=nhotta sr=blizzard
2001-05-08 00:35:20 +00:00
ftang%netscape.com
bdb04a8256 fix bug 75814
r=nhotta sr=blizzard
new file check in first.
2001-05-08 00:34:06 +00:00
sspitzer%netscape.com
3b606300c3 #76316. clicking on a bad row creates bogus selection, leads bogus GetCount(). sr=hyatt 2001-05-08 00:23:32 +00:00