Compare commits

..

1508 Commits

Author SHA1 Message Date
igor%mir2.org
96154ba631 cosmetics: end-of-line whitespace removal again
git-svn-id: svn://10.0.0.236/branches/less_static@115249 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-22 23:28:28 +00:00
(no author)
771cbc6bfd This commit was manufactured by cvs2svn to create branch 'less_static'.
git-svn-id: svn://10.0.0.236/branches/less_static@113702 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 13:47:17 +00:00
nboyd%atg.com
7c8814ac5e Have ClassNameHelper object be allocated lazily
git-svn-id: svn://10.0.0.236/trunk@113701 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 13:47:16 +00:00
nboyd%atg.com
6546deedfa Don't hold a static reference to a ClassLoader that will prevent JavaAdapter classes
from being unloaded.


git-svn-id: svn://10.0.0.236/trunk@113700 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 13:37:50 +00:00
locka%iol.ie
8e370dc046 Remove GetContentShellById from nsIWebShellWindow & impl as it's already defined in nsIXULWindow. b=122861 r=timeless@mac.com sr=jag@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113699 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 12:41:47 +00:00
jst%netscape.com
d79bb6b848 Checking in Pete Zha's <pete.zha@sun.com> fix for bug 121726. Don't remove and re-insert form controls into form.elements when the name or id changes. This caused form.elements to be incorrectly ordered and is pointless to start with. r=jkeiser@iname.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113698 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 10:36:28 +00:00
seawood%netscape.com
4fdf7a334f Add Makefile.ins for mapi
Bug #120135


git-svn-id: svn://10.0.0.236/trunk@113697 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 09:23:43 +00:00
racham%netscape.com
7d58d05fe4 Fixing bugscape bug 9846. Adding default version number for html domain pre-population. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@113696 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 09:06:26 +00:00
racham%netscape.com
8718c76ea7 Fixing bugscape bug 9846. This fix allows ISPs to prepopulate list of html domains that can be added to html domain list of send format check. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@113695 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 09:04:04 +00:00
racham%netscape.com
a8c4ef6d78 Fixing bug 122309. Using new ParseString routine to parse ports list. r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@113694 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 08:39:30 +00:00
racham%netscape.com
f17221e5ab Fixing bug 122309. Adding a new routine that can take a string and parse it on a delimiter to add elements to the nsCStringArray. r=dougt, sr=jag
git-svn-id: svn://10.0.0.236/trunk@113693 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 08:35:28 +00:00
bbaetz%student.usyd.edu.au
cfd7df1801 Point to ftp.netscape.com/Welcome for ftp tests since ftp.mozilla.org
appears to be loaded
rs=jag


git-svn-id: svn://10.0.0.236/trunk@113692 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 07:16:24 +00:00
jst%netscape.com
4373fa4ab0 More comments...
git-svn-id: svn://10.0.0.236/trunk@113691 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 07:13:50 +00:00
jband%netscape.com
bc42c1e965 Add better support to xpconnect for converting between variants and arrays. bug 120881. r=dbradley sr=vidur. Trivial fix for case where we were hitting an assert at xpcom shutdown. bug 121536. r=dbradley rs=vidur.
git-svn-id: svn://10.0.0.236/trunk@113690 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:45:08 +00:00
jst%netscape.com
a9d86459c5 Fixing bug 123078. Making document.<n> === document['<n>'] for backwards compatibility reasons. r=peterv@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113689 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:44:04 +00:00
peterlubczynski%netscape.com
5190a48a4e Propigate wParam for mouse events directly to plugin bug 123005 r=kmcclusk sr=beard
git-svn-id: svn://10.0.0.236/trunk@113688 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:13:44 +00:00
leaf%mozilla.org
711edb1165 Automated update
git-svn-id: svn://10.0.0.236/trunk@113687 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:12:07 +00:00
jst%netscape.com
deafb819b5 Whitespace cleanup...
git-svn-id: svn://10.0.0.236/trunk@113686 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:04:56 +00:00
seawood%netscape.com
b2b991e8b1 Since we build a program called nsinstall in the tree, make sure that uwe use the full path to the nsinstall.exe found in wintools.zip.
Bug #123294 r=bryner


git-svn-id: svn://10.0.0.236/trunk@113685 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 06:01:58 +00:00
jst%netscape.com
a49bb992db Fixing bug 116834. Making element.innerHTML='...<script>...</script>...' not execute the script, this makes mozilla compatible with IE wrt innerHTML and execution of scripts. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113684 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:53:56 +00:00
jst%netscape.com
4e17fc730c Fixing bug 115352. Making FlushPendingNotifications() properly flush the parent document as well if there is one. This causes layout data in iframes to not always be up to date since iframe sizes are dependent on the parent being reflown. r=peterv@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113683 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:47:22 +00:00
jst%netscape.com
d7991ba5d1 Fixing compiler warnings and defaulting line numbers to 0 in stead of (PRUint32)-1. sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113682 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:43:08 +00:00
mscott%netscape.com
b8826d2beb Bug #123457 --> fix some thread safety assertion warnings by making sure
the notifications callback for the socket gets released on the UI thread.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113681 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 05:05:37 +00:00
rpotts%netscape.com
bc4e6e1a96 bug #117948 (r=bzarsky@mit.edu, sr=vidur@netscape.com) Ignore the HTTP Window-Target header inside of <meta> tags
git-svn-id: svn://10.0.0.236/trunk@113680 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 04:46:54 +00:00
blakeross%telocity.com
7c257b4a2f Backing this out because it made shift+space not do a space, which I think is worse in the end. (122017). r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113679 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 04:43:47 +00:00
rpotts%netscape.com
acd07aa585 bug #122150 (r=jst@netscape.com, sr=darin@netscape.com) File transport was using the wrong nsIProgressEventSink when firing notifications...
git-svn-id: svn://10.0.0.236/trunk@113678 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 04:42:25 +00:00
jst%netscape.com
cdb28fa8fb Checking in Fabian's <hidday@geocities.com> fix for bug 69196. Making image.border, .hspace, and .vspace default to 1 an not -1. r=sicking@bigfoot.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113677 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 04:37:10 +00:00
jst%netscape.com
e5c226065e Checking in Fabian's <hidday@geocities.com> fix for bug 76895. Making cloneNode() work on document fragments. r=bzbarsky@mit.edu, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113676 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 04:22:17 +00:00
bzbarsky%mit.edu
f1b8d786a1 mfcEmbed has no Equals() on CString. Oops. Fixing mfcembed bustage.
git-svn-id: svn://10.0.0.236/trunk@113675 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:54:32 +00:00
ian.mcgreer%sun.com
51a288738c cleanup suggested by review by Nelson
git-svn-id: svn://10.0.0.236/trunk@113674 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:53:50 +00:00
naving%netscape.com
06e1e4d86e 74781 r=bienvenu sr=sspitzer. Select the newly downloaded pop3 message that was truncated by limit size.
git-svn-id: svn://10.0.0.236/trunk@113673 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:46:15 +00:00
dougt%netscape.com
1f176a9aaf Fixing calling conventions of NS_IMPL_THREADSAFE_RELEASE. Submitted by Tobias Oberstein. r=me, sr=jband@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@113672 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:34:44 +00:00
mcafee%netscape.com
1c233440d2 Adding --file support. verbal r= alecf
git-svn-id: svn://10.0.0.236/trunk@113671 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:25:24 +00:00
bzbarsky%mit.edu
c1d76095eb Fix bustage. "i" is already declared.
git-svn-id: svn://10.0.0.236/trunk@113670 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:11:01 +00:00
darin%netscape.com
3ddd33baaa final patch for bug 109179 "replace nsStdEscape with NS_EscapeURL"
r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@113669 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 03:08:15 +00:00
chak%netscape.com
d26dd8bed1 Fix for #123054 - Rearrange profile dlgs in MfcEmbed
r=adamlock, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@113668 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:57:54 +00:00
bryner%netscape.com
db6f813361 Fixing bug 122034 (tabbing not working from xbl selects). Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@113667 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:14:50 +00:00
vidur%netscape.com
418679d380 Fix for bug 122305. XMLHttpRequest now has a way to override the mime type of the incoming stream. r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@113666 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:10:52 +00:00
bzbarsky%mit.edu
2fd80b82c9 Convert Compare() to Equals() where possible now that we can do
case-insensitive Equals().  Bug 115289, r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113665 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:03:07 +00:00
sspitzer%netscape.com
2a88b29b3d fix for #122481, crash when creating (and then unsubscribing) from bogus
newsgroups, like news://news.mozilla.org/foo/bar.

also some code cleanup.

r/sr=bienvenu.  thanks to hwaara for the initial patch.


git-svn-id: svn://10.0.0.236/trunk@113664 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 02:00:25 +00:00
jst%netscape.com
5aa4af9df0 Fixing bug 123438. Making element.localName not be uppercased for XHTML elements. r=heikki@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113663 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:51:06 +00:00
relyea%netscape.com
c7a84be240 Fix error path, only free arena is one was allocated.
git-svn-id: svn://10.0.0.236/trunk@113662 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:47:01 +00:00
pschwartau%netscape.com
c9de0b7992 Initial add. Regression test for bug 123437.
git-svn-id: svn://10.0.0.236/trunk@113661 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:44:52 +00:00
varga%utcru.sk
62fd668a27 Fix for 122794. Outliner columns ordered incorrectly.
- use selection sort instead of quick sort, since quick sort in unstable
r=bryner, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@113660 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:44:51 +00:00
cathleen%netscape.com
ec77313291 eliminates 107 nsCRT::memset calls to use memset instead. removed nsCRT::memset() function. bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113659 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:41:13 +00:00
bbaetz%student.usyd.edu.au
010788b22a Bug 110241 pt 2 - fix regression from previous checkin, and remove a
couple of write-only vars
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@113658 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:38:44 +00:00
dougt%netscape.com
37a71e53f5 Adding comments to the nsIGenericFactory file. bug 123442. r=gagan@netscape.com, sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113657 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:38:43 +00:00
mscott%netscape.com
26d531c5cb Bug #122236 --> set the performing biff flag when we are about to perform biff
and register the root folder as a listener on the url so it can clear the flag
r=naving
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113656 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:36:42 +00:00
mscott%netscape.com
fbe18f8362 Bug #122236 --> set the performing biff flag when we are about to perform biff
and register the root folder as a listener on the url so it can clear the flag

Bug #123440 --> don't give a message window when performing biff, this keeps
biff from bringing up any form of UI.
r=naving
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113655 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:36:15 +00:00
heikki%netscape.com
c5b81825af Bug 119335, string assertion in XMLContentSerializer, use Substring for non-null terminated string. r=jst, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@113654 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:35:34 +00:00
mscott%netscape.com
f0d23cc9d7 Bug #122236 --> only show the biff icon in the system tray if
we are performing biff as opposed to the user clicking get new mail
add a flag to the server to store biff state
r=naving
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113653 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:35:32 +00:00
mscott%netscape.com
48341120ab Bug #122236 --> only show the biff icon in the system tray if
we are performing biff as opposed to the user clicking get new mail
add a flag to the server to store biff state
r=naving
sr=bienvenu

Bug #122500 --> create a message window for the biff icon in the
system tray. this removes our dependency on the hidden window. On double
click, open up the last used 3-pane window or create a new one.
r=bhuvan
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113652 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:34:53 +00:00
waldemar%netscape.com
c89eb0f8c2 Fixed stub compile error
git-svn-id: svn://10.0.0.236/trunk@113651 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:13:30 +00:00
waldemar%netscape.com
d27901c0a3 Expanded map to allow type-narrowing conditions in its condition expression
git-svn-id: svn://10.0.0.236/trunk@113650 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 01:13:03 +00:00
cltbld%netscape.com
b1fd072d06 Better logfile test names
git-svn-id: svn://10.0.0.236/trunk@113649 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 00:48:59 +00:00
bbaetz%student.usyd.edu.au
8ec543447a Bug 119715 - strictvaluechecks should always be enabled
r=justdave, gerv


git-svn-id: svn://10.0.0.236/trunk@113648 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 00:20:09 +00:00
bbaetz%student.usyd.edu.au
2c81615c9a Bug 122418 pt2 - obsoleting a patch from the create attachment screen gave
a taint error.


git-svn-id: svn://10.0.0.236/trunk@113647 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-05 00:11:48 +00:00
alexsavulov%netscape.com
07f131e852 DOCUMENTATION CHANGE - not affecting the build
git-svn-id: svn://10.0.0.236/trunk@113646 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 23:28:29 +00:00
seawood%netscape.com
e1a1ac02a7 Move impl of nsIndexedToHTML::Create from .h to .cpp to fix BeOS bustage.
Bug 74803 sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113643 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 23:23:21 +00:00
nelsonb%netscape.com
a9cd5beaa8 Plug one of the leaks reported in bugzilla bug 123081
git-svn-id: svn://10.0.0.236/trunk@113642 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 23:15:11 +00:00
ian.mcgreer%sun.com
3e0d2561a3 plug leak found doing client auth, move freeing of cert's slot down a level in case the cert was not made external
git-svn-id: svn://10.0.0.236/trunk@113640 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 23:04:11 +00:00
mjudge%netscape.com
e6b116a625 command handler needed to be added to exports. blocker 123399
git-svn-id: svn://10.0.0.236/trunk@113639 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 22:58:51 +00:00
mjudge%netscape.com
99a1881c37 change to export command handler. blocker fix for 123399
git-svn-id: svn://10.0.0.236/trunk@113637 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 22:53:35 +00:00
gerv%gerv.net
2a14c2e071 Remove JS strict warning.
git-svn-id: svn://10.0.0.236/trunk@113636 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 22:47:26 +00:00
ian.mcgreer%sun.com
0240bece7f fix leak reported in bug 123081 by avoiding allocation for time variable
git-svn-id: svn://10.0.0.236/trunk@113633 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 22:34:22 +00:00
bbaetz%student.usyd.edu.au
d2945c40c2 bug 122418 - setting attachment status fails taint checks. Just needed to
detaint after checking.
r=gerv,kiko


git-svn-id: svn://10.0.0.236/trunk@113632 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 22:16:18 +00:00
ian.mcgreer%sun.com
7ec531594f last part of bug 121628, permanent slots should respond immediately to IsPresent() call
git-svn-id: svn://10.0.0.236/trunk@113631 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:57:07 +00:00
gerv%gerv.net
4711cd34e5 show_bug.cgi templatisation.
git-svn-id: svn://10.0.0.236/trunk@113629 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:17:17 +00:00
waldemar%netscape.com
3ddc09d4af Updated license
git-svn-id: svn://10.0.0.236/trunk@113628 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:13:45 +00:00
waldemar%netscape.com
f5b53beb84 Major reorganization of object structure, environments, frames, and bindings. Added compile/run flag to all expression evaluation functions.
git-svn-id: svn://10.0.0.236/trunk@113627 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:12:28 +00:00
waldemar%netscape.com
99127cdceb Added another test case
git-svn-id: svn://10.0.0.236/trunk@113626 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:11:02 +00:00
waldemar%netscape.com
5b51f9b435 Added delete-adjacent-duplicates
git-svn-id: svn://10.0.0.236/trunk@113625 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:09:51 +00:00
waldemar%netscape.com
57833896b4 Added m-dash
git-svn-id: svn://10.0.0.236/trunk@113624 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:09:29 +00:00
waldemar%netscape.com
4047f11fef Removed license
git-svn-id: svn://10.0.0.236/trunk@113623 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:09:05 +00:00
waldemar%netscape.com
b913abd7d3 Incomplete attempt to define bit-set and restricted-set semantic types and to define the set-field record/tuple constructor
git-svn-id: svn://10.0.0.236/trunk@113622 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 21:08:18 +00:00
shrutiv%netscape.com
75d88cb579 Adding Macintosh OSX installer screen to the wizard (r=smeredith)
git-svn-id: svn://10.0.0.236/trunk@113620 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 20:05:30 +00:00
shrutiv%netscape.com
4800e6ce39 Fix for bugzilla 118240: Last screen of wizard must be changed for Mac
customization (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@113619 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 20:01:39 +00:00
shrutiv%netscape.com
c62c135f1d Fix for bug 118240: Last screen of wizard must be changed for Mac
customization (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@113618 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 19:49:15 +00:00
shrutiv%netscape.com
8192f40c86 Fix for bug 118240: Last screen of wizard must be changed for Mac
customization (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@113617 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 19:42:37 +00:00
nboyd%atg.com
ccd738333b Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@113613 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 18:58:03 +00:00
relyea%netscape.com
37eb96be75 Function to read PQG params from the key.
git-svn-id: svn://10.0.0.236/trunk@113612 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 18:00:14 +00:00
zach%zachlipton.com
137895e51f Fix for bug 87398: checksetup.pl should warn if not run as root. Patch
adds a warning if the user has webservergroup set but does not run
checksetup.pl as root.

r1=kiko, r2=justdave


git-svn-id: svn://10.0.0.236/trunk@113610 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 16:38:33 +00:00
bzbarsky%mit.edu
c2dafa9a2d Fix appearance of filter extensions twice in filepicker. Bug 115670,
r=bryner, sr=jag.


git-svn-id: svn://10.0.0.236/trunk@113609 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 16:12:18 +00:00
wtc%netscape.com
6060dc6b69 Temporary hack to make 'depend' do a 'clean' in NSS.
git-svn-id: svn://10.0.0.236/trunk@113608 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 15:57:38 +00:00
sicking%bigfoot.com
ef42436f16 Final part of bug 59912. Call SetDocument before adding any attributes on elements in the result of XSLT-transformations. This fixes (at least) onclick-like attributes.
r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@113606 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 15:31:41 +00:00
nboyd%atg.com
8ba4f03273 Change version to 1.5R4pre.
git-svn-id: svn://10.0.0.236/trunk@113605 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 15:26:31 +00:00
mkaply%us.ibm.com
65b729bf7d #108280
r=mkaply, sr=blizzard
Make OS/2 use display facenames on DBCS fonts.


git-svn-id: svn://10.0.0.236/trunk@113603 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 14:44:36 +00:00
timeless%mac.com
030e9d615b Bug 122809ÿMismatched allocator/deallocator ToNewCString & delete[]
r=bzbarsky@mit.edu sr=jag


git-svn-id: svn://10.0.0.236/trunk@113602 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 14:37:01 +00:00
rods%netscape.com
daf06d9375 Remove checking for numeric input from header/footer input
part of fix to 120062 r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113600 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 13:38:13 +00:00
ccarlen%netscape.com
caadeea75a Bug 121235 - Freeze nsIDirectoryServiceProvider2. r=dougt@netscape.com/sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113599 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 13:10:54 +00:00
bbaetz%student.usyd.edu.au
e20fe58870 Bug 95732 - remove logincookies.cryptpassword, and invalidate cookies from
the db when required instead.
(Also fixes bug 58242 as a side effect)

r=myk, kiko


git-svn-id: svn://10.0.0.236/trunk@113598 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 12:23:05 +00:00
hyatt%netscape.com
cdc7d6d6d8 Fix Macho and Cocoa horkage because of a missing ifdef.
git-svn-id: svn://10.0.0.236/trunk@113597 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 10:56:42 +00:00
seawood%netscape.com
1fe10f037c Remove destination file if it exists before copying.
Bug #120586 r=bryner


git-svn-id: svn://10.0.0.236/trunk@113596 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 09:15:52 +00:00
leaf%mozilla.org
dabc9839b7 Automated update
git-svn-id: svn://10.0.0.236/trunk@113595 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 09:12:11 +00:00
bryner%netscape.com
453c723957 Don't try to build native theme support on gtk2 (API changes). r=cls.
git-svn-id: svn://10.0.0.236/trunk@113594 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 09:03:53 +00:00
seawood%netscape.com
db2075a2e3 Removing fallback hooks for deprecated configure options.
git-svn-id: svn://10.0.0.236/trunk@113593 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 08:59:16 +00:00
seawood%netscape.com
6a70d87d0a Increase the lgot buffer for static Irix builds.
Bug #122917 r=nickb@adacel.com.au


git-svn-id: svn://10.0.0.236/trunk@113592 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 06:25:43 +00:00
blakeross%telocity.com
d2d17b6520 79047 - shift+space should scroll upwards. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113591 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 06:15:14 +00:00
blakeross%telocity.com
8ebc9524ff 122017 - shouldn't always unset shift when dispatching keypress event. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113590 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 06:14:10 +00:00
seawood%netscape.com
6e46c8276f Use LDFLAGS when linking SIMPLE_PROGRAMS on win32
Bug #123065


git-svn-id: svn://10.0.0.236/trunk@113589 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 05:53:51 +00:00
seawood%netscape.com
ef829e43db Set MAPFILE in config.mk instead of rules.mk
git-svn-id: svn://10.0.0.236/trunk@113588 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 05:49:14 +00:00
blakeross%telocity.com
352f4a09fb 67139 - title of active window should be checked in tasks menu. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113587 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 05:15:47 +00:00
cotter%netscape.com
a89a12f6e4 privacy & security help content update for Form Manager help, per 122806, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@113586 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 03:52:33 +00:00
blakeross%telocity.com
7d279b7a8c 123285 - columns aren't correctly persisted in history and other outliners. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113585 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 03:44:51 +00:00
justdave%syndicomm.com
40ab41ff77 Fix for bug 14461: QA contact is no longer required. You can still leave it blank in editing and creating components if you
want, even if it's enabled now.  This is consistant with the behavior of this field everywhere else in Bugzilla now.
Eventually this will be a per-product setting whether to enforce having one or not.
Patch by Matthew Tuck <matty@chariot.net.au>
r= justdave x 2


git-svn-id: svn://10.0.0.236/trunk@113584 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-04 00:41:40 +00:00
sicking%bigfoot.com
742947de1e Fix IRIX bustage
git-svn-id: svn://10.0.0.236/trunk@113583 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 21:36:03 +00:00
rbs%maths.uq.edu.au
fe7bb4aef5 Using the recently added APIs to respond to dynamic changes: a _much_ simpler (re)fix of bug 114909 - dynamically changing displaystyle attribute in <mstyle> tag doesn't change display
git-svn-id: svn://10.0.0.236/trunk@113582 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 21:15:29 +00:00
rbs%maths.uq.edu.au
bc9ff10418 Add ReLayout() - a driver that hides the details needed to re-sync a frame subtree in case of dynamic changes: rebuild of automatic data, re-resolve script styles, fire a reflow
git-svn-id: svn://10.0.0.236/trunk@113581 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 21:06:51 +00:00
rbs%maths.uq.edu.au
de6635197e slight simplification - the removal will recurse down to the wrapped child
git-svn-id: svn://10.0.0.236/trunk@113580 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 20:11:37 +00:00
jband%netscape.com
9ce852e366 unbust XPCONNECT_STANDALONE build. No change to default build. bug 121438. rs=jband.
git-svn-id: svn://10.0.0.236/trunk@113579 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 20:05:22 +00:00
sicking%bigfoot.com
6838b8f4b5 Make relational comparisons between NodeSets and booleans follow the spec.
b=116540 r=Pike sr=jst


git-svn-id: svn://10.0.0.236/trunk@113578 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 19:50:27 +00:00
beard%netscape.com
1a035e7a78 Fixing bustage caused by newly added mozilla/modules/libpr0n/decoders/ijpeg directory. Added explicit search path of ::decoders:jpeg: before ::.
git-svn-id: svn://10.0.0.236/trunk@113577 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 19:13:51 +00:00
blakeross%telocity.com
39cb58daff fix an oops in last nights checkin. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113576 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 18:27:09 +00:00
myk%mozilla.org
f89a91a9e4 Fix for bug 121747: Stops every script before it does anything else if Bugzilla is currently shut down. Also adds global template
instantiation code to globals.pl.
Patch by Myk Melez <myk@mozilla.org>.
r=gerv,kiko


git-svn-id: svn://10.0.0.236/trunk@113573 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 09:28:48 +00:00
blakeross%telocity.com
9ee927920a 121180 - clicking or dbl clicking on wrong things in bookmarks/history incorrectly opens url. a left and then right click in quick succession in bookmarks is counted as a double click. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@113572 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 08:40:31 +00:00
bryner%netscape.com
632ac8da85 Fixing some warnings in xpcom. Bug 118377, r=hwaara, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@113571 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 07:05:10 +00:00
seawood%netscape.com
7b423bbbcc Add INSTALL file which outlines the basic steps to setting up a tinderbox
Clean up README


git-svn-id: svn://10.0.0.236/trunk@113568 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 06:31:44 +00:00
darin%netscape.com
3769c6f9ed backing out some changes that accidentally slipped in!
git-svn-id: svn://10.0.0.236/trunk@113567 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 06:24:55 +00:00
blizzard%redhat.com
a3c36cf3d5 Add gtk2 to the list of dirs that are built. No bug on this. r=cls
git-svn-id: svn://10.0.0.236/trunk@113565 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 06:09:22 +00:00
blizzard%redhat.com
47f131cf51 Add warning about this not being implemented. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113564 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 06:08:21 +00:00
blizzard%redhat.com
28419b1a35 Gtk2 files for viewer. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113563 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 06:06:06 +00:00
leaf%mozilla.org
8bc5eccf5e Automated update
git-svn-id: svn://10.0.0.236/trunk@113562 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:42:15 +00:00
samuel%sieb.net
f0983bfcd8 Bug 112920 - add css rule for superfluous notifies
r=rginda
chatzilla only


git-svn-id: svn://10.0.0.236/trunk@113561 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:36:59 +00:00
samuel%sieb.net
4b95e62e27 Bug 112920 - enhancement to notify code
r=rginda
chatzilla only


git-svn-id: svn://10.0.0.236/trunk@113560 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:35:26 +00:00
wtc%netscape.com
a464983a2e Bugzilla bug 117479: add the PR_ABS macro. Thanks to Roland Mainz
<Roland.Mainz@informatik.med.uni-giessen.de> for the patch.


git-svn-id: svn://10.0.0.236/trunk@113559 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:34:50 +00:00
seawood%netscape.com
f3c761d348 Add check to see if 'cd $MOZ_TOOLS && pwd` failed.
git-svn-id: svn://10.0.0.236/trunk@113558 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 04:34:43 +00:00
blizzard%redhat.com
024ca97902 Bug #92033. Land changes to get gfx/ building with gtk2. Lots of ifdef code here. r=cls,bryner sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113557 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:47:18 +00:00
leaf%mozilla.org
17d9bc1085 Automated update
git-svn-id: svn://10.0.0.236/trunk@113556 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:42:16 +00:00
relyea%netscape.com
36e3068bc1 Bug 117978: accessor functions to all JCE keystore API to be implemented.
git-svn-id: svn://10.0.0.236/trunk@113555 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:37:26 +00:00
bzbarsky%mit.edu
25554d8060 Send "referer" header when loading links via link toolbar. Bug 119478,
r=choess@stwing.upenn.edu, sr=blake


git-svn-id: svn://10.0.0.236/trunk@113554 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:28:59 +00:00
seawood%netscape.com
f01d8582cf Add support for MOZ_PROFILE, MOZ_COVERAGE, & MOZ_MAPINFO for win32 gmake builds.
Set these variables in your MOZCONFIG file before running configure or on the make cmd line when building in individual dirs.


git-svn-id: svn://10.0.0.236/trunk@113553 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:28:07 +00:00
leaf%mozilla.org
ecb2db1c4c Automated update
git-svn-id: svn://10.0.0.236/trunk@113552 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:12:08 +00:00
seawood%netscape.com
6746e087bc Add warning message if cl test prog fails for cygwin targets
git-svn-id: svn://10.0.0.236/trunk@113551 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 03:06:07 +00:00
seawood%netscape.com
c94f385d8c Do not install the mozilla script on win32
git-svn-id: svn://10.0.0.236/trunk@113550 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 02:45:54 +00:00
bzbarsky%mit.edu
32878c94aa Fix strict JS warning. Patch by Alex Vincent <jscript@pacbell.net>,
r=brade, sr=kin


git-svn-id: svn://10.0.0.236/trunk@113549 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 02:37:02 +00:00
pavlov%netscape.com
27a18104fd adding new stub files for work with using intel's jpeg library
git-svn-id: svn://10.0.0.236/trunk@113548 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 01:54:08 +00:00
blakeross%telocity.com
6f1b90acc1 92749 - "view background image" context menu item doesn't always appear when it should. r=bz sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113547 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 00:58:38 +00:00
jband%netscape.com
5518ba6525 Add support for chaining 'additional managers' to the global interface info manager. This includes weakref support. This system allows us to dynamically aggregate interface info managers to support systems like SOAP. Clients of the interface info manager can traverse that list of additonal managers (if any are present) or ignore it. This fixes bug 103805. r=dbradley sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@113546 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 00:56:16 +00:00
seawood%netscape.com
0118504ff3 Add $(BIN_SUFFIX) to mkdepend defines
git-svn-id: svn://10.0.0.236/trunk@113545 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 00:41:00 +00:00
blakeross%telocity.com
6a2f5ed18a 39070 - can't dnd images or <areas>. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113544 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-03 00:06:12 +00:00
bryner%netscape.com
1a11ac5be2 Rest of the patch for bug 122542. I accidentely checked in the incomplete patch. r=varga, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113543 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 23:22:10 +00:00
jband%netscape.com
f5ff27091a Add C++ string support includes needed when AString params are used - NOT PART OF DEFAULT BUILD
git-svn-id: svn://10.0.0.236/trunk@113540 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 22:33:16 +00:00
jband%netscape.com
37f418f3dd Initial checkin of WSDL -> xpcom interface info translator quick test - NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@113539 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 22:31:12 +00:00
jband%netscape.com
a9712b4166 Commiting accumulated interface info extensions changes. NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@113538 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 22:18:56 +00:00
jband%netscape.com
367216bc3e Initial checkin of WSDL -> xpcom interface info translator. - NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@113537 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 21:37:23 +00:00
alecf%netscape.com
43bee42ecd more dependency updates
git-svn-id: svn://10.0.0.236/trunk@113536 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 21:29:01 +00:00
alecf%netscape.com
eeea2a1861 fix for bug 108988 r=caillon@returnzero.com, sr=blake
also fix a minor warning while I'm there


git-svn-id: svn://10.0.0.236/trunk@113535 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 21:13:10 +00:00
mkaply%us.ibm.com
d357e19dc2 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@113534 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 20:37:39 +00:00
alecf%netscape.com
c666ed8fca dependency update
git-svn-id: svn://10.0.0.236/trunk@113533 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 20:09:29 +00:00
ian.mcgreer%sun.com
e16c936a53 Fix cert leaks when building a chain. There are several client auth bugs filed, this may not be for any one in particular, but was found with tstclnt.
git-svn-id: svn://10.0.0.236/trunk@113532 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 20:01:22 +00:00
seawood%netscape.com
1cce7268dc s/command_handler/commandhandler/. Fixing win32 gmake bustage
git-svn-id: svn://10.0.0.236/trunk@113531 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 20:00:00 +00:00
ian.mcgreer%sun.com
633f5faf30 bug 90518, selfserv dumps cache state before shutdown with -y option
git-svn-id: svn://10.0.0.236/trunk@113530 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 19:39:48 +00:00
bienvenu%netscape.com
711f501004 disallow drag drop into read-only imap folders r=naving, sr=mscott 112103
git-svn-id: svn://10.0.0.236/trunk@113528 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 17:30:03 +00:00
bienvenu%netscape.com
c2485da7ba fix crash in morkRow::closerow object r=naving, sr=mscott 104659
git-svn-id: svn://10.0.0.236/trunk@113527 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 16:57:25 +00:00
bzbarsky%mit.edu
e72122a020 Make the unknown decoder pick up <table> and <div>. Bug 83480, r=rpotts,
sr=darin


git-svn-id: svn://10.0.0.236/trunk@113526 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 16:10:04 +00:00
rayw%netscape.com
15b1571fdb Converted tests to use new names for services on my soap server.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113525 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 15:42:27 +00:00
mkaply%us.ibm.com
1a35befbac HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@113524 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 14:30:00 +00:00
mkaply%us.ibm.com
75746a5566 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@113523 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 14:28:55 +00:00
mcafee%netscape.com
0049fa1e5f Fixing more bustage. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@113522 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 08:10:55 +00:00
mcafee%netscape.com
1b7b202a89 Fixing build bustage, tab lossage
git-svn-id: svn://10.0.0.236/trunk@113521 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 07:58:39 +00:00
mcafee%netscape.com
524c5d653c Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@113520 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 07:53:30 +00:00
mjudge%netscape.com
b12c99a155 xuldoc not content_xul
git-svn-id: svn://10.0.0.236/trunk@113519 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 07:49:04 +00:00
mjudge%netscape.com
6d432b1041 bad slash
git-svn-id: svn://10.0.0.236/trunk@113518 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 07:48:06 +00:00
mjudge%netscape.com
4f465d2207 wrong requires. fix bustage
git-svn-id: svn://10.0.0.236/trunk@113517 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 06:59:44 +00:00
mjudge%netscape.com
15dedb88c4 missed this one
git-svn-id: svn://10.0.0.236/trunk@113516 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 06:03:50 +00:00
rbs%maths.uq.edu.au
2ff8bf1765 Continuing to factor handlers to rebuild automatic data during dynamic changes
git-svn-id: svn://10.0.0.236/trunk@113515 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:43:03 +00:00
blakeross%telocity.com
1cc6cc00c4 117672 - minor ui defect in mailnews pref pane. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113514 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:42:17 +00:00
blakeross%telocity.com
ae786e96e5 109560 - edit menu in history is broken. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113513 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:30:55 +00:00
blakeross%telocity.com
04f561119e 72796 - alt+space depresses focused elt additionally. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113512 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:26:36 +00:00
blakeross%telocity.com
17cbced010 120984 - removing unnecessary code in nsglobalhistory. r/sr=me,ben
git-svn-id: svn://10.0.0.236/trunk@113511 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:22:20 +00:00
blakeross%telocity.com
b93d9137a9 98805 - need confirmation dialog, not aler,t when disabling ql. r=law sr=hewittCVS: ----------------------------------------------------------------------
git-svn-id: svn://10.0.0.236/trunk@113510 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:19:40 +00:00
blakeross%telocity.com
58723b91b4 98805 - need confirmation dialog, not aler,t when disabling ql. r=law sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113509 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:18:26 +00:00
mjudge%netscape.com
80554b8869 file from previous checkin
git-svn-id: svn://10.0.0.236/trunk@113508 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:14:25 +00:00
mjudge%netscape.com
40f7d1b02e 115922 embedding work. no changes should be observed in current product this will only affect the embedded effort. This moves the command handler stuff from content xul to embedding/components/commandhandler. a=judd r=saari built on mac/windows/gmake with this we will be able to finish removing editorshell from the app and have a true embedded editor.akkana will pick this up after me and finish the embedding work.
git-svn-id: svn://10.0.0.236/trunk@113507 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 05:13:56 +00:00
lordpixel%mac.com
cafbcdfba1 Final trunk fix for bug# 119118.
r=netdemon, sr=smfr.

r=sleestack (sherif) for checkin while tree closed


git-svn-id: svn://10.0.0.236/trunk@113506 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 04:44:14 +00:00
peterlubczynski%netscape.com
324ffc5a5e Fix by Serge for crash after installing Java Plug-in on Linux bug 122246 r=peterl sr=beard
git-svn-id: svn://10.0.0.236/trunk@113505 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 04:42:05 +00:00
wtc%netscape.com
0993648262 Bugzilla bug 122961: export CERT_CreateSubjectCertList for PSM.
git-svn-id: svn://10.0.0.236/trunk@113504 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 04:41:06 +00:00
dougt%netscape.com
bb7377d5e8 backing out my optimization
git-svn-id: svn://10.0.0.236/trunk@113502 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 03:20:01 +00:00
darin%netscape.com
7814a2d020 should fix btek bustage
git-svn-id: svn://10.0.0.236/trunk@113501 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:49:52 +00:00
darin%netscape.com
b6b52d0d83 fixes bug 86917 "socket transport should try all ip addresses returned by
DNS service" r=gordon, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@113500 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:45:25 +00:00
depstein%netscape.com
0335fbd08c Fixed web prog lstnr logging bug; added onStateChangeString() method to QaUtils. Also added entry to url table in nsIWebNav.cpp
git-svn-id: svn://10.0.0.236/trunk@113499 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:34:27 +00:00
bryner%netscape.com
ab15008e78 adding -moz-appearance for xbl listboxes. not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@113498 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:23:17 +00:00
pschwartau%netscape.com
39e30db812 Initial add. Regression test for bug 123002.
git-svn-id: svn://10.0.0.236/trunk@113497 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 02:03:43 +00:00
racham%netscape.com
cbcaff45cc Fixing bug 122108. Changing the label from ISP or email provider to Email account in the accountwizard's account type page. r=robinf, jglick, bhuvan
git-svn-id: svn://10.0.0.236/trunk@113496 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:59:34 +00:00
rayw%netscape.com
9cd6379065 A variety of bug fixes in SOAP, most notably, eliminating 1999 schema
types.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113495 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:47:27 +00:00
relyea%netscape.com
3c5d08984b Add new PK11_ImportSymKeyWithFlags function for JSS
git-svn-id: svn://10.0.0.236/trunk@113494 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:46:05 +00:00
bryner%netscape.com
122d4289d3 Adding classic skin css for xbl checkboxes. Also fixing up borders on comboboxes. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@113493 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:42:25 +00:00
rjc%netscape.com
3ea20f13ac Fix bug # 122952: Mac OS X internet search issues. r=sdagley,sfraser
git-svn-id: svn://10.0.0.236/trunk@113492 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:35:33 +00:00
vidur%netscape.com
7673c9518e Scoping rules seem to be different on windows and linux. Fixed compiler error on windows. This is not yet part of the default build.
git-svn-id: svn://10.0.0.236/trunk@113491 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:32:04 +00:00
jst%netscape.com
3ca2b8124f Fixing bug 113856. Don't crash when resolving a name of a class w/o a primary iid. r=heikki@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113490 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:31:22 +00:00
dougt%netscape.com
154c1a0782 fixes 122892. Optimization Clone of nsLocalFile. Instead of reiniting object, we use default c++ copy construction. r=ccarlen@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113489 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:25:57 +00:00
javi%netscape.com
7fbb88f57b Fix Mac bustage.
git-svn-id: svn://10.0.0.236/trunk@113487 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:20:54 +00:00
bzbarsky%mit.edu
b9f15766ea add .shtml to list of extensions we register with ourselves. Bug 60733,
r=law, sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@113484 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:06:36 +00:00
rogerl%netscape.com
faeb4c2ffd Incremental fixes.
git-svn-id: svn://10.0.0.236/trunk@113483 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:06:34 +00:00
jj%netscape.com
de388a3149 updating to 0.9.8
git-svn-id: svn://10.0.0.236/trunk@113482 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 01:05:47 +00:00
bbaetz%student.usyd.edu.au
88e6e84628 Bug 110241 - redo ftp control connection parsing code
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@113478 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:55:06 +00:00
varga%utcru.sk
ed6a00ae2e Fix for 120976. Drop feedback needs some polishing.
r=bryner, sr=blake


git-svn-id: svn://10.0.0.236/trunk@113477 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:54:19 +00:00
peterlubczynski%netscape.com
32321d73c4 Restore consuming of keypress events and don't pass them to plugins also give windowless plugins focus when mouse clicked bug 122501 r=kmcclusk@netscape.com sr=beard
git-svn-id: svn://10.0.0.236/trunk@113475 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:23:30 +00:00
peterlubczynski%netscape.com
3a102d9545 Send raw keyboard event for windowless plugins, bug 122501 r=kmcclusk@netscape.com sr=beard
git-svn-id: svn://10.0.0.236/trunk@113474 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:21:53 +00:00
jst%netscape.com
e88756b2b7 Fixing bug 113498. Making .src on a new Image(); always be absolute. r=sicking@bigfoot.com, rs=rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@113473 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:17:40 +00:00
dveditz%netscape.com
6196387bf8 bug 94108/122881 clean up obsolete components to prevent scary errors
for people who upgrade. patch by curt@netscape.com, r=ssu/sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@113472 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:13:12 +00:00
varga%utcru.sk
295a8002c4 Fix for bugs:
120299 - Drop feedback is narrow first time
121187 - drag of message summary line (even without drop) garbles bounding box

r=sfraser, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113471 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:13:07 +00:00
law%netscape.com
3719c10b3a Bug 117702; change wording to say 'system tray'; r=caillon, sr=blake
git-svn-id: svn://10.0.0.236/trunk@113469 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:09:46 +00:00
law%netscape.com
4b806dba32 Bug 119767; remove bogus text/html entry from defaulit mimeTypes.rdf; r=bzbarsky, sr=ben
git-svn-id: svn://10.0.0.236/trunk@113468 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:07:35 +00:00
peterlubczynski%netscape.com
fc583de88a Fix for plugins not being able to get handle to doc's window if plugin is HIDDEN because it has no view. Use the pres shell instead. bug 123059 r=ToddTaylor sr=beard
git-svn-id: svn://10.0.0.236/trunk@113467 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:07:20 +00:00
law%netscape.com
905119f6b5 Bug 107088; don't set any group/world permissions on temp file; r=bzbarsky, sr=darin
git-svn-id: svn://10.0.0.236/trunk@113466 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-02 00:06:12 +00:00
bryner%netscape.com
6e61e54a46 Adding classic skin css for xbl select widget. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@113465 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:59:26 +00:00
law%netscape.com
f54f76debd Bug 120931; remember last used directory (for older versions of windows that don't do it automatically); r=cmanske, sr=ben
git-svn-id: svn://10.0.0.236/trunk@113464 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:58:55 +00:00
rjesup%wgate.com
5f600bf6e5 Bug 117667: access past end of docshell child array. sr=jst, r=joki
git-svn-id: svn://10.0.0.236/trunk@113463 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:56:48 +00:00
jaggernaut%netscape.com
0ac23b506b Bug 90221: Click() needs to act like a real click. r=jst, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@113462 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:55:49 +00:00
cmanske%netscape.com
b4ef8479ba Fixed Open Location dialog for Composer, b=122933, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113461 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:53:30 +00:00
law%netscape.com
2013e60c16 Bug 94756; make file picker check for read-only files when saving; r=cmanske, sr=ben
git-svn-id: svn://10.0.0.236/trunk@113460 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:52:58 +00:00
samuel%sieb.net
38ea9c6ced Bug 122910 - chatzilla won't start
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113459 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:48:11 +00:00
hewitt%netscape.com
8fa2c0020b 110001 - onpagehide should not fire events when traversing back in the wizard, r=racham, sr=blake
git-svn-id: svn://10.0.0.236/trunk@113458 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:09:42 +00:00
ccarlen%netscape.com
eba9538f7a Not part of build, very out of date.
git-svn-id: svn://10.0.0.236/trunk@113457 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:07:47 +00:00
ssu%netscape.com
def5b868f6 fixing bug 115582 - File/Attachments/Save All doesn't have access key. r=racham, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@113456 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:05:45 +00:00
hewitt%netscape.com
59e6d9a637 120609 - Autocomplete drop down list has white vertical borders on left and right side, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@113455 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 23:03:22 +00:00
ccarlen%netscape.com
d4f88daea6 Bug 120026 - rework PPEmbed so its classes are less dependent and more easily reusable. r=adamlock@netscape.com/sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113454 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:57:19 +00:00
ccarlen%netscape.com
3799e84dd5 New files for bug 120026 - rework PPEmbed so its classes are less dependent and more easily reusable. r=adamlock@netscape.com/sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113453 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:55:18 +00:00
serge%netscape.com
dc78c9c9ed fix #109353; N620, Trunk & M097 crash [@ libpthread.so.0 - PL_strfree]; r=peterl, sr=beard
git-svn-id: svn://10.0.0.236/trunk@113452 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:50:59 +00:00
jj%netscape.com
1cdcd82c6f this file causes the OS9 Finder to flip the "isPackage" flag of the "macbuild" directory, preventing its access. PkfInfo can be generated on the fly by the build script instead, like the current Carbon build automation does.
git-svn-id: svn://10.0.0.236/trunk@113451 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:38:18 +00:00
heikki%netscape.com
51cf66c5f5 Bug 122710, dtd folder in dist/bin should be moved into res. r=rbs@maths.uq.edu.au&harishd, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@113450 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:28:55 +00:00
pinkerton%netscape.com
ae9adfc171 tree->treeview bug 115747, rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@113449 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:21:51 +00:00
hewitt%netscape.com
b63f84685c 114580 - commonDialog is slow as molasses, r=jag, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@113448 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:18:59 +00:00
rginda%netscape.com
35e3f21bfb - venkman only -
bug 122850, venkman error on startup
the fix for bug 121744 made |for (a in undefined);| throw an error, so now we have to validate |attrs| here.


git-svn-id: svn://10.0.0.236/trunk@113447 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 22:12:09 +00:00
naving%netscape.com
33319c4dd2 115071 r=nhotta (for collation part) sr=mscott. fix folder-pane, menus sorting on mac os x by using collation
key and creating sort arcs as nsIRDFBlob. Added abiltity to createBlobNode
123017 sr=bienvenu fixing start-ip crash in nsMsgFolderDatasource


git-svn-id: svn://10.0.0.236/trunk@113446 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:46:05 +00:00
peterlubczynski%netscape.com
ca86fbd4ee Checking in for nis@sparc.spb.su, fix for Java applets inserted as <OBJECT> run in spite of Java is turned off in Preferences bug 116888 r=peterl sr=beard
git-svn-id: svn://10.0.0.236/trunk@113445 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:40:49 +00:00
bzbarsky%mit.edu
bcc31f85dd Don't let an empty intl.charset.default pref set the document charset to
the empty string.  Fall back to ISO-8859-1 in the script loader if there
is no other charset set.  Bug 118404, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@113444 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:36:00 +00:00
akkana%netscape.com
efa43449be 121046: fix a rewrap hang. r=adu@sparc.spb.su sr=kin
git-svn-id: svn://10.0.0.236/trunk@113443 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:29:16 +00:00
darin%netscape.com
0442329028 fixes bug 123031 "Setting username and password on nsIURI object damages
host part of URL, preventing FTP transfer" r=cmanske, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@113442 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:20:51 +00:00
darin%netscape.com
e4b147b47f fixes bug 122675 "socket transport doesn't cancel properly if busy resolving
or connecting" r=gordon, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@113441 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:18:13 +00:00
wtc%netscape.com
eba46abb7a Bugzilla bug 122712: moved the two newly exported symbols to the right
place.


git-svn-id: svn://10.0.0.236/trunk@113440 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:16:43 +00:00
mcafee%netscape.com
daa2e99a89 Back to PrintSize
git-svn-id: svn://10.0.0.236/trunk@113439 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:07:04 +00:00
darin%netscape.com
4b34d2efe1 fixes bug 122787 "(nsIURI) nsStandardURL::SetFileName doesn't recalculate mPath"
r=dougt, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@113438 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 21:03:10 +00:00
andreas.otte%debitel.net
a67c733b80 making patch for bug 120959 [Use of ".." in address causes links to
relative URL's to fail] a little bit prettier (remove unnecessary
clause), r=brendan, sr=darin


git-svn-id: svn://10.0.0.236/trunk@113437 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 20:30:15 +00:00
bzbarsky%mit.edu
5490fe59f6 View source channels should implement nsIUploadChannel for when we get
postdata working with them.  Bug 122851, r=darin, sr=rpotts.


git-svn-id: svn://10.0.0.236/trunk@113436 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 20:18:26 +00:00
rods%netscape.com
75f3adcd31 fix ref count bloat
Bug 123011 sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113435 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 20:12:35 +00:00
seawood%netscape.com
4f41222d8a Fixing win32 gmake bustage
git-svn-id: svn://10.0.0.236/trunk@113434 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 19:52:42 +00:00
mcafee%netscape.com
e23a48cbcb Adding graph server support to trace-malloc tests
git-svn-id: svn://10.0.0.236/trunk@113433 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 19:01:40 +00:00
ian.mcgreer%sun.com
9b23ec2d9d fix cert leak found by client auth
git-svn-id: svn://10.0.0.236/trunk@113432 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 18:18:13 +00:00
relyea%netscape.com
300485bc29 Fix memory leak.
git-svn-id: svn://10.0.0.236/trunk@113431 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:57:05 +00:00
myk%mozilla.org
75dca718c9 Fix for bug 98021: Cleans up "edit attachment" interface on NS4.x by removing text of buttons that do not work in that browser.
Patch by Myk Melez <myk@mozilla.org>.
r=kiko x 2


git-svn-id: svn://10.0.0.236/trunk@113430 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:50:00 +00:00
wtc%netscape.com
911b346fe5 Bugzilla bug 122944: detect Cygwin's uname.
git-svn-id: svn://10.0.0.236/trunk@113429 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:27:55 +00:00
ian.mcgreer%sun.com
126fdb9cd7 bug 121628, persistent cache of hardware token certs
git-svn-id: svn://10.0.0.236/trunk@113428 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:25:15 +00:00
rods%netscape.com
798a2cf9a2 fix bustage
git-svn-id: svn://10.0.0.236/trunk@113427 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:19:10 +00:00
rods%netscape.com
ab7bd4353a fix bustage
git-svn-id: svn://10.0.0.236/trunk@113426 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 17:04:03 +00:00
rods%netscape.com
01be94da6c fix build breakage
git-svn-id: svn://10.0.0.236/trunk@113425 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 16:17:40 +00:00
rods%netscape.com
f944fc2ad3 Added GlobalPrintSettings
Bug 120622 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113424 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:48:21 +00:00
rods%netscape.com
82a2414831 enable a margin like gap specification for printing on unix
make it settable via the joboptions dialog
Bug 102596 r=roland sr=kin


git-svn-id: svn://10.0.0.236/trunk@113423 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:31:15 +00:00
mkaply%us.ibm.com
1211f86623 #122482
rs=jst
Make OS/2 go down a Windows path to fix some focus events


git-svn-id: svn://10.0.0.236/trunk@113422 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:14:35 +00:00
rbs%maths.uq.edu.au
ef52d88af3 Added two APIs, InheritAutomaticData() & TransmitAutomaticData(), to respond to dynamic changes that affect automatic data (i.e., data inferred from the actual definition of each MathML tag). The computation of the data was so far mostly locked in Init() and SetInitialChildList() which are meant to be called only once in the life-time of a frame. Factored this computation into the two APIs to be used to rebuild the data, and which can be called repeatedly as appropriate, when dynamic changes arise in the content model. Shuffled code to stay in sync and consolidated the hooks used dynamic changes with the APIs
git-svn-id: svn://10.0.0.236/trunk@113421 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 15:10:50 +00:00
jake%acutex.net
18e6a3ea4d Bug 122154 part 2 - Eliminiate the use of the "usetms" Javascript cache variable.
Patch by Christian Reis <kiko@async.com.br>
r= bbaetz, jake


git-svn-id: svn://10.0.0.236/trunk@113420 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:52:37 +00:00
rods%netscape.com
20b4083174 1) Removes the arg of nsIDOMWindow in the nsIWebBrowserPrint calls
2) Adds a couple of new methods and an attr to nsIWebBrowserPrint (navigate, is frameset, & exitPP)
3) Removes all but one method from nsIContentViewerFile.idl/h the remaining call is for print regression testing
4) Removes the "static" implementation of nsIContentViewerFile.h
5) Fixed up nsIContentViewerFile.idl and turned it back on so it is now generating the header file
6) Removed all uses of nsIContentViewerFile.h except for the WebCrawler (uses it for Printing Regression testing)
7) nsDocumentViewer.cpp now implements nsIWebBrowserPrint.idl this makes it easier to add new print functionality in one place
8) You can now ask an instance of the ContentViewer for a nsIWebBrowserPrint to do printing (it retruns the nsIWebBrowserPrint interface implemented by the nsDocumentViewer)
9) Anybody who was using nsIContentViewerFile to print will now use nsIWebBrowserPrint
10) You can now do a "GetInterface()" on a GlobalWindow for a nsIWebBrowserPrint
11) The browser UI now uses the GetInterface on the GlobalWindow to get a nsIWebBrowserPrint object to do printing and this can be used for all printing functionality
Bug 120622 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113419 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:52:11 +00:00
locka%iol.ie
7098e78188 Obvious fix to stop deprecated winEmbed from crashing. b=120956
git-svn-id: svn://10.0.0.236/trunk@113418 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:33:33 +00:00
jake%acutex.net
7efb764af7 Bug 121636 - Provide support for cvsgraph (requires the cvsgraph binary, see bug 121636 for more information).
r= kiko


git-svn-id: svn://10.0.0.236/trunk@113417 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:32:55 +00:00
rbs%maths.uq.edu.au
72fc39cdaf activate the rhelper to wrap foreign frames
git-svn-id: svn://10.0.0.236/trunk@113416 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:31:21 +00:00
rbs%maths.uq.edu.au
7c7c9f7ebf Helper class use for wrapping non-MathML elements (e.g., html:img) so that they can mix better with other surrounding MathML markups. Factored previous code here and added hooks that were needed for child list operations
git-svn-id: svn://10.0.0.236/trunk@113415 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:23:07 +00:00
jaggernaut%netscape.com
69ac84dbd0 Bug 122083: Typing "v", "vi", "vie" ... "view-source" into URL bar and pressing enter freezes Mozilla. r=dbradley, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113414 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 14:22:22 +00:00
locka%iol.ie
807280c2ba Fix for stall when saving certain documents. Don't count non-persistent URIs when figuring out whether to do state notifications synchronously or asynchronously. b=122078 r=brade@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113413 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 12:42:13 +00:00
timeless%mac.com
e73045e569 Bug 109138 platform detection not working on macintosh
r=bbaetz r=gerv
adds another regexp for MacOSX


git-svn-id: svn://10.0.0.236/trunk@113412 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 10:05:04 +00:00
seawood%netscape.com
2eaf14d1b4 Had the logic backwards
git-svn-id: svn://10.0.0.236/trunk@113410 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 08:40:31 +00:00
dean_tessman%hotmail.com
e8149ab232 Forgot the .h for 122057.
git-svn-id: svn://10.0.0.236/trunk@113409 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:55:41 +00:00
ian%hixie.ch
3e9ca21d73 * Added getGroupMembers() to the User data source.
* Fixed a bug in the MySQL implementation of User data source's getGroupName() method. It treated 'row' as an array ref instead of a normal array.
* Made the MySQL User data source automatically add a group with ID 1, named 'Administrators'.
* Special-cased the group with ID 1 in the user object so that if a user is in that group, he automatically is assumed to have all rights.
* Fixed a bug with the saving of the original groups in the user object (the backup object was simply a reference to the original object, which was later changed in place, causing the backup to change too).
* Fixed the handling of rights in the user object constructor to simply set the rights in one line instead of using indirection.
* Fixed the invalidateRights() method of the user object to correctly re-set the rights (previously it was not turning the generated array into a hashref).
* Added a setup.install implementation to the login component. It now queries the user for an administration username and creates the relevant user and puts it in the magic group 1.
* Fixed a call to checkAddress() in the login component.


git-svn-id: svn://10.0.0.236/trunk@113408 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:48:02 +00:00
ian%hixie.ch
78a5b28737 Commented out the call to Net::SMTP's verify() method and replaced it with a generic regexp sanity check. It appears that VRFY is not correctly implemented on all servers. (I may be mistaken on this; it might just be a bug somewhere in the PLIF code that is messing something up, but I couldn't find it if so.)
git-svn-id: svn://10.0.0.236/trunk@113407 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:38:55 +00:00
dean_tessman%hotmail.com
d20cb76545 122057 - springloaded folders trigger too easily
r=varga@utcru.sk, sr=ben


git-svn-id: svn://10.0.0.236/trunk@113406 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:36:28 +00:00
ian%hixie.ch
bcf3696b25 Added a check that ensures that the configuration file is not readable or writable by anyone except the user running the script. This closes a potential security hole on shared machines. Changed the umask during the creation of the configuration file so that the permission bits are set that way too. Added a comment to clarify the superficially recursive nature of the configuration database and the configuration data source.
git-svn-id: svn://10.0.0.236/trunk@113405 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:36:27 +00:00
ian%hixie.ch
d36a91026e Another change that should be done at some point: Move PLIF/DataSource/*/MySQL.pm to PLIF/DataSource/MySQL/*.pm
git-svn-id: svn://10.0.0.236/trunk@113404 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 06:32:17 +00:00
wtc%netscape.com
6cba3e1cfe Bugzilla bug 119340: install a SIGTERM handler on Linux for debugging.
git-svn-id: svn://10.0.0.236/trunk@113403 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 05:57:49 +00:00
seawood%netscape.com
f12faa3172 Add windbgdlg to standalone xpcom list
git-svn-id: svn://10.0.0.236/trunk@113402 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 05:31:30 +00:00
ducarroz%netscape.com
ac100a19d2 Fix for bug 122625. Remove the window from the cache when ComposeInit is called. Also, alway make sure that the last type of compose window used get in the cache. R=cavin, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@113401 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 05:15:01 +00:00
bryner%netscape.com
c5d149916e bug 108791 - infinite recursion crash when tabbing if there is no focusable content. r=saari, sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@113400 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 05:14:44 +00:00
seawood%netscape.com
25e0750204 Do not place the .res file inthe srcdir
git-svn-id: svn://10.0.0.236/trunk@113399 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 04:50:32 +00:00
seawood%netscape.com
365f6849de Skip installing mozilla-config & run-mozilla.sh on os/2 & win32
git-svn-id: svn://10.0.0.236/trunk@113398 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 04:49:21 +00:00
seawood%netscape.com
f7cdc080f7 Fixing win32 gmake bustage from Cavin's checkin of bug #119441.
git-svn-id: svn://10.0.0.236/trunk@113397 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 04:12:54 +00:00
racham%netscape.com
d366eae2b3 Fixing bug 122868. Check for existence of accountValues before saving an account in onSave routine to avoid problems with deleted accounts. sr=mscott
git-svn-id: svn://10.0.0.236/trunk@113396 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 03:59:06 +00:00
bryner%netscape.com
20a287ba58 bug 122542 - make outliner content view only respond to ContentInserted/ContentRemoved notifications concerning its own outliner. Also fix html option support. r=varga, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113395 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 03:21:38 +00:00
roc+%cs.cmu.edu
71e04391bf Bug 122325. Repaint correct areas when a view is resized. r=kmcclusk,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113394 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 03:10:59 +00:00
cavin%netscape.com
ea51a673c6 Fix for #119441. Added code to prefix lines starting with "From " with ">" in the msg body. r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@113393 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 02:36:58 +00:00
relyea%netscape.com
9ec4db4c97 certutil -L now opens the DB ReadOnly. Add the '-X' option to the test is still
testing the R/W case.


git-svn-id: svn://10.0.0.236/trunk@113392 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 02:28:32 +00:00
relyea%netscape.com
4965975f8a Make the following functions open the databases Readonly:
ListCerts PrintHelp ListKeys ListModules CheckCertValidity Version

Add an option (-X) to restore the old behaviour of openning the Databases R/W


git-svn-id: svn://10.0.0.236/trunk@113391 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 02:26:40 +00:00
alecf%netscape.com
f7ee18f044 one more part of fix for bug 107575, including the much coveted whitespace
remove aIgnoreCase parameter from all nsString and nsCString consumers
sr=jag, r=shaver


git-svn-id: svn://10.0.0.236/trunk@113390 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:53:09 +00:00
shrutiv%netscape.com
cfab9c51c9 Removing variable 'linuxoption' and correcting indentation
git-svn-id: svn://10.0.0.236/trunk@113389 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:49:05 +00:00
rods%netscape.com
e3017ad0ff This was suppose to go in as part of
Bug 122530 r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113388 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 01:42:37 +00:00
rjc%netscape.com
bed41cef23 Fix bug # 122757: Mac OS 9/X packages. Also, de-tab. r=tingley sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113387 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:49:29 +00:00
darin%netscape.com
3f0914eda9 fix mach-o bustage
git-svn-id: svn://10.0.0.236/trunk@113386 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:48:32 +00:00
jaggernaut%netscape.com
4e98524ff9 Just fixing some indents/whitespace, rs=mozbot
git-svn-id: svn://10.0.0.236/trunk@113385 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:45:58 +00:00
pete%alphanumerica.com
76dbb12d7a r=dougt
This file is very old and very outdated. Please use jslib for local file i/o
jslib.mozdev.org.

Not part of the build

--pete


git-svn-id: svn://10.0.0.236/trunk@113384 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:30:25 +00:00
rjc%netscape.com
e44721dff3 Fix bug # 113894: RDF persistance issue, and get nsFileSpec out of RDF. r=sr's = darin, waterson
git-svn-id: svn://10.0.0.236/trunk@113383 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:24:27 +00:00
rogerl%netscape.com
5464363ef6 Incremental ECMA test suite fixes.
git-svn-id: svn://10.0.0.236/trunk@113382 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:05:37 +00:00
rjc%netscape.com
6ee0e210e2 Fix bug # 112860: trivial null check for PPEmbed. r=ccarlen
git-svn-id: svn://10.0.0.236/trunk@113381 18797224-902f-48f8-a5cc-f745e15eee43
2002-02-01 00:03:25 +00:00
bbaetz%student.usyd.edu.au
37e83dae0b Bug 122744 - charting fails taint checks
r=daa@distributed.net, gerv


git-svn-id: svn://10.0.0.236/trunk@113380 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:51:38 +00:00
bbaetz%student.usyd.edu.au
af02b7487d Fix up "used only once" warning from kiko's checkin.
r=kiko x 2.


git-svn-id: svn://10.0.0.236/trunk@113379 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:46:51 +00:00
danm%netscape.com
5ae1a11f6f change in wording of comment. bug 122393
git-svn-id: svn://10.0.0.236/trunk@113378 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:32:07 +00:00
cavin%netscape.com
b8e8220800 Fix for bugscape 11772. Reset the phone number arrays after the numbers are parsed and copied to an address card object. r=ducarroz, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@113377 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:25:04 +00:00
darin%netscape.com
9577ca27d8 possibly fixes bustage on objdir tinderbox's
git-svn-id: svn://10.0.0.236/trunk@113376 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:15:03 +00:00
darin%netscape.com
f9fabb5da4 fixes win32 bustage
git-svn-id: svn://10.0.0.236/trunk@113375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 23:05:20 +00:00
blizzard%redhat.com
1a5a0eee88 Back out fixes for 121011 until I fix more issues.
git-svn-id: svn://10.0.0.236/trunk@113373 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:45:26 +00:00
bzbarsky%mit.edu
ec37d8f825 Don't use "(null)" for the image filename if there is no filename in the
url.  Bug 121504, r=doron, sr=blake


git-svn-id: svn://10.0.0.236/trunk@113372 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:30:50 +00:00
naving%netscape.com
75cff9aa43 112927 sr=bienvenu. fix whitespace, we do lot more than alerting, we backup old rules.dat as rulesbackup.dat
and create a new rules.dat and alert is thrown when receiving new mail/opening filters dialog.


git-svn-id: svn://10.0.0.236/trunk@113371 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:23:42 +00:00
darin%netscape.com
38e3bdc4e9 fixes bug 118651 "nsIFileURL.file needs to return nsIFile that was set"
r=dougt, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@113370 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:17:35 +00:00
heikki%netscape.com
10484cc5cc Bug 106053, remove unused XHTML namespace declarations, and fix incorrect namespace usages. r=harishd, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@113369 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:12:36 +00:00
naving%netscape.com
b289c7bddf 112927 sr=bienvenu. Made it so that we alert the user in case we cannot
parse rules.dat, upon getting filterList


git-svn-id: svn://10.0.0.236/trunk@113368 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 22:08:48 +00:00
naving%netscape.com
cb1c5fb41f 112927 sr=bienvenu makefile changes
git-svn-id: svn://10.0.0.236/trunk@113367 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:58:26 +00:00
alecf%netscape.com
0a5545c945 windows side of fix to bug 100676 - remove xpcom dependency on uconv by switching to native locale-conversion routines
r=ccarlen, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@113366 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:55:01 +00:00
alecf%netscape.com
c3215fb222 mac side of fix for bug 100676
code by ccarlen, r=alecf, sr=sfraser
remove xpcom dependency on uconv by switching to native mac locale-conversion routines


git-svn-id: svn://10.0.0.236/trunk@113365 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:54:16 +00:00
dougt%netscape.com
b0f0084cf4 fixing another type
git-svn-id: svn://10.0.0.236/trunk@113362 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:45:04 +00:00
bienvenu%netscape.com
698e59f48c fix crash playing back offline empty of imap trash when trash is selected, check for null dbfolderinfo rs=mscott 121799
git-svn-id: svn://10.0.0.236/trunk@113361 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:19:55 +00:00
locka%iol.ie
23d7d6395e NOT PART OF BUILD. Nullify pointer
git-svn-id: svn://10.0.0.236/trunk@113360 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:04:39 +00:00
mscott%netscape.com
5bb62e7ef4 Bug #108965 --> remove xul emitter from the build
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113359 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 21:02:16 +00:00
dougt%netscape.com
b75a3cfdef Fixing typo
git-svn-id: svn://10.0.0.236/trunk@113358 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:43:22 +00:00
pinkerton%netscape.com
533bae36a4 if label attribute changes, set the parent menu to dirty. r=sdagley/sr=blake. bug#122826, bugscape#11829
git-svn-id: svn://10.0.0.236/trunk@113357 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:43:17 +00:00
seawood%netscape.com
37b1446d30 Per the hpux compiler:
# Nonempty source files must end with a newline that is not preceded by a backslash.


git-svn-id: svn://10.0.0.236/trunk@113356 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:39:17 +00:00
pinkerton%netscape.com
cf8f4871db add MANIFEST_IDL for content:html:document:public
git-svn-id: svn://10.0.0.236/trunk@113355 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:35:06 +00:00
pinkerton%netscape.com
3cd8c83ac1 moving idl into MANIFEST_IDL to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@113354 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:34:17 +00:00
locka%iol.ie
e584cbfe98 NOT PART OF BUILD. Make plugin easier to build
git-svn-id: svn://10.0.0.236/trunk@113353 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:32:00 +00:00
mkaply%us.ibm.com
e91a3a7744 No bug - fix some tabs that were really bugging me
git-svn-id: svn://10.0.0.236/trunk@113352 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:31:59 +00:00
despotdaemon%netscape.com
abe8aff7b4 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@113351 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:30:54 +00:00
bzbarsky%mit.edu
ea2ee4e526 Check that the uri actually has an extension before trying to
GetTypeFromExtension.  Bug 122742, r=timeless, sr=darin.


git-svn-id: svn://10.0.0.236/trunk@113350 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:12:53 +00:00
jake%acutex.net
11e4684e5b Bug 122636 - Templatise colchange.cgi
Patch by David Lawrence <dkl@redhat.com> and Christian Reis <kiko@async.com.br>
r= kiko, jake


git-svn-id: svn://10.0.0.236/trunk@113349 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:12:50 +00:00
bienvenu%netscape.com
8d7bbb7ce2 fix hourglass problem selecting a non-selectable imap folder r=naving, sr=mscott 120608
git-svn-id: svn://10.0.0.236/trunk@113348 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 20:10:06 +00:00
akkana%netscape.com
1a4a0619ba 113551: add bindings for Sun copy/paste keys. r=bz, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113347 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:59:02 +00:00
hwaara%chello.se
24e148d7f5 #74248, implement the capability to _underline_ words, just like *bold* works. Patch by Neil Rashbrook <neil@parkwaycc.co.uk>.
r=hwaara, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@113346 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:51:58 +00:00
rginda%netscape.com
aea77eb096 bug 65512, fix typo on HELLO message
git-svn-id: svn://10.0.0.236/trunk@113345 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:48:49 +00:00
pinkerton%netscape.com
2972973e02 tooltips themed. r=sdagley/sr=ben. bug#115754
git-svn-id: svn://10.0.0.236/trunk@113344 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:45:20 +00:00
radha%netscape.com
2e0a0cfd1f Changes related to wyciwyg protocol implementation. r=35340 r/sr by jst, nisheeth, darin
git-svn-id: svn://10.0.0.236/trunk@113343 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:45:01 +00:00
radha%netscape.com
309a70610e wyciwyg channel files added. bug=35340 r/sr = jst, nisheeth, darin
git-svn-id: svn://10.0.0.236/trunk@113342 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:44:08 +00:00
ccarlen%netscape.com
f2682c9416 Bug 101362 - Don't use Unicode ellipsis char in properties. r=mkaply@us.ibm.com
git-svn-id: svn://10.0.0.236/trunk@113341 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:43:43 +00:00
mikep%oeone.com
25b6f7e115 Fixing bug 122673, recur forever events broken.
git-svn-id: svn://10.0.0.236/trunk@113340 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:40:44 +00:00
seawood%netscape.com
c790e01283 Removing removed Makefiles
git-svn-id: svn://10.0.0.236/trunk@113339 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:39:33 +00:00
radha%netscape.com
38a7a759a1 Changes related to wyciwyg protocol implementation. r=35340 r/sr by jst, darin,nisheeth
git-svn-id: svn://10.0.0.236/trunk@113338 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:38:16 +00:00
radha%netscape.com
9607a6f0c7 Changes related to wyciwyg protocol implementation. r=35340 r/sr by jst, nisheeth, darin.
git-svn-id: svn://10.0.0.236/trunk@113337 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:36:45 +00:00
radha%netscape.com
0a2fcf9a45 Initial checkin for wyciwyg protocol implementation. bug=35340 r/sr by nisheeth, darin, jst
git-svn-id: svn://10.0.0.236/trunk@113336 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:35:33 +00:00
radha%netscape.com
cad9148b23 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@113335 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:33:05 +00:00
mikep%oeone.com
55553ca6c7 Removing alert.
git-svn-id: svn://10.0.0.236/trunk@113334 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:31:01 +00:00
mikep%oeone.com
d5c92ea8e9 Fixing bug 122676, no indication of events in left hand unifinder.
git-svn-id: svn://10.0.0.236/trunk@113332 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:29:02 +00:00
ian.mcgreer%sun.com
c2387fe9a7 have certutil shutdown cleanly so purify is easier to deal with
git-svn-id: svn://10.0.0.236/trunk@113331 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:27:07 +00:00
relyea%netscape.com
0318f63324 Fix thread local storage leak.
git-svn-id: svn://10.0.0.236/trunk@113329 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:18:55 +00:00
javi%netscape.com
b301c828f4 Make the projects depend on a .exp file that doesn't start with '_' so that we know the .exp file wasn't generated by CodeWarrior.
git-svn-id: svn://10.0.0.236/trunk@113328 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:10:46 +00:00
javi%netscape.com
ba5935c915 Use LoadableRoots.mcp.exp instead of _*.exp so that we know
the .exp wasn't generated by CodeWarrior.


git-svn-id: svn://10.0.0.236/trunk@113327 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:05:27 +00:00
mikep%oeone.com
1179bc8354 Fixing js warnings, and a fix for bug 109262.
git-svn-id: svn://10.0.0.236/trunk@113326 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 19:00:00 +00:00
ian%hixie.ch
cd94938f2b Removed an erroneous comment, which should be the last traces of the old problem of the lack of a configuration file being a fatal error.
git-svn-id: svn://10.0.0.236/trunk@113325 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 18:30:21 +00:00
ian%hixie.ch
095dfaa67a Theoretical nit: call inherited constructor just in case at some point in the future it does something useful...
git-svn-id: svn://10.0.0.236/trunk@113324 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 17:35:52 +00:00
ian.mcgreer%sun.com
f0c3d0a6e5 couple of fixes
git-svn-id: svn://10.0.0.236/trunk@113323 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 17:28:49 +00:00
ian.mcgreer%sun.com
efbc7765e6 bug 90518, implement methods for dumping the state of the cache and temp cert store in NSS 3.4
git-svn-id: svn://10.0.0.236/trunk@113322 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 17:08:32 +00:00
jake%acutex.net
9fab98208e Some additional files we should be ignoring
git-svn-id: svn://10.0.0.236/trunk@113321 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 16:28:35 +00:00
locka%iol.ie
b756e0d7c4 Remove dead webshell xlib stuff. b=113970
git-svn-id: svn://10.0.0.236/trunk@113320 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:48:23 +00:00
locka%iol.ie
371c7f20e3 Remove dead RaptorShell. b=113970
git-svn-id: svn://10.0.0.236/trunk@113319 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:46:33 +00:00
locka%iol.ie
6de7fb8599 Remove dead makefiles. b=113970
git-svn-id: svn://10.0.0.236/trunk@113318 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:45:34 +00:00
locka%iol.ie
51247535aa Remove dead ngprefs. b=113970
git-svn-id: svn://10.0.0.236/trunk@113317 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:43:26 +00:00
locka%iol.ie
20e4ad1b98 Remove reference to dead embed subdir. b=113970
git-svn-id: svn://10.0.0.236/trunk@113316 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:39:26 +00:00
locka%iol.ie
e8ac7f2beb Remove dead test code - ComFactory. b=113970
git-svn-id: svn://10.0.0.236/trunk@113315 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:34:42 +00:00
locka%iol.ie
96e2d61128 Remove reference to dead test ComFactory. b=113970
git-svn-id: svn://10.0.0.236/trunk@113314 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 15:33:32 +00:00
rods%netscape.com
8ee374e751 Enables builds to compile in special faetures only available in the current SDK
Bug 122530 r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113313 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 14:40:33 +00:00
rods%netscape.com
b23f492af0 This does the following:
1) Removes the EnumeratePrinterExtended from nsIPrintOptions and all impls of it
2) Sets the Windows platform to once again use the native print dialog
3) The nsDeviceContextSpecWin will detect at runtime whether to use the standard PRINTDLG or the new PRINTDLGEX (supported by XP and WIN2k), this new code is only compiled in when the ifdef MOZ_REQUIRE_CURRENT_SDK is defined.
4) It adds an extra Property Sheet to the new dialog for Frameset Printing options
5) Now creates a DEVMODE before the diaog is created, this is used for setting different options in the print dialog before it comes up.
122530 r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 14:30:22 +00:00
jake%acutex.net
0b5e8f4c53 Bug 122589 -- Update gnats conversion script to newer schema of 2.14.
Patch by Andrea Dell'Amico <adellam@link.it>


git-svn-id: svn://10.0.0.236/trunk@113311 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 14:29:21 +00:00
rods%netscape.com
e7492a75bb Clipping wasn't being set correctly in the PageContentFrame when the reflow was smaller than a page
Bug 122434  r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@113310 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 14:24:06 +00:00
igor%mir2.org
172a122344 Use heapsort instead of qsort for Array.sort to follow JS for reasons described in http://bugzilla.mozilla.org/show_bug.cgi?id=99120
git-svn-id: svn://10.0.0.236/trunk@113309 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 10:08:17 +00:00
despotdaemon%netscape.com
c20f68385d Pseudo-automatic update of changes made by badami@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@113308 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 09:33:51 +00:00
bbaetz%student.usyd.edu.au
2370ca85ab Bug 122548 - ftp was adding bogus (empty) entries for files. We shouldn't
be caching these at all
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@113307 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 08:43:52 +00:00
seawood%netscape.com
308f00fd3c Remove check against fd->secret->md.connectionReturnValue as it always returns 0. Fixing page not loading due to nonblocking connection problem.
Bug #121327 r=arougthopher@lizardland.net


git-svn-id: svn://10.0.0.236/trunk@113306 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:43:22 +00:00
mscott%netscape.com
c2ab48dbae Bug #122351 --> if the shell doesn't support wide string
friendly versions of Shell_NotifyW, then gracefully fall back and
use the older ASCII versions (Shell_Notify).
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113305 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:31:07 +00:00
brendan%mozilla.org
7804e10cfe Fix for(i in null) and for(i in undefined) to error per ECMA, rather than iterating zero times (121744, r=khanson, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@113304 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 07:30:05 +00:00
cotter%netscape.com
c43af1c5c6 ongoing privacy & security updates; forms, privacy & security prefs changes; r=oeschger
git-svn-id: svn://10.0.0.236/trunk@113303 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 06:40:35 +00:00
seawood%netscape.com
aabd7d93bb Call 'alldep' instead of 'depend build' to avoid the extra export stage.
r=bryner


git-svn-id: svn://10.0.0.236/trunk@113299 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 06:15:19 +00:00
mcafee%netscape.com
fa6cde4e30 adding mocha to dns
git-svn-id: svn://10.0.0.236/trunk@113297 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:25:08 +00:00
jaggernaut%netscape.com
a2f89e8b76 Bug 113519: cannot build with cookie extension disabled. Patch by Stephen P. Morse <morse@netscape.com>, r=/sr=darin,alecf,smfr.
Step 3: remove old files


git-svn-id: svn://10.0.0.236/trunk@113296 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:22:41 +00:00
racham%netscape.com
d98bf2c815 Fixing bug 4198. This fix allows ISPs to add a customized signature file to their user mail accounts. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@113295 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:22:24 +00:00
sfraser%netscape.com
2d6d3a935e Back out a change that I commited by mistake, which turned double-buffering off. Thanks to jrgm for catching this.
git-svn-id: svn://10.0.0.236/trunk@113294 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:15:56 +00:00
racham%netscape.com
d3e9affe90 Fixing bug 4198. This fix allows ISPs to add a customized signature file to their user mail accounts. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@113293 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:15:27 +00:00
bernd.mielke%snafu.de
1cbad10dec fieldset reflow cleanup:
bug 120958 report correct maxElementSize under table reflow conditions
bug 48318 implement correct default alignement under bidi conditions, make legend alignment
          indepedent of fieldset content if fieldset size is not content driven.
bug 80422 route trough events for floats inside a fieldset
bug 42302 honour padding-top
bug 60375 large maxElementsize overwrite computedWidth
r=karnaze sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113292 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 05:09:13 +00:00
stephend%netscape.com
a985708f0f Bug 120255. Label text in download for offline dialog is confusing. r=jglick@netscape.com/sr=bienvenu@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113290 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:33:30 +00:00
varga%utcru.sk
3ccaa6cebb Fix for bug 120579. Dragging a bookmark draws frame of entire window.
r=pinkerton, sr=blake


git-svn-id: svn://10.0.0.236/trunk@113289 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:31:22 +00:00
timeless%mac.com
2dc16480de Bug 122518 Speed up the showbuilds.cgi redirect on http://tinderbox.mozilla.org
patch by netdemonz@yahoo.com r=mcafee


git-svn-id: svn://10.0.0.236/trunk@113288 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:22:39 +00:00
bienvenu%netscape.com
5a94e045d4 fix for failure downloading multiple newsgroups for offline use rs=mscott 102872
git-svn-id: svn://10.0.0.236/trunk@113287 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:20:55 +00:00
jaggernaut%netscape.com
55556e470a Bug 113519: cannot build with cookie extension disabled. Patch by Stephen P. Morse <morse@netscape.com>, r=/sr=darin,alecf,smfr.
Step 2: Modify existing files to stop pointing at old files and start pointing at new files.


git-svn-id: svn://10.0.0.236/trunk@113286 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:08:19 +00:00
ddrinan%netscape.com
7de8255ea6 Checkin for relyea. Call CERT_DestoryCertificateList instead of CERT_DestroyCertList
git-svn-id: svn://10.0.0.236/trunk@113285 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 04:00:12 +00:00
samuel%sieb.net
849b0a8bee Bug 119294 - fix JS strict warning
r=walk84
not in the build


git-svn-id: svn://10.0.0.236/trunk@113284 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:40:12 +00:00
samuel%sieb.net
df821fe0b1 Bug 116544 - fix 005 and 004 messages handlers
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113283 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:33:17 +00:00
samuel%sieb.net
fe09dfbfe2 Bug 117292 - add entities for the new copy messages menu item
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113282 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:31:06 +00:00
samuel%sieb.net
e697f044c7 Bug 117292 - add menu item for copying messages
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113281 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:29:11 +00:00
samuel%sieb.net
02845ef96f Bug 117292 - add pref for copying messages
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113280 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:28:31 +00:00
samuel%sieb.net
91c2130107 Bug 117292 - copy notification messages to the network tab and fix strict warnings
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113279 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:27:38 +00:00
samuel%sieb.net
0d74a05313 Bug 117292 - copy important messages to the network tab
r=rginda
not in the build


git-svn-id: svn://10.0.0.236/trunk@113278 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:25:41 +00:00
morse%netscape.com
e1008ffe52 bug 116303, js prompt loses default input text, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113277 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:16:58 +00:00
waterson%netscape.com
10164a96b6 Add test case for bug 46918.
git-svn-id: svn://10.0.0.236/trunk@113276 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 03:02:30 +00:00
rginda%netscape.com
3551321d16 - venkman only -
fix feedback call in cmdBreak
remove busted code in soruceView.onSelect, which tried to prevent users from selecting multiple ranges.  It didn't work, and we don't need it anyway.
catch exceptions during dispatchCommand and display a message on the consoel view
fix = vs. == mixup in sourceView.getContext, arg!
add breakpointIndexList to sourceView.getContext so we can disable all selected breakpoints.
remove some debug dumps
add command name to dbgDispatch message


git-svn-id: svn://10.0.0.236/trunk@113275 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:42:09 +00:00
curt%netscape.com
d836fda598 Moves xpi wrapped installer up a directory. Fixes 110919. r=leaf sr=dveditz.
git-svn-id: svn://10.0.0.236/trunk@113274 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:23:44 +00:00
relyea%netscape.com
5ec404ae36 Fix certlist memory leak.
git-svn-id: svn://10.0.0.236/trunk@113273 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:19:43 +00:00
naving%netscape.com
2474941163 117723 r=bienvenu sr=mscott make drag and drop of messages work across multiple mail 3 pane windows
git-svn-id: svn://10.0.0.236/trunk@113272 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:16:12 +00:00
wtc%netscape.com
52cd995d98 Bugzilla bug 119340: backed out the fix. We are still seeing the
"selfserv process not detectable" errors on Linux and I don't have
time to get to the bottom of it.
Modified files:
	cmd/selfserv/selfserv.c tests/common/init.sh tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@113271 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 02:03:57 +00:00
darin%netscape.com
1031af74be fixes bug 121521 "ABR doing 'File->Open...' to open a file from disk"
r=jrgm,andreas.otte, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@113270 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:53:05 +00:00
rginda%netscape.com
362831b18c fix incorrect bracing, r=beard
git-svn-id: svn://10.0.0.236/trunk@113269 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:32:43 +00:00
cavin%netscape.com
42bc064181 Fix for bug 113421. Closed the msg db after a folder is imported so that the db can be re-generated when the imported folder is re-opened. r=naving, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@113268 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:28:27 +00:00
rogerl%netscape.com
c24ad789c9 Fixes for RE bytecode + adding Context parameter for base JSObect methods
(and associated fall-out). Fixes for Array.length ahndling.Fixing Boolean
prototype.


git-svn-id: svn://10.0.0.236/trunk@113267 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:25:26 +00:00
rginda%netscape.com
d10290761a adding REQUIRES for unix and windows bustage, r=beard
git-svn-id: svn://10.0.0.236/trunk@113266 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:18:33 +00:00
smeredith%netscape.com
fe22d56442 Mentioned the XSL. Problem prefs.
git-svn-id: svn://10.0.0.236/trunk@113265 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:17:16 +00:00
wtc%netscape.com
e7047bdc33 Bugzilla bug 122712: temporarily export two additional symbols for Mozilla
static build.


git-svn-id: svn://10.0.0.236/trunk@113264 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:03:21 +00:00
sonja.mirtitsch%sun.com
05688870d1 put the sleep 30 back into the linux ssl test to give the selfserv time
to free the socket...


git-svn-id: svn://10.0.0.236/trunk@113263 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 01:01:47 +00:00
despotdaemon%netscape.com
65b32aaafd Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@113262 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:54:34 +00:00
rginda%netscape.com
2665dd37cd - venkman only -
ASSERT that we have children in removeChildAtIndex
dump the context object if |console.dbgContexts| in the contextFunction.
make cmdClear work if given a breakpointIndexList.
fix cmdFindBp.
add script realization debugging if |console.dbgRealize|.
add command dispatch debugging if |console.dbgDispatch|.
fix bug 110387, crash on exiting venkman.
add dbg* prefs and sync-debug command in venkman-dev.js.


git-svn-id: svn://10.0.0.236/trunk@113261 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:48:57 +00:00
relyea%netscape.com
7e68464d13 restore checks for critical extenstions and fail if we have any we don't
recognize. Just remove the bogus check that v2 crls must have critical extensions


git-svn-id: svn://10.0.0.236/trunk@113260 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:42:43 +00:00
rginda%netscape.com
f5f8993e60 changing a string constant, comenting out a DEBUG_rginda
use more descriptive url when compiling prettyprint changes


git-svn-id: svn://10.0.0.236/trunk@113259 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:37:28 +00:00
sonja.mirtitsch%sun.com
d6ea734305 next thry for bug 115200
git-svn-id: svn://10.0.0.236/trunk@113258 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:34:04 +00:00
jaggernaut%netscape.com
17e7cfc2ce Bug 113519: cannot build with cookie extension disabled. Patch by Stephen P. Morse <morse@netscape.com>, r=/sr=darin,alecf,smfr.
Step 1: add new files


git-svn-id: svn://10.0.0.236/trunk@113257 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:29:19 +00:00
relyea%netscape.com
830ed3ff75 Set token flag when saving the CRLs so they actually get put into the database!
git-svn-id: svn://10.0.0.236/trunk@113256 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:18:09 +00:00
beard%netscape.com
3f185a60cd Fix for bug #118003. r=peterl, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@113255 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:17:18 +00:00
relyea%netscape.com
92d5738180 Fix searching code so it can find CRL's
git-svn-id: svn://10.0.0.236/trunk@113254 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-31 00:16:29 +00:00
rogerl%netscape.com
c629dbb4d9 Added shell for testing regexp engine.
git-svn-id: svn://10.0.0.236/trunk@113253 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:58:53 +00:00
rjc%netscape.com
add5fc9aad Fix bug # 122571: add ability to determine if a directory is actually a package (for Mac OS 9/X) r=ccarlen sr=ben
git-svn-id: svn://10.0.0.236/trunk@113252 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:53:12 +00:00
hwaara%chello.se
77b463d341 #122688, fixing ignore/watched threads to display icons in classic properly.
r=andreww, sr=blake


git-svn-id: svn://10.0.0.236/trunk@113251 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:50:18 +00:00
blakeross%telocity.com
c2dc7bbd5a 78509 - hang trying to make an internet shortcut with : / \ in title via dnd (and shortcut isn't created). r=pink sr=ben
git-svn-id: svn://10.0.0.236/trunk@113250 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:31:46 +00:00
waterson%netscape.com
ea95cf7620 Bug 46918, 3490. Clean up inline margin handling. r=rbs, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113249 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:28:56 +00:00
pinkerton%netscape.com
8d80368955 give trees some theme luv. r=andreww/sr=ben. bug 122685
git-svn-id: svn://10.0.0.236/trunk@113248 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 23:02:56 +00:00
bienvenu%netscape.com
08a57b76dc get downloading newsgroups for offline use working better, r=naving, sr=mscott 84061
git-svn-id: svn://10.0.0.236/trunk@113246 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:58:30 +00:00
bienvenu%netscape.com
40100fbd87 whitespace cleanup
git-svn-id: svn://10.0.0.236/trunk@113245 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:53:05 +00:00
bienvenu%netscape.com
f525b594e3 fix watched/ignored to show icon immediately r=hwaara, sr=mscott 122642
git-svn-id: svn://10.0.0.236/trunk@113244 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:47:14 +00:00
bienvenu%netscape.com
b71cf03bcf remove db entries for expired articles when downloading msgs for offline use r=naving, sr=mscott 122386
git-svn-id: svn://10.0.0.236/trunk@113243 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:46:08 +00:00
bbaetz%student.usyd.edu.au
e663ddf3a0 Bug 122307 - FTP doesn't work if memory and disck cache sizes are 0
r=dougt, sr=darin


git-svn-id: svn://10.0.0.236/trunk@113242 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:44:44 +00:00
naving%netscape.com
9c79a0be05 116329 one small change to patch by tingley@sundell.net r=rjc sr=waterson. Made it so that XULSortService
can grok for nsIRDFBlob


git-svn-id: svn://10.0.0.236/trunk@113241 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:37:17 +00:00
ducarroz%netscape.com
d5f0b72b17 Fix for bug 120281. Rename contentChanged to gContentChanged. Patch provided by Alex Vincent <jscript@pacbell.net>. R=ducarroz, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@113240 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:34:35 +00:00
pavlov%netscape.com
daa07fbe9f fixing bug 104999 on windows. r=dcone sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113239 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:17:55 +00:00
mkaply%us.ibm.com
db245cb834 OS/2 only - update os2pref.js with better fonts
git-svn-id: svn://10.0.0.236/trunk@113237 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:05:32 +00:00
pinkerton%netscape.com
d6cb53e13b fix case where some pushbuttons were too narrow. r=sdagley/sr=sfraser. bug# 120896
git-svn-id: svn://10.0.0.236/trunk@113236 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:01:44 +00:00
dsirnapalli%netscape.com
db360d1e43 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@113235 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 22:00:24 +00:00
pschwartau%netscape.com
475800eea1 Initial add. Regression test for bug 121744.
git-svn-id: svn://10.0.0.236/trunk@113232 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:57:28 +00:00
dougt%netscape.com
9fad99d1de adding @return comments.
git-svn-id: svn://10.0.0.236/trunk@113231 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:56:34 +00:00
jaggernaut%netscape.com
bfb2d6a9eb Bug 46200: more cleaning up of dead code, r=ben, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113229 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:41:06 +00:00
nhotta%netscape.com
f0dac040f0 MIME encoder change, fixed a problem of treating separater characters (and some clean up),
contributed by adu@sparc.spb.su, bug 92355, r=nhotta, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@113228 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:26:39 +00:00
nhotta%netscape.com
9bfdcd4a27 Fixed charset conversion problem for headers for SaveAs (and some clean up),
contributed by adu@sparc.spb.su, bug 74424, r=nhotta, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@113227 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:26:17 +00:00
sfraser%netscape.com
67a35c1a08 Making the nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:14:20 +00:00
cbiesinger%web.de
7c2a2cb503 Fixing bug 41187, adding internal-gopher-sound icon
r=pavlov sr=waterson


git-svn-id: svn://10.0.0.236/trunk@113224 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 21:02:29 +00:00
nicolson%netscape.com
5533d3ca90 Fix problems caused by changing package names.
git-svn-id: svn://10.0.0.236/trunk@113223 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:54:24 +00:00
nicolson%netscape.com
4ff972e904 move org/mozilla/jss/manage subdirectory to org/mozilla/jss
git-svn-id: svn://10.0.0.236/trunk@113222 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:51:00 +00:00
nicolson%netscape.com
43d64c6ff9 move /manage subdirectory up one level to coincide with org.mozilla.jss
package name


git-svn-id: svn://10.0.0.236/trunk@113221 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:50:18 +00:00
nicolson%netscape.com
8f9e2369e4 move this stuff up one directory to coincide with the org.mozilla.jss
package name.


git-svn-id: svn://10.0.0.236/trunk@113220 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:49:00 +00:00
nicolson%netscape.com
a321a332a4 update all classes to be in org.mozilla.jss.tests.package.
Improve TestKeyGen test.


git-svn-id: svn://10.0.0.236/trunk@113219 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:47:41 +00:00
nicolson%netscape.com
0075d37a74 added KeyPairGenerator.
git-svn-id: svn://10.0.0.236/trunk@113218 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:39:09 +00:00
nicolson%netscape.com
0e99cc2162 Change default token from InternalCryptoToken to InternalKeyStorageToken.
git-svn-id: svn://10.0.0.236/trunk@113217 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:38:53 +00:00
nicolson%netscape.com
dde4c9b7e7 always do a private_export.
git-svn-id: svn://10.0.0.236/trunk@113216 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 20:00:31 +00:00
nicolson%netscape.com
a5a292e64e Fix 122437: Memory leak in read method of SSLSocket
git-svn-id: svn://10.0.0.236/trunk@113214 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 19:52:02 +00:00
myk%mozilla.org
278c5a5f14 Fix for bug 109480: Removes createattachment.cgi from CVS.
Removed by Myk Melez <myk@mozilla.org>.
r=bbaetz x 2


git-svn-id: svn://10.0.0.236/trunk@113213 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 18:08:01 +00:00
rayw%netscape.com
b717e1974f A number of SOAP bug fixes including fixing problems with fault handling,
using wstrings instead of astrings for  arrays, and ignoring the http
status and returning a fault code when there is one.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@113211 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 17:40:06 +00:00
mikep%oeone.com
99b1b6cf79 Changing location of data file from home to profile directory.
git-svn-id: svn://10.0.0.236/trunk@113210 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 17:06:14 +00:00
mikep%oeone.com
777aa22dd8 Fixing problem with left hand tree.
git-svn-id: svn://10.0.0.236/trunk@113209 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 16:15:29 +00:00
timeless%mac.com
461b2f1149 Bug 117716 XBL Bindings Property radio group should have horizontal orient
patch by neil@parkwaycc.co.uk r=bzbarsky@mit.edu sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@113208 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 15:51:39 +00:00
mikep%oeone.com
969d32bfc0 fixing strict warnings for calendar
git-svn-id: svn://10.0.0.236/trunk@113207 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 15:45:39 +00:00
mikep%oeone.com
63f574817b Many xul bug fixes for adding events and small bug fix in the week view.
git-svn-id: svn://10.0.0.236/trunk@113206 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 15:22:19 +00:00
blizzard%redhat.com
056f2fe1bf Bug #121011. widget misses mouse-up event after scrolling when mouse button is released outside the widget area. Track passive grabs with sButtonMotionTarget. r=bryner, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@113205 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 14:57:53 +00:00
myk%mozilla.org
3bad919c98 Fix for bug 104521: Removes old attachment interface in favor of new attachment tracker.
Patch by Myk Melez <myk@mozilla.org>.
r=bbaetz,kiko


git-svn-id: svn://10.0.0.236/trunk@113204 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 14:14:12 +00:00
bbaetz%student.usyd.edu.au
65d995cd1d Bug 122154 - change arrays to numeric, and clean up query.atml js
patch by kiko@async.com.br, r=caillon,bbaetz


git-svn-id: svn://10.0.0.236/trunk@113203 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 13:43:11 +00:00
rginda%netscape.com
dd071b060f quiet bogus "potentially unused" warnings, see bug 121178, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 08:37:57 +00:00
alecf%netscape.com
4331ed65d3 First part of fix for bug 107575 - remove nsString::FindChar because there is already an nsAString::FindChar, and remove the "ignore case" option in RFindChar
r=dougt, sr=jag


git-svn-id: svn://10.0.0.236/trunk@113200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 06:04:29 +00:00
mjudge%netscape.com
1d98bc69e0 BUG115229 files not in build yet. checking in new files to make tree landing of editor embedded work go more smoothely
git-svn-id: svn://10.0.0.236/trunk@113197 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 05:15:42 +00:00
blizzard%redhat.com
0ddbd5c1fa Get scrollbars on popups working properly. Not part of the build. No bug on this.
git-svn-id: svn://10.0.0.236/trunk@113196 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:52:29 +00:00
mjudge%netscape.com
4de829d793 BUG115229 files not in build yet. checking in new files to make tree landing of editor embedded work go more smoothely
git-svn-id: svn://10.0.0.236/trunk@113195 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:46:54 +00:00
mjudge%netscape.com
58da2c0adf BUG115229 files not in build yet. checking in new files to make tree landing of editor embedded work go more smoothely
new bitmap for editor toolbar.


git-svn-id: svn://10.0.0.236/trunk@113194 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:45:18 +00:00
mjudge%netscape.com
9f9b518210 files not in build yet. BUG 115922. embedding work for editor. checking in files not in build yet to make tree landing more smooth.
git-svn-id: svn://10.0.0.236/trunk@113193 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:44:14 +00:00
sonja.mirtitsch%sun.com
833765f0bd another try for QA / RE / tinderbox problem bug #115200
git-svn-id: svn://10.0.0.236/trunk@113192 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:37:35 +00:00
morse%netscape.com
24f63093a1 bug 113089, doubleclick in chose-user screen should close window, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@113191 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:21:51 +00:00
sfraser%netscape.com
a58abd053a Chamnges to allow for making every module's nsModuleComponentInfo data const; bug 74803. r=dp, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113190 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 04:05:47 +00:00
seawood%netscape.com
18da129413 Use .get() when assigning nsXPIDLCString to const char*. Fixing OS/2 & AIX bustage.
git-svn-id: svn://10.0.0.236/trunk@113189 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:51:47 +00:00
rginda%netscape.com
b4a3c50667 - venkman only -
bug 122021, add comments re: leading/trailing spaces and quotes in venkman string files.


git-svn-id: svn://10.0.0.236/trunk@113188 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:45:48 +00:00
ducarroz%netscape.com
35f3f37671 Fix for bug 100036. Need to remove node from bottom to top to avoid removing a newly merged text node. R=cavin, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@113187 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:37:19 +00:00
smeredith%netscape.com
ca8342bb53 Fixed locked pref bug in pref editor.
Updated the documentation.


git-svn-id: svn://10.0.0.236/trunk@113186 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:21:40 +00:00
timeless%mac.com
0566424203 Bug 120211 Hook-up a dialog which warns users of the broken Xfree86 Xprt
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@113185 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:15:27 +00:00
rginda%netscape.com
edc9a7f5e3 - venkman only -
remove debug dumps in variious getContext functions
warning cleanup in outliner-utils.js
add chrome-filter command to set the state of console.enableChromeFilter
if on, chrome files will not be displayed in the scripts view, and they will be filtered by the debugger service.  If off, chrome files will be treated the same as others.  chrome files are identified by a leading "chrome:" in the url.
add "Display Browser Files" checkitem to View menu.
add |feedback| function, which calls |display| only if the event began at the console.
fix async loading issue in SourceText.loadSource
fix boolean pref getter in venkman-prefs.js


git-svn-id: svn://10.0.0.236/trunk@113184 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 03:05:49 +00:00
cathleen%netscape.com
dd8ebc5bd1 eliminate nsCRT::zero() to use memset to zero instead, bug 118135, r=dp sr=waterson
git-svn-id: svn://10.0.0.236/trunk@113183 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:55:57 +00:00
serge%netscape.com
72ccea118e fix #115308, NPN_PostURL[Notify] does not handle binary data; r=bnesse, sr=darin
git-svn-id: svn://10.0.0.236/trunk@113181 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:40:46 +00:00
darin%netscape.com
b801661659 fixes bug 121765 "NS_MakeAbsoluteWithCharset should not URL escape before
calling nsIURI::Resolve" r=nhotta, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@113180 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:40:27 +00:00
jband%netscape.com
07ee695610 fix bug 121118. Don't crash if interfaceinfo is not resolvable at runtime. r=dbradley sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113179 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:36:20 +00:00
bzbarsky%mit.edu
470ea1917e Make sure we lowercase types/extensions before putting them in the
datasource and that we lowercase types/extensions before comparing to
the datasource.  Bug 114462, r=law, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@113178 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:34:15 +00:00
darin%netscape.com
8ad1ba8651 removing dead, empty file
git-svn-id: svn://10.0.0.236/trunk@113177 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:29:51 +00:00
waterson%netscape.com
e42395b6b7 Bug 122367. I give up. Force block frames to have NS_BLOCK_SPACE_MGR bit set. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@113176 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:10:14 +00:00
rogerl%netscape.com
7492e8edc9 Bytecode version of engine.
git-svn-id: svn://10.0.0.236/trunk@113175 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 02:02:33 +00:00
kaie%netscape.com
debe0dea95 b=122503 msgCompFields.securityInfo morphs from nsIMsgSMIMECompFields to nsISupport.
r=kaie sr=mscott


git-svn-id: svn://10.0.0.236/trunk@113174 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 01:58:35 +00:00
bryner%netscape.com
c76cc7e915 Bug 122512 - make sure we don't construct inline frames for children of a select (size > 1) widget when using xbl form controls. r=hewitt,sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113173 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 01:38:55 +00:00
hyatt%netscape.com
35046a1728 Fix for 122031, r=pink, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113172 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 01:24:15 +00:00
hyatt%netscape.com
c7d42ad5fa Fix CocoaZilla bustage caused by accidental commit of a text file as binary. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@113171 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 01:23:23 +00:00
relyea%netscape.com
f5ee7acbf0 Unsigned values are always greater than '0'!
git-svn-id: svn://10.0.0.236/trunk@113170 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 00:48:24 +00:00
relyea%netscape.com
a47cb54982 Indexes are zero based. Do our realloc when index == size (not after).
git-svn-id: svn://10.0.0.236/trunk@113169 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 00:25:34 +00:00
relyea%netscape.com
b30eea42df 1) put some defensive programming so we don't crash on invalid der.
2) set the start offset correctly for multi-byte lengths when decoding sets
and sequences


git-svn-id: svn://10.0.0.236/trunk@113168 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-30 00:24:12 +00:00
cathleen%netscape.com
daf06d1fa1 fix win32 static build bustage, bug 122477 sr=waterson r=mcafee
git-svn-id: svn://10.0.0.236/trunk@113167 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 23:39:44 +00:00
gerv%gerv.net
4c6b3e1925 Bug 117509 - createaccount.cgi templatisation.
git-svn-id: svn://10.0.0.236/trunk@113165 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 23:26:37 +00:00
blizzard%redhat.com
3e263972ef Bug #121246. Fix rendering problems with text areas and menus. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113164 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 23:24:00 +00:00
bbaetz%student.usyd.edu.au
b5fd1e48f2 Bug 115720 - migrated ("network.proxy.type", 3) fails to connect
r=darin, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@113163 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 23:15:41 +00:00
igor%mir2.org
041da0a0b6 Stricter enter/exit: enter performs sanity checks on supplied Context and the exit requires previous enter.
git-svn-id: svn://10.0.0.236/trunk@113162 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:58:22 +00:00
mscott%netscape.com
d02d7f94e3 Bug #122254 --> delay initialing the biff status icon struct until
we really need to use it.
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113161 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:49:42 +00:00
mscott%netscape.com
79356fafcf Bug #122293 --> pass in the correct # of new messages to make
the biff icon titletip for pop show the right number.
r=navin
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113160 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:47:20 +00:00
oeschger%netscape.com
d94e95eec2 checking in doc fixes in 122245 and 62573 for
matt krai, kraai@alumni.carnegiemellon.edu, r=me and cotter@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113159 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:43:36 +00:00
chak%netscape.com
c97d80ff4d Updated fix for Bugscape #11939 - JavaScript Fails on CTA Signed Page
r=adamlock, sr=jband(for the branch fix)


git-svn-id: svn://10.0.0.236/trunk@113158 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:30:12 +00:00
relyea%netscape.com
9ff26f31a1 Restore idempontency to nss_init*
git-svn-id: svn://10.0.0.236/trunk@113157 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:27:15 +00:00
locka%iol.ie
8398cd7d51 Dead file (not built). Should have been deleted when webbrowserpersist moved to embedding/components
git-svn-id: svn://10.0.0.236/trunk@113156 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:21:48 +00:00
darin%netscape.com
aa830712ab fixes bug 114125 "nsStandardURL::Clone fails to clone the nsIFile if one
exists" r=dougt,sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113155 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 22:04:16 +00:00
hwaara%chello.se
d3ab9d4155 #72279, "Need visual indicators for Watched, Killed threads"
r=andreww, sr=hewitt on the themes stuff.  r=sspitzer, sr=bienvenu on the mail changes.


git-svn-id: svn://10.0.0.236/trunk@113154 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:56:44 +00:00
dougt%netscape.com
2dfb45dde3 Backing out nsIFile changes which should not have landed.
git-svn-id: svn://10.0.0.236/trunk@113152 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:42:38 +00:00
danm%netscape.com
1bc8d80e04 deactivate root focus controller as well as your own while deactivating yourself. bug 122462 / bugscape 11864 code=saari,myself r=bryner,hyatt
git-svn-id: svn://10.0.0.236/trunk@113151 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:42:07 +00:00
blizzard%redhat.com
83b13ed306 Bug #121279. TestGtkEmbed crash on javascript window.close(). r=jst,sr=shaver
git-svn-id: svn://10.0.0.236/trunk@113150 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:39:31 +00:00
cavin%netscape.com
8c566f4ff8 Fix for #106534. Check if the fcc folder uri is valid and use the configured one if not valid. r=ducarroz, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@113149 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:38:16 +00:00
nhotta%netscape.com
b4d63c4658 For Carbon only, changed to use Navigation Services 3.0 for GetLocalFile, GetLocalFolder, PutLocalFile,
bug 95478, r=ccarlen, sr=sfraser.


git-svn-id: svn://10.0.0.236/trunk@113147 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:34:21 +00:00
naving%netscape.com
9edbb600bf 107029 r=racham sr=mscott. Add Clear button to come out of quick search (mail - 3pane)
git-svn-id: svn://10.0.0.236/trunk@113146 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:32:05 +00:00
mscott%netscape.com
234c421d85 Bug #122427 --> define a window title string for the add smtp server dialog
box so you can actually bring it up.
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113145 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:32:03 +00:00
cathleen%netscape.com
3ae7a2346b eliminate nsCRT::memcmp and all callers to use memcmp instead, bug 118135 r=dp sr=brendan
git-svn-id: svn://10.0.0.236/trunk@113144 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:30:32 +00:00
dougt%netscape.com
011f9b10e5 1. Converts callers of nsIComponentManagerObsolete to use
nsIComponentRegistrar.

2. Converts callers of nsComponentManager::AutoRegister to use
nsIComponentRegistrar's autoRegistrar method.

3. Add nsIComponentRegistrar implmentation to nsComponentManagerImpl.

4. Rearrange nsComponentManager.cpp so that related methods are in the same
place.

5. Added a C-style function NS_GetComponentRegistrar so that getting the
registrar is easier in some places.

6. Added a nsISimpleEnumerator interface on PLDHashTableEnumeratorImpl.  in
this way, the same base class can support both old style and new style
enumerations.

7. Fixed a nasty bug where unregistring factories will leave the contract id
hash with a dangling pointer.  Now, when unregister is called we search the
contract id hash for entries which have the given doomned cid and remove them.


Bug 115853.  r=dp@netscape.com, sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:22:13 +00:00
mscott%netscape.com
c014f42d9a Bug #11926 --> add a pref for disabling the pseudo mailbox box view and force
the imap delete model if psuedo mailbox view is being suppressed
r=sspitzer
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113142 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:21:43 +00:00
relyea%netscape.com
9b55e3a569 Built-ins set the ulValueLen to -1 to indicate an unknown attribute type.
git-svn-id: svn://10.0.0.236/trunk@113141 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:12:13 +00:00
kestes%walrus.com
e4389162d5 added some thoughts on how this should work. I still need to debug it.
git-svn-id: svn://10.0.0.236/trunk@113140 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:11:59 +00:00
pinkerton%netscape.com
a7cee19a47 twisties, upside down tabs, and tree implementation on mac. Also adding constants for window, menu, and dialog backgrounds XP. bug 115747, r=sdagley/sr=hyatt,sfraser.
git-svn-id: svn://10.0.0.236/trunk@113139 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:10:57 +00:00
relyea%netscape.com
6622f270f8 Token and slot names are already converted to NULL terminated strings in the slot structure
git-svn-id: svn://10.0.0.236/trunk@113138 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:10:50 +00:00
bnesse%netscape.com
f23dcf9eb5 Fix for bug 104293. Do not bail on applet creation if height and width are 0. r=peterlubczynski, sr=beard.
git-svn-id: svn://10.0.0.236/trunk@113137 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:08:06 +00:00
naving%netscape.com
207f7c02aa 122314 patch by tingley@sundell.net sr=waterson. decrease the refcnt but not null out rdfService -fixes
future crash on shutdown


git-svn-id: svn://10.0.0.236/trunk@113135 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:04:03 +00:00
pinkerton%netscape.com
8cfab27071 make control-space send a context-menu event into gecko. r=brade/sr=sfraser. bug# 81727
git-svn-id: svn://10.0.0.236/trunk@113134 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:01:42 +00:00
pinkerton%netscape.com
b8d6fb4e39 rebuild the parent menu when the title of the parent of a hierarchical menu changes (text-zoom%, for example). the old code would only work if the parent was the menubar. r=sdagley/sr=sfraser. bug#106394
git-svn-id: svn://10.0.0.236/trunk@113133 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 21:00:16 +00:00
chak%netscape.com
94decaa0c2 Fix for Bugscape #11939 - JavaScript fails on CTA signed page
r=adamlock, sr=jband


git-svn-id: svn://10.0.0.236/trunk@113132 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 20:59:12 +00:00
despotdaemon%netscape.com
65e17de29d Pseudo-automatic update of changes made by cbiesinger@web.de.
git-svn-id: svn://10.0.0.236/trunk@113130 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 20:14:08 +00:00
curt%netscape.com
2ce8447b0a Switch to http 1.0 instead of 1.1. Fixes bug #89701.
git-svn-id: svn://10.0.0.236/trunk@113128 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 19:08:12 +00:00
despotdaemon%netscape.com
0cb909bdd1 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@113127 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 19:03:35 +00:00
relyea%netscape.com
8fc3bf1fcb Don't leak memory in the arena pool
git-svn-id: svn://10.0.0.236/trunk@113126 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 19:00:47 +00:00
igor%mir2.org
316733af9e Few Native* classes are made package private and final. They had been public only for implementation reasons.
git-svn-id: svn://10.0.0.236/trunk@113124 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 18:40:13 +00:00
relyea%netscape.com
cd1b6d6069 More 'pretty print' improvements. Decode context specific data a little more.
git-svn-id: svn://10.0.0.236/trunk@113123 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 17:50:27 +00:00
ian.mcgreer%sun.com
c1c7114dbe changes related to bug 115660
* fipstoken will only force authentication for object-related functions when the object is a private or secret key
* certutil does not authenticate to token when in FIPS and only doing cert-related operations
* QA does not provide password to certutil when doing cert-related operations in FIPS tests


git-svn-id: svn://10.0.0.236/trunk@113122 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 17:30:22 +00:00
timeless%mac.com
00f05b8498 Bug 95986 remove references to nsImageManager
removing obsolete tests
removal for cbiesinger@web.de r=pavlov sr=tor


git-svn-id: svn://10.0.0.236/trunk@113121 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 15:15:37 +00:00
timeless%mac.com
1264f3a27e Bug 95986 remove references to nsImageManager
patch by cbiesinger@web.de r=pavlov sr=tor


git-svn-id: svn://10.0.0.236/trunk@113120 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 15:01:33 +00:00
hwaara%chello.se
4da32f6549 #120733, "Filters: 'Begins with' criteria treated as 'Contains'".
r=naving, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113119 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 15:00:05 +00:00
ian%hixie.ch
2368ac910c Fix duplicate id by manually specifying attributes on one element. Fixes the Paste As Quotation menu item in the compose context menu. Patch by neil@parkwaycc.co.uk, b=121582, r=timeless, sr=blake.
git-svn-id: svn://10.0.0.236/trunk@113118 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 14:08:14 +00:00
seawood%netscape.com
962a6e58bb If TOPSRCDIR_MOZ is not set, set it to TOPSRCDIR.
git-svn-id: svn://10.0.0.236/trunk@113117 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 13:12:50 +00:00
kestes%walrus.com
8b2e024267 many bug fixes. it still will not work, I need a few more hours to finish
debugging this.


git-svn-id: svn://10.0.0.236/trunk@113116 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 11:38:55 +00:00
seawood%netscape.com
2d60f0ef5b use 'alldep' instead of 'depend build'
git-svn-id: svn://10.0.0.236/trunk@113115 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 10:25:13 +00:00
igor%mir2.org
b28d6ac14b Use ScriptRuntime.toString(double) to convert double to string. Easier to follow version of getElem/setElem
git-svn-id: svn://10.0.0.236/trunk@113114 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 09:44:24 +00:00
rginda%netscape.com
c952bded21 - venkman only -
UI changes for 121318
disable context before calling debugTrap
add dumpcontexts command to venkman-dev.js
remove console._stopLevel


git-svn-id: svn://10.0.0.236/trunk@113113 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 09:25:32 +00:00
glazman%netscape.com
3e255304d9 cmanske says that there is no need to get editorShell, it's always here...; b=91548, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113112 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 09:08:08 +00:00
rginda%netscape.com
482526e770 bug 121318, sr=brendan,r=jst, "Venkman should disable the target window when stopped at a breakpoint".
implement the jsdIContext interface.
create only one jsdValue wrapper per unique jsval.
add executionContext property to jsdIStackFrame.
add enumerateContexts to jsdIDebuggerService.
add jsdIContextEnumerator interface.


git-svn-id: svn://10.0.0.236/trunk@113111 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 08:32:23 +00:00
ben%netscape.com
be2e5d36fe [Manticore]
Add license to new file
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@113110 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 08:22:40 +00:00
ben%netscape.com
ccb9c5381d [Manticore]
Update toolbars (fancy toolbars on hold for now)
add location bar for loading URLs
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@113109 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 08:21:06 +00:00
rginda%netscape.com
b9406be45a -venkman only-
ui changes for bugs 121192 and 121178.
adds "emode" command, display any expcetions produced by evalInTargetScope


git-svn-id: svn://10.0.0.236/trunk@113108 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 08:16:56 +00:00
rginda%netscape.com
cec41f9f3b fixing os/2 bustage, false vs PR_FALSE mixup
git-svn-id: svn://10.0.0.236/trunk@113107 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 07:20:59 +00:00
jst%netscape.com
990a6bb073 WIP for an interface for the new frame and iframe loader. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@113103 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 06:31:26 +00:00
jst%netscape.com
fbe086cd70 WIP for a new frame and iframe loader. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@113102 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 06:27:27 +00:00
rginda%netscape.com
62e2418433 bug 121178, r=jst,sr=brendan, "jsdIStackFrame::eval signature needs to be changed"
return exception from jsdService::Eval if one occurs.


git-svn-id: svn://10.0.0.236/trunk@113101 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 06:15:58 +00:00
rginda%netscape.com
65e86f32aa bug 121192, sr=brendan,r=jst, "Add proper errorHook and debugHook to jsdIDebuggerService"
adds jsdIDebugHook interface, change the meaning of jsdIErrorHook.
error hook is called when an error occurs, and is given information about the error report.
debug hook is called when/if the error hook returns false, and is given information about the ececution state.


git-svn-id: svn://10.0.0.236/trunk@113100 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 05:56:02 +00:00
mscott%netscape.com
5890cc3f82 Bug #122293 --> add separate localization strings for biff icon tooltips
r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113098 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:50:13 +00:00
bryner%netscape.com
0941d7d594 Style and code cleanup. No functional changes. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113097 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:06:44 +00:00
timeless%mac.com
9c991564ac Bug 120967 Scale images with specific scaling factors
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113096 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:06:19 +00:00
timeless%mac.com
8af239bb2a Bug 121066 Images are dithered in Grayscale mode
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113095 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:05:19 +00:00
timeless%mac.com
6436523048 Bug 120221 Make |NS_ERROR_GFX_PRINTER_INVALID_ATTRIBUTE| more specific
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@113094 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:03:56 +00:00
wtc%netscape.com
10c0c202c1 Bugzilla bug 97485: added support for the magic "nspr_use_zone_allocator"
global variable.


git-svn-id: svn://10.0.0.236/trunk@113093 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 03:01:45 +00:00
timeless%mac.com
524c7f9717 Bug 120911 Crash while printing due lousy error checking
patch by Roland.Mainz@informatik.med.uni-giessen.de r=rods sr=jag


git-svn-id: svn://10.0.0.236/trunk@113092 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:59:12 +00:00
darin%netscape.com
f5daadee46 part one of bug 113163 "Performance problem at downloading"
patch=ak@muc.de, r=gordon@netscape.com, sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113091 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:58:02 +00:00
peterlubczynski%netscape.com
ad9265748e Fix for Plugin paints in the wrong part of the screen when on an absolute Div or scrolled bug 120821 r=kmcclusk@netscape.com sr=beard
git-svn-id: svn://10.0.0.236/trunk@113089 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:36:54 +00:00
nicolson%netscape.com
6bdaad4ee0 add -sourcepath flag.
git-svn-id: svn://10.0.0.236/trunk@113088 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:31:01 +00:00
jgaunt%netscape.com
d9e4217f1a bug 121890 bad acc bounds reporting for HTML Select Button
r=aaronl
sr=brendan


git-svn-id: svn://10.0.0.236/trunk@113087 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 02:05:22 +00:00
shanjian%netscape.com
b049cb1260 #92817 Simp. Chinese character display as bold face in Page Source
r=nhotta, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@113086 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:54:51 +00:00
mscott%netscape.com
4d14c1ea0c Bug #122191 --> clear the selection from the attachment tree before
we remove the elements from the tree.
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113085 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:42:57 +00:00
depstein%netscape.com
34defde189 added indiv cases for index entries and simple enumeration for nsiHistory
git-svn-id: svn://10.0.0.236/trunk@113084 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:31:15 +00:00
mscott%netscape.com
63f3a30ffc Bug #11922 --> if the redirector already has a password for the account
then set the authenticated state to true. this should cause biff
to start working for accounts using the redirector.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@113081 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:13:55 +00:00
kestes%walrus.com
600694ee91 fix comment.
git-svn-id: svn://10.0.0.236/trunk@113080 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:11:10 +00:00
kaie%netscape.com
b4dce85cdc b=116417 NSS3.4 build. Directly imported CAs not saved. Introducing a new auto cleanup class for destructing NSS objects.
r=javi sr=alecf


git-svn-id: svn://10.0.0.236/trunk@113079 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:10:04 +00:00
darin%netscape.com
1c1a37516c another patch for bug 109179 "replace nsStdEscape with nsEscapeURLPart"
r=dougt,gagan sr=alecf,waterson


git-svn-id: svn://10.0.0.236/trunk@113078 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:09:37 +00:00
kestes%walrus.com
54fa661fc0 regularize $last_cvs_data to be $last_vc_data this is clearer and matches
perforce.pm.  Also fix comments about the function call names to match
new naming system.


git-svn-id: svn://10.0.0.236/trunk@113077 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:09:15 +00:00
kestes%walrus.com
5658f562ac this is a first draft. I need to debug this before it will work,
but you can see the logic of it and it will not take long to get it
to work.


git-svn-id: svn://10.0.0.236/trunk@113076 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 01:06:26 +00:00
cmanske%netscape.com
e9ced7309b Fixed busted 'New' command in Composer, b=121939, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@113075 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:56:08 +00:00
bienvenu%netscape.com
40e15933fe fix crash playing back offline imap trash emptying r/sr=sspitzer 121799
git-svn-id: svn://10.0.0.236/trunk@113072 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:39:06 +00:00
nicolson%netscape.com
850ede87f4 fix to test either dist or release builds.
git-svn-id: svn://10.0.0.236/trunk@113070 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:14:45 +00:00
ashishbhatt%netscape.com
7da37df8a4 Added test cases for interface nsIClipboardCommand
git-svn-id: svn://10.0.0.236/trunk@113069 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:13:04 +00:00
waterson%netscape.com
3ddde9bd8f Bug 102860. Relatively positioned frames do not have place-holders. r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@113068 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:03:31 +00:00
waterson%netscape.com
3229841ba0 Bug 121860. Handle case where block frame is embedded inside a XUL document. r=dbaron, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@113067 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-29 00:02:25 +00:00
stephend%netscape.com
1bfbb1a79e Bug 95929. 'Done' should be removed from the Subscribe window's status' r=jglick@netscape.com, sr=sspitzer@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113066 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:50:28 +00:00
nicolson%netscape.com
01c72457d0 move into org.mozilla.jss.tests package.
git-svn-id: svn://10.0.0.236/trunk@113065 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:49:38 +00:00
bryner%netscape.com
89e99954e4 Bug 112716 - implement checkbox in XBL. r=jkeiser, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@113064 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:48:16 +00:00
bryner%netscape.com
04822496de Removing scrollbar tracks from the list of widgets that don't need to be invalidated due to a state change. This fixes the scrollbar "stuck-in-hover" problem. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113063 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:44:16 +00:00
seawood%netscape.com
58c6693820 Ignore build-ordering targets when doing standalone builds.
Bug #122149 r=axel@pike.org


git-svn-id: svn://10.0.0.236/trunk@113062 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:30:47 +00:00
relyea%netscape.com
2ae1f651be (sigh) not only do we need to find the objects, we need to be able to read
them as well.


git-svn-id: svn://10.0.0.236/trunk@113061 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:28:29 +00:00
mkaply%us.ibm.com
e5bf74f1f0 OS/2 code only - make it easier to turn off popup asserts if necessary by restructuring code
git-svn-id: svn://10.0.0.236/trunk@113060 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:26:31 +00:00
mkaply%us.ibm.com
01abf4b33b Add PR_CALLBACK to get MathML building on OS/2
git-svn-id: svn://10.0.0.236/trunk@113059 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:24:17 +00:00
sfraser%netscape.com
be543daf3c Fix blocker bug 121326 (any SSL transaction causes Mac to freeze) by checking in temporary patch from bug 106188; this reverts Mac to using blocking connects. r=wtc.
git-svn-id: svn://10.0.0.236/trunk@113058 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:14:42 +00:00
nicolson%netscape.com
8fd7000045 make release_classes target work.
git-svn-id: svn://10.0.0.236/trunk@113057 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:08:16 +00:00
waterson%netscape.com
4d0ee0832e Bug 122027. Canonify URI before looking it up in the cache. sr=darin.
git-svn-id: svn://10.0.0.236/trunk@113056 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 23:07:55 +00:00
jst%netscape.com
ff06deed3f Adding new chrome only window interface. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@113055 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 21:52:30 +00:00
sonja.mirtitsch%sun.com
b5fd12a311 fixed typo
git-svn-id: svn://10.0.0.236/trunk@113052 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 20:59:23 +00:00
jpierre%netscape.com
3e0d3badd1 Fix for 69556 - remove expired CA "Verisign Class 4 Primary CA"
git-svn-id: svn://10.0.0.236/trunk@113051 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 20:43:37 +00:00
sonja.mirtitsch%sun.com
df0c1910f0 attempted fix for bug 115200, tinderbox reports false failures on machines
that run 32 and 63 bit tinderboxes


git-svn-id: svn://10.0.0.236/trunk@113050 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 19:35:53 +00:00
mkaply%us.ibm.com
80dd30ec7f More OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@113049 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 19:26:12 +00:00
relyea%netscape.com
53ad9596fc Fix crashing problem when trying two switch from fips to non-fips and back.
bug 119214.


git-svn-id: svn://10.0.0.236/trunk@113048 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 19:18:41 +00:00
smeredith%netscape.com
314267c6e7 Added way to delete user-added prefs from the pref editor.
git-svn-id: svn://10.0.0.236/trunk@113047 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 19:09:00 +00:00
mscott%netscape.com
2711b450ef Fix smoketest blocker: 122228 by adding a null ptr check in GetHiddenDOMWindow
git-svn-id: svn://10.0.0.236/trunk@113046 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 18:52:24 +00:00
bzbarsky%mit.edu
5c982c6130 Fix blocker bug 122217. Use a contractid instead of the classid (which
is no longer registered) for the mime service.  r=brade, sr=jag.


git-svn-id: svn://10.0.0.236/trunk@113045 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 18:24:31 +00:00
mkaply%us.ibm.com
a00bb26a22 More OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@113044 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 18:13:56 +00:00
despotdaemon%netscape.com
0cfab0e86e Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@113043 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 17:54:37 +00:00
mkaply%us.ibm.com
07c6d2b07b OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@113042 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 17:00:06 +00:00
glazman%netscape.com
d5dadcf26c inline styles were not saved because gElement was outside of document's tree; b=91548, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@113041 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 16:00:12 +00:00
kaie%netscape.com
1f1c0c3523 b=121351 Avoid risk of multiple PK11_FreeSlot calls in GenerateCRMFRequest
r=javi sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@113040 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 15:25:47 +00:00
kaie%netscape.com
d806ea955b b=98068 Add PR_CALLBACK for changed interfaces in NSS_3_4
r=javi sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@113039 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 15:23:59 +00:00
kin%netscape.com
c9542ea086 Workaround fix for bug #117141 (Composer crashes when loading pages with an HTML Select element [@FrameManager::GetPrimaryFrameFor])
Removed seemingly unnecessary selection UI Style rule for -moz-dropdown-list,
to workaround the crash that happens during the restyling of the HTML Select
element when the EditorOverride.css style sheet is loaded.

r=brade@netscape.com  sr=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@113038 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 15:06:44 +00:00
sicking%bigfoot.com
3f4f453c70 Cleanup BooleanFunctionCall and StringFunctionCall, fixes bugs in lang(), substring() and a few more.
b=104758 r=Pike sr=jag


git-svn-id: svn://10.0.0.236/trunk@113036 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 14:46:39 +00:00
jaggernaut%netscape.com
e8761882ab Bug 117015: Text Zoom dialog should round value, not truncate it. r=stephend, sr=smfr
git-svn-id: svn://10.0.0.236/trunk@113035 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 12:46:31 +00:00
bryner%netscape.com
1c51cb9b81 Cleaning up checkbox/radio button code, now that I understand how it's supposed to work. Hooked up checkbox/radio containers. Fixed active/hover state problems with buttons. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113034 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 10:38:01 +00:00
timeless%mac.com
07f9150900 Bug 121720 Save Dialog should be able to be minimized
patch by Matti@epost.de r=caillon@returnzero.com sr=blake


git-svn-id: svn://10.0.0.236/trunk@113033 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 09:57:12 +00:00
timeless%mac.com
2764ed254e Bug 115636 javascript strict warnings in nsOutlinerSorting.js
patch by alexey@ihug.com.au r=timeless sr=jst


git-svn-id: svn://10.0.0.236/trunk@113032 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 08:46:13 +00:00
blizzard%redhat.com
f3b0cbd059 Add debugging hooks for invalidation. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113030 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 08:11:50 +00:00
mcafee%netscape.com
ddede4a56a adding mocha to pageload list
git-svn-id: svn://10.0.0.236/trunk@113029 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 08:05:46 +00:00
bryner%netscape.com
450ea6c939 turning off focus border for checkboxes. it's causing problems. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113027 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 07:17:39 +00:00
seawood%netscape.com
8eaaa40a4c S_ISSOCK isn't defined on BeOS.
git-svn-id: svn://10.0.0.236/trunk@113026 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 07:02:02 +00:00
mcafee%netscape.com
a947b91a39 graph size wasn't preserving average setting
git-svn-id: svn://10.0.0.236/trunk@113025 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 06:51:22 +00:00
blizzard%redhat.com
cee05222a4 Bug #121263. Get cursors working with gtk2. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113024 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 06:47:47 +00:00
bryner%netscape.com
b2a3cef540 Hooking up textfields and dropdown buttons. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113023 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 06:32:08 +00:00
bryner%netscape.com
ecc3f14a2e Bug 122157 - fixing the autocomplete widget in classic, on linux, to not have an outer border (to look more like gtk's combo box). r=ben, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@113022 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 06:31:08 +00:00
blizzard%redhat.com
ed6985c02f Bugs #121252,#122120. Get grabs finished on Linux and implement nsWindow::CaptureMouse(). Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113021 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 06:23:27 +00:00
alecf%netscape.com
9416759610 back out my accidental checkin
git-svn-id: svn://10.0.0.236/trunk@113018 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 02:47:30 +00:00
nboyd%atg.com
b55ba3f3bb Update implementation version.
git-svn-id: svn://10.0.0.236/trunk@113016 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:52:12 +00:00
bryner%netscape.com
840144c2da Make sure to look at the select element for onchange handlers, not the anonymous children. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113015 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:32:11 +00:00
seawood%netscape.com
a637516138 Remove unneeded transformiix Makefile. Bogus makefiles can cause problems with cvs pulls when building in the srcdir.
git-svn-id: svn://10.0.0.236/trunk@113014 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:25:25 +00:00
bienvenu%netscape.com
3036b0f9bb bullet-proof fix for 121876 r/sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@113013 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:11:29 +00:00
bhart00%yahoo.com
4252f164b9 Bug 120150 - add tooltip to Send Later button. r=stephend/racham/jglick/robin; sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@113012 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-28 00:02:01 +00:00
brendan%mozilla.org
2a9625df7c Fix a warning, clean up whitespace (r=diff -w, sr=gcc).
git-svn-id: svn://10.0.0.236/trunk@113011 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 23:56:02 +00:00
sspitzer%netscape.com
79436a9c38 fix for #121566 and #121677. define a default height for the thread pane
(both vertical 3 pane and normal 3 pane layouts) and for the results pane in
the addressbook.  if we don't, it causes the splitter to jump up and down
forever on linux and (because it's so fast) pinging the CPU on windows.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@113010 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 23:04:13 +00:00
rbs%maths.uq.edu.au
8df8af8ad7 revert an unintended change that crept in
git-svn-id: svn://10.0.0.236/trunk@113009 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:23:07 +00:00
rbs%maths.uq.edu.au
20005cee47 Another renaming for ease of readability: s/core/coreFrame/g and s/next/nextFrame/g
git-svn-id: svn://10.0.0.236/trunk@113008 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:10:45 +00:00
alecf%netscape.com
a3f49498a1 fix for bug 121508 - clean up nsStringStream and nsIParser APIs.. r=dougt, sr=jst
git-svn-id: svn://10.0.0.236/trunk@113007 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 22:02:00 +00:00
stephend%netscape.com
9291c925a0 Bug 117814. Strict JS warnings in password.js. r=stephend@netscape.com, sr=jaggernaut@netscape.com
git-svn-id: svn://10.0.0.236/trunk@113006 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 21:54:53 +00:00
blizzard%redhat.com
5981025c4e Part of bug #121252. Get the rollup listener working properly. Grabs are mostly working now. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@113005 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 20:30:56 +00:00
rbs%maths.uq.edu.au
979dc04ba6 When looking up the real sibling of a cell, use colspan/rowspan (instead of just 1) as the increment to cater for cases of spanning cells in the cellmap
git-svn-id: svn://10.0.0.236/trunk@113004 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 19:26:42 +00:00
locka%iol.ie
b528c13d94 Implement ConfirmEx and various Prompt methods on nsIPrompt. b=121931 r=chak@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@113003 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 19:15:07 +00:00
zach%zachlipton.com
063a9d3b5e Fix for bug 121735: Perl warning running checksetup.pl if a module has a
non-numeric version number. Patch sets checksetup.pl to use a string
compare instead of a numeric one.

Patch by Dave Miller. r1=Bradley Baetz and r2=Gerv


git-svn-id: svn://10.0.0.236/trunk@113002 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:59:38 +00:00
pete%alphanumerica.com
2930306a0e getting rid of -D_USE_BSD
Pulling implementation out of the header file seemed to have fixed the bustage

--pete


git-svn-id: svn://10.0.0.236/trunk@113001 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:57:41 +00:00
pete%alphanumerica.com
f66db985f6 reverting back to original
define is not needed here

--pete


git-svn-id: svn://10.0.0.236/trunk@113000 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:56:02 +00:00
pete%alphanumerica.com
a6eeb89003 seeing if this fixes the linux bustage
--pete


git-svn-id: svn://10.0.0.236/trunk@112999 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:47:17 +00:00
pete%alphanumerica.com
ecfebea9f2 adding -D_USE_BSD to see if lstat will work on these linux flavors
--pete


git-svn-id: svn://10.0.0.236/trunk@112998 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:32:11 +00:00
pete%alphanumerica.com
2585c334a6 adding -D_BSD_SOURCE to Makefile.in as seawood suggested
to fix linux bustage

--pete


git-svn-id: svn://10.0.0.236/trunk@112997 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:17:33 +00:00
pete%alphanumerica.com
e39572043e movind implementation of FilleStatCache into nsLocalFileUnix.cpp
where other calls to lstat work fine

This is an attempt to fix bustage on some linux platfroms

--pete


git-svn-id: svn://10.0.0.236/trunk@112996 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 18:02:18 +00:00
pete%alphanumerica.com
0945a8d405 moving defs into header file
To fix bustage

--pete


git-svn-id: svn://10.0.0.236/trunk@112995 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 17:46:14 +00:00
pete%alphanumerica.com
fee3253b31 adding header files for linux for lstat
seeing if this fixes breakage

--pete


git-svn-id: svn://10.0.0.236/trunk@112994 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 17:31:24 +00:00
pete%alphanumerica.com
c7642c235b b=107641, r=blizzard, sr=brendan
fix: CopyTo won't copy read-only files or broken symlinks

Thanks to garths@oeone.com for help on this one.

--pete


git-svn-id: svn://10.0.0.236/trunk@112993 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 14:31:25 +00:00
bryner%netscape.com
c2dd55c7e3 Updating wording in debug prefs panel to not discourage people from filing bugs about XBL form control problems.
git-svn-id: svn://10.0.0.236/trunk@112992 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 09:08:26 +00:00
roc+%cs.cmu.edu
f52124fa77 Bug 13213. Allow views to extend above and to the left of their owner frames. r=kmcclusk,rs=waterson
git-svn-id: svn://10.0.0.236/trunk@112991 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:56:23 +00:00
roc+%cs.cmu.edu
9e52ce4c8a Bug 33601. Force REFRAME style hints if views might need to be created in response to opacity or background-attachment style changes. r=dbaron,sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112990 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:53:27 +00:00
timeless%mac.com
cea26a6b9c Bug 117418 nsWSRunObject.cpp:704: warning: `PRInt32 curStartOffset' might be used uninitialized in this function
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112989 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 07:07:10 +00:00
rpotts%netscape.com
8bab5fb6fc bug #120590 (r=mscott@netscape.com, sr=darin@netscape.com). HTTP was using the wrong mime handler...
git-svn-id: svn://10.0.0.236/trunk@112988 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 06:03:39 +00:00
wtc%netscape.com
540892388c Implemented GetHiResClock() for HP-UX.
git-svn-id: svn://10.0.0.236/trunk@112987 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 05:08:43 +00:00
sspitzer%netscape.com
b48c44be7c fix for #102643. add pref UI for the "confirm send on accel key" UI,
and fix some other UI issues with the mail & newsgroups main pref panel.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@112986 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:55:06 +00:00
wtc%netscape.com
658de28599 Bugzilla bug 113152: do not define or test the macro 'linux'. Thanks to
david@blue-labs.org for the patch.
Modified files: configure configure.in Linux.mk prinet.h


git-svn-id: svn://10.0.0.236/trunk@112985 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:51:01 +00:00
brendan%mozilla.org
e39800b131 Checking in rogerl's fix for double-reports of compile-time errors (120197, r=brendan, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112984 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:42:37 +00:00
wtc%netscape.com
cc1ec71cfe Backed out the previous checkin. Misunderstood the cause of the problem.
git-svn-id: svn://10.0.0.236/trunk@112983 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 04:35:55 +00:00
wtc%netscape.com
b5fc7698f8 Bugzilla bug 121872: define _PR_MD_LISTEN as a function so that we can set
error codes if listen() fails.  The patch is contributed by Javier
Pedemonte <pedemont@us.ibm.com>.
Modified files: _os2.h _os2_errors.h os2sock.c


git-svn-id: svn://10.0.0.236/trunk@112981 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:59:44 +00:00
ben%netscape.com
574ac8c9fb [Manticore]
Add license to new files
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@112980 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:56:45 +00:00
ben%netscape.com
8574eb192d [Manticore]
More toolbar work...
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@112979 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:55:43 +00:00
bienvenu%netscape.com
e0d0889213 fix mac build bustage
git-svn-id: svn://10.0.0.236/trunk@112978 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:32:36 +00:00
bienvenu%netscape.com
a6a044efb6 white space fixes
git-svn-id: svn://10.0.0.236/trunk@112977 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:13:52 +00:00
timeless%mac.com
df30ac6227 Bug 119858 "p3pv1" link in Site Navigation toolbar?
patch by choess@stwing.upenn.edu r=timeless sr=hyatt

prevent stylesheet's, icon's, p3pv*'s and schema.*'s from appearing in the toolbar


git-svn-id: svn://10.0.0.236/trunk@112976 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:13:12 +00:00
bienvenu%netscape.com
b7c4d1e68e hide column picker for offline folder selector r=stephend,sr=sspitzer 120257
git-svn-id: svn://10.0.0.236/trunk@112975 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:08:24 +00:00
bienvenu%netscape.com
a00ceb4d40 sharing tab of folder properties r=sspitzer, sr=mscott 112096
git-svn-id: svn://10.0.0.236/trunk@112974 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:07:44 +00:00
bienvenu%netscape.com
87e9ae8cf2 more work on shared imap folders and acl, sharing tab of folder properties r=sspitzer, sr=mscott 112096
git-svn-id: svn://10.0.0.236/trunk@112973 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:06:46 +00:00
bienvenu%netscape.com
77ed9303ff add strings for sharing tab r=sspitzer, sr=mscott 112100
git-svn-id: svn://10.0.0.236/trunk@112972 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 02:03:44 +00:00
timeless%mac.com
27a75dac73 Bug 105057 images used as form controls doesn't appear on Page Info | Images
patch by db48x@yahoo.com r=bzbarsky@mit.edu sr=jag


git-svn-id: svn://10.0.0.236/trunk@112971 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 01:45:58 +00:00
bryner%netscape.com
b5bc1766ea Bug 120974 - fix QI method on nsOutlinerBodyFrame so it doesn't get wrapped in an nsBoxToBlockAdaptor. Move Reflow() logic into GetPrefSize and SetBounds. r=varga, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112970 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 00:58:46 +00:00
wtc%netscape.com
1322126cf6 Bugzilla bug 114702: support Linux 2.5.x kernels.
git-svn-id: svn://10.0.0.236/trunk@112969 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 00:45:37 +00:00
wtc%netscape.com
2b6f0984fd Bugzilla bug 100447: on BSD/OS 4.2 and 4.3, we have problem calling
safe_popen in a threaded program.  So we don't call safe_popen when
we obtained some entropy from /dev/urandom.  Thanks to lidl@pix.net
for the bug report and the fix.


git-svn-id: svn://10.0.0.236/trunk@112968 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-27 00:14:59 +00:00
hyatt%netscape.com
716a0600e6 Removing some DEBUG_hyatt code.
git-svn-id: svn://10.0.0.236/trunk@112967 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 23:42:24 +00:00
bryner%netscape.com
b4d0800861 Bug 101032 - fix nsScrollBoxObject::EnsureElementsVisible in the case where the scrollbox is not at 0,0. Patch from shanec@activestate.com, r=bryner, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112966 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 23:27:27 +00:00
bryner%netscape.com
ae907eefc1 Fixing bug 122028 (clearing the entire selection on ctrl+click), also fixing some logic errors where the result of |selection.isSelected()| was incorrectly inverted. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112965 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 23:06:24 +00:00
ben%netscape.com
d28b32e2b4 [Manticore]
begin work implementing new toolbar widget, 'StripBar'
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@112964 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 22:25:43 +00:00
sgehani%netscape.com
3463b5a96b Make tooltip pref be honored within same session of browser.
b = 113831; r = morse; sr = hewitt


git-svn-id: svn://10.0.0.236/trunk@112963 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 20:15:01 +00:00
sgehani%netscape.com
1a9839a7e9 Fix sidebar contents disappearing on show and hide.
b = 116094; r = morse; sr = alecf


git-svn-id: svn://10.0.0.236/trunk@112962 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 20:07:54 +00:00
nboyd%atg.com
cd6b463349 Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@112961 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 20:07:49 +00:00
sgehani%netscape.com
89380bcf32 Fix appearence branch always being open in prefs.
b = 117885; r = sgehani; sr = blake
(checking in for Stephen Walker <walk84@yahoo.com>)


git-svn-id: svn://10.0.0.236/trunk@112960 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 20:04:16 +00:00
sgehani%netscape.com
adaf4097dd Make sidebar display in the event that the windows integration dialog appeared.
b = 119975; r = law; sr = dveditz


git-svn-id: svn://10.0.0.236/trunk@112959 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 19:59:42 +00:00
nboyd%atg.com
c5eb49df96 Fix bug 121790
git-svn-id: svn://10.0.0.236/trunk@112957 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 19:15:06 +00:00
nboyd%atg.com
045cba9433 Fix formatting
git-svn-id: svn://10.0.0.236/trunk@112956 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 19:13:22 +00:00
sspitzer%netscape.com
73ee4be75f clean up some string usage. rs=mscott
git-svn-id: svn://10.0.0.236/trunk@112952 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 16:36:30 +00:00
oeschger%netscape.com
25fb197b8d doc fix by kraai@alumni.carnegiemellon.edu, r=oeschger, bug=121706
git-svn-id: svn://10.0.0.236/trunk@112951 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 16:31:28 +00:00
oeschger%netscape.com
6124589e59 doc update by kraai@alumni.carnegiemellon.edu, r=oeschger, bug=121273
git-svn-id: svn://10.0.0.236/trunk@112950 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 16:30:25 +00:00
wtc%netscape.com
a3b315a581 Bugzilla bug 111206: make the Solaris version test flexible so that we
don't need to add a new test for each new Solaris release.


git-svn-id: svn://10.0.0.236/trunk@112949 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 16:19:51 +00:00
seawood%netscape.com
58b0318909 Fixing win32 gmake bustage
git-svn-id: svn://10.0.0.236/trunk@112948 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 15:25:27 +00:00
bryner%netscape.com
11fe1c8fa0 Fixing XBL form controls in installer builds -- put nsISelectElement into content_html.xpt and include this file in the xpi. r/sr=jag.
git-svn-id: svn://10.0.0.236/trunk@112947 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 09:47:25 +00:00
ducarroz%netscape.com
317af6d101 Part of fix for bug 108965. Remove xul emitter from the Mac build. R=mscott, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@112946 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 03:43:15 +00:00
mscott%netscape.com
218c446117 Bug #119344 --> add windows system tray icon for biff
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112945 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 03:34:57 +00:00
cltbld%netscape.com
1cde876811 parameterizing pageload server
git-svn-id: svn://10.0.0.236/trunk@112944 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:46:51 +00:00
sspitzer%netscape.com
e98c27f7fc supplimental fix for #113540, clean up code. rs=mscott
git-svn-id: svn://10.0.0.236/trunk@112943 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:37:56 +00:00
pete%alphanumerica.com
8fb3979c3c b=121028, r=brendan, sr=jst
fix for crahser using old handler attribute 'type'

--pete


git-svn-id: svn://10.0.0.236/trunk@112940 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:20:15 +00:00
wtc%netscape.com
a633f807f7 Continue to use the HP shl_load interface on 64-bit HP-UX/PA-RISC for
backward compatibility reasons.


git-svn-id: svn://10.0.0.236/trunk@112939 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:14:52 +00:00
darin%netscape.com
b86057cf8d partial fix for bug 90004 "proxy reload doesn't work" r=gagan,sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@112937 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:14:09 +00:00
naving%netscape.com
4665a22500 111368 r=ducarroz sr=bienvenu. free leaking mFileSpec in attachmentHandler
git-svn-id: svn://10.0.0.236/trunk@112935 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 02:09:32 +00:00
despotdaemon%netscape.com
fd1a78fc51 Pseudo-automatic update of changes made by blythe@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112934 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:53:38 +00:00
sspitzer%netscape.com
97455be591 fix for #117452, get delete of cards after quick search to work.
r=racham, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112933 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:42:28 +00:00
despotdaemon%netscape.com
7b105f1125 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@112932 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:25:48 +00:00
relyea%netscape.com
c0a2bdbd5f Fix PBE_Context failure by making sure CKM_PBA is it's own keygen type.
git-svn-id: svn://10.0.0.236/trunk@112931 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:20:50 +00:00
rginda%netscape.com
8c2005fa3a - venkman only -
lineMap no longer required in SourceText records, HelpText doesn't need it.


git-svn-id: svn://10.0.0.236/trunk@112930 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:11:01 +00:00
rginda%netscape.com
305d514d88 - venkman only -
get default context without complaining for debug and view menus, remove debug dump.


git-svn-id: svn://10.0.0.236/trunk@112929 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:10:03 +00:00
rginda%netscape.com
73e424cd53 - venkman only -
store commandname attribute on menuitem so we don't need to parse it onpopupshowing, makes for faster menus.


git-svn-id: svn://10.0.0.236/trunk@112928 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:05:50 +00:00
rginda%netscape.com
a6b8bb92ad - venkman only -
strict fixes


git-svn-id: svn://10.0.0.236/trunk@112927 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 01:03:43 +00:00
cmanske%netscape.com
cc500a6380 Save last-used directories as nsILocalFile type in prefs, b=93487, r=law, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@112925 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:55:27 +00:00
cotter%netscape.com
15c74b2558 ongoing help content updates to privacy & security sections, r=oeschger
git-svn-id: svn://10.0.0.236/trunk@112924 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:51:37 +00:00
morse%netscape.com
f1e6b218e3 bug 113540, remove mailnews dependency on password manager, r=mscott,sspitzer,jag,law
git-svn-id: svn://10.0.0.236/trunk@112923 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:47:26 +00:00
darin%netscape.com
c1b8bccdc3 backing out my changes -- rjc says it causes moz not to startup!
git-svn-id: svn://10.0.0.236/trunk@112922 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:46:09 +00:00
peterlubczynski%netscape.com
16315d2fb3 Removing ugly shockwave hack bug 115461 r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@112921 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:45:45 +00:00
peterlubczynski%netscape.com
8175aa6f6d Fix for using newer pluign if upgraded, bug 119966 r=av sr=darin
git-svn-id: svn://10.0.0.236/trunk@112920 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:44:47 +00:00
morse%netscape.com
7d3edf79d1 bug 113540, remove mailnews dependency on password manager, r=mscott,sspitzer,jag,law
git-svn-id: svn://10.0.0.236/trunk@112919 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:44:18 +00:00
peterlubczynski%netscape.com
461edc33ef Fixing cursor flicker with plugins, bug 118877 r=kmcclusk@netscape.com sr=beard
git-svn-id: svn://10.0.0.236/trunk@112918 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:39:43 +00:00
darin%netscape.com
bbbf7288b3 fixes bug 114778 "formpost temp files not cleaned up when browser exits"
patch=badami@netscape.com, r=rpotts@netscape.com, sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@112917 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:38:37 +00:00
relyea%netscape.com
517e6d30a2 Fix 2 memory leaks and a UMR.
(keyhand needs to be initialized before we start xor hashing)
Free item and time elements which are transparently allocated for us.


git-svn-id: svn://10.0.0.236/trunk@112916 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:16:03 +00:00
leaf%mozilla.org
5554da00eb update user agent string, bug 119973
git-svn-id: svn://10.0.0.236/trunk@112915 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:13:05 +00:00
leaf%mozilla.org
85a48c5085 update mac version string and copyright year, r=jj bug 119976
git-svn-id: svn://10.0.0.236/trunk@112914 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:10:43 +00:00
cathleen%netscape.com
3fcee4d2a1 remove memcpy function from nsCRT, eliminate 2 new nsCRT::memcpy callers
and fix up alighment problems from previous patch, bug 118135, sr=brenda r=dp


git-svn-id: svn://10.0.0.236/trunk@112913 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:04:45 +00:00
radha%netscape.com
3fc0490294 Fix for bug # 119617. sr=alecf r =walk84
git-svn-id: svn://10.0.0.236/trunk@112912 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-26 00:00:18 +00:00
alecf%netscape.com
b83004a7cb oops, we dont' need that!
git-svn-id: svn://10.0.0.236/trunk@112910 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:53:32 +00:00
pschwartau%netscape.com
8d4455a838 Improving readablity.
git-svn-id: svn://10.0.0.236/trunk@112909 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:52:24 +00:00
alecf%netscape.com
ab9df62333 ignore generated makefile
git-svn-id: svn://10.0.0.236/trunk@112908 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:52:11 +00:00
seawood%netscape.com
7285032e77 Sigh. I keep forgetting about this bug. Call export & install separately to build ldap otherwise it may die on some -j builds.
git-svn-id: svn://10.0.0.236/trunk@112907 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:46:34 +00:00
hwaara%chello.se
4495d874e4 #118275, "Filter name should be selected when opening new filter dialog"
r=naving, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112906 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:46:24 +00:00
rayw%netscape.com
09b092f539 Fixed handling of conflicting type information.
SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@112904 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:38:57 +00:00
jkeiser%netscape.com
aaa7dec32b Make onChange, reflow system in comboboxes/lists better (bug 112241). r=rods, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112903 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:35:44 +00:00
smeredith%netscape.com
d4fb37bbc9 Fixed the description entry bug 11892.
git-svn-id: svn://10.0.0.236/trunk@112902 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:27:57 +00:00
cmanske%netscape.com
c30a6e8fb3 Fixed warnings and exception in Color Picker, b=119772, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112901 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:27:25 +00:00
harishd%netscape.com
c8641ade9a Do not create a new node info with |no name| for userdefined tags. b=113349, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112900 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:25:09 +00:00
mscott%netscape.com
50ec3face0 Bug #108965 --> remove xul emitter from the build
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112899 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:20:21 +00:00
heikki%netscape.com
d3fe0d3a87 Bug 35984, make an undefined entity always a fatal error; report errors while parsing external entities (regression) and a minor optimization in loading external entities. r=harishd, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112898 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:19:23 +00:00
darin%netscape.com
a80ff94504 patch 2 for bug 109179 "replace nsStdEscape with NS_EscapeURL"
r=dougt, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@112896 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 23:08:02 +00:00
gerv%gerv.net
e9fcac9dcb Removing new_comment.cgi - all part of quips.cgi now.
git-svn-id: svn://10.0.0.236/trunk@112894 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:41:37 +00:00
gerv%gerv.net
32d50f0d78 quips.cgi rewrite and templatisation.
git-svn-id: svn://10.0.0.236/trunk@112893 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:40:04 +00:00
morse%netscape.com
a658b8cbc5 bug 120277, removed js warning message, r=law, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112892 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:34:50 +00:00
seawood%netscape.com
3cabb82f4e Fix problem of --enable-boehm not building.
Build nspr & ldap as a separate step at the beginning of the default build or at the beginning of the export phase.


git-svn-id: svn://10.0.0.236/trunk@112891 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:29:51 +00:00
waterson%netscape.com
416a978709 Bug 121833. Fix assertion (and optimize) string-fu in rdf_MakeRelativeRef. Remove unused rdf_MakeRelativeName. r=timeless, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@112890 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:28:55 +00:00
morse%netscape.com
59e7cc2f56 bug 121771, isSorted missing in cookie/password manager outliners, r=law, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112889 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:26:35 +00:00
andreas.otte%debitel.net
42cbc1ef03 second try to fix bug 119071 [Can not ftp files from / on Cobalt web
server], this time working around bad urls generated by the tinderbox
script, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@112888 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:19:29 +00:00
morse%netscape.com
76e2805b59 bug 119474, can't remove password if password-manager is disabled, r=law, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112887 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:17:57 +00:00
mscott%netscape.com
3bb9f6d703 Bug #119344 --> add windows system tray icon for biff
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112886 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:16:01 +00:00
mscott%netscape.com
54a5ee3002 Bug #119344 --> add windows system tray icon for biff
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112885 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:15:11 +00:00
naving%netscape.com
bb2e7870ee 112927 r/sr=sspitzer. add customHeaders pref to mailnews.js and handle this default case to work
git-svn-id: svn://10.0.0.236/trunk@112884 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:13:28 +00:00
andreas.otte%debitel.net
fc5785fcfb fix bug 120959 [Use of ".." in address causes links to relative URL's
to fail] A regression from the rewrite of the urlparser,
r=dougt@netscape.com, sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@112883 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:07:50 +00:00
mscott%netscape.com
9a9af58f44 Bug #43689 --> expose the suggested file name
r=law
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112882 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:05:16 +00:00
bzbarsky%mit.edu
483c6e5766 Make enter in bookmarks manager reuse existing windows like double-click
does.  Bug 121085, r=doron, sr=blake


git-svn-id: svn://10.0.0.236/trunk@112881 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:03:21 +00:00
pinkerton%netscape.com
64fdca15fd changes for cocoa product to build and run and coexist in the tree with carbon. r=cls/sr=hyatt, bug# 111230
git-svn-id: svn://10.0.0.236/trunk@112880 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 22:01:41 +00:00
rbs%maths.uq.edu.au
0d04e79f72 typos
git-svn-id: svn://10.0.0.236/trunk@112879 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 21:57:47 +00:00
jkeiser%netscape.com
b800a9924e Complete bug 112241 backout
git-svn-id: svn://10.0.0.236/trunk@112877 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 20:51:41 +00:00
pschwartau%netscape.com
4a19a9a27b Improving readability.
git-svn-id: svn://10.0.0.236/trunk@112876 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 20:37:37 +00:00
pschwartau%netscape.com
eacce08adf Improving readability.
git-svn-id: svn://10.0.0.236/trunk@112875 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 20:02:31 +00:00
waterson%netscape.com
077c603395 Bug 121888. This should always be built, regardless of whether tests are enabled or not.
git-svn-id: svn://10.0.0.236/trunk@112874 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:59:56 +00:00
jkeiser%netscape.com
07cd518c43 Backing out bug 112241 changes, tree is closed, sorry
git-svn-id: svn://10.0.0.236/trunk@112873 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:54:55 +00:00
wtc%netscape.com
0b5aa9d745 Bugzilla bug 106496: fixed the WINNT version of PR_NewTCPSocketPair to
verify the source of the connection.


git-svn-id: svn://10.0.0.236/trunk@112870 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:16:34 +00:00
relyea%netscape.com
d9934c8ada Change Sha1_hash to a simple XOR hash for building key handles for token
objects.


git-svn-id: svn://10.0.0.236/trunk@112869 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:09:34 +00:00
relyea%netscape.com
863e2140bf Fix key leak in S/Mime.
git-svn-id: svn://10.0.0.236/trunk@112868 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:08:19 +00:00
jkeiser%netscape.com
4b4b5ee0ba Make onChange, reflow system in comboboxes/lists better (bug 112241). r=rods, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112867 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:08:03 +00:00
relyea%netscape.com
61c9862c40 Fix bug 115660. Note that fixing the bugs necessitates fixing the test
cases as well. The test case was depending on the failure to read certs to
detect the failure to read keys. Now certutil returns a failure if no keys
are found. This also means that the FIPS test after the key and cert
has been deleted should expect a failure to list any keys.


git-svn-id: svn://10.0.0.236/trunk@112866 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 19:03:17 +00:00
wtc%netscape.com
8d44de2cd4 Bugzilla bug 121872: define _PR_MD_LISTEN as a function so that we can
set error codes if listen() fails.
Modified files: _win95.h w95sock.c


git-svn-id: svn://10.0.0.236/trunk@112865 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 18:45:16 +00:00
kaie%netscape.com
b68b7fbe9c b=119810 javascript strict warnings certpicker.js
r=ssaux sr=jag


git-svn-id: svn://10.0.0.236/trunk@112863 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 15:39:57 +00:00
ccarlen%netscape.com
86117cc1b5 Bug 121431 - LoadDefaultProfileDir() returns an error when it shouldn't. Returning this error, which isn't really an error, aborts startup when creating a new profile in turbo mode. r=bnesse@netscape.com/sr=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112862 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 15:32:10 +00:00
kaie%netscape.com
a291c1cf5e b=121570 Error code namespace needed for security component
r=dougt sr=jband


git-svn-id: svn://10.0.0.236/trunk@112861 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 15:17:25 +00:00
leaf%mozilla.org
881084dd5d Automated update
git-svn-id: svn://10.0.0.236/trunk@112860 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 15:12:13 +00:00
jdunn%netscape.com
d63561e2e5 Change certain AIX ifdefs to AIX_XLC_364 since these ifdefs are only
needed for AIX's xlC 3.6.4 compiler.  Add test to configure to check
compiler version.  NOTE: also adding hpux and aix check for keyboardutils.
r=cls@seawood.org
# 119179


git-svn-id: svn://10.0.0.236/trunk@112859 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 15:07:38 +00:00
kaie%netscape.com
d9ff601955 b=121289 Make Key Escrow warning dialog work
r=rangansen sr=kin


git-svn-id: svn://10.0.0.236/trunk@112858 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 14:58:31 +00:00
rods%netscape.com
fb493821d3 Adding new Frame to clip content area of page for Printing and PrintPreview
Bug 112698 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112856 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 14:30:14 +00:00
seawood%netscape.com
151e6f8811 Fix typo in .cc rule
git-svn-id: svn://10.0.0.236/trunk@112855 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 11:43:09 +00:00
darin%netscape.com
111b45c759 fixing compiler warning of uninitialized variable resulting from my checkin
for bug 121441


git-svn-id: svn://10.0.0.236/trunk@112854 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:47:24 +00:00
glazman%netscape.com
0c8e360445 move CSS in Composer stuff from nsEditorShell to nsHTMLEditor; b=121081, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112853 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:20:11 +00:00
glazman%netscape.com
2a28453859 remove CSSisms from nsEditor; b=121092, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112852 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 10:16:52 +00:00
glazman%netscape.com
cdabdbafcf Pref should have 'Cascading Style Sheets' in the groupbox label (patch by caillon@returnzero.com); b=121125, r=glazman, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112851 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 09:57:48 +00:00
glazman%netscape.com
0689972d2f Text Color well reverts to black when typing; b=112966, r/sr=kin
git-svn-id: svn://10.0.0.236/trunk@112850 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 09:53:58 +00:00
seawood%netscape.com
7226965491 Add build_all_dep & build_all_depend targets which are aliases for the alldep target. Made sure that alldep was passed down to the real Makefiles.
git-svn-id: svn://10.0.0.236/trunk@112849 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 08:32:27 +00:00
rbs%maths.uq.edu.au
eb3171a2b2 Remove leftover from debugging
git-svn-id: svn://10.0.0.236/trunk@112848 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 07:34:49 +00:00
rbs%maths.uq.edu.au
f498083779 Improvements to <mtable> to fix bug 39411. Here are the additional hooks needed in the frame construction code, (I also left some aliases that I can change later in nsMathMLParts.h), bug 120487, r=karnaze, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112847 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 07:14:07 +00:00
rbs%maths.uq.edu.au
3e1abbf64e Improvements to <mtable>
git-svn-id: svn://10.0.0.236/trunk@112846 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 07:03:43 +00:00
rbs%maths.uq.edu.au
d2bc946058 In case of markup errors, provide a more discoverable feedback to users. Drop in the other functions from the nsIFrame APIs that steve.swanson@mackichan.com needs to consolidate his Dynamic JavaScripted MathML editor
git-svn-id: svn://10.0.0.236/trunk@112845 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 06:48:30 +00:00
jst%netscape.com
6b1260a9e6 Fixing bug 118933. Speeding up the id and name hash tables in nsHTMLDocument by changing them over from nsHashtable/nsStirngKey to pldhash. Also combining the hashes to optimize performance and memory useage. r=heikki@netscape.com, sr=jband@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112844 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 06:37:35 +00:00
rbs%maths.uq.edu.au
6fdf561c89 Fix MathML bug 121037. Background-color is not showing up in stretchy chars that use additional leaf style contexts. More reliable recovery from the background revamps in bug 116161
git-svn-id: svn://10.0.0.236/trunk@112843 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 06:08:03 +00:00
rbs%maths.uq.edu.au
2c9a8320c7 Updated comments to add a reference to bug 69325 which details the 8 possible cases that may arise depending on whether displaystyle, largeop, stretchy are true or false
git-svn-id: svn://10.0.0.236/trunk@112842 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 06:02:52 +00:00
rbs%maths.uq.edu.au
37b8b26978 Fix MathML bug 118313 - GetBoundingMetrics is inaccurate in the face of whitespace. Avoid a troublesome whitespace glyph that has zero width
git-svn-id: svn://10.0.0.236/trunk@112841 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:57:27 +00:00
curt%netscape.com
7774164c65 Adds readme and license files. (Bug #Bug #15901).
git-svn-id: svn://10.0.0.236/trunk@112840 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:47:09 +00:00
curt%netscape.com
17f6c7d114 Addes readme and license file (Bug #Bug #15901).
git-svn-id: svn://10.0.0.236/trunk@112839 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:44:21 +00:00
curt%netscape.com
407d30910a Adds readme and license file to install. (Bug #Bug #15901).
git-svn-id: svn://10.0.0.236/trunk@112838 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:42:47 +00:00
curt%netscape.com
129ef25466 Placeholder readme file.
git-svn-id: svn://10.0.0.236/trunk@112837 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:39:27 +00:00
curt%netscape.com
7c38cf4036 For the mozilla stub installer xpi.
git-svn-id: svn://10.0.0.236/trunk@112836 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:30:11 +00:00
mscott%netscape.com
b3c70b6b02 Bug #119344 --> add windows system tray icon for biff
newmail.ico is a TEMPORARY place holder icon for the biff icon in the status bar.
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112835 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:27:50 +00:00
curt%netscape.com
c63a6afb0b Wraps the stub installer into a xpi.
git-svn-id: svn://10.0.0.236/trunk@112834 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:27:06 +00:00
mscott%netscape.com
a823967547 Bug #119344 --> add ability to deep count new mail messages
r=bhuvan
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112833 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:19:37 +00:00
mscott%netscape.com
7fe527d2ea Bug #108965 --> remove xul emitter from the build
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112832 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 05:18:17 +00:00
pschwartau%netscape.com
e11e57825f Skip another SpiderMonkey test generating infinite recursion and catching it as an error.
git-svn-id: svn://10.0.0.236/trunk@112831 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:39:21 +00:00
seawood%netscape.com
a9bcb311b4 Fixing non-gtk build bustage.
git-svn-id: svn://10.0.0.236/trunk@112830 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:33:27 +00:00
wtc%netscape.com
bb624d8ea8 Put the warning printfs inside #ifdef DEBUG.
git-svn-id: svn://10.0.0.236/trunk@112829 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:33:20 +00:00
rods%netscape.com
79189d5997 Adding new Frame to clip content area of page for Printing and PrintPreview
Bug 112698 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112828 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:32:19 +00:00
bryner%netscape.com
25843bce90 Set -moz-user-select: none so that XBL select boxes don't get text selection applied to them. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@112827 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:29:03 +00:00
seawood%netscape.com
ec756d5c48 Fix "static" build support for win32 gmake builds.
Bug #58981 r=bryner


git-svn-id: svn://10.0.0.236/trunk@112825 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:20:51 +00:00
ian%hixie.ch
8e82e0ec2a Fix a minor typo in some SQL code which was causing an error during the creation of the user table.
git-svn-id: svn://10.0.0.236/trunk@112824 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:18:15 +00:00
pschwartau%netscape.com
c14bfa304b Added three more cases to the test.
git-svn-id: svn://10.0.0.236/trunk@112823 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:17:23 +00:00
ian%hixie.ch
4612fcaf55 Moved the DBI module over to thew new more generic settings getting/saving API and removed the old DBI-specific one. Fixed an assert() call to check for the values being defined and not non-zero/non-blank. Fixed the password field to allow blank values (by making a blank value the default). Also fixed the calls to getArgument to not ever pass an undefined value as the default.
git-svn-id: svn://10.0.0.236/trunk@112822 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:17:05 +00:00
ian%hixie.ch
26b7d82370 More things that need doing on the long (and not so long) run.
git-svn-id: svn://10.0.0.236/trunk@112821 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:12:26 +00:00
mkaply%us.ibm.com
6d101e33db OS/2 and AIX bustage
git-svn-id: svn://10.0.0.236/trunk@112820 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:09:23 +00:00
pschwartau%netscape.com
a321a29d25 Initial add. Regression test for bug 121658.
git-svn-id: svn://10.0.0.236/trunk@112819 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 03:04:18 +00:00
dcone%netscape.com
8dd83388c5 bug 112698. For rods checkin. r=dcone sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112818 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:55:51 +00:00
rods%netscape.com
3f5c6877d0 Get whther we are printing silent from the PrintSettings
76456 r=rods sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112817 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:47:01 +00:00
rods%netscape.com
735a7fb99a Removed "free memory read" and change strcpy to strdup
and did some general cleanup and changed how the default printer name was being obtained.
118086 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112816 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:40:19 +00:00
darin%netscape.com
d46bc6687b fixes bug 121441 "unable to publish via http PUT (nsStorageStream should
support nsISeekableStream)"
r=brade, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@112813 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:13:00 +00:00
mscott%netscape.com
adf7bd3193 Bug #119344 --> set the new message count based on the # of headers downloaded
r=racham
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112812 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:10:51 +00:00
rods%netscape.com
6b7c1e4878 Adding new Frame to clip content area of page for Printing and PrintPreview
Bug 112698 r=dcone sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112811 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:07:03 +00:00
stephend%netscape.com
fa658b225c bugs 115673 and 110551 news icons for downloaded msgs and new news msgs with attachments r=andreww sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112810 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 02:02:02 +00:00
hyatt%netscape.com
3401c31fe2 Fix type bustage in cocoa view. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@112809 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:59:11 +00:00
naving%netscape.com
f6eb7e2e8c 120349 r=cavin sr=mscott Add a handy accessor for getting parentMsgFolder
git-svn-id: svn://10.0.0.236/trunk@112808 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:48:07 +00:00
sspitzer%netscape.com
d733571b2e fix for #121709. Add to Address Book, enter First Name and Display Name overwritten.
r=racham, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112807 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:42:32 +00:00
jaggernaut%netscape.com
71851389c0 Bug 121606: H and W attributes are reversed in the new Page Info -> Media. Patch by Christopher Aillon <caillon@returnzero.com>, r=Daniel Brooks <db48x@yahoo.com>, sr=jag
git-svn-id: svn://10.0.0.236/trunk@112806 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:31:35 +00:00
seawood%netscape.com
f8f41c13ab Fixing SVG static build bustage
git-svn-id: svn://10.0.0.236/trunk@112805 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:29:35 +00:00
waterson%netscape.com
3428fe537a Add EmbedComponents.cpp to the GARBAGE.
git-svn-id: svn://10.0.0.236/trunk@112804 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:23:41 +00:00
waterson%netscape.com
703276d255 Bug 108259. Build TestGtkEmbed and friends statically when doing a static build. r=cls, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@112803 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:18:55 +00:00
alecf%netscape.com
14a231b9f9 oops didn't mean to check this in (shouldn't cause bustage, but I don't know if it will even work without the other changes.. if it does, then nsCOMPtr<> is busted!)
git-svn-id: svn://10.0.0.236/trunk@112802 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:13:09 +00:00
dsirnapalli%netscape.com
4484c7a524 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@112801 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:11:03 +00:00
dsirnapalli%netscape.com
9bfbd6133e Test case to test accessibility of html element radio button.
git-svn-id: svn://10.0.0.236/trunk@112800 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:07:34 +00:00
dsirnapalli%netscape.com
b618eafee2 Test case to test accessibility of html element radio button when checked.
git-svn-id: svn://10.0.0.236/trunk@112799 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:06:52 +00:00
dsirnapalli%netscape.com
a61bc8ad29 Html page containing html elements to test for accessibility.
git-svn-id: svn://10.0.0.236/trunk@112798 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:05:47 +00:00
dsirnapalli%netscape.com
7ba65ccf92 test case to test accessibility of html element check box.
git-svn-id: svn://10.0.0.236/trunk@112797 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:03:35 +00:00
peterlubczynski%netscape.com
5a1f925640 For embedding, always consume context menu clicks for applets, embeds, and objects, bug 118789 r=av sr=alecf
git-svn-id: svn://10.0.0.236/trunk@112796 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:02:58 +00:00
dsirnapalli%netscape.com
1c853ca32d Test case to test accessibility of html element checkbox when it is checked.
git-svn-id: svn://10.0.0.236/trunk@112795 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:02:52 +00:00
dsirnapalli%netscape.com
fcc0b43f46 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@112794 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:01:19 +00:00
depstein%netscape.com
092538c43e changed PurgeHistory() text to indicate request for number of removed items.
git-svn-id: svn://10.0.0.236/trunk@112793 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 01:00:26 +00:00
hyatt%netscape.com
46b8706d18 Fix cocoa bustage in makefile.in, r=cls, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112791 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:53:38 +00:00
brendan%mozilla.org
0f5414ace6 Make 'too much recursion' errors be exceptions #if JS_HASH_ERROR_EXCEPTIONS (121658, r=rogerl, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@112790 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:49:52 +00:00
brendan%mozilla.org
c403c777cd Checking in patch from Daniel Bratell <bratell@lysator.liu.se>, r=khanson, sr=me.
git-svn-id: svn://10.0.0.236/trunk@112786 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:47:11 +00:00
alecf%netscape.com
fd6d75b30f fix for bug 112209 - remove last consumers of nsStr:: routines
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112785 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:26:44 +00:00
waterson%netscape.com
366cb45a7b Address 64-bit safety issue brought up by brendan.
git-svn-id: svn://10.0.0.236/trunk@112783 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:19:54 +00:00
heikki%netscape.com
537f41e4d9 Bug 44458, enable XHTML entities when an XHTML doctype with public id is present in an XML document. r=rbs@maths.uq.edu.au&adamlock, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112782 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:08:20 +00:00
heikki%netscape.com
56fb7f80ee Bug 44458, enable XHTML entities when an XHTML doctype with public id is present in an XML document. r=rbs@maths.uq.edu.au, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112779 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:07:45 +00:00
mkaply%us.ibm.com
032c515eb5 #116705
r=pedemont, sr=blizzard
OS/2 only - use FM_INVERT for drawing inverted rect


git-svn-id: svn://10.0.0.236/trunk@112777 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:02:40 +00:00
pavlov%netscape.com
3c8fe72f77 fix for bug 84523 from nivedita@netscape.com. r=pavlov sr=tor@acm.org
git-svn-id: svn://10.0.0.236/trunk@112776 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-25 00:02:20 +00:00
pavlov%netscape.com
c1ba00b8b7 making the gif decoder hand back errors properly and doing some general cleanup. bug 100470. r=bryner sr=mscott
git-svn-id: svn://10.0.0.236/trunk@112775 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:59:58 +00:00
waterson%netscape.com
f7927b5818 Bug 121712. Fix inverted logic from bz's string cleanup. r=tingley@sundell.net
git-svn-id: svn://10.0.0.236/trunk@112774 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:58:26 +00:00
ccarlen%netscape.com
7f0916f049 Bug 116306 - switching themes by switching profiles doesn't switch theme. r=hyatt@netscape.com/sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112773 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:54:14 +00:00
alecf%netscape.com
496db28aa1 fix for bug 121627 - UTF8ConverterStream should not allocate - now that we've exposed ConvertUTF8toUCS2,
use it to do a conversion into the existing unichar buffer
r=dbaron, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112772 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:53:53 +00:00
sfraser%netscape.com
cfef97219a Fix bug 119329 -- change NSPR project to use tree-wide prefix files, for compatibility with other libraries. Also removing obsolete files, and adding a CodeWarrior Pro 7-format XML project file. r=pinkerton, r/a=wtc
git-svn-id: svn://10.0.0.236/trunk@112770 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:47:22 +00:00
alecf%netscape.com
ce5f992cb4 bug 108962 - shrink nsStr by 4 bytes by packing mCharSize and mOwnsBuffer into bits of mCapacity
r=dbaron, sr=jst, with an almost-sr=jag


git-svn-id: svn://10.0.0.236/trunk@112769 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:46:56 +00:00
danm%netscape.com
9037da04af in Destroy(), call appshellservice->Unregister a little earlier. bug 119549 r=ben,hyatt,law
git-svn-id: svn://10.0.0.236/trunk@112767 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:39:00 +00:00
rchen%netscape.com
0a59ba4156 Fix for bug 119279. Force mailnews to reload the page after user turns on the auto detector. r=nhotta,sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@112766 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:32:42 +00:00
hyatt%netscape.com
36b246735d Remove debug hyatt code. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112765 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:17:14 +00:00
hyatt%netscape.com
4de658d35d More objc fixes to remove id as parameter. r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112764 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:14:20 +00:00
waterson%netscape.com
1233ea42cf Bug 108259. Build TestGtkEmbed and friends statically when doing a static build. r=cls, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@112763 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:09:31 +00:00
waterson%netscape.com
d489129b30 Be sure to add `.gnu.linkonce.t' objects in the order. Fix warnings.
git-svn-id: svn://10.0.0.236/trunk@112762 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:07:46 +00:00
locka%iol.ie
b3fad052c6 Fix to persist object to add state notifications when saving pages containing no saveable links. b=119496 r=brade@netscape.com sr=hyatt@netscape.com a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112761 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:05:51 +00:00
hyatt%netscape.com
f876797bfb Fix string fragments to compile in Objective C++ (for Cocoa widgets). r=danm, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112760 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:05:18 +00:00
waterson%netscape.com
9342994eff Bug 116328. Add nsIRDFBlob sorting to rdfliner. r=varga@utcru.sk, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112758 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:03:01 +00:00
waterson%netscape.com
75c9360046 Bug 105068. Bit-pack mAttributes and mLazyState into a single field in nsXULElement::Slots. r=shaver, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112756 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 23:02:03 +00:00
mscott%netscape.com
085a7043eb Use a try / catch clause to avoid a JS error for some timeline code.
git-svn-id: svn://10.0.0.236/trunk@112755 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:59:49 +00:00
alecf%netscape.com
24029f9cd3 attempt to fix OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@112754 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:55:41 +00:00
despotdaemon%netscape.com
a557d8e5b1 Pseudo-automatic update of changes made by khanson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112753 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:48:04 +00:00
blythe%netscape.com
d9d306a1a3 NOT part of normal build.
Fix a small performance problem intruduced yesterday.


git-svn-id: svn://10.0.0.236/trunk@112752 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:41:08 +00:00
pavlov%netscape.com
391f749a3a make imagelib listen to the memory-pressure observer. bug #94454. patch from nivedita@netscape.com. r=pavlov sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112751 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:37:59 +00:00
waterson%netscape.com
0ba428ed90 Bug 99691. nsBoxToBlockAdaptor shouldn't be creating space managers; instead, fix XUL <label> and <description> elements to create area frames. r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112749 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:34:25 +00:00
heikki%netscape.com
a506dc6f89 Bug 120615, XmlRpc does HTTP PUT when it should do POST. Patch from axel@pike.org. r=bbaetz@student.usyd.edu.au, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112748 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:31:28 +00:00
danm%netscape.com
a9a981e9b3 center on parent window falls back to centering on the screen if the parent window is being torn down. (crash) bug 120430 r=hyatt,saari
git-svn-id: svn://10.0.0.236/trunk@112747 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:30:39 +00:00
despotdaemon%netscape.com
886ac3174f Pseudo-automatic update of changes made by bishakhabanerjee@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112746 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:21:04 +00:00
depstein%netscape.com
9a4b657865 adding nsIObserServ.cpp & .h
git-svn-id: svn://10.0.0.236/trunk@112745 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:20:02 +00:00
depstein%netscape.com
3ecfa8deb8 added some code to the listeners
git-svn-id: svn://10.0.0.236/trunk@112744 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:18:53 +00:00
harishd%netscape.com
753b76b639 Removed mDoctypeText from nsExpatDriver. This |could| improve Ts/Txul time slightly. b=102345, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112743 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:15:58 +00:00
cltbld%netscape.com
4615f53943 updating for mozilla.0.9.8
git-svn-id: svn://10.0.0.236/trunk@112742 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:15:06 +00:00
cltbld%netscape.com
8d07b17898 updating for mozilla.0.9.8
git-svn-id: svn://10.0.0.236/trunk@112740 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:10:33 +00:00
cmanske%netscape.com
869cc9e60a Update on insert Form widgets dialogs, b=45495, fix by neil, r=cmanske, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112739 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:01:54 +00:00
cmanske%netscape.com
fa14118009 Update on insert Form widgets dialogs, b=45495, fixes by neil/cmanske, r=neil/cmanske, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112738 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 22:01:10 +00:00
cmanske%netscape.com
d357beef0d Fixed JS warning in table dialog, b=120264, r=caillon, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112737 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:55:20 +00:00
naving%netscape.com
cb5d5e55cb 119515 r=bienvenu sr=mscott. fix local move/copy messages failures
git-svn-id: svn://10.0.0.236/trunk@112736 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:49:15 +00:00
waterson%netscape.com
5b39ccda93 Fix static build bustage.
git-svn-id: svn://10.0.0.236/trunk@112735 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:45:46 +00:00
mitchf%netscape.com
4d820442d6 version tagging cfg file, per bug 11897
git-svn-id: svn://10.0.0.236/trunk@112734 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:34:58 +00:00
relyea%netscape.com
cbe61129a7 Too agressive on fixing leaks;). This one isn't a leak.
bob


git-svn-id: svn://10.0.0.236/trunk@112733 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:33:51 +00:00
waterson%netscape.com
7b6cc766f1 Bug 86755. Get rid of nsIRDFContentModelBuilder interface, move methods to nsIXULTemplateBuilder; rename |SetRootContent| to |init|. nsXULOutlinerBuilder now implements |init|, allowing us to initialize it with a database, so that we don't have to wait around until frames get created. r=varga@utcru.sc, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112732 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:30:22 +00:00
bzbarsky%mit.edu
ed5639cb0b Make computed border-style and float be "none" by default. Bugs 120982
and 120965, patch by Christopher Aillon <caillon@returnzero.com>,
r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112730 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:19:21 +00:00
smeredith%netscape.com
ca4dafd62a Fixed bug 11883--added a "manage" checkbox to the pref editor dialog.
git-svn-id: svn://10.0.0.236/trunk@112727 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:08:29 +00:00
nhotta%netscape.com
c55fe637dd Fixed the problem of the default chaset was overwritten even when the message has no chaset,
this fixes the reply quoting problem of no MIME messages,
bug 118740, r=ducarroz, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@112726 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 21:07:33 +00:00
despotdaemon%netscape.com
640ea2ee20 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@112724 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 20:53:53 +00:00
despotdaemon%netscape.com
1767321f4d Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@112723 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 20:50:20 +00:00
nboyd%atg.com
b2a77430fe UPdate implementation version
git-svn-id: svn://10.0.0.236/trunk@112721 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 20:17:05 +00:00
nboyd%atg.com
04382ca085 Fix out-of-date javadoc.
git-svn-id: svn://10.0.0.236/trunk@112720 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:57:52 +00:00
nboyd%atg.com
2c5197ddf5 Fix the following problem:
Thanks!

As promised, I tried the debugger this afternoon and I had a problem with the '-f' option.
  We use -f to run a standard "startup" script before executing the "main" script.  For
example, we run the Rhino shell with the options "-f startup.js main.js".

When running the debugger's shell with the same options the debugger exits after the
startup.js completes; i.e., I can single step starting from startup.js but the debugger
exits at the end of startup.js without letting me single step into main.js.  This worked
fine in the 1.5R2 release of Rhino and the debugger.

I have not had a chance to look into the problem closely, but a cursory look at the code
suggests (to me) that the problem can be in either the debugger or the shell (since the
debugger basically runs the shell after creating the right "hooks".)  Of course, it could
also be a problem with my embedding.

So ... my question is, has anyone tried single stepping when the options to the debugger
include a '-f' option.  If so, I'll continue to look for a problem in my embedding.

Any suggestions would be appreciated.

Thanks,

dave


git-svn-id: svn://10.0.0.236/trunk@112719 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:57:01 +00:00
ben%netscape.com
094d5acc46 checking back in code by andreww accidentally backed out with my changes last night... see 1.43 comment on this file for details.
git-svn-id: svn://10.0.0.236/trunk@112718 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:52:47 +00:00
rogerl%netscape.com
195936b401 Fix bug #104375. Bug in String.replace() with $n where n > # parens.
r=khanson, sr=brendan.


git-svn-id: svn://10.0.0.236/trunk@112716 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:27:21 +00:00
wtc%netscape.com
8b97343194 The current zone allocator code does not compile under DCE threads on HP-UX
10.x.


git-svn-id: svn://10.0.0.236/trunk@112715 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:20:47 +00:00
alecf%netscape.com
0885d07bf5 fix for bug 114450 - be explicit about string comparison w.r.t. character size - no more hand-rolled vtables!
sr=jag, r=dbaron


git-svn-id: svn://10.0.0.236/trunk@112713 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:14:18 +00:00
jkeiser%netscape.com
5fa8540a5e Submit name/value pair for images that have value set (bug 57795, r=alexsavulov, sr=jst)
git-svn-id: svn://10.0.0.236/trunk@112712 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:08:57 +00:00
jkeiser%netscape.com
3c0c8fd84c Move checkbox state to content (bug 108307). r=rods, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112711 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 19:04:55 +00:00
oeschger%netscape.com
e7549641f1 b=93553, sr=alecf, r=morse, r=oeschger, author=cotter, updating the UI to reflect the more general password config here (web passwords->passwords)
git-svn-id: svn://10.0.0.236/trunk@112710 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:58:40 +00:00
bzbarsky%mit.edu
2c3103bd6c Correct case of some includes so we build on UFS. Bug 108300, patch by
leaf@mozilla.org, r=beard, sr=darin


git-svn-id: svn://10.0.0.236/trunk@112709 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:49:11 +00:00
pinkerton%netscape.com
7c1dfda2e0 use progid for scriptable region. r=ducarroz/sr=mscott. bug# 81996
git-svn-id: svn://10.0.0.236/trunk@112708 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:47:46 +00:00
blythe%netscape.com
bc94a17a37 Fix bug 120422
r=dbaron,rs=hyatt
Do not delete ref counted object.


git-svn-id: svn://10.0.0.236/trunk@112706 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:28:25 +00:00
nicolson%netscape.com
6cab6166f9 use NSS 3.4.
git-svn-id: svn://10.0.0.236/trunk@112705 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:21:57 +00:00
wtc%netscape.com
a925976555 Bugzilla bug 97485: fixed a few bugs in the zone allocator. Print warning
messages on memory blocks from ordinary malloc.  Initialize the zone
allocator first during NSPR initialization.
Modified files: prmem.c prinit.c


git-svn-id: svn://10.0.0.236/trunk@112704 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 18:11:30 +00:00
wtc%netscape.com
b489fa89b9 Memory allocated by strdup() should be freed by free(), not PR_Free().
git-svn-id: svn://10.0.0.236/trunk@112703 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 17:46:37 +00:00
rayw%netscape.com
1556a1516c Added code to carefully follow the XMLSchema info when encoding and decoding
xpconnect objects, rejecting errors, and making sure that the child elements
appear in the correct order.

SOAP is not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@112702 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 17:32:04 +00:00
ian.mcgreer%sun.com
d66ce598c6 fix aix issues
git-svn-id: svn://10.0.0.236/trunk@112701 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:45:55 +00:00
cmanske%netscape.com
9a54400b16 Use radio buttons for 'Alt text' in Image dialog, b=114531, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112700 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:41:20 +00:00
cmanske%netscape.com
362293bf87 Support Edit Frame in Composer, simplify Save Frame for browser, and move editor methods in editorApplicationOverlay.js, b=89975, r=hewitt, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112699 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:36:36 +00:00
pinkerton%netscape.com
8893f6e0f4 add tab theme support. r=sdagley/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@112698 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:16:56 +00:00
leaf%mozilla.org
6119be076a Automated update
git-svn-id: svn://10.0.0.236/trunk@112697 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:12:13 +00:00
pinkerton%netscape.com
435ba291f1 allow --enable-default-toolkit=cocoa in makefiles and default toolkit can now be overridden on platform that don't use X11. r=cls/sr=hyatt. bug#121496
git-svn-id: svn://10.0.0.236/trunk@112696 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 15:11:18 +00:00
timeless%mac.com
a01e477a2f Bug 120766ÿ"radio-check" should not inherit="checked"
patch by neil@parkwaycc.co.uk r=jag sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112695 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:46:11 +00:00
peterv%netscape.com
3ea691c23a Removing duplicate entries to avoid the "Missing files" warning in CodeWarrior. Don't know how this file got mangled so badly.
git-svn-id: svn://10.0.0.236/trunk@112694 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:39:40 +00:00
timeless%mac.com
54fd1edf2b Bug 117119ÿBMP and ICO decoders should use ReadSegments, not Read
patch by cbiesinger@web.de r=pavlov sr=tor


git-svn-id: svn://10.0.0.236/trunk@112693 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:36:40 +00:00
peterv%netscape.com
e009932107 Correct error in patch for bug 96647. Transformiix standalone only, doesn't affect mozilla build. (Last one, I promise)
git-svn-id: svn://10.0.0.236/trunk@112692 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:18:26 +00:00
peterv%netscape.com
bd0f50ceef Correct error in patch for bug 96647. Transformiix standalone only, doesn't affect mozilla build.
git-svn-id: svn://10.0.0.236/trunk@112691 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:14:55 +00:00
nboyd%atg.com
33e7eec054 Add new skip.
git-svn-id: svn://10.0.0.236/trunk@112690 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:10:35 +00:00
peterv%netscape.com
f0175470e3 Correct error in patch for bug 96647. Transformiix standalone only, doesn't affect mozilla build.
git-svn-id: svn://10.0.0.236/trunk@112689 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 14:03:36 +00:00
peterv%netscape.com
627640cc69 Fix for bug 96647 (Change the way output is constructed in Transformiix). r=sicking, Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112688 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 13:38:51 +00:00
rginda%netscape.com
630c49474c bug 121171, CallEventHandler ignores mScriptsEnabled, r=brendan, sr=jst
do nothing, but return a positive result from nsJSContext::CallEventHandler if scripts are disabled on this context.


git-svn-id: svn://10.0.0.236/trunk@112687 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 13:25:46 +00:00
rginda%netscape.com
4f7eb8c3f2 bug 119865, crash exiting venkman, r=peterv, sr=brendan
use nsCOMPtr to avoid releasing a final reference via jsdScript::Invalidate()


git-svn-id: svn://10.0.0.236/trunk@112686 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 13:17:04 +00:00
rginda%netscape.com
6f439e9394 - venkman only -
Large landing of new Venkman command structure, also fixes...
Bug 120988 Generalized command manager for Venkman
Bug 103419 hitting a breakpoint should focus debugger
Bug 119867 Should not be possible to hide source code
Bug 118923 Venkman's outliners sometimes don't repaint twisty
Bug 116098 Would be nice with a contextmenu in the functions-pane


git-svn-id: svn://10.0.0.236/trunk@112685 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 12:46:47 +00:00
rayw%netscape.com
498166895d Cleaned up handling of structs into its own encoder / decoder class so
that it will be easier to add all the schema type checking there.  Also
made this handler QI to nsIPropertyBag instead of expecting it to be the
type of the variant.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112683 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 11:26:35 +00:00
jst%netscape.com
3a4ce5be48 Fixing bug 121485. Un-nsAutoString:ifying nsXULContentSink::NormalizeAttributeString(), ::PushNameSpacesFrom(), and ::ParseTag() in favor of new string iterators n' other neat features. r=nisheeth@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112682 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 10:23:04 +00:00
jaggernaut%netscape.com
287a4f3e20 Bug 46200: remove dead code from nsBrowserInstance. r=alecf, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112681 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 10:11:01 +00:00
hwaara%chello.se
6483967b67 #119566, "Default Browser" dialog box whenever starting Mozilla"
r=hwaara, sr=alecf

Patch by Darren Stone <astrosmash@home.com>


git-svn-id: svn://10.0.0.236/trunk@112680 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:33:17 +00:00
darin%netscape.com
7e7e2926f3 fixes mach-o bustage r=rjc,cls
git-svn-id: svn://10.0.0.236/trunk@112679 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:24:01 +00:00
jst%netscape.com
b9772d48fe Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112678 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:20:51 +00:00
jst%netscape.com
7af4c8d1f2 Fixing bug 120504. Make QI's on DOM elements only call into the binding manager only if the element itself doesn't implement the interface that the element is being QI'ed to. r=hyatt@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112677 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 09:17:00 +00:00
jj%netscape.com
0171750d26 #121494: missing define at the top of the file
git-svn-id: svn://10.0.0.236/trunk@112676 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 08:30:18 +00:00
dp%netscape.com
e2ecc272e6 Adding nsRecyclingAllocator.h for mac export
git-svn-id: svn://10.0.0.236/trunk@112675 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 08:06:45 +00:00
bzbarsky%mit.edu
22790ca5e4 Make "shift" always toggle the sense of the
"browser.tabs.loadInBackground" pref.  Bug 113072, patch by Christopher
Aillon <caillon@returnzero.com>, r=doron, sr=jag


git-svn-id: svn://10.0.0.236/trunk@112674 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:51:58 +00:00
bzbarsky%mit.edu
e51eb90700 Landing Daniel Brooks' <db48x@yahoo.com> page info rewrite. Tracking
bug is bug 52730, fixes bugs 53503, 53641, 55713, 60428, 68823, 74530,
74760, 76926, 77408, 81328, 85905, 88537, 91173, 94146, 96994, 97479,
110973, 110981, 112297, 117027. r=fabian,hwaara,bzbarsky,gerv,ksosez.
sr=jag,hewitt.


git-svn-id: svn://10.0.0.236/trunk@112673 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:27:59 +00:00
ben%netscape.com
801a386231 backing out earlier changes to fix 121054, to address pageload spike
git-svn-id: svn://10.0.0.236/trunk@112672 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:23:21 +00:00
dp%netscape.com
417d53e7e7 Fixing spelling mistake nsRecylingAllocator -> nsRecyclingAllocator
git-svn-id: svn://10.0.0.236/trunk@112671 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:16:34 +00:00
mcafee%netscape.com
15d52431ae I'm sorry Dave, I'm afraid I can't allow this checkin. Backing out rjc's change from earlier (121546). r=jrgm
git-svn-id: svn://10.0.0.236/trunk@112670 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:16:01 +00:00
dp%netscape.com
24dfb34dae bug 118061 Enabling nsRecyclingAllocator r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112669 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 07:00:07 +00:00
dp%netscape.com
447c430e80 bug 118061 Enabling nsRecyclingAllocator r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112668 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:48:58 +00:00
dp%netscape.com
09f8fb49b8 bug 118061 First version of nsRecyclingAllocator r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112667 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:41:01 +00:00
dp%netscape.com
826c21e7bc bug 118061 Adding NS_NewTimer r=dveditz sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112666 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:37:38 +00:00
jst%netscape.com
e262b0cb89 Fixing bug 120901. Eliminating unnecessary QI call in XPCWrappedNative::GetNative(). r=dbradley@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112665 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 06:03:25 +00:00
jst%netscape.com
786b4fe53a Fixing bug 120718. Making XPCReadableJSStringWrapper not allocate non-shared buffer handles, this caused a malloc to happen for every XPCReadableJSStringWrapper that was accessed in mozilla, ~400 allocations at startup. r=dbaron@fas.harvard.edu sr=jaggernaut@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112663 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:59:41 +00:00
bzbarsky%mit.edu
56f000a21d Human-readable tooltips for nodetype in inspector. Bug 113793, patch by
Christopher Aillon <caillon@returnzero.com>, r=bzbarsky, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112661 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:33:46 +00:00
bzbarsky%mit.edu
4dc37cd77e Update the "get new themes" link to point to XULPlanet, which actually
has themes.  Bug 120985, patch by Christopher Aillon
<caillon@returnzero.com>, r=hixie, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112660 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:27:55 +00:00
bratell%lysator.liu.se
0279313b6e Bug 120990 - make conversion from integer to string faster by not using sprintf. r=khanson, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112659 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:24:39 +00:00
aaronl%netscape.com
fbd4080946 Bug 119301. Implement nsIDOMXULMenuListElement on autocomplete widget. r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112658 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:16:31 +00:00
bzbarsky%mit.edu
a040e4e057 Make content-disposition parsing more forgiving. Fixes bug 121509 and a
few existing evang bugs.  r=law, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112657 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:14:49 +00:00
aaronl%netscape.com
8ba45f52db Bug 120813. Active Accessibility: fix bounds of root frame. The root frame's x,y position shouldn't have the current scroll position added to it, unlike it's child elements. r=jgaunt, rs=waterson
git-svn-id: svn://10.0.0.236/trunk@112656 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:12:29 +00:00
bzbarsky%mit.edu
2edd5ea947 Fix scrolling to element in inspector to scroll only when really
needed.  Bug 120947, r=doron, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112655 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 05:11:20 +00:00
lordpixel%mac.com
d722d45aa6 Fix bustage. bug # is 119118
git-svn-id: svn://10.0.0.236/trunk@112654 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:33:01 +00:00
hewitt%netscape.com
336019e38c 120848 - listbox box object component missing, r=jgaunt, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@112653 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:26:28 +00:00
hewitt%netscape.com
0c9f2ed0d1 120609 - Autocomplete drop down list has white vertical borders on left and right side, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112652 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:24:15 +00:00
bzbarsky%mit.edu
5c0d8738e5 computed list-style-image should be "none" if there is no image. Bug
120719, r=hixie, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112651 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:22:59 +00:00
hewitt%netscape.com
60d5ef4b74 121278 - Okay &amp; Cancel buttons missing from various dialogs, r=pinkerton, sr=smfr
git-svn-id: svn://10.0.0.236/trunk@112650 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:21:56 +00:00
sspitzer%netscape.com
1afa9a8afe fix for #118744. r=racham, sr=sspitzer. outlook express addresses
not displayed correctly in non US-ASCII locales.
thanks to john.marmion@ireland.sun.com for the patch.


git-svn-id: svn://10.0.0.236/trunk@112649 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:17:47 +00:00
sspitzer%netscape.com
e3624fae29 fix for #119331. prefer html problems with LDAP servers.
r=dmose, sr=sspitzer.  thanks for john.marmion@ireland.sun.com for the patch
and to Roland Felnhofer for the feedback in the bug.


git-svn-id: svn://10.0.0.236/trunk@112648 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:16:03 +00:00
ben%netscape.com
51c028a06c bug 121054 - adding history to go menu.
r=jag, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112647 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 04:02:35 +00:00
danm%netscape.com
e63bd2182b removing unused ShowModally method. code=mbosch@lorentz.leidenuniv.nl r=me
git-svn-id: svn://10.0.0.236/trunk@112646 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:54:49 +00:00
lordpixel%mac.com
41a7304d35 Fix for bug 119118 Issue with calculating rowBytes. r=sdagley, sr=smfr
git-svn-id: svn://10.0.0.236/trunk@112645 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:48:54 +00:00
danm%netscape.com
bf8e12030a set docshell current URI after creating a synchronous about:blank Frankendocument. bug 104361 r=brendan,jst
git-svn-id: svn://10.0.0.236/trunk@112644 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:38:53 +00:00
sspitzer%netscape.com
168839885d suplimental fix for #120755. instead of using .rootFolder and QI to nsIMsgFolder,
we should use what bienvenu added:  .rootMsgFolder.


git-svn-id: svn://10.0.0.236/trunk@112643 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:38:18 +00:00
mscott%netscape.com
d7604870f5 Bug #106018 --> when auto completing put matches which share
the default domain FIRST when there are multiple matches of the
same type.

r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112642 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:09:27 +00:00
mscott%netscape.com
776d5ef50a Bug #111140 --> disable open and save in the attachment context menu
if we don't have any attachments selected.
r=ssu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112641 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:06:38 +00:00
gordon%netscape.com
b983639064 fix bug 120833 "default value of nsICacheEntryInfo::expirationTime should be PRUint32(-1)". r=gagan, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112640 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:06:28 +00:00
mscott%netscape.com
2dd996e15c Bug #115772 --> remove borders and shading to the headers
because this is messing up printing of messages.
r=ssu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112639 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:04:06 +00:00
sspitzer%netscape.com
788e023aac fix for #57661. fix some icon / twisty alignment issues.
r=shliang, sr=sspitzer.  patch by andreas.premstaller@uibk.ac.at (Andreas Premstaller)


git-svn-id: svn://10.0.0.236/trunk@112638 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:02:05 +00:00
mscott%netscape.com
408544e2ed Bug #117962--> add a null ptr check on aURI and fall out if we don't
have one to avoid a crash.
r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@112637 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 03:01:01 +00:00
rayw%netscape.com
31553bcbdc Handle decoding of simple unknown types as strings, otherwise as variants
within arrays.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112636 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:57:31 +00:00
nicolson%netscape.com
b2adda4233 New build script for Java classes.
git-svn-id: svn://10.0.0.236/trunk@112635 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:57:12 +00:00
bzbarsky%mit.edu
00718bfc1b Ignore anchors without href attrs in contentAreaClick. Bug 120973,
r=caillon, sr=blake


git-svn-id: svn://10.0.0.236/trunk@112634 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:54:18 +00:00
bzbarsky%mit.edu
52ea69e77c Bug 117228 -- error alert for XP filepicker when the file user wants
opened is not readable.
Bug 121035 -- "Save" button gets disabled when scrolling dir view.  Both
r=bryner, sr=jag


git-svn-id: svn://10.0.0.236/trunk@112633 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:46:11 +00:00
relyea%netscape.com
f1b9f47094 Fix NT crash on startup. (load builtins after trust domain gets initialized).
git-svn-id: svn://10.0.0.236/trunk@112632 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:46:07 +00:00
cavin%netscape.com
3c8128d48f Fix for bug 114060. Added two new error msgs for smtp and nntp send/post errors. r=ducarroz, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@112631 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:41:52 +00:00
bzbarsky%mit.edu
847e4b27ed Make new tabs _not_ open for just enter if the "open new tab for
ctrl-enter" pref is set.  Bug 105537, r=timeless, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112630 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:39:26 +00:00
rayw%netscape.com
b2de4c6dd7 Added more array support for nested types in arrays.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112629 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:39:08 +00:00
bzbarsky%mit.edu
e8f9ff7e9c Make "Open in new Window" and "Open in new Tab" set referrer correctly.
Bug 48902, r=doron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112628 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:35:16 +00:00
pschwartau%netscape.com
f76a6c959b Correcting typo.
git-svn-id: svn://10.0.0.236/trunk@112627 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:31:51 +00:00
pschwartau%netscape.com
9ed1dffe05 Initial add. Regression test for bug 96526.
git-svn-id: svn://10.0.0.236/trunk@112626 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:25:05 +00:00
rjc%netscape.com
7ac4a84b92 Fix build bustage. (Missing #ifdef)
git-svn-id: svn://10.0.0.236/trunk@112625 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:08:30 +00:00
naving%netscape.com
02f422ffb1 84988 r=cavin sr=mscott. fix imap copy folder to local folders
for folders(children) not selected.


git-svn-id: svn://10.0.0.236/trunk@112624 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:57 +00:00
bzbarsky%mit.edu
ad1fb22926 Change users of Length() to IsEmpty() where the code really cares about
the latter in content/.  Bug 100649, r=jag, sr=jst


git-svn-id: svn://10.0.0.236/trunk@112623 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 02:03:19 +00:00
morse%netscape.com
4aa4dc93f3 bug 109593, remove full-screen mode, rsgehani, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112622 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:57:51 +00:00
andreww%netscape.com
bdff9e5c37 bug 44892 - mnemonics for tasks menu window items. r=alecf sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112621 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:52:18 +00:00
dougt%netscape.com
5d273d8abe Adding nsIComponentRegistrar interface to the build. See 115853. r=dp@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112620 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:50:35 +00:00
morse%netscape.com
fe9782a60e 113158, reduce wallet footprint, r=alecf,jag,bryner
git-svn-id: svn://10.0.0.236/trunk@112619 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:49:43 +00:00
andreww%netscape.com
e8db5c2378 bugzilla bug 91753 - r=hwaara sr=sspitzer Search Button in search messages window relocation + other changes to match spec.
git-svn-id: svn://10.0.0.236/trunk@112618 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:47:14 +00:00
jaggernaut%netscape.com
b8e0eea789 Bug 66034: Undo work-around put in for this bug, the underlying bug was fixed a while ago. r=alecf, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@112617 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:44:35 +00:00
stephend%netscape.com
86b75e03a6 Cleaning up function/method/variable names in the Account Manager to reflect their labels in the .dtds. r=bhuvan@netscape.com, sr=sspitzer@netscape.com. Bug 81043.
git-svn-id: svn://10.0.0.236/trunk@112616 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:38:23 +00:00
jaggernaut%netscape.com
5020696994 Bug 120993: URL bar is cleared when a page is loaded in a new tab. r=bzbarsky, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112615 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:36:01 +00:00
alexsavulov%netscape.com
60208b116d fix for bug 70972 (object element does not respect CSS width and height
for non-plugins) r= peter lubczynski sr= attinasi


git-svn-id: svn://10.0.0.236/trunk@112614 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:30:50 +00:00
dougt%netscape.com
d383a669af Cleanup of nsIModule. See 99154. r=dp@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112613 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:29:40 +00:00
rjc%netscape.com
1e20881de4 Fix bug # 113894 (and 36972 and 79013 and probably others): get nsFileSpec usage out of RDF, and fix RDF persistence on Mac if there is a slash in the path. Various code from myself, darin, waterson and tingley. Various r/sr include darin, waterson
git-svn-id: svn://10.0.0.236/trunk@112612 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:29:39 +00:00
gordon%netscape.com
8c95eeda39 Fix bug 119117 "nsDiskCacheMap.h compiler warning". sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112611 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:27:32 +00:00
naving%netscape.com
214790416e 119965 r=bienvenu sr=sspitzer. Make selection work on returning from quick search view to folder view.
110860 r=bienvenu sr=sspitzer. fix sorting in folder view on returning from quick search
110320 sr=bienvenu. Sort the quick search results after search is over.
fix several other msg selection bugs on going into / coming out of quick search


git-svn-id: svn://10.0.0.236/trunk@112610 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:25:59 +00:00
gordon%netscape.com
0c5bd606b5 Fix bug 111049 "add attribute to nsICacheSession to detect device availability". sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112609 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:25:25 +00:00
gordon%netscape.com
eadf926bb1 Fix bug 119085 "cache entries corrupted if size of metadata is zero". sr=darin.
git-svn-id: svn://10.0.0.236/trunk@112608 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:24:20 +00:00
nicolson%netscape.com
c34340b099 Switch the default on removeSunProvider. The default is now "false".
git-svn-id: svn://10.0.0.236/trunk@112607 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:24:01 +00:00
ducarroz%netscape.com
f4be81c212 Fix for bug 71090. Patch provided by Denis Antrushin <adu@sparc.spb.su>
Skip over invalid empty encoded-words. R=ducarroz, SR=mscott


git-svn-id: svn://10.0.0.236/trunk@112606 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:22:44 +00:00
bryner%netscape.com
ecf9539ee3 Bug 120189 - fix selection crash with xbl select widget. Move content node updating to the XBL event handlers. r=varga, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@112605 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:22:33 +00:00
stephend%netscape.com
2bbf59b994 Bug 119148 and bug 119149. Caps issues in dialogs for mail. r=hwaara/robinf sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112604 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:20:50 +00:00
bryner%netscape.com
5628d66031 Bug 120252 - paint flashing broken on gtk. Also removed a lot of old cruft, changed #ifdef NS_DEBUG (which we don't define any more) to #ifdef DEBUG. r=waterson, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112603 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:18:36 +00:00
rjc%netscape.com
b821e260fb Fix bug # 83643: Mac OS X sheets. r=pinkerton sr=ben
git-svn-id: svn://10.0.0.236/trunk@112602 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:17:48 +00:00
bryner%netscape.com
b286121668 Part of fix for bug 91184, checked in on the 0.9.4 branch but forgot to check it in on the trunk. r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112601 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:17:04 +00:00
nicolson%netscape.com
2d322d5edb Document the necessity of setting the password on the key database before
using the SecretDecoderRing.


git-svn-id: svn://10.0.0.236/trunk@112600 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:16:12 +00:00
rayw%netscape.com
4213779178 Added encoding of untyped arrays. Fixed test html.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112599 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:14:25 +00:00
nicolson%netscape.com
73e004d9c4 Fix 118679: PK11SDR_Encrypt fails if not logged into token.
git-svn-id: svn://10.0.0.236/trunk@112598 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 01:06:22 +00:00
blythe%netscape.com
cbc42dd680 NOT part of normal build.
Fix bug 119065
Better filtering via spacetrace footprint tool.


git-svn-id: svn://10.0.0.236/trunk@112597 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:58:33 +00:00
ian.mcgreer%sun.com
cf10eb186e implement istemp and isperm in case clients depend on it, make sure certs own a reference to their slot and then free it
git-svn-id: svn://10.0.0.236/trunk@112596 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:58:02 +00:00
wtc%netscape.com
0da95573c9 Added $(topsrcdir) prefix to config/prmkdir.bat.
git-svn-id: svn://10.0.0.236/trunk@112593 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:50:32 +00:00
ian.mcgreer%sun.com
f8e7451012 fix leakage in traversal functions that convert certs to CERTCertificates
git-svn-id: svn://10.0.0.236/trunk@112592 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:34:03 +00:00
relyea%netscape.com
ae3fbdd717 Fix memory leaks.
git-svn-id: svn://10.0.0.236/trunk@112591 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:26:29 +00:00
ian.mcgreer%sun.com
d6eac2bdae make sure path string has terminator
git-svn-id: svn://10.0.0.236/trunk@112590 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-24 00:25:32 +00:00
beard%netscape.com
fa14f6b3d4 [not part of build] Fix for bug #119352, r=bnesse, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112589 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 22:29:17 +00:00
ian.mcgreer%sun.com
767d61d31e restore function CERT_SaveImportedCert, used to set the trust bits of a cert on import. Fixes bug 121487
git-svn-id: svn://10.0.0.236/trunk@112588 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 21:43:30 +00:00
ian.mcgreer%sun.com
272d51c4bd traverse functions need to cache as they run in order to catch multiple instances of certs correctly
git-svn-id: svn://10.0.0.236/trunk@112587 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 20:35:18 +00:00
ian.mcgreer%sun.com
8ccf2fc960 traversed certs also need to be cached
git-svn-id: svn://10.0.0.236/trunk@112586 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 18:24:29 +00:00
ian.mcgreer%sun.com
b34e37b27f fix core when token list is emptied (caused by switch to fips mode)
git-svn-id: svn://10.0.0.236/trunk@112585 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 17:39:29 +00:00
ian.mcgreer%sun.com
6cebd8d49a * keep stan in sync with both addition and removal of modules
* clean up compatibilty issues with PKCS#11 serial numbers.  Need to search both encoded and decoded values, while making sure stan code only deals with DER value


git-svn-id: svn://10.0.0.236/trunk@112584 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 17:00:39 +00:00
ian.mcgreer%sun.com
57a6e93f05 make the load function for the root token work
git-svn-id: svn://10.0.0.236/trunk@112583 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 15:36:54 +00:00
bstell%ix.netcom.com
4d258f98f6 bug 119042, crash when dividing 0 by 1
r=bstell@ix.netcom.com, sr/a=brendan@mozilla.org,


git-svn-id: svn://10.0.0.236/trunk@112580 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 15:07:15 +00:00
ian.mcgreer%sun.com
b759894bd4 fix breakage caused by yesterday's checkins; since softoken no longer returns terminating NULL for strings must add it above PKCS#11
also fixes bug 121384


git-svn-id: svn://10.0.0.236/trunk@112579 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 14:37:48 +00:00
blizzard%redhat.com
a2989b40c6 Part of bug #121252. Start work on getting grabs implemented. Rollup isn't happening yet. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112578 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 06:39:48 +00:00
bryner%netscape.com
56a3c82cef Fixing selected state for radio buttons. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112577 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 06:00:03 +00:00
relyea%netscape.com
eaf5a8bae2 Restore code automatic Built-in loading code.
git-svn-id: svn://10.0.0.236/trunk@112576 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 04:42:21 +00:00
relyea%netscape.com
4709d9db1c Function to return if any builtins have been loaded yet.
git-svn-id: svn://10.0.0.236/trunk@112575 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 04:41:25 +00:00
ian.mcgreer%sun.com
8d87d7c1ca fix PSM crash described in bug 120647
git-svn-id: svn://10.0.0.236/trunk@112574 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:53:16 +00:00
roc+%cs.cmu.edu
b4249b6891 Bug 120934. Deal with nonzero (x,y) in the aCombinedRect passed into nsViewManager::RefreshView(). r=kmcclusk,sr=waterson,a=asa
git-svn-id: svn://10.0.0.236/trunk@112573 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:32:45 +00:00
wtc%netscape.com
6fd02510af Bugzilla bug 119340: an inelegant but more reliable way to kill the
multithreaded 'selfserv' process on Linux.
Modified files:
    cmd/selfserv/selfserv.c tests/common/init.sh tests/ssl/ssl.sh


git-svn-id: svn://10.0.0.236/trunk@112572 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:18:57 +00:00
wtc%netscape.com
5f4f7f813d Run the test on both the primordial thread and another thread.
git-svn-id: svn://10.0.0.236/trunk@112571 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 03:05:01 +00:00
wtc%netscape.com
57008423af Added support for new HP-UX platform.
Modified files: configure configure.in _hpux.h _hpux64.cfg uxrng.c
prsystem.c pr/tests/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@112570 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:56:36 +00:00
rods%netscape.com
ccd0e3e698 Fixes the problem where PrintPreview is getting multiple Initial reflows
and includes a minor optimization when resizing the view during box layout
Bug 118968 r=attinasi sr=hyatt a=brendan


git-svn-id: svn://10.0.0.236/trunk@112569 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:53:02 +00:00
wtc%netscape.com
c863ba7cc4 Bugzilla bug 106496: PR_NewTCPSocketPair should check the source of the
connection.


git-svn-id: svn://10.0.0.236/trunk@112568 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:41:13 +00:00
wtc%netscape.com
a23a9b6f32 Bugzilla bug 119935: we need to set the priority of the new thread only if
the priority is not PR_PRIORITY_NORMAL.  (Windows creates new threads with
the normal priority.)  Thanks to Michael Kaply <mkaply@us.ibm.com> for
reporting this bug.
Modified files: ntthread.c w95thred.c


git-svn-id: svn://10.0.0.236/trunk@112567 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:32:28 +00:00
pschwartau%netscape.com
db70a07962 Initial add; testing Error.prototype.toString()
git-svn-id: svn://10.0.0.236/trunk@112566 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:24:32 +00:00
relyea%netscape.com
c410a92b91 Fix wrong polarity on if statement (should check for success, not failure).
git-svn-id: svn://10.0.0.236/trunk@112565 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:10:31 +00:00
sonja.mirtitsch%sun.com
e1ea64554e added the TCP connection aborted to the lines that are OK in the log
git-svn-id: svn://10.0.0.236/trunk@112564 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:07:08 +00:00
jband%netscape.com
7432f04958 fix Windows bustage -- NOT PART OF DEFAULT BUILD --
git-svn-id: svn://10.0.0.236/trunk@112563 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 02:06:06 +00:00
jj%netscape.com
09502888e9 bug #120858: adding talkback to daily mozilla build on MacOS 9. r=leaf, sr=granrose, a=asa
git-svn-id: svn://10.0.0.236/trunk@112562 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:55:48 +00:00
wtc%netscape.com
fde61ab4cb Bugzilla bug 119384: deleted two assertions that contained illegal type
casts.  The two functions that contained the assertions are very simple
so they can do without the assertions.  Thanks to Nick Blievers
<nickb@adacel.com.au> for reporting this bug and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@112561 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:49:25 +00:00
relyea%netscape.com
a9049ce9b3 Fix memory like in readSMimeEntry
git-svn-id: svn://10.0.0.236/trunk@112560 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:44:22 +00:00
naving%netscape.com
940c288794 120203 r=bienvenu sr=sspitzer. fix notification to rdf/outliner so
that we notify move/rename/delete/copy folder for the parent folder
only (no need for children).


git-svn-id: svn://10.0.0.236/trunk@112559 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:40:26 +00:00
rogerl%netscape.com
f98ea16ee1 Added 'quit' to shell.
git-svn-id: svn://10.0.0.236/trunk@112558 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:32:23 +00:00
rogerl%netscape.com
9aed1eb7d5 Began switch to regexp bytecode.
git-svn-id: svn://10.0.0.236/trunk@112557 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:31:39 +00:00
relyea%netscape.com
f29e33a844 Fix label stuff.
git-svn-id: svn://10.0.0.236/trunk@112556 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:20:32 +00:00
naving%netscape.com
0a2a5d2f95 115228 r/sr=sspitzer a=asa. Create the local folders even if the "Local Folders"
is closed.


git-svn-id: svn://10.0.0.236/trunk@112555 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:14:43 +00:00
wtc%netscape.com
9e0f260652 Fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@112554 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 01:10:51 +00:00
relyea%netscape.com
3a74953b5a Labels don't have NULL's by default.
git-svn-id: svn://10.0.0.236/trunk@112552 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:53:53 +00:00
ian.mcgreer%sun.com
6f2350c744 PSM bug 119359, NSS 3.4 also needs to recognize valid CA trust in order for cert download to work correctly
git-svn-id: svn://10.0.0.236/trunk@112551 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:49:23 +00:00
sfraser%netscape.com
640467f11a Fix for bug 107827 -- avoid excess repainting on Mac when the paint-suppressed page is loading by ignoring widgets belonging to a widget hierarchy whose root is hidden. Improves page load time by 16-20%. r=pinkerton, sr=hyatt, a=asa
git-svn-id: svn://10.0.0.236/trunk@112550 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:48:19 +00:00
sfraser%netscape.com
1c708ad809 Fix for bug 120228. The rendering context made for the caret was interferring with the origin and clipping of the drawing port. To fix this, we have to reset these before reach drawing call. r=pinkerton, sr=kin, a=asa
git-svn-id: svn://10.0.0.236/trunk@112549 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:44:39 +00:00
shrutiv%netscape.com
2872950324 Fix for bugscape 11860: Can't write in the javascript editor
git-svn-id: svn://10.0.0.236/trunk@112548 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:32:25 +00:00
sonja.mirtitsch%sun.com
f9cba0ff1e added comments
git-svn-id: svn://10.0.0.236/trunk@112547 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:27:10 +00:00
bbaetz%student.usyd.edu.au
4deb648921 Bug 93037 - use YYYY-MM-DD HH:MM formatting for attachment dates
r=gerv,myk


git-svn-id: svn://10.0.0.236/trunk@112546 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:24:31 +00:00
sonja.mirtitsch%sun.com
09d07a30ba removing tmpfiles on tinderboxes
git-svn-id: svn://10.0.0.236/trunk@112545 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:21:01 +00:00
sonja.mirtitsch%sun.com
8a5e627184 changes so nssqa will run on netscape's daily builds as well
git-svn-id: svn://10.0.0.236/trunk@112544 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-23 00:19:32 +00:00
wtc%netscape.com
b485eb5684 Fixed if-else indentation style.
Modified files: macio.c macsockotpt.c


git-svn-id: svn://10.0.0.236/trunk@112543 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 23:57:41 +00:00
stephend%netscape.com
0c18dc7c49 bug 117781 - tab components out of alignment. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@112542 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 23:21:51 +00:00
stephend%netscape.com
e4e39451fb bug 117781 - tab components out of alignment. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@112540 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 23:07:59 +00:00
ccarlen%netscape.com
836c87ad5d Bug 116435 - The provider in nsAppFileLocationProvider.cpp should always be registered. r=dougt/sr=rpotts/a=dbaron
git-svn-id: svn://10.0.0.236/trunk@112539 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 23:00:44 +00:00
ian.mcgreer%sun.com
0cf0e70db5 last change to INTEGER encoding, strip extraneous leading zeros from integer values passed to encoder
git-svn-id: svn://10.0.0.236/trunk@112538 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:48:26 +00:00
pinkerton%netscape.com
2056017dd4 ensure that mPixelsToTwips is always integral. r=dbaron/sr=sfraser/a=asa. bug#120779
git-svn-id: svn://10.0.0.236/trunk@112537 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:26:22 +00:00
bbaetz%student.usyd.edu.au
c53115e19f Bug 120543 - Software error when entering a bug when not logged in & only
one product.
r=caillon,jake


git-svn-id: svn://10.0.0.236/trunk@112535 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:23:21 +00:00
sdagley%netscape.com
a0015fd8cb Fix #99561 (on NSPR tip). Use MPSemaphore calls rather than WaitNextEvent to pause CPU under Mac OS X - fixes thread deadlock and improves performance. r=wtc,sr=sfraser,a=dbaron
git-svn-id: svn://10.0.0.236/trunk@112534 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:13:03 +00:00
leaf%mozilla.org
56d662bff2 Automated update
git-svn-id: svn://10.0.0.236/trunk@112533 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:12:14 +00:00
brendan%mozilla.org
b0099ec3f6 Inline-eliminate js_Emit{Break,Continue} and move SRC_CONTINUE generation to the right place (120571, r=rogerl, sr=jst&jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@112531 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:06:10 +00:00
wtc%netscape.com
d6abff9e43 Bugzilla bug 100776: checked in a patch from Javier Pedemonte
<pedemont@us.ibm.com>.  r=cls. a=brendan.
Modified file: configure.in


git-svn-id: svn://10.0.0.236/trunk@112530 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 22:01:18 +00:00
ian.mcgreer%sun.com
71e89f46e5 fix for bug 120824; functions which collect certs based on subject need to examine *both* the temp and perm stores
git-svn-id: svn://10.0.0.236/trunk@112528 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 21:56:19 +00:00
rogerl%netscape.com
0f43f1c0be Cleaning up types.
git-svn-id: svn://10.0.0.236/trunk@112527 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 21:39:00 +00:00
rogerl%netscape.com
babbb97ac2 Cleaned up match vs. execute
git-svn-id: svn://10.0.0.236/trunk@112525 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 20:01:02 +00:00
rogerl%netscape.com
3fe3d6616f Fixes for wacky extra blank lines from cvs. Fixes for __proto__ and to
string.split.


git-svn-id: svn://10.0.0.236/trunk@112524 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 19:51:22 +00:00
rogerl%netscape.com
290e368dd4 Trying to remove extra blank lines from wacky cvs usage.
git-svn-id: svn://10.0.0.236/trunk@112523 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 19:47:18 +00:00
shrutiv%netscape.com
5f798a8469 Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112522 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 18:37:26 +00:00
shrutiv%netscape.com
1da861fce2 Fix for bugscape 11279: Change CCK directory structure to support
different plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112521 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 17:20:08 +00:00
mkaply%us.ibm.com
b5f15cc499 #120431
a=brendan for drivers
OS/2 only - temp fix to workaround optimizer bug


git-svn-id: svn://10.0.0.236/trunk@112520 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 15:54:36 +00:00
timeless%mac.com
4d0b2e23f0 Bug 121057 Prefs panel "Advanced|Scripts & Windows" can only be visited once per session
patch by jrgm r=caillon@returnzero.com sr=blake a=brendan


git-svn-id: svn://10.0.0.236/trunk@112519 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 15:26:38 +00:00
bbaetz%student.usyd.edu.au
7f8c1e8eec Bug 121074 - taint error after changing bug
r=daa@distributed.net,jake


git-svn-id: svn://10.0.0.236/trunk@112518 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 15:12:11 +00:00
bbaetz%student.usyd.edu.au
34d34e045d Bug 98368 - dbi connect doesn't use db_port option.
Patch by gene.stuckey@tellabs.com, r=bbaetz,justdave


git-svn-id: svn://10.0.0.236/trunk@112517 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 06:49:22 +00:00
blizzard%redhat.com
6d4ed87e23 Fix minor gtk2 bug with focus. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112516 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 06:21:09 +00:00
bzbarsky%mit.edu
17d694be78 Checking in fixed icons for the link toolbar in modern. Bug 113100,
images provided by Karl Guertin <mysteryisman@yahoo.com>, r=bzbarsky,
sr=hewitt, a=brendan


git-svn-id: svn://10.0.0.236/trunk@112515 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:55:00 +00:00
hyatt%netscape.com
a86f57efd9 Fix for 115919, r=dbaron for me, r=hyatt for dbaron, sr=brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@112514 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:36:50 +00:00
hyatt%netscape.com
3f1f498838 Fix for 115919, r=dbaron for me, r=hyatt for dbaron, sr=brendan, a=brendan
git-svn-id: svn://10.0.0.236/trunk@112513 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:30:28 +00:00
bbaetz%student.usyd.edu.au
aa693e532f Bug 121170 - template outputs empty <style> tag
r=justdave,timeless


git-svn-id: svn://10.0.0.236/trunk@112512 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:08:09 +00:00
ben%netscape.com
96b6cf8e8e [Manticore]
Add support for Windows XP Themes, move Description/Extension setting code based on content type into MIME utility.

NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@112511 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 05:01:25 +00:00
kaie%netscape.com
a4275db9c3 b=106188 fix whitespace
a=brendan


git-svn-id: svn://10.0.0.236/trunk@112510 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 02:20:13 +00:00
ben%netscape.com
55b1b87b51 [Manticore]
Save Page As dialog stuff, beginning to enhance Toolbar generation code
NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@112509 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-22 00:45:37 +00:00
bryner%netscape.com
8c8ea7b2fd Hooking up radio buttons, clean up debugging printf's. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112504 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 21:51:57 +00:00
bzbarsky%mit.edu
ab57fc530d Make sure we always use "browser.download.dir" for the download dir
pref.  Bug 120997, r=timeless, sr=hyatt, a=asa


git-svn-id: svn://10.0.0.236/trunk@112503 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 21:38:35 +00:00
timeless%mac.com
b623a65319 Bug 117472 [Xlib] Crash in HandleQueueXtProc()
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless a=asa


git-svn-id: svn://10.0.0.236/trunk@112501 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 21:05:54 +00:00
timeless%mac.com
e6d4d33306 Bug 120444 packager/packages-unix does not contain libgfxxprint.so for Xprint
patch by Roland.Mainz@informatik.med.uni-giessen.de r=andre.dahlqvist@telia.com sr=jag a=asa


git-svn-id: svn://10.0.0.236/trunk@112500 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 21:03:59 +00:00
jband%netscape.com
70211c9a03 New file to test scriptable interface info wrapper and idl generator stuff. -- NOT PART OF THE BUILD --
git-svn-id: svn://10.0.0.236/trunk@112496 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 18:43:32 +00:00
jband%netscape.com
05fdc88cca Don't assume that GetInfoForParam can't fail. see bug 121118. -- NOT PART OF THE BUILD --
git-svn-id: svn://10.0.0.236/trunk@112495 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 18:41:37 +00:00
jake%acutex.net
186ffc081a Bug 113438 - The DTD from Bugzilla's XML output was not correct, so any attempts to validate the output were futile.
Patch by Jan <tamino_xml@yahoo.com>
r= jake


git-svn-id: svn://10.0.0.236/trunk@112494 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 13:39:54 +00:00
glazman%netscape.com
830115b4df composer background image broken source code; b=120662, r=brade, sr=kin, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112493 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-21 09:30:02 +00:00
timeless%mac.com
8dbb68cadb [Bug 121003] Silly code checks for if (interfaceName) instead of if (instanceName)
r=bzbarsky sr=brendan@mozilla.org a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@112492 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-20 23:15:31 +00:00
justdave%syndicomm.com
c148fadef8 Fix for bug 108982: enable taint mode for all user-facing CGI files.
Patch by Brad Baetz <bbaetz@student.usyd.edu.au>
r= jake, justdave


git-svn-id: svn://10.0.0.236/trunk@112490 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-20 01:44:52 +00:00
darin%netscape.com
937c54dca0 fixes bug 115252 "going to http://orange.dk produces redirection error"
patch=badami@netscape.com,darin@netscape.com
r=gordon@netscape.com,blizzard@mozilla.org
sr=mscott@netscape.com
a=dbaron@fas.harvard.edu


git-svn-id: svn://10.0.0.236/trunk@112489 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-20 00:43:04 +00:00
hyatt%netscape.com
8996016a77 Bug 120949, disable favicons for moz1.0, r=pav, sr=blake
git-svn-id: svn://10.0.0.236/trunk@112488 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 21:53:59 +00:00
jband%netscape.com
a18fd3f598 Convert nsInterfaceInfoToIDL into a JS component. -- NOT PART OF BUILD --
git-svn-id: svn://10.0.0.236/trunk@112487 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 21:53:51 +00:00
hyatt%netscape.com
09f3c7b8a9 Fix for 116306, r=dbaron, sr=blake
git-svn-id: svn://10.0.0.236/trunk@112486 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 20:15:17 +00:00
nboyd%atg.com
6e634bb933 Fix bug:
Norris,

I realize this is probably a nuisance, but the following problem causes our
regression test suite to fail:

    js> foo = new Error("bar")
    undefined: bar
    js> foo.name Error
    js> foo.toString()
    undefined: bar

Our test suite expects:

    js> foo = new Error("bar")
    Error: bar
    js> foo.name Error
    js> foo.toString()
    Error: bar

I have not yet tried the debugger with the RC2 release, but I expect to get
to that later today.

I hope I'm not to late to influence the 1.5R3 release.

Thanks,

dave


git-svn-id: svn://10.0.0.236/trunk@112485 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 17:43:26 +00:00
jake%acutex.net
664c6941a1 Remove files no longer needed after the latest changes to the docs
git-svn-id: svn://10.0.0.236/trunk@112484 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 14:34:40 +00:00
mcafee%netscape.com
fc3a5b69c0 Adding facedown to query list
git-svn-id: svn://10.0.0.236/trunk@112483 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 12:42:22 +00:00
ben%netscape.com
3aa22b2d35 Fix 116263, part of earlier patch reviewed by law & hewitt, but forgot to land as part of landing prior to .9.8 close.
Make the windows file picker use the specified file type index rather than hardcoded '1'.

a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@112482 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 07:52:23 +00:00
bbaetz%student.usyd.edu.au
115450f895 Bug 120891. TestProtocols was including a cookies header file it didn't
need, breaking no-extentions builds.
r=bryner, sr=jst, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@112481 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 04:04:51 +00:00
bryner%netscape.com
f8c19befe8 Bug 97708 - copying text to another application can cause a crash. Need to divide the size of the data in the nsTransferable by 2 to get the number of characters, since they are unicode. r=bbaetz, sr=jst, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@112480 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 04:00:53 +00:00
pschwartau%netscape.com
bd88828901 Made sections 13 and 14 more precise.
git-svn-id: svn://10.0.0.236/trunk@112479 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 03:34:50 +00:00
rjc%netscape.com
3833d06c16 Shame on alecf for not updating to the tip before checking in! Re-backing out these two lines which were originally backed out last night. a=sheriff trudelle
git-svn-id: svn://10.0.0.236/trunk@112478 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-19 01:58:03 +00:00
jake%acutex.net
d84d21016e Latest version of compiled docs (picking up recent SGML changes).
git-svn-id: svn://10.0.0.236/trunk@112476 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 23:27:01 +00:00
hewitt%netscape.com
b3500ab834 114580 - dialog alignment issues, r=jag, sr=bryner, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112475 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 23:11:54 +00:00
rayw%netscape.com
6f1df8ddf5 Fixed infinite loop in struct decoding, added test case for struct decoding.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112474 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 23:09:15 +00:00
jaggernaut%netscape.com
74ec262957 Bug 117857: window.status overwrites URL of link you are hovering over
Bug  99009: setting window.status from onmouseover doesn't work for links

r=bryner, timeless, sr=jst, a=asa


git-svn-id: svn://10.0.0.236/trunk@112472 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:52:23 +00:00
sspitzer%netscape.com
74b3421d14 fix for #119404 (mail folders come up empty the first time that you open them).
fix by bienvenu.  r=naving,blizzard, sr=sspitzer, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112471 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:48:24 +00:00
rods%netscape.com
d2614abdf5 mPrintSettings wasn't be properly set and therefore it wasn't getting the margins correctly
BUg 120621 r=dcone sr=attinasi a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112470 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:45:06 +00:00
gordon%netscape.com
63bcb0a760 Fix bug 114292 (top crash in cache code). Patch prevents cache devices from evicting entries while they are being "bound". r=brendan, sr=darin, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112469 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:18:28 +00:00
attinasi%netscape.com
95bad745a0 Loading and Broken image icons will no longer be drawn if the image size is smaller than the icon size. This fixes a problem where garbage was being left on the screen after the image loaded, because the Linux RenderingContext does not corectly clip image drawing. b=109418, r=pavlov, sr=blizzard, a=blizard on behalf of drivers
git-svn-id: svn://10.0.0.236/trunk@112467 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 22:17:12 +00:00
srilatha%netscape.com
30ef853073 Fix for bug # 120438. Properly register messenger-mapi package
r=ssu@netscape.com, sr=dveditz@netscape.com, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112466 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:48:03 +00:00
sfraser%netscape.com
57420a32ce Fix for bug 120451 -- clean up the sleep Q entry on quit, so that we don't leave a bad entry there and hose the machine some time later. r=sdagley, sr=beard, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112464 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:40:13 +00:00
naving%netscape.com
d023732c18 120755 r=racham sr=mscott a=blizzard. make msgNavigation work across servers.
git-svn-id: svn://10.0.0.236/trunk@112463 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:14:24 +00:00
alecf%netscape.com
0c0ffbf144 fix for bug 119902 - assertions in nsIOService when saving files, plus a minor performance optimization from dougt
r=adamlock, sr=darin


git-svn-id: svn://10.0.0.236/trunk@112462 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:08:07 +00:00
shanjian%netscape.com
dbb41e744f #120047 crash while loading http://www.lupa.cz/anketa.phtml [@ ReadCMAPTableFormat4]
r=rbs, sr=attinasi, a=dbaron
Another patch missed in previous patch.


git-svn-id: svn://10.0.0.236/trunk@112459 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:07:02 +00:00
varga%utcru.sk
56cc407dd2 Fix for another silly regression. Bug 120720 - find broken in Bookmarks and History. r=hwaara, sr=blake a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112458 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 21:00:22 +00:00
ducarroz%netscape.com
5ecef571f3 Fix for bug 115855. Add a function to allow message compose to reset font and colors attributes of the editor. R=cmanske, SR=mscott, A=blizzard
Fix for bug 114473. EditorShell::saveDocument has been replaced by JS function SaveDocument. R=cavin, SR=bienvenu, A=blizzard


git-svn-id: svn://10.0.0.236/trunk@112457 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:56:27 +00:00
ducarroz%netscape.com
bb00efea5f Part of fix for bug 115855. Add a function to allow message compose to reset font and colors attributes of the editor. R=cmanske, SR=mscott, A=blizzard
git-svn-id: svn://10.0.0.236/trunk@112456 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:52:23 +00:00
smeredith%netscape.com
e1293b018e Changed lock_pref() lockPref().
git-svn-id: svn://10.0.0.236/trunk@112455 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:28:09 +00:00
kaie%netscape.com
74526bc960 b=106188 Fix SSL freezing Mozilla on connect problems
r=darin r=javi r=wtc sr=jag a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112453 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:20:02 +00:00
shrutiv%netscape.com
1789879e75 Fix for bugscape 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112452 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:13:16 +00:00
dougt%netscape.com
8d19907f79 removing nsMemory.h. This file now lives in xpcom/glue. bug 120685 sr=jband, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112451 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:12:36 +00:00
bnesse%netscape.com
eca0daca42 Fix for bug 104445. Make nsPluginInstance a scrollbar listener so it can notify plugins they are scrolling. Also fixes bug 76085. r=peterl, sr=sfraser, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112450 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:12:29 +00:00
rayw%netscape.com
31f311dc28 Added an error check and a test case that does not work, yet, because
xpconnect is saying that an array is an interface, I think.

SOAP not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112449 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:09:06 +00:00
cmanske%netscape.com
6acc36b071 Output correct values for 'align' attribute for img, iframe, object, applet, and input elements: b=112276, r=brade, sr=jst, a=blizzard/drivers
git-svn-id: svn://10.0.0.236/trunk@112448 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:09:04 +00:00
cmanske%netscape.com
17076aa673 Fixed hasAttribute for non-mapped attributes, b=120607, r=bzbarsky@mit.edu, sr=jst, a=blizzard/drivers
git-svn-id: svn://10.0.0.236/trunk@112447 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:08:02 +00:00
dkl%redhat.com
9a7a02ee28 Fix for bug 120817 - Log Out and %commandmenu% in bannerhtml, r=justdave,dkl
git-svn-id: svn://10.0.0.236/trunk@112446 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 20:04:32 +00:00
shrutiv%netscape.com
e9a3b06693 Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112445 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:44:05 +00:00
shrutiv%netscape.com
2f6be9c679 Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112444 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:30:05 +00:00
shrutiv%netscape.com
4bcd3069c5 Renaming Linux_page.ini to Platform_page.ini
Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112443 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:24:29 +00:00
shrutiv%netscape.com
3c200f207c Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112442 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:18:16 +00:00
shrutiv%netscape.com
2dfb1f9ba9 Removing script.ib
Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112441 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:15:43 +00:00
shrutiv%netscape.com
3ec231ba9e Adding script_mac.ib script_win.ib script_linux.ib
Fix for bug 11279: Change CCK directory structure to support different
plaltforms and languages (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@112440 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 19:12:24 +00:00
rayw%netscape.com
d2cc71b653 Description Change.
Not part od default build.


git-svn-id: svn://10.0.0.236/trunk@112439 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 18:47:22 +00:00
rayw%netscape.com
3a3a1492b1 Fixes to the test.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112438 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 18:44:13 +00:00
rayw%netscape.com
e7eda6ecb5 Made another test work, with a couple of bug fixes.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112437 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 18:28:37 +00:00
dkl%redhat.com
8d6ec47425 Fix for bug 119060 - Use of Template.pm filters for url and html encoding. r=jake,dkl
git-svn-id: svn://10.0.0.236/trunk@112436 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 16:50:08 +00:00
rayw%netscape.com
201c82c2cc Fixed type handling when decoding nested arrays.
git-svn-id: svn://10.0.0.236/trunk@112432 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 15:09:58 +00:00
timeless%mac.com
0383ed809f Bug 120444 packager/packages-unix does not contain libgfxxprint.so for Xprint
patch by Roland.Mainz@informatik.med.uni-giessen.de r=mcafee sr=jst a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112431 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 15:07:39 +00:00
rayw%netscape.com
4fc2e5d837 Fixed name of sparse array offset attribute.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112430 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 14:30:11 +00:00
rayw%netscape.com
7068299b7b Added most of implementation of decoding of multidimensional arrays. The
only thing missing is proper construction of a variant.  I will consult
with John.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112429 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 14:17:03 +00:00
glazman%netscape.com
041958bde0 backing out my fix for bug 119447 due to major side effect described in bug 120377; a=asa
git-svn-id: svn://10.0.0.236/trunk@112428 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 10:17:12 +00:00
bryner%netscape.com
40d9704e41 Some minor changes for scrollbar buttons that use transparency. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112427 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 10:10:51 +00:00
glazman%netscape.com
5c207c3d7f horizontal line properties window does not show that line is centered; fix done by neil@parkwaycc.co.uk; b=120120, r=glazman, sr=kin, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112426 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 10:08:12 +00:00
seawood%netscape.com
5ecd9d7755 Fixing win32 static build bustage in activex & simple plugin.
Bug 120675 r=bryner sr=waterson a=asa


git-svn-id: svn://10.0.0.236/trunk@112424 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 08:14:20 +00:00
rjc%netscape.com
ebc6ec5486 Back out fix for bug # 113894 due to bug # 120617. a=sheriff suresh
git-svn-id: svn://10.0.0.236/trunk@112423 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 07:20:36 +00:00
rjc%netscape.com
08ae36e34b Back out fix for bug # 113894 due to bug # 120617. a=sheriff suresh
git-svn-id: svn://10.0.0.236/trunk@112422 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 07:19:46 +00:00
pschwartau%netscape.com
c24771d276 Added two more cases to test.
git-svn-id: svn://10.0.0.236/trunk@112421 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 07:07:13 +00:00
curt%netscape.com
aa2847b817 Uses the version information passed in through $ARGV[0] to create other variables whereever possible to improve maintainability.
git-svn-id: svn://10.0.0.236/trunk@112420 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 06:33:33 +00:00
relyea%netscape.com
c221c4c085 remove bogus verify step (the cert passed in is almost certainly a signing cert).
git-svn-id: svn://10.0.0.236/trunk@112419 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:38:29 +00:00
relyea%netscape.com
9ef64c94f4 Fix the case where the subjectID is an issuer/SN. don't build a dbkey in
this case, return the actual subject cert id after looking up the cert
directly


git-svn-id: svn://10.0.0.236/trunk@112418 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:36:44 +00:00
relyea%netscape.com
ca3b68231a Increment length on LABEL, not on CLASS to catch the added NULL case.
git-svn-id: svn://10.0.0.236/trunk@112417 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:35:18 +00:00
rayw%netscape.com
4796f068c7 Added untested decoding of arrays. Did not break tests.
SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112416 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 03:01:06 +00:00
darin%netscape.com
ad2b168c08 fixes bug 120394 "properly" should be removed from missing psm warning
patch=bugzilla@gemal.dk, r=timeless, sr=darin, a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112415 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 02:48:37 +00:00
bryner%netscape.com
22a786293e Backing out my fix for bug 104544, it is causing artifacts to appear around the edges of images in the chrome. a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@112414 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 02:05:50 +00:00
rogerl%netscape.com
cd0b9b2359 Incremental ECMA compatibility fixings.
git-svn-id: svn://10.0.0.236/trunk@112413 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 02:03:56 +00:00
wtc%netscape.com
6925a25d2b Bugzilla bug 100776: handle non-blocking connect correctly on OS/2.
The fix is contributed by Javier Pedemonte <pedemont@us.ibm.com>.
r=mkaply.
Modified files: configure configure.in _os2.h _os2_errors.h prsocket.c
os2_errors.c os2poll.c os2sock.c


git-svn-id: svn://10.0.0.236/trunk@112412 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 01:27:20 +00:00
hyatt%netscape.com
be64d57ff6 Fix cocoa widgets to compile again. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@112411 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-18 00:55:49 +00:00
bryner%netscape.com
8bba3406cf Fixing display of XBL select boxes. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@112409 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 23:20:24 +00:00
locka%iol.ie
99a2ec1923 Fix directory creation permissions so files can actually be saved in them! b=120307 r=brade@netscape.com sr=blizzard@mozilla.org a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112408 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 23:11:33 +00:00
pinkerton%netscape.com
7a8755daba add tab support and fix up drawing problems with port not being set. r=sdagley/sr=sfraser/a=asa. bug# 120171
git-svn-id: svn://10.0.0.236/trunk@112407 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 23:08:25 +00:00
timeless%mac.com
75d778a9a8 Bug 120397 "about:" should be updated to say "Copyright 1998-2002"
patch by caillon@returnzero.com r=choess@stwing.upenn.edu sr=jst a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112406 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 23:07:14 +00:00
nicolson%netscape.com
b87005ddaf add secret decoder ring for JSS 3.1.2, special release for CMS.
git-svn-id: svn://10.0.0.236/trunk@112405 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 22:54:05 +00:00
yokoyama%netscape.com
1d65d69394 Bug 120275
Redeclaration of contentArea strict warning in charsetOverlay.js
checking in for Alex Vincent
sr/a=brendan


git-svn-id: svn://10.0.0.236/trunk@112404 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 22:36:38 +00:00
jst%netscape.com
2cdcc5b19e Fixing bogus assertions caused by my checkins for bug 118933 and removing unnecessary double null check. trivial change, no reviews.
git-svn-id: svn://10.0.0.236/trunk@112403 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 22:12:28 +00:00
akkana%netscape.com
76737b8259 120623: remove printfs. r=bzbarsky r,a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112402 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:57:00 +00:00
ssu%netscape.com
ac1482fd97 fixing bug 70097 - pressing up/down in folder pane focuses thread pane. r=bhuvan, sr=sspitzer, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112401 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:54:27 +00:00
varga%utcru.sk
aff98ec3d9 Fix for bug 120395. "Your Certificates" tab is blank.
r=bryner
sr=waterson
a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112400 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:27:35 +00:00
pschwartau%netscape.com
b5cf363183 Fix Mac build errors/warnings
git-svn-id: svn://10.0.0.236/trunk@112399 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:23:59 +00:00
rogerl%netscape.com
2784b79499 Need stdlib on Linux.
git-svn-id: svn://10.0.0.236/trunk@112398 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:15:48 +00:00
rogerl%netscape.com
680fd1c8ff GCC does now support the iterator.
git-svn-id: svn://10.0.0.236/trunk@112397 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:15:16 +00:00
rogerl%netscape.com
4f8c1ea3a6 Fixed signed'ness bug.
git-svn-id: svn://10.0.0.236/trunk@112396 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:14:32 +00:00
timeless%mac.com
3425ada894 Bug 115357 Favicon displayed blank
patch by cbiesinger@web.de r=pavlov sr=tor a=blizzard


git-svn-id: svn://10.0.0.236/trunk@112395 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:13:27 +00:00
rogerl%netscape.com
9491862b87 Added regexp directory as include path.
git-svn-id: svn://10.0.0.236/trunk@112394 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 21:12:59 +00:00
rogerl%netscape.com
03261b4986 Added package test.
git-svn-id: svn://10.0.0.236/trunk@112393 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 18:23:20 +00:00
rogerl%netscape.com
0f89a00dfb Package/Namespace fixes.
git-svn-id: svn://10.0.0.236/trunk@112392 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 18:22:27 +00:00
bzbarsky%mit.edu
5ee46abb20 Fix Content-Disposition parsing not to include "filename=" in the
filename for Save Link As.  Bug 120409, r=sballard@netreach.net, sr=ben,
a=brendan.


git-svn-id: svn://10.0.0.236/trunk@112391 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 15:51:59 +00:00
rods%netscape.com
960c55cb43 PersShell needs to be created via the document->CreateShell, or the document doesn't know about it
and this means there would be no Primary PresShell in the document
Bug 114139 r=dcone sr=attinasi a=dbaron


git-svn-id: svn://10.0.0.236/trunk@112390 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 15:04:54 +00:00
ccarlen%netscape.com
b29d8bc5fe Bug 120018 - Pressing ESC in Delete Profile dialog deletes profile.
r=rjc@netscape.com/sr=alecf@netscape.com/a=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@112389 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 14:25:52 +00:00
nboyd%atg.com
6b8ee0444c Skip changed test.
git-svn-id: svn://10.0.0.236/trunk@112388 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 13:50:47 +00:00
rayw%netscape.com
62279ef20a Remove spurious test lines unintentionally committed.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112387 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 12:57:35 +00:00
rayw%netscape.com
fa84b6274a Changed aliasing of propertiesto fix JS visibility of property bag.
Not part od default build.


git-svn-id: svn://10.0.0.236/trunk@112386 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 12:54:24 +00:00
locka%iol.ie
d04650839e Add pointer test to prevent crashes on frame/iframe elements with no src attribute. b=119939 r=timeless@bemail.org sr=rpotts@netscape.com a=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@112385 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 12:15:44 +00:00
locka%iol.ie
0f9a34a1db Remove chatzilla.jar & !ifdef unzipping of messenger.jar for when DISABLE_MAILNEWS is set. b=120104 sr=rpotts@netscape.com a=dbaron@fas.harvard.edu
git-svn-id: svn://10.0.0.236/trunk@112384 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 12:11:33 +00:00
cavin%netscape.com
707b27bf4e Bug #100167: Added IMAP_REDIRECT_LOGIN_FAILED for redirect login error. r=bienvenu, sr=sspitzer, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112383 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 08:01:53 +00:00
rayw%netscape.com
fd0b44e632 Added untested code to encode a property bag. Untested and I don't really
know how the property bag will come to me.  Did not break anything.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112382 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 07:23:31 +00:00
bryner%netscape.com
95338302cd Fixing up horizontal scrollbars. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112381 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 06:48:13 +00:00
beard%netscape.com
c3913452f6 Configuration to build on Mac OS X 10.1.
git-svn-id: svn://10.0.0.236/trunk@112380 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 06:39:04 +00:00
bryner%netscape.com
935c3d6db8 Make sure the button widget is created before painting scrollbar arrows. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112379 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 06:34:30 +00:00
rayw%netscape.com
19b53a1249 Added untested code for decoding untyped complex objects. Didn't break
isprimenumber.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112378 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 05:39:57 +00:00
jst%netscape.com
d6dfb98e9d Fixing HPUX bustage, NS_STATIC_CAST() can't be used with incomplete types.
git-svn-id: svn://10.0.0.236/trunk@112377 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 05:09:55 +00:00
waterson%netscape.com
a764720ab7 rjc was right. Third time's the charm.
git-svn-id: svn://10.0.0.236/trunk@112376 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:43:17 +00:00
jst%netscape.com
2337395ba4 Fixing part of bug 118933. Speeding up the global resolve hook in the DOM JS helpers by eliminating the use of nsHashtable and nsStringKey in favor of pldhash. Adding global HashString(const nsA[C]String&) functions that calculate a hash code from a nsA[C]String, code by dbaron@fas.harward.edu. Also checking in brendan@mozilla.org's fix for a type error in the jsdhash/pldhash API found while working on this. sr=brendan@mozilla.org, r=peterv@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112375 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 04:08:14 +00:00
rayw%netscape.com
cf9fd6481c Reformatted files to eliminate bad tabs. Added nsISOAPPropertyBag, which
is not working perfectly WRT XPConnect, but broke nothing else.  Also
added mutator and su[pporting classes.

SOAP is not part of default build.


git-svn-id: svn://10.0.0.236/trunk@112374 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 03:23:06 +00:00
despotdaemon%netscape.com
86d0ecff6d Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@112373 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 02:06:52 +00:00
waterson%netscape.com
fde354c6a9 Man, I'm a moron. Let's test the fix this time.
git-svn-id: svn://10.0.0.236/trunk@112372 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 02:00:23 +00:00
jake%acutex.net
069219670c Bug 120081 - Bugzilla now requires version 2.06 of the Template Toolkit.
r= bbaetz, justdave


git-svn-id: svn://10.0.0.236/trunk@112371 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 01:57:24 +00:00
waterson%netscape.com
62c73cd0e6 Fix mailnews smoketest bustage on boxset.
git-svn-id: svn://10.0.0.236/trunk@112370 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 01:49:08 +00:00
waldemar%netscape.com
491a51240b Added a couple of test cases
git-svn-id: svn://10.0.0.236/trunk@112369 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 01:28:58 +00:00
waldemar%netscape.com
b81ac527bf Added for-each statements
git-svn-id: svn://10.0.0.236/trunk@112368 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 01:28:30 +00:00
waldemar%netscape.com
e5d8b6e1a0 Initial version
git-svn-id: svn://10.0.0.236/trunk@112367 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 01:27:53 +00:00
dp%netscape.com
b61ac1e76e bug 119346 1k -> 4k buffers r=harishd,blizzard sr=waterson a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112366 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:45:03 +00:00
ian.mcgreer%sun.com
f07c00bdc9 more backwards compatibility fixes
* always send DER of serial number to PKCS#11 queries
* in softoken, construct key for certificate using decoded serial number with (possibly) a leading zero, for compatibility with version 7 db
* in softoken, decode serial number *without* removing leading zero for searches


git-svn-id: svn://10.0.0.236/trunk@112364 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:20:53 +00:00
dbaron%fas.harvard.edu
7211b45852 Missing part of fix for bug 117153, fixing threadsafety problems with shared empty buffer handles. b=120300 r=jag sr=alecf a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112363 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:07:15 +00:00
shanjian%netscape.com
33121badfe #120047 crash while loading http://www.lupa.cz/anketa.phtml [@ ReadCMAPTableFormat4]
r=rbs, sr=waterson, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@112362 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-17 00:03:03 +00:00
serge%netscape.com
90b5568a5d fix for 108347; Crash (linux/unix only) after NPP_SetWindow() call into flash plugin with window->width[height] <= 0; r=peterl; sr/a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112361 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:57:10 +00:00
rogerl%netscape.com
05b6357bfa Incremental fixes for Packages/Import/Use etc.
git-svn-id: svn://10.0.0.236/trunk@112360 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:55:19 +00:00
shanjian%netscape.com
5eb4e3be11 #119659 Can't see hebrew with latest build
r=smontagu, sr=attinasi, a=dbaron


git-svn-id: svn://10.0.0.236/trunk@112359 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:50:56 +00:00
waterson%netscape.com
f6723b0a97 Bug 119504, 96748. Fix off-by-one error when computing right-edge of insertion sort. Fix problem with asynchronous insertion doesn't take into account open folders preceding the insertion point. r=varga@utcru.sk, sr=hyatt, a=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112358 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:45:42 +00:00
nhotta%netscape.com
4b90db978f Fixed freeing wrong memory when the collation key creation fails, bug 119917, r=bhuvan, sr=sspitzer, a=dbaron.
git-svn-id: svn://10.0.0.236/trunk@112357 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:43:27 +00:00
waterson%netscape.com
1c0bf9e4d5 Bug 86276. Allow :-moz-anonymous-block and :cell-content to apply in all namespaces. r=dbaron, sr=attinasi, a=blizzard
git-svn-id: svn://10.0.0.236/trunk@112356 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 23:41:54 +00:00
ian.mcgreer%sun.com
8e74c502fd fix build bustage
git-svn-id: svn://10.0.0.236/trunk@112355 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 21:36:33 +00:00
shanjian%netscape.com
02b4150295 #120343 Several languages on Unicode pages rendering with unwanted squares
r=smontagu, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112354 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 21:32:18 +00:00
ian.mcgreer%sun.com
12e19f1e39 fix a crash seen in PSM by making sure a zero-length attribute zeroes the item inheriting it
git-svn-id: svn://10.0.0.236/trunk@112353 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 21:23:30 +00:00
ian.mcgreer%sun.com
57295d6507 fix for bug 115360, failure in pkcs12 backwards compatibility tests
git-svn-id: svn://10.0.0.236/trunk@112352 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 21:22:30 +00:00
sspitzer%netscape.com
82a3161113 fix for smoketest blocker #120324. back out the fix for #119051
(mailnews part was not tested or reviewed by module owner)
sr=mscott,bienvenu


git-svn-id: svn://10.0.0.236/trunk@112351 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 20:58:01 +00:00
rods%netscape.com
a7f5ff965f Backing out inadvertent checkin of changes for a different bug.
git-svn-id: svn://10.0.0.236/trunk@112350 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 20:43:33 +00:00
brade%netscape.com
dcf0b0b880 use correct members to get url string; bug 120344, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112349 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 20:15:57 +00:00
rpotts%netscape.com
d3d1f630c6 Backing out the patch for bug #120113. To clear smoketest blocker...
git-svn-id: svn://10.0.0.236/trunk@112348 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 19:01:43 +00:00
beard%netscape.com
2ac90a394f Reorder initializers in class Package to remove warnings.
git-svn-id: svn://10.0.0.236/trunk@112347 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 16:12:36 +00:00
nboyd%atg.com
2867e3c9b7 Add link to article with Rhino.
git-svn-id: svn://10.0.0.236/trunk@112346 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 16:07:12 +00:00
ian.mcgreer%sun.com
0ffa79b3fc unfortunately, the SDR key keeps the value of CK_KEY_TYPE in the coefficient field of an RSA key. This means some format is lost through the ASN.1 encoder/decoer. Trying again to account for that without affecting normal key type attributes.
git-svn-id: svn://10.0.0.236/trunk@112345 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 16:02:51 +00:00
despotdaemon%netscape.com
bebd4a8456 Pseudo-automatic update of changes made by amardare@qnx.com.
git-svn-id: svn://10.0.0.236/trunk@112344 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 15:38:00 +00:00
akkana%netscape.com
82d4f6351a 97157: fix typo
git-svn-id: svn://10.0.0.236/trunk@112343 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 09:27:57 +00:00
leaf%mozilla.org
702ba5824b Automated update
git-svn-id: svn://10.0.0.236/trunk@112342 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:57:18 +00:00
seawood%netscape.com
8705e5927c Link against MOZ_UNICHARUTIL_LIBS to get ToUpper() & ToLower().
Fixing tinderbox bustage (planetoid & slag)


git-svn-id: svn://10.0.0.236/trunk@112340 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:48:51 +00:00
seawood%netscape.com
6f97248f04 Oops. Missed a file for bug 92029
git-svn-id: svn://10.0.0.236/trunk@112339 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:45:57 +00:00
akkana%netscape.com
df45bf85c8 Fix the mac build (I hope) removing duplicate nsFind.cpp entries (why did this work for jfrancis?)
git-svn-id: svn://10.0.0.236/trunk@112338 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:40:25 +00:00
akkana%netscape.com
5294622997 Fix the mac build (I hope) removing the ftp password setting
git-svn-id: svn://10.0.0.236/trunk@112337 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:33:39 +00:00
rogerl%netscape.com
f475c1b95a More Package/Import implementation.
git-svn-id: svn://10.0.0.236/trunk@112335 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 08:30:56 +00:00
timeless%mac.com
56d3168d3b Bug 117740 bad style in Cut calls in nsJARURI::SetSpec
r=redfive sr=jag


git-svn-id: svn://10.0.0.236/trunk@112333 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:31:45 +00:00
timeless%mac.com
56db06291d Bug 117386 Crash changing themes [@ nsXBLPrototypeResources::FlushSkinSheets]
r=dbradley sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112331 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:18:00 +00:00
akkana%netscape.com
5f59a7f7c9 97157: pref for new faster find code. r=jfrancis sr=kin
git-svn-id: svn://10.0.0.236/trunk@112330 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:07:49 +00:00
seawood%netscape.com
765b9b8478 Fix --enable-debugger-info-modules=yes case.
Thanks to hoshem@mel.comcen.com.au (Michael Hore) for the patch.
Bug #114980 r=cls


git-svn-id: svn://10.0.0.236/trunk@112329 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:06:45 +00:00
akkana%netscape.com
7641a5fe9e 97157: New faster find-in-page.
This is still work in progress and hasn't had all the bugs ironed out
  yet, so for now, it's preffed off by default ("browser.new_find").
  r=jfrancis sr=kin


git-svn-id: svn://10.0.0.236/trunk@112328 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:05:40 +00:00
rjesup%wgate.com
31eb34c6c9 Bug 119843: negative voidarray index. r=rjesup@wgate.com, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112327 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 07:03:26 +00:00
law%netscape.com
d4c9402114 Bug 88123 (and 85860): re-use command line handling code in nsAppRunner when starting a second time on Win32; r=sgehani, sr=blake
git-svn-id: svn://10.0.0.236/trunk@112326 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:48:14 +00:00
rogerl%netscape.com
71667da74b Fixed RegExp bug #72964, r=khanson, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112325 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:47:06 +00:00
law%netscape.com
35158043a6 Bug 85860; changing assertion to warning because the other change for this bug brings a new window to the foreground sooner and the assertion is annoying; r=danm, sr=jag
git-svn-id: svn://10.0.0.236/trunk@112324 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:43:45 +00:00
jaggernaut%netscape.com
22c6131b1c Bug 113722: add moveToAlertPosition() and centerWindowOnScreen() to <dialog/>.r=hyatt, sr=hewitt. This will also fix bug 110459.
git-svn-id: svn://10.0.0.236/trunk@112323 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:42:39 +00:00
timeless%mac.com
bcd2e1bc81 Bug 117386 Crash changing themes [@ nsXBLPrototypeResources::FlushSkinSheets]
r=dbradley sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112322 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:40:47 +00:00
law%netscape.com
6c65f2a8f3 Bug 87075; move Choose... button to same row as text field, like on edit dialog; r=sgehani, sr=jag
git-svn-id: svn://10.0.0.236/trunk@112321 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:33:23 +00:00
law%netscape.com
ceee5ad10d Bug 119904; check for empty mime type strings properly; r=bzbarsky, sr=jag
git-svn-id: svn://10.0.0.236/trunk@112320 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:30:40 +00:00
mkaply%us.ibm.com
672ef24672 #73206
rs=darin
Add copies of MPL and NPL to chrome


git-svn-id: svn://10.0.0.236/trunk@112319 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:24:13 +00:00
seawood%netscape.com
7ae978edf3 Some versions of libc do not define R_PPC_*, PowerPC relocation defines, so skip that section entirely.
Bug #119697


git-svn-id: svn://10.0.0.236/trunk@112318 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:18:54 +00:00
rogerl%netscape.com
3b10829097 Fixed RegExp bugs #105972 & #87231. r=khanson, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112317 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:06:34 +00:00
bryner%netscape.com
418950129c Bug 120224 - make "Use XBL Forms" pref actually work if you set it in your profile, instead of all.js. r=ben, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@112316 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 06:01:42 +00:00
ccarlen%netscape.com
f1274efa1d Removing file made obsolete by fix to bug 100828. r=rjc/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@112315 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:52:50 +00:00
timeless%mac.com
553441aa4a Bug 118105 [Xlib] XPFE code does not treat Xlib toolkit like GTK+ toolkit
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=jag


git-svn-id: svn://10.0.0.236/trunk@112314 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:30:26 +00:00
cmanske%netscape.com
38031f0402 Let 'Edit Page' use the focused frame, b=89975, r=syd, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112313 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:29:43 +00:00
brendan%mozilla.org
789f2defb4 Simplify #ifdefs in JS_Assert to default to fprintf (45673, debug only, r=rogerl, sr=me, patch from jband).
git-svn-id: svn://10.0.0.236/trunk@112312 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:17:58 +00:00
brendan%mozilla.org
d06125755d Checking in patch for rob1@rekl.yi.org, r=khanson, sr=brendan (but neither file is part of the build).
git-svn-id: svn://10.0.0.236/trunk@112311 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:12:53 +00:00
leaf%mozilla.org
e638e38336 Automated update
git-svn-id: svn://10.0.0.236/trunk@112310 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:12:19 +00:00
seawood%netscape.com
a9308f6d58 Use dynamic library & xpidl_module names from nmake build for win32 gmake builds for compatibility.
bug #58981 sr=jag


git-svn-id: svn://10.0.0.236/trunk@112307 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:10:09 +00:00
bzbarsky%mit.edu
cddd354756 Make the XP filepicker throw up alerts when the user picks a location
that the user does not have permissions to write to.  Bug 114399, patch
by Antonio Xu <antonio.xu@sun.com>, r=bryner, sr=jag


git-svn-id: svn://10.0.0.236/trunk@112306 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:09:48 +00:00
timeless%mac.com
6cd5066da3 Bug 119051 duplicate symbol breaks win32 static build
create and use nsIIOService::getQueryAttributeValue
r=dbradley sr=darin


git-svn-id: svn://10.0.0.236/trunk@112305 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:07:31 +00:00
rjc%netscape.com
9f19a943a2 Fix bug # 120069: #icons on <menu> issue. r=pink sr=ben
git-svn-id: svn://10.0.0.236/trunk@112304 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 05:06:54 +00:00
bryner%netscape.com
78157b67e7 Bug 104544 (unpainted horizontal lines in images when scrolling). If we get twip coordinates from layout that aren't on pixel boundaries, round the rect out to make sure we paint everything that we need to. r=pavlov, sr=jag/brendan.
git-svn-id: svn://10.0.0.236/trunk@112303 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:56:42 +00:00
pavlov%netscape.com
e6679a3be4 Fixing bug 90347 -- some JPEGs display with noise -- checking in for nivedita@netscape.com. r=pavlov sr=ben
git-svn-id: svn://10.0.0.236/trunk@112302 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:54:44 +00:00
dbaron%fas.harvard.edu
bf3150fa5b Fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@112301 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:48:24 +00:00
kaie%netscape.com
85f633cd64 b=117148 S/MIME tool fails to find certificate while signing
r=javi sr=alecf


git-svn-id: svn://10.0.0.236/trunk@112300 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:30:55 +00:00
kaie%netscape.com
b601525057 b=115010 Mail/News UI must provide detail info on signature/encryption status
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112299 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:29:26 +00:00
bzbarsky%mit.edu
67d58a4b94 Bug 90633. Use the URL extension for the temp file we pass to helpers
if it matches the extension list in the mime info.  r=law, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@112298 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:28:06 +00:00
bzbarsky%mit.edu
10615a6f15 Fix bug 109463. IE will fire onclick() on submit buttons when
submitting form via enter in text field.  We should do the same.
r=rods,jkeiser,rjesup@wgate.com.  sr=jst


git-svn-id: svn://10.0.0.236/trunk@112297 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:27:55 +00:00
timeless%mac.com
0c05cc6914 Bug 118528 Access Violation [@inDOMView::AppendKidsToArray] [aKids==0]->GetLength
r=bzbarsky@mit.edu sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112296 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:21:08 +00:00
rginda%netscape.com
2b694a6e37 bug 120200, add "D" accesskey to tasks->tools->debugger
git-svn-id: svn://10.0.0.236/trunk@112295 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:07:31 +00:00
ben%netscape.com
28f877330a Fix .9.8 bugs:
115180 - saving a complete page on top of an existing complete page messes up
116167 - "Save Image" uses POST method
116445 - gzip files expanded when downloaded via "save link as"
115181 - saving a file sometimes results in an unpopulated progress dialog that does not go away
42441 - Save as Plain Text
115148 - save as dialog does not remember last directory used
115440 - File/Save Page does not work for PDF files
116263 - "File Type" selection in Save Page dialog is not remembered
115395 - Save Page as full page mpg does not work
115210 - Save Page as for plain text is not intelligent
115087 - Doing save page on an image Document should not save image document HTML

Nature of fixes described here:
http://bugzilla.mozilla.org/show_bug.cgi?id=120174

r=law, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@112294 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 04:00:28 +00:00
dbaron%fas.harvard.edu
5f33a51792 Fix bustage in bad preprocessor syntax.
git-svn-id: svn://10.0.0.236/trunk@112293 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:50:10 +00:00
bryner%netscape.com
805c50bab2 Fix for focus crash bugs 107844, 104297, and 109645. Make sure the window doesn't get deleted out from under us. r=saari, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@112292 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:36:50 +00:00
bzbarsky%mit.edu
b87627d071 Bug 104480. "EqualsIgnoreCase(nsAutoString(foo)) is bad and should
die." r=alecf, sr=jag


git-svn-id: svn://10.0.0.236/trunk@112291 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:31:25 +00:00
wtc%netscape.com
f3b808bdf3 Bugzilla bug 119340: added a debug printf statement.
git-svn-id: svn://10.0.0.236/trunk@112290 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:29:06 +00:00
tingley%sundell.net
893605a066 Checkin for doronr@naboonline.com to fix bug 117517 -- move "Enable js for
mail/news" to the new scripts/windows pref pane.
r=db48x, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@112289 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:26:28 +00:00
justdave%syndicomm.com
6438794986 Fix for bug 99608: dependency mails are no longer sent if the dependent bug can't be seen by the would-be recipient of the email.
Patch by Jake Steenhagen and David Kilzer
r= gerv, justdave


git-svn-id: svn://10.0.0.236/trunk@112288 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:25:52 +00:00
bryner%netscape.com
ee9394c3ba Removing unneeded width/height on sliders (bug 120031). r=hixie, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@112287 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:24:41 +00:00
rods%netscape.com
1174e8e035 Fixes width of viewer area in PrintPreview
Bug 109564 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112286 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:24:09 +00:00
pavlov%netscape.com
aea1de05df fixing bug 120041 r=timeless rs=darin
git-svn-id: svn://10.0.0.236/trunk@112285 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:23:50 +00:00
darin%netscape.com
3a19ed2019 fixes bug 42898 "iDNS support"
r=nhotta, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112284 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:23:23 +00:00
rods%netscape.com
9fb5fed55b Move Paper size from XP Page Setup dialog to Linux PrintJobOptions dialog.
Bug 120062 r=roland,dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112282 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:21:09 +00:00
bienvenu%netscape.com
9d63515426 use GetRootMsgFolder 119579 r/sr = sspitzer
git-svn-id: svn://10.0.0.236/trunk@112281 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:19:22 +00:00
rods%netscape.com
4ac18164e3 Fixes round off error for scaling and fixes to var names
Bug 120072 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112280 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:16:01 +00:00
hewitt%netscape.com
8f14b53954 109585 - Exit Minimal Chrome mode button does not appear in Modern skin, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112279 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:14:28 +00:00
rods%netscape.com
84207de06a turns on scaling and fixes it
Bug 120075 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112278 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:11:28 +00:00
dbaron%fas.harvard.edu
865e4ed64a Create a mechanism for allowing a |Destroy| method to be called on buffer handles whose refcount hits 0 instead of |delete|. Use that mechanism to fix threadsafety problems with shared empty buffer handles, restoring sharable strings to their previous state of threadsafety. b=117153 sr=jag r=alecf
git-svn-id: svn://10.0.0.236/trunk@112277 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:08:22 +00:00
aaronl%netscape.com
f0e007cdfc Bug 120176. Active Accessibility: tweaks to STATE_OFFSCREEN. r=kmcclusk, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112276 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:07:03 +00:00
srilatha%netscape.com
16677aa346 Fix for bug # 118237. Removed shorPathBuf in thisApplication()
r=rdayal@netscape.com, sr=jaggernaut@netscape.com


git-svn-id: svn://10.0.0.236/trunk@112275 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:06:55 +00:00
jdunn%netscape.com
6972441d43 fixing xlC5.x compiler error: use a temp variable for the static_cast
sr=jaggernaut@netscape.com
# 119326


git-svn-id: svn://10.0.0.236/trunk@112274 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:06:47 +00:00
darin%netscape.com
4340fe524d another attempt at fixing bug 47617 "Connection to https needs to tell user
to install PSM if w/o"
patch=mpt,folk@popmail.com
r/sr=darin,blizzard


git-svn-id: svn://10.0.0.236/trunk@112273 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:04:53 +00:00
aaronl%netscape.com
10b75e686e Bug 120019. Fix crashes in browse with caret feature. r=bryner, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@112272 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:04:01 +00:00
aaronl%netscape.com
a0a3bba38f Bug 70219. Add nsIDOMWindow::SetTextZoom() and nsIDOMWindow::GetTextZoom(), forwarded from nsIDOMMarkupViewer. r=valeski, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112271 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:03:53 +00:00
rods%netscape.com
63c4896929 Getting rid of event processor, it is no longer needed and will fix this problem
109566  r=kmcclusk sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112270 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:02:35 +00:00
darin%netscape.com
0749c9e0e6 backing out andreas' fix for bug 119071. it's causing serious problems
with relative links.


git-svn-id: svn://10.0.0.236/trunk@112269 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:01:38 +00:00
varga%utcru.sk
763dd8095d Fixes for:
94653  - can't right align text in outliner cell
95730  - White block displays/artifacts in the highlight area after Move/Drag mail to folder.
112238 - [RFE] Outliner widget should support line-through
116855 - Modify outliner builder syntax to match outliner content model
118093 - Make -moz-image-region work in the outliner
118113 - Too little space between pref category tree and pref page
118154 - Category now has a column picker
118647 - Memory leak of 52 bytes from 1 block allocated in nsOutlinerBodyFrame::CheckVerticalOverflow
118660 - left arrow no longer moves to parent category
119751 - Branches are open by default and then closed after launch.

- outermost <outlinerchildren> has "-moz-box-flex: 1" by default
  and it actaully replaced <outlinerbody>
- all event handlers moved on <outliner>
- content builder, outliner builder and content view use <outliner> as root
  element
- nsIBoxObject has a new attribute "element"
- all CSS rules outlinerbody:foo replaced with outlinerchildren:foo
- drop feedback is now skinable

r=waterson for the changes in mozilla/content
r=sspitzer on the mailnews parts
r=blake on the bookmarks/history
r=bryner on the OutlinerBodyFrame and OutlinerContentView changes

sr=hyatt,hewitt


git-svn-id: svn://10.0.0.236/trunk@112268 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 03:01:28 +00:00
pavlov%netscape.com
6a8cf7679a fixing typo with checkin from last night. r=danm sr=darin
git-svn-id: svn://10.0.0.236/trunk@112267 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 02:57:55 +00:00
mcafee%netscape.com
7ea34596bb Oops, forgot about the 2x try on layout, adding parameter for other url
git-svn-id: svn://10.0.0.236/trunk@112266 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 02:50:15 +00:00
mcafee%netscape.com
0edbd55782 parameterizing per-page pageloader timeout value LayoutPerformanceTestPageTimeout.
git-svn-id: svn://10.0.0.236/trunk@112265 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 02:18:27 +00:00
dbaron%fas.harvard.edu
bb05524539 Fix windows bustage.
git-svn-id: svn://10.0.0.236/trunk@112264 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 02:04:20 +00:00
sfraser%netscape.com
8080aadf09 Backing out my project change, since dbaron came up with a better way.
git-svn-id: svn://10.0.0.236/trunk@112263 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:41:31 +00:00
rogerl%netscape.com
49c1025d50 Fixed VC++ build errors for GC stuff. Package & Namespace stuff.
git-svn-id: svn://10.0.0.236/trunk@112262 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:41:02 +00:00
sfraser%netscape.com
db023e6295 Fix Inspector link error by adding bogus dependencies on two internal content files, which needs to be fixed at a later date. Bug 79091 exists on this.
git-svn-id: svn://10.0.0.236/trunk@112261 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:37:40 +00:00
dbaron%fas.harvard.edu
764654ae65 Fix inspector link errors by adding a method on nsICSSStyleRule that forwards GetValue to nsCSSDeclaration.
git-svn-id: svn://10.0.0.236/trunk@112260 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:34:47 +00:00
attinasi%netscape.com
54e0f526d0 Moved these files to new subfolder 'obsolete'
git-svn-id: svn://10.0.0.236/trunk@112259 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:20:39 +00:00
attinasi%netscape.com
5ae73ca7b1 New layout documents: templates and space manager documentation. See bug 115310 and join in the fun
git-svn-id: svn://10.0.0.236/trunk@112258 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:06:26 +00:00
seawood%netscape.com
05e43f5620 Remove BUILD_OFFICIAL requirement for building packages.
Thanks to David Baron <dbaron@fas.harvard.edu> for the patch.
Bug #119649 r=cls


git-svn-id: svn://10.0.0.236/trunk@112257 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:06:18 +00:00
morse%netscape.com
fa733a7bbe fix bustage by backing out last checkin
git-svn-id: svn://10.0.0.236/trunk@112255 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 01:00:25 +00:00
attinasi%netscape.com
fdab0661dd Moving obsolete layout documents to new subfolder.
git-svn-id: svn://10.0.0.236/trunk@112254 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:55:54 +00:00
bstell%ix.netcom.com
7ba2e58713 bug 112490 - add "always use anti alias scaled bitmap font (AASB)"
r=Roland.Mainz@informatik.med.uni-giessen.de, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@112253 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:42:08 +00:00
dbaron%fas.harvard.edu
91e2a14e0f Fix filter reporting in XP filepicker, and thus fix distinction between HTML-only and complete web page saving. b=116418 r=bzbarsky sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112252 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:41:49 +00:00
dbaron%fas.harvard.edu
495b2a984a Undo my backout of the code to flush trace-malloc logfiles. b=111651 rs=brendan
git-svn-id: svn://10.0.0.236/trunk@112251 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:40:39 +00:00
dbaron%fas.harvard.edu
f6776f3e37 Fix stack walking code to work correctly on RedHat 7.2 systems. b=106616 r=jag rs=blizzard
git-svn-id: svn://10.0.0.236/trunk@112250 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:40:36 +00:00
seawood%netscape.com
9d95c45a61 Add support for our multiple component subdirs as well as finding the proper
nspr includes & libs.  Split DEFINES used to build mozilla into separate option, --defines.
Bug #92029 r=bryner


git-svn-id: svn://10.0.0.236/trunk@112249 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:30:15 +00:00
andreas.otte%debitel.net
57b77286d2 fix bug 119071[Can not ftp files from / on Cobalt web server], changed
CoalesceDir in a way that it no longer drops to much ../ in a path but
leaves them unresolved. This way ftp urls like
ftp://user:<password>@ftp.host.com/../../logs can be successfully used,
r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@112248 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:25:18 +00:00
morse%netscape.com
78627c8fc6 reduce wallet footprint by 110K, r/sr=jag,alecf
git-svn-id: svn://10.0.0.236/trunk@112247 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:24:49 +00:00
morse%netscape.com
4465eca738 cookie list doesn't scroll when last visible cookie is deleted, r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@112246 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:19:07 +00:00
rangansen%netscape.com
cd65875636 bug# 107491 - missed this last time
git-svn-id: svn://10.0.0.236/trunk@112245 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:18:58 +00:00
brendan%mozilla.org
07d1aed3b1 Checking in patch for Steven Cole <scole@planetweb.com> to fix js_DoubleToECMAInt32 (120083, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@112244 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:17:16 +00:00
timeless%mac.com
85980b3c4a Bug 119310 preferences + open in new tab + clicking browser crashes @nsLoadGroup::RemoveRequest
assert instead of crashing if some load fails
r=darin sr=waterson


git-svn-id: svn://10.0.0.236/trunk@112243 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:16:51 +00:00
pschwartau%netscape.com
9f23c83c58 Adding toInt32 tests for numbers between -2^31 and -2^32 with fractional parts. See bug 120083.
git-svn-id: svn://10.0.0.236/trunk@112242 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:16:48 +00:00
shanjian%netscape.com
c3644a3bee #118000 support unicode plane 1 characters
r=ftang, sr=attinasi
nsCompressCharMap was modified to take ucs4 directly.
nsFontMetricsWin was modified to handle surrogate pair.


git-svn-id: svn://10.0.0.236/trunk@112241 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:15:58 +00:00
danm%netscape.com
02b9e2d529 call embeddingwindow->SetFocus from Focus(). bug 57841 r=hyatt,saari
git-svn-id: svn://10.0.0.236/trunk@112240 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:11:51 +00:00
danm%netscape.com
acb5339665 support nsIEmbeddingSiteWindow and gut nsIESW::SetFocus. bug 57841 r=hyatt,saari
git-svn-id: svn://10.0.0.236/trunk@112239 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:11:29 +00:00
danm%netscape.com
115169208a support nsIEmbeddingSiteWindow. bug 57841 r=hyatt,saari
git-svn-id: svn://10.0.0.236/trunk@112238 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:11:06 +00:00
ian.mcgreer%sun.com
ef3b20d931 fix up problems in last change
git-svn-id: svn://10.0.0.236/trunk@112235 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:04:16 +00:00
shanjian%netscape.com
e3adb86450 #118000 support unicode plane 1 characters
r=ftang, sr=attinasi
this part fix the line breaker. Surrogate pair should be be separated.


git-svn-id: svn://10.0.0.236/trunk@112234 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:03:16 +00:00
shanjian%netscape.com
8f796b42ef #118000 support unicode plane 1 characters
r=ftang, sr=attinasi
this part of checkin added support to NCR of non-BMP characters.


git-svn-id: svn://10.0.0.236/trunk@112233 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:00:50 +00:00
despotdaemon%netscape.com
5dfe963422 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@112232 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-16 00:00:31 +00:00
dbaron%fas.harvard.edu
c94020b3da Add nsValueArray.cpp to the build for blythe.
git-svn-id: svn://10.0.0.236/trunk@112231 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:57:01 +00:00
seawood%netscape.com
59b304bce0 Move the initialization of the global component info variable for static build so that --version works.
Bug #120080 r=dbaron sr=alecf


git-svn-id: svn://10.0.0.236/trunk@112230 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:53:06 +00:00
mkaply%us.ibm.com
c32da4d4f5 #73206
rs=darin
Add copies of MPL and NPL to chrome


git-svn-id: svn://10.0.0.236/trunk@112229 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:45:09 +00:00
dbaron%fas.harvard.edu
08199e8c62 Makefiles must use tabs in some places. Fixing bustage from rbs's checkin.
git-svn-id: svn://10.0.0.236/trunk@112228 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:35:27 +00:00
alecf%netscape.com
26a9ef64b1 Fix for bug 118915, by Morten@Nilsen.com, r=db48x, sr=alecf - add more descriptive title to images
git-svn-id: svn://10.0.0.236/trunk@112227 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:34:32 +00:00
rangansen%netscape.com
e61b0b8a71 bug#107491, r=javi, sr=blizzard Makes error handling more detailed
git-svn-id: svn://10.0.0.236/trunk@112226 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:33:00 +00:00
morse%netscape.com
2af10dd8ec bug 59652, remove warnings about uninitialized variables, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@112225 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:31:19 +00:00
pinkerton%netscape.com
da76edeb34 Pull in layout/content/locale for nsITheme work and fix bustage. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@112224 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:30:20 +00:00
timeless%mac.com
99e64ff6d9 Bug 112635 [Xlib] XXlibRgb revamp ..
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timecop@network.email.ne.jp rs=attinasi


git-svn-id: svn://10.0.0.236/trunk@112223 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:30:16 +00:00
pschwartau%netscape.com
9a2d8a8068 Adding toInt32 tests for numbers greater than 2^31 with fractional parts. See bug 120083.
git-svn-id: svn://10.0.0.236/trunk@112222 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:27:12 +00:00
blythe%netscape.com
fd1d92a93d proactive change to avoid MAC bustage from last checkin
git-svn-id: svn://10.0.0.236/trunk@112221 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:20:35 +00:00
sfraser%netscape.com
5c83adb01f Fixing build bustage for blythe; fix header name in MANIFEST.
git-svn-id: svn://10.0.0.236/trunk@112220 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:15:02 +00:00
mkaply%us.ibm.com
106ee56530 #119526
r=mkaply, sr=blizzard
OS/2 only - code from dainis to fix some PS initialization problems


git-svn-id: svn://10.0.0.236/trunk@112219 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:14:09 +00:00
dbragg%netscape.com
92bfe8753c Updating localeVersion value to 0.9.8. Fixes bug 119567. r=tao@netscape.com, sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112218 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:11:03 +00:00
mkaply%us.ibm.com
b5851dd0fb No bug - correct some incorrect system color mapping
git-svn-id: svn://10.0.0.236/trunk@112217 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:07:03 +00:00
pinkerton%netscape.com
020dc70554 use setWindowGroup to put popups in the tooltip layer on osx and make it so they don't get activate events r=sdagley/sr=sfraser. bug# 108804
git-svn-id: svn://10.0.0.236/trunk@112216 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:06:20 +00:00
pinkerton%netscape.com
92349898c8 pull in InterfacesXStubs for CarbonLibFramework. r=sdagley/sr=sfraser. bug# 108804
git-svn-id: svn://10.0.0.236/trunk@112215 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:04:34 +00:00
rbs%maths.uq.edu.au
7c662a4696 Add transliteration for U+2146 (&DifferentialD;) b=119664, r=shanjian, rs=waterson
git-svn-id: svn://10.0.0.236/trunk@112214 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 23:00:56 +00:00
alecf%netscape.com
bfe2c85e5b factor out some table-based string manipulation routines to make it easier to seperate unicode vs. 8-bit character strings. bug 114450, r=dbaron sr=jag
git-svn-id: svn://10.0.0.236/trunk@112213 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:57:29 +00:00
rbs%maths.uq.edu.au
4bbb7aaef3 Build changes to install the svg.dtd file to be used when remapping public IDs to local DTDs, bug 113400, r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112212 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:57:10 +00:00
rbs%maths.uq.edu.au
3fad341d3d Fix bug 113400 - remapknown public IDs (such as that of XHTML+MathML or SVG) to local DTD files. r=harishd, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112211 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:52:32 +00:00
racham%netscape.com
dd398c8c26 Fixing bug 103689. Make sure that the right set of addresses are pre-populated in the compose window based on the items selected in the AdderssBook window. Also fixes the new card created from the AddressBook window's file new menu should reflect the right parent addressbook. r=ssu, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@112210 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:51:53 +00:00
hewitt%netscape.com
8efb95530d 110001 - onpagehide should not fire events when traversing back in the wizard, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112209 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:51:29 +00:00
dbradley%netscape.com
71da3c517b Bug 111068 - SyncXPCContextLists uses of XPCContext::Mark is not thread safe. patch by jband, r=dbradley, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112208 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:49:46 +00:00
peterlubczynski%netscape.com
c2804a94df Fix for variable names in NPP_HandelEVent, bug 118789 r=av, sr=beard
git-svn-id: svn://10.0.0.236/trunk@112205 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:45:56 +00:00
peterlubczynski%netscape.com
834721d540 Fix for plugins consuming context menu events, bug 118789 r=av, sr=beard
git-svn-id: svn://10.0.0.236/trunk@112204 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:45:26 +00:00
akkana%netscape.com
0f2ad45d57 112139: fix infinite loop in rewrap. r=brade sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112203 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:43:42 +00:00
blythe%netscape.com
8f002dba27 Fix bug 107270
Reduce nsCSSDeclaration footprint
r=dbaron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112202 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:43:37 +00:00
dcone%netscape.com
a7aea2a7d6 Fix print preview. r=rods sr = attinasi bug =117072. Only control backgrounds painting for printing.
git-svn-id: svn://10.0.0.236/trunk@112201 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:37:15 +00:00
andreas.otte%debitel.net
5b26fee390 fix bug 114063 [error loading FTP URL served by publicfile] fix
uninitialized time/date struct that caused a crash, fix so that we can
navigate this strange server, r=bbaetz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@112200 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:34:32 +00:00
mkaply%us.ibm.com
0bfc737416 #120127
r=pedemont, sr=blizzard
OS/2 only - store away the lastPath from the file dialog and use it if one wasn't passed in


git-svn-id: svn://10.0.0.236/trunk@112199 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:32:18 +00:00
rjc%netscape.com
63e76f94e8 Fix bug # 120037: leading '.' indicates hidden when on Mac OS X. r=ccarlen sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112198 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:31:19 +00:00
sonja.mirtitsch%sun.com
509ce4059f Ians debug change to find out the state of the DB after multi recepient test
git-svn-id: svn://10.0.0.236/trunk@112197 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:29:47 +00:00
kaie%netscape.com
a86298e66b b=93571 Remove lock icon from messenger windows
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112196 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:23:21 +00:00
jband%netscape.com
240013212c initial checkin of support for scriptable wrappers around interface info and for generic interface info sets that can be manually populated - NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@112195 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:22:16 +00:00
sicking%bigfoot.com
e44c69ea26 Fix crasher in key()'s when context-node is a document.
b=120074 r=Pike,peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@112194 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:20:30 +00:00
bryner%netscape.com
d8b59ec2b9 Changing location of form stylesheet for XBL forms. r=hewitt, sr=hyatt. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@112193 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:19:12 +00:00
javi%netscape.com
2f4c8eecf7 Include NSS.Prefix in the optimized target instead of NSDebug.Prefix
git-svn-id: svn://10.0.0.236/trunk@112192 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:11:39 +00:00
dougt%netscape.com
acd64b8c12 Backing out ben. this change cause 120118
git-svn-id: svn://10.0.0.236/trunk@112191 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 22:06:42 +00:00
ian.mcgreer%sun.com
58cb3db0bc revert last change, and move conversion of attribute value to host long up to where the long variable actually appears.
git-svn-id: svn://10.0.0.236/trunk@112190 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 21:45:38 +00:00
ian.mcgreer%sun.com
b09f4e3c33 fix SDR on big-endian platforms. The leading zeros in the RSA coefficient have been stripped, but PKCS#11 needs them back in order to form a CK_ULONG correctly.
git-svn-id: svn://10.0.0.236/trunk@112189 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 19:20:34 +00:00
pinkerton%netscape.com
8dc9239d3d fixes bustage. had to wrap some things in TARGET_CARBON.
git-svn-id: svn://10.0.0.236/trunk@112188 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 18:08:09 +00:00
nboyd%atg.com
d4a092d480 Update for 1.5R3.
git-svn-id: svn://10.0.0.236/trunk@112187 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 17:35:09 +00:00
briane%qnx.com
8c9d094a98 PHOTON ONLY, not part of build
Fixes for drag code headers, allow keypad to function correctly when num-lock
is off/on


git-svn-id: svn://10.0.0.236/trunk@112186 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:56:33 +00:00
briane%qnx.com
2c90d84d6d PHOTON ONLY, not part of build
Fixes for rep image drawing, printing changes (PR=112048)


git-svn-id: svn://10.0.0.236/trunk@112185 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:55:22 +00:00
briane%qnx.com
430686b3ac PHOTON ONLY, not part of build
Updates to this test app and fixed printing support.


git-svn-id: svn://10.0.0.236/trunk@112184 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:54:01 +00:00
briane%qnx.com
715efbd04f PHOTON only, NOT PART OF BUILD
Fixes for printing (PR:112048), Fixes for context menu image saving, addition
of scrollbar navigation via resources.
Also removed references to nsIDiskDocument.h.


git-svn-id: svn://10.0.0.236/trunk@112183 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:53:21 +00:00
timeless%mac.com
7629ade22b bustage, adding a reinterpret cast between jschar* and PRUnichar*
git-svn-id: svn://10.0.0.236/trunk@112182 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:30:57 +00:00
pinkerton%netscape.com
494e0107d0 add nsNativeThemeMac for mach-o build.
git-svn-id: svn://10.0.0.236/trunk@112181 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:26:16 +00:00
pinkerton%netscape.com
a78bf20392 tweak scrollbars and fix non-carbon bustage. i'll get back to this later.
git-svn-id: svn://10.0.0.236/trunk@112180 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 16:25:38 +00:00
cmanske%netscape.com
056a1f1c22 Command changes for bug 109296 (Link Checker dialog, r=akkana, sr=ben); mostly bug 45495: insert form elements, by neil@parkwaycc.co.uk, r=cmanske, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112179 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:49:46 +00:00
ian.mcgreer%sun.com
9e90fd1474 Fix for serial numbers which are negative when intrepreted as signed integers. Since the ASN.1 encoder now add/strips leading zeros to INTEGERs, the hand decoder written here will incorrectly decode serial numbers passed to it that have leading zeros.
git-svn-id: svn://10.0.0.236/trunk@112178 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:43:35 +00:00
cmanske%netscape.com
56956d2a21 Moved Composer-only menuitems to new overlay, bugscape bug 10540 (and remove warning in prefs dialog), r=syd, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112177 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:42:29 +00:00
timeless%mac.com
02076e4267 Add JS Error reporter to XBL Prototype compilation, and prevent crashes when the compilation fails r=hyatt sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112176 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:40:57 +00:00
cmanske%netscape.com
23ac795aea Link Checker dialog, b=108296, r=akkana, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112175 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:35:58 +00:00
cmanske%netscape.com
4d8d69c021 Link Checker dialog, r=akkana, sr=ben
git-svn-id: svn://10.0.0.236/trunk@112174 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:34:06 +00:00
cmanske%netscape.com
a39f05bb38 New UI files added for bugs 109296 (Link Checker dialog, r=akkana, sr=ben) and 45495 (insert form elements, by neil@parkwaycc.co.uk, r=cmanske, sr=ben)
git-svn-id: svn://10.0.0.236/trunk@112173 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:32:37 +00:00
pinkerton%netscape.com
be782d1e51 theme fix-up for hyatt. r=sfraser/sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112172 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 15:32:28 +00:00
pinkerton%netscape.com
0e4ed82886 nsITheme impl on mac. r=sfraser/sr=hyatt. bugs 115731, 115733, 115735, 115737, 115740, 115749, 115760, 115763
git-svn-id: svn://10.0.0.236/trunk@112171 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 14:59:21 +00:00
glazman%netscape.com
3db2c2bdfb [CSS] Composer should be able to unbold/unitalicize invalid markup; b=119447, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112170 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 14:44:00 +00:00
rods%netscape.com
3957b4457e This enables platforms to set a pref as to whether they allow print from print preview.
(I checked this in with the wrong value because I was testing it)
Bug 118623 r=roland sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112169 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 11:28:10 +00:00
sicking%bigfoot.com
d34792caa9 Implementation of the xsl:apply-imports instruction.
b=94002 r=peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@112168 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 10:37:00 +00:00
sspitzer%netscape.com
117883ff09 fix for blocker bug #120049. corrupting localstore.rdf.
thanks to jrgm@netscape.com for the patch, this will make tomorrow a lot
less painful.  r=sspitzer, sr=ben


git-svn-id: svn://10.0.0.236/trunk@112167 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 09:34:31 +00:00
rbs%maths.uq.edu.au
afd0870f33 Fix regression from the fix for bug 116161. The picky treatment of stretchy MathML characters involves additional style contexts whereas the default search of the background stops at the primary style context
git-svn-id: svn://10.0.0.236/trunk@112166 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 07:48:10 +00:00
ssu%netscape.com
9ce0b02459 fixing bug 90071 - Mozilla does not appear in Windows List of Mail Applications. r=curt, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@112165 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 07:20:31 +00:00
bbaetz%student.usyd.edu.au
4323993fd8 Bug 117805 - context menus don't work in XML documents
Patch by caillon@returnzero.com, r=heikki, sr=jag


git-svn-id: svn://10.0.0.236/trunk@112164 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 06:30:49 +00:00
rjc%netscape.com
e32bcea771 Fix potential build bustage due to case issue (which the Mac is leniant about)
git-svn-id: svn://10.0.0.236/trunk@112163 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:48:50 +00:00
pavlov%netscape.com
afe7635f3c fixing multiple reload of same image on reload. bug 108161 (and others) r=bryner sr=darin
git-svn-id: svn://10.0.0.236/trunk@112162 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:23:33 +00:00
rjc%netscape.com
bd0b381197 Fix bug # 113894: RDF persistence breaks when there is a / in the file path. Verbal r=pavlov and sr=waterson
git-svn-id: svn://10.0.0.236/trunk@112161 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:20:37 +00:00
aaronl%netscape.com
ee3bad7608 Bug 118018. Active Accessibility: Bounds fixes. r=dbaron, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112160 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:20:27 +00:00
hewitt%netscape.com
2eaf7eb4f1 fixing nebiros bustage
git-svn-id: svn://10.0.0.236/trunk@112159 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:05:40 +00:00
pavlov%netscape.com
0e466ece60 removing PHOTON define. patch from briane@qnx.com
git-svn-id: svn://10.0.0.236/trunk@112158 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 05:01:03 +00:00
hewitt%netscape.com
b0aea8f95a 119168 - DOM Inspector DOM tree view doesn't load, r=jag, sr=bryner
git-svn-id: svn://10.0.0.236/trunk@112157 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 04:50:47 +00:00
cltbld%netscape.com
a02a22d5e1 rm dist for all builds, depend and clobber to avoid accumulating cruft. Some whitespace changes also. (116648)
git-svn-id: svn://10.0.0.236/trunk@112156 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 04:19:31 +00:00
naving%netscape.com
779a775e02 119504 backing out the fix for bug 119504 could break other cases.
git-svn-id: svn://10.0.0.236/trunk@112155 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 04:18:12 +00:00
dbaron%fas.harvard.edu
3883166002 Adding mimetype temporarily to REQUIRES to fix bustage from rpotts's checkin.
git-svn-id: svn://10.0.0.236/trunk@112154 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 03:53:33 +00:00
rginda%netscape.com
cd42033d11 remove conflict markers
git-svn-id: svn://10.0.0.236/trunk@112153 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 03:16:48 +00:00
harishd%netscape.com
d2bc486a83 Fix ports bustage. Removing MOZ_SVG stuff for now since the code in nsExpatDriver is a bit different than nsExpatTokenizer. Will checkin a correct fix soon.
git-svn-id: svn://10.0.0.236/trunk@112152 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 03:03:54 +00:00
waterson%netscape.com
f1ae89bd76 Fix monkeypox build bustage.
git-svn-id: svn://10.0.0.236/trunk@112151 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 03:01:18 +00:00
rpotts%netscape.com
03c727b10a bugscape #11602. Embedding clients were unable to render data if no content-type was available... This is a temporary patch that will be replaced with a correct fix soon...
git-svn-id: svn://10.0.0.236/trunk@112150 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 02:41:05 +00:00
sspitzer%netscape.com
898a53388e fix for #119675, implement LDIF export. r=dmose, sr=bienvenu
also fix a bug in the LDIF import code #116973.


git-svn-id: svn://10.0.0.236/trunk@112148 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 02:26:47 +00:00
ccarlen%netscape.com
5fe73517c2 Bug 56295 - doesn't work for file names > 31 chars. r=sdagley/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112147 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 02:22:39 +00:00
rods%netscape.com
1e7c4c726b need to check to see if the dialog was cancelled and then clean up
Bug 118017 r=spitzer sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112146 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 02:20:30 +00:00
waterson%netscape.com
95f2eab17e Bug 115926. Add support for `blob' literals. r=rjc,tingley; sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112145 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:57:17 +00:00
waterson%netscape.com
f6341b4290 Bug 118865, 33197. Support serialization of integer and date literals; support `parseType="Resource"'. r=rjc, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112144 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:56:15 +00:00
ian.mcgreer%sun.com
ee3a6d6fd8 force generated serial #'s to always be positive
git-svn-id: svn://10.0.0.236/trunk@112143 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:53:11 +00:00
rginda%netscape.com
be53614e41 add missing ;
git-svn-id: svn://10.0.0.236/trunk@112142 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:53:06 +00:00
rginda%netscape.com
31cd0c72b8 bug 119968, strict warning cleanup, patch=jscript@pacbell.net r=walk84@yahoo.com,me
git-svn-id: svn://10.0.0.236/trunk@112141 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:52:33 +00:00
ben%netscape.com
0f1370df3b 115440 (r=law@netscape.com, sr=brendan@mozilla.org) saving full page plugin does not work
along with some other bugs but I forget the #s. Full patch attached to 115440.
includes:
- persisting last directory saved to
- persisting last conversion type specified when saving a document
- ensuring that content-disposition is favored when choosing a default filename for a file
  (r=blake, sr=brendan)
- null checking document in call to saveInternal before accessing properties on it.


git-svn-id: svn://10.0.0.236/trunk@112140 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:38:16 +00:00
rods%netscape.com
9c8edbca5e need to check to see if the dialog was cancelled and then clean up
Bug 118017 r=spitzer sr=mscott


git-svn-id: svn://10.0.0.236/trunk@112139 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:29:02 +00:00
pavlov%netscape.com
ec9006ed1a patch from bug 116483 to avoid doing some pr_log related work when we don't need to. r=dougt sr=brendan
git-svn-id: svn://10.0.0.236/trunk@112138 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:20:47 +00:00
sfraser%netscape.com
d0aa803d0e Fix bug 103202; make nsLocalFileMac faster copying files by allocating a 512k buffer, and passing it to the MoreFiles routines that do file copying (which would otherwise use an internal 16K buffer). r=sdagley, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@112137 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:14:55 +00:00
rods%netscape.com
c86c67c408 added printWithSettings method for printing with PrintSettings
Bug 118352 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@112136 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:11:16 +00:00
pschwartau%netscape.com
05aae283e6 Correcting a typo in comments-
git-svn-id: svn://10.0.0.236/trunk@112135 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:07:28 +00:00
rods%netscape.com
58366cbd9b The page setup info was not being set into the dev mode when printing ssilently.
Bug 119959 r=dcone sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112134 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:06:32 +00:00
shanjian%netscape.com
c6c3fccd5a #102595 nsUnicodeToUTF8 does not handle surrogate pair correctly
r=bstell, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@112133 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 01:04:24 +00:00
bienvenu%netscape.com
ba3e8be820 use nsIMsgIncomingServer::GetRootMsgFolder method r/sr=sspitzer 119579
git-svn-id: svn://10.0.0.236/trunk@112131 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:54:26 +00:00
pschwartau%netscape.com
8c99a7cfd2 Initial add. Regression test for bug 119909.
git-svn-id: svn://10.0.0.236/trunk@112130 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:51:12 +00:00
dougt%netscape.com
c5d3109d91 116420 - Fixes broken directory listings if there is a broken symlink in that directory. r=pavlov, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112129 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:51:11 +00:00
dougt%netscape.com
4011d640c0 adding check for null. GetThreadEventQueue can return a null queue which we need to check for
git-svn-id: svn://10.0.0.236/trunk@112128 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:43:10 +00:00
bienvenu%netscape.com
f3f0a1435b whitespace cleanup (and remove null check before delete) r/sr=sspitzer, no bug
git-svn-id: svn://10.0.0.236/trunk@112127 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:43:07 +00:00
bienvenu%netscape.com
0e028bc5bf use nsIMsgIncomingServer::GetRootMsgFolder method r/sr=sspitzer 119579
git-svn-id: svn://10.0.0.236/trunk@112126 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:40:35 +00:00
harishd%netscape.com
97b505b95b Putting back the change that I just backed outsince it doesn't affect xul window performance. a=sheriff
git-svn-id: svn://10.0.0.236/trunk@112125 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:35:11 +00:00
darin%netscape.com
441b12b5b8 fixes bug 119625 "Can't enter new bug or post comments (POSTs turn into GETs)"
r=bbaetz, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@112124 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-15 00:07:46 +00:00
harishd%netscape.com
f1f8189502 Fixing regressions: In order to update the expat buffer position correctly do not block after processing a start element. b=119399, r=heikki, sr=jst. Update the expat buffer position if we're blocked after processing the end element. b=119727, r=heikki, sr=jst
git-svn-id: svn://10.0.0.236/trunk@112123 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:42:53 +00:00
bienvenu%netscape.com
b21a28d756 add strings for imap sharing privileges and acl r/sr=sspitzer 112096
git-svn-id: svn://10.0.0.236/trunk@112121 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:35:08 +00:00
harishd%netscape.com
6fa7148f5c Backing a part of my code to see if it improves xul window performance. a=sheriff
git-svn-id: svn://10.0.0.236/trunk@112120 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:34:37 +00:00
sfraser%netscape.com
f5ca579709 Fix port/GDevice management issues in Mac code, fixes bugs 113480, 103234, 105946, and 104781. Changes ensure that the current graphics device is set correctly when SetPort is used to change the current graphics port (to window or GWorld). r=pinkerton, rs=brendan
git-svn-id: svn://10.0.0.236/trunk@112119 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:26:49 +00:00
ian.mcgreer%sun.com
69f304d8ad fix for bug 115360, ASN.1 encoder/decoder should handle conversion of unsigned integers used in NSS to ASN.1 INTEGERs, and vice versa.
git-svn-id: svn://10.0.0.236/trunk@112118 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:20:43 +00:00
ian.mcgreer%sun.com
f4ff6b016e PKCS#11 needs to receive the serial number DER-encoded
git-svn-id: svn://10.0.0.236/trunk@112117 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:19:17 +00:00
av%netscape.com
21a5c77ebb Fix for bug 110094 -- winless plugins don't get right coordinates when scrolled, r=bnesse, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112116 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:16:37 +00:00
terry%mozilla.org
53b62b7633 Stop sending me mail.
git-svn-id: svn://10.0.0.236/trunk@112115 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 23:14:25 +00:00
bienvenu%netscape.com
5307dae965 add rootMsgFolder accessor to incoming server, make rootFolder interCaps r/sr=sspitzer 119579
git-svn-id: svn://10.0.0.236/trunk@112114 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:59:02 +00:00
brade%netscape.com
2ba0a37939 remove JS warning (bug 118594; r=timeless; sr=ben)
git-svn-id: svn://10.0.0.236/trunk@112113 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:56:31 +00:00
rjc%netscape.com
4d00a4d9b7 Fix bug # 119876: <menu> needs to inherit "src=image". sr=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112112 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:24:25 +00:00
brade%netscape.com
2d3b887013 use new editor api instead of nsIDiskDocument (bug 11419; r=ducarroz, sr=sspitzer)
git-svn-id: svn://10.0.0.236/trunk@112110 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:06:30 +00:00
attinasi%netscape.com
779d9368ff Fixed problems with reframing recursively due to block-in-inline frames and content appended notifications. r=karnaze sr=waterson b=56894
git-svn-id: svn://10.0.0.236/trunk@112109 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 22:05:26 +00:00
rginda%netscape.com
b24274d903 bug 119938, nebiros bustage, r=dbaron
remove useless casts


git-svn-id: svn://10.0.0.236/trunk@112108 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:59:34 +00:00
akkana%netscape.com
dda61126d2 105122: fix ctrl+bs/del bindings on windows. r=cmanske,sr=kin
git-svn-id: svn://10.0.0.236/trunk@112107 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:46:49 +00:00
waterson%netscape.com
cef6451728 Bug 109200. Noisy notify when removing an element so broadcasters, etc. get update properly. r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112106 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:41:19 +00:00
mkaply%us.ibm.com
d230f8b5f6 Back out crappy OS/2 change that does more harm than good
git-svn-id: svn://10.0.0.236/trunk@112105 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:31:24 +00:00
mkaply%us.ibm.com
8c421d4eca #119798
r=mkaply, sr=blizzard
OS/2 only - defauly monospace font should be Courier


git-svn-id: svn://10.0.0.236/trunk@112104 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:22:37 +00:00
mkaply%us.ibm.com
fd146b6d5e #1192111
r=mkaply, sr=blizzard
OS/2 only - better file dialog


git-svn-id: svn://10.0.0.236/trunk@112103 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:17:43 +00:00
brade%netscape.com
ca28abf3b3 #include cleanup to prepare for nsIDiskDocument removal (bug 102033)
git-svn-id: svn://10.0.0.236/trunk@112102 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:16:41 +00:00
ian%hixie.ch
d124df98dc Enable the 'bm_delete' command for 'IEFavoriteFolder's and add a 'delete' item to the relevant context menu. Also, remove 'copy' and 'open in new window' from that menu, since they are not implemented. b=114520, r=peterv, kerz, sr=jag, moa=blake. The changes in this patch are in the public domain.
git-svn-id: svn://10.0.0.236/trunk@112101 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:15:35 +00:00
brade%netscape.com
761d68a777 #include cleanup to reduce unused statics (bug 117927)
git-svn-id: svn://10.0.0.236/trunk@112100 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:09:37 +00:00
brade%netscape.com
2dae25869d #include cleanup to lessen unused static variables (bug 117927)
git-svn-id: svn://10.0.0.236/trunk@112099 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:07:31 +00:00
brade%netscape.com
0c97853021 remove unneeded #include (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112098 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:01:52 +00:00
tor%cs.brown.edu
b80293dbc6 Bug 115994 - improved MNG decoder error handling. r=pavlov, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@112097 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:00:12 +00:00
jgaunt%netscape.com
05de033310 bug 115659 xul radio buttons not exposed properly through accessibility
r=aaronl
sr=jag


git-svn-id: svn://10.0.0.236/trunk@112096 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 21:00:08 +00:00
jgaunt%netscape.com
894fec0d5f bug 110422 optimize XBL accessible code
r=aaronl,rginda
sr=jag


git-svn-id: svn://10.0.0.236/trunk@112095 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:56:49 +00:00
brade%netscape.com
da3fec2b4b remove DEAD_CODE (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112094 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:35:08 +00:00
brade%netscape.com
3d5f73b579 remove DEAD_CODE (bug 115115); remove unused static (bug 117927)
git-svn-id: svn://10.0.0.236/trunk@112093 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:34:15 +00:00
brade%netscape.com
17c52c2c78 remove SaveDocument from the API; use nsIWebBrowserPersist instead
git-svn-id: svn://10.0.0.236/trunk@112092 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:33:18 +00:00
brade%netscape.com
8d809ca7b6 #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112091 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:31:47 +00:00
brade%netscape.com
a2ea6d4987 literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112090 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:31:43 +00:00
brade%netscape.com
4a909d9540 literal string cleanup (bug 26384); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115); remove unused statics (bug 117927)
git-svn-id: svn://10.0.0.236/trunk@112089 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:30:11 +00:00
brade%netscape.com
186dfb2ac9 removal of methods SaveFile and DoAfterDocumentSave (bug 102033); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112088 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:25:29 +00:00
brade%netscape.com
920f5d76da literal string cleanup (bug 26384); removal of nsIDiskDocument and methods SaveFile and DoAfterDocumentSave (bug 102033); #ifdef out / remove DEAD_CODE per jfrancis (bug 115115)
git-svn-id: svn://10.0.0.236/trunk@112087 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:25:17 +00:00
stephend%netscape.com
a23e4a9efc Bug 119763. Javascript strict warnings in EdImageProps.js. Patch by Stephen Walker <walk84@yahoo.com> r=stephend, sr=kin
git-svn-id: svn://10.0.0.236/trunk@112086 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:21:18 +00:00
brade%netscape.com
ba8ce87b2f use nsIWebBrowserPersist for saving (bug 98550)
git-svn-id: svn://10.0.0.236/trunk@112085 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:17:13 +00:00
sdagley%netscape.com
ceb91748c9 Fix #104765 - Cleanup nsMacWindow::WindowEventHandler result code reporting. r=pinkerton,sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@112084 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:14:46 +00:00
dougt%netscape.com
31a6612b88 Null protecting hashing code. 96322. r=dp@netscape.com sr=alecf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@112083 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:10:48 +00:00
waterson%netscape.com
b2f8754193 Bug 52242. Include space manager information when computing auto-sized block's height. r=dbaron, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112082 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:04:30 +00:00
jband%netscape.com
d024232d2d fix bug 119387. Add a non-allocating IID version of the frequently used getIIDForParam method. r=dbradley sr=jst
git-svn-id: svn://10.0.0.236/trunk@112081 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 20:02:14 +00:00
rbs%maths.uq.edu.au
ea3e2e7c96 Fix bug 117637 - eliminate memory allocations in all consumers of GetFontData(), r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112080 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 19:54:23 +00:00
sspitzer%netscape.com
0f125a0aff fix for #119932. delete addressbook is failing. while I'm here,
remove unnecessary dependency on the DOM.  the addressbook
backend doesn't need to be dependent on nsIDOMXULElement and
nsIDOMNodeList.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@112079 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 19:50:34 +00:00
naving%netscape.com
aaa5718f74 119504 r=varga sr=waterson. fix insertion sort so the outliner inserts new element in the correct position
git-svn-id: svn://10.0.0.236/trunk@112078 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 19:49:05 +00:00
bzbarsky%mit.edu
2a71c4da3b fix computed style values for background and border properties on
tables.  Bug 98159, r=karnaze, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112077 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 19:43:59 +00:00
rogerl%netscape.com
fef17167b1 blank
git-svn-id: svn://10.0.0.236/trunk@112076 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 19:30:38 +00:00
edburns%acm.org
33493ef450 bug: 119680
Changes to make webclient compile and minimally run with
Netscape 6.2.1.


git-svn-id: svn://10.0.0.236/trunk@112073 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 18:04:48 +00:00
dbaron%fas.harvard.edu
7a24858133 Fix potential bustage.
git-svn-id: svn://10.0.0.236/trunk@112072 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 15:05:37 +00:00
dbaron%fas.harvard.edu
45b310844b Make sure backgrounds are painted correctly by using the correct background to set up information on the view. b=119462 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@112071 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 15:00:30 +00:00
dbaron%fas.harvard.edu
034db8f206 Reduce 5K of binary code size by representing data as data rather than code. b=109963 r=jag sr=hyatt,brendan
git-svn-id: svn://10.0.0.236/trunk@112070 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 14:59:48 +00:00
pierre%netscape.com
1617fcb71c 103594 "Clean up colors prefs code in nsPresShell". Remove PREFS_USE_OVERRIDE, insert the pref sheet at the
beginning of the User level. r=glazman+fantasai/sr-attinasi


git-svn-id: svn://10.0.0.236/trunk@112069 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 14:47:21 +00:00
locka%iol.ie
c3560e479f Build bustage - XP_MAC section contained unamed variable. b=110135 r=brade@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112068 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:44:08 +00:00
jdunn%netscape.com
8e3ecc61a2 fix xlC 5.x compiler bustage
r=bbaetz@@student.usyd.edu.au
r=dbaron@fas.harvard.edu (sort of)
# 119304


git-svn-id: svn://10.0.0.236/trunk@112067 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:43:10 +00:00
locka%iol.ie
95f5f98f85 Removed an unused variable. b=110135 r=brade@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112066 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:38:21 +00:00
locka%iol.ie
cfa95ffa7e Updated documentation slightly to reflect reality. b=110135 r=brade@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112065 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:32:31 +00:00
pierre%netscape.com
a81afa51f3 60325 "<hr> line-height problem caused by large font size". Set the HR font-size to -moz-initial r=glazman/sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112064 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:27:02 +00:00
pierre%netscape.com
846071ee39 89503 "font-size:0 ignored". When the font size is 0, set the x-height, ascent and descent to 0 in the TextReflowData. r=rbs/sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@112063 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 13:21:55 +00:00
glazman%netscape.com
aae2bb425e rename/remove obsolete elements/attrs from Composer xul; b=119164, r=peterv, sr=blake
git-svn-id: svn://10.0.0.236/trunk@112062 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 12:41:39 +00:00
locka%iol.ie
6c97ab4824 New parameters for nsIWebBrowserPersist saveURI & saveDocument. Caller may now specify target file as a uri or a file saveDocument has new flags for controlling encoding and line wrapping behaviour. b=110135 r=brade@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@112061 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 12:41:27 +00:00
bryner%netscape.com
65998a9b2c Hook up toolbarbuttons and grippers. Tweak borders and minimum sizes on scrollbars. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112060 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 10:37:43 +00:00
rbs%maths.uq.edu.au
271a10a703 Add two default declarations to support display=block|inline introduced in MathML 2.0
git-svn-id: svn://10.0.0.236/trunk@112059 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 08:59:01 +00:00
mcafee%netscape.com
bb64ba75ac Make each subplot a link to a larger version of itself, so you can click for more detail
git-svn-id: svn://10.0.0.236/trunk@112058 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 08:22:59 +00:00
seawood%netscape.com
8297fba10b Replace NTO with MOZ_WIDGET_PHOTON as necessary.
Thanks to Brian Edmond <briane@qnx.com> for the patch.
Bug #119275 r=cls


git-svn-id: svn://10.0.0.236/trunk@112057 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 08:22:35 +00:00
bryner%netscape.com
f862f4e790 Hook up onchange events for listboxes. Not turned on yet.
git-svn-id: svn://10.0.0.236/trunk@112056 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 08:03:22 +00:00
bryner%netscape.com
edf25fe5cd Bug 119743 - autocomplete doesn't work in gcc 2.96 -O2 builds. r=hixie, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@112055 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 06:45:21 +00:00
bzbarsky%mit.edu
2fb6462521 Fix bug 84121, problem with XUL menu sizing/positioning. Patch by
Michael Kaply <mkaply@us.ibm.com>, r=dean_tessman@hotmail.com,
r=piskozub@iopan.gda.pl, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@112054 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 05:45:53 +00:00
bryner%netscape.com
29d3f67dae Bug 119837 - add a parameter to nsITheme::GetMinimumWidgetSize to specify if CSS is allowed to override the min size. r=bzbarsky, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@112053 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 05:40:37 +00:00
blakeross%telocity.com
57cf280c62 86979 - launch file after donwloading does not honor OS file associations. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@112052 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 05:24:49 +00:00
rogerl%netscape.com
3ee4af413c Plethora of fixes.
git-svn-id: svn://10.0.0.236/trunk@112051 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 03:49:38 +00:00
rogerl%netscape.com
1991f7a978 Set empty rgexp paren contents to undefined.
git-svn-id: svn://10.0.0.236/trunk@112050 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 03:49:10 +00:00
bryner%netscape.com
07d9bb2d4b Bug 119757 - forms.jar missing from installer builds. r=timeless, sr=jag.
git-svn-id: svn://10.0.0.236/trunk@112049 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 03:37:25 +00:00
nboyd%atg.com
c1e495934f Exclude Unicode-2 incompatible tests
git-svn-id: svn://10.0.0.236/trunk@112048 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 01:21:07 +00:00
rbs%maths.uq.edu.au
029a8691e9 Additional reduction of code size by using a helper to propagate the update of presentation data in a range of child frames
git-svn-id: svn://10.0.0.236/trunk@112047 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-14 00:55:53 +00:00
mcafee%netscape.com
024bbe7baa adding multiquery links at the bottom
git-svn-id: svn://10.0.0.236/trunk@112046 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 22:18:03 +00:00
cavin%netscape.com
0991672678 Bug #100167: Added server name to a few connection error msgs for imap, news and pop. Also fixed two obsolete imap error numbers (1 & 2). r=bienvenu, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@112045 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 19:26:28 +00:00
bryner%netscape.com
b877355b74 Forgot this file as part of the checkin for bugscape 11533 (commercial splash screen). Change hardcoded splash screen location to a #define set by the Makefile. r=cls.
git-svn-id: svn://10.0.0.236/trunk@112044 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 06:58:57 +00:00
bryner%netscape.com
7e603c2835 Hooking up scrollbar tracks and thumbs. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112043 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 06:53:53 +00:00
av%netscape.com
18de62a67a Fixing 119063 -- returning nsIServiceManager instead of nsIServiceManagerObsolete to a plugin, r=peterl, sr=beard
git-svn-id: svn://10.0.0.236/trunk@112042 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 04:23:57 +00:00
bzbarsky%mit.edu
df8173369a Change some users of GetAttr to HasAttr instead. Bug 113564, r=jag, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@112041 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 04:03:52 +00:00
bryner%netscape.com
422597cbbb GTK theme renderer changes:
- Keep "widget prototypes" around instead of raw GtkStyles.  This way, the style retains valid GC's.
- Pass widget instances to gtk_paint_* to satisfy themes that expect this to be non-null.
- Add support for scrollbar buttons.
- Code refactoring and cleanup.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@112040 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 03:04:24 +00:00
timeless%mac.com
8fcbf1b095 Bug 117727 make testprotocols pretty print error condition for unknown Content-Length
a=darin


git-svn-id: svn://10.0.0.236/trunk@112039 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 00:54:27 +00:00
timeless%mac.com
9a95a2e931 Bug 119391 nsBaseWidget::GetRenderingContext() does not correctly check for errors
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@112038 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 00:28:11 +00:00
timeless%mac.com
f15e3a832c Bug 119398 DeviceContextImpl does not correctly check for error
patch by Roland.Mainz@informatik.med.uni-giessen.de r=timeless sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@112037 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-13 00:17:37 +00:00
bbaetz%student.usyd.edu.au
3ca3632926 Bug 119625 - can't POST forms
Patch by christophe.fergeau@laposte.net, r=bbaetz, sr=beng


git-svn-id: svn://10.0.0.236/trunk@112036 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 23:56:42 +00:00
dougt%netscape.com
f923afa8bf Removing monitor from FreeService() call. See bug 117218 for details, but basically we can run into a deadlock at shutdown. This patch assumes that (a) gXPCOMShuttingDown is set only by the UI thread during xpcom shutdown and (b) that all public API's check this flag before calling into the hashtable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112035 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 23:35:57 +00:00
beard%netscape.com
1b4e59414d Switch to Collector::InstanceOwner templates
git-svn-id: svn://10.0.0.236/trunk@112034 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 17:40:36 +00:00
beard%netscape.com
a421593cf2 support for collecting C++ arrays
git-svn-id: svn://10.0.0.236/trunk@112033 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 17:39:41 +00:00
relyea%netscape.com
44a11923d1 Fix nickname check for filtering cert lists.
git-svn-id: svn://10.0.0.236/trunk@112031 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 16:43:29 +00:00
chak%netscape.com
a297014811 #111320 - Add ViewFrameSource/OpenFrameInNewWindo context menus
sr=jst


git-svn-id: svn://10.0.0.236/trunk@112030 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 15:11:06 +00:00
namachi%netscape.com
708ecae459 This patch is to avoid overwriting the COD files. COD files are generated to
debug crashes happening in the Release Builds.
Bug No = http://bugzilla.mozilla.org/show_bug.cgi?id=116473
r=leaf
sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@112027 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 14:41:01 +00:00
rods%netscape.com
ce2a82ca0c This enables platforms to set a pref as to whether they allow print from print preview.
Bug 118623 r=roland sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112025 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:58:46 +00:00
rods%netscape.com
2f34cfbe34 New print dialog doesn't show the right default printer in windows if the printer is a networkprinter
Bug 118409 r=dcone sr=self


git-svn-id: svn://10.0.0.236/trunk@112024 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:45:49 +00:00
rods%netscape.com
898fdc16a9 Reviewing PrintSettings arguments from print and printpreview calls they should not have been added
Bug 118352 r=dcone sr=jst


git-svn-id: svn://10.0.0.236/trunk@112023 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:37:31 +00:00
rods%netscape.com
4d93f82379 Gets title and url from PrintService instead of PrintSettings
Bug 117894 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112022 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:32:32 +00:00
rods%netscape.com
525bcc3d53 Better error failure when certain types of error occur during printing
No longer tries to print IFrames or other sub-documents with display:none
Sets title and url into PrintService from PrintSettings
Sets "IsCancelled" on PrintSettings/Service when Print Dialog is cancelled (patr of 118017)
Bug 117894 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@112021 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 12:31:05 +00:00
rbs%maths.uq.edu.au
9389ef38e6 Continuation of tyding
git-svn-id: svn://10.0.0.236/trunk@112020 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 08:06:08 +00:00
seawood%netscape.com
38737c4335 Use DIST instead of DEPTH/dist
git-svn-id: svn://10.0.0.236/trunk@112019 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 07:59:43 +00:00
blizzard%redhat.com
d1b6dfb903 Checkpointing changes. Get adding and removing event queues working properly. Change printf() logging to prlog logging. Get window modality working. (Check it out, modal dialogs only block their parents!) Oh. Right. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@112018 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 07:14:54 +00:00
seawood%netscape.com
f3aedd9073 Remove clearing of MAKE_DIRS so that we can set MAKE_DIRS before including rules.mk
git-svn-id: svn://10.0.0.236/trunk@112017 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 06:58:53 +00:00
blizzard%redhat.com
8195d9576f Bug #115085. gtkmozembed does not support custom directory service providers. Patch from John Corwin <jcorwin@us.ibm.com>. r=mkaply, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@112016 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 05:04:57 +00:00
bryner%netscape.com
a657bcfc05 Initial checkin of gtk native theme renderer. Contains support for buttons and checkboxes. Not part of the build, to enable set NATIVE_THEME_SUPPORT=1.
git-svn-id: svn://10.0.0.236/trunk@112015 18797224-902f-48f8-a5cc-f745e15eee43
2002-01-12 04:56:37 +00:00
211 changed files with 72385 additions and 2970 deletions

222
mozilla/js/rhino/Makefile Normal file
View File

@@ -0,0 +1,222 @@
#! gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Rhino code, released
# May 6, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU Public License (the "GPL"), in which case the
# provisions of the GPL are applicable instead of those above.
# If you wish to allow use of your version of this file only
# under the terms of the GPL and not to allow others to use your
# version of this file under the NPL, indicate your decision by
# deleting the provisions above and replace them with the notice
# and other provisions required by the GPL. If you do not delete
# the provisions above, a recipient may use your version of this
# file under either the NPL or the GPL.
#
# Makefile for javascript in java.
#
# This makefile is intended for packaging releases, and probably isn't
# suitable for production use - it doesn't attempt to do understand
# java dependencies beyond the package level.
#
# The makefiles for the subdirectories included in this package are
# intended to be called by this makefile with the proper CLASSDIR,
# PATH_PREFIX etc. variables. Makefiles in subdirectories are
# actually executed in the toplevel directory, with the PATH_PREFIX
# variable set to the subdirectory where the makefile is located.
#
# Initial version courtesy Mike Ang.
# Next version by Mike McCabe
# Don't include SHELL define (per GNU manual recommendation) because it
# breaks WinNT (with GNU make) builds.
# SHELL = /bin/sh
# Some things we might want to tweek.
CLASSDIR = classes
PACKAGE_NAME = org.mozilla.javascript
PACKAGE_PATH = org/mozilla/javascript
# jar filenames and the directories that build them.
JS_JAR = js.jar
JS_DIR = $(PACKAGE_PATH)
JSTOOLS_JAR = jstools.jar
JSTOOLS_DIR = $(PACKAGE_PATH)/tools
JARS = $(JS_JAR) $(JSTOOLS_JAR)
# It's not polite to store toplevel files in a tarball or zip files.
# What is the name of the toplevel directory to store files in?
# XXX we should probably add versioning to this.
DIST_DIR = jsjava
# XXX test this with sj
# JAVAC = mgcj
JAVAC=javac
# We don't define JFLAGS but we do export it to child
# builds in case it's defined by the environment.
# To build optimized (with javac) say 'make JFLAGS=-O'
GZIP = gzip
ZIP = zip
UNZIP = unzip
# JFLAGS="-O -g:none"
# Shouldn't need to change anything below here.
# For Windows NT builds (under GNU make).
ifeq ($(OS_TARGET), WINNT)
CLASSPATHSEP = '\\;'
else
CLASSPATHSEP = :
endif
# Make compatibility - use these instead of gmake 'export VARIABLE'
EXPORTS = CLASSDIR=$(CLASSDIR) JAVAC=$(JAVAC) JFLAGS=$(JFLAGS) SHELL=$(SHELL) \
PACKAGE_PATH=$(PACKAGE_PATH) PACKAGE_NAME=$(PACKAGE_NAME)
helpmessage : FORCE
@echo 'Targets include:'
@echo ' all - make jars, examples'
@echo ' jars - make js.jar, jstools.jar'
@echo ' fast - quick-and-dirty "make jars", for development'
@echo ' examples - build the .class files in the examples directory'
@echo ' check - perform checks on the source.'
@echo ' clean - remove intermediate files'
@echo ' clobber - make clean, and remove .jar files'
@echo ' zip - make a distribution .zip file'
@echo ' zip-source - make a distribution .zip file, with source'
@echo ' tar - make a distribution .tar.gz file'
@echo ' tar-source - make a distribution .tar.gz, with source'
@echo
@echo 'Define OS_TARGET to "WINNT" to build on Windows NT with GNU make.'
@echo
@echo 'The make-based build system does not include graphical'
@echo 'debugger or Bean Scripting Framework support. To build with'
@echo 'these, use the Ant build tool.'
@echo
@echo 'Ant is available at http://jakarta.apache.org/ant/'
all : jars examples
jars : $(JARS)
fast : fast_$(JS_JAR) $(JSTOOLS_JAR)
# Always call the sub-Makefile - which may decide that the jar is up to date.
$(JS_JAR) : FORCE
$(MAKE) -f $(JS_DIR)/Makefile JAR=$(@) $(EXPORTS) \
PATH_PREFIX=$(JS_DIR) \
CLASSPATH=.
fast_$(JS_JAR) :
$(MAKE) -f $(JS_DIR)/Makefile JAR=$(JS_JAR) $(EXPORTS) \
PATH_PREFIX=$(JS_DIR) \
CLASSPATH=. \
fast
$(JSTOOLS_JAR) : $(JS_JAR) FORCE
$(MAKE) -f $(JSTOOLS_DIR)/Makefile JAR=$(@) $(EXPORTS) \
PATH_PREFIX=$(JSTOOLS_DIR) \
CLASSPATH=./$(JS_JAR)$(CLASSPATHSEP).
examples : $(JS_JAR) FORCE
$(MAKE) -f examples/Makefile $(EXPORTS) \
PATH_PREFIX=examples \
CLASSPATH=./$(JS_JAR)
# We ask the subdirs to update their MANIFESTs
MANIFEST : FORCE
$(MAKE) -f $(JS_DIR)/Makefile JAR=$(JS_JAR) $(EXPORTS) \
PATH_PREFIX=$(JS_DIR) $(JS_DIR)/MANIFEST
$(MAKE) -f $(JSTOOLS_DIR)/Makefile JAR=$(JSTOOLS_JAR) $(EXPORTS) \
PATH_PREFIX=$(JSTOOLS_DIR) $(JSTOOLS_DIR)/MANIFEST
$(MAKE) -f examples/Makefile $(EXPORTS) \
PATH_PREFIX=examples examples/MANIFEST
# so ls below always has something to work on
touch MANIFEST
# examples/Makefile doesn't get included in the
# MANIFEST file, (which is used to create the non-source distribution) so
# we include it here.
cat examples/MANIFEST $(JS_DIR)/MANIFEST \
$(JSTOOLS_DIR)/MANIFEST \
| xargs ls MANIFEST README.html \
$(JARS) \
Makefile examples/Makefile \
> $(@)
# Make a MANIFEST file containing only the binaries and documentation.
# This could be abstracted further...
MANIFEST_binonly : MANIFEST
cat examples/MANIFEST \
| xargs ls $(JARS) README.html MANIFEST > MANIFEST
# A subroutine - not intended to be called from outside the makefile.
do_zip :
# Make sure we get a fresh one
- rm -r $(DIST_DIR)
- mkdir $(DIST_DIR)
- rm $(DIST_DIR).zip
cat MANIFEST | xargs $(ZIP) -0 -q $(DIST_DIR).zip
mv $(DIST_DIR).zip $(DIST_DIR)
cd $(DIST_DIR) ; \
$(UNZIP) -q $(DIST_DIR).zip ; \
rm $(DIST_DIR).zip
$(ZIP) -r -9 -q $(DIST_DIR).zip $(DIST_DIR)
- rm -r $(DIST_DIR)
zip : check jars examples MANIFEST_binonly do_zip
zip-source : check jars examples MANIFEST do_zip
# A subroutine - not intended to be called from outside the makefile.
do_tar :
- rm -r $(DIST_DIR)
- mkdir $(DIST_DIR)
- rm $(DIST_DIR).tar $(DIST_DIR).tar.gz
cat MANIFEST | xargs tar cf $(DIST_DIR).tar
mv $(DIST_DIR).tar $(DIST_DIR)
cd $(DIST_DIR) ; \
tar xf $(DIST_DIR).tar ; \
rm $(DIST_DIR).tar
tar cf $(DIST_DIR).tar $(DIST_DIR)
- rm -r $(DIST_DIR)
$(GZIP) -9 $(DIST_DIR).tar
tar: check jars examples MANIFEST_binonly do_tar
tar-source : check jars examples MANIFEST do_tar
# These commands just get passed to the respective sub-Makefiles.
clean clobber check:
$(MAKE) -f $(JS_DIR)/Makefile $(EXPORTS) JAR=$(JS_JAR) \
PATH_PREFIX=$(JS_DIR) $(@)
$(MAKE) -f $(JSTOOLS_DIR)/Makefile $(EXPORTS) JAR=$(JSTOOLS_JAR) \
PATH_PREFIX=$(JSTOOLS_DIR) $(@)
$(MAKE) -f examples/Makefile $(EXPORTS) PATH_PREFIX=examples $(@)
#emulate .PHONY
FORCE :

View File

@@ -0,0 +1,46 @@
<html>
<!--
- The contents of this file are subject to the Netscape Public
- License Version 1.1 (the "License"); you may not use this file
- except in compliance with the License. You may obtain a copy of
- the License at http://www.mozilla.org/NPL/
-
- Software distributed under the License is distributed on an "AS
- IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- implied. See the License for the specific language governing
- rights and limitations under the License.
-
- The Original Code is Rhino code, released
- May 6, 1999.
-
- The Initial Developer of the Original Code is Netscape
- Communications Corporation. Portions created by Netscape are
- Copyright (C) 1998-1999 Netscape Communications Corporation. All
- Rights Reserved.
-
- Contributor(s):
- Norris Boyd
-
- Alternatively, the contents of this file may be used under the
- terms of the GNU Public License (the "GPL"), in which case the
- provisions of the GPL are applicable instead of those above.
- If you wish to allow use of your version of this file only
- under the terms of the GPL and not to allow others to use your
- version of this file under the NPL, indicate your decision by
- deleting the provisions above and replace them with the notice
- and other provisions required by the GPL. If you do not delete
- the provisions above, a recipient may use your version of this
- file under either the NPL or the GPL.
-->
<body>
<h1>
<span CLASS=LXRSHORTDESC>
Rhino: JavaScript in Java<p>
</span>
</h1>
<span CLASS=LXRLONGDESC>
Rhino is an implementation of JavaScript in Java. Documentation can be found
<a href="http://www.mozilla.org/js/rhino/rhino.html">here</a>.
</span>
</body>
</html>

View File

@@ -0,0 +1,22 @@
apiClasses=\
src/org/mozilla/javascript/ClassDefinitionException.java,\
src/org/mozilla/javascript/ClassOutput.java,\
src/org/mozilla/javascript/Context.java,\
src/org/mozilla/javascript/ContextListener.java,\
src/org/mozilla/javascript/EcmaError.java,\
src/org/mozilla/javascript/ErrorReporter.java,\
src/org/mozilla/javascript/Function.java,\
src/org/mozilla/javascript/FunctionObject.java,\
src/org/mozilla/javascript/ImporterTopLevel.java,\
src/org/mozilla/javascript/JavaScriptException.java,\
src/org/mozilla/javascript/NotAFunctionException.java,\
src/org/mozilla/javascript/PropertyException.java,\
src/org/mozilla/javascript/Script.java,\
src/org/mozilla/javascript/Scriptable.java,\
src/org/mozilla/javascript/ScriptableObject.java,\
src/org/mozilla/javascript/SecuritySupport.java,\
src/org/mozilla/javascript/WrapHandler.java,\
src/org/mozilla/javascript/Wrapper.java,\
src/org/mozilla/javascript/Synchronizer.java,\
src/org/mozilla/javascript/serialize/ScriptableInputStream.java,\
src/org/mozilla/javascript/serialize/ScriptableOutputStream.java

View File

@@ -0,0 +1 @@
This version was built on @datestamp@.

131
mozilla/js/rhino/build.xml Normal file
View File

@@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2 or later
-->
<project name="Rhino" default="default" basedir=".">
<target name="properties">
<property name="name" value="rhino"/>
<property name="Name" value="Rhino"/>
<property name="version" value="1_5R4pre"/>
<property name="rhino.jar" value="js.jar"/>
<property name="debug" value="off"/>
<property name="src.dir" value="src"/>
<property name="toolsrc.dir" value="toolsrc"/>
<property name="src.examples" value="examples"/>
<property name="build.dir" value="./build"/>
<property name="build.dest" value="${build.dir}/classes"/>
<property name="dist.name" value="rhino${version}"/>
<property name="dist.dir" value="${build.dir}/${dist.name}"/>
<property name="dist.src" value="${dist.dir}/src"/>
<property name="dist.toolsrc" value="${dist.dir}/toolsrc"/>
<property name="dist.examples" value="${dist.dir}/examples"/>
<property name="dist.docs" value="${dist.dir}/docs"/>
<property name="dist.apidocs" value="${dist.docs}/apidocs"/>
<property name="dist.file" value="rhino${version}.zip"/>
<property file="apiClasses.properties"/>
<property name="docsrc.dir" value="docs"/>
<property name="dist.docsrc.dir" value="${src.dir}/docs"/>
</target>
<target name="init" depends="properties">
</target>
<target name="prepare" depends="init">
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.dest}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.src}"/>
<mkdir dir="${dist.toolsrc}"/>
<mkdir dir="${dist.examples}"/>
<mkdir dir="${dist.docs}"/>
<mkdir dir="${dist.apidocs}"/>
</target>
<target name="compile-src" depends="prepare">
<ant dir="${src.dir}"/>
</target>
<target name="compile-toolsrc" depends="prepare">
<ant dir="${toolsrc.dir}"/>
</target>
<target name="compile" depends="compile-src,compile-toolsrc"/>
<target name="jar" depends="compile">
<jar jarfile="${dist.dir}/${rhino.jar}"
basedir="${build.dest}"
manifest="${src.dir}/manifest" />
</target>
<target name="jar-src" depends="compile-src">
<jar jarfile="${dist.dir}/${rhino.jar}"
basedir="${build.dest}"
manifest="${src.dir}/manifest" />
</target>
<target name="copy-examples" depends="prepare">
<copy todir="${dist.examples}">
<fileset dir="${src.examples}" includes="*.java,*.js,*.html" />
</copy>
</target>
<target name="copy-misc" depends="prepare">
<tstamp/>
<filter token="datestamp" value="${TODAY}"/>
<copy todir="${dist.dir}" filtering="yes">
<fileset dir=".">
<patternset>
<include name="build.xml"/>
<include name="apiClasses.properties"/>
<include name="build-date"/>
</patternset>
</fileset>
</copy>
</target>
<target name="copy-all" depends="copy-examples,copy-misc">
</target>
<target name="copy-docs" depends="prepare">
<echo message="copy from ${docsrc.dir}"/>
<copy todir="${dist.docs}">
<fileset dir="${docsrc.dir}"
includes="**/*.html,**/*.jpg,**/*.gif" />
</copy>
</target>
<target name="javadoc" depends="compile,copy-docs">
<javadoc sourcefiles="${apiClasses}"
sourcepath="${src.dir}"
destdir="${dist.apidocs}"
overview="${dist.docs}/api.html"
version="true"
author="true"
public="true"
windowtitle="${Name}" />
</target>
<target name="dist" depends="copy-all,javadoc,jar">
<delete file="${dist.file}" />
<zip zipfile="${dist.file}"
basedir="${build.dir}"
includes="**"
excludes="classes/**" />
</target>
<target name="default">
<echo>
**** Building core only; for full distribution build, try "ant dist".
</echo>
<antcall target="jar-src"/>
</target>
</project>

View File

@@ -0,0 +1,161 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
<META NAME="Generator" CONTENT="Microsoft Word 97">
<TITLE>1</TITLE>
</HEAD>
<BODY>
<OL>
<B><FONT FACE="Arial" SIZE=5 COLOR="#000080"><LI>Using the Rhino JavaScript Debugger</LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The Mozilla Rhino JavaScript engine includes a source-level debugger for debugging JavaScript scripts. The debugger is itself a Java program which you may run as</P>
</FONT><FONT FACE="Arial" SIZE=2><P ALIGN="JUSTIFY">java org.mozilla.javascript.tools.debugger.JSDebugger [options] [filename.js] [script-arguments]</P>
</FONT><FONT SIZE=2><P ALIGN="JUSTIFY">where the options are the same as the shell.</P>
<OL>
<LI><A NAME="_Toc502165108"></FONT><B><FONT FACE="Arial" SIZE=4 COLOR="#000080">Features</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The Rhino JavaScript Debugger can debug scripts running in multiple threads and provides facilities to set and clear breakpoints, control execution, view variables, and evaluate arbitrary JavaScript code in the current scope of an executing script.</P>
<OL>
<LI><A NAME="_Toc502165109"></FONT><B><FONT FACE="Arial" COLOR="#000080">Console Window</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The debugger redirects the </FONT><FONT FACE="Arial" SIZE=2>System.out</FONT><FONT SIZE=2>, </FONT><FONT FACE="Arial" SIZE=2>System.in</FONT><FONT SIZE=2>, and </FONT><FONT FACE="Arial" SIZE=2>System.err</FONT><FONT SIZE=2> streams to an internal JavaScript console window which provides an editable command line for you to enter JavaScript code and view system output. The console window maintains a history of the commands you have entered. You may move backward and forward through the history list by pressing the Up/Down arrow keys on the keyboard.</P>
<LI><A NAME="_Toc502165110"></FONT><B><FONT FACE="Arial" COLOR="#000080">Opening Scripts</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may select the <B><I>File-&gt;Open</B></I> menu item on the menu bar to load JavaScript scripts contained in files. This action will display a file-selection dialog box prompting you for the location of a script to load. The selected file will be compiled and displayed in a new window.</P>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Running Scripts</LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may select the <B><I>File-&gt;Run</B></I> menu item on the menu bar to execute JavaScript scripts contained in files. This action will display a file-selection dialog box prompting you for the location of a script to execute. The loaded script will be run in a new thread and control will be given to the debugger on its first instruction.</P>
<LI><A NAME="_Toc502165111"></FONT><B><FONT FACE="Arial" COLOR="#000080">Controlling Execution</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The debugger provides the following facilities for you to control the execution of scripts you are debugging:</P>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Into</LI></OL>
</OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To single step entering any function calls, you may do any of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Into </B></I>menu item on the menu bar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Into</B></I> button on the toolbar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the F11 key on the keyboard</LI></P></UL>
<P ALIGN="JUSTIFY">Execution will resume. If the current line in the script contains a function call control will return to the debugger upon entry into the function. Otherwise control will return to the debugger at the next line in the current function.</P>
<OL>
<OL>
<OL>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Over</LI></OL>
</OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To single step to the next line in the current function, you may do any of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Over</B></I> menu item on the menu bar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Over</B></I> button on the toolbar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the F7 key on the keyboard</LI></P></UL>
<P ALIGN="JUSTIFY">Execution will resume but control will return to the debugger at the next line in the current function or top-level script.</P>
<OL>
<OL>
<OL>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Out</LI></OL>
</OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To continue execution until the current function returns you may do any of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Out</B></I> menu item on the menu bar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Out</B></I> button on the toolbar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the F8 key on the keyboard</LI></P></UL>
<P ALIGN="JUSTIFY">Execution will resume until the current function returns or a breakpoint is hit.</P>
<OL>
<OL>
<OL>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Go</LI></OL>
</OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To resume execution of a script you may do any of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Go</B></I> menu item on the menu bar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the <B><I>Go</B></I> button on the toolbar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the F5 key on the keyboard</LI></P></UL>
<P ALIGN="JUSTIFY">Execution will resume until a breakpoint is hit or the script completes.</P>
<P ALIGN="JUSTIFY">&nbsp;</P>
<OL>
<OL>
<OL>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Break</LI></OL>
</OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To stop all running scripts and give control to the debugger you may do any of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Break</B></I> menu item on the menu bar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the <B><I>Break</B></I> button on the toolbar</LI></P>
<P ALIGN="JUSTIFY"><LI>Press the Pause/Break key on the keyboard</LI></P></UL>
<OL>
<OL>
<OL>
<LI><A NAME="_Toc502165112"></FONT><B><FONT FACE="Arial" COLOR="#000080">Moving Up and Down the Stack</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The lower-left (dockable) pane in the debugger main window contains a combo-box labeled &quot;Context:&quot; which displays the current stack of the executing script. You may move up and down the stack by selecting an entry in the combo-box. When you select a stack frame the variables and watch windows are updated to reflect the names and values of the variables visible at that scope.</P>
<LI><A NAME="_Toc502165113"></FONT><B><FONT FACE="Arial" COLOR="#000080">Setting and Clearing Breakpoints</A></LI></OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The main desktop of the debugger contains file windows which display the contents of each script you are debugging. You may set a breakpoint in a script by doing one of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Place the cursor on the line at which you want to set a breakpoint and right-click with the mouse. This action will display a pop-up menu. Select the <B><I>Set Breakpoint</B></I> menu item. </LI></P>
<P ALIGN="JUSTIFY"><LI>Simply single-click on the line number of the line at which you want to set a breakpoint.</LI></P></UL>
<P ALIGN="JUSTIFY">If the selected line contains executable code a red dot will appear next to the line number and a breakpoint will be set at that location.</P>
<P ALIGN="JUSTIFY">You may set clear breakpoint in a script by doing one of the following:</P>
<UL>
<P ALIGN="JUSTIFY"><LI>Place the cursor on the line at which you want to clear a breakpoint and right-click with the mouse. This action will display a pop-up menu. Select the <B><I>Clear Breakpoint</B></I> menu item. </LI></P>
<P ALIGN="JUSTIFY"><LI>Simply single-click on the red dot or the line number of the line at which you want to clear a breakpoint.</LI></P></UL>
<P ALIGN="JUSTIFY">The red dot will disappear and the breakpoint at that location will be cleared.</P>
<OL>
<OL>
<OL>
<LI><A NAME="_Toc502165114"></FONT><B><FONT FACE="Arial" COLOR="#000080">Viewing Variables</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The lower-left (dockable) pane in the debugger main window contains a tab-pane with two tabs, labeled &quot;this&quot; and &quot;Locals&quot;. Each pane contains a tree-table which displays the properties of the current object and currently visible local variables, respectively. </P>
<OL>
</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>This</LI></OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The properties of the current object are displayed in the <B><I>this</B></I> table. If a property is itself a JavaScript object the property may be expanded to show its sub-properties. The <B><I>this</B></I> table is updated each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window.</P>
<LI><A NAME="_Toc502165115"></FONT><B><FONT FACE="Arial" COLOR="#000080">Locals</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The local variables of the current function are displayed in the <B><I>Locals</B></I> table. If a variable is itself a JavaScript object the variable may be expanded to show its sub-properties. The <B><I>Locals</B></I> table is updated each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window</P>
<LI><A NAME="_Toc502165116"></FONT><B><FONT FACE="Arial" COLOR="#000080">Watch Window</A></LI>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may enter arbitrary JavaScript expressions in the <B><I>Watch:</B></I> table located in the lower-right (dockable) pane in the debugger main window. The expressions you enter are reevaluated in the current scope and their current values displayed each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window.</P>
<LI><A NAME="_Toc502165117"></FONT><B><FONT FACE="Arial" COLOR="#000080">Evaluation Window</A></LI></OL>
</OL>
</OL>
</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The <B><I>Evaluate</B></I> pane located in the lower-right (dockable) pane in the debugger main window contains an editable command line where you may enter arbitrary JavaScript code. The code is evaluated in the context of the current stack frame. The window maintains a history of the commands you have entered. You may move backward or forward through the history by pressing the Up/Down arrow keys on the keyboard. </P>
</FONT></BODY>
</HTML>

View File

@@ -0,0 +1,137 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; U) [Netscape]">
<title>JavaScript API</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Rhino API Reference.</h1></center>
<h4>
The Control API</h4>
These APIs provide methods for controlling the actions of JavaScript in
a host environment.
<ul>
<li>
<a href="org/mozilla/javascript/Context.html">Context</a> - Represents
the runtime context of an executing script. Has methods to associate the
JavaScript evaluation engine with a Java thread, set attributes of the
engine, and compile and evaluate scripts.</li>
<li>
<a href="org/mozilla/javascript/ContextListener.html">ContextListener</a>
- Allows embeddings to be notified of the creation, entering, exiting,
and releasing of Contexts. </li>
<li>
<a href="org/mozilla/javascript/Script.html">Script</a> - The result of
compiling a JavaScript script. Also encapsulates script execution.</li>
<li>
<a href="org/mozilla/javascript/ErrorReporter.html">ErrorReporter</a> -
This interface can be implemented to control the actions the JavaScript
engine takes when it encounters errors.</li>
<li>
<a href="org/mozilla/javascript/SecuritySupport.html">SecuritySupport</a>
- Optional support routines that must be provided by embeddings implementing
security controls on scripts.</li>
<li>
<a href="org/mozilla/javascript/Wrapper.html">Wrapper</a> - Interface implemented
by objects wrapping other objects. Provides a method for recovering the
wrapped value.</li>
<li>
<a href="org/mozilla/javascript/WrapHandler.html">WrapHandler</a> - Interface
embedders can implement in order to control the way Java objects are wrapped
for use by JavaScript.</li>
<li>
<a href="org/mozilla/javascript/ClassOutput.html">ClassOutput</a> - Interface
embedders can implement in order to control the placement of generated
class bytecodes.</li>
<li>
<a href="org/mozilla/javascript/serialize/ScriptableOutputStream.html">ScriptableOutputStream</a> - This stream can be used to serialize JavaScript objects and functions.
</li>
<li>
<a href="org/mozilla/javascript/serialize/ScriptableInputStream.html">ScriptableInputStream</a> - This stream can be used to deserialize JavaScript objects and functions.
</li>
</ul>
<h4>
The Host Object API</h4>
These APIs provide support for adding objects specific to a particular
embedding of JavaScript in a host environment. Note that if you just want
to script existing Java classes, you should just use <a href="http://developer.netscape.com/library/documentation/communicator/jsguide4/livecon.htm">LiveConnect</a>.
It is also helpful to understand some of the implementation of the <a href="runtime.html">runtime</a>.
<ul>
<li>
<a href="org/mozilla/javascript/Scriptable.html">Scriptable</a> - All JavaScript
objects must implement this interface. Provides methods to access properties
and attributes of those properties, as well as other services required
of JavaScript objects.</li>
<li>
<a href="org/mozilla/javascript/Function.html">Function</a> - All JavaScript
functions must implement this interface. Extends Scriptable, adding methods
to support invocation.</li>
<li>
<a href="org/mozilla/javascript/ScriptableObject.html">ScriptableObject</a>
- A default implementation of Scriptable that may be extended. Implements
property and attribute storage and lookup and other default JavaScript
object behavior.</li>
<li>
<a href="org/mozilla/javascript/FunctionObject.html">FunctionObject</a>
- An implementation of Function that allows Java methods and constructors
to be used as JavaScript function objects.</li>
<li>
<a href="org/mozilla/javascript/ImporterTopLevel.html">ImporterTopLevel</a>
- Allows embeddings to use the importClass and importPackage functions.</li>
</ul>
<h4>
Exceptions</h4>
These exceptions are thrown by JavaScript.
<ul>
<li>
<a href="org/mozilla/javascript/JavaScriptException.html">JavaScriptException</a>
- Thrown from within JavaScript by the JavaScript 'throw' statement, or
by LiveConnect calls from JavaScript into Java. Wraps a JavaScript value.</li>
<li>
<a href="org/mozilla/javascript/ClassDefinitionException.html">ClassDefinitionException</a>
- Thrown if errors are detected while attempting to define a host object
from a Java class.</li>
<li>
<a href="org/mozilla/javascript/PropertyException.html">PropertyException</a>
- Thrown if errors are detected while attempting to define a property of
a host object from a Java class or method, or if a property is not found.</li>
<li>
<a href="org/mozilla/javascript/NotAFunctionException.html">NotAFunctionException</a>
- Thrown when attempting to call an object that is not a function.</li>
<li>
<a href="org/mozilla/javascript/EvaluatorException.html">EvaluatorException</a>
- An exception thrown when an error is detected during the execution of
a script. The default error reporter will throw EvaluatorExceptions when
an error is encountered.</li>
</ul>
<hr WIDTH="100%">
<br><a href="overview-summary.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,43 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java, BSF, Apache">
<title>Rhino and BSF</title>
</head>
<body bgcolor="#FFFFFF">
<script src="owner.js"></script>
<center>
<h1>
Using Rhino with BSF and Apache</h1></center>
<script>document.write(owner());</script>
<br><script>
var d = new Date(document.lastModified);
document.write((d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
document.write('<br>');
</script>
<hr WIDTH="100%">
<br>The <a href="http://oss.software.ibm.com/developerworks/projects/bsf">Bean
Scripting Framework</a> (or BSF) was originally developed by IBM and now
published as open source. It provides a framework for using a number of
scripting languages with Java. Rhino is one of the supported languages.
<p>This framework has been embedded in a number of open source projects,
including the XSL processor <a href="http://xml.apache.org/xalan/index.html">Xalan</a>
and the XML/Java build tool <a href="http://jakarta.apache.org/ant/index.html">Ant</a>.
<p>You can download a version of <tt>bsf.jar</tt> from <a href="http://oss.software.ibm.com/developerworks/projects/bsf">http://oss.software.ibm.com/developerworks/projects/bsf</a>
that includes the <tt>com.ibm.bsf.engines.javascript.JavaScriptEngine</tt>
class. The current version is 2.2 release candidate at the time of this
writing. This version thus supports JavaScript through Rhino when used
with the <tt>js.jar</tt> file from either <tt>rhino15R1.zip</tt> or <tt>rhinoTip.zip</tt>.
<p>See <a href="http://xml.apache.org/xalan/extensions.html#ex-basic">Xalan-Java
Extensions</a> for more information on adding JavaScript to XSL and the
<a href="http://jakarta.apache.org/ant/jakarta-ant/docs/#script">Script
task</a> for using scripting in Ant build files.
<p><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,24 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Change Log</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Change Log for Significant Rhino Changes</h1></center>
This is a log of significant changes since the release of Rhino 1.5 Release
3.
<p><i>None yet!</i>
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

View File

@@ -0,0 +1,98 @@
<html>
<head>
<title>Debugger API for Rhino</title>
</head>
<body bgcolor="#FFFFFF">
<h1><center>Debugger API for Rhino</center></h1>
<p>
<font color="red"><center>This release of the Debugger API should be considered to be of Beta quality.</center></font>
<p>
The Debugger API for Rhino consists of a set of Java interfaces
which describes a high level debugger API and a default implementation of that
API.
<p>
Most of the API is in the <code>com.netscape.javascript.debug</code> package. It is built
upon low-level support built into the core engine in <code>com.netscape.javascript</code>.
<p>
The <code>com.netscape.javascript.debug</code> package includes an implementation of the Debugger API
interfaces outlined below. The class <code>com.netscape.javascript.debug.DebugManager.java</code>
implements the <a href="com/netscape/javascript/debug/IDebugManager.html">IDebugManager</a>
interface and <code>com.netscape.javascript.debug.SourceTextManagerImpl.java</code> implements
the <a href="com/netscape/javascript/SourceTextManager.html">SourceTextManager</a> interface.
<p>
The class <code>com.netscape.javascript.tools.shell.Main.java</code> provides an
example which invokes the Debugger API.
<p>
<hr>
<p>
The core interface of the API is <a href="com/netscape/javascript/debug/IDebugManager.html">IDebugManager</a>.
This interface provide the central point for interacting with the debug system.
It supports the setting of the following hooks:
<ul>
<li><a href="com/netscape/javascript/debug/IInterruptHook.html">IInterruptHook</a> for immediate interrupt.
<li><a href="com/netscape/javascript/debug/IInstructionHook.html">IInstructionHook</a> for breakpoints.
<li><a href="com/netscape/javascript/debug/IDebugBreakHook.html">IDebugBreakHook</a> for breaking on errors.
<li><a href="com/netscape/javascript/debug/IErrorReporter.html">IErrorReporter</a> for hooking into the error reporter system.
<li><a href="com/netscape/javascript/debug/IScriptHook.html">IScriptHook</a> for notification of script and function load and unload.
</ul>
Customers of the Debugger API can provide implementations of these hook
interfaces which can be passed to the <i>IDebugManager</i> in order receive
notification of the various events within the core JavaScript engine.
<p>
When hooks are called they are passed appropriate objects which are implemented
by the Debugger API to describe such things as <i>stack frames</i>,
<i> program counter locations</i>, etc. The interfaces for these objects are:
<ul>
<li><a href="com/netscape/javascript/debug/IThreadState.html">IThreadState</a> representing the state of the stopped thread.
<li><a href="com/netscape/javascript/debug/IStackFrame.html">IStackFrame</a> representing a stack frame.
<li><a href="com/netscape/javascript/debug/IPC.html">IPC</a> representing a program counter location.
<li><a href="com/netscape/javascript/debug/IScript.html">IScript</a> representing a compiled JavaScript script or function.
<li><a href="com/netscape/javascript/debug/ISourceLocation.html">ISourceLocation</a> representing a location in the souce code.
</ul>
<p>
<hr>
<p>
<a href="com/netscape/javascript/SourceTextManager.html">SourceTextManager</a>
is an interface used to supply a centralized location from which a debugger
client can access JavaScript source. It supports capturing source as it is
parsed by <i>Rhino</i>. Alternately, source can be fed to it by the
embedding; e.g. in a browser embedding where the JavaScript code is just a
part of the html source the browser can feed the entire source to the
<i>SourceTextManager</i> so that a debugger can 'see' the whole source and
not just the part that is fed to the JavaScript compiler.
<p>
<a href="com/netscape/javascript/SourceTextItem.html">SourceTextItem</a> is an
interface representing a single 'block' of source code text (typically this
is an entire source file). This may be pure JavaScript source, or may include
JavaScript source embedded in html or whatever. The point is that this is the
text that a debugger should show to a user while debugging the JavaScript code.
This interface supports incrementally updated content. This is specifically
useful in browser embeddings where text is received in blocks. In fact, in a
browser it is possible that some of the source on a page may be compiled
and run even before the entire content of the page has been received from a
server.
<p>
<hr>
<p>
<a href="com/netscape/javascript/debug/ILaunchableDebugger.html">ILaunchableDebugger</a>
is an interface that abstractly represents a debugger user interface. It is
defined to allow an embedding to request that a debugger be launched without
requiring that the embedding be coupled at compile time to a particular debugger
implementation.
<p>
<hr>
<h3>Limitations and unimplemented features</h3>
<ul>
<li>Data Watchpoints are not implemented.
<li>Catching exceptions thrown in JavaScript code is not implemented.
<li>Per context hooking is not implemented.
<li>Setting the debug level to any non-zero value forces the optimization level to zero.
<li>Tracking of calls to plain Java methods from JavaScript is not implemented.
<li>Running at debug level >= 6 causes JIT errors with the Symantec JVM (but no other JVMs)
<li>The Debug API has not been rigorously tested.
</ul>
<p>
<hr WIDTH="100%">
<br><A HREF="overview-summary.html">back to top</A>
</body>
</html>

View File

@@ -0,0 +1,241 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; I) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java, Debugger">
<title>Rhino Debugger</title>
</head>
<body bgcolor="#FFFFFF">
<script src="owner.js">
</script>
<center>
<h1>
Rhino JavaScript Debugger</h1></center>
Christopher Oliver
<br><script>document.write(owner());</script>
<br>6/28/2001
<center>
<hr WIDTH="100%"></center>
The Rhino JavaScript debugger is a GUI that allows debugging of interpreted
JavaScript scripts run in Rhino. Note that this debugger <i>will not</i>
work with JavaScript scripts run in the mozilla browser since Rhino is
not the engine used in such environments.
<p><img SRC="jsdebug.jpg" height=460 width=600>
<p>Current limitations:
<ul>
<li>
Requires JDK 1.2 or greater</li>
<li>
Requires js.jar from rhinoTip.zip</li>
<li>
No breakpoint menu</li>
</ul>
<b><font face="Arial"><font color="#000080"><font size=+2>Using the Rhino
JavaScript Debugger</font></font></font></b>
<p><font size=-1>The Mozilla Rhino JavaScript engine includes a source-level
debugger for debugging JavaScript scripts. The debugger is itself a Java
program which you may run as</font>
<ol><font face="Arial"><font size=-1>java org.mozilla.javascript.tools.debugger.Main
[options] [filename.js] [script-arguments]</font></font></ol>
<font size=-1>where the options are the same as the shell.</font>
<p><font size=-1>The Rhino JavaScript Debugger can debug scripts running
in multiple threads and provides facilities to set and clear breakpoints,
control execution, view variables, and evaluate arbitrary JavaScript code
in the current scope of an executing script.</font>
<p><a NAME="_Toc502165109"></a><b><font face="Arial"><font color="#000080"><font size=-1>Console
Window</font></font></font></b>
<br><font size=-1>The debugger redirects the <font face="Arial">System.out</font>,
<font face="Arial">System.in</font>,
and <font face="Arial">System.err</font> streams to an internal JavaScript
console window which provides an editable command line for you to enter
JavaScript code and view system output. The console window maintains a
history of the commands you have entered. You may move backward and forward
through the history list by pressing the Up/Down arrow keys on the keyboard.</font>
<br><a NAME="_Toc502165110"></a><b><font face="Arial"><font color="#000080"><font size=-1>Opening
Scripts</font></font></font></b>
<br><font size=-1>You may select the <b><i>File->Open</i></b> menu item
on the menu bar to load JavaScript scripts contained in files. This action
will display a file-selection dialog box prompting you for the location
of a script to load. The selected file will be compiled and displayed in
a new window.</font>
<br><a NAME="_RunningScripts"></a><b><font face="Arial"><font color="#000080"><font size=-1>Running
Scripts</font></font></font></b>
<br><font size=-1>You may select the <b><i>File->Run</i></b> menu item
on the menu bar to execute JavaScript scripts contained in files. This
action will display a file-selection dialog box prompting you for the location
of a script to execute. The loaded script will be run in a new thread and
control will be given to the debugger on its first instruction.</font>
<p><a NAME="_Toc502165111"></a><b><font face="Arial"><font color="#000080"><font size=+1>Controlling
Execution</font></font></font></b>
<br><font size=-1>The debugger provides the following facilities for you
to control the execution of scripts you are debugging:</font>
<p><b><font face="Arial"><font color="#000080">Step Into</font></font></b>
<br><font size=-1>To single step entering any function calls, you may do
any of the following:</font>
<ul>
<li>
<font size=-1>Select the <b><i>Debug->Step Into </i></b>menu item on the
menu bar</font></li>
<li>
<font size=-1>Press the <b><i>Step Into</i></b> button on the toolbar</font></li>
<li>
<font size=-1>Press the F11 key on the keyboard</font></li>
</ul>
<font size=-1>Execution will resume. If the current line in the script
contains a function call control will return to the debugger upon entry
into the function. Otherwise control will return to the debugger at the
next line in the current function.</font>
<p><b><font face="Arial"><font color="#000080">Step Over</font></font></b>
<br><font size=-1>To single step to the next line in the current function,
you may do any of the following:</font>
<ul>
<li>
<font size=-1>Select the <b><i>Debug->Step Over</i></b> menu item on the
menu bar</font></li>
<li>
<font size=-1>Press the <b><i>Step Over</i></b> button on the toolbar</font></li>
<li>
<font size=-1>Press the F7 key on the keyboard</font></li>
</ul>
<font size=-1>Execution will resume but control will return to the debugger
at the next line in the current function or top-level script.</font>
<p><b><font face="Arial"><font color="#000080">Step Out</font></font></b>
<br><font size=-1>To continue execution until the current function returns
you may do any of the following:</font>
<ul>
<li>
<font size=-1>Select the <b><i>Debug->Step Out</i></b> menu item on the
menu bar</font></li>
<li>
<font size=-1>Press the <b><i>Step Out</i></b> button on the toolbar</font></li>
<li>
<font size=-1>Press the F8 key on the keyboard</font></li>
</ul>
<font size=-1>Execution will resume until the current function returns
or a breakpoint is hit.</font>
<p><b><font face="Arial"><font color="#000080">Go</font></font></b>
<br><font size=-1>To resume execution of a script you may do any of the
following:</font>
<ul>
<li>
<font size=-1>Select the <b><i>Debug->Go</i></b> menu item on the menu
bar</font></li>
<li>
<font size=-1>Press the <b><i>Go</i></b> button on the toolbar</font></li>
<li>
<font size=-1>Press the F5 key on the keyboard</font></li>
</ul>
<font size=-1>Execution will resume until a breakpoint is hit or the script
completes.</font>
<p><b><font face="Arial"><font color="#000080">Break</font></font></b>
<br><font size=-1>To stop all running scripts and give control to the debugger
you may do any of the following:</font>
<ul>
<li>
<font size=-1>Select the <b><i>Debug->Break</i></b> menu item on the menu
bar</font></li>
<li>
<font size=-1>Press the <b><i>Break</i></b> button on the toolbar</font></li>
<li>
<font size=-1>Press the Pause/Break key on the keyboard</font></li>
</ul>
<a NAME="_RunningScripts"></a><b><font face="Arial"><font color="#000080"><font size=-1>Break
on Exceptions</font></font></font></b>
<br><font size=-1>To give control to the debugger whenever a JavaScript
is exception is thrown select the <b><i>Debug->Break on Exceptions</i></b>
checkbox from the menu bar.&nbsp; Whenever a JavaScript exception is thrown
by a script a message dialog will be displayed and control will be given
to the debugger at the location the exception is raised.</font>
<p><a NAME="_Toc502165112"></a><b><font face="Arial"><font color="#000080">Moving
Up and Down the Stack</font></font></b>
<br><font size=-1>The lower-left (dockable) pane in the debugger main window
contains a combo-box labeled "Context:" which displays the current stack
of the executing script. You may move up and down the stack by selecting
an entry in the combo-box. When you select a stack frame the variables
and watch windows are updated to reflect the names and values of the variables
visible at that scope.</font>
<p><a NAME="_Toc502165113"></a><b><font face="Arial"><font color="#000080">Setting
and Clearing Breakpoints</font></font></b>
<br><font size=-1>The main desktop of the debugger contains file windows
which display the contents of each script you are debugging. You may set
a breakpoint in a script by doing one of the following:</font>
<ul>
<li>
<font size=-1>Place the cursor on the line at which you want to set a breakpoint
and right-click with the mouse. This action will display a pop-up menu.
Select the <b><i>Set Breakpoint</i></b> menu item.</font></li>
<li>
<font size=-1>Simply single-click on the line number of the line at which
you want to set a breakpoint.</font></li>
</ul>
<font size=-1>If the selected line contains executable code a red dot will
appear next to the line number and a breakpoint will be set at that location.</font>
<p><font size=-1>You may clear breakpoint in a script by doing one of the
following:</font>
<ul>
<li>
<font size=-1>Place the cursor on the line at which you want to clear a
breakpoint and right-click with the mouse. This action will display a pop-up
menu. Select the <b><i>Clear Breakpoint</i></b> menu item.</font></li>
<li>
<font size=-1>Simply single-click on the red dot or the line number of
the line at which you want to clear a breakpoint.</font></li>
</ul>
<font size=-1>The red dot will disappear and the breakpoint at that location
will be cleared.</font>
<p><a NAME="_Toc502165114"></a><b><font face="Arial"><font color="#000080"><font size=+1>Viewing
Variables</font></font></font></b>
<br><font size=-1>The lower-left (dockable) pane in the debugger main window
contains a tab-pane with two tabs, labeled "this" and "Locals". Each pane
contains a tree-table which displays the properties of the current object
and currently visible local variables, respectively.</font>
<p><b><font face="Arial"><font color="#000080">This</font></font></b>
<br><font size=-1>The properties of the current object are displayed in
the
<b><i>this</i></b> table. If a property is itself a JavaScript object
the property may be expanded to show its sub-properties. The <b><i>this</i></b>
table is updated each time control returns to the debugger or when you
change the stack location in the <b><i>Context:</i></b> window.</font>
<p><b><font face="Arial"><font color="#000080">Locals</font></font></b>
<br><font size=-1>The local variables of the current function are displayed
in the <b><i>Locals</i></b> table. If a variable is itself a JavaScript
object the variable may be expanded to show its sub-properties. The <b><i>Locals</i></b>
table is updated each time control returns to the debugger or when you
change the stack location in the <b><i>Context:</i></b> window</font>
<p><a NAME="_Toc502165116"></a><b><font face="Arial"><font color="#000080">Watch
Window</font></font></b>
<br><font size=-1>You may enter arbitrary JavaScript expressions in the
<b><i>Watch:</i></b>
table located in the lower-right (dockable) pane in the debugger main window.
The expressions you enter are re-evaluated in the current scope and their
current values displayed each time control returns to the debugger or when
you change the stack location in the <b><i>Context:</i></b> window.</font>
<p><a NAME="_Toc502165117"></a><b><font face="Arial"><font color="#000080">Evaluation
Window</font></font></b>
<br><font size=-1>The <b><i>Evaluate</i></b> pane located in the lower-right
(dockable) pane in the debugger main window contains an editable command
line where you may enter arbitrary JavaScript code. The code is evaluated
in the context of the current stack frame. The window maintains a history
of the commands you have entered. You may move backward or forward through
the history by pressing the Up/Down arrow keys on the keyboard.</font>
</body>
</html>

View File

@@ -0,0 +1,166 @@
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Rhino Documentation</title>
</head>
<body bgcolor="#ffffff">
<center>
<h1> Rhino Documentation</h1>
</center>
<b><i><font size="+1">General</font></i></b>
<table width="100%">
<tbody>
<tr>
<td><a href="overview.html">Overview</a>
</td>
<td>An overview of the JavaScript language and of Rhino.</td>
</tr>
<tr>
<td><a href="limits.html">Requirements and Limitations</a>
</td>
<td>What you must have to run Rhino; what Rhino cannot do.</td>
</tr>
<tr>
<td><a href="rhino15R3.html">What's new in 1.5R3</a>
</td>
<td>Changes since 1.5R2.</td>
</tr>
<tr>
<td><a href="debugger.html">Rhino Debugger</a>
</td>
<td>A debugger for debugging JavaScript running in Rhino.</td>
</tr>
<tr>
<td><a href="opt.html">Optimization</a>
</td>
<td>Details on the various optimization levels.</td>
</tr>
<tr>
<td><a href="http://sourceforge.net/projects/jscorba">JS/CORBA Adapter</a>
</td>
<td>Provides a mechanism for arbitrary JavaScript objects to interact
with each other transparently in a distributed JavaScript system using CORBA.</td>
</tr>
<tr>
<td><a href="bsf.html">Using Rhino with BSF and Apache</a>
</td>
<td>How to use Rhino with apps that support BSF.</td>
</tr>
<tr>
<td><a href="changes.html">Recent Changes</a>
</td>
<td>Describes recent changes to Rhino.</td>
</tr>
<tr>
<td><a href="faq.html">FAQ</a>
</td>
<td>Answers to frequently asked questions about Rhino.</td>
</tr>
<tr>
<td><a href="http://industry.java.sun.com/javaone/99/event/0,1768,629,00.html">
1999 JavaOne session on Rhino</a>
</td>
<td>A talk on Rhino with slides. Also see the <a href="javaone.html">followup</a>
.</td>
</tr>
<tr>
<td valign="Top"><a href="http://www.ociweb.com/jnb/archive/jnbMar2001.html">
Scripting Languages for Java</a>
<br>
</td>
<td valign="Top">An article comparing and contrasting Rhino and Jython.<br>
</td>
</tr>
</tbody>
</table>
<p><b><i><font size="+1">Writing Scripts</font></i></b>
<table width="100%">
<tbody>
<tr>
<td><a href="scriptjava.html">Scripting Java</a>
</td>
<td>How to use Rhino to script Java classes.</td>
</tr>
<tr>
<td><a href="perf.html">Performance Hints</a>
</td>
<td>Some tips on writing faster JavaScript code.</td>
</tr>
<tr>
<td><a href="tools.html">Tools</a>
</td>
<td>Some tools for developing JavaScript scripts.</td>
</tr>
</tbody>
</table>
</p>
<p><b><i><font size="+1">Embedding Rhino</font></i></b>
<table width="100%">
<tbody>
<tr>
<td><a href="tutorial.html">Embedding tutorial</a>
</td>
<td>A short tutorial on how to embed Rhino into your application.</td>
</tr>
<tr>
<td><a href="apidocs/index.html">API javadoc Reference</a>
</td>
<td>An annotated outline of the programming interface to Rhino (tip only).</td>
</tr>
<tr>
<td><a href="scopes.html">Scopes and Contexts</a>
</td>
<td>Describes how to use scopes and contexts for the best performance
and flexibility, with an eye toward multithreaded environments.</td>
</tr>
<tr>
<td><a href="serialization.html">Serialization</a>
</td>
<td>How to serialize JavaScript objects and functions in Rhino.</td>
</tr>
<tr>
<td><a href="runtime.html">Runtime</a>
</td>
<td>A brief description of the JavaScript runtime.</td>
</tr>
<tr>
<td><a href="footprint.html">Small Footprint</a>
</td>
<td>Hints for those interested in small-footprint embeddings.</td>
</tr>
<tr>
<td><a href="examples.html">Examples</a>
</td>
<td>A set of examples showing how to control the JavaScript engine and
build JavaScript host objects.</td>
</tr>
<tr>
<td><font color="#000000"><a href="http://www.mozilla.org/js/tests/library.html">
Testing</a>
</font></td>
<td>How to run the JavaScript test suite.</td>
</tr>
</tbody>
</table>
</p>
<h3>
<hr width="100%"><a href="index.html">back to top</a>
</h3>
</body>
</html>

View File

@@ -0,0 +1,88 @@
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>Rhino Downloads</title>
</head>
<body>
<center><b><font size="+3">Rhino Downloads</font></b></center>
<p>Rhino is available for download both in source and compiled form. </p>
<h3> Binaries</h3>
You can download binaries (JAR files) from <a href="ftp://ftp.mozilla.org/pub/js/">
ftp://ftp.mozilla.org/pub/js/</a>
. Rhino 1.5 Release 2 is the last qualified release. It is also possible to
download the latest rhino build that reflects newer features and bug fixes,
but has not been fully qualified. These zip files also include the source.
<p>If you are looking for <tt>js.jar</tt> for XSLT or for IBM's Bean Scripting
Framework (BSF), download one of the zip files below and unzip it. </p>
<ul>
<li> <a href="ftp://ftp.mozilla.org/pub/js/rhino15R3-rc2.zip">Rhino 1.5R3
(release candidate 2).</a>
</li>
<ul>
<li> <i><font size="-1"><a href="rhino15R3.html">Description of changes
from 1.5R2</a>
</font></i>.</li>
</ul>
<li> <a href="ftp://ftp.mozilla.org/pub/js/rhino15R2.zip">Rhino 1.5R2.</a>
</li>
<ul>
<li> <i><font size="-1"><a href="rhino15R2.html">Description of changes
from 1.5R1</a>
</font></i>.</li>
</ul>
<li> <a href="ftp://ftp.mozilla.org/pub/js/rhino15R1.zip">Rhino 1.5R1.</a>
</li>
<ul>
<li> <i><font size="-1"><a href="rhino15R1.html">Description of changes
from 1.4R3</a>
</font></i>.</li>
</ul>
<li> <a href="ftp://ftp.mozilla.org/pub/js/rhino14R3.zip">Rhino 1.4 Release
3</a>
.</li>
<li> <a href="ftp://ftp.mozilla.org/pub/js/rhinoLatest.zip">Latest Rhino
builds</a>
.</li>
<ul>
<li> <i><font size="-1"><a href="changes.html">Description of changes from
1.5R3</a>
</font></i>.</li>
</ul>
</ul>
<h3> Source</h3>
The source code for Rhino is available under <a href="http://www.mozilla.org/NPL/">
NPL 1.1</a>
. In addition to getting the source from the zip files above, the source
code for Rhino can be found in the CVS tree at mozilla/js/rhino. See&nbsp;
<a href="http://www.mozilla.org/cvs.html">source code via cvs</a>
for details on how to set up CVS, define your CVSROOT, and login. Once you've
done that, just execute the command
<pre>&nbsp;&nbsp;&nbsp; cvs co mozilla/js/rhino</pre>
to get the tip source.
<p>The current tip can also be viewed using LXR at <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/">
http://lxr.mozilla.org/mozilla/source/js/rhino/</a>
. </p>
<p> </p>
<hr width="100%"><a href="index.html">back to top</a>
<br>
&nbsp;
</body>
</html>

View File

@@ -0,0 +1,278 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 97">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; U) [Netscape]">
<title>Embedding Scripting Host in Business Applications</title>
</head>
<body link="#0000FF">
<b><font face="Arial"><font size=-1>Embedding
Scripting Host in Business Applications</font></font></b>
<p><b><font face="Arial"><font size=-1>Madhukumar Seshadri, <a href="http://www.cognizant.com)/">www.cognizant.com</a></font></font></b>
<br>&nbsp;
<br>&nbsp;
<p><font face="Arial"><font size=-1>With web browsers, continuing to rule
the human interface for applications, creating value by being ubiquitous,
few adoptions of rich technology thats getting brewed underneath, will
help designing business applications even though most of the current ones
are made with birds eye of the underlying technologies.</font></font>
<p><font face="Arial"><font size=-1>JavaScript is a scripting language
invented and developed by Netscape. The language was primarily designed
for creating lightweight programming for web browser extensions by exposing
the Document Object Model of an HTML page to the scripts. JavaScript is
becoming object oriented and getting adopted for server-side scripting.</font></font>
<p><font face="Arial"><font size=-1>JavaScript is also becoming a standard
in the scripting world as Netscape is working closely with ECMA (European
Computer Manufacturers Association) to make it as a standard scripting
language for the script world. The standards are published as ECMA Script.</font></font>
<p><font face="Arial"><font size=-1>JavaScript originally designed for
exposing the DOM (Document Object Model) standardized by World Wide Web
consortium (W3C), to help web page designers to control and manipulate
the pages dynamically. JavaScript engines were embedded in the browsers
and they execute those portions of the code embedded in the HTML pages.</font></font>
<p><font face="Arial"><font size=-1>In short, JavaScript engine embedded
in the browser allowed extensions or manipulations for DOM Object run time
for the HTML page by executing the scripts associated with them. In other
words, browser exposes its DOM object for the page to scripts for extensions
and dynamic manipulations of the same, using a language that the script
interpreter understands.</font></font>
<p><font face="Arial"><font size=-1>Can I do the same for my application
by exposing my custom business objects written in my middle-tier? Can I
allow user to my write JavaScript extensions for my objects and also be
host for executing those scripts?</font></font>
<p><font face="Arial"><font size=-1>JavaScript host runs times are available
as binaries written in major languages. Check out <a href="http://www.mozilla.org/js">www.mozilla.org/js</a>.
Spider Monkey and Rhino are open source JavaScripting engines available
from mozilla.</font></font>
<p><font face="Arial"><font size=-1>Microsoft implementation of ECMA Script
(ECMA Script is based on core JavaScript, created by Netscape) is called
JScript. Microsoft binaries of jscript engine can be downloaded from http://msdn.microsoft.com/scripting/.</font></font>
<p><font face="Arial"><font size=-1>This document doesnt explain the JavaScript
language in detail but explains how these scripting engines can be used
as host to expose business objects in the middle-tier and how the user
of these applications can extend it if needed using JavaScript.</font></font>
<p><font face="Arial"><font size=-1>The scripting engine Rhino (<a href="http://www.mozilla.org/js)">www.mozilla.org/rhino)</a>,
a javascript engine purely written in Java is one that I am going to use
for the testing the above.</font></font>
<p><font face="Arial"><font size=-1>Let us set some simple goals,</font></font>
<ul>
<li>
<font face="Arial"><font size=-1>Execute a plain JavaScript code and
use static Java object</font></font></li>
<li>
<font face="Arial"><font size=-1>Instantiate external objects (written
in Java) from the script and use them within the script</font></font></li>
</ul>
<br>&nbsp;
<br>&nbsp;
<p><font face="Arial"><font size=-1>Let us write a simple Javscript to
test the above set goals,</font></font>
<p><font face="Arial"><font size=-1><b>Fig 1</b> jshosttest.js</font></font>
<p><b><i><font face="Arial"><font size=-1>/* Test 1 */</font></font></i></b>
<br><b><i><font face="Arial"><font size=-1>/* Use a static Java Object
in the script */</font></font></i></b>
<p><font face="Arial"><font size=-1>function test1() {</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; var str;</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; str = '"Hello World";</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; return str;</font></font>
<br><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>var str = test1( );</font></font>
<br><font face="Arial"><font size=-1>//out is expected to be Java Object
exposed to the script scope</font></font>
<br><font face="Arial"><font size=-1>out.println ("JavaScript - Test 1
- " + str);</font></font>
<p><b><i><font face="Arial"><font size=-1>/* Test 2 */</font></font></i></b>
<p><b><i><font face="Arial"><font size=-1>/* Instantiate a Javaobject for
this scope and use it */</font></font></i></b>
<p><font face="Arial"><font size=-1>function test2(){</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; // create a Java
string buffer object from JavaScript and use its java instance</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; // This uses an
another Java object created for creating new objects within Java and</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; // brings the same
for JavaScript execution scope</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; // Refer _create.java
for more information</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; create.getInstance("java.lang.StringBuffer","buffer");</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; //JavaScript refers
the java object instance as buffer</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; out.println(buffer.toString());</font></font>
<br>&nbsp;&nbsp;&nbsp; <font face="Arial"><font size=-1>buffer.append("I
am a javaobject dynamically created and executed in JavaScript");</font></font>
<br>&nbsp;&nbsp;&nbsp; <font face="Arial"><font size=-1>return buffer.toString();</font></font>
<br><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>var str = test2();</font></font>
<br><font face="Arial"><font size=-1>out.println("From JavaScript - Test
2 " + str);</font></font>
<p><font face="Arial"><font size=-1>Let us write a simple Javahost Object
using the Rhino engine to execute the above script,</font></font>
<p><b><font face="Arial"><font size=-1>Fig 2.1 - JSHost.java</font></font></b>
<p><font face="Arial"><font size=-1>/**</font></font>
<br><font face="Arial"><font size=-1>* @author Madhukumar Seshadri</font></font>
<br><font face="Arial"><font size=-1>* @version</font></font>
<br><font face="Arial"><font size=-1>*/</font></font>
<p><font face="Arial"><font size=-1>import org.mozilla.javascript.*;</font></font>
<br><font face="Arial"><font size=-1>import java.io.*;</font></font>
<br><font face="Arial"><font size=-1>import java.lang.*;</font></font>
<br><i><font face="Arial"><font size=-1>// import com.xxx.xxx.*;</font></font></i>
<p><font face="Arial"><font size=-1>public class JSHost extends Object
{</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; /** Creates new
JSHost */</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; public JSHost()
{</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; }</font></font>
<p><i><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; /*** Executes
.js file ***/</font></font></i>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; public Object executeJS
(String jsfname){</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; //You can also
use evaluateReader</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; File fp = new File(jsfname);</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; String str_buff
=null;</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; try {</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
FileReader fr = new FileReader(jsfname);</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
int length = (int) fp.length();</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
char cbuff[] = new char[(char)length];</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
fr.read(cbuff);</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
str_buff = new String(cbuff);</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; } catch(Exception
e) {</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
e.printStackTrace();</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; }</font></font>
<p><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; //Execute the .js
file content</font></font>
<br><font face="Arial"><font size=-1>&nbsp;&nbsp;&nbsp; return executeJSSource(str_buff);</font></font>
<br><font face="Arial"><font size=-1>}</font></font>
<p><i><font face="Arial"><font size=-1>/*** Executes javascript source
***/</font></font></i>
<br><font face="Arial"><font size=-1>public Object executeJSSource (String
jsbuff){</font></font>
<br><font face="Arial"><font size=-1>Object any=null;</font></font>
<br><font face="Arial"><font size=-1>try{</font></font>
<br><i><font face="Arial"><font size=-1>//Enter the Context</font></font></i>
<br><font face="Arial"><font size=-1><i>// Refer </i><u><font color="#0000FF">http://www.mozilla.org/js/rhino/tutorial.html</font></u></font></font>
<br><font face="Arial"><font size=-1>Context context = Context.enter();</font></font>
<br><i><font face="Arial"><font size=-1>// Get the execution scope</font></font></i>
<br><font face="Arial"><font size=-1>Scriptable scope = context.initStandardObjects(null);</font></font>
<p><i><font face="Arial"><font size=-1>//----------- For Test 1 - Get System.out
in scope</font></font></i>
<br><font face="Arial"><font size=-1>//Scriptable jObj1 = Context.toObject(System.out,
scope);</font></font>
<br><font face="Arial"><font size=-1>scope.put("out", scope, jObj1);</font></font>
<p><i><font face="Arial"><font size=-1>//------------ For Test 2 - Instantiate
Create Object and get that in scope</font></font></i>
<br><i><font face="Arial"><font size=-1>//Allow JScript to create Java
Objects</font></font></i>
<br><i><font face="Arial"><font size=-1>//Bring the _create object to context</font></font></i>
<br><font face="Arial"><font size=-1>_create create = new _create( );</font></font>
<br><i><font face="Arial"><font size=-1>//Register this context and scope
to this create object instance</font></font></i>
<br><font face="Arial"><font size=-1>create.registerContext(context,scope);</font></font>
<br><font face="Arial"><font size=-1>//Scriptable jObj2 = Context.toObject(_create,
scope);</font></font>
<br><font face="Arial"><font size=-1>scope.put("create",scope,create);</font></font>
<br><i><font face="Arial"><font size=-1>//Evaluate (or execute js)</font></font></i>
<br><font face="Arial"><font size=-1><i>//Refer </i><u><font color="#0000FF">http://www.mozilla.org/js/rhino/tutorial.html</font></u></font></font>
<br><font face="Arial"><font size=-1>any = context.evaluateString(scope,
jsbuff, "", 1, null);</font></font>
<br><i><font face="Arial"><font size=-1>//Exit the Context</font></font></i>
<br><font face="Arial"><font size=-1>context.exit( );</font></font>
<br><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>catch ( JavaScriptException jse) {</font></font>
<br><font face="Arial"><font size=-1>jse.printStackTrace();</font></font>
<br><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>return any;</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<br>&nbsp;
<br>&nbsp;
<p><font face="Arial"><font size=-1>Let us write a class for creating new
Java objects and bringing them to this script execution scope,</font></font>
<p><b><font face="Arial"><font size=-1>Fig 2.2 _create.java</font></font></b>
<p><i><font face="Arial"><font size=-1>/**</font></font></i>
<p><i><font face="Arial"><font size=-1>* @author Madhukumar</font></font></i>
<p><i><font face="Arial"><font size=-1>*/</font></font></i>
<p><font face="Arial"><font size=-1>import java.lang.Class;</font></font>
<p><font face="Arial"><font size=-1>import org.mozilla.javascript.*;</font></font>
<p><font face="Arial"><font size=-1>public class _create extends Object
{</font></font>
<p><font face="Arial"><font size=-1>static Context ptr = null;</font></font>
<p><font face="Arial"><font size=-1>static Scriptable scope =null;</font></font>
<p><font face="Arial"><font size=-1>public _create () { }</font></font>
<p><font face="Arial"><font size=-1>public void registerContext(Context
cptr, Scriptable sc){</font></font>
<p><font face="Arial"><font size=-1>ptr = cptr;</font></font>
<p><font face="Arial"><font size=-1>scope = sc;</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>public void getInstance(String classname,String
jsclassname) {</font></font>
<p><font face="Arial"><font size=-1>Object any=null;</font></font>
<p><font face="Arial"><font size=-1>try {</font></font>
<p><font face="Arial"><font size=-1>Class thisclass = Class.forName(classname);</font></font>
<p><font face="Arial"><font size=-1>any = thisclass.newInstance();</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>catch(Exception e){</font></font>
<p><font face="Arial"><font size=-1>e.printStackTrace();</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>if( ptr != null) {</font></font>
<p><font face="Arial"><font size=-1>if (scope !=null) {</font></font>
<p><i><font face="Arial"><font size=-1>//register created object for this
execution scope</font></font></i>
<p><font face="Arial"><font size=-1>scope.put(jsclassname,scope,any);</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<br>&nbsp;
<br>&nbsp;
<p><font face="Arial"><font size=-1>It is time to test the code, so let
us write a small object that will use the JSHost object,</font></font>
<p><b><font face="Arial"><font size=-1>Fig 3 - JSHosttest.java</font></font></b>
<p><font face="Arial"><font size=-1>/**</font></font>
<p><font face="Arial"><font size=-1>* @author Madhukumar</font></font>
<p><font face="Arial"><font size=-1>* @version</font></font>
<p><font face="Arial"><font size=-1>*/</font></font>
<p><font face="Arial"><font size=-1>public class JSHosttest extends Object
{</font></font>
<p><font face="Arial"><font size=-1>/** Creates new JSHostTest*/</font></font>
<p><font face="Arial"><font size=-1>public JSHosttest() {</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>public static void main (String args[]){</font></font>
<p><font face="Arial"><font size=-1>if (args.length &lt; 1) {</font></font>
<p><font face="Arial"><font size=-1>System.out.println("Usage - Java JSHosttest.class
&lt;js source file>");</font></font>
<p><font face="Arial"><font size=-1>return;</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>JSHost jsh = new JSHost();</font></font>
<p><font face="Arial"><font size=-1>System.out.println("Executing JavaScript
file - " + args[0]);</font></font>
<p><font face="Arial"><font size=-1>Object result = jsh.executeJS(args[0]);</font></font>
<p><font face="Arial"><font size=-1>if (result instanceof String){</font></font>
<p><font face="Arial"><font size=-1>System.out.println("Results - " + result);</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<p><font face="Arial"><font size=-1>}</font></font>
<br>&nbsp;
<br>&nbsp;
<p><font face="Arial"><font size=-1>For more explanations on the code execution,
please refer embedding tutorial <a href="http://www.mozilla.org/js/rhino/tutorial.html">http://www.mozilla.org/js/rhino/tutorial.html</a>
and for all documentation and examples on Rhino visit <a href="http://www.mozilla.org/rhino/doc.html">http://www.mozilla.org/rhino/doc.html</a>.</font></font>
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
</body>
</html>

View File

@@ -0,0 +1,89 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (WinNT; U) [Netscape]">
<title>Rhino Examples</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Rhino Examples</h1></center>
Examples have been provided that show how to control the JavaScript engine
and to implement scriptable host objects. All the examples are in the cvs
tree at <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/">mozilla/js/rhino/examples</a></tt>.
<br>&nbsp;
<h2>
Sample Scripts</h2>
The <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/unique.js">unique.js</a></tt>
script allows printing unique lines from a file.
<p>The <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/liveConnect.js">liveConnect.js</a></tt>
script shows a sample usage of LiveConnect (Java-to-JavaScript connectivity).
<p>The <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/jsdoc.js">jsdoc.js</a></tt>
script is a JavaScript analog to Java's <tt>javadoc</tt>. It makes heavy
use of regular expressions.
<p>The <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/checkParam.js">checkParam.js</a></tt>
script is a useful tool to check that <tt>@param</tt> tags in Java documentation
comments match the parameters in the corresponding Java method.
<p>The <tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/enum.js">enum.js</a></tt>
script is a good example of using a JavaAdapter to implement a Java interface
using a JavaScript object.
<p>The <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/NervousText.js">NervousText.js</a>
script is a JavaScript implementation of the famous NervousText applet
using JavaScript compiled to Java classes using <a href="jsc.html">jsc</a>.
It can be run in the HTML page <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/NervousText.html">NervousText.html</a>.
<br>&nbsp;
<h2>
Controlling the JavaScript Engine</h2>
<h4>
The RunScript class</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript.java">RunScript.java</a></tt>
is a simple program that executes a script from the command line.
<h4>
The Control class</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Control.java">Control.java</a></tt>
is a program that executes a simple script and then manipulates the result.
<h4>
JavaScript Shell</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Shell.java">Shell.java</a></tt>
is a program that executes JavaScript programs; it is a simplified version
of the shell in the <tt>tools</tt> package. The programs may be specified
as files on the command line or by typing interactively while the shell
is running.
<h4>
<b>Multithreaded Script Execution</b></h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/DynamicScopes.java">DynamicScopes.java</a></tt>
is a program that creates a single global scope object and then shares
it across multiple threads. Sharing the global scope allows both information
to be shared across threads, and amortizes the cost of Context.initStandardObjects
by only performing that expensive operation once.
<br>&nbsp;
<h2>
Implementing Host Objects</h2>
First check out the <a href="http://www.mozilla.org/rhino/tutorial.html">tutorial</a>
if you haven't already.
<h4>
The Foo class - Extending ScriptableObject</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Foo.java">Foo.java</a></tt>
is a simple JavaScript host object that includes a property with an associated
action and a variable argument method.
<br>&nbsp;
<h4>
The Matrix class - Implementing Scriptable</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Matrix.java">Matrix.java</a></tt>
provides a simple multidimensional array by implementing the Scriptable
interface.
<br>&nbsp;
<h4>
The File class - An advanced example</h4>
<tt><a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/File.java">File.java</a></tt>
extends ScriptableObject to provide a means of reading and writing files
from JavaScript. A more involved example of host object definition.
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,52 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Rhino FAQ</title>
</head>
<body bgcolor="#FFFFFF">
<script src="owner.js"></script>
<center>
<h1>
Frequently Asked Questions about Rhino</h1></center>
<script>document.write(owner());</script>
<br><script>
var d = new Date(document.lastModified);
document.write((d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
document.write('<br>');
</script>
<center>
<hr WIDTH="100%"></center>
<p><b><font size=+2>Q</font>.</b> <i>How do I create a Java array from
JavaScript?</i>
<p><b><font size=+2>A.</font></b> You must use Java reflection. For instance,
to create an array of java.lang.String of length five, do
<blockquote><tt>var stringArray = java.lang.reflect.Array.newInstance(java.lang.String,
5);</tt></blockquote>
Then if you wish to assign the string "hi" to the first element, simply
execute <tt>stringArray[0] = "hi"</tt>.
<p>Creating arrays of primitive types is slightly different: you must use
the TYPE field. For example, creating an array of seven ints can be done
with the code
<blockquote><tt>var intArray = java.lang.reflect.Array.newInstance(java.lang.Integer.TYPE,
7);</tt></blockquote>
<p><br><b><font size=+2>Q</font>.</b> <i>When I try to execute a script
I get the exception </i><tt>Required security context missing</tt><i>.
What's going on?</i>
<p><b><font size=+2>A.</font></b> You've likely missed placing the <tt>Security.properties</tt>
file in your class path at <tt>org.mozilla.javascript.resources</tt>.
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

View File

@@ -0,0 +1,48 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.51 [en] (WinNT; U) [Netscape]">
<title>Small Footprint</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Small Footprint</h1></center>
A few changes can be made to reduce the footprint of Rhino for embeddings
where space is at a premium. On a recent build, Rhino consumed 355,883
bytes of space for uncompressed class files. With various changes that
number can be reduced to 281,455 bytes.
<br>&nbsp;
<h3>
Tools</h3>
Most embeddings won't need any of the classes in <tt>org.mozilla.javascript.tools</tt>
or any of its subpackages.
<br>&nbsp;
<h3>
Regular Expressions</h3>
The package <tt>org.mozilla.javascript.regexp</tt> can be removed. Rhino
will continue to run, although it will not be able to execute any regular
expression matches. This change saves 37,792 bytes of class files.
<br>&nbsp;
<h3>
JavaAdapter</h3>
Implementing the JavaAdapter functionality requires the ability to generate
classes on the fly. Removing <tt>org.mozilla.javascript.JavaAdapter</tt> and all
the classes in package <tt>org.mozilla.classfile</tt> will disable this
functionality, but Rhino will otherwise run correctly. These changes save
36,636 bytes.
<br>&nbsp;
<h3>
Optimizer</h3>
It is possible to run Rhino with interpreter mode only, allowing you to remove
classes for classfile generation. Remove the classes in packages
<tt>org.mozilla.classfile</tt> and <tt>org.mozilla.javascript.optimizer</tt>.
<br>&nbsp;
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,44 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<title>Help with Rhino</title>
</head>
<body>
<center><b><font size=+3>Help with Rhino</font></b></center>
<script src="owner.js"></script>
<p>Have a question that you can't find answer to in the <a href="doc.html">documentation</a>?
Here are some additional resources for help:
<br>&nbsp;
<h3>
<font size=+1>Newsgroup and Mail Gateway</font></h3>
The <a href="news:netscape.public.mozilla.jseng">netscape.public.mozilla.jseng</a>
newsgroup answers questions about both Rhino and the C implementation of
JavaScript. You can get to the newsgroup through a mail gateway. Send a
message with the subject "subscribe" to <a href="mailto:mozilla-jseng-request@mozilla.org?subject=subscribe">mozilla-jseng-request@mozilla.org</a>.
To post messages, send mail to <a href="mailto:mozilla-jseng@mozilla.org">mozilla-jseng@mozilla.org</a>.
To unsubscribe, mail with "unsubscribe" in the subject to <a href="mailto:mozilla-jseng-request@mozilla.org?subject=unsubscribe">mozilla-jseng-request@mozilla.org</a>.
<p>
To view archived messages, try <a href="http://groups.google.com/groups?q=netscape.public.mozilla.jseng&hl=en&lr=&safe=off&site=groups">Google groups</a> or
other newsgroup services.
<h3>
Bug System</h3>
Use <a href="http://bugzilla.mozilla.org/enter_bug.cgi?product=Rhino">Bugzilla</a>
to enter bugs against Rhino. Note that Rhino has its own product category.
<br>&nbsp;
<h3>
Module Owner</h3>
The module owner,&nbsp;<script>document.write(owner());</script>
, can
be mailed for help as well, although he may copy his response to the newsgroup
to help others.
<p>
<hr WIDTH="100%"><a href="index.html">back to top</a>
<br>&nbsp;
<br>&nbsp;
</body>
</html>

View File

@@ -0,0 +1,45 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<title>Rhino History</title>
</head>
<body>
<center><b><font size=+3>Rhino History</font></b></center>
<p>Rhino gets its name from the animal on the cover of the <a href="http://www.ora.com/">O'Reilly</a>
book about JavaScript.
<p>The Rhino project was started at Netscape in Fall 1997. At the time,
Netscape was planning to produce a version of Navigator written entirely
in Java and so it needed an implementation of JavaScript written in Java.
When Netscape stopped work on "Javagator", as it was called, somehow Rhino
escaped the axe (rumor had it that the executives "forgot" it existed).
Since then, a couple of major companies (including Sun) have licensed Rhino
for use in their products and paid Netscape to do so, allowing us to continue
work on it. Now Rhino is planned to be part of several server products
from Netscape as well.
<p>Originally, Rhino compiled all JavaScript code to Java bytecodes in
generated classfiles. This produced the best performance (often beating
the C implementation of JavaScript when run on a JIT), but suffered from
two faults. First, compilation time was long since generating Java bytecodes
and loading the generated classes was a heavyweight process. Also, the
implementation effectively leaked memory since most JVMs don't really collect
unused classes or the strings that are interned as a result of loading
a class file.
<p>So in Fall of 1998, Rhino added an interpretive mode. The classfile
generation code was moved to an optional, dynamically-loaded package. Compilation
is faster and when scripts are no longer in use they can be collected like
any other Java object.
<p>Rhino was released to mozilla.org in April of 1998. Originally Rhino
classfile generation had been held back from release. However the licensees
of Rhino have now agreed to release all of Rhino to open source, including
class file generation. Since its release to open source, Rhino has found
a variety of <a href="users.html">uses</a> and an increasing
number of people have contributed to the code.
<p>
<hr WIDTH="100%"><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,75 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java, Mozilla">
<title>Rhino - JavaScript for Java</title>
</head>
<body>
<center>
<h1>
Rhino: JavaScript for Java</h1></center>
<center><img SRC="rhino50.jpg" height=200 width=398></center>
<hr WIDTH="100%">Rhino is an open-source implementation of JavaScript written
entirely in Java. It is typically embedded into Java applications to provide
scripting to end users.
<table WIDTH="100%" >
<tr>
<td>
<div align=right><b><a href="download.html">Downloads</a></b></div>
</td>
<td>How to get source and binaries.</td>
</tr>
<tr>
<td>
<div align=right><b><a href="doc.html">Documentation</a></b></div>
</td>
<td>Information on Rhino for script writers and embedders.</td>
</tr>
<!--
<tr>
<td>
<div align=right><b><a href="users.html">Users</a></b></div>
</td>
<td>How people are using Rhino.</td>
</tr>
-->
<tr>
<td>
<div align=right><b><a href="history.html">History</a></b></div>
</td>
<td>The ancestry of the beast.</td>
</tr>
<tr>
<td>
<div align=right><b><a href="help.html">Help</a></b></div>
</td>
<td>Some resources if you get stuck.</td>
</tr>
</table>
<hr WIDTH="100%"><font size=-1>Module owner&nbsp;</font><script src="owner.js"></script>
<script>document.write(owner());</script>
<br><font size=-1>Rhino image courtesy of Paul Houle.</font><!---
Add reference to
http://www.javaworld.com/jw-08-1999/jw-08-howto.html
and
http://www.javaworld.com/javaworld/jw-09-1999/jw-09-howto.html
--->
</body>
</html>

View File

@@ -0,0 +1,66 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.6 [en] (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Followup to JavaOne</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Followup to JavaOne session on Rhino</h1></center>
This page is intended to follow up on the <a href="http://www.javasoft.com/javaone/">JavaOne</a>
session on <a href="http://industry.java.sun.com/javaone/99/event/0,1768,629,00.html">"Rhino:
JavaScript for the Java Platform"</a>. I hope it will be useful whether
or not you actually attended the talk.
<br>&nbsp;
<h2>
Slides</h2>
<a href="http://industry.java.sun.com/javaone/99/pdfs/e629.pdf">Slides</a>
(PDF file, 1112246 bytes)&nbsp; can be downloaded from Sun's site.
<br>&nbsp;
<br>&nbsp;
<h2>
More on Q &amp; A</h2>
Following the talk there was an excellent question and answer session where
many attendees asked good questions and offered useful suggestions. I'll
follow up on some of those here. I'll start a thread on the newsgroup <a href="news://news.mozilla.org/netscape.public.mozilla.jseng">netscape.public.mozilla.jseng</a>
so people can ask addition questions or comments there.
<h3>
Java classes visible to scripts</h3>
One attendee raised the point that many embeddings may not want scripts
to be able to access all Java classes. This is an excellent point, and
I've implemented an addition to the <a href="../js/rhino/org/mozilla/javascript/SecuritySupport.html">SecuritySupport</a>
class that allows embedders to choose which classes are exposed to scripts.
<h3>
Easier "importing" of Java classes</h3>
Another attendee suggested that the current method of referring to Java
classes (like <tt>java.lang.String</tt> or <tt>Packages.org.mozilla.javascript.Context</tt>)
could be improved. I've implemented a set of changes that make importing
easier, but I'm not convinced that adding them is the right thing to do
due to some drawbacks.
<p>To see what I've done, take a look at the javadoc for the <a href="../js/rhino/org/mozilla/javascript/ImporterTopLevel.html">ImporterTopLevel</a>
class. You'll see that it's now possible to make function calls to "import"
Java classes so that they can be referred to without qualification. I didn't
use the word "import" because that's a keyword in JavaScript.
<p>There are a few drawbacks to this implemenation. First, there is a runtime
cost associated with every lookup of a top-level variable. The problem
is that it's not possible to use the Java runtime to determine the set
of classes from a given package. Instead, importing the package "java.util"
saves the package name in a special list and every access to the global
scope that fails to find a matching variable causes the runtime to see
if there is a class by that name in the "java.util" package. Even for lookups
that succeed there is an additional method call.
<p>Another drawback to this implementation is namespace pollution: now
"importClass" and "importPackage" have special meaning. It's still possible
to substitute your own variables for these functions, but it's still possible
that program behavior could change.
<p>So I'm interested in people's opinion: Is this benefit worth the costs?
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,82 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; U) [Netscape]">
<title>JavaScript Compiler</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
JavaScript Compiler</h1></center>
The JavaScript compiler translates JavaScript source into Java class files.
The resulting Java class files can then be loaded and executed at another
time, providing a convenient method for transfering JavaScript, and for
avoiding translation cost.
<p>Note that the top-level functions available to the shell (such as <tt>print</tt>)
are <i>not</i> available to compiled scripts when they are run outside
the shell.
<br>&nbsp;
<h2>
Invoking the Compiler</h2>
<tt>java org.mozilla.javascript.tools.jsc.Main</tt> [<i>options</i>] <i>file1</i><tt>.js</tt>
[<i>file2</i><tt>.js</tt>...]
<p>where <i>options</i> are:
<p><tt>-extends <i>java-class-name</i></tt>
<blockquote>Specifies that a java class extending the Java class <i>java-class-name</i>
should be generated from the incoming JavaScript source file. Each global
function in the source file is made a method of the generated class, overriding
any methods in the base class by the same name.</blockquote>
<tt>-implements <i>java-intf-name</i></tt>
<blockquote>Specifies that a java class implementing the Java interface
<i><tt>java-intf-name</tt></i>
should be generated from the incoming JavaScript source file. Each global
function in the source file is made a method of the generated class, implementing
any methods in the interface by the same name.</blockquote>
<tt>-debug</tt>
<br><tt>-g</tt>
<ul>Specifies that debug information should be generated. May not be combined
with optimization at an <i>optLevel</i> greater than zero.</ul>
<tt>-nosource</tt>
<ul>Does not save the source in the class file. Functions and scripts compiled
this way cannot be decompiled. This option can be used to avoid distributing
source or simply to save space in the resulting class file.</ul>
<tt>-o </tt><i>outputFile</i>
<ul>Writes the class file to the given file (which should end in <tt>.class</tt>).
The string <i>outputFile</i> must be a writable filename.</ul>
<tt>-opt </tt><i>optLevel</i>
<br><tt>-O</tt> <i>optLevel</i>
<ul>Optimizes at level <i>optLevel</i>, which must be an integer between
-1 and 9. See <a href="opt.html">Optimization</a> for more details. If
<i>optLevel</i>
is greater than zero, <tt>-debug</tt> may not be specified.</ul>
<tt>-package</tt> <i>packageName</i>
<ul>Specifies the package to generate the class into. The string <i>packageName</i>
must be composed of valid identifier characters optionally separated by
periods.</ul>
<tt>-version </tt><i>versionNumber</i>
<ul>Specifies the language version to compile with. The string <i>versionNumber</i>
must be one of <tt>100</tt>, <tt>110</tt>, <tt>120</tt>, <tt>130</tt>,
or <tt>140</tt>. See <a href="overview.html#versions">JavaScript Language
Versions</a> for more information on language versions.</ul>
<h2>
Examples</h2>
<tt>$ cat test.js</tt>
<br><tt>java.lang.System.out.println("hi, mom!");</tt>
<br><tt>$ java org.mozilla.javascript.tools.jsc.Main test.js</tt>
<br><tt>$ ls *.class</tt>
<br><tt>test.class</tt>
<br><tt>$ java test</tt>
<br><tt>hi, mom!</tt>
<p><tt>$ java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet
\</tt>
<br><tt>&nbsp;&nbsp;&nbsp; -implements java.lang.Runnable NervousText.js</tt>
<br>&nbsp;
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@@ -0,0 +1,86 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<title>JavaScript Requirements and Limitations</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Requirements and Limitations</h1></center>
<h2>
<b>Requirements</b></h2>
Rhino requires version 1.1 or greater of Java.
<p>To use the JavaAdapter feature or an optimization level of 0 or greater,
Rhino must be running under a security manager that allows the definition
of class loaders.
<p>
<hr WIDTH="100%">
<h2>
<b>Limitations</b></h2>
<h3>
<b>Platforms and </b>JITs</h3>
Many platforms and JREs have problems converting decimal numbers to and
from strings. These errors are usually boundary case errors and will show
up as test failures in section 7.7.3.
<p>Windows versions of the Symantec JIT prior to 3.00.029(i) will report
internal errors for some generated class files.
<p>On the Symantec JIT and the AIX JVM, accessing a static field of a class
that has not yet loaded may not give the correct value of the field. For
example, accessing
<tt>java.io.File.separatorChar</tt> before <tt>java.io.File</tt>
has been loaded will return a value of 0. (This is a bug in the JIT; accessing
the field should cause the class to be loaded.)
<p>The AIX Java version "JDK 1.1.6 IBM build a116-19980924 (JIT enabled:
jitc)" core dumps running several classes generated by Rhino. It also has
errors in java.lang.Math.pow that are reflected as failures in the JavaScript
Math object's pow method.
<p>IBM Java for Linux version "JDK 1.1.8 IBM build l118-19991013 (JIT enabled:
jitc)" has errors in java.lang.Math.pow that are reflected as test failures
in the JavaScript Math object's pow method.
<p>Solaris JDK 1.1.6 has errors in java.lang.Math.atan2 that are reflected
as test failures in the JavaScript Math object's atan2 method.
<br>&nbsp;
<h3>
<b>LiveConnect</b></h3>
If a JavaObject's field's name collides with that of a method, the value
of that field is retrieved lazily, and can be counter-intuitively affected
by later assignments:
<blockquote><tt>javaObj.fieldAndMethod = 5;</tt>
<br><tt>var field = javaObj.fieldAndMethod;</tt>
<br><tt>javaObj.fieldAndMethod = 7;</tt>
<br><tt>// now, field == 7</tt></blockquote>
You can work around this by forcing the field value to be converted to
a JavaScript type when you take its value:
<blockquote><tt>javaObj.fieldAndMethod = 5;</tt>
<br><tt>var field = javaObj.fieldAndMethod + 0; // force conversion now</tt>
<br><tt>javaObj.fieldAndMethod = 7;</tt>
<br><tt>// now, field == 5</tt></blockquote>
<h3>
<b>JSObject</b></h3>
Rhino does NOT support the <tt>netscape.javascript.JSObject</tt> class.
<br>&nbsp;
<h3>
<b>Date object</b></h3>
The JavaScript Date object depends on time facilities of the underlying
Java runtime to determine daylight savings time dates. Earlier JRE versions
may report a date for the daylight savings changeover that is a week off.
JRE 1.1.6 reports the correct date.
<p>Under the 1.1.6 JRE, evaluating <tt>(new Date(1998, 9, 25, 2)).toString()</tt>
returns:
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sun Oct 25 02:00:00 GMT-0800 (PST) 1998</pre>
Earlier versions may return:
<pre>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sun Oct 25 02:00:00 GMT-0700 (PDT) 1998</pre>
(the JRE doesn't report the changeover until Nov. 1.)
<p>The Microsoft SDK 3.1 for Java also exhibits this problem.
<p>
<hr WIDTH="100%">
<br><a href="rhino.html">back to top</a>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@@ -0,0 +1,68 @@
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Norris Boyd">
<META NAME="GENERATOR" CONTENT="Mozilla/4.05 [en] (WinNT; U) [Netscape]">
<TITLE>Optimization</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>
<H1>
Optimization</H1></CENTER>
<H2>
Optimization settings</H2>
<P>The currently supported optimization settings are:</P>
<P><B>-1</B>
<P><B></B>Interpretive mode is always
used. The compilation time is minimized at the expense of runtime performance.
No class files are generated, which may improve memory usage depending on your
system.
<p>
If the optimization package is not available, then optimization acts as if it is always -1.
</P>
<P><B>0</B>
<P><B></B>No optimizations are
performed. The bytecode compiler runs fastest in this mode, but the generated byte code
is less efficient.</P>
<P><B>1-9</B>
<P>All optimizations are performed. Simple data &amp; type
flow analysis is performed to determine which JavaScript variables can be
allocated to Java VM registers, and which variables are used only as Numbers.
Local common sub-expressions are collapsed (currently this only happens for
property lookup, but in the future more expressions may be optimized). All local
variables and parameters are allocated to Java VM registers. Function call
targets are speculatively pre-cached (based on the name used in the source) so
that dispatching can be direct, pending runtime confirmation of the actual
target. Arguments are passed as Object/Number pairs to reduce conversion
overhead.</P>
<P>Note:
<OL>
<LI>
Some language features (indirect calls to eval, use
of the arguments property of function objects) were previously not supported
in higher optimization levels. These features have been removed from the
language in ECMA, so higher optimization levels are now conformant.
<LI>
Future versions may allocate more aggressive
optimizations to higher optimization levels. For compatibility with future
versions, use level 1. For maximal optimization, use level 9, but retest
your application when upgrading to new versions.</LI>
</OL>
<P>
<HR WIDTH="100%">
<BR><A HREF="index.html">back to top</A>
<br>
</BODY>
</HTML>

View File

@@ -0,0 +1,149 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<title>JavaScript Overview</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Rhino Overview</h1></center>
<h3>
Overview of Rhino</h3>
Most people who have used JavaScript before have done so by adding scripts
to their HTML web pages. However, Rhino is an implementation of the core
language only and doesn't contain objects or methods for manipulating HTML
documents.
<p>Rhino contains
<ul>
<li>
All the features of JavaScript 1.5</li>
<li>
<a href="http://developer.netscape.com/library/documentation/communicator/jsguide4/livecon.htm">LiveConnect</a>
-- allows direct scripting of Java</li>
<li>
A JavaScript shell for executing JavaScript scripts</li>
<li>
A JavaScript compiler to transform JavaScript source files into Java class
files</li>
</ul>
<h3>
Language</h3>
The JavaScript language itself is standardized by Standard ECMA-262 <i>ECMAScript:
A general purpose, cross-platform programming language</i>. Rhino 1.5 implements
JavaScript 1.5, which conforms to Edition 3 of the Standard. The Standard
may be <a href="http://www.ecma.ch/stand/ecma-262.htm">downloaded</a> or
obtained by mail from ECMA, 114 Rue du Rh&ocirc;ne, CH1204 Geneva, Switzerland.
<p>In addition, Rhino has implemented JavaAdapters, which allows JavaScript
to implement any Java interface or extend any Java class with a JavaScript
object. See the <tt>enum.js</tt> example for more information.
<p>Numerous books and tutorials on JavaScript are available.
<br>&nbsp;
<br>&nbsp;
<h3>
Deprecated Language Features</h3>
Several language features introduced in JavaScript 1.2 are now deprecated.
These features allow "computational reflection": that is, the ability for
a script to determine and influence aspects of the way it is evaluated.
These features are generally not broadly useful, yet they impose significant
constraints on implementations that hamper or prevent optimization. The
deprecated features are the <tt>__proto__</tt> and <tt>__parent__</tt>
properties, and the constructors <tt>With</tt>, <tt>Closure</tt>, and <tt>Call</tt>.
Attempts to invoke these constructors with the language version 1.4 will
result in an error. For other versions, a warning will be generated.
<br>&nbsp;
<br>&nbsp;
<h3>
Internationalization</h3>
The messages reported by the JavaScript engine are by default retrieved
from the property file <tt>org/mozilla/javascript/resources/Messages.properties</tt>.
If other properties files with extensions corresponding to the current
locale exist, they will be used instead.
<br>&nbsp;
<br>&nbsp;
<h3>
<a NAME="versions"></a>JavaScript Language Versions</h3>
Some behavior in the JavaScript engine is dependent on the language version.
In browser embeddings, this language version is selected using the LANGUAGE
attribute of the SCRIPT tag with values such as "JavaScript1.2".
<p>Version 1.3 and greater are ECMA conformant.
<p><b>Operators <tt>==</tt> and <tt>!=</tt></b>
<p>Version 1.2 only uses strict equality for the == and != operators. In
version 1.3 and greater, == and != have the same meanings as ECMA. The
operators === and !== use strict equality in all versions.
<p><b>ToBoolean</b>
<p><tt>Boolean(new Boolean(false))</tt> is false for all versions before
1.3. It is true (and thus ECMA conformant) for version 1.3 and greater.
<p><b>Array.prototype.toString and Object.prototype.toString</b>
<p>Version 1.2 only returns array or object literal notation ("[1,2,3]"
or "{a:1, b:2}" for example). In version 1.3 and greater these functions
are ECMA conformant.
<p><b>Array constructor</b>
<p><tt>Array(i)</tt> for a number argument <tt>i</tt> constructs an array
with a single element equal to <tt>i</tt> for version 1.2 only. Otherwise
the ECMA conformant version is used (an array is constructed with no elements
but with length property equal to <tt>i</tt>).
<p><b>String.prototype.substring</b>
<p>For version 1.2 only, the two arguments are not swapped if the first
argument is less than the second one. All other versions are ECMA compliant.
<p><b>String.prototype.split</b>
<p>For version 1.2 only, split performs the Perl4 special case when given
a single space character as an argument (skips leading whitespace, and
splits on whitespace). All other versions split on the space character
proper as specified by ECMA.
<br>&nbsp;
<br>&nbsp;
<h3>
Security</h3>
The security features in Rhino provide the ability to track the origin
of a piece of code (and any pieces of code that it may in turn generate).
These features allow for the implementation of a traditional URL-based
security policy for JavaScript as in Netscape Navigator. Embeddings that
trust the JavaScript code they execute may ignore the security features.
<p>Embeddings that run untrusted JavaScript code must do two things to
enable the security features. First, every <tt>Context</tt> that is created
must be supplied an instance of an object that implements the <tt>SecuritySupport</tt>
interface. This will provide Rhino the support functionality it needs to
perform security-related tasks.
<p>Second, the value of the property <tt>security.requireSecurityDomain</tt>
should be changed to <tt>true</tt> in the resource bundle <tt>org.mozilla.javascript.resources.Security</tt>.
The value of this property can be determined at runtime by calling the
<tt>isSecurityDomainRequired</tt>
method of <tt>Context</tt>. Setting this property to true requires that
any calls that compile or evaluate JavaScript must supply a security domain
object of any object type that will be used to identify JavaScript code.
In a typical client embedding, this object might be a string with the URL
of the server that supplied the script, or an object that contains a representation
of the signers of a piece of code for certificate-based security policies.
<p>When JavaScript code attempts a restricted action, the security domain
can be retrieved in the following manner. The class context should be obtained
from the security manager (see <tt>java.lang.SecurityManager.getClassContext()</tt>).
Then, the class of the code that called to request the restricted action
can be obtained by looking an appropriate index into the class context
array. If the caller is JavaScript the class obtained may be one of two
types. First, it may be the class of the interpreter if interpretive mode
is in effect. Second, it may be a generated class if classfile generation
is supported. An embedding can distinguish the two cases by calling <tt>isInterpreterClass()</tt>
in the <tt>Context</tt> class. If it is the interpreter class, call the
getInterpreterSecurityDomain() method of Context to obtain the security
domain of the currently executing interpreted script or function. Otherwise,
it must be a generated class, and an embedding can call <tt>getSecurityDomain()</tt>
in the class implementing
<tt>SecuritySupport</tt>. When the class was
defined and loaded, the appropriate security domain was associated with
it, and can be retrieved by calling this method. Once the security domain
has been determined, an embedding can perform whatever checks are appropriate
to determine whether access should be allowed.
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,3 @@
function owner() {
return '<a href="mailto:nboyd'+'@'+ 'atg.com">Norris Boyd</a>'
}

View File

@@ -0,0 +1,83 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.5 [en]C-NSCP (WinNT; I) [Netscape]">
<title>Performance Hints</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
Performance Hints</h1></center>&nbsp;
<h3>
<tt>var</tt> Statements</h3>Use <tt>var</tt> statements when possible. Not only is it good
programming practice, it can speed up your code by allowing the compiler to
generate special code to access the variables. For example, you could rewrite
<p><tt>function sum(a) {</tt>
<br><tt>&nbsp;&nbsp;&nbsp; result = 0;</tt>
<br><tt>&nbsp;&nbsp;&nbsp; for (i=0; i &lt;
a.length; i++)</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result += a[i];</tt>
<br><tt>&nbsp;&nbsp;&nbsp; return result;</tt>
<br><tt>}</tt>
<p>as
<p><tt>function sum(a) {</tt>
<br><tt>&nbsp;&nbsp;&nbsp; var result = 0;</tt>
<br><tt>&nbsp;&nbsp;&nbsp; for (var i=0; i
&lt; a.length; i++)</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; result += a[i];</tt>
<br><tt>&nbsp;&nbsp;&nbsp; return result;</tt>
<br><tt>}</tt>
<p>This is not equivalent code because the second version does
not modify global variables <tt>result</tt> and <tt>i</tt>. However, if you don't intend for any other function to
access these variables, then storing them globally is probably wrong anyway
(what if you called another function that had a loop like the one in <tt>sum</tt>!).
<br>&nbsp;
<h3>
Arrays</h3>Use the forms of the Array constructor that
specify a size or take a list of initial elements. For example, the code
<p><tt>var a = new Array();</tt>
<br><tt>for (var i=0; i &lt; n; i++)</tt>
<br><tt>&nbsp;&nbsp;&nbsp; a[i] = i;</tt>
<p>could be sped up by changing the constructor call to <tt>new Array(n)</tt>. A constructor call like that indicates to
the runtime that a Java array should be used for the first <i>n</i> entries of the array. Similarly,
<tt>new
Array(&quot;a&quot;, &quot;b&quot;, &quot;c&quot;)</tt> or <tt>[&quot;a&quot;, &quot;b&quot;, &quot;c&quot;]</tt> will cause a 3-element
Java array to be allocated to hold the contents of the JavaScript array.
<br>&nbsp;
<br>&nbsp;
<h3>
<tt>eval</tt> and <tt>new Function</tt></h3>Avoid calling <tt>eval</tt> when
possible. Calls to <tt>eval</tt> are slow because the script
being executed must be compiled. Constructing a new function object can be slow
for the same reason, while function expressions are more efficient because the
function can be compiled. For example, the code
<p><tt>function MyObject(a) {</tt>
<br><tt>&nbsp;&nbsp;&nbsp; this.s = a;</tt>
<br><tt>&nbsp;&nbsp;&nbsp; this.toString = new
Function(&quot;return this.s&quot;);</tt>
<br><tt>}</tt>
<p>could be written more efficiently as
<p><tt>function MyObject(a) {</tt>
<br><tt>&nbsp;&nbsp;&nbsp; this.s = a;</tt>
<br><tt>&nbsp;&nbsp;&nbsp; this.toString =
function () { return this.s }</tt>
<br><tt>}</tt>
<p>Beginning with Rhino 1.4 Release 2, code
passed to eval and new Function will be interpreted rather than compiled to
class files.
<br>&nbsp;</p>
<h3>
with</h3>Using the <tt>with</tt>
statement prevents the compiler from generating code for fast access to local
variables. You're probably better off explicitly accessing any properties of the
object.
<br>&nbsp;
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
<br>
</body>
</html>

View File

@@ -0,0 +1,162 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>What's New in Rhino 1.5</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
What's New in Rhino 1.5 Release 1</h1></center>
<h2>
ECMA 262 Edition 3 Conformance</h2>
Rhino 1.5 implements JavaScript 1.5, which conforms to ECMA 262 Edition
3 (sometimes referred to as "ECMAScript"). Edition 3 standardized several
features of JavaScript that were present in JavaScript 1.4, including:
<ul>
<li>
regular expressions</li>
<li>
<tt>switch</tt> statements</li>
<li>
<tt>do</tt>...<tt>while</tt> loops</li>
<li>
statement labels and labelled <tt>break</tt> and <tt>continue</tt></li>
<li>
object literals</li>
<li>
nested functions</li>
<li>
exception handling</li>
<li>
the <tt>instanceof</tt> operator</li>
<li>
the <tt>in</tt> operator</li>
</ul>
In addition, new features were added to Edition 3 and JavaScript 1.5, including:
<ul>
<li>
Perl 5 regular expressions, including operators like greedy quantifiers</li>
<li>
errors as exceptions</li>
<li>
number formatting (<tt>Number.prototype.toFixed</tt>, <tt>Number.prototype.toExponential</tt>,
and <tt>Number.prototype.toGeneral</tt>)</li>
</ul>
<h2>
Changes since Rhino 1.4 Release 3</h2>
Other significant changes to Rhino since the initial release to open source
(1.4 Release 3) are listed below. Bug fixes won't be mentioned here, just
API changes or significant functionality changes.
<h3>
Compilation mode</h3>
Rhino has two modes of execution available. Interpretive mode has an interpreter
loop implemented in Java. Compilation mode compiles JavaScript code to
Java bytecodes in class files. This compilation can be done as part of
script evaluation using the same APIs already available for the interpreter,
or in a separate compile-time step. The code for the interpreter is located
in the <tt>org.mozilla.javascript.optimizer</tt> package.
<br>&nbsp;
<h3>
JavaScript Compiler</h3>
The distribution now contains an extra class that can be invoked from the
command line. This is <tt>jsc</tt>, the JavaScript compiler. This tool
can be used to create Java classes from JavaScript. Options exist to allow
creation of Java classes that implement arbitrary interfaces and extend
arbitrary base classes, allowing JavaScript scripts to implement important
protocols like applets and servlets. See <a href="http://www.mozilla.org/rhino/jsc.html">http://www.mozilla.org/rhino/jsc.html</a>.
<br>&nbsp;
<h3>
LiveConnect 3</h3>
Rhino now supports the LiveConnect 3 specification, or LC3. The most notable
change is support for overloaded method resolution. See <a href="http://www.mozilla.org/js/liveconnect/lc3_proposal.html">LiveConnect
Release 3 Goals/Features</a>.
<br>&nbsp;
<h3>
JavaBeans properties reflected as Java properties</h3>
Java classes with getFoo/setFoo methods will have a "foo" property in the
JavaScript reflection. Boolean methods are also reflected.
<br>&nbsp;
<h3>
Dynamic scope support</h3>
Rhino 1.5 implements support for dynamic scopes, which are particularly
useful for multithreaded environments like server embeddings.
<br>&nbsp;
<h3>
New semantics for <tt>ScriptableObject.defineClass</tt></h3>
The old rules for defining JavaScript objects using a Java class were getting
baroque. Those rules are still supported, but a cleaner definition is now
supported. See the <a href="http://www.mozilla.org/js/rhino/org/mozilla/javascript/ScriptableObject.html#defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)">javadoc</a>
for details.
<br>&nbsp;
<h3>
Support for the Java 2 <tt>-jar</tt> option</h3>
It's now possible to start the shell using the new <tt>-jar</tt> option
in Java 2.
<br>&nbsp;
<h3>
Shell changes</h3>
Two changes here: addition of the "environment" and "history" top-level
variables.
<br>&nbsp;
<h3>
Java classes visible to scripts</h3>
An attendee at JavaOne raised the point that many embeddings may not want
scripts to be able to access all Java classes. This is an excellent point,
and I've implemented an addition to the <a href="../js/rhino/org/mozilla/javascript/SecuritySupport.html">SecuritySupport</a>
interface that allows embedders to choose which classes are exposed to
scripts.
<br>&nbsp;
<h3>
SecuritySupport and JavaAdapter</h3>
Andrew Wason pointed a problem with the new JavaAdapter feature (which
allows JavaScript objects to implement arbitrary Java interfaces by generating
class files). It didn't support the <a href="../js/rhino/org/mozilla/javascript/SecuritySupport.html">SecuritySupport</a>
interface, which allows Rhino to delegate the creation of classes from
byte arrays to a routine provided by the embedding. This ability is important
from a security standpoint because class creation is considered a privileged
action.
<p>I've checked in changes that fix this problem. If a SecuritySupport
class is specified when a Context is created, uses of JavaAdapter will
will delegate class creation to the SecuritySupport class.
<br>&nbsp;
<h3>
Context.exit()</h3>
Context.exit() has been changed from an instance method to a static method.
This makes it match the Context.enter() method, which is also static. See
the <a href="http://www.mozilla.org/js/rhino/org/mozilla/javascript/Context.html#exit()">javadoc</a>
for more information on its operation.
<br>&nbsp;
<h3>
Context.enter(Context)</h3>
A new overloaded form of Context.enter has been added. Without the addition
of this method it was not possible to attach an existing context to a thread.
See the <a href="http://www.mozilla.org/js/rhino/org/mozilla/javascript/Context.html#enter(org.mozilla.javascript.Context)">javadoc</a>
for more information on its operation.
<br>&nbsp;
<h3>
Listeners for Context</h3>
Context now supports property change listeners for a couple of its properties.
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

View File

@@ -0,0 +1,84 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Rhino 1.5 Release 2</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
What's New in Rhino 1.5 Release 2</h1></center>
This is a log of significant changes since the release of Rhino 1.5 Release
1.
<br>&nbsp;
<h2>
Graphical debugger</h2>
Thanks to a contribution by Christopher Oliver, Rhino now has a graphical
debugger. See <a href="debugger.html">Rhino Debugger</a> for more details.
<br>&nbsp;
<h2>
Footprint reductions</h2>
Igor Bukanov has provided a wealth of changes to reduce the number and
size of objects required by Rhino. In particular, he introduced a new way
to represent the built-in objects like Date and RegExp that reduces the
amount of memory required and speeds up <tt>Context.initStandardObjects</tt>.
<br>&nbsp;
<h2>
Interpreted mode performance improvements</h2>
Igor Bukanov also made a number of improvements to interpreter mode performance.
<br>&nbsp;
<h2>
JS/CORBA Adapter</h2>
Matthias Radestock wrote a module that allows JavaScript code to interact
with CORBA. See <a href="http://sourceforge.net/projects/jscorba">http://sourceforge.net/projects/jscorba</a>
for more details.
<br>&nbsp;
<h2>
Directory restructuring and Ant buildfile</h2>
I've restructured the the Rhino directory and written an <a href="http://jakarta.apache.org/ant/index.html">Ant</a>
buildfile. This should make building easier and more consistent with other
open source Java projects.
<br>&nbsp;
<h2>
FlattenedObject deprecated</h2>
I wrote FlattenedObject to provide a means for dealing with JavaScript
<br>objects in prototype chains. Where Scriptable defines the primitive
<br>operations, FlattenedObject defines the aggregate operations of
<br>manipulating properties that may be defined in an object or in an object
<br>reachable by a succession of getPrototype calls.
<p>However, I now believe that I designed FlattenedObject poorly. Perhaps
<br>it should have been a clue that I was never satisfied with the name:
if
<br>it's hard to express the name of the object it may mean the function
the
<br>object is supposed to fulfill is not well defined either. The problem
is
<br>that it is inefficient since it requires an extra object creation,
and
<br>balky because of that extra level of wrapping.
<p>So I've checked in changes that deprecate FlattenedObject. I've
<br>introduced new static methods in ScriptableObject (thanks to
<br>beard@netscape.com for the idea) that replace the functionality. These
<br>methods perform the get, put, and delete operations on a Scriptable
<br>object passed in without the overhead of creating a new object.
<h2>
WrapHandler interface</h2>
Embeddings that wish to provide their own custom wrappings for Java objects
may implement this interface and
<br>call Context.setWrapHandler. See WrapHandler javadoc.
<br>&nbsp;
<h2>
ClassOutput interface</h2>
An interface embedders can implement in order to control the placement
of generated class bytecodes. See the javadoc.
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

View File

@@ -0,0 +1,63 @@
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Change Log</title>
</head>
<body bgcolor="#ffffff">
<center>
<h1> Change Log for Significant Rhino Changes</h1>
</center>
This is a log of significant changes since the release of Rhino 1.5 Release
2.
<p> </p>
<h3> </h3>
<h3>Serialization</h3>
See the <a href="serialization.html">serialization documentation</a>
.<br>
<br>
<h3>Class writer API changes</h3>
Courtesy of Kemal Bayram.<br>
<br>
"The biggest change I've made is the replacement of ClassOutput with<br>
ClassRepository that has the single method:<br>
<br>
&nbsp;&nbsp;&nbsp; public boolean storeClass(String className, byte[] classBytes,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
boolean isTopLevel) throws IOException;<br>
<br>
This interface allows any arbitary storage method, such as a<br>
Hashtable/Map. In addition it also allows you to specify whether a<br>
class should be loaded, via returning true or false.&nbsp; You can still
use<br>
ClassOutput as I've coded an internal wrapper.<br>
<br>
With this interface it has also been possible to strip out the file<br>
saving code from Codegen and OptClassNameHelper.&nbsp; The file<br>
saving code is now an inner class FileClassRepository in Context. As<br>
a consequence of this&nbsp; I've stripped out some methods from ClassNameHelper.<br>
The resulting code is much more cleaner then before hand and everything<br>
still works as per usual.<br>
<br>
Other small additions are:<br>
&nbsp; o&nbsp; Annonymous functions are now named class$1 instead of class1<br>
&nbsp; o&nbsp; get/setClassName added to ClassNameHelper exposed in Context.
"<br>
<br>
<h3>Bunches of bug fixes and optimizations from Igor Bukanov and others</h3>
See the CVS logs<br>
<h3>
<hr width="100%"><br>
<a href="index.html">back to top</a>
</h3>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

@@ -0,0 +1,138 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (WinNT; U) [Netscape]">
<title>JavaScript Runtime</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
The JavaScript Runtime</h1></center>
<h3>
Interpretation</h3>
Beginning with Rhino 1.4 Release 2, an interpretive mode is supported.
When scripts are compiled in interpretive mode, an internal representation
of the compiled form is created and stored rather than generating a Java
class. Execution proceeds by evaluating this compiled form using support
routines in Rhino.
<h3>
Compilation to Java Bytecodes</h3>
For improved performance, Rhino may compile JavaScript scripts to Java
bytecodes. The generated bytecodes in turn depend upon runtime support
routines. Each JavaScript script or function is compiled to a separate
class.
<p>Compilation of JavaScript source to class files is supported. It is
possible to specify the class files as well as the packages to generate
into.
<h3>
Types and Values</h3>
There are six fundamental types in JavaScript. These types are implemented
with the following Java types and values:
<br>&nbsp;
<br>&nbsp;
<center><table BORDER COLS=2 WIDTH="75%" >
<tr>
<td><i>JavaScript fundamental type</i></td>
<td><i>Java type</i></td>
</tr>
<tr>
<td>Undefined</td>
<td>A singleton object defined by <tt>Context.getUndefinedType()</tt></td>
</tr>
<tr>
<td>Null</td>
<td><tt>null</tt></td>
</tr>
<tr>
<td>Boolean</td>
<td><tt>java.lang.Boolean</tt></td>
</tr>
<tr>
<td>Number</td>
<td><tt>java.lang.Number</tt>, that is, any of <tt>java.lang.Byte</tt>,<tt>
java.lang.Short</tt>,<tt> java.lang.Integer</tt>,<tt> java.lang.Float</tt>,
or <tt>java.lang.Double. Not java.lang.Long, since a double representation
of a long may lose precision.</tt></td>
</tr>
<tr>
<td>String</td>
<td><tt>java.lang.String</tt></td>
</tr>
<tr>
<td>Object</td>
<td><tt>org.mozilla.javascript.Scriptable</tt></td>
</tr>
</table></center>
<p>In addition, ECMA refers to objects that implement [[Call]] as functions.
These object types are represented by implementing the Function interface.
<p>Since JavaScript is a dynamically typed language, the static Java type
of a JavaScript value is <tt>java.lang.Object</tt>.
<p>The behavior of the JavaScript engine is undefined if a value of any
type other than the ones described above is introduced into JavaScript.
(This caveat does not apply to scripts that use LiveConnect; the Java values
are wrapped and unwrapped as appropriate to conform to the above type constraints.)
<br>&nbsp;
<h3>
Property Access</h3>
Properties in JavaScript objects may be accessed using either string or
numeric identifiers. Conceptually, all accessors are converted to strings
in order to perform the lookup of the property in the object. However,
this is not the implementation used in practice because a number to string
conversion is too expensive to be performed on every array access.
<p>Instead, every property accessor method in <a href="org/mozilla/javascript/Scriptable.html">Scriptable</a>
(<tt>has</tt>, <tt>get</tt>, <tt>set</tt>, <tt>remove</tt>, <tt>getAttributes</tt>,
and <tt>setAttributes</tt>) has overloaded forms that take either a <tt>String</tt>
or an <tt>int</tt> argument. It is the responsibility of the caller to
invoke the appropriate overloaded form. For example, evaluating the expression
<tt>obj["3"]</tt>
will invoke the get(int, Scriptable) method even though the property name
was presented in the script as a string. Similarly, values of numbers that
do not fix in integers (like 1.1 and 0x100000000) must be converted to
strings.
<br>&nbsp;
<h3>
Defining Host Objects</h3>
Host objects are JavaScript objects that provide special access to the
host environment. For example, in a browser environment, the Window and
Document objects are host objects.
<p>The easiest way to define new host objects is by using <a href="org/mozilla/javascript/ScriptableObject.html#defineClass(org.mozilla.javascript.Scriptable, java.lang.Class)">ScriptableObject.defineClass()</a>.
This method defines a set of JavaScript objects using a Java class. Several
of the <a href="examples.html">examples</a> define host objects this way.
<p>If the services provided by defineClass are insufficient, try other
methods of
<a href="org/mozilla/javascript/ScriptableObject.html">ScriptableObject</a>
and
<a href="org/mozilla/javascript/FunctionObject.html">FunctionObject</a>,
such as <tt>defineProperty</tt> and <tt>defineFunctionProperties</tt>.
<br>&nbsp;
<br>&nbsp;
<h3>
Contexts and Threads</h3>
Every thread that executes JavaScript must have an associated Context.
Multiple threads (with multiple associated Contexts) may act upon the same
set of objects. Any host objects that are defined are responsible for any
sychronization required to run safely from multiple threads.
<br>&nbsp;
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View File

@@ -0,0 +1,176 @@
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Scopes and Contexts</title>
</head>
<body bgcolor="#ffffff">
<script src="owner.js"></script>
<center>
<h1> Scopes and Contexts</h1>
</center>
<script>document.write(owner());</script> <br>
<script>
var d = new Date(document.lastModified);
document.write((d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
document.write('<br>');
</script>
<center>
<hr width="100%"></center>
<p>Before using Rhino in a concurrent environment, it is important to understand
the distinction between Contexts and scopes. Both are required to execute
scripts, but they play different roles. Simple embeddings of Rhino probably
won't need any of the information here, but more complicated embeddings can
gain performance and flexibility from the techniques described below. <br>
&nbsp; </p>
<h2> Contexts</h2>
The Rhino Context object is used to store thread-specific information about
the execution environment. There should be one and only one Context associated
with each thread that will be executing JavaScript.
<p>To associate the current thread with a Context, simply call the <tt>enter</tt>
method of Context: </p>
<pre>&nbsp;&nbsp;&nbsp; Context cx = Context.enter();</pre>
Once you are done with execution, simply exit the Context:
<pre>&nbsp;&nbsp;&nbsp; Context.exit();</pre>
These calls will work properly even if there is already a Context associated
with the current thread. That context will be returned and an internal counter
incremented. Only when the counter reaches zero will it be disassociated from
the thread.
<p>Remember to put the <tt>exit()</tt> call in a <tt>finally</tt> block if
you're executing code that could throw an exception. <br>
&nbsp; </p>
<h2> Scopes</h2>
A scope is a set of JavaScript objects. Execution of scripts requires a scope
for top-level script variable storage as well as a place to find standard
objects like <tt>Function</tt> and <tt>Object</tt>.
<p>It's important to understand that a scope is independent of the Context
that created it. You can create a scope using one Context and then evaluate
a script using that scope and another Context (either by exiting the current
context and entering another, or by executing on a different thread). You
can even execute scripts on multiple threads simultaneously in the same scope.
Rhino guarantees that accesses to properties of JavaScript objects are atomic
across threads, but doesn't make any more guarantees for scripts executing
in the same scope at the same time. If two scripts use the same scope simultaneously,
the scripts are responsible for coordinating any accesses to shared variables.
</p>
<p>A top-level scope is created by calling <tt>Context.initStandardObjects</tt>
to create all the standard objects: </p>
<pre>&nbsp;&nbsp;&nbsp; Scriptable scope = cx.initStandardObjects(null);</pre>
The easiest way to embed Rhino is just to create a new scope this way whenever
you need one. However, <tt>initStandardObjects</tt> is an expensive method
to call and it allocates a fair amount of memory. We'll see below that there
are ways to share a scope created this way among multiple scopes and threads.
<br>
&nbsp;
<h2> Name Lookup</h2>
So how are scopes used to look up names? In general, variables are looked
up by starting at the current variable object (which is different depending
on what code is being executed in the program), traversing its prototype chain,
and then traversing the parent chain. In the diagram below, the order in
which the six objects are traversed is indicated.
<center>
<p><img src="lookup.gif" height="194" width="500">
<br>
<i><font size="-1">Order of lookups in a two-deep scope chain with prototypes.</font></i></p>
</center>
<p>For a more concrete example, let's consider the following script: </p>
<blockquote><tt>var g = 7;</tt> <br>
<tt>function f(a) {</tt> <br>
<tt>&nbsp;&nbsp;&nbsp; var v = 8;</tt> <br>
<tt>&nbsp;&nbsp;&nbsp; x = v + a;</tt> <br>
<tt>}</tt> <br>
<tt>f(6);</tt></blockquote>
We have a top-level variable <tt>g</tt>, and the call to <tt>f</tt> will
create a new top-level variable <tt>x</tt>. All top-level variables are properties
of the scope object. When we start executing <tt>f</tt>, the scope chain
will start with the function's activation object and will end with the top-level
scope (see diagram below). The activation object has two properties, 'a'
for the argument, and 'v' for the variable. The top-level scope has properties
for the variable <tt>g</tt> and the function <tt>f</tt>.
<center>
<p><img src="scopes.gif" height="496" width="820">
<br>
<i><font size="-1">An example scope chain for a simple script.</font></i></p>
</center>
<p>When the statement <tt>x = v + a;</tt> is executed, the scope chain is
traversed looking for a 'x' property. When none is found, a new property 'x'
is created in the top-level scope. </p>
<h2> Sharing Scopes</h2>
JavaScript is a language that uses delegation rather than traditional class-based
inheritance. This is a large topic in itself, but for our purposes it gives
us an easy way to share a set of read-only variables across multiple scopes.
To do this we set an object's prototype. When accessing a property of an object
in JavaScript, the object is first searched for a property with the given
name. If none is found, the object's prototype is searched. This continues
until either the object is found or the end of the prototype chain is reached.
<p>So to share information across multiple scopes, we first create the object
we wish to share. Typically this object will have been created with <tt>initStandardObjects</tt>
and may also have additional objects specific to the embedding. Then all
we need to do is create a new object and call its <tt>setPrototype</tt> method
to set the prototype to the shared object, and the parent of the new scope
to null: </p>
<pre>&nbsp;&nbsp;&nbsp; Scriptable newScope = cx.newObject(sharedScope);<br>&nbsp;&nbsp;&nbsp; newScope.setPrototype(sharedScope);<br>&nbsp;&nbsp;&nbsp; newScope.setParentScope(null);<br></pre>
The call to <tt>newObject</tt> simply creates a new JavaScript object with
no properties. It uses the <tt>sharedScope</tt> passed in to initialize the
prototype with the standard <tt>Object.prototype</tt> value.
<p>We can now use <tt>newScope</tt> as a scope for calls to evaluate scripts.
Let's call this scope the <i>instance scope</i>. Any top-level functions or
variables defined in the script will end up as properties of the instance
scope. Uses of standard objects like <tt>Function</tt>, <tt>String</tt>, or
<tt>RegExp</tt> will find the definitions in the shared scope. Multiple
instance scopes can be defined and have their own variables for scripts yet
share the definitions in the shared scope. These multiple instance scopes
can be used concurrently. <br>
&nbsp; </p>
<h2> Dynamic Scopes</h2>
There's one problem with the setup outlined above. Calls to functions in
JavaScript use <i>static scope</i>, which means that variables are first looked
up in the function and then, if not found there, in the lexically enclosing
scope. This causes problems if functions you define in your shared scope
need access to variables you define in your instance scope.
<p>With Rhino 1.5, it is possible to compile functions to use <i>dynamic
scope</i>. With dynamic scope, functions look at the top-level scope of the
calling function rather than their lexical scope. So we can store information
that varies across scopes in the instance scope yet still share functions
that manipulate that information reside in the shared scope. </p>
<p>The <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/DynamicScopes.java">
DynamicScopes example</a>
illustrates all the points discussed above. <br>
&nbsp; <br>
&nbsp; </p>
<h2> More on Scopes</h2>
The key things to determine in setting up scopes for your application are
<br>
(1) What scope should global variables be created in when your script executes
an assignment to an undefined variable, and <br>
(2) What variables should your script have access to when it references a
variable?
<p>The answer to (1) determines which scope should be the ultimate parent
scope: Rhino follows the parent chain up to the top and places the variable
there. After you've constructed your parent scope chain, the answer to question
(2) may indicate that there are additional scopes that need to be searched
that are not in your parent scope chain. You can add these as prototypes
of scopes in your parent scope chain. When Rhino looks up a variable, it
starts in the current scope, walks the prototype chain, then goes to the
parent scope and its prototype chain, until there are no more parent scopes
left. <br>
&nbsp; </p>
<h3>
<hr width="100%"><br>
<a href="index.html">back to top</a>
</h3>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 B

View File

@@ -0,0 +1,199 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Scripting Java</title>
</head>
<body bgcolor="#FFFFFF">
<script src="owner.js"></script>
<center>
<h1>
Scripting Java</h1></center>
<script>document.write(owner());</script>
<br><script>
var d = new Date(document.lastModified);
document.write((d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
document.write('<br>');
</script>
<center>
<hr WIDTH="100%"></center>
<p>It's possible to use Rhino just for scripting Java. You don't have to
write any additional Java code; just use the existing Rhino shell and then
make calls into Java.
<br>&nbsp;
<h2>
Rhino Shell</h2>
The Rhino shell allows you to run scripts from files or interactively at
a command line.
<p>If you download the zip file for rhino, it will contain a single JAR
file, <tt>js.jar</tt>. If you add the JAR file to your class path, you
can start the Rhino shell using the command
<pre>&nbsp;&nbsp;&nbsp; java org.mozilla.javascript.tools.shell.Main</pre>
or if you have Java 2 (JDK 1.2), you can avoid changing your classpath
and simply use the command
<pre>&nbsp;&nbsp;&nbsp; java -jar js.jar</pre>
Unfortunately the <tt>-jar</tt> option to <tt>java</tt> will overwrite
your existing classpath. The shell's interactive mode is a good way to
begin exploring Rhino.
<p><i>Note: Earlier versions of Rhino have two JAR files, js.jar and jstools.jar,
and don't support the -jar option. Both JAR files must be added to the
class path to start the shell</i>.
<p>You can execute a JavaScript file by putting the file name as an argument
to the shell class:
<pre>&nbsp;&nbsp;&nbsp; java org.mozilla.javascript.tools.shell.Main myScript.js</pre>
There are a number of options for evaluating scripts using the shell. See
the <a href="http://www.mozilla.org/rhino/shell.html">command description</a>
for more information.
<br>&nbsp;
<h2>
LiveConnect: Communicating with Java from JavaScript</h2>
If you are planning to script Java using Rhino, you'll want to use LiveConnect,
which allows you to create Java classes and call Java methods from within
JavaScript. For example, here's a log from an interactive session. If you
type it in, you'll see a window with a button filling it.
<center>
<p><img SRC="scriptjavaframe.jpg" height=100 width=200>
<br><i><font size=-1>A Java frame created from the Rhino shell.</font></i></center>
<pre>$ java org.mozilla.javascript.tools.shell.Main
js> importPackage(java.awt);
js> frame = new Frame("JavaScript")
java.awt.Frame[frame0,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,resizable,title=JavaScript]
js> frame.show()
js> frame.setSize(new Dimension(200,100))
js> button = new Button("OK")
java.awt.Button[button0,0,0,0x0,invalid,label=OK]
js> frame.add(button)
java.awt.Button[button0,0,0,0x0,invalid,label=OK]
js> frame.show()
js> quit()
$</pre>
If you wish to load classes from JavaScript that aren't in the <tt>java</tt>
package, you'll need to prefix the package name with "<tt>Packages.</tt>".
For example:
<pre>$ java org.mozilla.javascript.tools.shell.Main
js> cx = Packages.org.mozilla.javascript.Context.enter()
org.mozilla.javascript.Context@25980b44
js> cx.evaluateString(this, "3+2", null, 0, null)
5.0
js> quit()
$</pre>
<h2>
Accessing JavaBean Properties</h2>
Java classes can define JavaBean properties using getter and setter methods.
For example, the following class defines two properties:
<p><tt>public class Me {</tt>
<br><tt>&nbsp;&nbsp;&nbsp; public int getAge() { return age; }</tt>
<br><tt>&nbsp;&nbsp;&nbsp; public void setAge(int anAge) { age = anAge;
}</tt>
<br><tt>&nbsp;&nbsp;&nbsp; public String getSex() { return "male"; }</tt>
<br><tt>&nbsp;&nbsp;&nbsp; private int age;</tt>
<br><tt>};</tt>
<p>The two properties defined are <i>age</i> and <i>sex</i>. The <i>sex</i>
property is read-only: it has no setter.
<p>Using Rhino we can access the bean properties as if they where JavaScript
properties. We can also continue to call the methods that define the property.
<p><tt>js> me = new Packages.Me();</tt>
<br><tt>Me@93</tt>
<br><tt>js> me.getSex()</tt>
<br><tt>male</tt>
<br><tt>js> me.sex</tt>
<br><tt>male</tt>
<br><tt>js> me.age = 33;</tt>
<br><tt>33</tt>
<br><tt>js> me.age</tt>
<br><tt>33</tt>
<br><tt>js> me.getAge()</tt>
<br><tt>33</tt>
<br><tt>js></tt>
<p>Since the <i>sex</i> property is read-only, we are not allowed to write
to it.
<p><i>Note: JavaBean reflection is not available in versions of Rhino before
1.5.</i>
<br><tt></tt>&nbsp;
<h2>
Importing Java Classes and Packages</h2>
Above we saw the use of the <tt>importPackage</tt> function to import all
the classes from a particular Java package. There is also <tt>importClass</tt>,
which imports a single class:
<pre>$ java org.mozilla.javascript.tools.shell.Main
js> importClass(Packages.org.mozilla.javascript.Context)
js> cx = Context.enter()
org.mozilla.javascript.Context@25980d62
js> cx.evaluateString(this, "3+2", null, 0, null)
5.0
js> quit()
$</pre>
<h2>
Extending Java Classes and Implementing Java Interfaces with JavaScript</h2>
Starting from the example above of creating a Java frame using JavaScript,
we can add a listener for the button. Once we call <tt>addActionListener</tt>
we can then click on the button to get the current date printed out:
<pre>$ java org.mozilla.javascript.tools.shell.Main
js> importPackage(java.awt);
js> frame = new Frame("JavaScript")
java.awt.Frame[frame0,0,0,0x0,invalid,hidden,layout=java.awt.BorderLayout,resizable,title=JavaScript]
js> button = new Button("OK")
java.awt.Button[button0,0,0,0x0,invalid,label=OK]
js> frame.setSize(new Dimension(200,100))
js> frame.add(button)
java.awt.Button[button0,0,0,0x0,invalid,label=OK]
js> frame.show()
js> function printDate() { print(new Date()) }
js> printDate()
Wed Mar 15 15:42:20 GMT-0800 (PST) 2000
js> o = { actionPerformed: printDate }
[object Object]
js> o.actionPerformed()
Wed Mar 15 15:42:39 GMT-0800 (PST) 2000
js> buttonListener = java.awt.event.ActionListener(o)
adapter0@6acc0f66
js>&nbsp; button.addActionListener(buttonListener)
js> Wed Mar 15 15:43:05 GMT-0800 (PST) 2000
Wed Mar 15 15:43:05 GMT-0800 (PST) 2000
Wed Mar 15 15:43:08 GMT-0800 (PST) 2000
quit()
$</pre>
When we type <tt>buttonListener = java.awt.event.ActionListener(o)</tt>,
Rhino actually creates a new Java class that implements <tt>ActionListener</tt>
and forwards calls from that class to the JavaScript object. So when you
click on the button, the <tt>printDate</tt> method is called.
<br>&nbsp;
<h2>
JavaAdapter constructor</h2>
Another way to create a JavaAdapter is to call the JavaAdapter constructor
explicitly. Using the JavaAdapter constructor gives you additional features
that cannot be had by "constructing" a Java interface as was done above.
<p>Instead of writing
<pre>&nbsp;&nbsp;&nbsp; buttonListener = java.awt.event.ActionListener(o)</pre>
above we can also write
<pre>&nbsp;&nbsp;&nbsp; buttonListener = new JavaAdapter(java.awt.event.ActionListener, o)</pre>
which is equivalent. If we also wanted to extend class <tt>Foo</tt>, while
also implementing <tt>java.lang.Runnable</tt>, we would write
<pre>&nbsp;&nbsp;&nbsp; buttonListener = new JavaAdapter(Packages.Foo,&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java.awt.event.ActionListener,
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; java.lang.Runnable, o)</pre>
In general the syntax is
<p>&nbsp;&nbsp;&nbsp; <tt>new JavaAdapter(</tt><i>java-class</i>, [<i>java-class</i>,
...] <i>javascript-object</i><tt>)</tt>
<p>where at most one <i>java-class</i> is a Java class and the remaining
<i>java-class</i>es
are interfaces. The result will be a Java adapter that extends any specified
Java class, implements the Java interfaces, and forwards any calls to the
methods of the <i>javascript-object</i>.
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

@@ -0,0 +1,122 @@
<!DOCTYPE html PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Serialization</title>
</head>
<body bgcolor="#ffffff">
<script src="owner.js"></script>
<center>
<h1>Serialization</h1>
</center>
<script>document.write(owner());</script> <br>
<script>
var d = new Date(document.lastModified);
document.write((d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
document.write('<br>');
</script>
<center>
<hr width="100%"></center>
<p>Beginning with Rhino 1.5 Release 3 it is possible to serialize JavaScript
objects, including functions and scripts. However, &nbsp;serialization of
code in compilation mode has some significant limitations.. Serialization
provides a way to save the state of an object and write it out to a file
or send it across a network connection. <br>
&nbsp; </p>
<h2>Simple serialization example</h2>
The Rhino shell has two new top-level functions, serialize and deserialize.
They're intended mainly as examples of the use of serialization:<br>
<pre>$&nbsp;java org.mozilla.javascript.tools.shell.Main<br>js&gt; function f() { return 3; }<br>js&gt; serialize(f, "f.ser")<br>js&gt; quit()<br><br>$&nbsp;java org.mozilla.javascript.tools.shell.Main<br>js&gt; f = deserialize("f.ser")<br><br>function f() {<br> return 3;<br>}<br><br>js&gt; f()<br>3<br>js&gt;</pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
<pre></pre>
Here we see a simple case of a function being serialized to a file and then
read into a new instance of Rhino and called. <br>
<br>
<h2>Rhino serialization APIs</h2>
Two new classes, ScriptableOutputStream and ScriptableInputStream, were introduced
to handle serialization of Rhino classes. These classes extend ObjectOutputStream
and ObjectInputStream respectively. Writing an object to a file can be done
in a few lines of Java code:<br>
<pre>FileOutputStream fos = new FileOutputStream(filename);<br>ScriptableOutputStream out = new ScriptableOutputStream(fos, scope);<br>out.writeObject(obj);<br>out.close();</pre>
<p>Here filename is the file to write to, obj is the object or function to
write, and scope is the top-level scope containing obj.&nbsp;</p>
<p>Reading the serialized object back into memory is similarly simple:</p>
<pre>FileInputStream fis = new FileInputStream(filename);<br>ObjectInputStream in = new ScriptableInputStream(fis, scope);<br>Object deserialized = in.readObject();<br>in.close();<br></pre>
<p>Again, we need the scope to create our serialization stream class. </p>
<p>So why do we need these specialized stream classes instead of simply using
ObjectOutputStream and ObjectInputStream? To understand the answer we must
know what goes on behind the scenes when Rhino serializes objects. </p>
<h2>How Rhino serialization works</h2>
By default, Java serialization of an object also serializes objects that
are referred to by that object. Upon deserialization the initial object and
the objects it refers to are all created and the references between the objects
are resolved. <br>
<br>
However, for JavaScript this creates a problem. JavaScript objects contain
references to prototypes and to parent scopes. Default serialization would
serialize the object or function we desired but would also serialize Object.prototype
or even possibly the entire top-level scope and everything it refers to!
We want to be able to serialize a JavaScript object and then deserialize
it into a new scope and have all of the references from the deserialized
object to prototypes and parent scopes resolved correctly to refer to objects
in the new scope. <br>
<br>
ScriptableOutputStream takes a scope as a parameter to its constructor. If
in the process of serialization it encounters a reference to the scope it
will serialize a marker that will be resolved to the new scope upon deserialization.
It is also possible to add names of objects to a list in the ScriptableOutputStream
object. These objects will also be saved as markers upon serialization and
resolved in the new scope upon deserialization. Use the addExcludedName method
of ScriptableOutputStream to add new names. By default, ScriptableOutputStream
excludes all the names defined using Context.initStandardObjects.<br>
<br>
If you are using Rhino serialization in an environment where you always define,
say, a constructor "Foo", you should add the following code before calling
writeObject:<br>
<pre>out.addExcludedName("Foo");<br>out.addExcludedName("Foo.prototype");<br></pre>
This code will prevent Foo and Foo.prototype from being serialized and will
cause references to Foo or Foo.prototype to be resolved to the objects in
the new scope upon deserialization. Exceptions will be thrown if Foo or Foo.prototype
cannot be found the scopes used in either ScriptableOutputStream or ScriptableInputStream.<br>
<br>
<h2>Rhino serialization in compilation mode</h2>
Serialization works well with objects and with functions and scripts in
interpretive mode. However, you can run into problems with serialization
of compiled functions and scripts:<br>
<pre>$&nbsp;cat test.js<br>function f() { return 3; }<br>serialize(f, "f.ser");<br>g = deserialize("f.ser");<br>print(g());<br>$&nbsp;java&nbsp;org.mozilla.javascript.tools.shell.Main -opt -1 test.js<br>3<br>$&nbsp;java&nbsp;org.mozilla.javascript.tools.shell.Main test.js<br>js: uncaught JavaScript exception: java.lang.ClassNotFoundException: c1<br></pre>
<p>The problem is that Java serialization has no built-in way to serialize
Java classes themselves. (It might be possible to save the Java bytecodes
in an array and then load the class upon deserialization, but at best that
would eat up a lot of memory for just this feature.) One way around this
is to compile the functions using the jsc tool: </p>
<pre>$&nbsp;cat f.js<br>function f() { return 3; }<br>$&nbsp;java -classpath js.jar org.mozilla.javascript.tools.jsc.Main f.js<br>$&nbsp;cat test2.js<br>loadClass("f");<br>serialize(f, "f.ser");<br>g = deserialize("f.ser");<br>print(g());<br>$&nbsp;java -classpath 'js.jar;.' org.mozilla.javascript.tools.shell.Main test2.js<br>3<br></pre>
<p>&nbsp;Now the function f is compiled to a Java class, but that class is
then made available in the classpath so serialization works. This isn't that
interesting an example since compiling a function to a class and then loading
it accomplishes the same as serializing an interpreted function, but it becomes
more relevant if you wish to serialize JavaScript objects that have references
to compiled functions. </p>
<h3>
<hr width="100%"><br>
<a href="index.html">back to top</a>
</h3>
</body>
</html>

View File

@@ -0,0 +1,128 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en]C-NSCP (WinNT; U) [Netscape]">
<title>JavaScript Shell</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
JavaScript Shell</h1></center>
The JavaScript shell provides a simple way to run scripts in batch mode
or an interactive environment for exploratory programming.
<h2>
Invoking the Shell</h2>
<tt>java org.mozilla.javascript.tools.shell.Main</tt> [<i>options</i>]
<i>file</i><tt>.js
[<i>script-arguments</i>]</tt>
<p>where <i>options</i> are:
<p><tt>-e </tt><i>script-source</i>
<blockquote>Executes <i>script-source</i> as a JavaScript script.</blockquote>
<tt>-f </tt><i>script-filename</i>
<blockquote>Reads filename specified by <i>script-filename</i> and executes
it as a JavaScript script.</blockquote>
<tt>-opt </tt><i>optLevel</i>
<br><tt>-O</tt> <i>optLevel</i>
<ul>Optimizes at level <i>optLevel</i>, which must be an integer between
0 and 9. See <a href="opt.html">Optimization</a> for more details.</ul>
<tt>-version </tt><i>versionNumber</i>
<ul>Specifies the language version to compile with. The string <i>versionNumber</i>
must be one of <tt>100</tt>, <tt>110</tt>, <tt>120</tt>, <tt>130</tt>,
or <tt>140</tt>. See <a href="overview.html#versions">JavaScript Language
Versions</a> for more information on language versions.</ul>
<h2>
Predefined Properties</h2>
Scripts executing in the shell have access to some additional properties
of the top-level object.
<br>&nbsp;
<h4>
arguments</h4>
<blockquote>The <tt>arguments</tt> object is an array containing the strings
of all the arguments given at the command line when the shell was invoked.</blockquote>
<h4>
help()</h4>
<blockquote>Executing the help function will print usage and help messages.</blockquote>
<h4>
defineClass(<i>className</i>)</h4>
<blockquote>Define an extension using the Java class named with the string
argument <i>className</i>. Uses ScriptableObject.defineClass() to define
the extension.</blockquote>
<h4>
load([<i>filename</i>, ...])</h4>
<blockquote>Load JavaScript source files named by string arguments. If
multiple arguments are given, each file is read in and executed in turn.</blockquote>
<h4>
loadClass(<i>className</i>)</h4>
<blockquote>Load and execute the class named by the string argument <i>className</i>.
The class must be a class that implements the Script interface, as will
any script compiled by <a href="jsc.html">jsc</a>.</blockquote>
<h4>
print([<i>expr</i> ...])</h4>
<blockquote>Evaluate and print expressions. Evaluates each expression,
converts the result to a string, and prints it.</blockquote>
<h4>
quit()</h4>
<blockquote>Quit shell. The shell will also quit in interactive mode if
an end-of-file character is typed at the prompt.</blockquote>
<h4>
version([<i>number</i>])</h4>
<blockquote>Get or set JavaScript version number. If no argument is supplied,
the current version number is returned. If an argument is supplied, it
is expected to be one of <tt>100</tt>, <tt>110</tt>, <tt>120</tt>, <tt>130,</tt>
or <tt>140</tt> to indicate JavaScript version 1.0, 1.1, 1.2, 1.3, or 1.4
respectively.</blockquote>
<h2>
Example</h2>
Here the shell is invoked three times from the command line. (The system
command prompt is shown as <tt>$</tt>.) The first invocation executes a
script specified on the command line itself. The next invocation has no
arguments, so the shell goes into interactive mode, reading and evaluating
each line as it is typed in. Finally, the last invocation executes a script
from a file and accesses arguments to the script itself.
<p><tt>$ java org.mozilla.javascript.tools.shell.Main -e print('hi')</tt>
<p><tt>hi</tt>
<p><tt>$ java org.mozilla.javascript.tools.shell.Main</tt>
<p><tt>js> print('hi')</tt>
<br><tt>hi</tt>
<br><tt>js> 6*7</tt>
<br><tt>42</tt>
<br><tt>js> function f() {</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return a;</tt>
<br><tt>}</tt>
<br><tt>js> var a = 34;</tt>
<br><tt>js> f()</tt>
<br><tt>34</tt>
<br><tt>js> quit()</tt>
<p><tt>$ cat echo.js</tt>
<br><tt>for (i in arguments) {</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print(arguments[i])</tt>
<br><tt>}</tt>
<br><tt>$ java org.mozilla.javascript.tools.shell.Main echo.js foo bar</tt>
<p><tt>foo</tt>
<br><tt>bar</tt>
<p><tt>$</tt>
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,31 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.7 [en]C-NSCP (WinNT; U) [Netscape]">
<title>JavaScript Tools</title>
</head>
<body bgcolor="#FFFFFF">
<center>
<h1>
JavaScript Tools</h1></center>
<h2>
JavaScript shell</h2>
The <a href="shell.html">JavaScript shell</a> allows for interactive and
batch execution of JavaScript scripts.
<br>&nbsp;
<br>&nbsp;
<br>&nbsp;
<h2>
JavaScript compiler</h2>
The <a href="jsc.html">JavaScript compiler</a> translates JavaScript source
into Java class files.
<br>&nbsp;
<p>
<hr WIDTH="100%">
<br><a href="index.html">back to top</a>
</body>
</html>

View File

@@ -0,0 +1,336 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 97">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (WinNT; U) [Netscape]">
<title>Embedding Rhino</title>
</head>
<body>
<center><font size=+4>Tutorial: Embedding Rhino</font></center>
<p>Embedding Rhino can be done simply with good results. With more effort
on the part of the embedder, the objects exposed to scripts can be customized
further.
<p>This tutorial leads you through the steps from a simple embedding to
more customized, complex embeddings. Fully compilable examples are provided
along the way.
<p>The examples live in the <tt>rhino/examples</tt> directory in the distribution
and in <tt>mozilla/js/rhino/examples</tt> in cvs. This document will link
to them using <a href="http://lxr.mozilla.org/">lxr</a>.
<p>In this document, JavaScript code will be in <font color="#006600">green</font>,
Java code will be in <font color="#006600">green</font>, and shell logs
will be in <font color="#663366">purple</font>.
<h3>
<font size=+3>Contents</font></h3>
<ul>
<li>
<font size=+1><a href="#RunScript">RunScript: A simple embedding</a></font></li>
<ul>
<li>
<font size=+1><a href="#EnteringContext">Entering a Context</a></font></li>
<li>
<font size=+1><a href="#initializing">Initializing standard objects</a></font></li>
<li>
<font size=+1><a href="#Collecting">Collecting the arguments</a></font></li>
<li>
<font size=+1><a href="#Evaluating">Evaluating a script</a></font></li>
<li>
<font size=+1><a href="#Print">Print the result</a></font></li>
<li>
<font size=+1><a href="#Exit">Exit the Context</a></font></li>
</ul>
<li>
<font size=+1><a href="#Expose">Expose Java APIs</a></font></li>
<ul>
<li>
<font size=+1><a href="#UseJava">Use Java APIs</a></font></li>
<li>
<font size=+1><a href="#ImplementingInterfaces">Implementing interfaces</a></font></li>
<li>
<font size=+1><a href="#AddJava">Add Java objects</a></font></li>
</ul>
<li>
<font size=+1><a href="#UsingJSObjs">Using JavaScript objects from Java</a></font></li>
<ul>
<li>
<font size=+1><a href="#UsingJSvars">Using JavaScript variables</a></font></li>
<li>
<font size=+1><a href="#CallingJSfuns">Calling JavaScript functions</a></font></li>
</ul>
<li>
<font size=+1><a href="#JavaScriptHostObjects">JavaScript host objects</a></font></li>
<ul>
<li>
<font size=+1><a href="#DefiningHostObjects">Defining Host Objects</a></font></li>
<li>
<font size=+1><a href="#Counter">Counter example</a></font></li>
<ul>
<li>
<font size=+1><a href="#CounterCtors">Counter's constructors</a></font></li>
<li>
<font size=+1><a href="#classname">Class name</a></font></li>
<li>
<font size=+1><a href="#Dynamic">Dynamic properties</a></font></li>
<li>
<font size=+1><a href="#DefiningMethods">Defining JavaScript "methods"</a></font></li>
<li>
<font size=+1><a href="#AddingCounter">Adding Counter to RunScript</a></font></li>
</ul>
</ul>
</ul>
<hr WIDTH="100%">
<br><a NAME="RunScript"></a><font size=+3>RunScript: A simple embedding</font>
<p>About the simplest embedding of Rhino possible is the <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript.java">RunScript
example</a>. All it does it read a script from the command line, execute
it, and print a result.
<p>Here's an example use of RunScript from a shell command line:
<blockquote>
<pre><font color="#663366">$ java RunScript 'Math.cos(Math.PI)'
-1
$ java RunScript 'function f(x){return x+1} f(7)'
8</font></pre>
</blockquote>
Note that you'll have to have both the Rhino classes and the RunScript
example class file in the classpath. Let's step through the body of <tt>main</tt>
one line at time.
<p><a NAME="EnteringContext"></a><font size=+2>Entering a Context</font>
<p>The code
<blockquote>
<pre><font color="#006600">Context cx = Context.enter();</font></pre>
</blockquote>
Creates and enters a <tt>Context. </tt>A <tt>Context</tt> stores information
about the execution environment of a script.
<br>&nbsp;
<p><a NAME="initializing"></a><font size=+2>Initializing standard objects</font>
<p>The code
<blockquote>
<pre><font color="#006600">Scriptable scope = cx.initStandardObjects(null);</font></pre>
</blockquote>
Initializes the standard objects (<tt>Object</tt>,
<tt>Function</tt>, etc.)
This must be done before scripts can be executed. The <tt>null</tt> parameter
tells <tt>initStandardObjects</tt> to create and return a scope object
that we use in later calls.
<p><a NAME="Collecting"></a><font size=+2>Collecting the arguments</font>
<p>This code is standard Java and not specific to Rhino. It just collects
all the arguments and concatenates them together.
<blockquote><tt><font color="#006600">String s = "";</font></tt>
<br><tt><font color="#006600">for (int i=0; i &lt; args.length; i++)</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; s += args[i];</font></tt></blockquote>
<p><br><a NAME="Evaluating"></a><font size=+2>Evaluating a script</font>
<p>The code
<blockquote>
<pre><font color="#006600">Object result = cx.evaluateString(scope, s, "&lt;cmd>", 1, null);</font></pre>
</blockquote>
uses the Context <tt>cx</tt> to evaluate a string. Evaluation of the script
looks up variables in <tt>scope</tt>, and errors will be reported with
the filename <tt>&lt;cmd></tt> and line number 1.
<br>&nbsp;
<p><a NAME="Print"></a><font size=+2>Print the result</font>
<p>The code
<blockquote>
<pre><font color="#006600">System.out.println(cx.toString(result));</font></pre>
</blockquote>
prints the result of evaluating the script (contained in the variable <tt>result</tt>).
<tt>result</tt>
could be a string, JavaScript object, or other values..The
<tt>toString</tt>
method converts any JavaScript value to a string.
<br>&nbsp;
<p><a NAME="Exit"></a><font size=+2>Exit the Context</font>
<p>The code
<blockquote>
<pre><font color="#006600">Context.exit();</font></pre>
</blockquote>
exits the Context. This removes the association between the Context and
the current thread and is an essential cleanup action. There should be
a call to <tt>exit</tt> for every call to <tt>enter</tt>.
<br>&nbsp;
<dir>&nbsp;</dir>
<a NAME="Expose"></a><font size=+3>Expose Java APIs</font>
<p><a NAME="UseJava"></a><font size=+2>Use Java APIs</font>
<p>No additional code in the embedding needed! The JavaScript feature called
<i>LiveConnect</i>
allows JavaScript programs to interact with Java objects:
<dir><tt><font color="#663366">$ java RunScript 'java.lang.System.out.println(3)'</font></tt>
<br><tt><font color="#663366">3.0</font></tt>
<br><tt><font color="#663366">undefined</font></tt></dir>
<a NAME="ImplementingInterfaces"></a><font size=+2>Implementing interfaces</font>
<p>Using Rhino, JavaScript objects can implement arbitrary Java interfaces.
There's no Java code to write--it's part of Rhino's LiveConnect implementation.
For example, we can see how to implement java.lang.Runnable in a Rhino
shell session:
<blockquote>
<pre><font color="#663366">js> obj = { run: function() { print('hi'); } }
[object Object]
js> obj.run()
hi
js> r = new java.lang.Runnable(obj);
[object Object]
js> t = new java.lang.Thread(r)
Thread[Thread-0,5,main]
js> t.start()
hi</font></pre>
</blockquote>
<a NAME="AddJava"></a><font size=+2>Add Java objects</font>
<p>The next example is <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript2.java">RunScript2</a>.
This is the same as RunScript, but with the addition of two extra lines
of code:
<dir><tt><font color="#006600">Scriptable jsArgs = Context.toObject(System.out,
scope);</font></tt>
<br><tt><font color="#006600">scope.put("out", scope, jsArgs);</font></tt></dir>
These lines add a global variable <tt>out</tt> that is a JavaScript reflection
of the <tt>System.out</tt> variable:
<dir><tt><font color="#663366">$ java RunScript2 'out.println(42)'</font></tt>
<br><tt><font color="#663366">42.0</font></tt>
<br><tt><font color="#663366">undefined</font></tt></dir>
<p><br><a NAME="UsingJSObjs"></a><font size=+3>Using JavaScript objects
from Java</font>
<p>After evaluating a script it's possible to query the scope for variables
and functions, extracting values and calling JavaScript functions. This
is illustrated in the <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript3.java">RunScript3</a>
example. This example adds the ability to print the value of variable <tt>x</tt>
and the result of calling function <tt>f</tt>. Both <tt>x</tt> and <tt>f</tt>
are expected to be defined by the evaluated script. For example,
<blockquote><tt><font color="#663366">$ java RunScript3 'x = 7'</font></tt>
<br><tt><font color="#663366">x = 7</font></tt>
<br><tt><font color="#663366">f is undefined or not a function.</font></tt>
<br><tt><font color="#663366">$ java RunScript3 'function f(a) { return
a; }'</font></tt>
<br><tt><font color="#663366">x is not defined.</font></tt>
<br><tt><font color="#663366">f('my args') = my arg</font></tt>
<br><tt><font color="#663366"></font></tt>&nbsp;</blockquote>
<a NAME="UsingJSvars"></a><font size=+2>Using JavaScript variables</font>
<p>To print out the value of <tt>x</tt>, we add the following code.
<dir><tt><font color="#006600">Object x = scope.get("x", scope);</font></tt>
<br><tt><font color="#006600">if (x == Scriptable.NOT_FOUND)</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; System.out.println("x
is not defined.");</font></tt>
<br><tt><font color="#006600">else</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; System.out.println("x
= " + Context.toString(x));</font></tt>
<br><tt><font color="#006600"></font></tt>&nbsp;</dir>
<a NAME="CallingJSfuns"></a><font size=+2>Calling JavaScript functions</font>
<p>To get the function <tt>f</tt>, call it, and print the result, we add
this code:
<dir><tt><font color="#006600">Object f = scope.get("f", scope);</font></tt>
<br><tt><font color="#006600">if (!(f instanceof Function))</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; System.out.println("f
is undefined or not a function.");</font></tt>
<br><tt><font color="#006600">else {</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; Object functionArgs[]
= { "my arg" };</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; Object result = ((Function)
f).call(cx, scope, scope, functionArgs);</font></tt>
<br><tt><font color="#006600">&nbsp;&nbsp;&nbsp; System.out.println("f('my
args') = " + Context.toString(result));</font></tt>
<br><tt><font color="#006600">}</font></tt></dir>
<p><br><a NAME="JavaScriptHostObjects"></a><font size=+3>JavaScript host
objects</font>
<p><a NAME="DefiningHostObjects"></a><font size=+2>Defining Host Objects</font>
<p>Custom host objects can implement special JavaScript features like dynamic
properties.
<p><a NAME="Counter"></a><font size=+2>Counter example</font>
<p>The <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/Counter.java">Counter
example</a> is a simple host object. We'll go through it method by method
below.
<p>It's easy to try out new host object classes in the shell using its
built-in <tt>defineClass</tt> function. We'll see how to add it to RunScript
later. (Note that because the <tt>java -jar</tt> option preempts the rest
of the classpath, we can't use that and access the <tt>Counter</tt> class.)
<blockquote>
<pre><font color="#663366">$ java -cp 'js.jar;examples' org.mozilla.javascript.tools.shell.Main
js> defineClass("Counter")
js> c = new Counter(7)
[object Counter]
js> c.count
7
js> c.count
8
js> c.count
9
js> c.resetCount()
js> c.count
0</font></pre>
</blockquote>
<a NAME="CounterCtors"></a><font size=+2>Counter's constructors</font>
<p>The zero-argument constructor is used by Rhino runtime to create instances.
For the counter example, no initialization work is needed, so the implementation
is empty.
<dir><tt><font color="#006600">public Counter () { }</font></tt></dir>
The method <tt>jsConstructor</tt> defines the JavaScript constructor that
was called with the expression <tt>new Counter(7)</tt> in the JavaScript
code above.
<dir><tt><font color="#006600">public void jsConstructor(int a) { count
= a; }</font></tt></dir>
<a NAME="classname"></a><font size=+2>Class name</font>
<p>The class name is defined by the <tt>getClassName</tt> method. This
is used to determine the name of the constructor.
<dir><tt><font color="#006600">public String getClassName() { return "Counter";
}</font></tt></dir>
<a NAME="Dynamic"></a><font size=+2>Dynamic properties</font>
<p>Dynamic properties are defined by methods beginning with <tt>jsGet_</tt>
or <tt>jsSet_</tt>. The method <tt>jsGet_count</tt> defines the <i>count</i>
property.
<dir><tt><font color="#006600">public int jsGet_count() { return count++;
}</font></tt></dir>
The expression <tt>c.count</tt> in the JavaScript code above results in
a call to this method.
<p><a NAME="DefiningMethods"></a><font size=+2>Defining JavaScript "methods"</font>
<p>Methods can be defined using the <tt>jsFunction_ prefix</tt>. Here we
define <tt>resetCount</tt> for JavaScript.
<dir><tt><font color="#006600">public void jsFunction_resetCount() { count
= 0; }</font></tt></dir>
The call <tt>c.resetCount()</tt> above calls this method.
<p><a NAME="AddingCounter"></a><font size=+2>Adding Counter to RunScript</font>
<p>Now take a look at the <a href="http://lxr.mozilla.org/mozilla/source/js/rhino/examples/RunScript4.java">RunScript4
example</a>. It's the same as RunScript except for two additions. The method
<tt>ScriptableObject.defineClass</tt>
uses a Java class to define the Counter "class" in the top-level scope:
<dir><tt><font color="#006600">ScriptableObject.defineClass(scope, Counter.class);</font></tt></dir>
Now we can reference the <tt>Counter</tt> object from our script:
<dir><tt><font color="#663366">$ java RunScript4 'c = new Counter(3); c.count;
c.count;'</font></tt>
<br><tt><font color="#663366">4</font></tt></dir>
It also creates a new instance of the <tt>Counter</tt> object from within
our Java code, constructing it with the value 7, and assigning it to the
top-level variable <tt>myCounter</tt>:
<dir><tt><font color="#006600">Object[] arg = { new Integer(7) };</font></tt>
<br><tt><font color="#006600">Scriptable myCounter = cx.newObject(scope,
"Counter", arg);</font></tt>
<br><tt><font color="#006600">scope.put("myCounter", scope, myCounter);</font></tt></dir>
Now we can reference the <tt>myCounter</tt> object from our script:
<dir><tt><font color="#663366">$ java RunScript3 'RunScript4 'myCounter.count;
myCounter.count'</font></tt>
<br><tt><font color="#663366">8</font></tt></dir>
</body>
</html>

View File

@@ -0,0 +1,78 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Author" content="Norris Boyd">
<meta name="GENERATOR" content="Mozilla/4.72 [en]C-NSCP (WinNT; U) [Netscape]">
<meta name="KeyWords" content="Rhino, JavaScript, Java">
<title>Using Rhino</title>
</head>
<body bgcolor="#FFFFFF">
<script src="owner.js"></script>
<center>
<h1>
How are people using Rhino?</h1></center>
Here's a partial list of the ways people are using Rhino in their projects.
The initial list was collected by Netscape marketing, so Rhino is referred
to as Netscape Java-based JavaScript. We'd love to hear how you're using
Rhino--just mail&nbsp;<script>document.write(owner());</script>
.
<p><a href="http://www.attachmate.com">Attachmate</a>
<br>"Netscape JavaScript 1.5 with Java implementation was a perfect solution
for developing our MacroRecorder because it made our development process
faster and better, and our customers get a more efficient, reliable, and
standards based product as a result," said Rob Clark, Director of Product
Development at Attachmate. Attachmate integrates Netscape's Java-based
JavaScript 1.5 Interpreter into its 100% Pure Java certified web-to-host
thin clients, called e-Vantage Viewers. The Netscape Java-based JavaScript
interpreter is used in a MacroRecorder feature that allows browser-based
users to efficiently navigate host applications on mainframe and midrange
systems.
<p><a href="http://www.bristowhill.com/">Bristow Hill Software</a>
<br>"We thought it would require lots of work to add scripting capability
to Bristow Hill Server Pages, but we were delighted to find that Netscape
JavaScript 1.5 with Java implementation fit right in with only a couple
of lines of initialization code and one line of code to export our standard
objects by name. Also, we were pleased to find we could take embedded scripting
and compile it down to Java classes which could be used directly for greater
speed in production. Netscape's JavaScript engine is rock solid and standards
compliant, and my only regret is that we didn't start using it sooner,"
said Don Anderson, President of Bristow Hill Software.
<p><a href="http://www.icesoft.no/">ICEsoft</a>
<br>ICEsoft adds JavaScript support to their <a href="http://www.icesoft.no/ICEBrowser/">ICE
Browser</a> using Rhino.
<p><a href="http://www.vmeng.com/beard/JShell/Release_Notes.html">JShell</a>
<br>Rhino is used as the scripting language for the open source command
shell JShell written by Patrick Beard.
<p><a href="http://www.softcom.com">Softcom</a>
<br>The tight integration of Netscape's Java-based JavaScript 1.5 with
Softcom's Java-based RealPlayer plugin, RJ, enables Softcom to quickly
produce dynamic interactive video applications for our media/entertainment,
retail and professional education clients, helping us to synchronize the
full interactivity of the Web and e-commerce with streaming video, said
Chris O'Brien, president and COO of Softcom. For the enhanced Oscarcast
recently produced for E! Online during the Academy Awards, Softcom used
RJ to embed Netscape's JavaScript 1.5 in the RealPlayer, successfully integrating
interactive chat and Java games, along with streaming video, within the
RealPlayer.
<p><a href="http://www.tdiinc.com/">Technology Deployment International</a>
<br>"Technology Deployment International selected the Java-based Netscape
JavaScript engine to incorporate into the workflow module of our eBusiness
Management System (eBMS) allowing our customers to integrate business logic
into any workstep of their application," said Dr. Kelvin Liu, VP eBMS Development,
Technology Deployment International. "It has been easy to embed, the support
we received from the engineering team has been outstanding, and the performance
of the JavaScript code is almost identical to the equivalent Java."
<p><a href="http://www.xypoint.com/">XYPOINT</a>
<br>XYPOINT uses Rhino for automating test cases of their Java classes
used in their service <a href="http://www.webwirelessnow.com/">WebWirelessNow</a>.
Abraham Backus says that he's happy with Rhino because "I've always wanted
this kind of JavaScript support."
<h3>
<hr WIDTH="100%"><br>
<a href="index.html">back to top</a></h3>
</body>
</html>

View File

@@ -0,0 +1,105 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* Example of controlling the JavaScript execution engine.
*
* We evaluate a script and then manipulate the result.
*
*/
public class Control {
/**
* Main entry point.
*
* Process arguments as would a normal Java program. Also
* create a new Context and associate it with the current thread.
* Then set up the execution environment and begin to
* execute scripts.
*/
public static void main(String[] args) {
Context cx = Context.enter();
// Set version to JavaScript1.2 so that we get object-literal style
// printing instead of "[object Object]"
cx.setLanguageVersion(Context.VERSION_1_2);
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed.
Scriptable scope = cx.initStandardObjects(null);
// Now we can evaluate a script. Let's create a new object
// using the object literal notation.
Object result = null;
try {
result = cx.evaluateString(scope, "obj = {a:1, b:['x','y']}",
"MySource", 1, null);
}
catch (JavaScriptException jse) {
// ignore
}
Scriptable obj = (Scriptable) scope.get("obj", scope);
// Should print "obj == result" (Since the result of an assignment
// expression is the value that was assigned)
System.out.println("obj " + (obj == result ? "==" : "!=") +
" result");
// Should print "obj.a == 1"
System.out.println("obj.a == " + obj.get("a", obj));
Scriptable b = (Scriptable) obj.get("b", obj);
// Should print "obj.b[0] == x"
System.out.println("obj.b[0] == " + b.get(0, b));
// Should print "obj.b[1] == y"
System.out.println("obj.b[1] == " + b.get(1, b));
try {
// Should print {a:1, b:["x", "y"]}
Function fn = (Function) ScriptableObject.getProperty(obj, "toString");
System.out.println(fn.call(cx, scope, obj, new Object[0]));
} catch (JavaScriptException e) {
// ignore
}
cx.exit();
}
}

View File

@@ -0,0 +1,56 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
public class Counter extends ScriptableObject {
// The zero-argument constructor used by Rhino runtime to create instances
public Counter() { }
// Method jsConstructor defines the JavaScript constructor
public void jsConstructor(int a) { count = a; }
// The class name is defined by the getClassName method
public String getClassName() { return "Counter"; }
// The method jsGet_count defines the count property.
public int jsGet_count() { return count++; }
// Methods can be defined using the jsFunction_ prefix. Here we define
// resetCount for JavaScript.
public void jsFunction_resetCount() { count = 0; }
private int count;
}

View File

@@ -0,0 +1,75 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* An example illustrating how to create a JavaScript object and retrieve
* properties and call methods.
* <p>
* Output should be:
* <pre>
* count = 0
* count = 1
* resetCount
* count = 0
* </pre>
*/
public class CounterTest {
public static void main(String[] args) throws Exception
{
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects(null);
ScriptableObject.defineClass(scope, Counter.class);
Scriptable testCounter = cx.newObject(scope, "Counter");
Object count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
ScriptableObject.callMethod(testCounter, "resetCount", new Object[0]);
System.out.println("resetCount");
count = ScriptableObject.getProperty(testCounter, "count");
System.out.println("count = " + count);
Context.exit();
}
}

View File

@@ -0,0 +1,178 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* Example of controlling the JavaScript with multiple scopes and threads.
*/
public class DynamicScopes {
/**
* Main entry point.
*
* Set up the shared scope and then spawn new threads that execute
* relative to that shared scope. Try compiling functions with and
* without dynamic scope to see the effect.
*
* The expected output is
* <pre>
* sharedScope
* sharedScope
* sharedScope
* thread0
* thread1
* thread2
* </pre>
* The final three lines may be permuted in any order depending on
* thread scheduling.
*/
public static void main(String[] args)
throws JavaScriptException
{
Context cx = Context.enter();
try {
cx.setCompileFunctionsWithDynamicScope(false);
runScripts(cx);
cx.setCompileFunctionsWithDynamicScope(true);
runScripts(cx);
} finally {
cx.exit();
}
}
static void runScripts(Context cx)
throws JavaScriptException
{
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed. The call
// returns a new scope that we will share.
Scriptable scope = cx.initStandardObjects(null);
// Now we can evaluate a script and functions will be compiled to
// use dynamic scope if the Context is so initialized.
String source = "var x = 'sharedScope';" +
"function f() { return x; }";
cx.evaluateString(scope, source, "MySource", 1, null);
// Now we spawn some threads that execute a script that calls the
// function 'f'. The scope chain looks like this:
// <pre>
// ------------------
// | shared scope |
// ------------------
// ^
// |
// ------------------
// | per-thread scope |
// ------------------
// ^
// |
// ------------------
// | f's activation |
// ------------------
// </pre>
// Both the shared scope and the per-thread scope have variables 'x'
// defined in them. If 'f' is compiled with dynamic scope enabled,
// the 'x' from the per-thread scope will be used. Otherwise, the 'x'
// from the shared scope will be used. The 'x' defined in 'g' (which
// calls 'f') should not be seen by 'f'.
final int threadCount = 3;
Thread[] t = new Thread[threadCount];
for (int i=0; i < threadCount; i++) {
String script = "function g() { var x = 'local'; return f(); }" +
"java.lang.System.out.println(g());";
t[i] = new Thread(new PerThread(scope, script,
"thread" + i));
}
for (int i=0; i < threadCount; i++)
t[i].start();
// Don't return in this thread until all the spawned threads have
// completed.
for (int i=0; i < threadCount; i++) {
try {
t[i].join();
} catch (InterruptedException e) {
}
}
}
static class PerThread implements Runnable {
PerThread(Scriptable scope, String script, String x) {
this.scope = scope;
this.script = script;
this.x = x;
}
public void run() {
// We need a new Context for this thread.
Context cx = Context.enter();
try {
// We can share the scope.
Scriptable threadScope = cx.newObject(scope);
threadScope.setPrototype(scope);
// We want "threadScope" to be a new top-level
// scope, so set its parent scope to null. This
// means that any variables created by assignments
// will be properties of "threadScope".
threadScope.setParentScope(null);
// Create a JavaScript property of the thread scope named
// 'x' and save a value for it.
threadScope.put("x", threadScope, x);
cx.evaluateString(threadScope, script, "threadScript", 1, null);
}
catch (NotAFunctionException jse) {
// ignore
}
catch (PropertyException jse) {
// ignore
}
catch (JavaScriptException jse) {
// ignore
}
finally {
Context.exit();
}
}
private Scriptable scope;
private String script;
private String x;
}
}

View File

@@ -0,0 +1,356 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
import java.io.*;
import java.util.Vector;
/**
* Define a simple JavaScript File object.
*
* This isn't intended to be any sort of definitive attempt at a
* standard File object for JavaScript, but instead is an example
* of a more involved definition of a host object.
*
* Example of use of the File object:
* <pre>
* js> defineClass("File")
* js> file = new File("myfile.txt");
* [object File]
* js> file.writeLine("one"); <i>only now is file actually opened</i>
* js> file.writeLine("two");
* js> file.writeLine("thr", "ee");
* js> file.close(); <i>must close file before we can reopen for reading</i>
* js> var a = file.readLines(); <i>creates and fills an array with the contents of the file</i>
* js> a;
* one,two,three
* js>
* </pre>
*
*
* File errors or end-of-file signaled by thrown Java exceptions will
* be wrapped as JavaScript exceptions when called from JavaScript,
* and may be caught within JavaScript.
*
* @author Norris Boyd
*/
public class File extends ScriptableObject {
/**
* The zero-parameter constructor.
*
* When Context.defineClass is called with this class, it will
* construct File.prototype using this constructor.
*/
public File() {
}
/**
* The Java method defining the JavaScript File constructor.
*
* If the constructor has one or more arguments, and the
* first argument is not undefined, the argument is converted
* to a string as used as the filename.<p>
*
* Otherwise System.in or System.out is assumed as appropriate
* to the use.
*/
public static Scriptable jsConstructor(Context cx, Object[] args,
Function ctorObj,
boolean inNewExpr)
{
File result = new File();
if (args.length == 0 || args[0] == Context.getUndefinedValue()) {
result.name = "";
result.file = null;
} else {
result.name = Context.toString(args[0]);
result.file = new java.io.File(result.name);
}
return result;
}
/**
* Returns the name of this JavaScript class, "File".
*/
public String getClassName() {
return "File";
}
/**
* Get the name of the file.
*
* Used to define the "name" property.
*/
public String jsGet_name() {
return name;
}
/**
* Read the remaining lines in the file and return them in an array.
*
* Implements a JavaScript function.<p>
*
* This is a good example of creating a new array and setting
* elements in that array.
*
* @exception IOException if an error occurred while accessing the file
* associated with this object
* @exception JavaScriptException if a JavaScript exception occurred
* while creating the result array
*/
public Object jsFunction_readLines()
throws IOException, JavaScriptException
{
Vector v = new Vector();
String s;
while ((s = jsFunction_readLine()) != null) {
v.addElement(s);
}
Object[] lines = new Object[v.size()];
v.copyInto(lines);
Scriptable scope = ScriptableObject.getTopLevelScope(this);
Scriptable result;
try {
Context cx = Context.getCurrentContext();
result = cx.newObject(scope, "Array", lines);
} catch (PropertyException e) {
throw Context.reportRuntimeError(e.getMessage());
} catch (NotAFunctionException e) {
throw Context.reportRuntimeError(e.getMessage());
}
return result;
}
/**
* Read a line.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object, or EOFException if the object
* reached the end of the file
*/
public String jsFunction_readLine() throws IOException {
return getReader().readLine();
}
/**
* Read a character.
*
* @exception IOException if an error occurred while accessing the file
* associated with this object, or EOFException if the object
* reached the end of the file
*/
public String jsFunction_readChar() throws IOException {
int i = getReader().read();
if (i == -1)
return null;
char[] charArray = { (char) i };
return new String(charArray);
}
/**
* Write strings.
*
* Implements a JavaScript function. <p>
*
* This function takes a variable number of arguments, converts
* each argument to a string, and writes that string to the file.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*/
public static void jsFunction_write(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
throws IOException
{
write0(thisObj, args, false);
}
/**
* Write strings and a newline.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*
*/
public static void jsFunction_writeLine(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
throws IOException
{
write0(thisObj, args, true);
}
public int jsGet_lineNumber()
throws FileNotFoundException
{
return getReader().getLineNumber();
}
/**
* Close the file. It may be reopened.
*
* Implements a JavaScript function.
* @exception IOException if an error occurred while accessing the file
* associated with this object
*/
public void jsFunction_close() throws IOException {
if (reader != null) {
reader.close();
reader = null;
} else if (writer != null) {
writer.close();
writer = null;
}
}
/**
* Finalizer.
*
* Close the file when this object is collected.
*/
public void finalize() {
try {
jsFunction_close();
}
catch (IOException e) {
}
}
/**
* Get the Java reader.
*/
public Object jsFunction_getReader() {
if (reader == null)
return null;
// Here we use toObject() to "wrap" the BufferedReader object
// in a Scriptable object so that it can be manipulated by
// JavaScript.
Scriptable parent = ScriptableObject.getTopLevelScope(this);
return Context.toObject(reader, parent);
}
/**
* Get the Java writer.
*
* @see File#jsFunction_getReader
*
*/
public Object jsFunction_getWriter() {
if (writer == null)
return null;
Scriptable parent = ScriptableObject.getTopLevelScope(this);
return Context.toObject(writer, parent);
}
/**
* Get the reader, checking that we're not already writing this file.
*/
private LineNumberReader getReader() throws FileNotFoundException {
if (writer != null) {
throw Context.reportRuntimeError("already writing file \""
+ name
+ "\"");
}
if (reader == null)
reader = new LineNumberReader(file == null
? new InputStreamReader(System.in)
: new FileReader(file));
return reader;
}
/**
* Perform the guts of write and writeLine.
*
* Since the two functions differ only in whether they write a
* newline character, move the code into a common subroutine.
*
*/
private static void write0(Scriptable thisObj, Object[] args, boolean eol)
throws IOException
{
File thisFile = checkInstance(thisObj);
if (thisFile.reader != null) {
throw Context.reportRuntimeError("already writing file \""
+ thisFile.name
+ "\"");
}
if (thisFile.writer == null)
thisFile.writer = new BufferedWriter(
thisFile.file == null ? new OutputStreamWriter(System.out)
: new FileWriter(thisFile.file));
for (int i=0; i < args.length; i++) {
String s = Context.toString(args[i]);
thisFile.writer.write(s, 0, s.length());
}
if (eol)
thisFile.writer.newLine();
}
/**
* Perform the instanceof check and return the downcasted File object.
*
* This is necessary since methods may reside in the File.prototype
* object and scripts can dynamically alter prototype chains. For example:
* <pre>
* js> defineClass("File");
* js> o = {};
* [object Object]
* js> o.__proto__ = File.prototype;
* [object File]
* js> o.write("hi");
* js: called on incompatible object
* </pre>
* The runtime will take care of such checks when non-static Java methods
* are defined as JavaScript functions.
*/
private static File checkInstance(Scriptable obj) {
if (obj == null || !(obj instanceof File)) {
throw Context.reportRuntimeError("called on incompatible object");
}
return (File) obj;
}
/**
* Some private data for this class.
*/
private String name;
private java.io.File file; // may be null, meaning to use System.out or .in
private LineNumberReader reader;
private BufferedWriter writer;
}

View File

@@ -0,0 +1,168 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* An example host object class.
*
* Here's a shell session showing the Foo object in action:
* <pre>
* js> defineClass("Foo")
* js> foo = new Foo(); <i>A constructor call, see <a href="#Foo">Foo</a> below.</i>
* [object Foo] <i>The "Foo" here comes from <a href"#getClassName">getClassName</a>.</i>
* js> foo.counter; <i>The counter property is defined by the <code>defineProperty</code></i>
* 0 <i>call below and implemented by the <a href="#getCounter">getCounter</a></i>
* js> foo.counter; <i>method below.</i>
* 1
* js> foo.counter;
* 2
* js> foo.resetCounter(); <i>Results in a call to <a href="#resetCounter">resetCounter</a>.</i>
* js> foo.counter; <i>Now the counter has been reset.</i>
* 0
* js> foo.counter;
* 1
* js> bar = new Foo(37); <i>Create a new instance.</i>
* [object Foo]
* js> bar.counter; <i>This instance's counter is distinct from</i>
* 37 <i>the other instance's counter.</i>
* js> foo.varargs(3, "hi"); <i>Calls <a href="#varargs">varargs</a>.</i>
* this = [object Foo]; args = [3, hi]
* js> foo[7] = 34; <i>Since we extended ScriptableObject, we get</i>
* 34 <i>all the behavior of a JavaScript object</i>
* js> foo.a = 23; <i>for free.</i>
* 23
* js> foo.a + foo[7];
* 57
* js>
* </pre>
*
* @see org.mozilla.javascript.Context
* @see org.mozilla.javascript.Scriptable
* @see org.mozilla.javascript.ScriptableObject
*
* @author Norris Boyd
*/
public class Foo extends ScriptableObject {
/**
* The zero-parameter constructor.
*
* When Context.defineClass is called with this class, it will
* construct Foo.prototype using this constructor.
*/
public Foo() {
}
/**
* The Java method defining the JavaScript Foo constructor.
*
* Takes an initial value for the counter property.
* Note that in the example Shell session above, we didn't
* supply a argument to the Foo constructor. This means that
* the Undefined value is used as the value of the argument,
* and when the argument is converted to an integer, Undefined
* becomes 0.
*/
public Foo(int counterStart) {
counter = counterStart;
}
/**
* Returns the name of this JavaScript class, "Foo".
*/
public String getClassName() {
return "Foo";
}
/**
* The Java method defining the JavaScript resetCounter function.
*
* Resets the counter to 0.
*/
public void jsFunction_resetCounter() {
counter = 0;
}
/**
* The Java method implementing the getter for the counter property.
* <p>
* If "setCounter" had been defined in this class, the runtime would
* call the setter when the property is assigned to.
*/
public int jsGet_counter() {
return counter++;
}
/**
* An example of a variable-arguments method.
*
* All variable arguments methods must have the same number and
* types of parameters, and must be static. <p>
* @param cx the Context of the current thread
* @param thisObj the JavaScript 'this' value.
* @param args the array of arguments for this call
* @param funObj the function object of the invoked JavaScript function
* This value is useful to compute a scope using
* Context.getTopLevelScope().
* @return computes the string values and types of 'this' and
* of each of the supplied arguments and returns them in a string.
*
* @exception ThreadAssociationException if the current
* thread is not associated with a Context
* @see org.mozilla.javascript.ScriptableObject#getTopLevelScope
*/
public static Object jsFunction_varargs(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
StringBuffer buf = new StringBuffer();
buf.append("this = ");
buf.append(Context.toString(thisObj));
buf.append("; args = [");
for (int i=0; i < args.length; i++) {
buf.append(Context.toString(args[i]));
if (i+1 != args.length)
buf.append(", ");
}
buf.append("]");
return buf.toString();
}
/**
* A piece of private data for this class.
*/
private int counter;
}

View File

@@ -0,0 +1,59 @@
#! gmake
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is Rhino code, released
# May 6, 1998.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1999 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
# Alternatively, the contents of this file may be used under the
# terms of the GNU Public License (the "GPL"), in which case the
# provisions of the GPL are applicable instead of those above.
# If you wish to allow use of your version of this file only
# under the terms of the GPL and not to allow others to use your
# version of this file under the NPL, indicate your decision by
# deleting the provisions above and replace them with the notice
# and other provisions required by the GPL. If you do not delete
# the provisions above, a recipient may use your version of this
# file under either the NPL or the GPL.
#
# Makefile for the examples directory.
#
# This Makefile just calls $(JAVAC) on all the .java files. This
# Makefile is intended to be called from the toplevel Makefile.
#
JSFILES = $(PATH_PREFIX)/*.js
SOURCES = $(PATH_PREFIX)/*.java
CLASSES = $(PATH_PREFIX)/*.class
$(CLASSES) : $(SOURCES)
$(JAVAC) $(JFLAGS) $(SOURCES)
clean :
- rm $(CLASSES) $(PATH_PREFIX)/MANIFEST
clobber : clean
check :
$(PATH_PREFIX)/MANIFEST : $(SOURCES) $(CLASSES) $(JSFILES)
ls $(SOURCES) $(CLASSES) $(JSFILES) \
> $(@)
# Emulate .PHONY
FORCE :

View File

@@ -0,0 +1,276 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
import java.util.Vector;
/**
* Matrix: An example host object class that implements the Scriptable interface.
*
* Built-in JavaScript arrays don't handle multiple dimensions gracefully: the
* script writer must create every array in an array of arrays. The Matrix class
* takes care of that by automatically allocating arrays for every index that
* is accessed. What's more, the Matrix constructor takes a integer argument
* that specifies the dimension of the Matrix. If m is a Matrix with dimension 3,
* then m[0] will be a Matrix with dimension 1, and m[0][0] will be an Array.
*
* Here's a shell session showing the Matrix object in action:
* <pre>
* js> defineClass("Matrix")
* js> m = new Matrix(2); <i>A constructor call, see <a href="#Matrix">Matrix</a> below.</i>
* [object Matrix] <i>The "Matrix" here comes from <a href"#getClassName">getClassName</a>.</i>
* js> version(120); <i>switch to JavaScript1.2 to see arrays better</i>
* 0
* js> m[0][0] = 3;
* 3
* js> m[0]; <i>an array was created automatically!</i>
* [3]
* js> m[1]; <i>array is created even if we don't set a value</i>
* []
* js> m.dim; <i>we can access the "dim" property</i>
* 2
* js> m.dim = 3;
* 3
* js> m.dim; <i>but not modify it</i>
* 2
* </pre>
*
* @see org.mozilla.javascript.Context
* @see org.mozilla.javascript.Scriptable
*
* @author Norris Boyd
*/
public class Matrix implements Scriptable {
/**
* The zero-parameter constructor.
*
* When ScriptableObject.defineClass is called with this class, it will
* construct Matrix.prototype using this constructor.
*/
public Matrix() {
}
/**
* The Java constructor, also used to define the JavaScript constructor.
*/
public Matrix(int dimension) {
if (dimension <= 0) {
throw Context.reportRuntimeError(
"Dimension of Matrix must be greater than zero");
}
dim = dimension;
v = new Vector();
}
/**
* Returns the name of this JavaScript class, "Matrix".
*/
public String getClassName() {
return "Matrix";
}
/**
* Defines the "dim" property by returning true if name is
* equal to "dim".
* <p>
* Defines no other properties, i.e., returns false for
* all other names.
*
* @param name the name of the property
* @param start the object where lookup began
*/
public boolean has(String name, Scriptable start) {
return name.equals("dim");
}
/**
* Defines all numeric properties by returning true.
*
* @param index the index of the property
* @param start the object where lookup began
*/
public boolean has(int index, Scriptable start) {
return true;
}
/**
* Get the named property.
* <p>
* Handles the "dim" property and returns NOT_FOUND for all
* other names.
* @param name the property name
* @param start the object where the lookup began
*/
public Object get(String name, Scriptable start) {
if (name.equals("dim"))
return new Integer(dim);
return NOT_FOUND;
}
/**
* Get the indexed property.
* <p>
* Look up the element in the associated vector and return
* it if it exists. If it doesn't exist, create it.<p>
* @param index the index of the integral property
* @param start the object where the lookup began
*/
public Object get(int index, Scriptable start) {
if (index >= v.size())
v.setSize(index+1);
Object result = v.elementAt(index);
if (result != null)
return result;
if (dim > 2) {
Matrix m = new Matrix(dim-1);
m.setParentScope(getParentScope());
m.setPrototype(getPrototype());
result = m;
} else {
Context cx = Context.getCurrentContext();
Scriptable scope = ScriptableObject.getTopLevelScope(start);
result = cx.newArray(scope, 0);
}
v.setElementAt(result, index);
return result;
}
/**
* Set a named property.
*
* We do nothing here, so all properties are effectively read-only.
*/
public void put(String name, Scriptable start, Object value) {
}
/**
* Set an indexed property.
*
* We do nothing here, so all properties are effectively read-only.
*/
public void put(int index, Scriptable start, Object value) {
}
/**
* Remove a named property.
*
* This method shouldn't even be called since we define all properties
* as PERMANENT.
*/
public void delete(String id) {
}
/**
* Remove an indexed property.
*
* This method shouldn't even be called since we define all properties
* as PERMANENT.
*/
public void delete(int index) {
}
/**
* Get prototype.
*/
public Scriptable getPrototype() {
return prototype;
}
/**
* Set prototype.
*/
public void setPrototype(Scriptable prototype) {
this.prototype = prototype;
}
/**
* Get parent.
*/
public Scriptable getParentScope() {
return parent;
}
/**
* Set parent.
*/
public void setParentScope(Scriptable parent) {
this.parent = parent;
}
/**
* Get properties.
*
* We return an empty array since we define all properties to be DONTENUM.
*/
public Object[] getIds() {
return new Object[0];
}
/**
* Default value.
*
* Use the convenience method from Context that takes care of calling
* toString, etc.
*/
public Object getDefaultValue(Class typeHint) {
return "[object Matrix]";
}
/**
* instanceof operator.
*
* We mimick the normal JavaScript instanceof semantics, returning
* true if <code>this</code> appears in <code>value</code>'s prototype
* chain.
*/
public boolean hasInstance(Scriptable value) {
Scriptable proto = value.getPrototype();
while (proto != null) {
if (proto.equals(this))
return true;
proto = proto.getPrototype();
}
return false;
}
/**
* Some private data for this class.
*/
private int dim;
private Vector v;
private Scriptable prototype, parent;
}

View File

@@ -0,0 +1,7 @@
<html>
<body>
This is the NervousText applet in javascript:
<applet code=NervousText.class width=200 height=50 >
</applet>
</body>
</html>

View File

@@ -0,0 +1,75 @@
// The Java "NervousText" example ported to JavaScript.
// Compile using java org.mozilla.javascript.tools.jsc.Main -extends java.applet.Applet -implements java.lang.Runnable NervousText.js
/*
Adapted from Java code by
Daniel Wyszynski
Center for Applied Large-Scale Computing (CALC)
04-12-95
Test of text animation.
kwalrath: Changed string; added thread suspension. 5-9-95
*/
var Font = java.awt.Font;
var Thread = java.lang.Thread;
var separated;
var s = null;
var killme = null;
var i;
var x_coord = 0, y_coord = 0;
var num;
var speed=35;
var counter =0;
var threadSuspended = false; //added by kwalrath
function init() {
this.resize(150,50);
this.setFont(new Font("TimesRoman",Font.BOLD,36));
s = this.getParameter("text");
if (s == null) {
s = "Rhino";
}
separated = s.split('');
}
function start() {
if(killme == null)
{
killme = new java.lang.Thread(java.lang.Runnable(this));
killme.start();
}
}
function stop() {
killme = null;
}
function run() {
while (killme != null) {
try {Thread.sleep(100);} catch (e){}
this.repaint();
}
killme = null;
}
function paint(g) {
for(i=0;i<separated.length;i++)
{
x_coord = Math.random()*10+15*i;
y_coord = Math.random()*10+36;
g.drawChars(separated, i,1,x_coord,y_coord);
}
}
/* Added by kwalrath. */
function mouseDown(evt, x, y) {
if (threadSuspended) {
killme.resume();
}
else {
killme.suspend();
}
threadSuspended = !threadSuspended;
return true;
}

View File

@@ -0,0 +1,73 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* RunScript: simplest example of controlling execution of Rhino.
*
* Collects its arguments from the command line, executes the
* script, and prints the result.
*
* @author Norris Boyd
*/
public class RunScript {
public static void main(String args[])
throws JavaScriptException
{
// Creates and enters a Context. The Context stores information
// about the execution environment of a script.
Context cx = Context.enter();
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed. Returns
// a scope object that we use in later calls.
Scriptable scope = cx.initStandardObjects(null);
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++)
s += args[i];
// Now evaluate the string we've colected.
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
// Convert the result to a string and print it.
System.err.println(cx.toString(result));
// Exit from the context.
Context.exit();
}
}

View File

@@ -0,0 +1,63 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* RunScript2: Like RunScript, but reflects the System.out into JavaScript.
*
* @author Norris Boyd
*/
public class RunScript2 {
public static void main(String args[])
throws JavaScriptException
{
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects(null);
// Add a global variable "out" that is a JavaScript reflection
// of System.out
Scriptable jsArgs = Context.toObject(System.out, scope);
scope.put("out", scope, jsArgs);
String s = "";
for (int i=0; i < args.length; i++)
s += args[i];
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
System.err.println(cx.toString(result));
Context.exit();
}
}

View File

@@ -0,0 +1,80 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* RunScript3: Example of using JavaScript objects
*
* Collects its arguments from the command line, executes the
* script, and then ...
*
* @author Norris Boyd
*/
public class RunScript3 {
public static void main(String args[])
throws JavaScriptException
{
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects(null);
// Collect the arguments into a single string.
String s = "";
for (int i=0; i < args.length; i++)
s += args[i];
// Now evaluate the string we've colected. We'll ignore the result.
cx.evaluateString(scope, s, "<cmd>", 1, null);
// Print the value of variable "x"
Object x = scope.get("x", scope);
if (x == Scriptable.NOT_FOUND)
System.out.println("x is not defined.");
else
System.out.println("x = " + Context.toString(x));
// Call function "f('my arg')" and print its result.
Object f = scope.get("f", scope);
if (!(f instanceof Function))
System.out.println("f is undefined or not a function.");
else {
Object functionArgs[] = { "my arg" };
Object result = ((Function) f).call(cx, scope, scope, functionArgs);
System.out.println("f('my args') = " + Context.toString(result));
}
Context.exit();
}
}

View File

@@ -0,0 +1,71 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
/**
* RunScript4: Execute scripts in an environment that includes the
* example Counter class.
*
* @author Norris Boyd
*/
public class RunScript4 {
public static void main(String args[])
throws Exception
{
Context cx = Context.enter();
Scriptable scope = cx.initStandardObjects(null);
// Use the Counter class to define a Counter constructor
// and prototype in JavaScript.
ScriptableObject.defineClass(scope, Counter.class);
// Create an instance of Counter and assign it to
// the top-level variable "myCounter". This is
// equivalent to the JavaScript code
// myCounter = new Counter(7);
Object[] arg = { new Integer(7) };
Scriptable myCounter = cx.newObject(scope, "Counter", arg);
scope.put("myCounter", scope, myCounter);
String s = "";
for (int i=0; i < args.length; i++)
s += args[i];
Object result = cx.evaluateString(scope, s, "<cmd>", 1, null);
System.err.println(cx.toString(result));
Context.exit();
}
}

View File

@@ -0,0 +1,352 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1998.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
import org.mozilla.javascript.*;
import java.io.*;
/**
* The shell program.
*
* Can execute scripts interactively or in batch mode at the command line.
* An example of controlling the JavaScript engine.
*
* @author Norris Boyd
*/
public class Shell extends ScriptableObject {
/**
* Main entry point.
*
* Process arguments as would a normal Java program. Also
* create a new Context and associate it with the current thread.
* Then set up the execution environment and begin to
* execute scripts.
*/
public static void main(String args[]) {
// Associate a new Context with this thread
Context cx = Context.enter();
// A bit of shorthand: since Shell extends ScriptableObject,
// we can make it the global object.
global = new Shell();
// Initialize the standard objects (Object, Function, etc.)
// This must be done before scripts can be executed.
cx.initStandardObjects(global);
// Define some global functions particular to the shell. Note
// that these functions are not part of ECMA.
String[] names = { "print", "quit", "version", "load", "help" };
try {
global.defineFunctionProperties(names, Shell.class,
ScriptableObject.DONTENUM);
} catch (PropertyException e) {
throw new Error(e.getMessage());
}
args = processOptions(cx, args);
// Set up "arguments" in the global scope to contain the command
// line arguments after the name of the script to execute
Object[] array = args;
if (args.length > 0) {
int length = args.length - 1;
array = new Object[length];
System.arraycopy(args, 1, array, 0, length);
}
Scriptable argsObj = cx.newArray(global, array);
global.defineProperty("arguments", argsObj,
ScriptableObject.DONTENUM);
processSource(cx, args.length == 0 ? null : args[0]);
cx.exit();
}
/**
* Parse arguments.
*/
public static String[] processOptions(Context cx, String args[]) {
for (int i=0; i < args.length; i++) {
String arg = args[i];
if (!arg.startsWith("-")) {
String[] result = new String[args.length - i];
for (int j=i; j < args.length; j++)
result[j-i] = args[j];
return result;
}
if (arg.equals("-version")) {
if (++i == args.length)
usage(arg);
double d = cx.toNumber(args[i]);
if (d != d)
usage(arg);
cx.setLanguageVersion((int) d);
continue;
}
usage(arg);
}
return new String[0];
}
/**
* Return name of this class, the global object.
*
* This method must be implemented in all concrete classes
* extending ScriptableObject.
*
* @see org.mozilla.javascript.Scriptable#getClassName
*/
public String getClassName() {
return "global";
}
/**
* Print a usage message.
*/
public static void usage(String s) {
p("Didn't understand \"" + s + "\".");
p("Valid arguments are:");
p("-version 100|110|120|130");
System.exit(1);
}
/**
* Print a help message.
*
* This method is defined as a JavaScript function.
*/
public static void help(String s) {
p("");
p("Command Description");
p("======= ===========");
p("help() Display usage and help messages. ");
p("defineClass(className) Define an extension using the Java class");
p(" named with the string argument. ");
p(" Uses ScriptableObject.defineClass(). ");
p("load(['foo.js', ...]) Load JavaScript source files named by ");
p(" string arguments. ");
p("loadClass(className) Load a class named by a string argument.");
p(" The class must be a script compiled to a");
p(" class file. ");
p("print([expr ...]) Evaluate and print expressions. ");
p("quit() Quit the shell. ");
p("version([number]) Get or set the JavaScript version number.");
p("");
}
/**
* Print the string values of its arguments.
*
* This method is defined as a JavaScript function.
* Note that its arguments are of the "varargs" form, which
* allows it to handle an arbitrary number of arguments
* supplied to the JavaScript function.
*
*/
public static void print(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
for (int i=0; i < args.length; i++) {
if (i > 0)
System.out.print(" ");
// Convert the arbitrary JavaScript value into a string form.
String s = Context.toString(args[i]);
System.out.print(s);
}
System.out.println();
}
/**
* Quit the shell.
*
* This only affects the interactive mode.
*
* This method is defined as a JavaScript function.
*/
public static void quit() {
quitting = true;
}
/**
* Get and set the language version.
*
* This method is defined as a JavaScript function.
*/
public static double version(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
double result = (double) cx.getLanguageVersion();
if (args.length > 0) {
double d = cx.toNumber(args[0]);
cx.setLanguageVersion((int) d);
}
return result;
}
/**
* Load and execute a set of JavaScript source files.
*
* This method is defined as a JavaScript function.
*
*/
public static void load(Context cx, Scriptable thisObj,
Object[] args, Function funObj)
{
for (int i=0; i < args.length; i++) {
processSource(cx, cx.toString(args[i]));
}
}
/**
* Evaluate JavaScript source.
*
* @param cx the current context
* @param filename the name of the file to compile, or null
* for interactive mode.
*/
public static void processSource(Context cx, String filename) {
if (filename == null) {
BufferedReader in = new BufferedReader
(new InputStreamReader(System.in));
String sourceName = "<stdin>";
int lineno = 1;
boolean hitEOF = false;
do {
int startline = lineno;
System.err.print("js> ");
System.err.flush();
try {
String source = "";
// Collect lines of source to compile.
while(true) {
String newline;
newline = in.readLine();
if (newline == null) {
hitEOF = true;
break;
}
source = source + newline + "\n";
lineno++;
// Continue collecting as long as more lines
// are needed to complete the current
// statement. stringIsCompilableUnit is also
// true if the source statement will result in
// any error other than one that might be
// resolved by appending more source.
if (cx.stringIsCompilableUnit(source))
break;
}
Object result = cx.evaluateString(global, source,
sourceName, startline,
null);
if (result != cx.getUndefinedValue()) {
System.err.println(cx.toString(result));
}
}
catch (WrappedException we) {
// Some form of exception was caught by JavaScript and
// propagated up.
System.err.println(we.getWrappedException().toString());
we.printStackTrace();
}
catch (EvaluatorException ee) {
// Some form of JavaScript error.
System.err.println("js: " + ee.getMessage());
}
catch (JavaScriptException jse) {
// Some form of JavaScript error.
System.err.println("js: " + jse.getMessage());
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
if (quitting) {
// The user executed the quit() function.
break;
}
} while (!hitEOF);
System.err.println();
} else {
FileReader in = null;
try {
in = new FileReader(filename);
}
catch (FileNotFoundException ex) {
Context.reportError("Couldn't open file \"" + filename + "\".");
return;
}
try {
// Here we evalute the entire contents of the file as
// a script. Text is printed only if the print() function
// is called.
cx.evaluateReader(global, in, filename, 1, null);
}
catch (WrappedException we) {
System.err.println(we.getWrappedException().toString());
we.printStackTrace();
}
catch (EvaluatorException ee) {
System.err.println("js: " + ee.getMessage());
}
catch (JavaScriptException jse) {
System.err.println("js: " + jse.getMessage());
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
finally {
try {
in.close();
}
catch (IOException ioe) {
System.err.println(ioe.toString());
}
}
}
System.gc();
}
private static void p(String s) {
System.out.println(s);
}
static Shell global;
static boolean quitting;
}

View File

@@ -0,0 +1,63 @@
/*
* SwingApplication.js - a translation into JavaScript of
* SwingApplication.java, a java.sun.com Swing example.
*
* @author Roger E Critchlow, Jr.
*/
importPackage(Packages.javax.swing);
importPackage(Packages.java.awt);
importPackage(Packages.java.awt.event);
function createComponents() {
var labelPrefix = "Number of button clicks: ";
var numClicks = 0;
var label = new JLabel(labelPrefix + numClicks);
var button = new JButton("I'm a Swing button!");
button.setMnemonic(KeyEvent.VK_I);
button.addActionListener(new ActionListener({
actionPerformed : function() {
numClicks += 1;
label.setText(labelPrefix + numClicks);
}
}));
label.setLabelFor(button);
/*
* An easy way to put space between a top-level container
* and its contents is to put the contents in a JPanel
* that has an "empty" border.
*/
var pane = new JPanel();
pane.setBorder(BorderFactory.createEmptyBorder(
30, //top
30, //left
10, //bottom
30) //right
);
pane.setLayout(new GridLayout(0, 1));
pane.add(button);
pane.add(label);
return pane;
}
try {
UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());
} catch (e) { }
//Create the top-level container and add contents to it.
var frame = new JFrame("SwingApplication");
frame.getContentPane().add(createComponents(), BorderLayout.CENTER);
//Finish setting up the frame, and show it.
frame.addWindowListener(new WindowAdapter({
windowClosing : function() {
java.lang.System.exit(0);
}
}) );
frame.pack();
frame.setVisible(true);

View File

@@ -0,0 +1,134 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/**
* checkParam.js
*
* The files given as arguments on the command line are assumed to be
* Java source code files. This program checks to see that the @param
* tags in the documentation comments match with the parameters for
* the associated Java methods.
* <p>
* Any errors found are reported.
*
*/
defineClass("File")
// Return true if "str" ends with "suffix".
function stringEndsWith(str, suffix) {
return str.substring(str.length - suffix.length) == suffix;
}
/**
* Perform processing once the end of a documentation comment is seen.
*
* Look for a parameter list following the end of the comment and
* collect the parameters and compare to the @param entries.
* Report any discrepancies.
* @param f the current file
* @param a an array of parameters from @param comments
* @param line the string containing the comment end (in case the
* parameters are on the same line)
*/
function processCommentEnd(f, a, line) {
while (line != null && !line.match(/\(/))
line = f.readLine();
while (line != null && !line.match(/\)/))
line += f.readLine();
if (line === null)
return;
var m = line.match(/\(([^\)]+)\)/);
var args = m ? m[1].split(",") : [];
if (a.length != args.length) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' mismatch: had a different number' +
' of @param entries and parameters.');
} else {
for (var i=0; i < a.length; i++) {
if (!stringEndsWith(args[i], a[i])) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' mismatch: had "' + a[i] +
'" and "' + args[i] + '".');
break;
}
}
}
}
/**
* Process the given file, looking for mismatched @param lists and
* parameter lists.
* @param f the file to process
*/
function processFile(f) {
var line;
var m;
var i = 0;
var a = [];
outer:
while ((line = f.readLine()) != null) {
if (line.match(/@param/)) {
while (m = line.match(/@param[ ]+([^ ]+)/)) {
a[i++] = m[1];
line = f.readLine();
if (line == null)
break outer;
}
}
if (i != 0 && line.match(/\*\//)) {
processCommentEnd(f, a, line);
i = 0;
a = [];
}
}
if (i != 0) {
print('"' + f.name +
'"; line ' + f.lineNumber +
' missing parameters at end of file.');
}
}
// main script: process each file in arguments list
for (var i=0; i < arguments.length; i++) {
var filename = String(arguments[i]);
print("Checking " + filename + "...");
var f = new File(filename);
processFile(f);
}
print("done.");

View File

@@ -0,0 +1,70 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Patrick Beard
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/*
enum.js
Implementing the interface java.util.Enumeration using the new syntax.
Note that this syntax is experimental only, and hasn't been approved
by ECMA.
The same functionality can be had without the new syntax using the
uglier syntax:
var elements = new JavaAdapter(java.util.Enumeration, {
index: 0, elements: array,
hasMoreElements: function ...
nextElement: function ...
});
by Patrick C. Beard.
*/
// an array to enumerate.
var array = [0, 1, 2];
// create an array enumeration.
var elements = new java.util.Enumeration() {
index: 0, elements: array,
hasMoreElements: function() {
return (this.index < this.elements.length);
},
nextElement: function() {
return this.elements[this.index++];
}
};
// now print out the array by enumerating through the Enumeration
while (elements.hasMoreElements())
print(elements.nextElement());

View File

@@ -0,0 +1,553 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roland Pennings
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/**
* Process a JavaScript source file and process special comments
* to produce an HTML file of documentation, similar to javadoc.
* @author Norris Boyd
* @see rhinotip.jar
* @lastmodified xx
* @version 1.2 Roland Pennings: Allow multiple files for a function.
* @version 1.3 Roland Pennings: Removes ../.. from the input directory name
*/
defineClass("File")
var functionDocArray = [];
var inputDirName = "";
var indexFileArray = [];
var indexFile = "";
var indexFileName = "index_files";
var indexFunctionArray = [];
var indexFunction = "";
var indexFunctionName = "index_functions";
var FileList = [];
var DirList = [];
var outputdir = null;
var debug = 0;
/**
* Process JavaScript source file <code>f</code>, writing jsdoc to
* file <code>out</code>.
* @param f input file
* @param fname name of the input file (without the path)
* @param inputdir directory of the input file
* @param out output file
*/
function processFile(f, fname, inputdir, out) {
var s;
var firstLine = true;
indexFileArray[fname] = "";
// write the header of the output file
out.writeLine('<HTML><HEADER><TITLE>' + fname + '</TITLE><BODY>');
if (inputdir != null) {
outstr = '<a name=\"_top_\"></a><pre><a href=\"' + indexFile + '\">Index Files</a> ';
outstr += '<a href=\"' + indexFunction + '\">Index Functions</a></pre><hr>';
out.writeLine(outstr);
}
// process the input file
var comment = "";
while ((s = f.readLine()) != null) {
var m = s.match(/\/\*\*(.*)/);
if (m != null) {
// Found a comment start.
s = "*" + m[1];
do {
m = s.match(/(.*)\*\//);
if (m != null) {
// Found end of comment.
comment += m[1];
break;
}
// Strip leading whitespace and "*".
comment += s.replace(/^\s*\*/, "");
s = f.readLine();
} while (s != null);
if (debug)
print("Found comment " + comment);
if (firstLine) {
// We have a comment for the whole file.
out.writeLine('<H1>File ' + fname + '</H1>');
out.writeLine(processComment(comment,firstLine,fname));
out.writeLine('<HR>');
firstLine = false;
comment = "";
continue;
}
}
// match the beginning of the function
// NB we also match functions without a comment!
// if we have two comments one after another only the last one will be taken
m = s.match(/^\s*function\s+((\w+)|(\w+)(\s+))\(([^)]*)\)/);
if (m != null)
{
// Found a function start
var htmlText = processFunction(m[1], m[5], comment); // sjm changed from 2nd to 5th arg
// Save the text in a global variable, so we
// can write out a table of contents first.
functionDocArray[functionDocArray.length] = {name:m[1], text:htmlText};
// Store the function also in the indexFunctionArray
// so we can have a seperate file with the function table of contents
if (indexFunctionArray[m[1]]) {
// print("ERROR: function: " + m[1] + " is defined more than once!");
// Allow multiple files for a function
with (indexFunctionArray[m[1]]) {
filename = filename + "|" + fname;
// print("filename = " + filename);
}
}
else {
indexFunctionArray[m[1]] = {filename:fname};
}
//reset comment
comment = "";
}
// match a method being bound to a prototype
m = s.match(/^\s*(\w*)\.prototype\.(\w*)\s*=\s*function\s*\(([^)]*)\)/);
if (m != null)
{
// Found a method being bound to a prototype.
var htmlText = processPrototypeMethod(m[1], m[2], m[3], comment);
// Save the text in a global variable, so we
// can write out a table of contents first.
functionDocArray[functionDocArray.length] = {name:m[1]+".prototype."+m[2], text:htmlText};
// Store the function also in the indexFunctionArray
// so we can have a seperate file with the function table of contents
if (indexFunctionArray[m[1]]) {
// print("ERROR: function: " + m[1] + " is defined more than once!");
// Allow multiple files for a function
with (indexFunctionArray[m[1]]) {
filename = filename + "|" + fname;
// print("filename = " + filename);
}
}
else {
indexFunctionArray[m[1]] = {filename:fname};
}
//reset comment
comment = "";
}
firstLine = false;
}
// Write table of contents.
for (var i=0; i < functionDocArray.length; i++) {
with (functionDocArray[i]) {
out.writeLine('function <A HREF=#' + name +
'>' + name + '</A><BR>');
}
}
out.writeLine('<HR>');
// Now write the saved function documentation.
for (i=0; i < functionDocArray.length; i++) {
with (functionDocArray[i]) {
out.writeLine('<A NAME=' + name + '>');
out.writeLine(text);
}
}
out.writeLine('</BODY></HTML>');
// Now clean up the doc array
functionDocArray = [];
}
/**
* Process function and associated comment.
* @param name the name of the function
* @param args the args of the function as a single string
* @param comment the text of the comment
* @return a string for the HTML text of the documentation
*/
function processFunction(name, args, comment) {
if (debug)
print("Processing " + name + " " + args + " " + comment);
return "<H2>Function " + name + "</H2>" +
"<PRE>" +
"function " + name + "(" + args + ")" +
"</PRE>" +
processComment(comment,0,name) +
"<P><BR><BR>";
}
/**
* Process a method being bound to a prototype.
* @param proto the name of the prototype
* @param name the name of the function
* @param args the args of the function as a single string
* @param comment the text of the comment
* @return a string for the HTML text of the documentation
*/
function processPrototypeMethod(proto, name, args, comment) {
if (debug)
print("Processing " + proto + ".prototype." + name + " " + args + " " + comment);
return "<H2> Method " + proto + ".prototype." + name + "</H2>" +
"<PRE>" +
proto + ".prototype." + name + " = function(" + args + ")" +
"</PRE>" +
processComment(comment,0,name) +
"<P><BR><BR>";
}
/**
* Process comment.
* @param comment the text of the comment
* @param firstLine shows if comment is at the beginning of the file
* @param fname name of the file (without path)
* @return a string for the HTML text of the documentation
*/
function processComment(comment,firstLine,fname) {
var tags = {};
// Use the "lambda" form of regular expression replace,
// where the replacement object is a function rather
// than a string. The function is called with the
// matched text and any parenthetical matches as
// arguments, and the result of the function used as the
// replacement text.
// Here we use the function to build up the "tags" object,
// which has a property for each "@" tag that is the name
// of the tag, and whose value is an array of the
// text following that tag.
comment = comment.replace(/@(\w+)\s+([^@]*)/g,
function (s, name, text) {
var a = tags[name] || [];
a.push(text);
tags[name] = a;
return "";
});
// if we have a comment at the beginning of a file
// store the comment for the index file
if (firstLine) {
indexFileArray[fname] = comment;
}
var out = comment + '<P>';
if (tags["param"]) {
// Create a table of parameters and their descriptions.
var array = tags["param"];
var params = "";
for (var i=0; i < array.length; i++) {
var m = array[i].match(/(\w+)\s+(.*)/);
params += '<TR><TD><I>'+m[1]+'</I></TD>' +
'<TD>'+m[2]+'</TD></TR>';
}
out += '<TABLE WIDTH="90%" BORDER=1>';
out += '<TR BGCOLOR=0xdddddddd>';
out += '<TD><B>Parameter</B></TD>';
out += '<TD><B>Description</B></TD></TR>';
out += params;
out += '</TABLE><P>';
}
if (tags["return"]) {
out += "<DT><B>Returns:</B><DD>";
out += tags["return"][0] + "</DL><P>";
}
if (tags["author"]) {
// List the authors together, separated by commas.
out += '<DT><B>Author:</B><DD>';
var array = tags["author"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += ", ";
}
out += '</DL><P>';
}
if (tags["version"]) {
// Show the version.
out += '<DT><B>Version:</B><DD>';
var array = tags["version"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += "<BR><DD>";
}
out += '</DL><P>';
}
if (tags["see"]) {
// List the see modules together, separated by <BR>.
out += '<DT><B>Dependencies:</B><DD>';
var array = tags["see"];
for (var i=0; i < array.length; i++) {
out += array[i];
if (i+1 < array.length)
out += "<BR><DD>";
}
out += '</DL><P>';
}
if (tags["lastmodified"]) {
// Shows a last modified description with client-side js.
out += '<DT><B>Last modified:</B><DD>';
out += '<script><!--\n';
out += 'document.writeln(document.lastModified);\n';
out += '// ---></script>\n';
out += '</DL><P>';
}
// additional tags can be added here (i.e., "if (tags["see"])...")
return out;
}
/**
* Create an html output file
* @param outputdir directory to put the file
* @param htmlfile name of the file
*/
function CreateOutputFile(outputdir,htmlfile)
{
if (outputdir==null)
{
var outname = htmlfile;
}
else
{
var separator = Packages.java.io.File.separator;
var outname = outputdir + separator + htmlfile.substring(htmlfile.lastIndexOf(separator),htmlfile.length);
}
print("output file: " + outname);
return new File(outname);
}
/**
* Process a javascript file. Puts the generated HTML file in the outdir
* @param filename name of the javascript file
* @inputdir input directory of the file (default null)
*/
function processJSFile(filename,inputdir)
{
if (debug) print("filename = " + filename + " inputdir = " + inputdir);
if (!filename.match(/\.js$/)) {
print("Expected filename to end in '.js'; had instead " +
filename + ". I don't treat the file.");
} else {
if (inputdir==null)
{
var inname = filename;
}
else
{
var separator = Packages.java.io.File.separator;
var inname = inputdir + separator + filename;
}
print("Processing file " + inname);
var f = new File(inname);
// create the output file
var htmlfile = filename.replace(/\.js$/, ".html");
var out = CreateOutputFile(outputdir,htmlfile);
processFile(f, filename, inputdir, out);
out.close();
}
}
/**
* Generate index files containing links to the processed javascript files
* and the generated functions
*/
function GenerateIndex(dirname)
{
// construct the files index file
var out = CreateOutputFile(outputdir,indexFile);
// write the beginning of the file
out.writeLine('<HTML><HEADER><TITLE>File Index - directory: ' + dirname + '</TITLE><BODY>');
out.writeLine('<H1>File Index - directory: ' + dirname + '</H1>\n');
out.writeLine('<TABLE WIDTH="90%" BORDER=1>');
out.writeLine('<TR BGCOLOR=0xdddddddd>');
out.writeLine('<TD><B>File</B></TD>');
out.writeLine('<TD><B>Description</B></TD></TR>');
var separator = Packages.java.io.File.separator;
// sort the index file array
var SortedFileArray = [];
for (var fname in indexFileArray)
SortedFileArray.push(fname);
SortedFileArray.sort();
for (var i=0; i < SortedFileArray.length; i++) {
var fname = SortedFileArray[i];
var htmlfile = fname.replace(/\.js$/, ".html");
out.writeLine('<TR><TD><A HREF=\"' + htmlfile + '\">' + fname + '</A></TD></TD><TD>');
if (indexFileArray[fname])
out.writeLine(indexFileArray[fname]);
else
out.writeLine('No comments');
out.writeLine('</TD></TR>\n');
}
out.writeLine('</TABLE></BODY></HTML>');
out.close();
// construct the functions index file
var out = CreateOutputFile(outputdir,indexFunction);
// write the beginning of the file
out.writeLine('<HTML><HEADER><TITLE>Function Index - directory: ' + dirname + '</TITLE><BODY>');
out.writeLine('<H1>Function Index - directory: ' + dirname + '</H1>\n');
out.writeLine('<TABLE WIDTH="90%" BORDER=1>');
out.writeLine('<TR BGCOLOR=0xdddddddd>');
out.writeLine('<TD><B>Function</B></TD>');
out.writeLine('<TD><B>Files</B></TD></TR>');
// sort the function array
var SortedFunctionArray = [];
for (var functionname in indexFunctionArray)
SortedFunctionArray.push(functionname);
SortedFunctionArray.sort();
for (var j=0; j < SortedFunctionArray.length; j++) {
var funcname = SortedFunctionArray[j];
with (indexFunctionArray[funcname]) {
var outstr = '<TR><TD>' + funcname + '</TD><TD>';
var filelst = filename.split("|");
for (var i in filelst) {
var htmlfile = filelst[i].replace(/\.js$/, ".html");
outstr += '<A HREF=\"' + htmlfile + '#' + funcname + '\">' + filelst[i] + '</A>&nbsp;';
}
outstr += '</TD></TR>';
out.writeLine(outstr);
}
}
out.writeLine('</TABLE></BODY></HTML>');
out.close();
}
/**
* prints the options for JSDoc
*/
function PrintOptions()
{
print("You can use the following options:\n");
print("-d: specify an output directory for the generated html files\n");
print("-i: processes all files in an input directory (you can specify several directories)\n");
quit();
}
// Main Script
// first read the arguments
if (! arguments)
PrintOptions();
for (var i=0; i < arguments.length; i++) {
if (debug) print("argument: + \'" + arguments[i] + "\'");
if (arguments[i].match(/^\-/)) {
if (String(arguments[i])=="-d"){
// output directory for the generated html files
outputdir = String(arguments[i+1]);
if (debug) print("outputdir: + \'" + outputdir + "\'");
i++;
}
else if (String(arguments[i])=="-i"){
// process all files in an input directory
DirList.push(String(arguments[i+1]));
if (debug) print("inputdir: + \'" + arguments[i+1] + "\'");
i++;
}
else {
print("Unknown option: " + arguments[i] + "\n");
PrintOptions();
}
}
else
{
// we have a single file
if (debug) print("file: + \'" + arguments[i] + "\'");
FileList.push(String(arguments[i]));
}
}
// first handle the single files
for (var i in FileList)
processJSFile(FileList[i],null);
// then handle the input directories
for (var j in DirList) {
var inputdir = String(DirList[j]);
print("Process input directory: " + inputdir);
// clean up index arrays
var indexFileArray = [];
var indexFunctionArray = [];
// for the directory name get rid of ../../ or ..\..\
inputDirName = inputdir.replace(/\.\.\/|\.\.\\/g,"");
indexFile = indexFileName + "_" + inputDirName + ".html";
indexFunction = indexFunctionName + "_" + inputDirName + ".html";
print("indexFile = " + indexFile);
print("indexFunction = " + indexFunction);
// read the files in the directory
var DirFile = new java.io.File(inputdir);
var lst = DirFile.list();
var separator = Packages.java.io.File.separator;
for (var i=0; i < lst.length; i++)
{
processJSFile(String(lst[i]),inputdir);
}
// generate the index files for the input directory
GenerateIndex(inputDirName);
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
/**
* liveConnect.js: a simple demonstration of JavaScript-to-Java connectivity
*/
// Create a new StringBuffer. Note that the class name must be fully qualified
// by its package. Packages other than "java" must start with "Packages", i.e.,
// "Packages.javax.servlet...".
var sb = new java.lang.StringBuffer();
// Now add some stuff to the buffer.
sb.append("hi, mom");
sb.append(3); // this will add "3.0" to the buffer since all JS numbers
// are doubles by default
sb.append(true);
// Now print it out. (The toString() method of sb is automatically called
// to convert the buffer to a string.)
// Should print "hi, mom3.0true".
print(sb);

View File

@@ -0,0 +1,53 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// unique.js: read the contents of a file and print out the unique lines
defineClass("File")
// "arguments[0]" refers to the first argument at the command line to the
// script, if present. If not present, "arguments[0]" will be undefined,
// which will cause f to read from System.in.
var f = new File(arguments[0]);
var o = {}
var line;
while ((line = f.readLine()) != null) {
// Use JavaScript objects' inherent nature as an associative
// array to provide uniqueness
o[line] = true;
}
for (i in o) {
print(i);
}

View File

Binary file not shown.

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Build file for Rhino using Ant (see http://jakarta.apache.org/ant/index.html)
Requires Ant version 1.2
-->
<project name="src" default="build" basedir=".">
<target name="properties">
<property name="nest" value=".."/>
</target>
<target name="compile" depends="properties">
<javac srcdir="."
destdir="${nest}/${build.dest}"
includes="org/**/*.java"
deprecation="on"
debug="${debug}">
</javac>
</target>
<target name="copy-properties">
<copy todir="${nest}/${build.dest}">
<fileset dir="." includes="org/**/*.properties" />
</copy>
</target>
<target name="copy-source">
<copy todir="${nest}/${dist.src}">
<fileset dir="."
includes="org/**/*.java,org/**/*.properties,build.xml,manifest"/>
</copy>
</target>
<target name="build" depends="compile,copy-properties,copy-source"/>
</project>

View File

@@ -0,0 +1,2 @@
Manifest-Version: 1.0
Main-Class: org.mozilla.javascript.tools.shell.Main

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,107 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roger Lawrence
* Patrick Beard
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.classfile;
import java.lang.reflect.Method;
import java.lang.reflect.InvocationTargetException;
/**
* Load generated classes.
*
* @author Norris Boyd
*/
public class DefiningClassLoader extends ClassLoader {
public static ClassLoader getContextClassLoader() {
try {
if (getContextClassLoaderMethod != null) {
return (ClassLoader) getContextClassLoaderMethod.invoke(
Thread.currentThread(),
new Object[0]);
}
} catch (IllegalAccessException e) {
// fall through...
} catch (InvocationTargetException e) {
// fall through...
}
return DefiningClassLoader.class.getClassLoader();
}
public Class defineClass(String name, byte data[]) {
return super.defineClass(name, data, 0, data.length);
}
public Class loadClass(String name, boolean resolve)
throws ClassNotFoundException
{
Class clazz = findLoadedClass(name);
if (clazz == null) {
ClassLoader loader = getContextClassLoader();
if (loader != null) {
clazz = loader.loadClass(name);
} else {
clazz = findSystemClass(name);
}
}
if (resolve)
resolveClass(clazz);
return clazz;
}
private static Method getContextClassLoaderMethod;
static {
try {
// Don't use "Thread.class": that performs the lookup
// in the class initializer, which doesn't allow us to
// catch possible security exceptions.
Class threadClass = Class.forName("java.lang.Thread");
// We'd like to use "getContextClassLoader", but
// that's only available on Java2.
getContextClassLoaderMethod =
threadClass.getDeclaredMethod("getContextClassLoader",
new Class[0]);
} catch (ClassNotFoundException e) {
// ignore exceptions; we'll use Class.forName instead.
} catch (NoSuchMethodException e) {
// ignore exceptions; we'll use Class.forName instead.
} catch (SecurityException e) {
// ignore exceptions; we'll use Class.forName instead.
}
}
}

View File

@@ -0,0 +1,140 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
/**
* This class implements the "arguments" object.
*
* See ECMA 10.1.8
*
* @see org.mozilla.javascript.NativeCall
* @author Norris Boyd
*/
class Arguments extends ScriptableObject {
public Arguments(NativeCall activation) {
this.activation = activation;
Scriptable parent = activation.getParentScope();
setParentScope(parent);
setPrototype(ScriptableObject.getObjectPrototype(parent));
args = activation.getOriginalArguments();
int length = args.length;
Object callee = activation.funObj;
defineProperty("length", new Integer(length),
ScriptableObject.DONTENUM);
defineProperty("callee", callee, ScriptableObject.DONTENUM);
hasCaller = (activation.funObj.version <= Context.VERSION_1_3 &&
activation.funObj.version != Context.VERSION_DEFAULT);
}
public String getClassName() {
return "Arguments";
}
public boolean has(String name, Scriptable start) {
return (hasCaller && name.equals("caller")) || super.has(name, start);
}
public boolean has(int index, Scriptable start) {
Object[] args = activation.getOriginalArguments();
return (0 <= index && index < args.length) || super.has(index, start);
}
public Object get(String name, Scriptable start) {
if (hasCaller && name.equals("caller")) {
NativeCall caller = activation.caller;
if (caller == null || caller.originalArgs == null)
return null;
return caller.get("arguments", caller);
}
return super.get(name, start);
}
public Object get(int index, Scriptable start) {
if (0 <= index && index < args.length) {
NativeFunction f = activation.funObj;
if (index < f.argCount)
return activation.get(f.argNames[index], activation);
return args[index];
}
return super.get(index, start);
}
public void put(String name, Scriptable start, Object value) {
if (name.equals("caller")) {
// Set "hasCaller" to false so that we won't look up a
// computed value.
hasCaller = false;
}
super.put(name, start, value);
}
public void put(int index, Scriptable start, Object value) {
if (0 <= index && index < args.length) {
NativeFunction f = activation.funObj;
if (index < f.argCount)
activation.put(f.argNames[index], activation, value);
else
args[index] = value;
return;
}
super.put(index, start, value);
}
public void delete(String name) {
if (name.equals("caller"))
hasCaller = false;
super.delete(name);
}
public void delete(int index) {
if (0 <= index && index < args.length) {
NativeFunction f = activation.funObj;
if (index < f.argCount)
activation.delete(f.argNames[index]);
else
args[index] = Undefined.instance;
}
}
private NativeCall activation;
private Object[] args;
private boolean hasCaller;
}

View File

@@ -0,0 +1,521 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* Roger Lawrence
* Mike McCabe
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
/**
* The base class for Function objects
* See ECMA 15.3.
* @author Norris Boyd
*/
public class BaseFunction extends IdScriptable implements Function {
static void init(Context cx, Scriptable scope, boolean sealed) {
BaseFunction obj = new BaseFunction();
obj.prototypeFlag = true;
obj.functionName = "";
obj.prototypePropertyAttrs = DONTENUM | READONLY | PERMANENT;
obj.addAsPrototype(MAX_PROTOTYPE_ID, cx, scope, sealed);
}
protected void fillConstructorProperties
(Context cx, IdFunction ctor, boolean sealed)
{
// Fix up bootstrapping problem: getPrototype of the IdFunction
// can not return Function.prototype because Function object is not
// yet defined.
ctor.setPrototype(this);
}
public String getClassName() {
return "Function";
}
/**
* Implements the instanceof operator for JavaScript Function objects.
* <p>
* <code>
* foo = new Foo();<br>
* foo instanceof Foo; // true<br>
* </code>
*
* @param instance The value that appeared on the LHS of the instanceof
* operator
* @return true if the "prototype" property of "this" appears in
* value's prototype chain
*
*/
public boolean hasInstance(Scriptable instance) {
Object protoProp = ScriptableObject.getProperty(this, "prototype");
if (protoProp instanceof Scriptable && protoProp != Undefined.instance)
{
return ScriptRuntime.jsDelegatesTo(instance, (Scriptable)protoProp);
}
throw NativeGlobal.typeError1
("msg.instanceof.bad.prototype", functionName, instance);
}
protected int getIdDefaultAttributes(int id) {
switch (id) {
case Id_length:
case Id_arity:
case Id_name:
return DONTENUM | READONLY | PERMANENT;
case Id_prototype:
return prototypePropertyAttrs;
case Id_arguments:
return EMPTY;
}
return super.getIdDefaultAttributes(id);
}
protected boolean hasIdValue(int id) {
if (id == Id_prototype) {
return prototypeProperty != NOT_FOUND;
}
else if (id == Id_arguments) {
// Should after delete Function.arguments its activation still
// be available during Function call?
// This code assumes it should not: after default set/deleteIdValue
// hasIdValue/getIdValue would not be called again
// To handle the opposite case, set/deleteIdValue should be
// overwritten as well
return null != getActivation(Context.getContext());
}
return super.hasIdValue(id);
}
protected Object getIdValue(int id) {
switch (id) {
case Id_length: return wrap_int(getLength());
case Id_arity: return wrap_int(getArity());
case Id_name: return getFunctionName();
case Id_prototype: return getPrototypeProperty();
case Id_arguments: return getArguments();
}
return super.getIdValue(id);
}
protected void setIdValue(int id, Object value) {
if (id == Id_prototype) {
prototypeProperty = (value != null) ? value : NULL_TAG;
return;
}
super.setIdValue(id, value);
}
protected void deleteIdValue(int id) {
if (id == Id_prototype) {
prototypeProperty = NOT_FOUND;
return;
}
super.deleteIdValue(id);
}
public int methodArity(int methodId) {
if (prototypeFlag) {
switch (methodId) {
case Id_constructor:
case Id_toString:
case Id_apply:
case Id_call:
return 1;
}
}
return super.methodArity(methodId);
}
public Object execMethod(int methodId, IdFunction f, Context cx,
Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException
{
if (prototypeFlag) {
switch (methodId) {
case Id_constructor:
return jsConstructor(cx, scope, args);
case Id_toString:
return jsFunction_toString(cx, thisObj, args);
case Id_apply:
return jsFunction_apply(cx, scope, thisObj, args);
case Id_call:
return jsFunction_call(cx, scope, thisObj, args);
}
}
return super.execMethod(methodId, f, cx, scope, thisObj, args);
}
/**
* Make value as DontEnum, DontDelete, ReadOnly
* prototype property of this Function object
*/
public void setImmunePrototypeProperty(Object value) {
prototypeProperty = (value != null) ? value : NULL_TAG;
prototypePropertyAttrs = DONTENUM | READONLY | PERMANENT;
}
protected Scriptable getClassPrototype() {
Object protoVal = getPrototypeProperty();
if (protoVal == null
|| !(protoVal instanceof Scriptable)
|| (protoVal == Undefined.instance))
protoVal = getClassPrototype(this, "Object");
return (Scriptable) protoVal;
}
/**
* Should be overridden.
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException
{
return Undefined.instance;
}
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
throws JavaScriptException
{
Scriptable newInstance = new NativeObject();
newInstance.setPrototype(getClassPrototype());
newInstance.setParentScope(getParentScope());
Object val = call(cx, scope, newInstance, args);
if (val instanceof Scriptable && val != Undefined.instance) {
return (Scriptable) val;
}
return newInstance;
}
/**
* Decompile the source information associated with this js
* function/script back into a string.
*
* @param cx Current context
*
* @param indent How much to indent the decompiled result
*
* @param justbody Whether the decompilation should omit the
* function header and trailing brace.
*/
public String decompile(Context cx, int indent, boolean justbody) {
StringBuffer sb = new StringBuffer();
if (!justbody) {
sb.append("function ");
sb.append(getFunctionName());
sb.append("() {\n\t");
}
sb.append("[native code, arity=");
sb.append(getArity());
sb.append("]\n");
if (!justbody) {
sb.append("}\n");
}
return sb.toString();
}
public int getArity() { return 0; }
public int getLength() { return 0; }
public String getFunctionName() {
if (functionName == null)
return "";
if (functionName.equals("anonymous")) {
Context cx = Context.getCurrentContext();
if (cx != null && cx.getLanguageVersion() == Context.VERSION_1_2)
return "";
}
return functionName;
}
private Object getPrototypeProperty() {
Object result = prototypeProperty;
if (result == null) {
synchronized (this) {
result = prototypeProperty;
if (result == null) {
setupDefaultPrototype();
result = prototypeProperty;
}
}
}
else if (result == NULL_TAG) { result = null; }
return result;
}
private void setupDefaultPrototype() {
NativeObject obj = new NativeObject();
final int attr = ScriptableObject.DONTENUM |
ScriptableObject.READONLY |
ScriptableObject.PERMANENT;
obj.defineProperty("constructor", this, attr);
// put the prototype property into the object now, then in the
// wacky case of a user defining a function Object(), we don't
// get an infinite loop trying to find the prototype.
prototypeProperty = obj;
Scriptable proto = getObjectPrototype(this);
if (proto != obj) {
// not the one we just made, it must remain grounded
obj.setPrototype(proto);
}
}
private Object getArguments() {
// <Function name>.arguments is deprecated, so we use a slow
// way of getting it that doesn't add to the invocation cost.
// TODO: add warning, error based on version
NativeCall activation = getActivation(Context.getContext());
return activation == null
? null
: activation.get("arguments", activation);
}
NativeCall getActivation(Context cx) {
NativeCall activation = cx.currentActivation;
while (activation != null) {
if (activation.getFunctionObject() == this)
return activation;
activation = activation.caller;
}
return null;
}
private static Object jsConstructor(Context cx, Scriptable scope,
Object[] args)
{
int arglen = args.length;
StringBuffer funArgs = new StringBuffer();
/* Collect the arguments into a string. */
int i;
for (i = 0; i < arglen - 1; i++) {
if (i > 0)
funArgs.append(',');
funArgs.append(ScriptRuntime.toString(args[i]));
}
String funBody = arglen == 0 ? "" : ScriptRuntime.toString(args[i]);
String source = "function (" + funArgs.toString() + ") {" +
funBody + "}";
int[] linep = { 0 };
String filename = Context.getSourcePositionFromStack(linep);
if (filename == null) {
filename = "<eval'ed string>";
linep[0] = 1;
}
Object securityDomain = cx.getSecurityDomainForStackDepth(4);
Scriptable global = ScriptableObject.getTopLevelScope(scope);
// Compile the function with opt level of -1 to force interpreter
// mode.
int oldOptLevel = cx.getOptimizationLevel();
cx.setOptimizationLevel(-1);
NativeFunction fn;
try {
fn = (NativeFunction) cx.compileFunction(global, source,
filename, linep[0],
securityDomain);
}
finally { cx.setOptimizationLevel(oldOptLevel); }
fn.functionName = "anonymous";
fn.setPrototype(getFunctionPrototype(global));
fn.setParentScope(global);
return fn;
}
private static Object jsFunction_toString(Context cx, Scriptable thisObj,
Object[] args)
{
int indent = ScriptRuntime.toInt32(args, 0);
Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass);
if (val instanceof BaseFunction) {
return ((BaseFunction)val).decompile(cx, indent, false);
}
throw NativeGlobal.typeError1("msg.incompat.call", "toString", thisObj);
}
/**
* Function.prototype.apply
*
* A proposed ECMA extension for round 2.
*/
private static Object jsFunction_apply(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
throws JavaScriptException
{
if (args.length != 2)
return jsFunction_call(cx, scope, thisObj, args);
Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass);
Scriptable newThis = args[0] == null
? ScriptableObject.getTopLevelScope(thisObj)
: ScriptRuntime.toObject(scope, args[0]);
Object[] newArgs;
if (args.length > 1) {
if ((args[1] instanceof NativeArray)
|| (args[1] instanceof Arguments))
newArgs = cx.getElements((Scriptable) args[1]);
else
throw NativeGlobal.typeError0("msg.arg.isnt.array", thisObj);
}
else
newArgs = ScriptRuntime.emptyArgs;
return ScriptRuntime.call(cx, val, newThis, newArgs, newThis);
}
/**
* Function.prototype.call
*
* A proposed ECMA extension for round 2.
*/
private static Object jsFunction_call(Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
throws JavaScriptException
{
Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass);
if (args.length == 0) {
Scriptable s = ScriptRuntime.toObject(scope, val);
Scriptable topScope = s.getParentScope();
return ScriptRuntime.call(cx, val,
topScope, ScriptRuntime.emptyArgs,
topScope);
} else {
Scriptable newThis = args[0] == null
? ScriptableObject.getTopLevelScope(thisObj)
: ScriptRuntime.toObject(scope, args[0]);
Object[] newArgs = new Object[args.length - 1];
System.arraycopy(args, 1, newArgs, 0, newArgs.length);
return ScriptRuntime.call(cx, val, newThis, newArgs, newThis);
}
}
protected int maxInstanceId() { return MAX_INSTANCE_ID; }
protected String getIdName(int id) {
switch (id) {
case Id_length: return "length";
case Id_arity: return "arity";
case Id_name: return "name";
case Id_prototype: return "prototype";
case Id_arguments: return "arguments";
}
if (prototypeFlag) {
switch (id) {
case Id_constructor: return "constructor";
case Id_toString: return "toString";
case Id_apply: return "apply";
case Id_call: return "call";
}
}
return null;
}
// #string_id_map#
private static final int
Id_length = 1,
Id_arity = 2,
Id_name = 3,
Id_prototype = 4,
Id_arguments = 5,
MAX_INSTANCE_ID = 5;
protected int mapNameToId(String s) {
int id;
// #generated# Last update: 2001-05-20 00:12:12 GMT+02:00
L0: { id = 0; String X = null; int c;
L: switch (s.length()) {
case 4: X="name";id=Id_name; break L;
case 5: X="arity";id=Id_arity; break L;
case 6: X="length";id=Id_length; break L;
case 9: c=s.charAt(0);
if (c=='a') { X="arguments";id=Id_arguments; }
else if (c=='p') { X="prototype";id=Id_prototype; }
break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
// #/string_id_map#
if (id != 0 || !prototypeFlag) { return id; }
// #string_id_map#
// #generated# Last update: 2001-05-20 00:12:12 GMT+02:00
L0: { id = 0; String X = null;
L: switch (s.length()) {
case 4: X="call";id=Id_call; break L;
case 5: X="apply";id=Id_apply; break L;
case 8: X="toString";id=Id_toString; break L;
case 11: X="constructor";id=Id_constructor; break L;
}
if (X!=null && X!=s && !X.equals(s)) id = 0;
}
// #/generated#
return id;
}
private static final int
Id_constructor = MAX_INSTANCE_ID + 1,
Id_toString = MAX_INSTANCE_ID + 2,
Id_apply = MAX_INSTANCE_ID + 3,
Id_call = MAX_INSTANCE_ID + 4,
MAX_PROTOTYPE_ID = MAX_INSTANCE_ID + 4;
// #/string_id_map#
protected String functionName;
private Object prototypeProperty;
private int prototypePropertyAttrs = DONTENUM;
private boolean prototypeFlag;
}

View File

@@ -0,0 +1,75 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Waldemar Horwat
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
final class BinaryDigitReader {
int lgBase; // Logarithm of base of number
int digit; // Current digit value in radix given by base
int digitPos; // Bit position of last bit extracted from digit
String digits; // String containing the digits
int start; // Index of the first remaining digit
int end; // Index past the last remaining digit
BinaryDigitReader(int base, String digits, int start, int end) {
lgBase = 0;
while (base != 1) {
lgBase++;
base >>= 1;
}
digitPos = 0;
this.digits = digits;
this.start = start;
this.end = end;
}
/* Return the next binary digit from the number or -1 if done */
int getNextBinaryDigit()
{
if (digitPos == 0) {
if (start == end)
return -1;
char c = digits.charAt(start++);
if ('0' <= c && c <= '9')
digit = c - '0';
else if ('a' <= c && c <= 'z')
digit = c - 'a' + 10;
else digit = c - 'A' + 10;
digitPos = lgBase;
}
return digit >> --digitPos & 1;
}
}

View File

@@ -0,0 +1,48 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* Thrown if errors are detected while attempting to define a host object
* from a Java class.
*/
public class ClassDefinitionException extends Exception {
public ClassDefinitionException(String detail) {
super(detail);
}
}

View File

@@ -0,0 +1,60 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roger Lawrence
* Andi Vajda
* Kemal Bayram
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
public interface ClassNameHelper {
public String getTargetPackage();
public void setTargetPackage(String targetPackage);
public void setTargetExtends(Class extendsClass);
public void setTargetImplements(Class[] implementsClasses);
public ClassRepository getClassRepository();
public void setClassRepository(ClassRepository repository);
public String getClassName();
public void setClassName(String initialName);
public void reset();
}

View File

@@ -0,0 +1,57 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Andi Vajda
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
// API class
import java.io.*;
/**
* This interface is implemented by classes interested in the bytecode
* generated by the rhino compiler for script objects.
*
* @see Context
* @author Andi Vajda
*/
public interface ClassOutput {
/**
* @param className the name of the class for which bytecode is ready.
* @param isTopLevel if true, represents the top-level script being compiled
* @return a stream into which to write bytecode.
* @since 1.5 Release 2
*/
public OutputStream getOutputStream(String className, boolean isTopLevel)
throws IOException;

View File

@@ -0,0 +1,55 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Kemal Bayram
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
import java.io.*;
/**
* This interface provides a means to store generated class and to
* allow selective class loading.
*
* @see Context
* @author Kemal Bayram
*/
public interface ClassRepository {
/**
* @param className the name of the class.
* @param classBytes a byte array of the generated class.
* @param isTopLevel if true, represents the top-level script being compiled.
* @return true if the class should be loaded, false otherwise.
*/
public boolean storeClass(String className, byte[] classBytes,
boolean isTopLevel) throws IOException;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,53 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* Embeddings that wish to
* @see org.mozilla.javascript.Context#addContextListener
*/
public interface ContextListener {
public void contextCreated(Context cx);
public void contextEntered(Context cx);
public void contextExited(Context cx);
public void contextReleased(Context cx);
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,111 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
import org.mozilla.javascript.debug.*;
public class DebuggableEngineImpl implements DebuggableEngine {
public DebuggableEngineImpl(Context cx) {
this.cx = cx;
}
/**
* Set whether the engine should break when it encounters
* the next line.
* <p>
* The engine will call the attached debugger's handleBreakpointHit
* method on the next line it executes if isLineStep is true.
* May be used from another thread to interrupt execution.
*
* @param isLineStep if true, break next line
*/
public void setBreakNextLine(boolean isLineStep) {
cx.inLineStepMode = isLineStep;
}
/**
* Return the value of the breakNextLine flag.
* @return true if the engine will break on execution of the
* next line.
*/
public boolean getBreakNextLine() {
return cx.inLineStepMode;
}
/**
* Set the associated debugger.
* @param debugger the debugger to be used on callbacks from
* the engine.
*/
public void setDebugger(Debugger debugger) {
cx.debugger = debugger;
}
/**
* Return the current debugger.
* @return the debugger, or null if none is attached.
*/
public Debugger getDebugger() {
return cx.debugger;
}
/**
* Return the number of frames in current execution.
* @return the count of current frames
*/
public int getFrameCount() {
return cx.frameStack == null ? 0 : cx.frameStack.size();
}
/**
* Return a frame from the current execution.
* Frames are numbered starting from 0 for the innermost
* frame.
* @param frameNumber the number of the frame in the range
* [0,frameCount-1]
* @return the relevant DebugFrame, or null if frameNumber is out
* of range or the engine isn't currently saving
* frames
*/
public DebugFrame getFrame(int frameNumber) {
return (DebugFrame) cx.frameStack.elementAt(cx.frameStack.size() - frameNumber - 1);
}
private Context cx;
}

View File

@@ -0,0 +1,63 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
/**
* This is the default error reporter for JavaScript.
*
* @author Norris Boyd
*/
class DefaultErrorReporter implements ErrorReporter {
public void warning(String message, String sourceName, int line,
String lineSource, int lineOffset)
{
// do nothing
}
public void error(String message, String sourceName, int line,
String lineSource, int lineOffset)
{
throw new EvaluatorException(message);
}
public EvaluatorException runtimeError(String message, String sourceName,
int line, String lineSource,
int lineOffset)
{
return new EvaluatorException(message);
}
}

View File

@@ -0,0 +1,250 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* The Original Code is Delegator.java, released Sep 27, 2000.
*
* The Initial Developer of the Original Code is Matthias Radestock.
* <matthias@sorted.org>. Portions created by Matthias Radestock are
* Copyright (C) 2000 Matthias Radestock. All Rights Reserved.
*
* Contributor(s):
* Redfig Ltd (http://www.redfig.com)
* LShift Ltd (http://www.lshift.net)
*
* Alternatively, the contents of this file may be used under the terms
* of the GNU Public License (the "GPL License"), in which case the
* provisions of the GPL License are applicable instead of those
* above. If you wish to allow use of your version of this file only
* under the terms of the GPL License and not to allow others to use
* your version of this file under the MPL, indicate your decision by
* deleting the provisions above and replace them with the notice and
* other provisions required by the GPL License. If you do not delete
* the provisions above, a recipient may use your version of this file
* under either the MPL or the GPL License.
*/
// API class
package org.mozilla.javascript;
/**
* This is a helper class for implementing wrappers around Scriptable
* objects. It implements the Function interface and delegates all
* invocations to a delegee Scriptable object. The normal use of this
* class involves creating a sub-class and overriding one or more of
* the methods.
*
* A useful application is the implementation of interceptors,
* pre/post conditions, debugging.
*
* @see Function
* @see Scriptable
* @author Matthias Radestock
*/
public class Delegator implements Function {
protected Scriptable obj = null;
/**
* Create a Delegator prototype.
*
* This constructor should only be used for creating prototype
* objects of Delegator.
*
* @see org.mozilla.javascript.Delegator#construct
*/
public Delegator() {
}
/**
* Create a new Delegator that forwards requests to a delegee
* Scriptable object.
*
* @param obj the delegee
* @see org.mozilla.javascript.Scriptable
*/
public Delegator(Scriptable obj) {
this.obj = obj;
}
/**
* Retrieve the delegee.
*
* @return the delegee
*/
public Scriptable getDelegee() {
return obj;
}
/**
* Set the delegee.
*
* @param obj the delegee
* @see org.mozilla.javascript.Scriptable
*/
public void setDelegee(Scriptable obj) {
this.obj = obj;
}
/**
* @see org.mozilla.javascript.Scriptable#getClassName
*/
public String getClassName() {
return obj.getClassName();
}
/**
* @see org.mozilla.javascript.Scriptable#get
*/
public Object get(String name, Scriptable start) {
return obj.get(name,start);
}
/**
* @see org.mozilla.javascript.Scriptable#get
*/
public Object get(int index, Scriptable start) {
return obj.get(index,start);
}
/**
* @see org.mozilla.javascript.Scriptable#has
*/
public boolean has(String name, Scriptable start) {
return obj.has(name,start);
}
/**
* @see org.mozilla.javascript.Scriptable#has
*/
public boolean has(int index, Scriptable start) {
return obj.has(index,start);
}
/**
* @see org.mozilla.javascript.Scriptable#put
*/
public void put(String name, Scriptable start, Object value) {
obj.put(name,start,value);
}
/**
* @see org.mozilla.javascript.Scriptable#put
*/
public void put(int index, Scriptable start, Object value) {
obj.put(index,start,value);
}
/**
* @see org.mozilla.javascript.Scriptable#delete
*/
public void delete(String name) {
obj.delete(name);
}
/**
* @see org.mozilla.javascript.Scriptable#delete
*/
public void delete(int index) {
obj.delete(index);
}
/**
* @see org.mozilla.javascript.Scriptable#getPrototype
*/
public Scriptable getPrototype() {
return obj.getPrototype();
}
/**
* @see org.mozilla.javascript.Scriptable#setPrototype
*/
public void setPrototype(Scriptable prototype) {
obj.setPrototype(prototype);
}
/**
* @see org.mozilla.javascript.Scriptable#getParentScope
*/
public Scriptable getParentScope() {
return obj.getParentScope();
}
/**
* @see org.mozilla.javascript.Scriptable#setParentScope
*/
public void setParentScope(Scriptable parent) {
obj.setParentScope(parent);
}
/**
* @see org.mozilla.javascript.Scriptable#getIds
*/
public Object[] getIds() {
return obj.getIds();
}
/**
* Note that this method does not get forwarded to the delegee if
* the <code>hint</code> parameter is null,
* <code>ScriptRuntime.ScriptableClass</code> or
* <code>ScriptRuntime.FunctionClass</code>. Instead the object
* itself is returned.
*
* @param hint the type hint
* @return the default value
*
* @see org.mozilla.javascript.Scriptable#getDefaultValue
*/
public Object getDefaultValue(Class hint) {
return (hint == null ||
hint == ScriptRuntime.ScriptableClass ||
hint == ScriptRuntime.FunctionClass) ?
this : obj.getDefaultValue(hint);
}
/**
* @see org.mozilla.javascript.Scriptable#hasInstance
*/
public boolean hasInstance(Scriptable instance) {
return obj.hasInstance(instance);
}
/**
* @see org.mozilla.javascript.Function#call
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException {
return ((Function)obj).call(cx,scope,thisObj,args);
}
/**
* Note that if the <code>delegee</code> is <code>null</code>,
* this method creates a new instance of the Delegator itself
* rathert than forwarding the call to the
* <code>delegee</code>. This permits the use of Delegator
* prototypes.
*
* @param cx the current Context for this thread
* @param scope an enclosing scope of the caller except
* when the function is called from a closure.
* @param args the array of arguments
* @return the allocated object
* @exception JavaScriptException if an uncaught exception
* occurred while executing the constructor
*
* @see org.mozilla.javascript.Function#construct
*/
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
throws JavaScriptException {
if (obj == null) {
//this little trick allows us to declare prototype objects for
//Delegators
try {
Delegator n = (Delegator)this.getClass().newInstance();
n.setDelegee((Scriptable)args[0]);
return n;
}
catch (Exception e) {
e.printStackTrace();
System.exit(0);
}
return null;
}
else {
return ((Function)obj).construct(cx,scope,args);
}
}
}

View File

@@ -0,0 +1,162 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* The class of exceptions raised by the engine as described in
* ECMA edition 3. See section 15.11.6 in particular.
*/
public class EcmaError extends RuntimeException {
/**
* Create an exception with the specified detail message.
*
* Errors internal to the JavaScript engine will simply throw a
* RuntimeException.
*
* @param nativeError the NativeError object constructed for this error
* @param sourceName the name of the source reponsible for the error
* @param lineNumber the line number of the source
* @param columnNumber the columnNumber of the source (may be zero if
* unknown)
* @param lineSource the source of the line containing the error (may be
* null if unknown)
*/
public EcmaError(NativeError nativeError, String sourceName,
int lineNumber, int columnNumber, String lineSource)
{
super("EcmaError");
errorObject = nativeError;
this.sourceName = sourceName;
this.lineNumber = lineNumber;
this.columnNumber = columnNumber;
this.lineSource = lineSource;
}
/**
* Return a string representation of the error, which currently consists
* of the name of the error together with the message.
*/
public String toString() {
if (sourceName == null && lineNumber <= 0)
return errorObject.toString();
StringBuffer buf = new StringBuffer();
buf.append(errorObject.toString());
buf.append(" (");
if (sourceName != null) {
buf.append(sourceName);
buf.append("; ");
}
if (lineNumber > 0) {
buf.append("line ");
buf.append(lineNumber);
}
buf.append(')');
return buf.toString();
}
/**
* Gets the name of the error.
*
* ECMA edition 3 defines the following
* errors: EvalError, RangeError, ReferenceError,
* SyntaxError, TypeError, and URIError. Additional error names
* may be added in the future.
*
* See ECMA edition 3, 15.11.7.9.
*
* @return the name of the error.
*/
public String getName() {
return errorObject.getName();
}
/**
* Gets the message corresponding to the error.
*
* See ECMA edition 3, 15.11.7.10.
*
* @return an implemenation-defined string describing the error.
*/
public String getMessage() {
return errorObject.getMessage();
}
/**
* Get the name of the source containing the error, or null
* if that information is not available.
*/
public String getSourceName() {
return sourceName;
}
/**
* Returns the line number of the statement causing the error,
* or zero if not available.
*/
public int getLineNumber() {
return lineNumber;
}
/**
* Get the error object corresponding to this exception.
*/
public Scriptable getErrorObject() {
return errorObject;
}
/**
* The column number of the location of the error, or zero if unknown.
*/
public int getColumnNumber() {
return columnNumber;
}
/**
* The source of the line causing the error, or zero if unknown.
*/
public String getLineSource() {
return lineSource;
}
private NativeError errorObject;
private String sourceName;
private int lineNumber;
private int columnNumber;
private String lineSource;
}

View File

@@ -0,0 +1,103 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* This is interface defines a protocol for the reporting of
* errors during JavaScript translation or execution.
*
* @author Norris Boyd
*/
public interface ErrorReporter {
/**
* Report a warning.
*
* The implementing class may choose to ignore the warning
* if it desires.
*
* @param message a String describing the warning
* @param sourceName a String describing the JavaScript source
* where the warning occured; typically a filename or URL
* @param line the line number associated with the warning
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
*/
void warning(String message, String sourceName, int line,
String lineSource, int lineOffset);
/**
* Report an error.
*
* The implementing class is free to throw an exception if
* it desires.
*
* If execution has not yet begun, the JavaScript engine is
* free to find additional errors rather than terminating
* the translation. It will not execute a script that had
* errors, however.
*
* @param message a String describing the error
* @param sourceName a String describing the JavaScript source
* where the error occured; typically a filename or URL
* @param line the line number associated with the error
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
*/
void error(String message, String sourceName, int line,
String lineSource, int lineOffset);
/**
* Creates an EvaluatorException that may be thrown.
*
* runtimeErrors, unlike errors, will always terminate the
* current script.
*
* @param message a String describing the error
* @param sourceName a String describing the JavaScript source
* where the error occured; typically a filename or URL
* @param line the line number associated with the error
* @param lineSource the text of the line (may be null)
* @param lineOffset the offset into lineSource where problem was detected
* @return an EvaluatorException that will be thrown.
*/
EvaluatorException runtimeError(String message, String sourceName,
int line, String lineSource,
int lineOffset);
}

View File

@@ -0,0 +1,56 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
/**
* The class of exceptions thrown by the JavaScript engine.
*/
public class EvaluatorException extends RuntimeException {
/**
* Create an exception with the specified detail message.
*
* Errors internal to the JavaScript engine will simply throw a
* RuntimeException.
*
* @param detail a message with detail about the exception
*/
public EvaluatorException(String detail) {
super(detail);
}
}

View File

@@ -0,0 +1,86 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
/**
* This is interface that all functions in JavaScript must implement.
* The interface provides for calling functions and constructors.
*
* @see org.mozilla.javascript.Scriptable
* @author Norris Boyd
*/
public interface Function extends Scriptable {
/**
* Call the function.
*
* Note that the array of arguments is not guaranteed to have
* length greater than 0.
*
* @param cx the current Context for this thread
* @param scope the scope to execute the function relative to. This is
* set to the value returned by getParentScope() except
* when the function is called from a closure.
* @param thisObj the JavaScript <code>this</code> object
* @param args the array of arguments
* @return the result of the call
* @exception JavaScriptException if an uncaught exception
* occurred while executing the function
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException;
/**
* Call the function as a constructor.
*
* This method is invoked by the runtime in order to satisfy a use
* of the JavaScript <code>new</code> operator. This method is
* expected to create a new object and return it.
*
* @param cx the current Context for this thread
* @param scope an enclosing scope of the caller except
* when the function is called from a closure.
* @param args the array of arguments
* @return the allocated object
* @exception JavaScriptException if an uncaught exception
* occurred while executing the constructor
*/
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
throws JavaScriptException;
}

View File

@@ -0,0 +1,103 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Roger Lawrence
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
import java.util.*;
public class FunctionNode extends Node {
public FunctionNode(String name, Node left, Node right) {
super(TokenStream.FUNCTION, left, right, name);
itsVariableTable = new VariableTable();
}
public String getFunctionName() {
return getString();
}
public VariableTable getVariableTable() {
return itsVariableTable;
}
public boolean requiresActivation() {
return itsNeedsActivation;
}
public boolean setRequiresActivation(boolean b) {
return itsNeedsActivation = b;
}
public boolean getCheckThis() {
return itsCheckThis;
}
public void setCheckThis(boolean b) {
itsCheckThis = b;
}
/**
* There are three types of functions that can be defined. The first
* is a function statement. This is a function appearing as a top-level
* statement (i.e., not nested inside some other statement) in either a
* script or a function.
*
* The second is a function expression, which is a function appearing in
* an expression except for the third type, which is...
*
* The third type is a function expression where the expression is the
* top-level expression in an expression statement.
*
* The three types of functions have different treatment and must be
* distinquished.
*/
public static final byte FUNCTION_STATEMENT = 1;
public static final byte FUNCTION_EXPRESSION = 2;
public static final byte FUNCTION_EXPRESSION_STATEMENT = 3;
public byte getFunctionType() {
return itsFunctionType;
}
public void setFunctionType(byte functionType) {
itsFunctionType = functionType;
}
protected VariableTable itsVariableTable;
protected boolean itsNeedsActivation;
protected boolean itsCheckThis;
protected byte itsFunctionType;
}

View File

@@ -0,0 +1,612 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Norris Boyd
* Igor Bukanov
* David C. Navas
* Ted Neward
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
import java.util.Vector;
import java.lang.reflect.Constructor;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.InvocationTargetException;
public class FunctionObject extends NativeFunction {
static final long serialVersionUID = -4074285335521944312L;
/**
* Create a JavaScript function object from a Java method.
*
* <p>The <code>member</code> argument must be either a java.lang.reflect.Method
* or a java.lang.reflect.Constructor and must match one of two forms.<p>
*
* The first form is a member with zero or more parameters
* of the following types: Object, String, boolean, Scriptable,
* byte, short, int, float, or double. The Long type is not supported
* because the double representation of a long (which is the
* EMCA-mandated storage type for Numbers) may lose precision.
* If the member is a Method, the return value must be void or one
* of the types allowed for parameters.<p>
*
* The runtime will perform appropriate conversions based
* upon the type of the parameter. A parameter type of
* Object specifies that no conversions are to be done. A parameter
* of type String will use Context.toString to convert arguments.
* Similarly, parameters of type double, boolean, and Scriptable
* will cause Context.toNumber, Context.toBoolean, and
* Context.toObject, respectively, to be called.<p>
*
* If the method is not static, the Java 'this' value will
* correspond to the JavaScript 'this' value. Any attempt
* to call the function with a 'this' value that is not
* of the right Java type will result in an error.<p>
*
* The second form is the variable arguments (or "varargs")
* form. If the FunctionObject will be used as a constructor,
* the member must have the following parameters
* <pre>
* (Context cx, Object[] args, Function ctorObj,
* boolean inNewExpr)</pre>
* and if it is a Method, be static and return an Object result.<p>
*
* Otherwise, if the FunctionObject will <i>not</i> be used to define a
* constructor, the member must be a static Method with parameters
* (Context cx, Scriptable thisObj, Object[] args,
* Function funObj) </pre>
* <pre>
* and an Object result.<p>
*
* When the function varargs form is called as part of a function call,
* the <code>args</code> parameter contains the
* arguments, with <code>thisObj</code>
* set to the JavaScript 'this' value. <code>funObj</code>
* is the function object for the invoked function.<p>
*
* When the constructor varargs form is called or invoked while evaluating
* a <code>new</code> expression, <code>args</code> contains the
* arguments, <code>ctorObj</code> refers to this FunctionObject, and
* <code>inNewExpr</code> is true if and only if a <code>new</code>
* expression caused the call. This supports defining a function that
* has different behavior when called as a constructor than when
* invoked as a normal function call. (For example, the Boolean
* constructor, when called as a function,
* will convert to boolean rather than creating a new object.)<p>
*
* @param name the name of the function
* @param methodOrConstructor a java.lang.reflect.Method or a java.lang.reflect.Constructor
* that defines the object
* @param scope enclosing scope of function
* @see org.mozilla.javascript.Scriptable
*/
public FunctionObject(String name, Member methodOrConstructor,
Scriptable scope)
{
String methodName;
if (methodOrConstructor instanceof Constructor) {
ctor = (Constructor) methodOrConstructor;
isStatic = true; // well, doesn't take a 'this'
types = ctor.getParameterTypes();
methodName = ctor.getName();
} else {
method = (Method) methodOrConstructor;
isStatic = Modifier.isStatic(method.getModifiers());
types = method.getParameterTypes();
methodName = method.getName();
}
this.functionName = name;
int length;
if (types.length == 4 && (types[1].isArray() || types[2].isArray())) {
// Either variable args or an error.
if (types[1].isArray()) {
if (!isStatic ||
types[0] != Context.class ||
types[1].getComponentType() != ScriptRuntime.ObjectClass ||
types[2] != ScriptRuntime.FunctionClass ||
types[3] != Boolean.TYPE)
{
throw Context.reportRuntimeError1(
"msg.varargs.ctor", methodName);
}
parmsLength = VARARGS_CTOR;
} else {
if (!isStatic ||
types[0] != Context.class ||
types[1] != ScriptRuntime.ScriptableClass ||
types[2].getComponentType() != ScriptRuntime.ObjectClass ||
types[3] != ScriptRuntime.FunctionClass)
{
throw Context.reportRuntimeError1(
"msg.varargs.fun", methodName);
}
parmsLength = VARARGS_METHOD;
}
// XXX check return type
length = 1;
} else {
parmsLength = (short) types.length;
for (int i=0; i < parmsLength; i++) {
Class type = types[i];
if (type != ScriptRuntime.ObjectClass &&
type != ScriptRuntime.StringClass &&
type != ScriptRuntime.BooleanClass &&
!ScriptRuntime.NumberClass.isAssignableFrom(type) &&
!Scriptable.class.isAssignableFrom(type) &&
type != Boolean.TYPE &&
type != Byte.TYPE &&
type != Short.TYPE &&
type != Integer.TYPE &&
type != Float.TYPE &&
type != Double.TYPE)
{
// Note that long is not supported.
throw Context.reportRuntimeError1("msg.bad.parms",
methodName);
}
}
length = parmsLength;
}
// Initialize length property
lengthPropertyValue = (short) length;
hasVoidReturn = method != null && method.getReturnType() == Void.TYPE;
this.argCount = (short) length;
setParentScope(scope);
setPrototype(getFunctionPrototype(scope));
Context cx = Context.getCurrentContext();
useDynamicScope = cx != null &&
cx.hasCompileFunctionsWithDynamicScope();
}
/**
* Return the value defined by the method used to construct the object
* (number of parameters of the method, or 1 if the method is a "varargs"
* form), unless setLength has been called with a new value.
* Overrides getLength in BaseFunction.
*
* @see org.mozilla.javascript.FunctionObject#setLength
* @see org.mozilla.javascript.BaseFunction#getLength
*/
public int getLength() {
return lengthPropertyValue;
}
/**
* Set the value of the "length" property.
*
* <p>Changing the value of the "length" property of a FunctionObject only
* affects the value retrieved from get() and does not affect the way
* the method itself is called. <p>
*
* The "length" property will be defined by default as the number
* of parameters of the method used to construct the FunctionObject,
* unless the method is a "varargs" form, in which case the "length"
* property will be defined to 1.
*
* @param length the new length
*/
public void setLength(short length) {
lengthPropertyValue = length;
}
// TODO: Make not public
/**
* Finds methods of a given name in a given class.
*
* <p>Searches <code>clazz</code> for methods with name
* <code>name</code>. Maintains a cache so that multiple
* lookups on the same class are cheap.
*
* @param clazz the class to search
* @param name the name of the methods to find
* @return an array of the found methods, or null if no methods
* by that name were found.
* @see java.lang.Class#getMethods
*/
public static Method[] findMethods(Class clazz, String name) {
return findMethods(getMethodList(clazz), name);
}
static Method[] findMethods(Method[] methods, String name) {
// Usually we're just looking for a single method, so optimize
// for that case.
Vector v = null;
Method first = null;
for (int i=0; i < methods.length; i++) {
if (methods[i] == null)
continue;
if (methods[i].getName().equals(name)) {
if (first == null) {
first = methods[i];
} else {
if (v == null) {
v = new Vector(5);
v.addElement(first);
}
v.addElement(methods[i]);
}
}
}
if (v == null) {
if (first == null)
return null;
Method[] single = { first };
return single;
}
Method[] result = new Method[v.size()];
v.copyInto(result);
return result;
}
static Method[] getMethodList(Class clazz) {
Method[] cached = methodsCache; // get once to avoid synchronization
if (cached != null && cached[0].getDeclaringClass() == clazz)
return cached;
Method[] methods = null;
try {
// getDeclaredMethods may be rejected by the security manager
// but getMethods is more expensive
if (!sawSecurityException)
methods = clazz.getDeclaredMethods();
} catch (SecurityException e) {
// If we get an exception once, give up on getDeclaredMethods
sawSecurityException = true;
}
if (methods == null) {
methods = clazz.getMethods();
}
int count = 0;
for (int i=0; i < methods.length; i++) {
if (sawSecurityException
? methods[i].getDeclaringClass() != clazz
: !Modifier.isPublic(methods[i].getModifiers()))
{
methods[i] = null;
} else {
count++;
}
}
Method[] result = new Method[count];
int j=0;
for (int i=0; i < methods.length; i++) {
if (methods[i] != null)
result[j++] = methods[i];
}
if (result.length > 0 && Context.isCachingEnabled)
methodsCache = result;
return result;
}
/**
* Define this function as a JavaScript constructor.
* <p>
* Sets up the "prototype" and "constructor" properties. Also
* calls setParent and setPrototype with appropriate values.
* Then adds the function object as a property of the given scope, using
* <code>prototype.getClassName()</code>
* as the name of the property.
*
* @param scope the scope in which to define the constructor (typically
* the global object)
* @param prototype the prototype object
* @see org.mozilla.javascript.Scriptable#setParentScope
* @see org.mozilla.javascript.Scriptable#setPrototype
* @see org.mozilla.javascript.Scriptable#getClassName
*/
public void addAsConstructor(Scriptable scope, Scriptable prototype) {
setParentScope(scope);
setPrototype(getFunctionPrototype(scope));
setImmunePrototypeProperty(prototype);
prototype.setParentScope(this);
final int attr = ScriptableObject.DONTENUM |
ScriptableObject.PERMANENT |
ScriptableObject.READONLY;
defineProperty(prototype, "constructor", this, attr);
String name = prototype.getClassName();
defineProperty(scope, name, this, ScriptableObject.DONTENUM);
setParentScope(scope);
}
static public Object convertArg(Scriptable scope,
Object arg, Class desired)
{
if (desired == ScriptRuntime.StringClass)
return ScriptRuntime.toString(arg);
if (desired == ScriptRuntime.IntegerClass ||
desired == Integer.TYPE)
{
return new Integer(ScriptRuntime.toInt32(arg));
}
if (desired == ScriptRuntime.BooleanClass ||
desired == Boolean.TYPE)
{
return ScriptRuntime.toBoolean(arg) ? Boolean.TRUE
: Boolean.FALSE;
}
if (desired == ScriptRuntime.DoubleClass ||
desired == Double.TYPE)
{
return new Double(ScriptRuntime.toNumber(arg));
}
if (desired == ScriptRuntime.ScriptableClass)
return ScriptRuntime.toObject(scope, arg);
if (desired == ScriptRuntime.ObjectClass)
return arg;
// Note that the long type is not supported; see the javadoc for
// the constructor for this class
throw Context.reportRuntimeError1
("msg.cant.convert", desired.getName());
}
/**
* Performs conversions on argument types if needed and
* invokes the underlying Java method or constructor.
* <p>
* Implements Function.call.
*
* @see org.mozilla.javascript.Function#call
* @exception JavaScriptException if the underlying Java method or
* constructor threw an exception
*/
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException
{
if (parmsLength < 0) {
return callVarargs(cx, thisObj, args, false);
}
if (!isStatic) {
// OPT: cache "clazz"?
Class clazz = method != null ? method.getDeclaringClass()
: ctor.getDeclaringClass();
while (!clazz.isInstance(thisObj)) {
thisObj = thisObj.getPrototype();
if (thisObj == null || !useDynamicScope) {
// Couldn't find an object to call this on.
throw NativeGlobal.typeError1
("msg.incompat.call", functionName, scope);
}
}
}
Object[] invokeArgs;
int i;
if (parmsLength == args.length) {
invokeArgs = args;
// avoid copy loop if no conversions needed
i = (types == null) ? parmsLength : 0;
} else {
invokeArgs = new Object[parmsLength];
i = 0;
}
for (; i < parmsLength; i++) {
Object arg = (i < args.length)
? args[i]
: Undefined.instance;
if (types != null) {
arg = convertArg(this, arg, types[i]);
}
invokeArgs[i] = arg;
}
try {
Object result = method == null ? ctor.newInstance(invokeArgs)
: doInvoke(thisObj, invokeArgs);
return hasVoidReturn ? Undefined.instance : result;
}
catch (InvocationTargetException e) {
throw JavaScriptException.wrapException(scope, e);
}
catch (IllegalAccessException e) {
throw WrappedException.wrapException(e);
}
catch (InstantiationException e) {
throw WrappedException.wrapException(e);
}
}
/**
* Performs conversions on argument types if needed and
* invokes the underlying Java method or constructor
* to create a new Scriptable object.
* <p>
* Implements Function.construct.
*
* @param cx the current Context for this thread
* @param scope the scope to execute the function relative to. This
* set to the value returned by getParentScope() except
* when the function is called from a closure.
* @param args arguments to the constructor
* @see org.mozilla.javascript.Function#construct
* @exception JavaScriptException if the underlying Java method or constructor
* threw an exception
*/
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
throws JavaScriptException
{
if (method == null || parmsLength == VARARGS_CTOR) {
Scriptable result;
if (method != null) {
result = (Scriptable) callVarargs(cx, null, args, true);
} else {
result = (Scriptable) call(cx, scope, null, args);
}
if (result.getPrototype() == null)
result.setPrototype(getClassPrototype());
if (result.getParentScope() == null) {
Scriptable parent = getParentScope();
if (result != parent)
result.setParentScope(parent);
}
return result;
} else if (method != null && !isStatic) {
Scriptable result;
try {
result = (Scriptable) method.getDeclaringClass().newInstance();
} catch (IllegalAccessException e) {
throw WrappedException.wrapException(e);
} catch (InstantiationException e) {
throw WrappedException.wrapException(e);
}
result.setPrototype(getClassPrototype());
result.setParentScope(getParentScope());
Object val = call(cx, scope, result, args);
if (val != null && val != Undefined.instance &&
val instanceof Scriptable)
{
return (Scriptable) val;
}
return result;
}
return super.construct(cx, scope, args);
}
private final Object doInvoke(Object thisObj, Object[] args)
throws IllegalAccessException, InvocationTargetException
{
Invoker master = invokerMaster;
if (master != null) {
if (invoker == null) {
invoker = master.createInvoker(method, types);
}
try {
return invoker.invoke(thisObj, args);
} catch (Exception e) {
throw new InvocationTargetException(e);
}
}
return method.invoke(thisObj, args);
}
private Object callVarargs(Context cx, Scriptable thisObj, Object[] args,
boolean inNewExpr)
throws JavaScriptException
{
try {
if (parmsLength == VARARGS_METHOD) {
Object[] invokeArgs = { cx, thisObj, args, this };
Object result = doInvoke(null, invokeArgs);
return hasVoidReturn ? Undefined.instance : result;
} else {
Boolean b = inNewExpr ? Boolean.TRUE : Boolean.FALSE;
Object[] invokeArgs = { cx, args, this, b };
return (method == null)
? ctor.newInstance(invokeArgs)
: doInvoke(null, invokeArgs);
}
}
catch (InvocationTargetException e) {
Throwable target = e.getTargetException();
if (target instanceof EvaluatorException)
throw (EvaluatorException) target;
if (target instanceof EcmaError)
throw (EcmaError) target;
Scriptable scope = thisObj == null ? this : thisObj;
throw JavaScriptException.wrapException(scope, target);
}
catch (IllegalAccessException e) {
throw WrappedException.wrapException(e);
}
catch (InstantiationException e) {
throw WrappedException.wrapException(e);
}
}
boolean isVarArgsMethod() {
return parmsLength == VARARGS_METHOD;
}
boolean isVarArgsConstructor() {
return parmsLength == VARARGS_CTOR;
}
static void setCachingEnabled(boolean enabled) {
if (!enabled) {
methodsCache = null;
invokerMaster = null;
} else if (invokerMaster == null) {
invokerMaster = newInvokerMaster();
}
}
/** Get default master implementation or null if not available */
private static Invoker newInvokerMaster() {
try {
Class cl = ScriptRuntime.loadClassName(INVOKER_MASTER_CLASS);
return (Invoker)cl.newInstance();
}
catch (ClassNotFoundException ex) {}
catch (IllegalAccessException ex) {}
catch (InstantiationException ex) {}
catch (SecurityException ex) {}
return null;
}
private static final String
INVOKER_MASTER_CLASS = "org.mozilla.javascript.optimizer.InvokerImpl";
static Invoker invokerMaster = newInvokerMaster();
private static final short VARARGS_METHOD = -1;
private static final short VARARGS_CTOR = -2;
private static boolean sawSecurityException;
static Method[] methodsCache;
Method method;
Constructor ctor;
private Class[] types;
Invoker invoker;
private short parmsLength;
private short lengthPropertyValue;
private boolean hasVoidReturn;
private boolean isStatic;
private boolean useDynamicScope;
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,164 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
// API class
package org.mozilla.javascript;
public class IdFunction extends BaseFunction
{
public static final int FUNCTION_ONLY = 0;
public static final int CONSTRUCTOR_ONLY = 1;
public static final int FUNCTION_AND_CONSTRUCTOR = 2;
public IdFunction(IdFunctionMaster master, String name, int id) {
this.functionName = name;
this.master = master;
this.methodId = id;
}
public final int functionType() {
return functionType;
}
public void setFunctionType(int type) {
functionType = type;
}
public Scriptable getPrototype() {
// Lazy initialization of prototype: for native functions this
// may not be called at all
Scriptable proto = super.getPrototype();
if (proto == null) {
proto = getFunctionPrototype(getParentScope());
setPrototype(proto);
}
return proto;
}
public Object call(Context cx, Scriptable scope, Scriptable thisObj,
Object[] args)
throws JavaScriptException
{
if (functionType != CONSTRUCTOR_ONLY) {
return master.execMethod(methodId, this, cx, scope, thisObj, args);
}
else {
return Undefined.instance;
}
}
public Scriptable construct(Context cx, Scriptable scope, Object[] args)
throws JavaScriptException
{
if (functionType != FUNCTION_ONLY) {
// It is program error not to return Scriptable from constructor
Scriptable result = (Scriptable)master.execMethod(methodId, this,
cx, scope,
null, args);
postConstruction(result);
return result;
}
else {
return Undefined.instance;
}
}
public String decompile(Context cx, int indent, boolean justbody) {
StringBuffer sb = new StringBuffer();
if (!justbody) {
sb.append("function ");
sb.append(getFunctionName());
sb.append("() { ");
}
sb.append("[native code for ");
if (master instanceof Scriptable) {
Scriptable smaster = (Scriptable)master;
sb.append(smaster.getClassName());
sb.append('.');
}
sb.append(getFunctionName());
sb.append(", arity=");
sb.append(getArity());
sb.append(justbody ? "]\n" : "] }\n");
return sb.toString();
}
public int getArity() {
int arity = master.methodArity(methodId);
if (arity < 0) {
throw onBadMethodId(master, methodId);
}
return arity;
}
public int getLength() { return getArity(); }
/** Prepare to be used as constructor .
** @param scope constructor scope
** @param prototype DontEnum, DontDelete, ReadOnly prototype property
** of the constructor */
public void initAsConstructor(Scriptable scope, Scriptable prototype) {
setFunctionType(FUNCTION_AND_CONSTRUCTOR);
setParentScope(scope);
setImmunePrototypeProperty(prototype);
}
static RuntimeException onBadMethodId(IdFunctionMaster master, int id) {
// It is program error to call id-like methods for unknown or
// non-function id
return new RuntimeException("BAD FUNCTION ID="+id+" MASTER="+master);
}
// Copied from NativeFunction.construct
private void postConstruction(Scriptable newObj) {
if (newObj.getPrototype() == null) {
newObj.setPrototype(getClassPrototype());
}
if (newObj.getParentScope() == null) {
Scriptable parent = getParentScope();
if (newObj != parent) {
newObj.setParentScope(parent);
}
}
}
protected IdFunctionMaster master;
protected int methodId;
protected int functionType = FUNCTION_ONLY;
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is Rhino code, released
* May 6, 1999.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1997-1999 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Igor Bukanov
*
* Alternatively, the contents of this file may be used under the
* terms of the GNU Public License (the "GPL"), in which case the
* provisions of the GPL are applicable instead of those above.
* If you wish to allow use of your version of this file only
* under the terms of the GPL and not to allow others to use your
* version of this file under the NPL, indicate your decision by
* deleting the provisions above and replace them with the notice
* and other provisions required by the GPL. If you do not delete
* the provisions above, a recipient may use your version of this
* file under either the NPL or the GPL.
*/
package org.mozilla.javascript;
/** Master for id-based functions that knows their properties and how to
** execute them
*/
public interface IdFunctionMaster {
/** 'thisObj' will be null if invoked as constructor, in which case
** instance of Scriptable should be returned */
public Object execMethod(int methodId, IdFunction function,
Context cx, Scriptable scope,
Scriptable thisObj, Object[] args)
throws JavaScriptException;
/** Get arity or defined argument count for method with given id.
** Should return -1 if methodId is not known or can not be used
** with execMethod call */
public int methodArity(int methodId);
}

Some files were not shown because too many files have changed in this diff Show More