82847 Commits

Author SHA1 Message Date
dbaron%fas.harvard.edu
02cbc2ffaf Fix bustage by including stdlib.h.
git-svn-id: svn://10.0.0.236/trunk@94257 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:48:51 +00:00
dbaron%fas.harvard.edu
ccbf2910eb Fix gcc 2.7.2.3 bustage with enum values from different anonymous enums. r=shaver
git-svn-id: svn://10.0.0.236/trunk@94255 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:43:47 +00:00
mkaply%us.ibm.com
b8f35dd3ba OS/2 TB breakage
git-svn-id: svn://10.0.0.236/trunk@94254 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:36:45 +00:00
dbaron%fas.harvard.edu
d3642fef59 Add newline at end of file to fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@94252 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:28:46 +00:00
dbaron%fas.harvard.edu
7a25b2cec6 Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by adding new header file dependencies from XPCDOM landing to REQUIRES.
git-svn-id: svn://10.0.0.236/trunk@94250 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:19:03 +00:00
peterv%netscape.com
e9ba22320c Adding nsIProgrammingLanguage.idl (mac bustage fix)
git-svn-id: svn://10.0.0.236/trunk@94249 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:17:19 +00:00
dbaron%fas.harvard.edu
4af734d3cf Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband
git-svn-id: svn://10.0.0.236/trunk@94248 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 19:11:51 +00:00
jst%netscape.com
ce7d469178 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.
git-svn-id: svn://10.0.0.236/trunk@94246 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 18:02:50 +00:00
jst%netscape.com
43eee52859 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.
git-svn-id: svn://10.0.0.236/trunk@94242 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:42:36 +00:00
leaf%mozilla.org
78d84fdf65 merging for jst.
git-svn-id: svn://10.0.0.236/trunk@94241 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:14:15 +00:00
jst%netscape.com
372d60ec59 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.
git-svn-id: svn://10.0.0.236/trunk@94240 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 17:02:10 +00:00
ashuk%eng.sun.com
e6bf2143fd Bug=61977
author=ashuk
Fix changes CurrentPageImpl.java and fixes leading "null" from
getPageSource and getPageSourceBytes


git-svn-id: svn://10.0.0.236/trunk@94239 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 16:58:36 +00:00
jst%netscape.com
9d299d36ce 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.
git-svn-id: svn://10.0.0.236/trunk@94238 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 16:46:42 +00:00
despotdaemon%netscape.com
9390e4c452 Pseudo-automatic update of changes made by mcgreer@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@94237 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 15:05:28 +00:00
mkaply%us.ibm.com
60245648b5 #78728
r=pierre, sr=waterson
Change bool/true/false cases to PRBool/PR_TRUE/PR_FALSE


git-svn-id: svn://10.0.0.236/trunk@94236 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 14:19:01 +00:00
brade%netscape.com
259374b6e6 fix gcc/MacOSX build (bug #66742); patch from davea@xetron.com
git-svn-id: svn://10.0.0.236/trunk@94235 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 14:12:06 +00:00
nboyd%atg.com
6ad92749f4 Change use of deprecated method.
git-svn-id: svn://10.0.0.236/trunk@94234 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:51:18 +00:00
nboyd%atg.com
0facaf7397 Commit missing messages for new idswitch tool.
git-svn-id: svn://10.0.0.236/trunk@94233 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:42:56 +00:00
nboyd%atg.com
cf12fcb638 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


git-svn-id: svn://10.0.0.236/trunk@94232 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:40:22 +00:00
brade%netscape.com
01a9710639 fix Composer keybindings (bugs #76917, 78064)
git-svn-id: svn://10.0.0.236/trunk@94231 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:39:36 +00:00
nboyd%atg.com
1e59f4fb34 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.


git-svn-id: svn://10.0.0.236/trunk@94230 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:36:16 +00:00
dcone%netscape.com
559222b4a1 Minor fix. r=sfraser. Does not effect build
git-svn-id: svn://10.0.0.236/trunk@94229 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:35:48 +00:00
nboyd%atg.com
41ccee1dda 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.


git-svn-id: svn://10.0.0.236/trunk@94228 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 13:33:43 +00:00
jst%netscape.com
c47fa533b5 Adding makefile, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@94227 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 12:34:29 +00:00
timeless%mac.com
31239f9af7 Bugzilla Bug 79132 Xlib toolkit is kinda inefficient
Cache mStretches[] and mWeights[] to avoid repeated pointer dereferences.
r=dbaron@fas.harvard.edu sr=alecf


git-svn-id: svn://10.0.0.236/trunk@94226 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 09:34:17 +00:00
rbs%maths.uq.edu.au
bfc4015732 Typographical changes
git-svn-id: svn://10.0.0.236/trunk@94225 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 08:36:02 +00:00
rbs%maths.uq.edu.au
19099660fa Correct stretchy metadata
git-svn-id: svn://10.0.0.236/trunk@94224 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 08:34:13 +00:00
rbs%maths.uq.edu.au
0527facf44 Correct a faulty mapping
git-svn-id: svn://10.0.0.236/trunk@94223 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 08:31:48 +00:00
ftang%netscape.com
7f43aa39c6 fix #ifdef IBMBID bustage
change other.mUnicodeBidi to other->mUnicodeBidi
r=noone sr=onone


git-svn-id: svn://10.0.0.236/trunk@94222 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 08:13:12 +00:00
alecf%netscape.com
fb54435976 add mozilla-based preloader to the cvs tree (not part of build yet)
git-svn-id: svn://10.0.0.236/trunk@94220 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 07:19:39 +00:00
tajima%eng.sun.com
0bafc9c6ae bug 78704 Preedit text is displayed with bold font in over-the-spot mode
r=tor,blizzard sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@94218 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 06:11:05 +00:00
alecf%netscape.com
f34b378130 minor tweak so fast-update picks up new directories. not part of build
git-svn-id: svn://10.0.0.236/trunk@94217 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 05:21:28 +00:00
edburns%acm.org
97942650a0 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.


git-svn-id: svn://10.0.0.236/trunk@94216 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:50:33 +00:00
pavlov%netscape.com
d71d986cb3 the rest of 79314 r=bryner sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@94213 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:21:49 +00:00
eddyk%netscape.com
c1f28166fb bug 63539: clarify networking cache panel
sr=ben@netscape.com r=bryner


git-svn-id: svn://10.0.0.236/trunk@94212 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:16:50 +00:00
pavlov%netscape.com
87c65fd509 fixing bug 74284 r=bryner sr=ben
git-svn-id: svn://10.0.0.236/trunk@94211 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:12:40 +00:00
bryner%uiuc.edu
17f35c2f00 Bug 76234 - XPCOM cleanups in PSM2. r=javi, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@94210 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:09:28 +00:00
pavlov%netscape.com
c98825585b fixing up the logging in imglib bug 79314 r=bryner sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@94209 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 04:01:28 +00:00
nelsonb%netscape.com
493572723f Restore explicit dependencies on headers and other sources.
git-svn-id: svn://10.0.0.236/trunk@94208 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 03:50:02 +00:00
pavlov%netscape.com
4754914b3d adding some new files... not part of the build
git-svn-id: svn://10.0.0.236/trunk@94207 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 03:38:35 +00:00
rbs%maths.uq.edu.au
b366d260da Save cycles by removing unneed code b=74494 sr=brendan
git-svn-id: svn://10.0.0.236/trunk@94205 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 02:33:53 +00:00
cmanske%netscape.com
51d186e749 Fixed order of keybinding modifiers, b=78406, r=hurricane, sr=kin
git-svn-id: svn://10.0.0.236/trunk@94202 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 02:16:52 +00:00
bryner%uiuc.edu
62525dba4e 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.
git-svn-id: svn://10.0.0.236/trunk@94201 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 02:06:46 +00:00
cmanske%netscape.com
cef3398088 Fixed menu text for Find and Replace dialogs, b=78227, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@94200 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 02:04:36 +00:00
cmanske%netscape.com
3e3f14fabf Append '.html' extension when user doesn't, b=77474, r=law, sr=kin
git-svn-id: svn://10.0.0.236/trunk@94199 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 02:01:49 +00:00
hewitt%netscape.com
4e8b49edba 78574 - Mail crashes Trunk when entering a second email address, r=ducarroz, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@94197 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:43:33 +00:00
bnesse%netscape.com
dac178f2fe Fix for broken color preferences. bug 77828. r=sfraser, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@94194 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:40:09 +00:00
morse%netscape.com
56550c75d8 bug 78262, can't delete certain passwords, r=matt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@94193 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:37:18 +00:00
morse%netscape.com
52f1b1454b bug 77525, shouldn't save password when password field is empty, r=matt, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@94191 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:34:54 +00:00
brendan%mozilla.org
da4224d9bf - 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.


git-svn-id: svn://10.0.0.236/trunk@94190 18797224-902f-48f8-a5cc-f745e15eee43
2001-05-08 01:31:02 +00:00