Commit Graph

81978 Commits

Author SHA1 Message Date
kirke%netscape.com
008c6935ca Fixes 78577 (second half) This gets the SECItem->data member NULL case. 2001-05-08 22:53:23 +00:00
beard%netscape.com
d34d7267e4 Officially retiring all sources in mozilla/js/rhino/org, in favor of sources in mozilla/js/rhino/src & mozilla/js/rhino/toolsrc. 2001-05-08 22:50:01 +00:00
dbaron%fas.harvard.edu
0ef8e1ef44 Fix AIX bustage by removing |const| from signature of |Prompt| that isn't in the XPIDL-generated interface (although it shouldn't really matter). sr=jst 2001-05-08 22:43:25 +00:00
kirke%netscape.com
91ba46c031 Fixes 78577. Checking for NULL src arg. 2001-05-08 22:38:02 +00:00
edburns%acm.org
d79b2b7b77 Complete the conversion from nsIDocumentLoaderObserver. 2001-05-08 22:32:19 +00:00
dbaron%fas.harvard.edu
53b13081a6 Fix bustage from XPCDOM landing by including nsCRT.h. 2001-05-08 22:29:06 +00:00
beard%netscape.com
ace78ee37e Officially retiring all sources in mozilla/js/rhino/org, in favor of sources in mozilla/js/rhino/src & mozilla/js/rhino/toolsrc. 2001-05-08 22:28:17 +00:00
dbaron%fas.harvard.edu
a2479070a8 Fix build bustage resulting from XPCDOM landing (I think) by including nsString.h. 2001-05-08 22:21:56 +00:00
dbaron%fas.harvard.edu
4fe3b0e759 Fix xlib build bustage from checkin for bug 79132. 2001-05-08 22:17:10 +00:00
edburns%acm.org
742b92e202 This checkin uses the information in this nntp post:
From: valeski@netscape.com (Judson Valeski)
Newsgroups: netscape.public.mozilla.embedding
Subject: Re: nsIDocumentLoaderObserver migration guide?
Date: 8 May 2001 14:41:33 GMT
Organization: Another Netscape Collabra Server User
Lines: 44
Message-ID: <3AF8059A.D83EAAF@netscape.com>

To enable fine grained status tracking in webclient.

The following files are in this checkin.

M classes_spec/org/mozilla/webclient/test/EMWindow.java
M src_moz/CBrowserContainer.cpp
M src_moz/CBrowserContainer.h
2001-05-08 21:57:57 +00:00
wtc%netscape.com
22925ad1c4 Bugzilla bug #76896: added PR_CALLBACK for OS/2. Thanks to Michael Kaply
<mkaply@us.ibm.com> for the patch.
Modified files: prcmon.h, prthread.h, prtime.h
2001-05-08 21:50:22 +00:00
dbaron%fas.harvard.edu
47b2528d1c Fix bustage from XPCDOM landing by including nsIScriptContext.h. 2001-05-08 21:40:24 +00:00
jband%netscape.com
857134131a fix linux startup assertion due to null PRLock. Trying to cleanup the xpcdom landing! r=dbaron 2001-05-08 21:40:00 +00:00
jst%netscape.com
bbf3cd485c Replacing uuid since the last one mozbot gave me was already used, I can not believe this! 2001-05-08 21:33:42 +00:00
relyea%netscape.com
e8fc77d869 Get NT builds running again by turning off building of the sw fortezza pkcs11 module. 2001-05-08 21:22:20 +00:00
edburns%acm.org
f77c8b0f45 Previous version did not compile: errors in getSource(). 2001-05-08 21:07:16 +00:00
dbaron%fas.harvard.edu
01fb925375 Attempt to fix AIX and OS/2 bustage by changing nsAReadableString (which is const) to nsAString. r=jband 2001-05-08 20:54:53 +00:00
edburns%acm.org
b6f0f4bea9 Removed "^M" chars.
Sorry
2001-05-08 20:54:14 +00:00
peterv%netscape.com
c1facb2e41 Another mac bustage fix (remove nsJSDOMEventListener.cpp). 2001-05-08 20:35:28 +00:00
edburns%acm.org
f4bc0e8678 bug 79278
This checkin migrates javaDOM to use the new nsIWebProgressListener
interface, removing its dependency on the now non-existant
nsIDocumentLoaderObserver.

It has only been tested inside webclient.  QA needs to do the standalone
javaDOM tests.

The following files are in this bugfix:

dom/jni/org_mozilla_dom_DOMAccessor.cpp
dom/src/nsIJavaDOM.h
dom/src/nsJavaDOMImpl.cpp
dom/src/nsJavaDOMImpl.h
webclient/classes_spec/org/mozilla/webclient/test/EMWindow.java
webclient/classes_spec/org/mozilla/webclient/wrapper_native/CurrentPageImpl.java
2001-05-08 20:34:31 +00:00
javi%netscape.com
d251e0ed4c Make crmfcgi build once again 2001-05-08 20:19:12 +00:00
bryner%uiuc.edu
55279c8fcb Fixing bustage resulting from linking with libjsdom. r=shaver. 2001-05-08 19:48:55 +00:00
dbaron%fas.harvard.edu
30e57620ef Fix bustage by including stdlib.h. 2001-05-08 19:48:51 +00:00
dbaron%fas.harvard.edu
f0e8255e36 Fix gcc 2.7.2.3 bustage with enum values from different anonymous enums. r=shaver 2001-05-08 19:43:47 +00:00
mkaply%us.ibm.com
5f383821f0 OS/2 TB breakage 2001-05-08 19:36:45 +00:00
dbaron%fas.harvard.edu
2d11d389ae Add newline at end of file to fix HP bustage. 2001-05-08 19:28:46 +00:00
dbaron%fas.harvard.edu
32c43cb5ef Fix MOZ_TRACK_MODULE_DEPS (senna tinderbox) bustage by adding new header file dependencies from XPCDOM landing to REQUIRES. 2001-05-08 19:19:03 +00:00
peterv%netscape.com
83cb672134 Adding nsIProgrammingLanguage.idl (mac bustage fix) 2001-05-08 19:17:19 +00:00
dbaron%fas.harvard.edu
7241928fef Fix gcc 2.7.2.3 bustage (conditional with enumerated values from different anonymous enums). r=jband 2001-05-08 19:11:51 +00:00
jst%netscape.com
35447f5647 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 18:02:50 +00:00
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