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

82012 Коммитов

Автор SHA1 Сообщение Дата
kirke%netscape.com 178c4eaa4a Fixes 78577 (second half) This gets the SECItem->data member NULL case. 2001-05-08 22:53:23 +00:00
beard%netscape.com 02dde5de81 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 7c3e08095c 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 7ec38da411 Fixes 78577. Checking for NULL src arg. 2001-05-08 22:38:02 +00:00
edburns%acm.org ad97d1397a Complete the conversion from nsIDocumentLoaderObserver. 2001-05-08 22:32:19 +00:00
dbaron%fas.harvard.edu eb58f88cfc Fix bustage from XPCDOM landing by including nsCRT.h. 2001-05-08 22:29:06 +00:00
beard%netscape.com dd6238bc49 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 85d0bd6c2e 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 814a6ead77 Fix xlib build bustage from checkin for bug 79132. 2001-05-08 22:17:10 +00:00
edburns%acm.org d7d6e3a247 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 3d92383fc4 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 496c1799d3 Fix bustage from XPCDOM landing by including nsIScriptContext.h. 2001-05-08 21:40:24 +00:00
jband%netscape.com 9ca075cad7 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 6b5b1c70ae 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 6b8727d2e2 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 27a8c39e16 Previous version did not compile: errors in getSource(). 2001-05-08 21:07:16 +00:00
dbaron%fas.harvard.edu 2605b46069 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 986b120eb8 Removed "^M" chars.
Sorry
2001-05-08 20:54:14 +00:00
peterv%netscape.com bc536c429c Another mac bustage fix (remove nsJSDOMEventListener.cpp). 2001-05-08 20:35:28 +00:00
edburns%acm.org af821d0195 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 98c50a5e5a Make crmfcgi build once again 2001-05-08 20:19:12 +00:00
bryner%uiuc.edu 0d37cef07b Fixing bustage resulting from linking with libjsdom. r=shaver. 2001-05-08 19:48:55 +00:00
dbaron%fas.harvard.edu ce7da709f4 Fix bustage by including stdlib.h. 2001-05-08 19:48:51 +00:00
dbaron%fas.harvard.edu 8fe9e7700e 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 865948a22c OS/2 TB breakage 2001-05-08 19:36:45 +00:00
dbaron%fas.harvard.edu cc2ff76a60 Add newline at end of file to fix HP bustage. 2001-05-08 19:28:46 +00:00
dbaron%fas.harvard.edu 1326c82680 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 f611e1c6d2 Adding nsIProgrammingLanguage.idl (mac bustage fix) 2001-05-08 19:17:19 +00:00
dbaron%fas.harvard.edu 8d47a3c3fd 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 3f55f4aeb1 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 621060c4fd 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 aeafd0d638 merging for jst. 2001-05-08 17:14:15 +00:00
jst%netscape.com 4efe5ca336 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 762d6ae262 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 adf1d8320a 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 e365bb5bdf #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 e48bb6adcf fix gcc/MacOSX build (bug #66742); patch from davea@xetron.com 2001-05-08 14:12:06 +00:00
nboyd%atg.com 3faa9b4093 Change use of deprecated method. 2001-05-08 13:51:18 +00:00
nboyd%atg.com 342fb9ff6d Commit missing messages for new idswitch tool. 2001-05-08 13:42:56 +00:00
nboyd%atg.com 79e1cced0e 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 e6396486de fix Composer keybindings (bugs #76917, 78064) 2001-05-08 13:39:36 +00:00
nboyd%atg.com 1ff3bdef33 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 4938181b34 Minor fix. r=sfraser. Does not effect build 2001-05-08 13:35:48 +00:00
nboyd%atg.com e465a24df3 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 fca8ad1b44 Adding makefile, not part of the build yet. 2001-05-08 12:34:29 +00:00
timeless%mac.com 8a0fa1ceb4 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 b0710bb6fb Typographical changes 2001-05-08 08:36:02 +00:00
rbs%maths.uq.edu.au 294057136e Correct stretchy metadata 2001-05-08 08:34:13 +00:00
rbs%maths.uq.edu.au ad4e80b4bb Correct a faulty mapping 2001-05-08 08:31:48 +00:00
ftang%netscape.com fe19b0bcba fix #ifdef IBMBID bustage
change other.mUnicodeBidi to other->mUnicodeBidi
r=noone sr=onone
2001-05-08 08:13:12 +00:00