Compare commits

..

1834 Commits

Author SHA1 Message Date
nboyd%atg.com
b4ffa41ca0 Implement breakpointing a given line.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@76282 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 17:08:33 +00:00
nboyd%atg.com
71eac19bd9 Add more commands, clean up.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@76275 18797224-902f-48f8-a5cc-f745e15eee43
2000-08-14 13:46:30 +00:00
nboyd%atg.com
c91ef3e25d A little more work.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@75252 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-31 21:08:22 +00:00
nboyd%atg.com
d912f6c544 get branch working
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74925 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 15:44:57 +00:00
nboyd%atg.com
f066ed34eb Add debugger files to branch
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74924 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 15:42:41 +00:00
nboyd%atg.com
75c0a6d536 New debugging files.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74923 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 15:41:20 +00:00
nboyd%atg.com
6374a47cb5 Add to branch
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74922 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 15:32:58 +00:00
(no author)
87a77bdb54 This commit was manufactured by cvs2svn to create branch 'EXP_DEBUGGER'.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74920 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 14:54:16 +00:00
nboyd%atg.com
01bdc9a81a Experimental changes for debugger.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74919 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-27 14:54:15 +00:00
(no author)
cf3aa1ee61 This commit was manufactured by cvs2svn to create branch 'EXP_DEBUGGER'.
git-svn-id: svn://10.0.0.236/branches/EXP_DEBUGGER@74592 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 17:13:10 +00:00
nboyd%atg.com
f3d136281d Fix 45928 NativeDate uses getDeclaredConstructor instead of getConstructor
git-svn-id: svn://10.0.0.236/trunk@74591 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 17:13:09 +00:00
dave%intrec.com
8fd36b7245 Fix for bug 46002 (reports.cgi allows users to view restricted products).
Patch submitted by jmrobins@tgix.com (Joe Robins)


git-svn-id: svn://10.0.0.236/trunk@74590 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 17:00:40 +00:00
tao%netscape.com
dc36edc43c add langenus to separate en-US files from browser.xpi. not part of build
yet.


git-svn-id: svn://10.0.0.236/trunk@74589 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 08:11:32 +00:00
dprice%netscape.com
f13bc9ce48 adding manifest file for chrome packaging
NOT IN THE BUILD


git-svn-id: svn://10.0.0.236/trunk@74588 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 06:46:53 +00:00
dprice%netscape.com
545922dd6d fixing typos
git-svn-id: svn://10.0.0.236/trunk@74587 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 06:39:21 +00:00
dprice%netscape.com
3d2cd88eaf adding manifest file for jar repackaging of the chrome
NOT IN THE BUILD


git-svn-id: svn://10.0.0.236/trunk@74586 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 06:38:38 +00:00
mcafee%netscape.com
303f666fe2 Adding norules=0 option.
git-svn-id: svn://10.0.0.236/trunk@74585 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 06:12:27 +00:00
mcafee%netscape.com
28d12a138f Adding named anchors.
git-svn-id: svn://10.0.0.236/trunk@74584 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 06:05:37 +00:00
beard%netscape.com
c60b287418 added jsmath.cpp/h
git-svn-id: svn://10.0.0.236/trunk@74583 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 05:07:29 +00:00
beard%netscape.com
ca49549765 XML project file.
git-svn-id: svn://10.0.0.236/trunk@74582 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 05:07:05 +00:00
beard%netscape.com
f30949654f update dependencies to include jsmath.o
git-svn-id: svn://10.0.0.236/trunk@74581 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 05:01:10 +00:00
beard%netscape.com
1481de28ca add jsmath.cpp to the build.
git-svn-id: svn://10.0.0.236/trunk@74580 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 05:00:43 +00:00
beard%netscape.com
13d5767bc1 scope of loop variables fix
git-svn-id: svn://10.0.0.236/trunk@74579 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 05:00:10 +00:00
mcafee%netscape.com
f2e743c74d Changing default of nocrap=1 to legend=0. This both renames nocrap and flips the default behaviour. Most of us don't need to see this stuff by default.
git-svn-id: svn://10.0.0.236/trunk@74578 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 04:55:45 +00:00
neeti%netscape.com
654207280e Fix for bug 38244 - modified files cached incorrectly,r=ruslan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74577 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 04:33:26 +00:00
mscott%netscape.com
e0ab81042f Bug #45689 --> someone left mimetypes.xpt (a necko library) out of the packages file. This caused the helper app
dialog to crash in release builds because it's the only JS code that tries to use interfaces in this .xpt file.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74576 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 02:53:01 +00:00
mscott%netscape.com
ae43980cd5 Bug #45689 --> someone left mimetypes.xpt (a necko library) out of the packages file. This caused the helper app
dialog to crash in release builds because it's the only JS code that tries to use interfaces in this .xpt file.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74575 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 02:52:32 +00:00
bryner%uiuc.edu
0b33e0b54b Fix for dogfood bug 45986. r=akkana.
git-svn-id: svn://10.0.0.236/trunk@74574 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 02:10:05 +00:00
rhp%netscape.com
b4d961042c Fix to prevent too much information being displayed to hackers - Bug 1566 - r: ducarroz
git-svn-id: svn://10.0.0.236/trunk@74573 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 01:19:23 +00:00
rogerl%netscape.com
fdde4baec8 Implementing Object.prototype object and global object for ECMA 3
Adding Math class support.


git-svn-id: svn://10.0.0.236/trunk@74572 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 01:16:49 +00:00
ddrinan%netscape.com
5aef7267a3 Added Netscape disclamer on the security advisor page
git-svn-id: svn://10.0.0.236/trunk@74571 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 01:15:55 +00:00
jband%netscape.com
4ac0a9c150 drastically reduce unnecessary malloc calls from js_Atomize. r=brendan@mozilla.org. a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74570 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 00:57:19 +00:00
dougt%netscape.com
1ffb08d2f2 more debug information. r=jband.
git-svn-id: svn://10.0.0.236/trunk@74569 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 00:53:07 +00:00
ben%netscape.com
d0ffb902c9 b44281, r=don, a=don
git-svn-id: svn://10.0.0.236/trunk@74568 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 00:38:04 +00:00
edburns%acm.org
beab87ba88 bug=23157
ra=av
This fix makes it so the plugins directory is correctly located
in the embedding case.


git-svn-id: svn://10.0.0.236/trunk@74567 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 00:27:36 +00:00
ruslan%netscape.com
aefd29455d Applying Justin's patch to fix 40203 (proxy ssl connect), a=gagan,r=myself
git-svn-id: svn://10.0.0.236/trunk@74566 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-21 00:03:39 +00:00
tao%netscape.com
1b0727f3d7 41054: Bundle 2-3 langpacks w/ Seamonkey.r=ssu.
git-svn-id: svn://10.0.0.236/trunk@74565 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 23:48:48 +00:00
mcafee%netscape.com
e5281c3074 Breaking mod.pl into three parts, sheriff.pl, status.pl, rules.pl. Cleaning up admin HTML. Some help from timeless getting this change started.
git-svn-id: svn://10.0.0.236/trunk@74564 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 23:33:11 +00:00
ftang%netscape.com
f75ec51bff fix 45876. patch proposed by brade r=ftang. Thanks brade for her help
git-svn-id: svn://10.0.0.236/trunk@74563 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 23:22:57 +00:00
tao%netscape.com
f7309572c6 41054: Bundle 2-3 langpacks with Seamonkey. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@74562 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 23:21:08 +00:00
edburns%acm.org
9b331dead2 bug=43280
a=av
r=av

Add a "don't show this dialog again" feature to the
"No Default Plugin Dialog".  In addition, don't display the dialog
more than once per mime-type per session.


git-svn-id: svn://10.0.0.236/trunk@74561 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 22:53:32 +00:00
dprice%netscape.com
54c8d45427 bug fixing
git-svn-id: svn://10.0.0.236/trunk@74560 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 22:28:01 +00:00
andreww%netscape.com
1179f18268 Needed for classic/modern skin polish bug #43658 r=prass
git-svn-id: svn://10.0.0.236/trunk@74559 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 22:01:28 +00:00
javi%netscape.com
ad5b61293e Allow signatures to be created even if there is no encryption cert to
be associated with the signature.


git-svn-id: svn://10.0.0.236/trunk@74558 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:57:31 +00:00
javi%netscape.com
27ddc1d974 Allow signatures to be created even if the user doesn't have an
encryption cert to go along with it.


git-svn-id: svn://10.0.0.236/trunk@74557 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:56:34 +00:00
roeber%netscape.com
2840cff26a Added tests of token object manipulation.
I actually did this two months ago, but forgot to
check it in before going on sabbatical.


git-svn-id: svn://10.0.0.236/trunk@74556 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:48:26 +00:00
pinkerton%netscape.com
305a338316 little patch for 45307, overlays leaving "b"'s as submenu titles. try to make them disabled if we do get them. r=saari.
git-svn-id: svn://10.0.0.236/trunk@74555 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:47:36 +00:00
tao%netscape.com
d0fb0891cc 41054 : Bundle 2-3 language packs with Seamonkey. Change en-GB->en-DE in
build and packaging process. r=ssu & sfraser.


git-svn-id: svn://10.0.0.236/trunk@74554 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:40:42 +00:00
ruslan%netscape.com
5dca0e9d36 FInally fix 42283; a=gagan,r=gordon
git-svn-id: svn://10.0.0.236/trunk@74553 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:25:19 +00:00
ruslan%netscape.com
d0867a8d77 WIP on 42283 - make nsNetModules to be thread-safe; r/a=gagan
git-svn-id: svn://10.0.0.236/trunk@74552 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:24:38 +00:00
rods%netscape.com
41db943a7f moved form registration code to Reflow instead of GetPrefSize, it wasn't being called correctly when wi/h was being set via style
b=45846 r=kin


git-svn-id: svn://10.0.0.236/trunk@74551 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:17:03 +00:00
ftang%netscape.com
5e50a75292 take out debuging code
git-svn-id: svn://10.0.0.236/trunk@74550 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:10:39 +00:00
ftang%netscape.com
f996731c51 more fix for 39790 which we forget. change intl.charset.default to navigator.properties
r=nhotta/cata


git-svn-id: svn://10.0.0.236/trunk@74549 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 21:09:11 +00:00
waterson%netscape.com
feac6527d6 Fix Mac bustage. I though 'L' was enabled on Win32 for NS_LITERAL_STRING(), too. Guess I was wrong.
git-svn-id: svn://10.0.0.236/trunk@74548 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 20:15:08 +00:00
leaf%mozilla.org
c9e947532d checking adding en-DE to l10n module -leaf
git-svn-id: svn://10.0.0.236/trunk@74547 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 20:10:07 +00:00
waterson%netscape.com
ea616dd6aa Bug 40817. Modernize string routines; use UTF-8 conversion instead of ASCII conversion on URLs. r=rjc
git-svn-id: svn://10.0.0.236/trunk@74546 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 19:49:47 +00:00
bryner%uiuc.edu
202d788d0f Fix for 37477. r=pavlov,av. a=av.
git-svn-id: svn://10.0.0.236/trunk@74545 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 19:27:20 +00:00
pinkerton%netscape.com
16ae2c7416 don't use webshell.mcp, use docshell.mcp. (bug #45723)
git-svn-id: svn://10.0.0.236/trunk@74544 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 19:11:53 +00:00
pinkerton%netscape.com
bcb3a5800f don't use webshell.mcp, use docshell.mcp.
git-svn-id: svn://10.0.0.236/trunk@74543 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 19:11:04 +00:00
edburns%acm.org
8c18443bc0 bug=16677
a=av
r=stanley.ho

This fix causes nsPluginHostImpl::FindProxyForURL to honor
the "no proxies for" list.


git-svn-id: svn://10.0.0.236/trunk@74542 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 19:09:50 +00:00
mkaply%us.ibm.com
1ce55e5a20 #45973
r=dougt, a=brendan
OS/2 specific changes for nsAppFileLocationProvider.cpp


git-svn-id: svn://10.0.0.236/trunk@74541 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 18:55:28 +00:00
tao%netscape.com
064a0c0cdc Update en-DE pack; not part of the build yet (not pulled).
git-svn-id: svn://10.0.0.236/trunk@74540 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 18:15:38 +00:00
mcgreer%netscape.com
28d8b69dd8 some compilers don't like the void* arithmetic
git-svn-id: svn://10.0.0.236/trunk@74539 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 16:58:32 +00:00
mkaply%us.ibm.com
c893a93e4e #45690
r=mkaply, a=brendan
Sync up nsLocalFileOS2.cpp with Windows changes


git-svn-id: svn://10.0.0.236/trunk@74538 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 14:54:24 +00:00
rods%netscape.com
94c34e2183 check in for andreas, it now checks to make sure that the image or lowimage is not
null before getting the width and height
b=36902, a=waterson


git-svn-id: svn://10.0.0.236/trunk@74537 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 14:50:17 +00:00
brade%netscape.com
2c2057c60e check if events have been handled already before dispatching them; r=saari; bug #45390
git-svn-id: svn://10.0.0.236/trunk@74536 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 14:32:30 +00:00
brade%netscape.com
4140981a9e comment out offensive line to get Mac green again
git-svn-id: svn://10.0.0.236/trunk@74535 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 13:46:43 +00:00
mscott%netscape.com
f50579e6a0 Bug #39736 --> we were always using the charset specified in the mail header instead of using the charset override
value if it was present. This broke forwarding inline for messages that had incorrect charsets assigned to them.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74534 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 08:52:18 +00:00
dveditz%netscape.com
090045d327 Comment-out call to crashing ReloadChrome() so we can call bug 39367 fixed.
git-svn-id: svn://10.0.0.236/trunk@74533 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 08:33:54 +00:00
mscott%netscape.com
ab5be8b1b6 Bug #39736 --> for forward inline case, we need to make sure we pass in the right charset to mime when it fetches
the message body for quoting purposes.
r=nhotta.


git-svn-id: svn://10.0.0.236/trunk@74532 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 07:53:58 +00:00
mscott%netscape.com
811b05e4b5 Bug #39736 --> charset over ride has no effect on quoting. Fix is to use the charset
we just passed in.
r=nhotta


git-svn-id: svn://10.0.0.236/trunk@74531 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 07:42:14 +00:00
mscott%netscape.com
3670570dbc Bug #39736 --> set the charset on the compose field if we have one from the
top most message window.
r=nhotta


git-svn-id: svn://10.0.0.236/trunk@74530 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 07:41:51 +00:00
mscott%netscape.com
c79509bff4 Bug #39736 --> pass in the charset to quote the body with. this helps fix charset over ride has
no effect on quoting.
r=nhotta


git-svn-id: svn://10.0.0.236/trunk@74529 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 07:41:12 +00:00
pinkerton%netscape.com
d788fba357 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@74528 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 07:17:32 +00:00
jst%netscape.com
3b985a0c19 Trivial change to cut down on the noice in bug reports by not returning internal errors back to JS, this fixes harmless, but annoying JS exceptions when mousing over chromeless windows. r=waterson.
git-svn-id: svn://10.0.0.236/trunk@74527 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 06:11:22 +00:00
pollmann%netscape.com
61d0f30aec Bug 42686: Remove an assertion which was preventing dogfood use on Mac. r=jst@netscape.com (thanks!)
git-svn-id: svn://10.0.0.236/trunk@74526 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 06:02:41 +00:00
nelsonb%netscape.com
3183f298c5 Use unsigned ints for length parameters to "octets" functions.
git-svn-id: svn://10.0.0.236/trunk@74525 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 04:47:24 +00:00
nelsonb%netscape.com
70e75128b3 Eliminate lots of warnings found by -fullwarn.
Add sanity test to s_mp_div().


git-svn-id: svn://10.0.0.236/trunk@74524 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 04:21:37 +00:00
nelsonb%netscape.com
83c50409ff Eliminate warnings found with -fullwarn.
git-svn-id: svn://10.0.0.236/trunk@74523 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 04:20:21 +00:00
uid408
98e8bbd097 Enable 8-bit alpha channel for images on Windows. Bug 36694. Patch thanks to VYV03354@nifty.ne.jp. r=kmcclusk,dcone a=brendan
git-svn-id: svn://10.0.0.236/trunk@74522 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 04:19:23 +00:00
dougt%netscape.com
a71892b0d3 disable test. damn sunos.
git-svn-id: svn://10.0.0.236/trunk@74521 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 03:21:31 +00:00
dougt%netscape.com
51025d5814 Fixing sunos bustage.
git-svn-id: svn://10.0.0.236/trunk@74520 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 03:17:58 +00:00
mcafee%netscape.com
2821eadc9b Moving EmitHtmlHeader to after tb_load_data call so we have a value for \tree
git-svn-id: svn://10.0.0.236/trunk@74519 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 02:52:11 +00:00
tao%netscape.com
f1e3a39463 not of part of the build yet. files for en-DE.
git-svn-id: svn://10.0.0.236/trunk@74518 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 02:19:11 +00:00
despotdaemon%netscape.com
4d22f7a9c5 Pseudo-automatic update of changes made by girish.manwani@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@74517 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:53:36 +00:00
dougt%netscape.com
af24b67372 removing unneeded include.
git-svn-id: svn://10.0.0.236/trunk@74516 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:53:09 +00:00
pnunn%netscape.com
bd7a89fcf4 fix for bug#30852.(nsbeta2+). Image reloads not using necko reload attributes. pnunn.
rev:neeti; and tested on win/mac/linux.


git-svn-id: svn://10.0.0.236/trunk@74515 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:52:35 +00:00
waterson%netscape.com
ab0efcd0f0 Bug 37622. The rest of the patch that I somehow missed the first time around. r=blizzard,pavlov
git-svn-id: svn://10.0.0.236/trunk@74514 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:40:54 +00:00
dave%intrec.com
77d40ac9dc Fix for bug 31336 (separate bug groups from access groups in user editor)
git-svn-id: svn://10.0.0.236/trunk@74513 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:31:10 +00:00
nbhatla%netscape.com
ba102e4a5e Bug #43658 (Mac classic skin polish fixes) - Updated mac classic skin, adding background to slider, modifying autorepeat images, and adding sidebar collapse images to CSS. Bug #45336/#45725 (Mail app crashes after startup) Fixed this by removing border-top style from sidebar.css in .iframe-panel. Bug #44744 - Fixed checkmark spacing in menus in Windows Classic skin.
git-svn-id: svn://10.0.0.236/trunk@74512 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:21:15 +00:00
edburns%acm.org
65086659fd a=av
r=av
bug=38848

This bug enables nsIPluginHostImpl::GetValue(nsPluginManagerVariable_XDisplay)
to function correctly.

Thanks to Chris Waterson.

This has been built on win32 and solaris.


git-svn-id: svn://10.0.0.236/trunk@74511 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:16:52 +00:00
mstoltz%netscape.com
0d04dfcd48 fix for 42387, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@74510 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:16:15 +00:00
mstoltz%netscape.com
b9104f0941 Fix for 42387. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@74509 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:15:09 +00:00
dougt%netscape.com
62473e4262 Adding gtk embedding test application.
a=valeski@netscape.com - bug 43055


git-svn-id: svn://10.0.0.236/trunk@74508 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:12:25 +00:00
dougt%netscape.com
1d69377092 creating makefile for unix to export base browser depends for embedding
adjusting/update manifest file.


git-svn-id: svn://10.0.0.236/trunk@74507 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:08:43 +00:00
nbhatla%netscape.com
c68dd50f9c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@74506 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 01:01:38 +00:00
tao%netscape.com
5dcdd2f253 Replicated from en-US build
git-svn-id: svn://10.0.0.236/trunk@74504 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:59:09 +00:00
ducarroz%netscape.com
a39430b080 Fix for bug 45926. ContentWindow is now known as window._content. R=mscott
git-svn-id: svn://10.0.0.236/trunk@74503 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:47:34 +00:00
rbs%maths.uq.edu.au
10f9124e03 [not part of default build] fix an event propagation problem caused by the fact that a point wasn't translated to the frame's relative coordinate system. a:waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74502 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:21:34 +00:00
sfraser%netscape.com
8727267960 Fix for blank windows on Mac bug 42289. Ensure we only validate regions which we've painted. r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@74501 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:13:06 +00:00
pchen%netscape.com
7a5c6a15ff Completed client end work for bug 44281 r=pinkerton, call back end CMT code to get certificate authority string.
git-svn-id: svn://10.0.0.236/trunk@74500 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:12:54 +00:00
tao%netscape.com
087bd7172c 39790: [L12y] Move all localizable prefs into chrome://.a=ftang. piggy back
ftang's hacky code. To be replaced by ben.


git-svn-id: svn://10.0.0.236/trunk@74499 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-20 00:00:29 +00:00
mcgreer%netscape.com
cf69efb49b Change the startup/shutdown procedure. Now a minimum amount of seed bytes, MIN_SEED_COUNT, are required before output bytes can be extracted. Also, it is possible to do a full restart by calling RNG_RNGInit() and RNG_RNGShutdown() in succession. This is noted in the blapi.h comments for those functions.
git-svn-id: svn://10.0.0.236/trunk@74498 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:54:43 +00:00
waterson%netscape.com
8f34ddafd2 Bug 37622. Hackery to get <embed hidden='true'> to work. Check hidden attribute; if set, size to (0, 0) and don't create a widget. r=pavlov,blizzard.
git-svn-id: svn://10.0.0.236/trunk@74497 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:46:43 +00:00
danm%netscape.com
5822e6f87e now holds a strong reference to its chrome data source (mComposite). consequent circular reference is broken with stupid refcounting tricks. bug 44621 r=hyatt
git-svn-id: svn://10.0.0.236/trunk@74496 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:39:50 +00:00
varada%netscape.com
c2682c819f fix for bug #43229;folder and threaded message indentation;r=mscott
git-svn-id: svn://10.0.0.236/trunk@74495 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:26:49 +00:00
waterson%netscape.com
8684478ba7 Remove debugging cruft I left in.
git-svn-id: svn://10.0.0.236/trunk@74494 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:24:35 +00:00
nelsonb%netscape.com
a47b86cbb3 Build all mpi .c files with -DMP_API_COMPATIBLE
git-svn-id: svn://10.0.0.236/trunk@74493 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:23:24 +00:00
nelsonb%netscape.com
465370ca82 Implement 5 new functions for dealing with variable length integers
represented as unsigned and signed octet strings.
mp_read_unsigned_octets(), mp_unsigned_octet_size(),
mp_to_unsigned_octets(), mp_to_signed_octets(), mp_to_fixlen_octets()
See mpi.h for more info.


git-svn-id: svn://10.0.0.236/trunk@74492 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:22:43 +00:00
nelsonb%netscape.com
045155f5d6 All #defines now have MP_ prefix. To get old #defines, compile with
-DMP_API_COMPATIBLE .  mpi.c is compiled that way.


git-svn-id: svn://10.0.0.236/trunk@74491 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 23:18:08 +00:00
conrad%ingress.com
8df03a265e - Not yet part of build -
Changed name of Debug target


git-svn-id: svn://10.0.0.236/trunk@74490 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:43:50 +00:00
ftang%netscape.com
9cfa299191 fix 39790 . r=tao,nhotta move send_default_charset , view_default_charset to property
git-svn-id: svn://10.0.0.236/trunk@74489 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:39:37 +00:00
mcafee%netscape.com
2a89d880df Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@74488 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:13:17 +00:00
ddrinan%netscape.com
ea15ea5126 Fix for getting ca name
git-svn-id: svn://10.0.0.236/trunk@74487 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:10:55 +00:00
dougt%netscape.com
a8bf96a79b Damnit., missed this file.
git-svn-id: svn://10.0.0.236/trunk@74486 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:10:49 +00:00
larryh%netscape.com
3cf1228683 BugZilla: 45623
git-svn-id: svn://10.0.0.236/trunk@74485 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:03:36 +00:00
akkana%netscape.com
29b5ed46ed Remove a debug dump statement. r=ducarroz, a=mcafee
git-svn-id: svn://10.0.0.236/trunk@74484 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 22:00:16 +00:00
conrad%ingress.com
cff571d667 Not part of build!
Added some <includes> needed on Mac


git-svn-id: svn://10.0.0.236/trunk@74483 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:47:08 +00:00
conrad%ingress.com
0c7794b33d Removed shared lib targets - Not yet part of build
git-svn-id: svn://10.0.0.236/trunk@74482 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:45:42 +00:00
waterson%netscape.com
6c20af3ad5 Bug 37522. Implement ns4xPlugin::GetMIMEDescription() and ns4xPlugin::GetValue(); alter nsPluginsDirUNIX to use these routines (instead of directly calling the NP_* routine) while grovelling through 4.x plugins. r=av
git-svn-id: svn://10.0.0.236/trunk@74481 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:43:46 +00:00
mscott%netscape.com
7a5aa52cef Bug #45816 --> fix i18n breakage of intl-accept pref by calling getLocalizedUnicharPref
git-svn-id: svn://10.0.0.236/trunk@74480 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:42:18 +00:00
mscott%netscape.com
7ebcebcd5b Bug #45816 --> fix i18n breakage of intl-accept pref by calling getLocalizedUnicharPref
r=tao


git-svn-id: svn://10.0.0.236/trunk@74479 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:41:59 +00:00
don%netscape.com
82e9409289 Partial fix for bug 5236 (yes, one that old) which changes the font-family but not font-size to make Linux/Unix suck less. r=akkana,german a=don
git-svn-id: svn://10.0.0.236/trunk@74478 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:37:05 +00:00
dbragg%netscape.com
bc96ad79ee Fix for nsbeta2+ bug #45653. Removed code that appends a '/' since the call to Append is taking care of that for us. This was resulting in a double slash at the end of the mURL string and the Mac gagged on it.
git-svn-id: svn://10.0.0.236/trunk@74477 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:32:37 +00:00
dougt%netscape.com
5cdd26357c turning on xpfe application locations. r=conrad a=valeski bug 44314.
This TURNS on my last checks!


git-svn-id: svn://10.0.0.236/trunk@74476 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:31:33 +00:00
dougt%netscape.com
b561c24014 turning on xpfe application locations. r=conrad a=valeski bug 44314.
This TURN on my last checks!


git-svn-id: svn://10.0.0.236/trunk@74475 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:29:40 +00:00
ddrinan%netscape.com
793d28755f Fix for cert renewal bug
git-svn-id: svn://10.0.0.236/trunk@74474 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:21:46 +00:00
dougt%netscape.com
ab785b76a4 Adding UNIX makefiles.
making compile on unix

(NOT PART OF BUILD)


git-svn-id: svn://10.0.0.236/trunk@74473 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:20:35 +00:00
morse%netscape.com
25595f5631 bug 44146, parent window for modal dialogs, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@74472 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 21:10:03 +00:00
attinasi%netscape.com
d21b6a133e Checkin patch for Robert O'Callahan: fixed HandlePostedDOMEvents and HandlePostedAttributeChanges to deal with re-entrant calls. b=45510,45361[nsb2+] r=evaughan,attinasi
git-svn-id: svn://10.0.0.236/trunk@74471 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 20:09:59 +00:00
leaf%mozilla.org
80d95e4c7f Automated update
git-svn-id: svn://10.0.0.236/trunk@74470 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 20:00:09 +00:00
dougt%netscape.com
29d31a319e Fixing line feeds.
Adding makefiles for windows.
Making compile on windows.


(not part of build!)


git-svn-id: svn://10.0.0.236/trunk@74469 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 19:58:35 +00:00
tor%cs.brown.edu
582be3088f Bug 40748 - officially kill the SUNWspro4.2 build. r=cls, a=waterson
git-svn-id: svn://10.0.0.236/trunk@74468 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 19:53:01 +00:00
mscott%netscape.com
d8174a05f7 Bug #44397 --> quick fix to the bookmarks problem with create new profile, if the
url is about:blank then don't try to instantiate bookmarks just to get a charset!
i'm not sure this bookmarks code belongs here anyway. We'll file another bug to get it moved out.
r,a=waterson


git-svn-id: svn://10.0.0.236/trunk@74467 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 19:51:20 +00:00
brade%netscape.com
d2cff52a17 move webshell shared library to Components for valeski (a=leaf)
git-svn-id: svn://10.0.0.236/trunk@74466 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 18:25:48 +00:00
valeski%netscape.com
75f3656c64 fixing IID collision, a=leaf
git-svn-id: svn://10.0.0.236/trunk@74465 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 17:23:20 +00:00
mcgreer%netscape.com
914728ee65 initial checkin of PRNG code
git-svn-id: svn://10.0.0.236/trunk@74464 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 17:01:31 +00:00
dave%intrec.com
98bd394231 Fix for bug 27248 (Bug listings saved with .html extension). Patch
submitted by mhamby@logicon.com (Mark Hamby).


git-svn-id: svn://10.0.0.236/trunk@74463 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 16:05:52 +00:00
law%netscape.com
1a586ddce3 Bug 17282; change submenu id so overlay is applied; r=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74462 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 14:08:22 +00:00
mkaply%us.ibm.com
68a8e865d9 #40177
r=cls, a=brendan
Delete OS/2 specific build files during the clobber


git-svn-id: svn://10.0.0.236/trunk@74461 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 14:03:25 +00:00
mkaply%us.ibm.com
4141a1a3da #40177
r=cls, a=brendan
OS/2 build changes to get webshell/tests/viewer building


git-svn-id: svn://10.0.0.236/trunk@74460 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 13:58:45 +00:00
jdunn%netscape.com
ab359db843 Fixing hpux bustage.
The define needed in the header file, doesn't get set till after the
header file is included.
Also added newline to headerfile at the end for hpux.


git-svn-id: svn://10.0.0.236/trunk@74459 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 13:36:35 +00:00
dprice%netscape.com
21607e2f66 adding jar manifest for xpfe/global
NOT IN THE BUILD


git-svn-id: svn://10.0.0.236/trunk@74458 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 10:03:39 +00:00
warren%netscape.com
087c3b48c2 Reverted change from doronr@naboonline.com to print warning. This gets called erroneously when the program quits.
git-svn-id: svn://10.0.0.236/trunk@74457 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 09:32:35 +00:00
dprice%netscape.com
915fc73419 adding jar manifest for ender
NOT IN THE BUILD


git-svn-id: svn://10.0.0.236/trunk@74456 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 09:25:50 +00:00
wtc%netscape.com
9af1a53422 Map "Darwin" to "Rhapsody".
git-svn-id: svn://10.0.0.236/trunk@74454 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 07:04:26 +00:00
ftang%netscape.com
19ca43a9dc add one space to add check in comment for last check in
fix bug 49790. r=tao move intl.charetmenu.* pref to property file


git-svn-id: svn://10.0.0.236/trunk@74453 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 06:30:52 +00:00
ftang%netscape.com
6038f9ff2d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@74452 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 06:24:47 +00:00
jband%netscape.com
548b116d73 fix for crash that can happen when wrapped JS objects get accessed after xpconnect shutdown. This was burning outside users of xpconnect. bug 45669. r=mccabe@netscape.com a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74451 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 06:15:32 +00:00
jband%netscape.com
83610ad141 fix bustage from dougt's last change to this file. not part of build. r=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74450 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 06:11:12 +00:00
dmose%mozilla.org
3df77ff076 Fixed a bug where people with priviledges being removed would be
counted as new checkers-in.  Separated out the source and doc tree
components of the new checkers-in statistic.


git-svn-id: svn://10.0.0.236/trunk@74449 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 05:57:40 +00:00
waterson%netscape.com
48a15edd1c Doh! Botched patch application. Sorry!
git-svn-id: svn://10.0.0.236/trunk@74448 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 05:23:09 +00:00
warren%netscape.com
0f3fa580d1 Added another .get()
git-svn-id: svn://10.0.0.236/trunk@74447 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 05:12:23 +00:00
waterson%netscape.com
b92de9cfda Bug 21456. Support for 'alt=' attribute on applet frames. Patch submitted by edburns@acm.org, r=waterson, nisheeth, a=waterson.
git-svn-id: svn://10.0.0.236/trunk@74446 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 05:06:55 +00:00
dave%intrec.com
f797a36a52 Fix for bug 32220 (checksetup.pl gives bad permissions). Majority of
patch submitted by seth@cs.brandeis.edu (Seth Landsman).  checksetup.pl
now no longer twiddles the permissions of the contrib folder, and
properly sets the permissions on the folders inside the data folder.


git-svn-id: svn://10.0.0.236/trunk@74445 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 04:34:52 +00:00
warren%netscape.com
268cbb9aaa Added dredded .get()
git-svn-id: svn://10.0.0.236/trunk@74444 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 04:28:15 +00:00
warren%netscape.com
68783ed706 Added nsIRDFDataSource::HasArcIn/HasArcOut. Changed nsXULTemplateBuilder.cpp to use it (ifdef'd for now). Speed up folder loading by about 24%. r=waterson,alecf
git-svn-id: svn://10.0.0.236/trunk@74441 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 03:58:25 +00:00
jband%netscape.com
a01b2be7a8 patches from madams@janna.com to build xpconnect standalone. bug 42026. r=leaf@mozilla.org a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74440 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 03:36:27 +00:00
valeski%netscape.com
2540c443ba removing webshell lib dependency, the webshell is now built into the docshell
git-svn-id: svn://10.0.0.236/trunk@74439 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 03:26:04 +00:00
valeski%netscape.com
b3479dc559 45723. removing the hard init of the webshell
git-svn-id: svn://10.0.0.236/trunk@74433 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 02:58:49 +00:00
valeski%netscape.com
194dc0bbee moving the docshell lib to the components dir and macro'izing some decls. 45723
git-svn-id: svn://10.0.0.236/trunk@74432 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 02:57:05 +00:00
racham%netscape.com
fe18eb1dd1 Fixing bug 45569. Migrated account is shown along with any other partial accounts. r=alecf
git-svn-id: svn://10.0.0.236/trunk@74431 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 02:37:09 +00:00
dveditz%netscape.com
dd855dbc43 fixing mac long-long bustage
git-svn-id: svn://10.0.0.236/trunk@74430 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 01:53:43 +00:00
warren%netscape.com
5279d895c1 Took out -o from make-jars.pl because it didn't work.
git-svn-id: svn://10.0.0.236/trunk@74429 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 01:38:09 +00:00
valeski%netscape.com
2bcea721e9 removing dependency on webshell lib
git-svn-id: svn://10.0.0.236/trunk@74428 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 01:21:33 +00:00
valeski%netscape.com
7ab521def4 adding xpidl module
git-svn-id: svn://10.0.0.236/trunk@74427 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:45:53 +00:00
valeski%netscape.com
aa185940a8 adding xpt's to the packager for the new webshell idls
git-svn-id: svn://10.0.0.236/trunk@74426 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:41:41 +00:00
ddrinan%netscape.com
e12b2a0ddb Fix pickle and unpickle of the CA name
git-svn-id: svn://10.0.0.236/trunk@74425 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:21:39 +00:00
pinkerton%netscape.com
4cfed13f3e File Removed.
git-svn-id: svn://10.0.0.236/trunk@74424 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:20:14 +00:00
pinkerton%netscape.com
f0702df329 doing the fix-the-tree-asap dance. r=valeski.
git-svn-id: svn://10.0.0.236/trunk@74423 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:18:50 +00:00
pinkerton%netscape.com
ac8ece4a98 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@74422 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:12:08 +00:00
pinkerton%netscape.com
67f588e49e File Removed.
git-svn-id: svn://10.0.0.236/trunk@74421 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:10:41 +00:00
valeski%netscape.com
a73dbc1d0b mac is still building this, pulling nsweb stuff
git-svn-id: svn://10.0.0.236/trunk@74420 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:09:40 +00:00
mkaply%us.ibm.com
12f3948192 # 44864
r = mkaply, a = brendan
AltGr not working on OS/2


git-svn-id: svn://10.0.0.236/trunk@74419 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:06:15 +00:00
valeski%netscape.com
181de06fa6 do not need the dot specifier for unix
git-svn-id: svn://10.0.0.236/trunk@74418 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-19 00:04:25 +00:00
pinkerton%netscape.com
fdc79dc6da adding nsIContentViewerEdit.idl to fix bustage. r=valeski.
git-svn-id: svn://10.0.0.236/trunk@74417 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:52:37 +00:00
dveditz%netscape.com
0eac386724 Bug 42548 approximate 6x XPInstall performance improvement, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@74416 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:46:00 +00:00
valeski%netscape.com
eada5b3feb 45723. r=rpotts. webshell-docshell consolodation changes.
git-svn-id: svn://10.0.0.236/trunk@74414 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:37:53 +00:00
wtc%netscape.com
2d9ccf03e3 Bugzilla bug #42900: implement timeout for PR_Connect.
git-svn-id: svn://10.0.0.236/trunk@74413 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:35:24 +00:00
mcafee%netscape.com
0564f3470d HTML-4.0-izing about page (39231). patch=gemal@gemal.dk, r=mcafee, a=waterson
git-svn-id: svn://10.0.0.236/trunk@74412 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:34:57 +00:00
valeski%netscape.com
7c62b02e4e 45723. r=rpotts. no longer building the webshell shared lib, webshell is now in docshell.
git-svn-id: svn://10.0.0.236/trunk@74411 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:26:39 +00:00
jj%netscape.com
4fbe52795f removed obsolete NetworkModular.shlb and renamed MRJInaBox to MRJPlugin from [browser]
git-svn-id: svn://10.0.0.236/trunk@74410 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:22:21 +00:00
valeski%netscape.com
7bdbdf782f 45723. idl'ized some ifaces and removed some cruft
git-svn-id: svn://10.0.0.236/trunk@74409 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:21:25 +00:00
valeski%netscape.com
cd73fc940a 45723, r=rpotts. docshell contains webshell stuff now
git-svn-id: svn://10.0.0.236/trunk@74408 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:17:38 +00:00
valeski%netscape.com
8dd5ebb6bc 45723. r=rpotts. moving webshell over to docshell dir for consolodation. this does *not* mean teh two will merge in object space.
git-svn-id: svn://10.0.0.236/trunk@74407 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:13:53 +00:00
valeski%netscape.com
37012edc37 45723. r=rpotts. webshell-docshell consolodation changes.
git-svn-id: svn://10.0.0.236/trunk@74406 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:13:07 +00:00
pinkerton%netscape.com
4d88da0c4a remove .h files that have been moved into idl. r=valeski (bug #45723).
git-svn-id: svn://10.0.0.236/trunk@74405 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:11:33 +00:00
pinkerton%netscape.com
d8e3d452ce adding IDL project for webshell and a new manifest file for idl in webshell/public. r=valeski (bug 45723).
git-svn-id: svn://10.0.0.236/trunk@74404 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:11:05 +00:00
akkana%netscape.com
f2b8ee5431 42885: Load browser and editor bindings from
chrome://communicator/content
  rather than chrome://global/content. r=ben


git-svn-id: svn://10.0.0.236/trunk@74403 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:08:36 +00:00
akkana%netscape.com
3ef413d57d 42885: Move browser and editor XUL bindings out of global (i.e.
widget-toolkit) and into communicator (i.e. core).
  Also remove the obsolete files platformInputBindings.xul and
  platformTextAreaBindings.xul: text controls use XBL bindings now,
  and the XUL bindings are no longer used.   r=ben,saari


git-svn-id: svn://10.0.0.236/trunk@74402 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:04:24 +00:00
pinkerton%netscape.com
08857bf0bd First Checked In.
git-svn-id: svn://10.0.0.236/trunk@74401 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 23:02:39 +00:00
wtc%netscape.com
b3a1802399 Declare the _nt_nonblock_xxx functions static. Changed the second
argument of _nt_nonblock_accept to be "struct sockaddr *".


git-svn-id: svn://10.0.0.236/trunk@74400 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:45:58 +00:00
chuang%netscape.com
d6a0121e4b Fix absync bug 1425 - add record key for migrated address book. r=rhp
git-svn-id: svn://10.0.0.236/trunk@74399 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:31:10 +00:00
radha%netscape.com
20cc26d58c Possible fix for 45297. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@74398 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:24:27 +00:00
rhp%netscape.com
0abc352ceb Fix to make absync more tolerant on migration - Bug #: 1425 - r: chuang
git-svn-id: svn://10.0.0.236/trunk@74397 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:23:18 +00:00
bryner%uiuc.edu
c045206358 Backing out changes for 45661- this was causing regression bug 45749.
git-svn-id: svn://10.0.0.236/trunk@74396 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:17:39 +00:00
kin%netscape.com
ed8c32d80b Fix for bug #42263: Unable to invoke IME in the receipient and subject field on plain text mail composer
Replaced GetDeepestWidget() with new function GetEditorContentWindow().
Modified ForceCompositionEnd() to call GetEditorContentWindow().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74395 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 22:11:31 +00:00
radha%netscape.com
50ef8aca6b Fix for bug # 37324 r=rpotts
git-svn-id: svn://10.0.0.236/trunk@74394 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:55:37 +00:00
mcafee%netscape.com
bf5c105437 Removing -pref from -help output, we don't do -pref anymore (40698). r=radha
git-svn-id: svn://10.0.0.236/trunk@74393 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:55:29 +00:00
shanjian%netscape.com
de958bb539 #45543
Use empty cmap for those charsets not easily to determin its cmap.
r=ftang r=rbs


git-svn-id: svn://10.0.0.236/trunk@74392 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:54:33 +00:00
javi%netscape.com
72c3d2cef1 Modify JavaScript for prefs so that Mozilla correctly saves them.
git-svn-id: svn://10.0.0.236/trunk@74391 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:53:08 +00:00
attinasi%netscape.com
9883f75dbb Checkin for timeless@bemail.org: Fixed rounding error making LARGER work for font sizes less than 9px. b=12461, r=attinasi@netscape.com,disttsc@bart.nl a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74390 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:48:51 +00:00
mcafee%netscape.com
a8403bfdcc Converting use of depreciated macro NS_IMPL_QUERY_INTERFACE to use NS_IMPL_ISUPPORTS1 (39270). r=alecf
git-svn-id: svn://10.0.0.236/trunk@74389 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 21:37:25 +00:00
rogerl%netscape.com
f236eeaaff Removed all xxxCall, using simple call for everything.
Changed methods to use mMethods vector instead.
Various other fixes etc.


git-svn-id: svn://10.0.0.236/trunk@74388 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:53:03 +00:00
despotdaemon%netscape.com
ba3cb610a6 Pseudo-automatic update of changes made by roc+@cs.cmu.edu.
git-svn-id: svn://10.0.0.236/trunk@74387 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:35:16 +00:00
despotdaemon%netscape.com
845a00fb82 Pseudo-automatic update of changes made by roc+@cs.cmu.edu.
git-svn-id: svn://10.0.0.236/trunk@74386 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:34:11 +00:00
despotdaemon%netscape.com
7f9523449e Pseudo-automatic update of changes made by roc+@cs.cmu.edu.
git-svn-id: svn://10.0.0.236/trunk@74385 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:33:44 +00:00
dprice%netscape.com
c0f5c6403e adding jar manifest file for messenger
NOT IN BUILD


git-svn-id: svn://10.0.0.236/trunk@74384 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:33:43 +00:00
despotdaemon%netscape.com
c9f04c4668 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@74383 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 20:30:55 +00:00
javi%netscape.com
d9402479a3 Fix the printf parameter.
git-svn-id: svn://10.0.0.236/trunk@74379 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 18:21:51 +00:00
dave%intrec.com
54523e9cba Fix for bug 42037 (user passwords visible in editusers.cgi). Patch
submitted by JRobertson@medevolve.com (Jon Robertson)


git-svn-id: svn://10.0.0.236/trunk@74378 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 16:01:42 +00:00
dave%intrec.com
0eb2643368 Fix for bug 45586. When using 'usebuggroupsentry', prevent users from
seeing products the don't have access to on the query page.


git-svn-id: svn://10.0.0.236/trunk@74377 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 15:28:19 +00:00
valeski%netscape.com
ba47bca9e1 not part of the build. adding idl'ized version of this iface
git-svn-id: svn://10.0.0.236/trunk@74376 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 15:03:16 +00:00
valeski%netscape.com
060e64fefb not in build. removing this one as one in docshell is going to replace it
git-svn-id: svn://10.0.0.236/trunk@74375 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 06:59:30 +00:00
warren%netscape.com
101ff3ed31 Reverted dougt's silly change that spews all sorts of crap in the build.
git-svn-id: svn://10.0.0.236/trunk@74374 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 06:03:18 +00:00
morse%netscape.com
419ab26efe minor wording change to hide the fact that mozilla and ns tree are improperly shadowed
git-svn-id: svn://10.0.0.236/trunk@74373 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 06:01:10 +00:00
alecf%netscape.com
a4bf0ed0dd adding clarifying comments because this was confusing me and timeless - comments only, does not affect product
git-svn-id: svn://10.0.0.236/trunk@74372 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 04:21:28 +00:00
mscott%netscape.com
02e1a5824a Bug #45689, 45651 --> helper app dialog isn't coming up in release builds
possibly because exthandler.xpt isn't part of the packages.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@74371 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 03:37:17 +00:00
dave%intrec.com
96a21c260d Fix for bug 32971, patch submitted by mtakacs@pacbell.net
git-svn-id: svn://10.0.0.236/trunk@74370 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 02:15:24 +00:00
morse%netscape.com
4b365f587d fix bug 44146, parent window for dialogs, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@74369 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 02:03:57 +00:00
tao%netscape.com
8c115850aa 41054: Bundle 2-3 langpacks w/ Seamonkey. Move all URLs to the bottom of
the file. r=amasri.


git-svn-id: svn://10.0.0.236/trunk@74368 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 01:46:17 +00:00
javi%netscape.com
e32a440548 zeroize the output before converting to utf8 so that we get the sting
length right in all cases.  This allows us to remove the hack where
we hard code the out length to be half the original length.  Which may
or may not be true depending on what we're converting.


git-svn-id: svn://10.0.0.236/trunk@74367 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 01:30:04 +00:00
beard%netscape.com
c793f631eb Added ClassOutput.java, WrapHandler.java.
git-svn-id: svn://10.0.0.236/trunk@74366 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 01:29:34 +00:00
mcgreer%netscape.com
f286a09459 initial checkin of ARCFour.
git-svn-id: svn://10.0.0.236/trunk@74362 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:56:09 +00:00
valeski%netscape.com
3d169563fb 45723. not part of the build. idl'izing some interfaces. will throw the switch tomorrow
git-svn-id: svn://10.0.0.236/trunk@74361 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:35:55 +00:00
bryner%uiuc.edu
447acb183f Patch from Jan Varga <varga@fri.utcru.sk> to fix bug 45661 (localizability
and keyboard navigation for Linux filepicker).  r=me.


git-svn-id: svn://10.0.0.236/trunk@74360 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:25:07 +00:00
sgehani%netscape.com
fdf860dece Fix "local display" crash for Linux installer. No longer destroying gtk
widgets that were already freed during a prior call to gtk_exit().

[nsbeta2+ b=36781; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@74359 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:09:29 +00:00
mscott%netscape.com
af93eec0ee Bug #39518 --> we keep showing the security warning when submitting insecure documents even if you check on the
checkbox saying please don't show me this again. We were always setting the pref to true if we ready something out of prefs. =)
The fix is trivial....
r=blake


git-svn-id: svn://10.0.0.236/trunk@74358 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:08:38 +00:00
idk%eng.sun.com
db7f3c0f7c ** not part of tbuild **
Updated README for linux build.


git-svn-id: svn://10.0.0.236/trunk@74357 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-18 00:03:47 +00:00
hyatt%netscape.com
2d8a44eedd Fix for 45248. r=saari
git-svn-id: svn://10.0.0.236/trunk@74356 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:55:25 +00:00
bienvenu%netscape.com
b2a8ba1e55 turn on green icon for local folders that get messages filtered into them from pop, fix clearing it for local folder msgs r=gayatrib 43884
git-svn-id: svn://10.0.0.236/trunk@74355 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:18:37 +00:00
bienvenu%netscape.com
58afd75e83 turn on green icon for local folders that get messages filtered into them from pop, r=gayatrib 43884
git-svn-id: svn://10.0.0.236/trunk@74354 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:16:38 +00:00
danm%netscape.com
ca41dc9d3b fix GetMostRecentWindow by fixing faulty code to locate the correct window in UpdateWindowTimeStamp. code=becki@talkware.net. r=me
git-svn-id: svn://10.0.0.236/trunk@74353 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:06:43 +00:00
nbhatla%netscape.com
a9d0bb6615 Bug #43658. Changes to menus and toolbar buttons for mac classic skin. r=hangas
git-svn-id: svn://10.0.0.236/trunk@74352 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:02:09 +00:00
nbhatla%netscape.com
9de53cea97 Bug #43658. Classic skin changes to addressbook, buttons (to make look Mac-like), colors, navigation toolbar buttons (to produce better mouse-over behavior), and small changes to spacing in radio buttons, menus, and checkboxes. r=hangas
git-svn-id: svn://10.0.0.236/trunk@74351 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 23:00:45 +00:00
bienvenu%netscape.com
01274d0894 fix upgrading of imap -> local filters by making GetChildByURI discover sub-folders, r=mscott 37320
git-svn-id: svn://10.0.0.236/trunk@74350 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:54:22 +00:00
javi%netscape.com
426d3ef9a5 Re-work some of the JavaScript for prefs so that Mozilla just "does the right thing."
git-svn-id: svn://10.0.0.236/trunk@74349 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:54:07 +00:00
wtc%netscape.com
bba25f392b Bugzilla bug #45683: define FD_SETSIZE to be 4096. This patch is
contributed by Jerry Kirk <Jerry.Kirk@nexwarecorp.com>.


git-svn-id: svn://10.0.0.236/trunk@74348 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:51:42 +00:00
nelsonb%netscape.com
f60e905611 Fix "random" modulus so it is odd and has msb of most significant digit
set to 1, and "random" base to be less than modulus.


git-svn-id: svn://10.0.0.236/trunk@74345 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:37:55 +00:00
nelsonb%netscape.com
d62ea6a2a7 Fix script to run on certain unix platforms.
git-svn-id: svn://10.0.0.236/trunk@74344 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:34:30 +00:00
nelsonb%netscape.com
fb62d50402 Shorten this test so it completes in less time.
git-svn-id: svn://10.0.0.236/trunk@74343 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:33:46 +00:00
nelsonb%netscape.com
1648745d5f Fix mpp_pprime() so it doesn't stop after first succesful iteration.
git-svn-id: svn://10.0.0.236/trunk@74342 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:32:46 +00:00
nelsonb%netscape.com
69a36bf77c Add support for 32-bit digits (64-bit words) on platforms that can
multiply two 32-bit values yielding a 64-bit product in hardware.
Fix bug in s_mp_div that computed a quotient digit q > DIGIT_MAX
when b > DIGIT_MAX/2 and b < a <= DIGIT_MAX.


git-svn-id: svn://10.0.0.236/trunk@74341 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:31:18 +00:00
nelsonb%netscape.com
0e27ece50b Elimintate type mismatch warning.
git-svn-id: svn://10.0.0.236/trunk@74340 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:23:23 +00:00
nelsonb%netscape.com
ed1059eeab Turn on MP_CRYPTO flag by default. Increase default size to 32 digits.
git-svn-id: svn://10.0.0.236/trunk@74339 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:22:28 +00:00
danm%netscape.com
bb4fcd441e enumerators GetNext() now returns the current window and then immediately advances to the next, rather than holding the last window and advancing before returning. fixes a skip when windows are deleted beneath them. bug 39633. r=bryner@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74338 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:21:47 +00:00
nelsonb%netscape.com
6fb1c065c7 Get file to work with SysV make on IRIX.
Add .i target (preprocessor output).


git-svn-id: svn://10.0.0.236/trunk@74337 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:21:42 +00:00
javi%netscape.com
79c1d2b05f Make the 'if' statement a '==' instead of a '='
git-svn-id: svn://10.0.0.236/trunk@74336 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:16:42 +00:00
pinkerton%netscape.com
2835498ba0 fix for 45238, add kung-fu death grip on widget while we're processing the event. r=saari.
git-svn-id: svn://10.0.0.236/trunk@74335 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 22:00:30 +00:00
pinkerton%netscape.com
c75e6e6e91 Temp workaround for bug 44369, r=saari. Don't deal with images on the clipboard that aren't
8 or 24 bits (sigh).


git-svn-id: svn://10.0.0.236/trunk@74334 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:49:12 +00:00
nbhatla%netscape.com
32522b9f8e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@74333 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:15:05 +00:00
nhotta%netscape.com
7716643591 Added mailnews.send_default_charset, mailnews.view_default_charset, check in for ftang, bug 39790, r=tao.
git-svn-id: svn://10.0.0.236/trunk@74332 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:13:36 +00:00
nhotta%netscape.com
9e54d32e99 Added intl.charsetmenu.browser, intl.charsetmenu.mailedit, check in for ftang, bug 39790, r=tao.
git-svn-id: svn://10.0.0.236/trunk@74331 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:12:30 +00:00
beard%netscape.com
0b017cf27b Shouldn't be putting PSMStubs in Components, causes a crash. a=jj
git-svn-id: svn://10.0.0.236/trunk@74330 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:05:44 +00:00
nbhatla%netscape.com
4b9873dfac For bug #43658. Modifies dialog overlays to have proper buttons on MacOS. Also modified other platforms to allow for specially-styled dialog buttons. r=hangas
git-svn-id: svn://10.0.0.236/trunk@74329 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:04:43 +00:00
despotdaemon%netscape.com
b5baaf1cdd Pseudo-automatic update of changes made by dave@intrec.com.
git-svn-id: svn://10.0.0.236/trunk@74328 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 21:04:18 +00:00
ben%netscape.com
d109178db9 modify navigator tooltip to remove location for links
git-svn-id: svn://10.0.0.236/trunk@74327 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 20:46:51 +00:00
beard%netscape.com
c62f4a9ee1 cleaned up by removing widenCString() calls when using world.identifiers
git-svn-id: svn://10.0.0.236/trunk@74326 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 20:39:19 +00:00
pavlov%netscape.com
f0a7ca3db0 changing createInstance to getService to fix 45439 r=gramps
git-svn-id: svn://10.0.0.236/trunk@74325 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 20:28:58 +00:00
radha%netscape.com
470491c9d8 Fallout from previous checkin for bug # 45520. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@74324 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 20:12:27 +00:00
tao%netscape.com
d28f96d96c silent linux build process.
git-svn-id: svn://10.0.0.236/trunk@74323 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 19:59:18 +00:00
rhp%netscape.com
cbbdadaa20 Fix for Bug 1193 - I18N problem with phone numbers - r: brade
git-svn-id: svn://10.0.0.236/trunk@74322 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 19:58:52 +00:00
dbragg%netscape.com
398eb325ab Fix for regression nsbeta2+ bug #45299. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@74321 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 19:56:53 +00:00
mkaply%us.ibm.com
2838858147 #42637
r=mkaply, a=brendan
Implement DrawTile so background images are displayed


git-svn-id: svn://10.0.0.236/trunk@74320 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 19:50:21 +00:00
mkaply%us.ibm.com
239be1d8f2 #42637
r=mkaply, a=brendan
Assert switching skins - add additional font types for OS/2


git-svn-id: svn://10.0.0.236/trunk@74319 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 19:47:39 +00:00
conrad%ingress.com
14ebd77604 1. Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath.
2. It is now possible to pass nsnull for the path param to NS_NewLocalFile(). This allows one to create an unspecified file.
r = dougt


git-svn-id: svn://10.0.0.236/trunk@74318 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 15:03:05 +00:00
conrad%ingress.com
a4ee995bf1 Added Get/SetPersistentDescriptor. Use this instead of GetPath/InitWithPath.
r = dougt


git-svn-id: svn://10.0.0.236/trunk@74317 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 15:01:10 +00:00
conrad%ingress.com
377de8996f Added Get/SetPersistentDescriptor method. Use this instead of GetPath/InitWithPath.
git-svn-id: svn://10.0.0.236/trunk@74316 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 14:57:14 +00:00
nboyd%atg.com
6cdb0ab2d5 Fix javadoc error.
git-svn-id: svn://10.0.0.236/trunk@74315 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 14:08:28 +00:00
Jerry.Kirk%Nexwarecorp.com
106990278f This test relies on GTK libraries and header files, it is not
buildable on other non-GTK unix builds, like Photon. This change to
the Makefile makes sure this test is only built if GTK is enabled.
r=cls


git-svn-id: svn://10.0.0.236/trunk@74314 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 13:06:50 +00:00
mj%digicool.com
641eacf787 Adjust for nsIHTTPChannel API change, and fix small bug in entity handling; &gt;
means '>' =/


git-svn-id: svn://10.0.0.236/trunk@74313 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 11:36:12 +00:00
bienvenu%netscape.com
d6acb6706e fix AND imap search r=alecf 45419
git-svn-id: svn://10.0.0.236/trunk@74312 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 09:56:20 +00:00
ducarroz%netscape.com
18dcb2bea3 Fix for bug 42329. Use oninput events instead of onkeypress in order to be compatible with IME. R=putterman
git-svn-id: svn://10.0.0.236/trunk@74311 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 04:28:48 +00:00
svn%xmlterm.org
59639cf42d --NOT PART OF DEFAULT BUILD--
XMLterm changes only.
"make xpi" in xmlterm/scripts directory now creates an XPI file for XMLterm.
Removed last vestiges of WebShell!
Deleted outdated GeckoTerm files.


git-svn-id: svn://10.0.0.236/trunk@74310 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 04:11:24 +00:00
tor%cs.brown.edu
3e92dbcf9c Clip 8-bit alpha composited images for bug 44735.
git-svn-id: svn://10.0.0.236/trunk@74309 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 03:02:31 +00:00
morse%netscape.com
2b7dbd27f5 bug 44146, get parent window for modal dialogs
git-svn-id: svn://10.0.0.236/trunk@74308 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 01:37:15 +00:00
shanjian%netscape.com
41b78e469d #42837
Disable charset menu after the document has been modified.
r=cmanske


git-svn-id: svn://10.0.0.236/trunk@74307 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 01:13:10 +00:00
shanjian%netscape.com
85b3673106 #42837
Disable charset menus after the document has been modified.
r=cmanske


git-svn-id: svn://10.0.0.236/trunk@74306 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-17 01:12:10 +00:00
mcafee%netscape.com
bf2a76dc7d Removing extensions/xmlextras/soap/base, there is no code checked into this directory yet.
git-svn-id: svn://10.0.0.236/trunk@74305 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 20:13:43 +00:00
valeski%netscape.com
9f98974650 updating a comment
git-svn-id: svn://10.0.0.236/trunk@74304 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 15:05:31 +00:00
conrad%ingress.com
24e95eef9a First checkin - Not yet part of build.
git-svn-id: svn://10.0.0.236/trunk@74303 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 14:20:33 +00:00
conrad%ingress.com
bd16cdc083 First checkin - Not yet part of build
git-svn-id: svn://10.0.0.236/trunk@74302 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 14:18:11 +00:00
jfrancis%netscape.com
e0dcede60f exporting nsIEditorObserver.h
git-svn-id: svn://10.0.0.236/trunk@74301 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 07:13:03 +00:00
jfrancis%netscape.com
6d22c9ff81 making the text frame use nsIEditorObserver (instead of nsIDocumentObserver). this is for bug 42329: autocompletion firing in the middle of uncommitted ime entry. r=fm
git-svn-id: svn://10.0.0.236/trunk@74300 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 06:43:34 +00:00
jfrancis%netscape.com
b583093ee1 adding in support for nsIEditorObserver. this is for bug 42329: autocompletion firing in the middle of uncommitted ime entry. r=fm
git-svn-id: svn://10.0.0.236/trunk@74299 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-16 06:36:27 +00:00
waterson%netscape.com
4b0eb75e6e Bug 45568. Don't flush notifications while looking for the nsIEditor object! The content sink may be in a crazy state where it's trying to rotate the content model. r=mozbot, because this is a smoketest blocker.
git-svn-id: svn://10.0.0.236/trunk@74298 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 20:51:01 +00:00
brendan%mozilla.org
26dfd37419 Remove unused vars and WIN16 crap; improve freelist-scavenging code to avoid taking too big an arena off the freelist in the case where nb > arenasize (41381 again, r=jband@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@74297 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 19:12:49 +00:00
edburns%acm.org
7e42c828a0 Thanks to Andy Tripp <atripp@home.com> the DOMViewer
now scrolls to the shift-clicked node.


git-svn-id: svn://10.0.0.236/trunk@74296 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 18:56:30 +00:00
wtc%netscape.com
54151cf995 Map error codes.
git-svn-id: svn://10.0.0.236/trunk@74295 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 17:32:33 +00:00
wtc%netscape.com
aa7c6da4d5 Bugzilla bug #25981: BSD-derived systems use systcl() to get the number
of processors.  Thanks to Hans Lambermont <hans@blender.nl> for pointing
out the use of sysctl().


git-svn-id: svn://10.0.0.236/trunk@74294 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 17:23:57 +00:00
mcafee%netscape.com
8ba8ceb464 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@74293 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 15:57:43 +00:00
mcafee%netscape.com
3f66cf83ee Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@74292 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 15:56:34 +00:00
mcafee%netscape.com
a848569bbc Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@74289 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 15:50:33 +00:00
rbs%maths.uq.edu.au
ccce3a7633 Temp. turn off non-TT fonts from the gGlobalFonts list in MathML-enabled builds. Change suggested by erik before going for his sabbatical
git-svn-id: svn://10.0.0.236/trunk@74288 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 08:07:24 +00:00
Peter.VanderBeken%pandora.be
dbef22ac56 Adding SOAP to mac projects. Not part of build. a=vidur.
git-svn-id: svn://10.0.0.236/trunk@74287 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 06:37:21 +00:00
idk%eng.sun.com
736f68d6bc ** Not tbuild part **
Ported BlackConnect to Linux. It is working wuth IBM jdk1.3


git-svn-id: svn://10.0.0.236/trunk@74286 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 06:18:54 +00:00
gagan%netscape.com
6a2e29868d Complete fix for bug 41433 (assert/crash in DNS for offline-online) We were not destroying the monitor in shutdown. r=bryner.
git-svn-id: svn://10.0.0.236/trunk@74285 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 01:47:30 +00:00
warren%netscape.com
0b5670eee7 Fixed reentrancy into service manager getting the PSM component. Fixed some warnings too. r=dprice
git-svn-id: svn://10.0.0.236/trunk@74284 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 01:38:32 +00:00
idk%eng.sun.com
24ef32241f ** not part of tbox build **
Renamed makefiles.


git-svn-id: svn://10.0.0.236/trunk@74283 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 01:37:28 +00:00
javi%netscape.com
61e6729143 Fix P12 import on Solaris given the new NLS package.
git-svn-id: svn://10.0.0.236/trunk@74282 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 01:18:33 +00:00
vidur%netscape.com
b7674a0e8e SOAP listeners now get the protocol status as part of the response. This is not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@74281 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 00:24:27 +00:00
warren%netscape.com
6717724971 Fixed GetSearch to deal with urls that don't implement nsIURL. r=waterson
git-svn-id: svn://10.0.0.236/trunk@74280 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 00:14:02 +00:00
gagan%netscape.com
9723b01e4d Fixed bug 39610. Failed http auth were not being deleted from the single signon database. r=morse.
git-svn-id: svn://10.0.0.236/trunk@74279 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 00:12:27 +00:00
rginda%netscape.com
f05ffa274c removing bogus assert (per rogerl)
git-svn-id: svn://10.0.0.236/trunk@74278 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-15 00:01:25 +00:00
rjc%netscape.com
20494f74f7 Part of fix for nsbeta2+ bug # 28787: FTP listings of non-ascii filenames. r=gagan
git-svn-id: svn://10.0.0.236/trunk@74277 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:21:48 +00:00
dbaron%fas.harvard.edu
d8fbca3fa0 Fix bug 42895 (nsbeta2+), a huge leak whenever a text input receieves an event, by propogating SetDocument(null,...) calls to the anonymous content in ender-lite widgets so that script objects for that content are unrooted. r=hyatt, mjudge
git-svn-id: svn://10.0.0.236/trunk@74276 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:20:48 +00:00
mscott%netscape.com
e3c43054ee Bug #43691 --> fix pop uidl urls by supressing OnStart and OnStopRequest calls
if the url we are running isn't going to result in any new content.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74275 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:16:47 +00:00
javi%netscape.com
2b12d6c373 Make solaris join the realm of XPCOM
git-svn-id: svn://10.0.0.236/trunk@74274 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:13:45 +00:00
beard%netscape.com
04ddc4f4ec added operator[](const char*) to StringAtomTable.
git-svn-id: svn://10.0.0.236/trunk@74273 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:10:02 +00:00
ruslan%netscape.com
8573c07ccc Fix 45398, a=valeski, r=gagan
git-svn-id: svn://10.0.0.236/trunk@74272 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 23:01:53 +00:00
jfrancis%netscape.com
d07d2c5ad9 adding nsIEditorObserver
git-svn-id: svn://10.0.0.236/trunk@74271 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:42:52 +00:00
radha%netscape.com
1ecf6739ae Fix for 45297 r=pollmann
git-svn-id: svn://10.0.0.236/trunk@74270 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:42:33 +00:00
jfrancis%netscape.com
1aef464ec1 first checked in
git-svn-id: svn://10.0.0.236/trunk@74269 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:42:23 +00:00
jst%netscape.com
14a7bb93fc Fixing IDLC to play nicely in the new string world, not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@74268 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:37:55 +00:00
hangas%netscape.com
ba18a5248d Work on bug 43658 for classic skin, also fixes bug 45294 on win32 and linux. written by german, r= hangas
git-svn-id: svn://10.0.0.236/trunk@74267 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:35:05 +00:00
mcafee%netscape.com
d52690c937 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@74266 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:28:05 +00:00
rogerl%netscape.com
b8f931c969 Fixed slots for non-function vars, plus bug in slot xcrement.
git-svn-id: svn://10.0.0.236/trunk@74265 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:23:20 +00:00
andreas.otte%primus-online.de
f49c76a6d8 fix for bug 42342 [[regression] Text before ':' in URL is interpreted as protocol], we now try the www...com trick instead, not much better, but in alignment with our current fixup strategy, r=valeski@netscape.com, a=waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74264 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:21:52 +00:00
sfraser%netscape.com
495ff80f0b Fix for nsbeta2+ bug 31134 -- paste in edit menu not enabled correctly. Add a new command set for clipboard-related menu items, and fire it on Copy. Also ensure that UpdateCommands("focus") gets called on window activation, and when unfocussing a wiget in page.
r=hyatt, saari


git-svn-id: svn://10.0.0.236/trunk@74263 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 22:06:31 +00:00
sfraser%netscape.com
90b67a19b8 Fix for nsbeta2+ bug 31134 -- paste in edit menu not enabled correctly. Add a new command set for clipboard-related menu items, and fire it on Copy. Also ensure that Undo/Redo commands are updated correctly, and avoid bogus command updating in plain text compose (since that caused JS errors). r=kin,jfrancis.
git-svn-id: svn://10.0.0.236/trunk@74262 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 21:58:50 +00:00
tao%netscape.com
aa8deabe77 rip out obsolete code.
git-svn-id: svn://10.0.0.236/trunk@74261 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 21:35:55 +00:00
tao%netscape.com
6a9c00a7e0 45262 Check-In "View | Set Language/Region" code to better
expose the Counrty Picker feature to user.r=ftang


git-svn-id: svn://10.0.0.236/trunk@74260 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 21:27:43 +00:00
radha%netscape.com
9546eaefab fix for 44963.crash in SH while clicking in the throbber. r=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74259 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 21:06:20 +00:00
law%netscape.com
db1ec9cb0c Bug 32357; fix context menus for file/directory listings; r=waterson
git-svn-id: svn://10.0.0.236/trunk@74258 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 20:30:07 +00:00
kin%netscape.com
19eb078c58 Fix for bug #45002: Password displayed in clear text.
layout/html/forms/src/nsGfxTextControlFrame2.cpp
      - Modified CreateAnonymousContent() to disable forced
        refreshes and reflows in the editor, and call
        SetTextControlFrameState() to set the intial value
        of the text widget.
      - Fixed leak in SetTextControlFrameState().

    editor/public/nsIHTMLEditor.h
      - Added DisableForcedUpdates and DisableForcedRefreshes flags.

    editor/base/nsEditor.cpp
      - Modified EndUpdateViewBatch() so that it uses the new
        DisableForcedUpdates and DisableForcedRefreshes flags.
      - We now also close the reflow batch before we close the
        update batch.

r=brade@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74257 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 20:26:09 +00:00
jfrancis%netscape.com
51f6b4f01c reserving iid for nsIEditorObserver; NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@74256 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 19:12:30 +00:00
dougt%netscape.com
06927daab1 First draft of a unix export file.
(not part of build)


git-svn-id: svn://10.0.0.236/trunk@74255 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:44:40 +00:00
anthonyd%netscape.com
57bfacee97 fix for regression, bug#45477
cant insert hrules, images, etc...
r=brade, a=granrose


git-svn-id: svn://10.0.0.236/trunk@74254 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 18:38:24 +00:00
dougt%netscape.com
eb35e21bbf Updating with the latest and greatest listing.
git-svn-id: svn://10.0.0.236/trunk@74253 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 17:26:58 +00:00
vidur%netscape.com
1ce8e67131 Fixed Mac casting problem. This is not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@74252 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 16:25:09 +00:00
granrose%netscape.com
9d84bbcfc3 removing three lines from packages-unix that were deleting files that don't exist and generating warnings during packaging.
git-svn-id: svn://10.0.0.236/trunk@74251 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 15:34:49 +00:00
terry%mozilla.org
f9b5e013ed Don't lowercase the entries in legal_keywords.
git-svn-id: svn://10.0.0.236/trunk@74250 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 15:31:43 +00:00
Jerry.Kirk%Nexwarecorp.com
d8c3615da0 NOT PART OF MAIN BUILD - PHOTON ONLY
I needed export a few more files for the test app and add a new virtual
method that has been added since I last checked in this code.
r=jerry.kirk


git-svn-id: svn://10.0.0.236/trunk@74249 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 14:54:04 +00:00
Jerry.Kirk%Nexwarecorp.com
ebec5605e4 NOT PART OF BUILD - PHOTON ONLY
Added a little character conversion to get some special characters
to display correctly on yahoo and abcnews. This has already been
added for other platforms like GTK. author=briane@qnx.com
r=jerry.kirk


git-svn-id: svn://10.0.0.236/trunk@74248 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 14:03:03 +00:00
Peter.VanderBeken%pandora.be
5aaef2956a Make sure to return the prefix for attributes if necessary. Not part of build. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@74247 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 10:32:52 +00:00
rjc%netscape.com
873cf151d5 Part of fix for nsbeta2+ bug # 28787: FTP listings of non-ascii filenames. r=me
git-svn-id: svn://10.0.0.236/trunk@74246 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 09:07:13 +00:00
mscott%netscape.com
36f11fb439 fix mac breakge. I don't think we did it correctly last time. (mscott and bhuvan)
git-svn-id: svn://10.0.0.236/trunk@74245 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 08:29:45 +00:00
idk%eng.sun.com
49187dc0e6 ** NOT PART OF TBOX BUILDS**
Add checking code for component creation


git-svn-id: svn://10.0.0.236/trunk@74244 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 07:19:49 +00:00
mscott%netscape.com
6d34885b89 Backing out gagan's check in as this causes linux to crash on exit which is turning all the linux
builds orange.


git-svn-id: svn://10.0.0.236/trunk@74243 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 06:27:54 +00:00
mscott%netscape.com
3c994edb8d Bug #35744 --> fix hang when fetching urls that don't exist. The fix was to
implement nsIWebProgressListener by the url fetcher. This will tell us when
we've failed to fetch the url. Also had to make sure we passed in a valid load group to the
channel. And added protection to make sure the OnStopRequest doesn't get processed twice.

One caveat is still left with this bug: you are still prompted after each url we fail to load. This
is pretty annoying.

r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@74242 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 06:18:44 +00:00
brendan%mozilla.org
b5e74c9818 Fix for..in loop bug that reopened 41126 (r=jband@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@74241 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 05:37:40 +00:00
brendan%mozilla.org
00f93edbeb Fix 41381 regression from last fix attempt (r=jband).
git-svn-id: svn://10.0.0.236/trunk@74240 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 05:35:08 +00:00
jband%netscape.com
8ddf28d7f5 Fix dropProperty crash. This is needed because the JSObjects used by xpconnect wrapped natives need to act both as host objects with non-slot properties and as a plain JSObjects using the default JSOps and all that entails. So, we can't be passing the host-style props to dropProperty though we do still need to do so for other props. This has only been working up to now by luck. r=brendan@mozilla.org a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74239 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 05:34:46 +00:00
mscott%netscape.com
82915331fc fix mac breakge (mscott and bhuvan)
git-svn-id: svn://10.0.0.236/trunk@74238 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 05:13:16 +00:00
neeti%netscape.com
8289d2fcfe fix for bug 40449, Cache does not store latest value of pages, r/a=gagan
git-svn-id: svn://10.0.0.236/trunk@74237 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 03:58:02 +00:00
gagan%netscape.com
27cf2fa9c2 Removed a not-being-used file.
git-svn-id: svn://10.0.0.236/trunk@74236 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 03:20:33 +00:00
endico%mozilla.org
f0886fcfef change '@::legal_resolution_no_dup' to '@::settable_resolutions'. This a list of resolutions which a bug may be changed to in the bug form and consists of all legal resolutions except 'MOVED' and 'DUPLICATE', since setting a bug to those resolutions requires a special process.
git-svn-id: svn://10.0.0.236/trunk@74235 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 03:20:17 +00:00
racham%netscape.com
e83db94f62 Fixing bug 13850. Profile Manager now handles out of disk space errors passed by prefmigrator. r=dbragg
git-svn-id: svn://10.0.0.236/trunk@74234 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 03:10:18 +00:00
gagan%netscape.com
e4e57e4361 Fix for bug 41433 (assert/crash in DNS for offline-online) We were not destroying the monitor in shutdown. r=bryner
git-svn-id: svn://10.0.0.236/trunk@74233 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 03:07:35 +00:00
gagan%netscape.com
55c1bd36bb Removed a not-being-used file. r=warren
git-svn-id: svn://10.0.0.236/trunk@74232 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 02:43:12 +00:00
morse%netscape.com
9d0c30d762 partial fix for 44514 -- slow on first form submission, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@74231 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:58:18 +00:00
tao%netscape.com
32a68c36df back out unintentional checkin.
git-svn-id: svn://10.0.0.236/trunk@74230 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:53:15 +00:00
rogerl%netscape.com
3b8f784bce Backed out time()
git-svn-id: svn://10.0.0.236/trunk@74229 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:46:14 +00:00
dbaron%fas.harvard.edu
30fe01caa1 Clean up stack trace horribly mangled by some editor. Documentation changes only (not part of build).
git-svn-id: svn://10.0.0.236/trunk@74228 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:41:11 +00:00
mscott%netscape.com
b489157351 Bug #44587 --> fix send mail via aol. caching of smtp values was breaking this. so
you could only send one message. Subsequent message sends fail.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@74227 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:38:55 +00:00
rogerl%netscape.com
d2493254c5 Type targetted binary operators.
Added 'time()' function as native.


git-svn-id: svn://10.0.0.236/trunk@74226 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 01:00:53 +00:00
dbaron%fas.harvard.edu
eaf444d02e "AUTHOR INFO HERE" isn't a very useful comment. Add author info.
git-svn-id: svn://10.0.0.236/trunk@74225 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:54:24 +00:00
pavlov%netscape.com
ec2c7e75ed sigh. checking in a better fix
git-svn-id: svn://10.0.0.236/trunk@74224 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:49:27 +00:00
nelsonb%netscape.com
4a93e035ae MPI Arbitrary Precision Integer Arithmetic library.
The Initial Developer of the Original Code is
Michael J. Fromberger <sting@linguist.dartmouth.edu>


git-svn-id: svn://10.0.0.236/trunk@74223 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:45:02 +00:00
pavlov%netscape.com
02ffe41ed5 fixing stupid mac build bustage
git-svn-id: svn://10.0.0.236/trunk@74222 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:35:26 +00:00
vidur%netscape.com
986c918c92 Got rid of unused, unimplemented nsISOAPCall:SetSimpleParameters. The script version of nsISOAPCall::SetParameters does exactly this. This is not part of the default build
git-svn-id: svn://10.0.0.236/trunk@74221 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:34:50 +00:00
vidur%netscape.com
f6317563bc Added xmlextras/soap to allmakefiles.sh (not part of default build)
git-svn-id: svn://10.0.0.236/trunk@74220 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:26:38 +00:00
tao%netscape.com
465800e1c1 39790 : [L12y] Move all localizable prefs into chrome://.r=rjc
git-svn-id: svn://10.0.0.236/trunk@74219 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:06:38 +00:00
endico%mozilla.org
784fc13494 oops, remove testing cruft
git-svn-id: svn://10.0.0.236/trunk@74218 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:03:48 +00:00
tao%netscape.com
6566e383a8 39790 : [L12y] Move all localizable prefs into chrome:// .r=rjc.
git-svn-id: svn://10.0.0.236/trunk@74217 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-14 00:01:33 +00:00
endico%mozilla.org
65ae75ca0b move the 'Move Bug" button so its less likely to be confused with the commit button
git-svn-id: svn://10.0.0.236/trunk@74216 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:57:18 +00:00
pavlov%netscape.com
1886d77b58 fix for secure imap and news bug 39154 r=mscott
git-svn-id: svn://10.0.0.236/trunk@74215 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:53:54 +00:00
pchen%netscape.com
cb62757f25 Partial fix 44281 r=dougt, add certificate authority status bar XUL item and a spring to make it stick to immediate left of security lock icon
git-svn-id: svn://10.0.0.236/trunk@74214 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:52:22 +00:00
pchen%netscape.com
0a774f4ecd Partial fix 44281 r=dougt, add mCertificateAuthorityDisplay member
git-svn-id: svn://10.0.0.236/trunk@74213 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:52:10 +00:00
pchen%netscape.com
a62d5fca9b Partial fix 4428 r=dougt, set mCertificateAuthorityDisplay inside init(), change it whenever we change security lock status
git-svn-id: svn://10.0.0.236/trunk@74212 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:52:09 +00:00
pchen%netscape.com
1c97a2a7c9 Partial fix 44281 r=dougt, get certificate authority XUL element and pass that into secruityUI.init()
git-svn-id: svn://10.0.0.236/trunk@74211 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:52:08 +00:00
pchen%netscape.com
956ccecfa1 Partial fix 44281 r=dougt, added certauth parameter to init()
git-svn-id: svn://10.0.0.236/trunk@74210 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:52:07 +00:00
tao%netscape.com
016fdbee0e 39790 : [L12y] Move all localizable prefs into chrome:// .r=morse
git-svn-id: svn://10.0.0.236/trunk@74209 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:51:35 +00:00
tao%netscape.com
a9fb1d5249 39790 : [L12y] Move all localizable prefs into chrome:// .r=morse,valeski.
git-svn-id: svn://10.0.0.236/trunk@74208 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:50:21 +00:00
tao%netscape.com
45a87f1bff 39790 : [L12y] Move all localizable prefs into chrome://.r=morse.
git-svn-id: svn://10.0.0.236/trunk@74207 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:46:53 +00:00
tao%netscape.com
55e8b84196 39790 : [L12y] Move all localizable prefs into chrome:// .r=valeski.
git-svn-id: svn://10.0.0.236/trunk@74206 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:45:10 +00:00
dbragg%netscape.com
764d71efbd Fixed some potential NASTY bugs related to fix for bug #36249. Specifically corrupting the users 4.x prefs.js file. Very bad. r=racham
git-svn-id: svn://10.0.0.236/trunk@74205 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:29:24 +00:00
cmanske%netscape.com
6718684d1e Fixed wrong method call to set background image for Table Dialog. Part of work for 20973, r=mjudge
git-svn-id: svn://10.0.0.236/trunk@74204 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:20:42 +00:00
mjudge%netscape.com
d6fdcca880 storing the factory as a weak reference. speeding up ender-lite. r= anthonyd, r= jfrancis
git-svn-id: svn://10.0.0.236/trunk@74203 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:20:15 +00:00
mjudge%netscape.com
1e328a1b18 removing unnecessary ifdef
git-svn-id: svn://10.0.0.236/trunk@74202 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:19:21 +00:00
mjudge%netscape.com
58aa190a55 making the element factory support weak references. needed to make ender-lite faster.
git-svn-id: svn://10.0.0.236/trunk@74201 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:18:37 +00:00
mcafee%netscape.com
078be2dc0e Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@74200 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:42 +00:00
mjudge%netscape.com
1f23cf0495 anthonyd: r=mjudge bug 39919 letting DOM level 2 stuff work for the editor. eliminating createelementNS and using the factory instead.
git-svn-id: svn://10.0.0.236/trunk@74199 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:15:41 +00:00
endico%mozilla.org
47f5d073f0 Bug moving code is now fully implemented. To use it, turn on the param and set the move related params.
git-svn-id: svn://10.0.0.236/trunk@74198 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:12:52 +00:00
vidur%netscape.com
bc2de9b1ae Added SOAP component tothe XMLExtras module. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@74197 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:12:39 +00:00
vidur%netscape.com
a84fc8ed95 SOAP calling tests
git-svn-id: svn://10.0.0.236/trunk@74196 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:11:59 +00:00
vidur%netscape.com
24c3708e0f Additional SOAP call work. This is not part of the Seamonkey project.
git-svn-id: svn://10.0.0.236/trunk@74195 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:11:16 +00:00
vidur%netscape.com
f50db6ee93 Commented nsIXMLHttpRequest. Used the new nsIXPCNativeCallContext::SetReturnValueWasSet method to deal with returning event handler function objects to script callers of nsIXMLHttpRequest::Onload and Onerror. Turned on synchronous requests. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@74194 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:08:30 +00:00
jband%netscape.com
7b95a566f5 add THREADSAFE nsISupports implementation macros to some of the classes which lacked them. bug 45404. a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74193 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:04:15 +00:00
hyatt%netscape.com
c23002ba84 Fix for 43467. r=bryner
git-svn-id: svn://10.0.0.236/trunk@74192 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 23:00:59 +00:00
tao%netscape.com
7b07c56907 42748 After selecting locale for new profile, different profile does not
switch back.(r,a)=hyatt


git-svn-id: svn://10.0.0.236/trunk@74191 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:59:22 +00:00
akkana%netscape.com
b1d2c282a3 Take my name out of a debug printf -- tired of seeing all that output
git-svn-id: svn://10.0.0.236/trunk@74190 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:50:39 +00:00
akkana%netscape.com
bc856a5cb9 42885: The other platforms define cut/copy/paste in their platform files (why?), so, sigh, do the same thing, for now. r=saari
git-svn-id: svn://10.0.0.236/trunk@74189 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:21:42 +00:00
akkana%netscape.com
956e3e05a8 42885: Add cut/copy/paste/undo/redo bindings. r-saari
git-svn-id: svn://10.0.0.236/trunk@74188 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 22:10:13 +00:00
morse%netscape.com
acbc713c55 sidestep bug 43200, coded by jrgm, r=morse&hyatt
git-svn-id: svn://10.0.0.236/trunk@74187 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:54:37 +00:00
jst%netscape.com
f3b7df1a2e Fixing (partially at least) nsbeta2+ bug 38951, the problem was that properties on closed window objects were not accessible due to the document being destroyed to soon. We still destroy the document too soon but now we at least hold on to the document principal in the window object so that we don't bail on every security check done for every access to properties the closed window. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74186 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:48:25 +00:00
varada%netscape.com
f147f23011 fix for bug#41678 -need printplus in addressbook.xul;r=scottip
git-svn-id: svn://10.0.0.236/trunk@74185 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:46:52 +00:00
akkana%netscape.com
01ccd93d46 42885: Add cut/copy/paste bindings for input fields and text areas. r=saari
git-svn-id: svn://10.0.0.236/trunk@74184 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:38:32 +00:00
endico%mozilla.org
8a584f071d Add 'MOVED' as a default resolution. If CheckEnumField alters the bug db then update the shadow db too.
git-svn-id: svn://10.0.0.236/trunk@74183 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:38:15 +00:00
matt%netscape.com
4f1747de4a changing url for chrome to fix bug 43223
r=ben


git-svn-id: svn://10.0.0.236/trunk@74182 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:36:40 +00:00
ftang%netscape.com
de073507d6 fix bug 43272. r=ssu/dvetidz . check nsresult by using NS_FAILED instead of NS_OK !=
becaues the Japanese to Unicode converter may return success code whihc is not NS_OK


git-svn-id: svn://10.0.0.236/trunk@74181 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:21:24 +00:00
erik%netscape.com
5eeeba2ff6 bug 39570; we were using the Western font to determine the height of the
URL bar, and this caused the Japanese text to be truncated; we now use the
locale's language group when the caller does not pass us the correct one;
r=nhotta


git-svn-id: svn://10.0.0.236/trunk@74180 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:13:13 +00:00
erik%netscape.com
028aa255d5 bug 39570; was using Korean font for Japanese text; we now use the locale's
language group when the document is in Unicode; r=nhotta


git-svn-id: svn://10.0.0.236/trunk@74179 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:10:34 +00:00
erik%netscape.com
c6b2ec4689 bug 22031; enabling raster (bitmap) fonts on Windows, e.g. for UI;
r=rods,rbs


git-svn-id: svn://10.0.0.236/trunk@74178 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:08:37 +00:00
chuang%netscape.com
e36a60e6a5 Bug 45282 No Address Book in today's Linux build. r=alecf
git-svn-id: svn://10.0.0.236/trunk@74177 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:07:01 +00:00
mkaply%us.ibm.com
6f5c8bba6b #39218
r = ben, a = waterson
I am checking this in for jag - new animation for modern skin that has rounded edges


git-svn-id: svn://10.0.0.236/trunk@74176 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 21:04:54 +00:00
evaughan%netscape.com
51491965b2 Fix for bug #44576
-r jrgm

PS: Last checkin was reviewed by waterson. Forgot the -r


git-svn-id: svn://10.0.0.236/trunk@74175 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:58:42 +00:00
nhotta%netscape.com
98c610b5a9 Added a charset load listener for mail, bug 28869,r=cata.
git-svn-id: svn://10.0.0.236/trunk@74174 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:57:46 +00:00
nhotta%netscape.com
4861d70cd9 Added a mail charset menu cache support, bug 28869,r=cata.
git-svn-id: svn://10.0.0.236/trunk@74173 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:55:52 +00:00
nhotta%netscape.com
97a395aadf Changed to check override case before set a charset to msgWindow, bug 28869, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@74172 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:53:57 +00:00
evaughan%netscape.com
10a4df8c45 Fix for ender clip widget bug #42451
git-svn-id: svn://10.0.0.236/trunk@74171 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:51:39 +00:00
dougt%netscape.com
5db9479d39 *NOT PART OF BUILD*
Embedding exporter.


git-svn-id: svn://10.0.0.236/trunk@74170 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:40:21 +00:00
varada%netscape.com
95a6488ff8 changing the exe name from Netscapesetup to N6setup
git-svn-id: svn://10.0.0.236/trunk@74169 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:31:14 +00:00
terry%mozilla.org
bec7111c1d Oops. How did I let that horrible typo get in?
git-svn-id: svn://10.0.0.236/trunk@74168 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:07:20 +00:00
terry%mozilla.org
9126128ba9 Keywords were already enforced to never differ only in capitalization. So, changed the code so that case no longer matters when typing in the name of a keyword.
git-svn-id: svn://10.0.0.236/trunk@74167 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 20:04:15 +00:00
mkaply%us.ibm.com
0814704e83 #42637
r = mkaply, a = brendan
TINDERBOXBREAK - THIS FILE IS OS/2 ONLY


git-svn-id: svn://10.0.0.236/trunk@74166 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 15:39:52 +00:00
kin%netscape.com
d848b855b4 Fix for bug #43208: readonly text fields are not readonly
Modified CreateAnonymousContent() and AttributeChanged()
to set the editor's readonly and disabled flags.
r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74165 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 13:51:37 +00:00
blizzard%redhat.com
467bf3303a fix focus problems documented in bug #45351. make sure that key press events are not passed to mozilla windows when an external gtk widget has focus and make sure that key press events are passed to mozilla when it has focus and a key press event happens outside of its windows. r=pavlov a=waterson
git-svn-id: svn://10.0.0.236/trunk@74164 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 11:48:28 +00:00
taka%netscape.com
7fd6e8e721 fix for #43219. r=alecf,nhotta
git-svn-id: svn://10.0.0.236/trunk@74163 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 07:17:03 +00:00
mscott%netscape.com
1cefd5cc5e Bug #43583 --> bring up the save as dialog from the backend instead of from the front end.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74162 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 06:26:25 +00:00
mscott%netscape.com
0182f2a741 Bug #43583 --> set the application description field on the mime info object based on a registry setting if we are getting the
information from the windows registry. This is later used by the helper app dialog. Correctly implement different
behaviors for mime info action types of useSystemDefault vs. useHelperApp
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74161 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 06:25:53 +00:00
brendan%mozilla.org
5ecfd2355f Why didn't the lack of this break Linux, where I tested?
git-svn-id: svn://10.0.0.236/trunk@74160 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:56:28 +00:00
mscott%netscape.com
cec6947904 Bug #44603 --> hack to get around an infinite loop if we try to open a .eml attachment
The fix: if the attachment is of type message/rfc822 then treat the outgoing content
as raw data to force a new browser window to come up and display the content.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74159 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:28:51 +00:00
syd%netscape.com
33ca3be564 Add makefiles for JS profiler
git-svn-id: svn://10.0.0.236/trunk@74158 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:19:46 +00:00
syd%netscape.com
3ffc713fbf Add support to JS profiler for collecting min, max, and average execution
times of functions. Doesn't yet handle rentrancy. Create Makefile.in files
so this stuff will build on *nix. r=jband, a=leaf


git-svn-id: svn://10.0.0.236/trunk@74157 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:19:22 +00:00
alecf%netscape.com
fde537da4e Fix for #37302, among other things - bring lots of mail menus up to spec- patch contributed by timeless@bemail.org r=alecf, a=brendan
git-svn-id: svn://10.0.0.236/trunk@74156 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:18:17 +00:00
brendan%mozilla.org
854313ee5e Try again for bug 41381, r=wtc@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74155 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 05:08:35 +00:00
rbs%maths.uq.edu.au
284a2a04fc [not part of default build] perf. enh. in the land of stretchy chars. a:waterson
git-svn-id: svn://10.0.0.236/trunk@74154 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 04:18:35 +00:00
rbs%maths.uq.edu.au
7c42c8c238 Fix build bustage. b:42793. a:waterson
git-svn-id: svn://10.0.0.236/trunk@74153 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 04:16:01 +00:00
rhp%netscape.com
bc7240cef6 Fix for crashing in forward - reply - Bug #: 45216 - r: alecf
git-svn-id: svn://10.0.0.236/trunk@74152 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 04:02:35 +00:00
brendan%mozilla.org
281682666b Uh oh. Back out last change until I'm sure I'm not an idiot.
git-svn-id: svn://10.0.0.236/trunk@74151 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 04:00:33 +00:00
brendan%mozilla.org
8f313d2720 Fix ancient bugs: compare-and-swap is not threadsafe given A-B-A address replay via malloc/free; release to mark in pool->first empty arena would not free anything, as troy@tellme.com found (41381, r=wtc@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@74150 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:49:22 +00:00
idk%eng.sun.com
4f30d77c4b ** NOT PART OF TBOX BUILDS**
Addon to previous check in


git-svn-id: svn://10.0.0.236/trunk@74149 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:41:24 +00:00
idk%eng.sun.com
1b048e4a15 ** NOT PART OF TBOX BUILDS**
Upgraded blackConnect for M16.
Added make files for win


git-svn-id: svn://10.0.0.236/trunk@74148 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:36:02 +00:00
waterson%netscape.com
9f71ef28c6 Inline 'operator PRUnichar*()', 'operator char*()'; add inline 'get()' methods. r=brendan
git-svn-id: svn://10.0.0.236/trunk@74147 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 03:20:28 +00:00
sgehani%netscape.com
a4160a0f93 *** NOT PART OF TBOX BUILDS ***
1> Enabling talkback in Unix and Mac builds [bugscape nsbeta2+ b=1405]
2> Adding en-US and en-GB language packs to installers [nsbeta2+ b=41054]

[r=ssu]


git-svn-id: svn://10.0.0.236/trunk@74146 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 02:56:21 +00:00
jst%netscape.com
d32b36fc15 Fixing nsbeta2+ bug 44022. Loading javascript: URL's from a plugin wasn't always working. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74144 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 02:44:14 +00:00
brendan%mozilla.org
0bbe899178 Avoid costly GetScheme on nsSimpleURI, and avoid yet another "javascript:" string literal and the consequent PL_strcasecmp call, in favor of a fast NUL first-char test.
git-svn-id: svn://10.0.0.236/trunk@74143 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 02:30:16 +00:00
beard%netscape.com
c9aa3f4e54 need <stdio.h> for fopen on the Mac.
git-svn-id: svn://10.0.0.236/trunk@74142 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 02:23:55 +00:00
morse%netscape.com
f33ac9074e restore what I backed out last night -- it wasn't breaking the build after all
git-svn-id: svn://10.0.0.236/trunk@74141 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 01:45:55 +00:00
beard%netscape.com
29fcfa000e fixing readEvalFile to save off important Context data members. implemented identical_Default for string
git-svn-id: svn://10.0.0.236/trunk@74140 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 01:35:57 +00:00
despotdaemon%netscape.com
594bb3c2bb Pseudo-automatic update of changes made by asa@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@74139 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:55:24 +00:00
mscott%netscape.com
312b35db9d quick patch to fix the mac build. Mac doesn't seem to like NS_LITERAL_STRING for a const char * defined using a #define.
git-svn-id: svn://10.0.0.236/trunk@74138 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:49:53 +00:00
despotdaemon%netscape.com
596fcc9f66 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@74137 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:45:59 +00:00
beard%netscape.com
fe002abe93 fixing readEvalFile() by creating another Context
git-svn-id: svn://10.0.0.236/trunk@74136 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:44:30 +00:00
law%netscape.com
463bdcadbe Bug 43583; tweaks to new helper app launch dialog; r=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74135 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:44:26 +00:00
rogerl%netscape.com
1fc062cb5a Switching to generic binary operator in order to distinguish situation
where Operators package had been loaded and be able to generate typed
versions of the binary operators otherwise.


git-svn-id: svn://10.0.0.236/trunk@74134 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:14:54 +00:00
hyatt%netscape.com
c66b181658 Additional fix for not scrolling to bottom of tree (dogfood bug), r=bryner
git-svn-id: svn://10.0.0.236/trunk@74133 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:12:38 +00:00
ssu%netscape.com
0143fd2ac8 fixing bug #45256 - added comments to config.ini for localization scripts to key off of. Not part of tinderbox build. nsbeta2+. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@74132 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:11:52 +00:00
ssu%netscape.com
97aa35a9c3 to aid in fixing bug #45256. These files are not part of the build, and won't be. They are tools to help the localization team
git-svn-id: svn://10.0.0.236/trunk@74131 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-13 00:09:41 +00:00
dougt%netscape.com
db020b04c0 Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@74130 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:59:33 +00:00
vidur%netscape.com
ffd0cb1a4e Fix for bug 44608. Added nsIDocShellTreeOwner::ExitModalLoop() and nsIWebBrowserChrome::ExitModalEventLoop(). r=rpotts,a=valeski
git-svn-id: svn://10.0.0.236/trunk@74129 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:56:14 +00:00
jfrancis%netscape.com
fb9119fcee fix for 36570; mail signature shows up in middle of quoted text
git-svn-id: svn://10.0.0.236/trunk@74128 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:44:56 +00:00
dougt%netscape.com
db2c70c95b bug 40750.
Adding followSymlink flag to nsILocalFile.
Adjusting callers.
windows shortcut optimizations.
r=blizzard@mozilla.org.
a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@74127 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:31:31 +00:00
pnunn%netscape.com
86f53d33c9 fix for bug#40785, #40767: added new state so gif load can be aborted without
an error. pnunn   rev:kin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@74126 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:27:54 +00:00
jfrancis%netscape.com
57a7c5fa33 fix for 43903; making a list after inline contnet doesnt work
git-svn-id: svn://10.0.0.236/trunk@74125 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:21:49 +00:00
ruslan%netscape.com
a5bf6f1545 Fix MAC bustage
git-svn-id: svn://10.0.0.236/trunk@74124 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:20:04 +00:00
dmose%mozilla.org
cd24ad0abe added a few issues that came up while revamping the callback model
git-svn-id: svn://10.0.0.236/trunk@74123 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:08:11 +00:00
dmose%mozilla.org
5b8b7f50cf a per-connection nsILDAPMessageListener is no longer necessary. removed. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@74122 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:06:37 +00:00
dmose%mozilla.org
429ae87836 Revamped callback code so that nsILDAPMessageListener is a per operation attribute rather than a per connection attribute. This allows for much more flexibility in handling LDAP messages received, as well as sharing of LDAP connections (a performance win). Also modified nsISupports proxy usage so that I can callback to nsILDAPMessageListeners implemented in JS (thanks dougt). a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@74121 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 23:05:27 +00:00
bienvenu%netscape.com
e16a8ebe53 fix 45184 crash involving rdf literals r=alecf
git-svn-id: svn://10.0.0.236/trunk@74120 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:54:45 +00:00
mscott%netscape.com
c3d34064e6 Bug #44635 --> when replying or forwarding a message, we were passing in a bogus channel when we tried to fetch
the message for quoting purposes. As a result, the content type (which includes the charset information for the message)
was not getting set on the right channel. I changed things so we pass in the real channel and not a bogus one.

r=alecf


git-svn-id: svn://10.0.0.236/trunk@74119 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:54:19 +00:00
syd%netscape.com
2dd747e17f r=law, vishy
This is part of a ns commercial nsbeta2+ bug fix. Instead of hardcoding the
DDE application name (e.g., Mozilla), read it from a string table for win32.


git-svn-id: svn://10.0.0.236/trunk@74118 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:45:11 +00:00
mcgreer%netscape.com
951eff21a1 fingerprint had to handled in certutil for now since SECU_PrintCertificate receives a decoded DER. see #45303
git-svn-id: svn://10.0.0.236/trunk@74117 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:42:57 +00:00
mkaply%us.ibm.com
133bba6441 #40177
r=cls, a=brendan
Tinderbox break - need MOZ_JS_LIBS - cls approved on #mozilla


git-svn-id: svn://10.0.0.236/trunk@74116 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:42:41 +00:00
ruslan%netscape.com
d6f50841f6 Fix 45061, a/r=gagan
git-svn-id: svn://10.0.0.236/trunk@74115 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:41:26 +00:00
jdunn%netscape.com
8dd9b14bc1 do not include -lm for HPUX (as well as BeOS)
r= leaf@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@74114 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:41:17 +00:00
mkaply%us.ibm.com
072d598cd8 r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME - for some things


git-svn-id: svn://10.0.0.236/trunk@74113 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:38:28 +00:00
akkana%netscape.com
a97601cfa7 Partial fix for 42885: several of the bindings weren't there, but even
when they're there, the XBL events still don't work right. r=saari


git-svn-id: svn://10.0.0.236/trunk@74112 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:34:16 +00:00
dougt%netscape.com
79296d7ae4 removing -nologo. It is reduntant. ra=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@74111 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:33:55 +00:00
hyatt%netscape.com
5882acb105 Fix for smoketest blocker. r=saari, bug#=35952
git-svn-id: svn://10.0.0.236/trunk@74110 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 22:24:29 +00:00
mcgreer%netscape.com
72e2f0642e add fingerprints to info dumped with certificate
git-svn-id: svn://10.0.0.236/trunk@74109 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 20:48:47 +00:00
brade%netscape.com
60e2ec2dcd add id to print item; r=kin; bug #43904
git-svn-id: svn://10.0.0.236/trunk@74105 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 14:48:13 +00:00
rhp%netscape.com
f01f98e198 Properties change for prompt language change - Bug #: 1429 - r: sol
git-svn-id: svn://10.0.0.236/trunk@74104 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 14:04:42 +00:00
Jerry.Kirk%Nexwarecorp.com
24515c014a Added new Photon Embedding directories.
git-svn-id: svn://10.0.0.236/trunk@74103 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 13:56:39 +00:00
Jerry.Kirk%Nexwarecorp.com
709aac5742 NOT PART OF BUILD - PHOTON ONLY
Adding the PtMozilla widget for the first time.
Submited by briane@qnx.com
r=kirkj


git-svn-id: svn://10.0.0.236/trunk@74102 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 13:53:29 +00:00
ben%netscape.com
737d0ac5dd fix for profile manager header (fix circle and icon)
git-svn-id: svn://10.0.0.236/trunk@74101 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:55:58 +00:00
dprice%netscape.com
d728d07b1e NOT IN THE BUILD
adding jar.mn file to chatzilla for the eventual repackaging of the chrome into jar files.


git-svn-id: svn://10.0.0.236/trunk@74100 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:52:02 +00:00
dprice%netscape.com
7c8108bb0e NOT IN THE BUILD
git-svn-id: svn://10.0.0.236/trunk@74099 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:50:37 +00:00
dprice%netscape.com
59521ec65a NOT IN THE BUILD
Modified the xinstall:: rule


git-svn-id: svn://10.0.0.236/trunk@74098 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:45:26 +00:00
dprice%netscape.com
95be416760 fixed a crasher when getting the length of an empty string.
git-svn-id: svn://10.0.0.236/trunk@74097 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:39:34 +00:00
ben%netscape.com
24df298bdb fix for b28186, rename to existing profile does not re-prompt for correct profile name
git-svn-id: svn://10.0.0.236/trunk@74096 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:20:06 +00:00
ben%netscape.com
b22151fdfd 27526 - focus tree widget in profile manager on startup.
git-svn-id: svn://10.0.0.236/trunk@74095 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 07:07:55 +00:00
ben%netscape.com
68b6b97dca fixes for 39923 and 38201, urlbar history popup navigation problems
git-svn-id: svn://10.0.0.236/trunk@74094 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 06:44:12 +00:00
mscott%netscape.com
f4d3d99bbf Bug #43583 --> throw the switch for the helper app dialog. Start invoking the helper app dialog and bring it
up whenever the user trys to launch a helper app. This was submitted by bill law. r=mscott

also, use the file name in the url as the basis for the temporary file name.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74093 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 06:09:02 +00:00
cls%seawood.org
a376fa0f63 Fix for BeOS bustage.
git-svn-id: svn://10.0.0.236/trunk@74092 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 06:08:19 +00:00
ben%netscape.com
a86d220748 fix for 32255, remove placeholder text in migrate before-delete dialog, and updated code to reflect correct behaviour.
git-svn-id: svn://10.0.0.236/trunk@74091 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 05:19:28 +00:00
mscott%netscape.com
090ca37720 Fix for Bug #41707 --> JS and data urls were not getting an owner set on them when they were entered from the urlbar. this
prevented them from getting executed properly. For now, we'll inherit the owner of the current document in these
two cases.
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@74090 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 05:06:28 +00:00
ben%netscape.com
78d12f7e91 fixes for 32034 (sidebar search won't work from mail) and other search
problems (cannot sort search engines, etc)


git-svn-id: svn://10.0.0.236/trunk@74089 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 05:01:34 +00:00
tonyr%fbdesigns.com
0841f06eb3 Fix for bustage, added msgUtil.lib projects to link.
git-svn-id: svn://10.0.0.236/trunk@74088 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 04:43:55 +00:00
morse%netscape.com
b0d6619126 backing out change temporarily till I figure out why it broke the mac build
git-svn-id: svn://10.0.0.236/trunk@74087 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 04:30:05 +00:00
tonyr%fbdesigns.com
ddc5d37277 Fix up strings for localisation. r=alecf, b=36483,39004
git-svn-id: svn://10.0.0.236/trunk@74086 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:58:17 +00:00
tonyr%fbdesigns.com
2f1ede35b7 fix for importing mutlibyte charset messages. r=rhp, b=33291
git-svn-id: svn://10.0.0.236/trunk@74085 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:57:10 +00:00
bienvenu%netscape.com
d198d723a4 fix imap subscribe ui problems, r=mscott 42106
git-svn-id: svn://10.0.0.236/trunk@74084 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:50:40 +00:00
sgehani%netscape.com
e3ee0afabe Make Linux and Mac installers install to the target directory instead of the
platform-specific notion of temp.

[dogfood+ b=45166; r=dveditz]


git-svn-id: svn://10.0.0.236/trunk@74083 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:42:35 +00:00
ben%netscape.com
2043381a3b small ammendment to earlier tooltip checkin for browser
git-svn-id: svn://10.0.0.236/trunk@74082 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:35:54 +00:00
jst%netscape.com
ce446bb897 Fixing nsbeta2+ bug 38610, don't throw a JS exception when .complete is accessed on an Image created in JS. r=pollman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74081 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:35:13 +00:00
racham%netscape.com
c59ec4122f Fixing bug 37398. Converting the migrated profile strings into the right type for i18n. r=nhotta
git-svn-id: svn://10.0.0.236/trunk@74080 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:25:24 +00:00
dbaron%fas.harvard.edu
130136440f Document recent changes to XPCOM memory tools. (Documentation. Not part of build.)
git-svn-id: svn://10.0.0.236/trunk@74079 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:21:45 +00:00
mstoltz%netscape.com
9e2ab39e7d Fixing 40159 and 44822, both [nsbeta2+] regressions on signed scripts. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@74078 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 03:10:33 +00:00
jst%netscape.com
eb460aaa2a Fixing nsbeta2+ bug 44115, properly handle area elements even if the href is a relative url, r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74077 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:42:28 +00:00
mcafee%netscape.com
cabdf873fd Fixing comment within comment warnings, duh. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@74076 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:35:59 +00:00
jst%netscape.com
97c25ed004 Fixing nsbeta2+ bug 44434, problems with width and height properties on preloaded images. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74075 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:30:42 +00:00
morse%netscape.com
9b7a0ffdc8 bug 44146, improperly parented modal dialogs, r=danm
git-svn-id: svn://10.0.0.236/trunk@74074 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:29:53 +00:00
dimator%netscape.com
2eef533bb3 bug 44252. Checking in for sspitzer. r=putterman
git-svn-id: svn://10.0.0.236/trunk@74073 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:23:10 +00:00
mcafee%netscape.com
1112918ea1 Checking in null pointer fix for bugscape:1205, netscape nsbeta2+ bug. r=saari
git-svn-id: svn://10.0.0.236/trunk@74072 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:22:41 +00:00
jst%netscape.com
a607a900c8 Fixing nsbeta2+ bug 44001, nulling out output parameters to avoid crasing. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74071 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 02:15:27 +00:00
mcafee%netscape.com
b3d537adfc Backing out last change to fix linux bustage. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@74070 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:47:00 +00:00
brendan%mozilla.org
d6a267cf1e Fix 'out of order' malloc failure-handling bug found by cgn1234@yahoo.com (41022, r=cgn1234).
git-svn-id: svn://10.0.0.236/trunk@74069 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:44:12 +00:00
dbaron%fas.harvard.edu
bafb8a90d7 Add the refcount balancer to mozilla/tools so it can be maintained more easily. This tool was written by Chris Waterson with contributions by a number of other people. I modified the files being added here from the most recent versions on http://www.mozilla.org/performance/refcnt-balancer.html in the following ways:
1) add find-comptr-leakers.pl to find leaks in nsCOMPtr logs
2) allow make-tree.pl to subtract nsCOMPtr logs


git-svn-id: svn://10.0.0.236/trunk@74068 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:32:54 +00:00
brendan%mozilla.org
69f9a89e40 Cleanups: don't decimate Unicode property ids to ISO-Latin-1 in CheckAccess; do use NS_SUCCEEDED instead of NS_OK==; don't use bogus tabs for indentation (r=jst@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@74067 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:20:49 +00:00
cmanske%netscape.com
c7e1286f2d Fixed warnings revealed by Linux build in table editing code
git-svn-id: svn://10.0.0.236/trunk@74066 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:15:17 +00:00
cmanske%netscape.com
e22e9309a7 Tweaked previous fix -- sfraser suggested a more efficient fix
git-svn-id: svn://10.0.0.236/trunk@74065 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:05:35 +00:00
cmanske%netscape.com
4a40e3830c Fixed build bustage for linux (why can't Linus do NS_LITERAL_STRING correctly!)
git-svn-id: svn://10.0.0.236/trunk@74064 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 01:00:58 +00:00
warren%netscape.com
9a47a3f8f6 Bug 40810 - warning message. Checking in for doronr@naboonline.com r=warren
git-svn-id: svn://10.0.0.236/trunk@74063 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:28:57 +00:00
javi%netscape.com
cb74a19f3a Make viewing CA certs during import work again.
git-svn-id: svn://10.0.0.236/trunk@74062 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:22:23 +00:00
ben%netscape.com
c530f2e58e fix for 27828, TITLE attribute shows tooltip in content area. patch from robert o'callahan, r=me.
git-svn-id: svn://10.0.0.236/trunk@74061 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:20:08 +00:00
hyatt%netscape.com
f72d1d522c Fix for XBL being able to execute scripts in skins. Bugzilla is down, so I can't give the number. r=danm
git-svn-id: svn://10.0.0.236/trunk@74060 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:17:07 +00:00
wtc%netscape.com
e6eb3e9a5c Bugzilla bug #45141: checked in an OS/2 patch from Michael Kaply
<mkaply@us.ibm.com>. a=waterson@mozilla.org.


git-svn-id: svn://10.0.0.236/trunk@74059 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-12 00:10:37 +00:00
nhotta%netscape.com
adfbc32c15 Changed to set mailCharacterSet in nsIMsgWindow so that the value can be used for a checkmark in charset menu, bug 28869, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@74055 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:51:38 +00:00
nhotta%netscape.com
c2421f5d7a Added mailCharacterSet to nsIMsgWindow to keep the charset used by libmime, bug 28869, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@74054 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:51:21 +00:00
rogerl%netscape.com
0fbe7a0bf0 Implemented Import -only it's not in the parser yet.
Added missing defineXXX functions.


git-svn-id: svn://10.0.0.236/trunk@74053 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:49:20 +00:00
edburns%acm.org
efad92ec96 Removed runem.solaris because we now have the cross platform runem.pl.
git-svn-id: svn://10.0.0.236/trunk@74052 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:44:35 +00:00
edburns%acm.org
2b9f6c2b26 Make it so params are correctly passed to runem.pl on Solaris.
git-svn-id: svn://10.0.0.236/trunk@74051 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:43:20 +00:00
cmanske%netscape.com
fbb8adfdad Finishing table editing+dialog work (b=20973, r=jfrancis), and disabling commands when in HTML Source mode (b=38875, r=sfraser)
git-svn-id: svn://10.0.0.236/trunk@74050 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:41:22 +00:00
cmanske%netscape.com
48a4fe23f1 Adding test for command enable state when calling a command. Part of fix for 38875. r=sfraser, a=ben
git-svn-id: svn://10.0.0.236/trunk@74049 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:38:23 +00:00
ericb%neoplanet.com
98fbff54e6 forgot to add these files r:hyatt a:hyatt
git-svn-id: svn://10.0.0.236/trunk@74048 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:37:00 +00:00
ericb%neoplanet.com
ecef542f84 resizers and titlebars r:hyatt a:hyatt
git-svn-id: svn://10.0.0.236/trunk@74047 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:34:44 +00:00
dbragg%netscape.com
1d539e2fb0 With more thorough testing, found a couple of bad side effects of initial fix for bug #36249. Fixes contained here. r=racham
git-svn-id: svn://10.0.0.236/trunk@74046 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:19:37 +00:00
law%netscape.com
442efb715c Bug 43583; implement new helper app launch confirmation dialog interface; r=mcafee@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74045 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:17:34 +00:00
mscott%netscape.com
52c882c23a Bug #43583 --> Add a separate boolean for asking the user before handling content using an external application.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74044 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:15:49 +00:00
alecf%netscape.com
f2d9248272 fix for #44350 - clear the search results pane each time a search starts.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@74043 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:12:35 +00:00
mscott%netscape.com
1b49a1acb9 Bug #43583 --> new state for using system default. Add a separate boolean
for asking the user before handling.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@74041 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:11:59 +00:00
av%netscape.com
16b5150046 #44422, r=buster
git-svn-id: svn://10.0.0.236/trunk@74040 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:10:29 +00:00
rginda%netscape.com
f86893a190 cleaned up linux warnings, minor debugger tweaks
git-svn-id: svn://10.0.0.236/trunk@74039 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:08:03 +00:00
alecf%netscape.com
0fc26ac4c5 fix for #39576 r=chuang
localize the "Card for" string for the address card view


git-svn-id: svn://10.0.0.236/trunk@74038 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 23:03:48 +00:00
mcafee%netscape.com
e378098f03 Removing mcafee from debug output. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@74037 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 22:49:22 +00:00
rods%netscape.com
d804eae647 setting parent to null to make sure there are no dnagling pointers from children
to their parents
b=44266, r=jst


git-svn-id: svn://10.0.0.236/trunk@74036 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 22:17:38 +00:00
blizzard%redhat.com
757fa0cb81 fix for bug #44116. rewrite gtk focus handling. r=pavlov,akk a=brendan
git-svn-id: svn://10.0.0.236/trunk@74035 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:57:43 +00:00
pavlov%netscape.com
61c5a61fcc 4.x unix plugin changes for bug 37477 r=pollmann, av
git-svn-id: svn://10.0.0.236/trunk@74034 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:44:39 +00:00
pavlov%netscape.com
b100308bc8 gtkxtbin fixes for unix plugin crasher bug 37477 r=blizzard
git-svn-id: svn://10.0.0.236/trunk@74033 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:43:18 +00:00
cotter%netscape.com
ea9aa7827c Added info about OCSP in cases of invalid email signature.
git-svn-id: svn://10.0.0.236/trunk@74032 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:32:19 +00:00
dbaron%fas.harvard.edu
e70cfcfce2 Prevent builds on Win95/Win98 from excessively going through the unused libs phase by removing the Win95/Win98 libs phase rules. r=warren a=waterson b=42428
This should affect only builds done on Win95/Win98 (where WINOS=WIN95).


git-svn-id: svn://10.0.0.236/trunk@74031 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:17:37 +00:00
rods%netscape.com
03ae64ba6e removing accidental checkin
git-svn-id: svn://10.0.0.236/trunk@74030 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 21:00:22 +00:00
evaughan%netscape.com
bda75841a4 fix for #44576
git-svn-id: svn://10.0.0.236/trunk@74029 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:58:59 +00:00
blizzard%redhat.com
312b544165 fix memory leak in scrolling code. make sure to destroy a temporary region before jumping to the end of the function. a=brendan
git-svn-id: svn://10.0.0.236/trunk@74028 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:56:35 +00:00
pinkerton%netscape.com
11786e264b landing patch for crash when document goes away after tooltip timer has fired. basically, make mPossibleTooltipNode a strong ref. patch from roc+moz@cs.cmu.edu r=pinkerton, bug# 27828.
git-svn-id: svn://10.0.0.236/trunk@74027 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:55:57 +00:00
rods%netscape.com
0a4a5cf302 option elements no longer add and remove themselves from the select, the select now does all the housekeeping. b=44266, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@74026 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:55:21 +00:00
rods%netscape.com
8fb75d5063 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@74025 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:55:20 +00:00
rogerl%netscape.com
6a8822a673 More on @ operator. Fixed R 4billion print bug.
git-svn-id: svn://10.0.0.236/trunk@74024 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:54:06 +00:00
bienvenu%netscape.com
9e9bbd2c90 fix 45146 edit message as new crashing r=mscott
git-svn-id: svn://10.0.0.236/trunk@74023 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:49:52 +00:00
leaf%mozilla.org
4c0f5aa7a0 Automated update
git-svn-id: svn://10.0.0.236/trunk@74022 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:45:12 +00:00
jdunn%netscape.com
5852c7694d Applying jgaunt's & jim_nance's change (see rev 1.647 & 1.649) to
hpux in general (for 10.20) as opposed to hpux11 specfic for bug #=39747
using blanket approval of r=waterson for port changes (hpux specific)


git-svn-id: svn://10.0.0.236/trunk@74021 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:33:33 +00:00
saari%netscape.com
07ed8efec1 Fix for nsbeta2+ bug 36470: colors are wrong across multiple monitors of different bit depths on MacOS. r= pinkerton
git-svn-id: svn://10.0.0.236/trunk@74020 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:27:42 +00:00
chuang%netscape.com
f09e97a233 Bug 33980 'Collected Addresses' being corrupted when saved to prefs.js, r=alecf
git-svn-id: svn://10.0.0.236/trunk@74019 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:18:38 +00:00
bnesse%netscape.com
6e87c2f462 Moved code which was initalizing the memory allocation service from the constructor into the CreatePlugin function because it wasn't being called early enough for some plugins. Need to proceed on Bug 19931. r=av.
git-svn-id: svn://10.0.0.236/trunk@74018 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:08:05 +00:00
bnesse%netscape.com
34aa1fbbf3 Removed code which was painting rectangles over the plugin objects on the Mac. Bug #41016. r=av
git-svn-id: svn://10.0.0.236/trunk@74017 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 20:06:05 +00:00
jfrancis%netscape.com
6ca6c35a74 fix for 43366; r=kin
git-svn-id: svn://10.0.0.236/trunk@74016 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:51:36 +00:00
dbragg%netscape.com
0972f612cf Optimized Javascript library got added to the wrong target. #36249.
git-svn-id: svn://10.0.0.236/trunk@74015 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:40:55 +00:00
dbragg%netscape.com
ca159a6f0d Fix for bug #36249. r=racham@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74014 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:28:43 +00:00
dbragg%netscape.com
ea876774ce makefile and MANIFEST file changes to display out-of-space dialog. Fix for bug#36249. r=racham@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74013 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:26:09 +00:00
dbragg%netscape.com
5b76ae572a Had to add a library to the mcp file to fix bug #36249. r=racham@netscape.com
git-svn-id: svn://10.0.0.236/trunk@74012 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:23:34 +00:00
ftang%netscape.com
7b0b6650b9 fix bug 21418. change the converter to UTF-8 and handle the \uxxxx and \r \n \t in the
lexical level (scanner) r=tao


git-svn-id: svn://10.0.0.236/trunk@74011 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:14:59 +00:00
brendan%mozilla.org
20112d6fb4 Make NS_TraceMallocShutdown idempotent just in case it's called more than once (doesn't affect default builds: #ifdef NS_TRACE_MALLOC).
git-svn-id: svn://10.0.0.236/trunk@74010 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:10:52 +00:00
brendan%mozilla.org
c027820f7f Remove explicit NS_TraceMallocShutdown call, it's done via atexit (doesn't affect default builds: #ifdef NS_TRACE_MALLOC).
git-svn-id: svn://10.0.0.236/trunk@74009 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 19:09:44 +00:00
javi%netscape.com
0420d12c6d Fix a type-o.
git-svn-id: svn://10.0.0.236/trunk@74008 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 18:45:40 +00:00
valeski%netscape.com
bb30b7766f r=mscott, 42505. somehow a switch enum was dropped from a previous checkin.
git-svn-id: svn://10.0.0.236/trunk@74007 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 15:00:59 +00:00
dbragg%netscape.com
11cb93c0ec Added new .dtd file for bug #36249
git-svn-id: svn://10.0.0.236/trunk@74006 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 14:16:07 +00:00
dbragg%netscape.com
2e4b4f4511 Added new .xul and js files for bug #36249
git-svn-id: svn://10.0.0.236/trunk@74005 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 14:15:05 +00:00
axel%pike.org
9cffc6b4d7 Getting the build process up for Windows, thanx to Arthur Barrett
not part of build, still need to conditionally add transformiix to
extensions/makefile.win


git-svn-id: svn://10.0.0.236/trunk@74004 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 10:32:17 +00:00
axel%pike.org
b9d8e62616 Use own impl of rint for windows and platforms without one, not on mac
not part of build


git-svn-id: svn://10.0.0.236/trunk@74003 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 09:47:37 +00:00
warren%netscape.com
daeb105206 Fixed warning.
git-svn-id: svn://10.0.0.236/trunk@74002 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 09:46:51 +00:00
ftang%netscape.com
b852b1dc76 fix 40739 (dup as 45048. the fix is in 45048)
Change do_QueryInterface to do_QueryReference for mContenWindow for SetDocumentCharacterSet
method.


git-svn-id: svn://10.0.0.236/trunk@74001 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:50:00 +00:00
leaf%mozilla.org
028fc724dc Automated update
git-svn-id: svn://10.0.0.236/trunk@74000 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:45:09 +00:00
axel%pike.org
d3d74fb230 Adding rint to AC_CHECK_FUNCS, r=cls@seawood.org, a=waterson
git-svn-id: svn://10.0.0.236/trunk@73999 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:42:07 +00:00
warren%netscape.com
3e244f5dd6 Reordered atom table destruction to be last because memory shutdown still needs it. Moved nsIThread shutdown up just to be safe. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73998 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:31:50 +00:00
warren%netscape.com
71943eddb6 Removed assertion to allow UnregisterObserver to be called after Shutdown (harmlessly). r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73997 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:29:05 +00:00
warren%netscape.com
5bdd73acae Fixed monitor destructor because NS_TraceMallocShutdown is called twice. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73996 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:28:14 +00:00
ssu%netscape.com
67fe63056f fixing bug #19034 - Install.log needs to be created in XPCOM's notion of cwd.
This bug affects several things.  what I'm checking in is a fix to the windows
wizard installer to:
1) pass new parameter to xpi_init() - which Samir checked in tonight.
2) update windows wizard installer to know of the new install.log location.
3) changed the installer to create/update the log filename passed to xpi_init() (install_wizard.log).

This fix affects the installer (setup.exe) and the uninstaller (uninstall.exe).
This bug is marked as nsbeta2+ and was already verified by QA, but they were not aware
of the affects to the native windows installer (which is part of this bug).

The windows installer will be dead in the morning without this checkin.

r=sgehani
affects windows platforms only
This file does not affect tinderbox builds


git-svn-id: svn://10.0.0.236/trunk@73995 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:02:29 +00:00
ssu%netscape.com
cd59a04f8b fixing bug #19034 - Install.log needs to be created in XPCOM's notion of cwd.
This bug affects several things.  what I'm checking in is a fix to the windows
wizard installer to:
1) pass new parameter to xpi_init() - which Samir checked in tonight.
2) update windows wizard installer to know of the new install.log location.
3) changed the installer to create/update the log filename passed to xpi_init() (install_wizard.log).

This fix affects the installer (setup.exe) and the uninstaller (uninstall.exe).
This bug is marked as nsbeta2+ and was already verified by QA, but they were not aware
of the affects to the native windows installer (which is part of this bug).

The windows installer will be dead in the morning without this checkin.

r=sgehani
affects windows platforms only


git-svn-id: svn://10.0.0.236/trunk@73994 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 07:00:21 +00:00
warren%netscape.com
24b9b58ef8 Defensive programming for UnregisterObserver after Shutdown. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73993 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 06:56:06 +00:00
Peter.VanderBeken%pandora.be
8843306977 Import mathml.css into ua.css when building MathML. Not part of build. r=jj. a=waterson.
git-svn-id: svn://10.0.0.236/trunk@73992 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 06:47:53 +00:00
dprice%netscape.com
c86bfb42f8 NOT IN THE BUILD
git-svn-id: svn://10.0.0.236/trunk@73991 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 06:40:09 +00:00
ftang%netscape.com
871ddb275e fix bug 39902. check in for m_kato@ga2.so-net.ne.jp a=waterson r=ftang
git-svn-id: svn://10.0.0.236/trunk@73990 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 06:10:38 +00:00
warren%netscape.com
6f96f77089 Fixed nsMemoryImpl to release memory pressure observers on shutdown. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@73989 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 06:03:08 +00:00
brendan%mozilla.org
b59ce41b0d Must unregister memory pressure observer in \~nsXBLService (nsMemory doesn't clean up after us; r=warren).
git-svn-id: svn://10.0.0.236/trunk@73988 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 05:43:34 +00:00
mscott%netscape.com
b92acc47f7 Bug #45047 --> accept plain/text content type by default.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73987 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 05:09:42 +00:00
ben%netscape.com
88abd6e147 search editor dialog was busted because of:
a) current engine list wasn't properly converted to new tree syntax
b) sizing of widgets was making it look really odd in the Classic skin


git-svn-id: svn://10.0.0.236/trunk@73986 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 03:30:25 +00:00
ben%netscape.com
964b084f7f fix for 42964 - sidebar add panel and add search engine dialogs are not localizable
git-svn-id: svn://10.0.0.236/trunk@73985 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 03:14:22 +00:00
mscott%netscape.com
c331375f49 Fix build breakge by samir. I'm not really sure how this could have compiled =).
git-svn-id: svn://10.0.0.236/trunk@73984 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 01:52:53 +00:00
warren%netscape.com
43db39eeb6 Bug 44342 - hang on startup. Added back a lock to mutually exclude cancel/suspend/resume. Seems to work on Mac (i.e. can't reproduce the problem now). Also cleaned up file transport service, removing unused stuff.
git-svn-id: svn://10.0.0.236/trunk@73983 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 01:52:12 +00:00
brendan%mozilla.org
f98b2a3b00 XBLService implements nsIMemoryPressureObserver (44352, r=hyatt).
git-svn-id: svn://10.0.0.236/trunk@73980 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 01:28:36 +00:00
sgehani%netscape.com
233510a972 Part of fix for nsbeta2+ bug 37168. [r=mstoltz]
git-svn-id: svn://10.0.0.236/trunk@73979 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 01:10:20 +00:00
law%netscape.com
48189e65bb Bug 43583; build new dialog on Mac; r=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73978 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 01:09:28 +00:00
vidur%netscape.com
01f014fcec Work in progress on SOAP call component. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73977 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 00:54:39 +00:00
vidur%netscape.com
cefda6ac40 Work in progress on SOAP call component
git-svn-id: svn://10.0.0.236/trunk@73976 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 00:52:30 +00:00
javi%netscape.com
55006c8f22 Make the button in the security advisor for CRL's look like the other
buttons.


git-svn-id: svn://10.0.0.236/trunk@73975 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 00:50:12 +00:00
law%netscape.com
3391789285 Bug 43583; build new dialog; r=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73973 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 00:42:55 +00:00
dougt%netscape.com
ccb740ceaa First check in. NOT PART OF BUILD.
git-svn-id: svn://10.0.0.236/trunk@73972 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-11 00:10:34 +00:00
law%netscape.com
c7ba90ff47 Bug 36658; notify urlwidget component on page load; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73971 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:56:02 +00:00
av%netscape.com
6899b34dd6 #22954, fixing Mac glitch, r=brade
git-svn-id: svn://10.0.0.236/trunk@73969 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:54:31 +00:00
sgehani%netscape.com
91aaef8262 Part of fix for nsbeta2+ bug 37168. [r=ssu]
git-svn-id: svn://10.0.0.236/trunk@73968 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:44:35 +00:00
bryner%uiuc.edu
98421d423b Fixing 43459. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@73967 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:42:46 +00:00
av%netscape.com
edef5863b0 #43500, adding the default plugin to the packager on Windows, r=leaf
git-svn-id: svn://10.0.0.236/trunk@73966 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:32:13 +00:00
law%netscape.com
e966fb16cd Bug 43583; new helper app launch confirmation dialog; r=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73965 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:18:59 +00:00
rogerl%netscape.com
11c82ac5b9 Some parts of x@<name> working.
git-svn-id: svn://10.0.0.236/trunk@73964 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:18:07 +00:00
sgehani%netscape.com
008fb4035e Add optional log file leaf name param to XPI_Init for Win32 uninstall logging.
Part of fix for nsbeta2+ bug 37168.  [r=ssu]


git-svn-id: svn://10.0.0.236/trunk@73963 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:15:46 +00:00
endico%mozilla.org
605f7ed5a9 Add "Windows ME" operating system and a comment about how to add new os's (et al) to an already installed system
git-svn-id: svn://10.0.0.236/trunk@73962 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 23:01:26 +00:00
ddrinan%netscape.com
7e9f7e8f61 Made changes to the password retry text to fix bugs 399954 and 44110
git-svn-id: svn://10.0.0.236/trunk@73961 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:53:58 +00:00
matt%netscape.com
5ff8a76db7 taking out security policies pane as per bug 44121
r:tornduff


git-svn-id: svn://10.0.0.236/trunk@73960 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:50:37 +00:00
jband%netscape.com
473f5b8879 add previously overlooked support for nsIXPCNativeCallContext implementors to signal that they have set the method return value for the JS caller. a=brendan@mozilla.org r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73959 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:39:37 +00:00
bienvenu%netscape.com
8aa45589da fix crash searching newsgroup which you've never opened r=alecf 45028
git-svn-id: svn://10.0.0.236/trunk@73958 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:34:08 +00:00
shanjian%netscape.com
ff9c87f68a #42422
Fix the crash, contentLen should not be extended futher than the
text fragment's length.


git-svn-id: svn://10.0.0.236/trunk@73957 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:32:54 +00:00
bienvenu%netscape.com
ecd2e345aa forgot this part of the fix for 35678, posting to correct news server, r=mscott, ducarroz
git-svn-id: svn://10.0.0.236/trunk@73956 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:32:28 +00:00
nhotta%netscape.com
ff5ef51b79 Changed to pass a charset to openDialog so that a new window inherits the charset, bug 27646, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@73955 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:29:33 +00:00
radha%netscape.com
ae741cd1bc Fix for feature bug 44427. checking in code on behalf of jce2@po.cwru.edu
r=myself. a=brendan


git-svn-id: svn://10.0.0.236/trunk@73954 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:07:47 +00:00
mkaply%us.ibm.com
176282916f r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME


git-svn-id: svn://10.0.0.236/trunk@73953 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 22:04:17 +00:00
av%netscape.com
bcd2073647 Addressing #22954, fixing the glitch when layout returned OK even if did not find a plugin causing a crash, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@73952 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:51:15 +00:00
dmose%mozilla.org
edabaedfe6 Updated description of directories in the tree. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73950 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:27:05 +00:00
dimator%netscape.com
f59147699d Bugs: 37153, 38700. Localized status and priority strings in threadpane. r=putterman
git-svn-id: svn://10.0.0.236/trunk@73949 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:25:37 +00:00
dmose%mozilla.org
641b51dd55 Makefile.in
git-svn-id: svn://10.0.0.236/trunk@73948 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:24:55 +00:00
dmose%mozilla.org
1d9f7feffd some tests of the LDAP code, currently just for the datasource
git-svn-id: svn://10.0.0.236/trunk@73947 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:24:45 +00:00
dmose%mozilla.org
3a9a1aa9d3 initial code for an LDAP datasource; not yet working or complete. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73946 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:22:17 +00:00
mscott%netscape.com
a9821acb38 Bug #43583 --> pass the window context into the helper app launcher which will in turn be used by
the helper app dialog to get at a dom window.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73945 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:21:10 +00:00
mkaply%us.ibm.com
76391cde9e r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME


git-svn-id: svn://10.0.0.236/trunk@73944 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:18:48 +00:00
dmose%mozilla.org
3a26f91c9e updated the TODO list. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73943 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:17:59 +00:00
dmose%mozilla.org
c4f7d926f5 adjust some comments. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73942 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:17:04 +00:00
mkaply%us.ibm.com
c71389b6e5 r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME


git-svn-id: svn://10.0.0.236/trunk@73941 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:08:54 +00:00
sgehani%netscape.com
f5bd2c5b5e Make Install.execute() work on Unix.
[nsbeta2+ b = 37168; r = ssu]


git-svn-id: svn://10.0.0.236/trunk@73940 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 21:02:16 +00:00
mkaply%us.ibm.com
0157bbf377 r=cls, a=brendan
Because of the raptor to gk change, we don't need SHORT_LIBNAME


git-svn-id: svn://10.0.0.236/trunk@73939 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:48:42 +00:00
waterson%netscape.com
fd592d59e3 Remove spurious call to RegisterDataSource(). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@73938 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:42:56 +00:00
mkaply%us.ibm.com
d866d504b4 Tinderbox break - change OS/2 only code - third time is a charm
git-svn-id: svn://10.0.0.236/trunk@73937 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:38:41 +00:00
mkaply%us.ibm.com
8ca37c9ffe Tinderbox break - remove OS/2 only code
git-svn-id: svn://10.0.0.236/trunk@73936 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:29:36 +00:00
rogerl%netscape.com
09961860fe r=brendan@mozilla.org, Fix for #31255, support '-->' on line by itself as
a line comment - allows old, bogus HTML to execute a la 4.X.


git-svn-id: svn://10.0.0.236/trunk@73935 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:23:54 +00:00
rogerl%netscape.com
babc9d3604 r=brendan@mozilla.org, Fix for #44013 - enforce security for defineGetter
& defineSetter by calling OBJ_CHECK_ACCESS.


git-svn-id: svn://10.0.0.236/trunk@73934 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:21:38 +00:00
dimator%netscape.com
d8d2b2a144 Bugs: 37153, 38700. Localized status and priority strings in threadpane.
git-svn-id: svn://10.0.0.236/trunk@73933 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:21:08 +00:00
bryner%uiuc.edu
afbe202d32 Fixing 44859. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@73932 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:19:32 +00:00
saari%netscape.com
bd2c6303f1 Adding file for evaughan
git-svn-id: svn://10.0.0.236/trunk@73931 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:17:48 +00:00
evaughan%netscape.com
933f75ed4e disable gfx scrollbars #44576
grid fixes for tree bugs

-r Hyatt


git-svn-id: svn://10.0.0.236/trunk@73930 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:10:27 +00:00
edburns%acm.org
b971436627 Put dom after util and before webclient
git-svn-id: svn://10.0.0.236/trunk@73929 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:06:44 +00:00
edburns%acm.org
efd8882a09 Put classes first so top level java build works.
git-svn-id: svn://10.0.0.236/trunk@73928 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:06:07 +00:00
edburns%acm.org
2d11ae2a16 nsSetupRegistry_link_problems
git-svn-id: svn://10.0.0.236/trunk@73927 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 20:02:49 +00:00
edburns%acm.org
db74b4ad01 Use the new xp runem.pl script instead of building the smarts into
the batch file.


git-svn-id: svn://10.0.0.236/trunk@73926 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:48:47 +00:00
akkana%netscape.com
84c9d71b9a 38232 (nsbeta2+): Make line break character configurable in the
output system, and use \n (the DOM linebreak character) when getting
output from text controls.  Also fix some warnings.  r=kin.


git-svn-id: svn://10.0.0.236/trunk@73925 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:46:59 +00:00
edburns%acm.org
2d15d02c8f Changes to Makefile.in to allow proper running on solaris.
Added motif/README to explain why some files in this directory
don't get put into this directory's dll.


git-svn-id: svn://10.0.0.236/trunk@73924 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 19:00:51 +00:00
miodrag%netscape.com
bc8ed0c9db Updates for LDAPJDK 4.12
git-svn-id: svn://10.0.0.236/trunk@73923 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 18:41:40 +00:00
dmose%mozilla.org
73deb5f9dc various updates. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73922 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 17:50:32 +00:00
edburns%acm.org
8ad979c383 Removed "^M" characters.
git-svn-id: svn://10.0.0.236/trunk@73921 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 17:49:19 +00:00
cls%seawood.org
0227cd8ec8 Fix for objdir build bustage.
git-svn-id: svn://10.0.0.236/trunk@73920 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 17:21:17 +00:00
rbs%maths.uq.edu.au
538d474bfd Enable the real x-height. r:erik,waterson. a:waterson
git-svn-id: svn://10.0.0.236/trunk@73919 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 16:10:12 +00:00
cls%seawood.org
1e9c39aa30 Ugh, introduced c++ comments to a c file which causes havoc with many non-gnu compilers
git-svn-id: svn://10.0.0.236/trunk@73918 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 15:14:37 +00:00
mkaply%us.ibm.com
8c831728da #42637
r = mkaply, a = brendan
OS/2 bringup - OS/2 only - no OK Cancel buttons in preferences


git-svn-id: svn://10.0.0.236/trunk@73917 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 14:50:36 +00:00
mkaply%us.ibm.com
d728ef74e0 OS/2 only tinderbox break - we will probably still break on a link, but at least we will compile
git-svn-id: svn://10.0.0.236/trunk@73916 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 14:48:47 +00:00
rbs%maths.uq.edu.au
a654430535 Remove files that have ceased to be used
git-svn-id: svn://10.0.0.236/trunk@73915 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 14:02:44 +00:00
rbs%maths.uq.edu.au
26d68c1ce5 Convert examples to XHTML now that mathml.css is imported in the ua.css on MathML-enabled builds. a:waterson
git-svn-id: svn://10.0.0.236/trunk@73914 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 13:58:55 +00:00
rbs%maths.uq.edu.au
b445880e79 [not part of default build] @import MathML CSS rules in the ua.css on MathML-enabled builds. Paul Gartside <gartside@maths.ox.ac.uk> and Peter Van der Beken <Peter.VanderBeken@pandora.be> have verified that all went well on Linux and Mac, respectively. a:waterson
git-svn-id: svn://10.0.0.236/trunk@73913 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 13:58:27 +00:00
rbs%maths.uq.edu.au
80299f6024 [not part of default build] Some updates in the land of stretchy chars. partial fix for b:45010
git-svn-id: svn://10.0.0.236/trunk@73912 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 13:57:52 +00:00
mkaply%us.ibm.com
d3fc3a08d8 Tinderbox break - remove OS/2 includes
git-svn-id: svn://10.0.0.236/trunk@73911 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 12:53:08 +00:00
axel%pike.org
4d86057bf1 Fix nested relative includes, not part of build, a=leaf
git-svn-id: svn://10.0.0.236/trunk@73910 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 12:08:00 +00:00
cls%seawood.org
897f28a4b4 Explicitly include nspr header when needed
git-svn-id: svn://10.0.0.236/trunk@73909 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 08:40:05 +00:00
cls%seawood.org
a8b952cf3d Mac needs History_entry struct.
git-svn-id: svn://10.0.0.236/trunk@73908 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 08:12:01 +00:00
dbaron%fas.harvard.edu
8f65b0106d Fix build bustage by changing #idef to #ifdef (I hope).
git-svn-id: svn://10.0.0.236/trunk@73907 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:59:02 +00:00
cls%seawood.org
4a2be35697 Explicitly include xp_mem.h since it is needed
git-svn-id: svn://10.0.0.236/trunk@73906 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:42:53 +00:00
cls%seawood.org
c665553b5e Ok, so the mac isn't ready to have its mind freed.
git-svn-id: svn://10.0.0.236/trunk@73905 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:40:08 +00:00
cls%seawood.org
50a5bb697c Start tedious process of removing obsolete mozilla/include files from build. This patch should take us down to 19 of 101. Bug #38061
git-svn-id: svn://10.0.0.236/trunk@73904 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 07:13:31 +00:00
alecf%netscape.com
a0f273206b remove a debugging line from this XUL - this is just a bonehead line I left in here on friday
r=mozbot, and everyone else on IRC at the moment


git-svn-id: svn://10.0.0.236/trunk@73903 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 06:46:41 +00:00
bienvenu%netscape.com
369ba65719 fix problem posting to wrong news server r=mscott 35678
git-svn-id: svn://10.0.0.236/trunk@73902 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 02:45:21 +00:00
bienvenu%netscape.com
63155d6abe fix problem posting to wrong news server r=mscott 35678
git-svn-id: svn://10.0.0.236/trunk@73901 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 02:38:22 +00:00
bienvenu%netscape.com
d43118ab80 fix 41292, r=waterson, problem with rdf factory cache
git-svn-id: svn://10.0.0.236/trunk@73900 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-10 02:35:50 +00:00
waterson%netscape.com
ca4f830c71 Register bookmarks datasource with RDF service *last*, because an other failure will leave the RDF service with a dangling pointer. Also, add assertion if we're unable to create a timer, because this is an *extremely* common platform porting error. r=rjc
git-svn-id: svn://10.0.0.236/trunk@73899 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 23:49:41 +00:00
av%netscape.com
8bfea858f8 #22954, adding unix and mac flavors, r=pierre
git-svn-id: svn://10.0.0.236/trunk@73898 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 22:26:44 +00:00
mcafee%netscape.com
4dc1f0ba46 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@73897 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 21:10:01 +00:00
cls%seawood.org
536147ea5d Check for BUILD_OFFICIAL as well as MOZILLA_OFFICIAL
git-svn-id: svn://10.0.0.236/trunk@73896 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 15:02:24 +00:00
cls%seawood.org
178d7f72df Check for BUILD_OFFICIAL as well as MOZILLA_OFFICIAL
git-svn-id: svn://10.0.0.236/trunk@73895 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 15:01:27 +00:00
brendan%mozilla.org
523a153c14 First cut at reusable trace-malloc logfile reader, factored from bloatblame.
git-svn-id: svn://10.0.0.236/trunk@73894 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-09 08:53:46 +00:00
morse%netscape.com
b3a5a9b468 fix bug 44351, crash in cookie viewer and signon viewer, r=evaughan
git-svn-id: svn://10.0.0.236/trunk@73893 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 23:40:06 +00:00
rhp%netscape.com
5bfc0c9913 Fixing problem with dropping Nickname and display name in sync - Bug #: 1371 - r: jefft
git-svn-id: svn://10.0.0.236/trunk@73892 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 20:51:31 +00:00
colin%theblakes.com
9af477049e Need to break up large groups of files to prevent command overflow. r,a=leaf
git-svn-id: svn://10.0.0.236/trunk@73891 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 12:56:41 +00:00
morse%netscape.com
592ef1c1cb bug 40682, minor wording change, submitter= gabriel@pixle.demon.co.uk, r+a=morse
git-svn-id: svn://10.0.0.236/trunk@73890 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 12:56:39 +00:00
leaf%mozilla.org
ac45a17607 Automated update
git-svn-id: svn://10.0.0.236/trunk@73889 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 11:45:09 +00:00
cls%seawood.org
e9f7740e5b Updated NetBSD section so that mozilla will build on NetBSD-current. Bug #41524 Thanks to Shin'ichiro TAYA <taya@sm.sony.co.jp> for the patch.
git-svn-id: svn://10.0.0.236/trunk@73888 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 11:39:05 +00:00
cls%seawood.org
1a16368373 Changing default debug & opt flags for qnx Bug #44133. Removed autoconf 2.13 specific macro
git-svn-id: svn://10.0.0.236/trunk@73887 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 11:27:25 +00:00
cls%seawood.org
57ed321e90 Change test to check for file (-f) rather than exists (-e) which broke under solaris.
git-svn-id: svn://10.0.0.236/trunk@73884 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 10:25:59 +00:00
cls%seawood.org
0c83d0ce15 Remove hacks that fixed tmp vpath screwups.
git-svn-id: svn://10.0.0.236/trunk@73883 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 09:39:16 +00:00
cls%seawood.org
4c0366b0d7 The unix builds will use a generated build_number (rather than the checked in version) that will forcibly be 000000000 unless MOZILLA_OFFICIAL is set. Bug #26798
Chrome files that need the build date set for MOZILLA_OFFICIAL builds will no longer be modified in the source tree.  The source tree copies will be used as a template for a generated version.  Bug #29597


git-svn-id: svn://10.0.0.236/trunk@73882 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 09:36:01 +00:00
rpotts%netscape.com
f002160c22 More session history cleanup... Reorganizing the code and removing SH_IN_FRAMES ifdefs... (r=radha)
git-svn-id: svn://10.0.0.236/trunk@73881 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 05:17:49 +00:00
leaf%mozilla.org
496dbd6742 Automated update
git-svn-id: svn://10.0.0.236/trunk@73880 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 05:00:14 +00:00
cls%seawood.org
574788b111 Add --disable-libIDL option for use with standalone modules.
git-svn-id: svn://10.0.0.236/trunk@73879 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 04:45:49 +00:00
leaf%mozilla.org
85f65dee34 Automated update
git-svn-id: svn://10.0.0.236/trunk@73878 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 03:45:10 +00:00
tor%cs.brown.edu
17606985ac Remove unneeded AC_DEFINE, clean up warnings, and take out debug printfs.
git-svn-id: svn://10.0.0.236/trunk@73877 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 03:39:21 +00:00
ben%netscape.com
c817d1c11b more Application Helper Pref panel stuff (supporting removal of handlers)
git-svn-id: svn://10.0.0.236/trunk@73876 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 03:21:23 +00:00
cls%seawood.org
60e105a9d9 Commented out compaq compiler test as the test still fails after new compiler was installed
git-svn-id: svn://10.0.0.236/trunk@73875 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 03:02:43 +00:00
brendan%mozilla.org
659430c492 Patch around bad in-place modification of .../build/build_number, and consequent removal of it by distclean, which leaves one with a build that breaks here. This patch cures the broken build, but results in at least four modified source files: build_number, nsBuildID.h, and two related files under xpfe (r=cls@seawood.org).
git-svn-id: svn://10.0.0.236/trunk@73874 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 02:39:40 +00:00
brendan%mozilla.org
c096fdd686 Fix an out-of-date comment.
git-svn-id: svn://10.0.0.236/trunk@73873 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 02:35:56 +00:00
blizzard%redhat.com
b2d851d0bf fix for bug #44790. Fix TestGtkEmbed crash on startup. Ignore the return value from nsIChromeRegistry::CheckForNewChrome(). Also, clean up event queue start up and shut down, fix tabs in file, some 80 col violations and some other code formatting cleanups. r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@73872 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 02:16:34 +00:00
brendan%mozilla.org
e59f31abff Make it safe to nest a GC from js_AllocGCThing, ultimately from the interpreter; also make sure we collect all garbage (even garbage created by finalizers who unroot or unlock GC-things) when destroying the last context (39125, 44376, r=mccabe@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@73871 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 02:06:01 +00:00
edburns%acm.org
460a0e83d5 runem.pl now successfully runs webclient on solaris. However,
webclient on solaris doesn't run yet.


git-svn-id: svn://10.0.0.236/trunk@73870 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:36:37 +00:00
cyeh%bluemartini.com
ea6257f545 Fix for 42041. Patch from Dave Miller (dave@intrec.com).
git-svn-id: svn://10.0.0.236/trunk@73869 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:31:23 +00:00
mscott%netscape.com
5030ca1e3f Bug #44166 --> fix news modal dialog problems by using correct nsIPrompt object
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73868 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:13:08 +00:00
mscott%netscape.com
479a437941 Bug #44167 --> fix news modal dialog problems by using correct nsIPrompt object. part of this fix meant making
sure all news urls were initialized with the currect message window. Hence the change to ConstructNntpUrl.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73867 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:12:30 +00:00
mscott%netscape.com
9469caada6 Bug #44158 --> fix modal dialog problems by using correct nsIPrompt object obtained from the message window
associated with the current url.

r=alecf


git-svn-id: svn://10.0.0.236/trunk@73866 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:10:30 +00:00
rogerl%netscape.com
07b641917e Support for 'constructor'.
git-svn-id: svn://10.0.0.236/trunk@73865 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 01:08:29 +00:00
mcafee%netscape.com
690e440a47 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@73864 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:24:33 +00:00
mcafee%netscape.com
946ff8bb43 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@73863 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:23:48 +00:00
brendan%mozilla.org
d940aad83b Constipation (r=lumpy,a=jack).
git-svn-id: svn://10.0.0.236/trunk@73862 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:23:12 +00:00
pollmann%netscape.com
9c987c7201 Bug 4891: Allow flushes to occur outside parsing of the <script> tag. This allows us to keep content lists up to date through document.writes in event handlers r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@73861 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:19:44 +00:00
ben%netscape.com
3d0a23244c swap ordering of apps and layout prefs in debug panel so it is possible to turn off box debugging
git-svn-id: svn://10.0.0.236/trunk@73860 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:18:31 +00:00
blizzard%redhat.com
c0994b4e21 remove Makefile since we have a Makefile.in that works a=brendan
git-svn-id: svn://10.0.0.236/trunk@73859 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-08 00:09:36 +00:00
warren%netscape.com
e705a0a4d7 Fixed comment
git-svn-id: svn://10.0.0.236/trunk@73858 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:43:00 +00:00
Peter.VanderBeken%pandora.be
b1684c5863 Remove redundant define. Not part of build. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@73857 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:34:12 +00:00
edburns%acm.org
fcb4a4b0c8 First pass at automating the creation of the runem script. I hope runem.pl
can be used on both win32 and unix.


git-svn-id: svn://10.0.0.236/trunk@73856 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:32:43 +00:00
mcafee%netscape.com
f6aa6f7fa1 Ignore generated files
git-svn-id: svn://10.0.0.236/trunk@73855 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:27:47 +00:00
jfrancis%netscape.com
930530f695 fixing increase/decrease font bustage in editor
git-svn-id: svn://10.0.0.236/trunk@73854 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:17:37 +00:00
waterson%netscape.com
2f1231c921 Bug 37621. Add necessary logic to retract and fire rules in nsXULTemplateBuilder::OnChange(). I lost these when I re-wrote this method :-(. r=rjc
git-svn-id: svn://10.0.0.236/trunk@73853 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 23:01:14 +00:00
alecf%netscape.com
01ef98bfe4 fix for #29568 - automatically disable other ISP accounts when newsgroup is selected
(skinned to make it work) r=putterman


git-svn-id: svn://10.0.0.236/trunk@73852 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:33:45 +00:00
jefft%netscape.com
22fe5e325f fixed bug 44699 -- IMAP does not check result param from nsIMsgAccountManager::FindServer(); r=bienvenu, alecf
git-svn-id: svn://10.0.0.236/trunk@73851 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:27:03 +00:00
evaughan%netscape.com
bd0857d1fe Fixed body resizing bug #35681
-r pinkerton


git-svn-id: svn://10.0.0.236/trunk@73848 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:24:06 +00:00
saari%netscape.com
c262eae9c3 fixing crashing popups on Windows. Smoketest blocker. Simple null check, nsPIDOMWindow QI result wasn't checked. Not sure why this fails suddenly, I would think everyone shoudl be implementing nsPIDOMWindow.... r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@73847 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:17:00 +00:00
ruslan%netscape.com
5038376f85 WIP on 40449, a/r=gagan
git-svn-id: svn://10.0.0.236/trunk@73846 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:02:47 +00:00
leaf%mozilla.org
79e35dc667 Automated update
git-svn-id: svn://10.0.0.236/trunk@73845 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 22:00:12 +00:00
mkaply%us.ibm.com
b4ac0fbc7c #42637
r = sspitzer, a = brendan
OS/2 bringup - I have no idea how systemDir( got changed to system(


git-svn-id: svn://10.0.0.236/trunk@73844 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:59:01 +00:00
mscott%netscape.com
3a58e17d6b Bug #43661 --> open attachment needs to pass in the file name
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@73843 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:57:39 +00:00
mkaply%us.ibm.com
ea813c8f0a #42637
r = sspitzer, a = brendan
OS/2 bringup - Our profile is located in the OS2 directory


git-svn-id: svn://10.0.0.236/trunk@73842 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:56:48 +00:00
mscott%netscape.com
dcd9b3c47c Bug #43661 --> pass in the file name for the attachment
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@73841 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:56:38 +00:00
Peter.VanderBeken%pandora.be
36140ae09f Get rid of MOZILLA, use MOZ_XSL. Not part of build. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@73840 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:54:52 +00:00
dbragg%netscape.com
8953692d7d Fix for bug #42719. SetLeafName was not removing the old leaf name before appending a new one. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@73839 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:54:08 +00:00
Peter.VanderBeken%pandora.be
18da283dee Add nsDOMParser.cpp. Not part of build. a=vidur.
git-svn-id: svn://10.0.0.236/trunk@73838 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:53:28 +00:00
Peter.VanderBeken%pandora.be
efe71a3df0 Add nsIDOMParser.idl. Not part of build. a=vidur.
git-svn-id: svn://10.0.0.236/trunk@73837 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:53:00 +00:00
tor%cs.brown.edu
0bc270927d Turning on MNG decoder by default on all platforms.
configure.in change r=cls.  a=pnunn,brendan.


git-svn-id: svn://10.0.0.236/trunk@73836 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:52:23 +00:00
Jerry.Kirk%Nexwarecorp.com
91b22a828c NOT PART OF BUILD - PHOTON ONLY
Various fixes to make it draw again from Brian Edmond of QNX
r=kirkj


git-svn-id: svn://10.0.0.236/trunk@73835 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:49:05 +00:00
mkaply%us.ibm.com
556f639044 #42637
r = mkaply, a = brendan
OS/2 bringup - We weren't returning a value from CallMethodFromVTable


git-svn-id: svn://10.0.0.236/trunk@73834 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:46:12 +00:00
mscott%netscape.com
83144a292b part of the fix for Bug #43661 --> need to register the browser as the handler for text/plain so we can open text documents
and have them get dispatched to the browser.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73833 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:45:40 +00:00
mscott%netscape.com
b273ad2aa2 Bug #44082 --> fail if we couldn't find mimeTypes.rdf during the data source init phase.
patch from jst
r=mscott


git-svn-id: svn://10.0.0.236/trunk@73832 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:44:11 +00:00
mscott%netscape.com
0107d848c4 Bug #44568 -> don't fall out and not open the url if we failed to set the load
attributes on a channel. This broke mailto urls because the mailto channel
is just a stub and doesn't implement this method.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@73831 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:43:16 +00:00
mscott%netscape.com
9940c9a434 Bug #43652 --> fix running of JS urls by returning the error status of the
underlying file transport if the input stream channel doesn't have an error
of it's own.
r=warren


git-svn-id: svn://10.0.0.236/trunk@73830 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:42:15 +00:00
javi%netscape.com
9e6a833ac3 Correctly define CORE_DEPTH
git-svn-id: svn://10.0.0.236/trunk@73829 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:17:31 +00:00
terry%mozilla.org
aec3218cee Fixed links off of 'Most doomed' reports to only list bugs that match the product we're reporting about.
git-svn-id: svn://10.0.0.236/trunk@73828 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 21:05:19 +00:00
edburns%acm.org
294650864a Build_with_mozilla_build_system
git-svn-id: svn://10.0.0.236/trunk@73827 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 19:54:43 +00:00
edburns%acm.org
468587270c a=edburns
r=ashuk
bugs: 44327, 44328

NativeEventThread:

Re-instate the policy of creating an EventQueue for each window.
Put in a superfluous printf in processEventLoop that fixes 44327.

nsActions.{cpp,h}:

Added wsDeallocateInitContextEvent, to enable the correct
removal of the eventQueue, 44328

WindowControlImpl

Fire the wsDeallocateInitcontextEvent in nativeDestroyInitContext.


git-svn-id: svn://10.0.0.236/trunk@73826 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:53:07 +00:00
edburns%acm.org
472deb45c4 a=edburns
r=ashuk
bugs: 44327, 44328

WindowControl:

Don't call nativeDestroyInitContext

NativeEventThread

Call windowControl.nativeDestroyInitContext when the run()
loop exits.


git-svn-id: svn://10.0.0.236/trunk@73825 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:49:09 +00:00
edburns%acm.org
d54e7976c1 a=edburns
r=ashuk
bugs: 44327, 44328

Comment out the bookmarks test code.


git-svn-id: svn://10.0.0.236/trunk@73824 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:47:25 +00:00
bryner%uiuc.edu
fe224fa891 Fixing 44782, but with my original fixes intact. r=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@73823 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 18:33:16 +00:00
varada%netscape.com
d4be327220 removing the hash from the list of dirs in makefile.win
git-svn-id: svn://10.0.0.236/trunk@73822 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 17:35:29 +00:00
bienvenu%netscape.com
5f3ccad6dd backout bryner's changes that break tree selection, a=leaf bug 44782
git-svn-id: svn://10.0.0.236/trunk@73821 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 17:03:14 +00:00
svn%xmlterm.org
6e074bd11e --NOT PART OF DEFAULT BUILD--
XMLterm changes only. Updated UUIDs list.


git-svn-id: svn://10.0.0.236/trunk@73820 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 14:48:55 +00:00
svn%xmlterm.org
6645bbc669 --NOT PART OF DEFAULT BUILD--
XMLterm changes only. Implemented chrome overlay a la Chatzilla to insert
XMLterm into the Tasks menu. Also implemented command line option "-terminal"
and URL handler "telnet://" to invoke XMLterm.


git-svn-id: svn://10.0.0.236/trunk@73819 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 14:44:26 +00:00
nboyd%atg.com
6081b3a66b Deprecate FlattenedObject.
git-svn-id: svn://10.0.0.236/trunk@73818 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 14:41:35 +00:00
mkaply%us.ibm.com
557dfac3c1 r=mkaply, a=brendan
Tinderbox break - need os2 changes for uriloader - I am just taking the UNIX for now - hope it builds


git-svn-id: svn://10.0.0.236/trunk@73817 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 14:14:32 +00:00
axel%pike.org
f809c05535 Removing unused Makefile.in, not in allmakefiles.sh, not part of build
git-svn-id: svn://10.0.0.236/trunk@73816 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 11:09:23 +00:00
cls%seawood.org
77c4097f60 Explicitly use $topsrcdir so that mozconfig files are removed even for objdir builds
git-svn-id: svn://10.0.0.236/trunk@73815 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 10:34:45 +00:00
cls%seawood.org
bbece9132c Remove .mozconfig files generated by client.mk Bug #42167
git-svn-id: svn://10.0.0.236/trunk@73814 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 10:26:38 +00:00
jband%netscape.com
dc8c60aa5e Fix yet another instance of the qsort bug that was biting OS/2 only. See explanation in cvs log comment for revision 1.25 of xpt_link.c. Thanks to Javier Pedemonte <pedemont@us.ibm.com>. a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73813 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 07:32:50 +00:00
sgehani%netscape.com
6fac7551f9 Prevent multiple downloads for mixed keyboard and mouse input. [nsbeta2+ b = 31042; r=dbragg]
git-svn-id: svn://10.0.0.236/trunk@73812 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 06:45:43 +00:00
ben%netscape.com
0b5d210876 latest updates to helper apps pref panel (now support editing of types, and overwriting old types with new ones! =D)
git-svn-id: svn://10.0.0.236/trunk@73811 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 05:44:53 +00:00
dougt%netscape.com
5425c4be74 Debuggin code
a=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73810 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 04:17:24 +00:00
rhp%netscape.com
8d21b799ba Fix for bug 31589 - Problem with Japanese in vCard tag fields - r: nhotta
git-svn-id: svn://10.0.0.236/trunk@73809 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 03:17:33 +00:00
mscott%netscape.com
6f9957f6d8 Bug #41707, #43652 --> JS urls aren't working. We need to check for the correct return value and don't propogate
the on start request in that case.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73808 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 02:23:19 +00:00
mscott%netscape.com
384e564c90 Bug #43583 --> updates for helper app launching to work with the dialog.
git-svn-id: svn://10.0.0.236/trunk@73807 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 01:48:57 +00:00
mscott%netscape.com
e07b1b0394 Bug #43583 --> re-organizing how we launch helper apps to work with the helper app dialog.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73806 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 01:48:17 +00:00
mscott%netscape.com
38f8c40206 Bug #43583 --> re-organizing how we launch helper apps to work with the helper app dialog.
Add nsIExternalAppLauncher interface which is used by the helper app dialog.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@73805 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 01:48:05 +00:00
rods%netscape.com
aa114453e4 If the click is not on on item in the dropdown and not in the comboxbox display area then
the click count is set to zero so the JS event doesn't get fired. If it IS over the combobox
display area then the JS event does get fired.
b=40382 r=pollmann


git-svn-id: svn://10.0.0.236/trunk@73804 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 01:35:23 +00:00
chrisk%netscape.com
d8ac3852c6 Added -d option
-p option now also works for decoding


git-svn-id: svn://10.0.0.236/trunk@73802 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 00:57:39 +00:00
av%netscape.com
6d93cedf23 Addressing 22954, r=mscott
git-svn-id: svn://10.0.0.236/trunk@73801 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-07 00:10:54 +00:00
nhotta%netscape.com
0560c4754e Fix warnings caused by my last check in.
git-svn-id: svn://10.0.0.236/trunk@73800 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:46:20 +00:00
nhotta%netscape.com
f79422dff2 Added a force charset override support, bug 43101, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@73799 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:30:57 +00:00
nhotta%netscape.com
b108a12fd8 Added a force charset override UI, bug 43101, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@73798 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:29:44 +00:00
nhotta%netscape.com
409ad593a7 Removed the code to set a folder charset by charset menu, we only use charset menu for message override, bug 43101, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@73797 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:26:49 +00:00
nhotta%netscape.com
07964d38ea Added force_charset_override, bug 43101, r=mscott.
git-svn-id: svn://10.0.0.236/trunk@73796 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:25:40 +00:00
mozilla.BenB%bucksch.org
23f7344526 38494: Attribution line: actually use authorStr; reorder code a bit to make more sense. r=ducarroz, a=waterson
git-svn-id: svn://10.0.0.236/trunk@73794 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 23:00:43 +00:00
ssu%netscape.com
c22f0b274e fixing nsbeta2+ bug 43404 - Update delete dialog text to be less scary. r=dbragg. Affects windows platforms only.
git-svn-id: svn://10.0.0.236/trunk@73793 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 22:56:57 +00:00
dmose%mozilla.org
1dee72d1cb two calls to PR_fprintf were not properly bracketed by ifdef DEBUG, causing non-debugging builds to fail. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73792 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 22:38:11 +00:00
nbhatla%netscape.com
65ee5ea5d1 Work on bug #43658. Fixes to the Mac Classic skin: Radio buttons, Checkbox buttons, Window "platinum" colors, Fonts, Scrollbars, Popup Menus, Trees and Twisties. r=hangas
git-svn-id: svn://10.0.0.236/trunk@73791 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 22:22:19 +00:00
bryner%uiuc.edu
a27aafc7ee Fix for bug 43417. r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@73790 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 22:20:32 +00:00
radha%netscape.com
768e16fd5e fix for bug nsbeta2+ 40643. urlbar autocomplete busted.
git-svn-id: svn://10.0.0.236/trunk@73789 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 22:01:46 +00:00
ducarroz%netscape.com
9476188f62 Fix Linux bustage.
git-svn-id: svn://10.0.0.236/trunk@73788 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:51:11 +00:00
av%netscape.com
636fee1b46 Addressing 22954, removed tag info query for full page plugins, r=edburns@acm.org
git-svn-id: svn://10.0.0.236/trunk@73787 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:44:38 +00:00
morse%netscape.com
a283eb91b9 fix bug 44683, real minor wording change, submitted by blaker1234, r=morse
git-svn-id: svn://10.0.0.236/trunk@73786 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:39:25 +00:00
colin%theblakes.com
1aba125d84 Need to link against MOZ_JS_LIBS. r=vidur
git-svn-id: svn://10.0.0.236/trunk@73785 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:23:46 +00:00
dougt%netscape.com
9a2a3876e4 Removing -d "$(CVSROOT)" option. This messes up under 4nt.
a=leaf@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73784 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:20:26 +00:00
nbhatla%netscape.com
04942a81e2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73783 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:19:42 +00:00
wtc%netscape.com
4a00fce6ce Bugzilla bug #41524: fixed build problems on NetBSD-current with ELF
object format. r=taya@sm.sony.co.jp. a=brendan@mozilla.org.
Modified files: NetBSD.mk, _netbsd.h, prlink.c


git-svn-id: svn://10.0.0.236/trunk@73782 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:14:15 +00:00
radha%netscape.com
ec65503895 fix for dogfood+ bug 44558. r=rpotts.
git-svn-id: svn://10.0.0.236/trunk@73779 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 21:04:02 +00:00
waterson%netscape.com
387e910910 Fix a string leak that dbaron found with leaksoup. r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@73778 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:58:29 +00:00
dougt%netscape.com
93e9cb0462 44665
submitted by dbaron@fas.harvard.edu
a=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73777 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:56:24 +00:00
waterson%netscape.com
1cebde4f7e Brendan meant to add jsdhash.h to the Mac build, too.
git-svn-id: svn://10.0.0.236/trunk@73776 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:55:23 +00:00
waterson%netscape.com
c198a05e61 Brendan meant add jsdhash.c to the Mac build, too.
git-svn-id: svn://10.0.0.236/trunk@73775 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:54:17 +00:00
ducarroz%netscape.com
1f53a7c58d Fix for bug 43448. Add code to populate mailing list during the send/send later process. R=mscott
git-svn-id: svn://10.0.0.236/trunk@73772 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:44:06 +00:00
harishd%netscape.com
acf667a3db 40809 ( nsbeta2+ ) - Replace "\r\n" with "\n" and CR with LF instead of stripping off CRs altogether - in view source.
r=dbaran@fas.harvard.edu


git-svn-id: svn://10.0.0.236/trunk@73771 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:40:26 +00:00
colin%theblakes.com
b66b98f8a8 Need to link against MOZ_JS_LIBS. r=cls
git-svn-id: svn://10.0.0.236/trunk@73770 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:13:57 +00:00
colin%theblakes.com
5a93fe8776 Remove VMS specific code; not needed any more. r,a=leaf
git-svn-id: svn://10.0.0.236/trunk@73769 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 20:11:38 +00:00
sgehani%netscape.com
91d89cecaf Create install log file in XPCOM's notion of cwd.
[nsbeta2+ b = 19034; r = ssu]


git-svn-id: svn://10.0.0.236/trunk@73768 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 19:44:09 +00:00
rogerl%netscape.com
ceb54a7f92 Removed preprocess step, consolidated identifier handling.
git-svn-id: svn://10.0.0.236/trunk@73767 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 18:26:26 +00:00
karnaze%netscape.com
10de8f5166 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@73766 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 14:07:15 +00:00
dcone%netscape.com
e3d69b4f52 Printing now calls RenderViews instead of just the top view. R=rods. b= 44547
git-svn-id: svn://10.0.0.236/trunk@73765 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 14:06:47 +00:00
rhp%netscape.com
d1c31b9361 Fix for Bug 44086 - problem with saving attachments over existing files - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@73764 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 14:05:47 +00:00
karnaze%netscape.com
14ce92879a bug 40721 - put back fix that was erroneously backed out. r=rods from before.
git-svn-id: svn://10.0.0.236/trunk@73763 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:58:54 +00:00
karnaze%netscape.com
71bc897032 bug 39799 - map NS_STYLE_TEXT_ALIGN_CENTER to align=center, r=syd.
git-svn-id: svn://10.0.0.236/trunk@73762 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:42:57 +00:00
bienvenu%netscape.com
82e2d0a593 fix memory leaks in imap header parsing, r=jefft
git-svn-id: svn://10.0.0.236/trunk@73761 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:41:10 +00:00
karnaze%netscape.com
0bdadeb834 bug 43732 - correctly calculate preferred width of table and cache it. r=syd.
git-svn-id: svn://10.0.0.236/trunk@73760 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:37:28 +00:00
rods%netscape.com
1921a95c8a A "margin" variable isn't being set up in the correct spot.
b=41472 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@73759 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:22:12 +00:00
rods%netscape.com
794167383a an extra keypress was being generated for semicolon, equals, comma, period, slash
it now checks to makes it isn't one of these keys
alos, the subtract key is it's very own special key and is handled separately
b=44189, r=brade


git-svn-id: svn://10.0.0.236/trunk@73758 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 13:16:22 +00:00
axel%pike.org
aecffff28c Code cleanup in extensions/transformiix, getting rid of -DMOZILLA
not part of build


git-svn-id: svn://10.0.0.236/trunk@73757 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 12:35:44 +00:00
BlakeR1234%aol.com
9633504e4e Fix for bug 35057, patch by timeless@bemail.org r=me a=brendan
git-svn-id: svn://10.0.0.236/trunk@73756 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 08:16:23 +00:00
sdv%sparc.spb.su
5f5d17aedf fix for bug=44196
git-svn-id: svn://10.0.0.236/trunk@73755 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 08:01:07 +00:00
BlakeR1234%aol.com
57226a41c8 Fix bug 43277 r=me
git-svn-id: svn://10.0.0.236/trunk@73754 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 07:43:50 +00:00
brendan%mozilla.org
352c59dcb8 Fix lying comment, pick control flow nit (r=lumpy,a=jack).
git-svn-id: svn://10.0.0.236/trunk@73753 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 07:38:11 +00:00
BlakeR1234%aol.com
a2dfa3c0c1 erg. fix indentation.
git-svn-id: svn://10.0.0.236/trunk@73752 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 07:37:48 +00:00
BlakeR1234%aol.com
e2e6c9beeb Fix tiny mistake in my previous checkin.
git-svn-id: svn://10.0.0.236/trunk@73751 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 07:23:44 +00:00
dougt%netscape.com
162fc83684 44046
r=dveditz@netscape.com
pdt+


git-svn-id: svn://10.0.0.236/trunk@73750 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 06:58:28 +00:00
BlakeR1234%aol.com
9bdd33ca46 Compatibility with the mail spec
git-svn-id: svn://10.0.0.236/trunk@73749 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 06:52:46 +00:00
BlakeR1234%aol.com
1a9195f268 Compatibility with the mail spec - http://www.mozilla.org/mailnews/specs/threepane/MailMenusM.html
git-svn-id: svn://10.0.0.236/trunk@73748 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 06:49:11 +00:00
brendan%mozilla.org
65b8bdd99e Add jsdhash.h to export/install lists, and jsdhash.c/.obj.
git-svn-id: svn://10.0.0.236/trunk@73747 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:46:18 +00:00
radha%netscape.com
1e4d6f8713 More changes regarding feature bug 36547 r=rpotts
git-svn-id: svn://10.0.0.236/trunk@73746 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:34:52 +00:00
waterson%netscape.com
e4de1c9239 Update regression test for 22037 to include fun new test cases.
git-svn-id: svn://10.0.0.236/trunk@73745 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:33:16 +00:00
waterson%netscape.com
ec244a11cf Bug 22037. Detect when CantRenderReplacedElement() is inserting a block frame into an inline. When this happens, 'split' the frame model to the nearest containing block. Re-arranged some of ConstructInline()'s support routines to share code with new method SplitToContainingBlock(). r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@73744 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:31:33 +00:00
waterson%netscape.com
c117abb0b3 Fix silly leak that dbaron found with leaksoup. r=jack,a=lumpy.
git-svn-id: svn://10.0.0.236/trunk@73743 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:27:10 +00:00
BlakeR1234%aol.com
c968f39b76 Fix for bugs 20832 and 42202 r=dveditz
git-svn-id: svn://10.0.0.236/trunk@73742 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 04:05:48 +00:00
despotdaemon%netscape.com
52aa37fc2d Pseudo-automatic update of changes made by taka@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@73741 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 03:56:30 +00:00
despotdaemon%netscape.com
9da10fed96 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@73740 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 03:43:45 +00:00
mkaply%us.ibm.com
7cdf888f8c # 42637
r = mkaply, a = brendan
OS/2 bring-up - Need header file for Henry's changes


git-svn-id: svn://10.0.0.236/trunk@73739 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 02:52:58 +00:00
bryner%uiuc.edu
1ecd025623 Fix for crasher bug 44444. r=jst.
git-svn-id: svn://10.0.0.236/trunk@73738 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 02:44:48 +00:00
gagan%netscape.com
5a64fdff92 Fix for bug 22405 (proxy authentication) We were skipping over proxy authentication becuz proxytransparent was false. r=ruslan
git-svn-id: svn://10.0.0.236/trunk@73737 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 02:37:15 +00:00
mozilla.BenB%bucksch.org
93f3722bc1 40862: Fix bug 9202 for this class, temporarily remove the wrapping <div class=text-flowed> in the quoting case.
43453: Check in the nsbr conversion for flowed paragraphs, if we're in an HTML tag (as e.g. outputted by the TXT->HTML converter).
43455: Allow space-stuffing even for otherwise empty (or quoted) lines.


git-svn-id: svn://10.0.0.236/trunk@73736 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 02:22:59 +00:00
dougt%netscape.com
6515a284db 44046
r=dveditz@netscape.com
pdt+


git-svn-id: svn://10.0.0.236/trunk@73734 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 02:05:51 +00:00
mozilla.BenB%bucksch.org
9d287f3ecd 39370: Use format=flowed for quoting
git-svn-id: svn://10.0.0.236/trunk@73733 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:45:02 +00:00
ben%netscape.com
3262466594 initial checkin for bug 10958 (exception feature), application helper pref panel.
Supports adding a new override but not editing or removing. Will work on that next.


git-svn-id: svn://10.0.0.236/trunk@73732 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:43:17 +00:00
law%netscape.com
24eb4820e4 Bug 43583; add interface for helper app dialog; r=varada@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73731 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:42:46 +00:00
javi%netscape.com
63cb8e2904 More entries that were multiply defined are now fixed.
git-svn-id: svn://10.0.0.236/trunk@73730 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:38:51 +00:00
ben%netscape.com
b22a01f1ed small change in ds to support Helper Apps pref panel
git-svn-id: svn://10.0.0.236/trunk@73729 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:35:03 +00:00
mozilla.BenB%bucksch.org
37c6644e37 Rest of 29653: Use a valid "mid" URL as value for the cite attribute of <blockquote> instead of just the raw Msg-ID.
git-svn-id: svn://10.0.0.236/trunk@73728 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:33:19 +00:00
javi%netscape.com
a023887c50 Removed some properties that were multiply defined and correctly defined some
hdr property entires to avoid over-writing properties.


git-svn-id: svn://10.0.0.236/trunk@73727 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:31:30 +00:00
despotdaemon%netscape.com
afb3f69ee9 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@73726 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:27:30 +00:00
ben%netscape.com
a4cee924f4 ...and again. I suck.
git-svn-id: svn://10.0.0.236/trunk@73725 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:24:35 +00:00
cmanske%netscape.com
9450698144 Temporary fix for HTML source window being overwritten by regular editor window when window is resized b=34414. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@73724 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:23:47 +00:00
ben%netscape.com
6c08503cf6 fix braindead stuff. (make global variable local, oops)
git-svn-id: svn://10.0.0.236/trunk@73723 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:22:59 +00:00
brendan%mozilla.org
729aa3812c Avoid 80th column violations and unnecessary local variable.
git-svn-id: svn://10.0.0.236/trunk@73722 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 01:15:08 +00:00
warren%netscape.com
1f54371807 Bug 43858. Fix to make wallet dlls be optional.
git-svn-id: svn://10.0.0.236/trunk@73720 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:45:00 +00:00
warren%netscape.com
5c26c6e8c5 Fix for lost status/error return value. Affects javascript: urls. r=gagan
git-svn-id: svn://10.0.0.236/trunk@73719 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:40:53 +00:00
edburns%acm.org
64743fd04d compile_under_solaris
git-svn-id: svn://10.0.0.236/trunk@73718 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:39:53 +00:00
brendan%mozilla.org
2bec829503 Undo teeny optimization from rev 3.28, alas it breaks ECMA Ed. 3, 15.5.4.15.
git-svn-id: svn://10.0.0.236/trunk@73717 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:30:46 +00:00
edburns%acm.org
12c5493511 Compile_String_changes_with_M16
git-svn-id: svn://10.0.0.236/trunk@73716 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:25:23 +00:00
dougt%netscape.com
5c4e30eccb Mike Kaply <mkaply@us.ibm.com> pointed out a malloc(0) bug as well as a free(null).
a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@73715 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:22:17 +00:00
law%netscape.com
45f1ba66f8 Bug 43583; add new interface for helper app dialog
git-svn-id: svn://10.0.0.236/trunk@73714 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-06 00:09:51 +00:00
ben%netscape.com
dbb0db1507 toolbar drag and drop
git-svn-id: svn://10.0.0.236/trunk@73713 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:55:48 +00:00
ben%netscape.com
09d9409283 toolbar drag and drop
git-svn-id: svn://10.0.0.236/trunk@73712 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:55:39 +00:00
jefft%netscape.com
54fd4379aa fixed bug 44164 - improperly parented modal dialog in nsPop3Protocol; r=mscott
git-svn-id: svn://10.0.0.236/trunk@73711 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:55:17 +00:00
ben%netscape.com
9030716697 give toolbar buttons a max width of 10em to prevent ridiculously large personal toolbar buttons.
git-svn-id: svn://10.0.0.236/trunk@73710 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:50:30 +00:00
ben%netscape.com
138436a31b personal toolbar drag and drop and a fix for 42692, [disabled by default!]
git-svn-id: svn://10.0.0.236/trunk@73709 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:49:31 +00:00
law%netscape.com
bd38d4fa33 Bug 43583; add new interface file for helper app dialog;r=varada@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73708 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:41:14 +00:00
cmanske%netscape.com
ec6be6cf62 Fixed setting value on multiline textarea - get value from content node instead of frame. Fixed by kin, b=42646, r=mjudge, a=beppe
git-svn-id: svn://10.0.0.236/trunk@73707 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:38:26 +00:00
jefft%netscape.com
88334e2247 fixed bug 33986 -- IMAP: Quit with unsaved draft, save to draft crashes & bug 44203 -- Closing last mail compose crashes the app; r=alecf
git-svn-id: svn://10.0.0.236/trunk@73706 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:19:24 +00:00
pinkerton%netscape.com
af868ff566 when passing drag event into gecko, correctly compute offset to child widget. r=damn bug 43405
git-svn-id: svn://10.0.0.236/trunk@73705 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:14:14 +00:00
pinkerton%netscape.com
cfbebe7bb0 take into account the scroll position of the tree's view when computing frame-relative mouse coordinates. r=damn bug 43405
git-svn-id: svn://10.0.0.236/trunk@73704 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:12:35 +00:00
rpotts%netscape.com
bc20fd3c03 Moved session history methods from nsIWebNavigation into a new interface called nsIDocShellHistory. Also made docshells persist layout state before being destroyed (this is necesssary for framesets).
git-svn-id: svn://10.0.0.236/trunk@73703 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 23:10:29 +00:00
ruslan%netscape.com
bb6667a9c2 Make XPCOM_CHECK_THREADSAFE env. variable to actually be useful
git-svn-id: svn://10.0.0.236/trunk@73702 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:58:28 +00:00
ruslan%netscape.com
9d5c85f6e4 Fix 42377 - make http SetNotificationCallbacks go through the proxy object, thus
avoiding crashers when OpenInputStream is used, a=gagan,warren


git-svn-id: svn://10.0.0.236/trunk@73701 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:57:50 +00:00
av%netscape.com
e0616cee81 #43500, making the default plugin part of the build on Windows, r=pollmann
git-svn-id: svn://10.0.0.236/trunk@73700 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:51:34 +00:00
danm%netscape.com
2d19de477f added nsIDocShellHistory for rpotts
git-svn-id: svn://10.0.0.236/trunk@73699 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:44:57 +00:00
bienvenu%netscape.com
c0ceccd221 fix mork memory leak, a+r=waterson 35913
git-svn-id: svn://10.0.0.236/trunk@73698 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:40:17 +00:00
rpotts%netscape.com
f8caaea71c New session history interface for the DocShell... not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@73697 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:28:24 +00:00
bienvenu%netscape.com
492290e8c3 check in fix for 40746 for putterman, crash hitting next unread in empty folder, r=me
git-svn-id: svn://10.0.0.236/trunk@73696 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:26:55 +00:00
danm%netscape.com
dcfe9c7095 stick Macintosh modal windows on top, correct other platforms' dependent window z-level, all with icky XP_ ifdefs. bug 44117 r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@73695 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:24:44 +00:00
danm%netscape.com
af282c07d8 remove dependence on modality for z-ordering. bug 44117 r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@73694 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:22:58 +00:00
varada%netscape.com
9f629f086b fix for bug #36155 -default identity for compose message must be the selected identity in messenger windows; r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@73693 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 22:06:34 +00:00
leaf%mozilla.org
805708df41 Automated update
git-svn-id: svn://10.0.0.236/trunk@73692 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 21:30:10 +00:00
mkaply%us.ibm.com
843d43b5a2 #40177
r = cls, a = brendan
OS/2 bringup - Changes so we can build mng


git-svn-id: svn://10.0.0.236/trunk@73691 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 21:28:07 +00:00
kin%netscape.com
682a69e783 Backout passing of PR_FALSE to GetText() in CreateAnonymousContent(). That
was a debug change in my tree that I accidentally included in my previous
checkin.


git-svn-id: svn://10.0.0.236/trunk@73690 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 21:23:35 +00:00
mkaply%us.ibm.com
bd9e5900cc #40177
r = cls, a = brendan
OS/2 bringup - XP_OS2_EMX should be defined for EMX builds no matter what


git-svn-id: svn://10.0.0.236/trunk@73689 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 21:21:54 +00:00
kin%netscape.com
b1c5d5cd44 Fix for bug #43679: lose sender when scrolling in the addressing pane
Modified CreateAnonymousContent() to use mCachedState if it exists.

r=ducarroz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73688 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 20:51:08 +00:00
edburns%acm.org
da177fe5fd Whitespace formatting changes.
git-svn-id: svn://10.0.0.236/trunk@73687 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 20:27:41 +00:00
morse%netscape.com
09065955f6 fix bug 44581, minor wording change, submitter=Blake Ross, r=morse
git-svn-id: svn://10.0.0.236/trunk@73686 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 20:14:30 +00:00
tor%cs.brown.edu
73bb269933 Build MNG decoder when MOZ_MNG is set. r=roc+@cs.cmu.edu, a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73685 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:54:33 +00:00
edburns%acm.org
c3f688ff6d Make it so it compiles on UNIX.
git-svn-id: svn://10.0.0.236/trunk@73684 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:53:24 +00:00
mkaply%us.ibm.com
8d7beef6d9 #42637
r = mkaply, a = brendan
OS/2 bringup - remove obsolete widgets, begin font work, get filepicker working


git-svn-id: svn://10.0.0.236/trunk@73683 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:53:21 +00:00
tor%cs.brown.edu
a097baa88d Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73682 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:32:22 +00:00
mstoltz%netscape.com
2566397fdc DOM properties default to same origin access only. Bug 28443. r=rginda
git-svn-id: svn://10.0.0.236/trunk@73681 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 19:08:20 +00:00
vidur%netscape.com
02818e5c1a Cleaning up simple cgi. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73680 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 18:49:41 +00:00
ssu%netscape.com
827783da2c fixing bug 43901 - fixing makeall.pl to build windows installer under win2k. a=leaf r=sgehani
git-svn-id: svn://10.0.0.236/trunk@73679 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 18:29:33 +00:00
slamm%netscape.com
a3127beff0 Change ~/.mozconfig to $HOME/.mozconfig for OS2 folks.
git-svn-id: svn://10.0.0.236/trunk@73678 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 18:24:28 +00:00
cyeh%bluemartini.com
8e0ab1fd6e fixes for the attachment widths. fix by dave@intrec.com (Dave Miller),
original bug found by timeless@bemail.org


git-svn-id: svn://10.0.0.236/trunk@73677 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 18:21:54 +00:00
rpallath%eng.sun.com
c159e73577 Altered test files
git-svn-id: svn://10.0.0.236/trunk@73676 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 17:17:34 +00:00
rpallath%eng.sun.com
04de8efbac Modified Test Cases. All previously unsupported methods have been
supported. Test Cases for the same have been updated.


git-svn-id: svn://10.0.0.236/trunk@73675 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 17:16:15 +00:00
nboyd%atg.com
e100ec45de Remove obsolete references to NodeFactory.
git-svn-id: svn://10.0.0.236/trunk@73674 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 17:08:26 +00:00
vidur%netscape.com
af010cf93a Added new parser interface that does string/stream to DOM document parsing. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73672 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 16:55:53 +00:00
terry%mozilla.org
d22aab65d0 If bugs with an invalid product/component are found, provide a link to bring up the list of invalid bugs.
git-svn-id: svn://10.0.0.236/trunk@73671 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 15:17:36 +00:00
mkaply%us.ibm.com
d1ae27be7b 42637
r=dougt, a=brendan
OS/2 bringup - DLL names need to be 8.3 on OS/2


git-svn-id: svn://10.0.0.236/trunk@73670 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:53:12 +00:00
mkaply%us.ibm.com
d3b1c79d63 #42637
r=sspitzer, a=brendan
OS/2 bringup - VisualAge treats this like a cast - according to nsFileSpec.h, our way is correct


git-svn-id: svn://10.0.0.236/trunk@73669 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:48:12 +00:00
mkaply%us.ibm.com
b00f430573 #42637
r=mscott, a=brendan
OS/2 bringup - VisualAge treats this like a cast - according to nsFileSpec.h, our way is correct


git-svn-id: svn://10.0.0.236/trunk@73668 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:44:44 +00:00
mkaply%us.ibm.com
b9f715c40a #42637
r=dougt, a=brendan
OS/2 bringup - change to locate DLL in components dir


git-svn-id: svn://10.0.0.236/trunk@73667 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:40:53 +00:00
mkaply%us.ibm.com
b3f87a2180 #42637
r=waterson, a=waterson
OS/2 bringup - this is a Windows path, not an XP_PC path


git-svn-id: svn://10.0.0.236/trunk@73666 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:39:07 +00:00
mkaply%us.ibm.com
f86f54f07f #42637
r=mkaply, a=brendan
Support for subkeyboard types, like Dvorak


git-svn-id: svn://10.0.0.236/trunk@73665 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 13:37:09 +00:00
BlakeR1234%aol.com
85a54ba8bb Rest of the fix for 42318 (r=ben, see previous checkin)
git-svn-id: svn://10.0.0.236/trunk@73664 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 05:14:49 +00:00
BlakeR1234%aol.com
f383184545 Partial fix for bug 42318 r=ben, fix for 44240 r=disttsc@bart.nl, a=brendan
git-svn-id: svn://10.0.0.236/trunk@73663 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 05:10:47 +00:00
sgehani%netscape.com
432e9a5c80 Use passive mode when downloading. (Checking in for Jeffrey Baker.)
[nsbeta2+ b = 40655; r=sgehani,dbragg]


git-svn-id: svn://10.0.0.236/trunk@73662 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 03:55:54 +00:00
sgehani%netscape.com
58c60d3a91 Prevent multiple redundant downloads when default (return) key is hit more than once.
[nsbeta2+ b = 31042; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@73661 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-05 03:53:09 +00:00
dougt%netscape.com
846f904556 Adding files to cvs for test application.
git-svn-id: svn://10.0.0.236/trunk@73660 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 22:42:09 +00:00
dougt%netscape.com
fed912c428 I am an idiot.
git-svn-id: svn://10.0.0.236/trunk@73659 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 22:08:41 +00:00
dougt%netscape.com
bf51a63eae 44113, 44190, 44191.
r/a=valeski@netscape.com

nsDocShellTreeOwner not handling chrome/content correctly.
Asserts when no toplevel window set.
Need to start chrome up from NS_InitEmbedding()
Test App changes.


git-svn-id: svn://10.0.0.236/trunk@73658 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 21:53:27 +00:00
dougt%netscape.com
4aa12d035b 44113 r/a=valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73657 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 21:49:27 +00:00
brendan%mozilla.org
e508a48538 Fix unused new Object before literal.
git-svn-id: svn://10.0.0.236/trunk@73656 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 19:06:26 +00:00
blizzard%redhat.com
0fd07c8cdf fix for bug #43305. reduce the number of paints and fix leaking items into a linked list when scrolling. this should make linux a little faster. r=bryner,pavlov,imoT a=brendan
git-svn-id: svn://10.0.0.236/trunk@73655 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 19:05:47 +00:00
radha%netscape.com
8949f863cb Enabling feature "Session History in frameset pages". bug # 36547. Reviewer for this checkin
as well as several previous checkins related to this bug is rpotts.


git-svn-id: svn://10.0.0.236/trunk@73654 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 18:51:14 +00:00
morse%netscape.com
d100122d25 workaround for bug 43573, select user not working
git-svn-id: svn://10.0.0.236/trunk@73653 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-04 03:07:39 +00:00
cls%seawood.org
a1ee73cf32 Remove generated config files on distclean. Bug #43142
git-svn-id: svn://10.0.0.236/trunk@73651 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-03 21:41:48 +00:00
nboyd%atg.com
a1a769b259 Subject:
Re: Rhino1.5.R1: problems with multithreaded embedded application.
        Date:
             Mon, 03 Jul 2000 14:38:56 -0400
       From:
             Norris Boyd <nboyd@atg.com>
 Organization:
             Art Technology Group
         To:
             Fergus Gallagher <Fergus.Gallagher@orbisuk.com>
 Newsgroups:
             netscape.public.mozilla.jseng
  References:
             1




You found a bug in Rhino; I wonder if others have been running into the same thing.

The problem is with a class called LazilyLoadedCtor. I wrote this class to reduce the
time
required by initStandardObjects by only creating standard objects when the associated
constructors are first accessed. The problem is that this class was not threadsafe.
I've
made changes to that class, and to ScriptableObject as well. The design of dynamic
properties calling getters and setters (which LazilyLoadedCtor uses) didn't really
allow
any way for the getter/setter to replace itself without a thread hazard. I've now
extended
setters so that they can return a value which replaces the getter/setter to avoid this
problem.

Thanks for finding this problem. There have been a couple of other reports of problems
in
this area, so I hope this will fix them.

The patch follows.

--N

Index: LazilyLoadedCtor.java
===================================================================
RCS file: /cvsroot/mozilla/js/rhino/org/mozilla/javascript/LazilyLoadedCtor.java,v
retrieving revision 1.1
diff -u -r1.1 LazilyLoadedCtor.java
--- LazilyLoadedCtor.java 2000/02/29 21:34:37 1.1
+++ LazilyLoadedCtor.java 2000/07/03 18:31:03
@@ -58,9 +58,12 @@
     }

     public Object getProperty(ScriptableObject obj) {
-        obj.delete(ctorName);
         try {
-            ScriptableObject.defineClass(obj, Class.forName(className));
+            synchronized (obj) {
+                if (!isReplaced)
+                    ScriptableObject.defineClass(obj, Class.forName(className));
+                isReplaced = true;
+            }
         }
         catch (ClassNotFoundException e) {
             throw WrappedException.wrapException(e);
@@ -83,11 +86,14 @@
         return obj.get(ctorName, obj);
     }

-    public void setProperty(ScriptableObject obj, Object val) {
-        obj.delete(ctorName);
-        obj.put(ctorName, obj, val);
+    public Object setProperty(ScriptableObject obj, Object val) {
+        synchronized (obj) {
+            isReplaced = true;
+            return val;
+        }
     }

     private String ctorName;
     private String className;
+    private boolean isReplaced;
 }
Index: ScriptableObject.java
===================================================================
RCS file: /cvsroot/mozilla/js/rhino/org/mozilla/javascript/ScriptableObject.java,v
retrieving revision 1.17
diff -u -r1.17 ScriptableObject.java
--- ScriptableObject.java 2000/03/13 17:12:36 1.17
+++ ScriptableObject.java 2000/07/03 18:31:04
@@ -246,11 +246,21 @@
                             break;
                         }
                     }
-                    getterSlot.setter.invoke(start, arg);
+                    Object v = getterSlot.setter.invoke(start, arg);
+                    if (getterSlot.setterReturnsValue) {
+                        slots[slotIndex].value = v;
+                        if (!(v instanceof Method))
+                            slots[slotIndex].flags = 0;
+                    }
                     return;
                 }
                 Object[] args = { this, actualArg };
-                getterSlot.setter.invoke(getterSlot.delegateTo, args);
+                Object v = getterSlot.setter.invoke(getterSlot.delegateTo, args);
+                if (getterSlot.setterReturnsValue) {
+                    slots[slotIndex].value = v;
+                    if (!(v instanceof Method))
+                        slots[slotIndex].flags = 0;
+                }
                 return;
             }
             catch (InvocationTargetException e) {
@@ -1183,6 +1193,7 @@
         slot.delegateTo = delegateTo;
         slot.getter = getter;
         slot.setter = setter;
+        slot.setterReturnsValue = setter != null && setter.getReturnType() !=
Void.TYPE;
         slot.value = null;
         slot.attributes = (short) attributes;
         slot.flags = flags;
@@ -1551,6 +1562,7 @@
     Object delegateTo;  // OPT: merge with "value"
     Method getter;
     Method setter;
+    boolean setterReturnsValue;
 }




Fergus Gallagher wrote:

> I am having problems getting my head around contexts and scopes and my
> multi-threaded application fall over.
>
> If I set "global=false" the following code used a per-thread
> initStandardObject() and this seems to work.  But when I set
> "global=true", the global "parentScope" is used and I get some wierd
> errors.
>
> If I change "__CODE__.slice(0,5)" to
> 1. "__CODE__" - works
> 2. "__CODE__.substring(0,5)" - fails
> 3. "__CODE__.toString()" - works
>
> Any help appreciated.
>
> Fergus
>
> ===== Test.java =========================================
> import java.io.*;
> import org.mozilla.javascript.*;
>
> public class Test implements Runnable {
>         private Script script;
>         private Scriptable parentScope;
>         private String __CODE__="ABCDEFGHIJK";
>         private boolean global = true;
>         private static Context globalContext = null;
>         public Test() throws Exception {
>                 String js= "java.lang.System.out.println(__CODE__.slice(0,5));";
>                 globalContext.setCompileFunctionsWithDynamicScope(false);
>                 parentScope = globalContext.initStandardObjects(null);
>                 StringReader sr = new StringReader(js);
>                 script = globalContext.compileReader(parentScope, sr, "(compiled)",
> 1,null);
>         }
>
>         public void run() {
>                 try {
>                         Context context = Context.enter();
>                         Scriptable threadScope;
>                         if (global) {
>                                 threadScope = context.newObject(parentScope);
>                                 threadScope.setPrototype(parentScope);
>                                 threadScope.setParentScope(null);
>                         } else {
>                                 threadScope = context.initStandardObjects(null);
>                         }
>                         threadScope.put("__CODE__",threadScope,__CODE__);
>                         script.exec(context,threadScope);
>                 }
>                 catch (Exception e) {
>                         System.err.println(e.getClass().getName()+":
"+e.getMessage());
>                 }
>                 finally {
>                         Context.exit();
>                 }
>         }
>
>         public static void main(String args[]) throws Exception {
>         globalContext = Context.enter();
>                 Test me = new Test();
>                 int count=10;
>                 Thread[] threads = new Thread[count];
>                 for (int i=0; i<count; i++) {
>                         Thread t = new Thread(me);
>                         threads[i] = t;
>                         t.start();
>                 }
>                 for (int i=0; i<count; i++) {
>                         threads[i].join();
>                 }
>                 Context.exit();
>         }
> }
>
> ==== OUTPUT ===============================================
> ABCDE
> ABCDE
> org.mozilla.javascript.EcmaError: undefined is not a function.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> org.mozilla.javascript.EvaluatorException: Constructor for "String" not
> found.
> ===========================================================
>
> The number and type of exceptions is highly variable from run to run -
> anywhere from 1-9 out of 10.
> The EcmaError in particular only happens occasionally.
>
> --
> Fergus Gallagher          Tel: +44 (20) 8 987 0717
> Orbis                     Fax: +44 (20) 8 742 2649
> The Swan Centre           email: Fergus.Gallagher@orbisuk.com
> Fishers Lane              Web: http://www.orbisuk.com
> London W4 1RX / UK


git-svn-id: svn://10.0.0.236/trunk@73650 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-03 18:40:35 +00:00
BlakeR1234%aol.com
3794a301da Fix for 44442. r=me
git-svn-id: svn://10.0.0.236/trunk@73649 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-03 05:56:58 +00:00
rbs%maths.uq.edu.au
ab59c260ce [not part of default build] Fix bug 43443, and some updates in the stretchy chars land. a:waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73648 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-03 05:40:13 +00:00
BlakeR1234%aol.com
35b930e4b5 Partial fix for bug 44442. Thanks to walk84@usa.net for catching it r=me
git-svn-id: svn://10.0.0.236/trunk@73647 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-03 00:41:30 +00:00
bienvenu%netscape.com
3ffd988c06 fix OS2 build bustage
git-svn-id: svn://10.0.0.236/trunk@73646 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 23:56:10 +00:00
jband%netscape.com
1cf39227e9 updating readme. Not part of build
git-svn-id: svn://10.0.0.236/trunk@73645 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 19:37:57 +00:00
cls%seawood.org
7fb57d53ad Removing last vestiges of raptor from unix build. Since some libs were renamed, a 'make distclean' is recommeneded to remove the old copies of those libs. Bug #8228 r=bryner
git-svn-id: svn://10.0.0.236/trunk@73643 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 18:44:42 +00:00
bienvenu%netscape.com
9ae501b0eb fix OS2 build bustage
git-svn-id: svn://10.0.0.236/trunk@73642 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 18:16:47 +00:00
bienvenu%netscape.com
9a4b6f8f61 fix os2 build bustage
git-svn-id: svn://10.0.0.236/trunk@73641 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 18:11:32 +00:00
ben%netscape.com
e1e301e649 tweaks to classic skin for mac (make throbber normal size, make splitter the right colour)
git-svn-id: svn://10.0.0.236/trunk@73640 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 07:03:16 +00:00
morse%netscape.com
38ca00123e fix bug 43227, quickfill still in menu on mac
git-svn-id: svn://10.0.0.236/trunk@73639 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 04:00:02 +00:00
dbaron%fas.harvard.edu
be229d0ebf Ignore the correct generated files (rather than the list copied from leaky).
git-svn-id: svn://10.0.0.236/trunk@73638 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-02 00:44:31 +00:00
dbaron%fas.harvard.edu
2b71a5740c Fix bug 35355 by not reading before the beginning of an array. Patch from Robert O'Callahan <roc+moz@cs.cmu.edu>.
Fix ConditionRect so really wide documents repaint correctly on Win95.
r=kmcclusk, a=waterson


git-svn-id: svn://10.0.0.236/trunk@73636 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 22:12:23 +00:00
leaf%mozilla.org
327240ef2a Automated update
git-svn-id: svn://10.0.0.236/trunk@73635 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 21:45:08 +00:00
dbaron%fas.harvard.edu
7c7f971183 Fix leak of content from trees introduced recently. r=hyatt,waterson
git-svn-id: svn://10.0.0.236/trunk@73634 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 21:45:06 +00:00
dbaron%fas.harvard.edu
43225d6206 Add Vidur's xmlextras to the list of *all* extensions (what you get with --with-extensions=all). Does not affect default build. r=vidur
git-svn-id: svn://10.0.0.236/trunk@73633 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 21:41:48 +00:00
dbaron%fas.harvard.edu
4606a3e8e6 Allow Vidur's xmlextras to be built on Linux (not part of default build). r=vidur
git-svn-id: svn://10.0.0.236/trunk@73632 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 21:40:53 +00:00
jab%atdot.org
e7e15146f2 A typo in the Windows makefile...
git-svn-id: svn://10.0.0.236/trunk@73631 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 12:41:53 +00:00
jab%atdot.org
c5fa278001 The mac build was not getting my new MANIFEST file. I think this might fix it.
git-svn-id: svn://10.0.0.236/trunk@73627 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 11:05:41 +00:00
jab%atdot.org
828533791e I had an extra tab after one of the makefile lines...
git-svn-id: svn://10.0.0.236/trunk@73626 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 10:49:06 +00:00
jab%atdot.org
027f444ba4 a=brendan@mozilla.org
Bug #16103
Support for SOCKS proxies in HTTP, HTTPS, and FTP protocols.
Also includes the prefs configuration and UI bits.


git-svn-id: svn://10.0.0.236/trunk@73625 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 10:25:25 +00:00
ssu%netscape.com
057942a772 fixing bug 44006 - Please don't use Windows extended dialogs in setupsrc.dll. nsbeta2+ r=sgehani
git-svn-id: svn://10.0.0.236/trunk@73624 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 08:50:44 +00:00
andreas.otte%primus-online.de
b0e4bff161 fix bug 43659, URL bar does not accept hexadecimal domain names, r=gagan@netscape.com, a=waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73623 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 06:29:13 +00:00
rpotts%netscape.com
42b6d06869 Fixed a leak where child SHEntry were not being released when the parent SHEntry was deleted.
git-svn-id: svn://10.0.0.236/trunk@73622 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 05:37:40 +00:00
sspitzer%netscape.com
9a5dbb3cb7 last check in before sabbatical! fix for nsbeta2+ bugscape bug #1149.
install default templates in the case where the profile's locale
is not set.  r=mscott


git-svn-id: svn://10.0.0.236/trunk@73621 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 02:38:27 +00:00
brendan%mozilla.org
33739aa4fc Reference-count XBL JSClass structs, and LRU-cache unreferenced ones up to some quota, to avoid bloat and shutdown crashes due to unavoidable manual delete/last-use misorder (42530, r=hyatt).
git-svn-id: svn://10.0.0.236/trunk@73620 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 02:36:18 +00:00
nisheeth%netscape.com
d3c0d42db2 Fix for nsbeta2+ bug 12152. r=vidur, pollmann. Setting the src property during document load works on <IMG> and <INPUT type="image"> elements.
git-svn-id: svn://10.0.0.236/trunk@73619 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 02:26:30 +00:00
cmanske%netscape.com
dd3d32b37c Don't include current URL when building Recent Files menu. Checking in work for Ryan Cassin, b=17502, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@73618 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 02:16:04 +00:00
dougt%netscape.com
44732d3a61 submitted by Quy Tonthat <quy@igelaus.com.au>
a=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73617 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 02:12:52 +00:00
javi%netscape.com
a11f6a01a8 Get the CRL dialog window to properly close and refresh the Signers pane
when no more CRL's are left.


git-svn-id: svn://10.0.0.236/trunk@73616 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 01:26:42 +00:00
javi%netscape.com
23bd6cfb23 First shot at having UI for deleting CRLs.
git-svn-id: svn://10.0.0.236/trunk@73615 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 01:19:22 +00:00
javi%netscape.com
f9f93685e4 Remove an unused button from dialog.
git-svn-id: svn://10.0.0.236/trunk@73614 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 01:15:28 +00:00
javi%netscape.com
f7a4c2177a Changes for having a dialog that does CRL deleting.
git-svn-id: svn://10.0.0.236/trunk@73613 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 01:14:22 +00:00
morse%netscape.com
7dd42d1f29 fix bug 42550, unable to delete single-signon database, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@73612 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:43:42 +00:00
jst%netscape.com
1a6f29b8e9 Checking in patch from timelesss@bemail.org, add access keys to javascript console menus, r=me, a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73611 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:43:03 +00:00
tao%netscape.com
309b762723 Fix the broken localeSwitcher in "QA|Languages->". a=ben
git-svn-id: svn://10.0.0.236/trunk@73610 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:41:20 +00:00
cmanske%netscape.com
71c3960c36 Table Properties dialog and UI commands work. b=20973, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@73609 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:37:38 +00:00
cmanske%netscape.com
b0cfe32ef3 Changed Composer test because of added parameter for JoinTableCells in connection with work for bug 20973. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@73608 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:37:23 +00:00
cmanske%netscape.com
d916040dae Table editing work. b=20973, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@73607 18797224-902f-48f8-a5cc-f745e15eee43
2000-07-01 00:37:12 +00:00
hangas%netscape.com
bab0278a37 Fixing stop and print buttons in Classic skin. Wirtten by German r=hangas
git-svn-id: svn://10.0.0.236/trunk@73606 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:53:00 +00:00
hangas%netscape.com
1eef8580c5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73605 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:50:37 +00:00
tor%cs.brown.edu
444120c5b6 Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73604 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:41:12 +00:00
valeski%netscape.com
d2709265b5 39474. r=rpotts,mscott. We now can load a stream directly into the uri loader (bypassing necko). built and pre-checkin tested on linux and win
git-svn-id: svn://10.0.0.236/trunk@73603 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:39:30 +00:00
vidur%netscape.com
f831750c24 Simple posting tests. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73602 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:10:56 +00:00
vidur%netscape.com
cc45defb2d Added support for synchronous posting. Got rid of unbreakable circular reference in the abort case. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73601 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 23:09:26 +00:00
rpotts%netscape.com
23edfd5232 Fixed the nsIWebNavigation methods on the docshell when SH_IN_FRAMES is defined...
git-svn-id: svn://10.0.0.236/trunk@73600 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 22:05:32 +00:00
edburns%acm.org
8e2c512db6 Automatically_generate_JAVAH_headers
git-svn-id: svn://10.0.0.236/trunk@73599 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 21:08:30 +00:00
edburns%acm.org
a8d3fcb4e4 Finally_make_use_of_Sherry_Shen_changes
git-svn-id: svn://10.0.0.236/trunk@73598 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 19:03:27 +00:00
edburns%acm.org
8c4107130e Finally_make_use_of_Sherry_Shen_changes
git-svn-id: svn://10.0.0.236/trunk@73597 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 18:50:02 +00:00
despotdaemon%netscape.com
fc06dfe5aa Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@73596 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 18:30:36 +00:00
edburns%acm.org
3560f2869c feature:
Now you can shift click to select a node in the DOM viewer.


git-svn-id: svn://10.0.0.236/trunk@73595 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 17:53:58 +00:00
edburns%acm.org
b5ac5f55b7 a=av
bug=23775
This is the last bit of the checkin that George Drapeau started
for bug 23775.  He didn't finish due to conflicts with this file
and, being the good engineer that he is, he waited for the author
to return from vacation.

George said I could check this in under the same approval for
the rest of 23775.


git-svn-id: svn://10.0.0.236/trunk@73594 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 17:31:02 +00:00
svn%xmlterm.org
322e1ee8a7 --NOT PART OF DEFAULT BUILD--
XMLterm changes only. Absolute URL chrome://xmlterm/skin/xmltpage.css is not
recognized in xmlterm.html. Using relative URL ../skin/xmltpage.css as a
workaround.


git-svn-id: svn://10.0.0.236/trunk@73593 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 14:53:19 +00:00
kin%netscape.com
f65d1b5fba Fix for bug #42178 Back causes data corruption
Modified CreateAnonymousContent() so that if the text widget has
a default value, it adds it as a text node under the div after it
is created. Add better error checking to avoid possible problems.
Removed calls to SetTextControlState() that were used
to initialize the text widget contents from GetPrefSize() because
it was causing a reflow within a reflow and the editor to be re-entered.
Added missing call to GetText() in Reset().

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73592 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 14:51:58 +00:00
bienvenu%netscape.com
2a1e519fc2 more fixes for progress meteors,r=mscott 38598
git-svn-id: svn://10.0.0.236/trunk@73591 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 13:30:02 +00:00
locka%iol.ie
c811c9255a Fixed problem with chrome content docshells
git-svn-id: svn://10.0.0.236/trunk@73590 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 12:40:52 +00:00
locka%iol.ie
647d05c9f4 NOT PART OF BUILD. Update the address field url after clicking on link
git-svn-id: svn://10.0.0.236/trunk@73589 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 12:37:05 +00:00
locka%iol.ie
29b59b41cc NOT PART OF BUILD. Tiny graphics for mini-nav
git-svn-id: svn://10.0.0.236/trunk@73588 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 12:25:49 +00:00
sdv%sparc.spb.su
cab8ea17e5 fixed a memory leak
git-svn-id: svn://10.0.0.236/trunk@73587 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 10:46:49 +00:00
locka%iol.ie
07a38859b7 NOT PART OF BUILD. Win32 only. Simple test of embedding APIs dumps out memory statistics.
git-svn-id: svn://10.0.0.236/trunk@73586 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 10:40:12 +00:00
cls%seawood.org
91d683a067 Removed obsolete REQUIRES variable from every Makefile.in/makefile.win
git-svn-id: svn://10.0.0.236/trunk@73583 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 08:08:04 +00:00
warren%netscape.com
9c9d05c025 Bug 37463. Fixed javascript: url deadlock. Also made the file transport more efficient in the process by eliminating the lock. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73582 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 07:18:52 +00:00
alecf%netscape.com
530465ca79 mozilla side of fix for #34140
r=sspitzer

Allow protocol-specific attributes to be set in the ISP RDF file


git-svn-id: svn://10.0.0.236/trunk@73581 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 06:07:36 +00:00
mscott%netscape.com
ae61ab852e Bug #43887 --> fix build bustage on WIN2K platform. Not beta2 plussed yet but it's fixing build breakage.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73580 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 06:03:43 +00:00
alecf%netscape.com
892e042699 update ISP example (not part of build)
git-svn-id: svn://10.0.0.236/trunk@73579 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 06:03:21 +00:00
alecf%netscape.com
9bcdb3ba49 fix for #43911 - make double-clicking of messages in the search window open the target
message in a standalone message window - mostly moving files into threadPane.js and
abstracting out the folder datasource
r=putterman


git-svn-id: svn://10.0.0.236/trunk@73578 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 06:02:30 +00:00
mscott%netscape.com
8cc210d5a4 Bug #43887 --> fix build bustage on Win2K. This bug wasn't nsbeta2 plussed yet but it's build breakage fix!!
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73577 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 06:02:27 +00:00
jfrancis%netscape.com
890c0d5e35 fixing max text length initialization for text fields. 43275
git-svn-id: svn://10.0.0.236/trunk@73576 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 05:51:34 +00:00
jfrancis%netscape.com
6e3a97f5c5 fix for undo in ender-lite (text fields, url bar, etc)
git-svn-id: svn://10.0.0.236/trunk@73575 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 04:58:34 +00:00
jband%netscape.com
ce4fc31a2d Fix dogfood/crash bugs: 42750, 39858 and fix 43897 and improve JS/XPConnect error reporting to help with crasher 40792. r=mccabe@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@73574 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 04:04:46 +00:00
mcafee%netscape.com
e5d58071f5 Properly set up pref callbacks for intl.accept_languages (41046). r=gagan
git-svn-id: svn://10.0.0.236/trunk@73573 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 02:58:13 +00:00
rjc%netscape.com
51b30b4584 Fix bug # 44284: fix bookmark schedule XUL. Code from danm. r=me
git-svn-id: svn://10.0.0.236/trunk@73571 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 01:56:03 +00:00
hangas%netscape.com
37d6b09f85 More work on bug 43658 classic skin repair. Written by german. r= hangas.
git-svn-id: svn://10.0.0.236/trunk@73569 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 01:35:40 +00:00
dbaron%fas.harvard.edu
f7cbe48388 Add new regression tests. Does not affect build.
git-svn-id: svn://10.0.0.236/trunk@73568 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 01:26:06 +00:00
danm%netscape.com
08d1dbfe04 change last revision to use general API rather than requiring a new one. r=morse@netscape.com. bug 25684
git-svn-id: svn://10.0.0.236/trunk@73567 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 01:23:16 +00:00
danm%netscape.com
5089e8ba38 get window for dialog parent from channel before defaulting to HiddenWindow in OnEndDocumentLoad. Fixes behaviour of the 'select a user' modal dialog. bugs 25684,44149. r=morse@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73566 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 01:13:37 +00:00
danm%netscape.com
2fa9187ebc the 'url has changed' alert in OnStopRequest now asks the channel for an nsIPrompt before defaulting to nsNetSupportDialog. bugs 25684,44171. r=rjc@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73565 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 00:47:01 +00:00
rginda%netscape.com
fd342c5cf5 -- not part of build --
make cview show up under tasks->tools when it is installed


git-svn-id: svn://10.0.0.236/trunk@73564 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 00:07:46 +00:00
morse%netscape.com
d48e534e40 partial fix for bug 43738, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@73563 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 00:05:03 +00:00
ashuk%eng.sun.com
ad8ed2e23e bug=44279
a=edburns
r=edburns
author=ashuk.

This code makes Webclient work with Mozilla M16.


git-svn-id: svn://10.0.0.236/trunk@73562 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-30 00:01:58 +00:00
ashuk%eng.sun.com
25d27834af The current webclient only works with M13, and the
old webclient, in classes and src, works with pre M13.

This change removes the old webclient.


git-svn-id: svn://10.0.0.236/trunk@73561 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:59:12 +00:00
hyatt%netscape.com
5943c19c08 Fix for dogfood bug#43169. r=pink
git-svn-id: svn://10.0.0.236/trunk@73560 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:34:46 +00:00
attinasi%netscape.com
e69e3af93f Temporarily turned off style context sharing while I figure out why it is causing incorrect styling of some XUL elements. b=43490
git-svn-id: svn://10.0.0.236/trunk@73559 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:13:46 +00:00
harishd%netscape.com
4fa2effbda Bug 40477 ( nsbeta2+ ) - Don't rely on ';' to terminate entities.
r=pollmann.


git-svn-id: svn://10.0.0.236/trunk@73558 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:05:46 +00:00
harishd%netscape.com
9fb7479d71 Bug 43274 ( nsbeta2+ ) - Checkin for Rickg.
r=harishd


git-svn-id: svn://10.0.0.236/trunk@73557 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 23:04:24 +00:00
danm%netscape.com
439598308a reverting the 2^# 'fix manifest' part of Ben's last checkin. (bug 43684, introduced five days ago)
git-svn-id: svn://10.0.0.236/trunk@73556 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:56:56 +00:00
rjc%netscape.com
f319773a37 Fix bug # 43906: non-existant file URLs can cause template failure for bookmarks. R=waterson
git-svn-id: svn://10.0.0.236/trunk@73555 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:47:24 +00:00
sfraser%netscape.com
3ace47ff12 Fix for 44118 and nsbeta2+ bug 42625, r=kin. Update selection-based commands (e.g. cut/copy) when the selection changes from collapsed to non-collapsed and vice versa, not just when it is uncollapsed.
git-svn-id: svn://10.0.0.236/trunk@73554 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:36:10 +00:00
jj%netscape.com
f3d839b628 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73553 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:34:11 +00:00
sfraser%netscape.com
a4946e4c9c Fix for nsbeta2+ bug 42625, written by brade, r=sfraser. When checking whether to get a special text field selection, QI to test for text area as well as input.
git-svn-id: svn://10.0.0.236/trunk@73552 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:33:36 +00:00
miodrag%netscape.com
95b10ba929 Updates for LDAPJDK 4.11
git-svn-id: svn://10.0.0.236/trunk@73551 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:31:17 +00:00
morse%netscape.com
74d3ff5e9d update wallet tables, not part of build
git-svn-id: svn://10.0.0.236/trunk@73550 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:30:40 +00:00
pinkerton%netscape.com
ee4f55f0c4 Fix for 42250, popups holding onto deleted frame crash during reflow. fixed to only hold onto content, not frame, and use GetPrimaryFrameFor(). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@73549 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:30:27 +00:00
pinkerton%netscape.com
44237ffeab part of 42250, make sure we close the popup when the listener is removed. just to be safe. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@73548 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:29:20 +00:00
jj%netscape.com
bf08b8ad48 bringing ASEncoder upt-to-date using new Universal Headers -- not part of the build. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@73547 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:28:59 +00:00
jband%netscape.com
59b22e86f2 updating status page - Not part of build
git-svn-id: svn://10.0.0.236/trunk@73546 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:17:54 +00:00
scc%mozilla.org
e2e3b170e1 fix self assignment, self append, self replace problems. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73545 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:17:53 +00:00
scc%mozilla.org
8acd633ba4 bug #17294, fixed a dogfood+ assert, there's more to this bug, but the rest isn't dogfood. r=BenB; a=jar
git-svn-id: svn://10.0.0.236/trunk@73544 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:04:28 +00:00
scc%mozilla.org
70db954721 bug #17294, fixed a dogfood+ assert described in this bug, though unrelated to the underlying problem 17294 is really about. r=BenB; a=jar
git-svn-id: svn://10.0.0.236/trunk@73543 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:04:22 +00:00
mozilla.BenB%bucksch.org
d0f1d9df13 32336: Ignore formatting, if it was inserted by our or 4.x' TXT->HTML or HTML->HTML converter. r=akk, scc. a=waterson.
git-svn-id: svn://10.0.0.236/trunk@73542 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:04:13 +00:00
dbaron%fas.harvard.edu
f756eb4076 Fix bug 43882 (dogfood+) by removing special handling of empty P elements. (Most of the diffs are whitespace changes.) This also fixes bugs 43369, 43991, and 18050. However, it exposes a few other issues as well (the most important of which, nuking top margins on first *normal flow* children of BODY and TD, was previously fixed only in some cases, but shouldn't be hard to fix in general). r=waterson
git-svn-id: svn://10.0.0.236/trunk@73541 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 22:03:42 +00:00
av%netscape.com
5dc532340c Addressing 43075, patch by amusil, r=av
git-svn-id: svn://10.0.0.236/trunk@73540 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:51:15 +00:00
radha%netscape.com
c8ae707155 More code for feature 36547. CODE NOT PART OF THE BUILD. Will provide reviewer when
feature is enabled.


git-svn-id: svn://10.0.0.236/trunk@73539 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:48:18 +00:00
av%netscape.com
b7f9ac3860 Addressing 22954, patch by amusil, r=av
git-svn-id: svn://10.0.0.236/trunk@73538 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:48:09 +00:00
av%netscape.com
8c4649b786 Addressing 22954, patch by amusil, r=av
git-svn-id: svn://10.0.0.236/trunk@73537 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:42:13 +00:00
harishd%netscape.com
36b124ebdc Regression Test files.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@73536 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:41:02 +00:00
tor%cs.brown.edu
23041af290 Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73535 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:40:43 +00:00
relyea%netscape.com
049f0ca5d6 Fix memory leak when using hardware acceleraters.
git-svn-id: svn://10.0.0.236/trunk@73534 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:26:17 +00:00
relyea%netscape.com
743720da87 merge changes from NSS 3.0 branch to allow NT automated tests to work.
git-svn-id: svn://10.0.0.236/trunk@73533 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:25:41 +00:00
relyea%netscape.com
727ca98a0a merge 3.0_Branch changes to get NT to run back unto the tip.
git-svn-id: svn://10.0.0.236/trunk@73532 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 21:23:37 +00:00
bryner%uiuc.edu
4e013ab7eb Fixing smoketest blocker 44235. r=smfr.
git-svn-id: svn://10.0.0.236/trunk@73531 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 20:53:08 +00:00
beard%netscape.com
57307567af Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@73530 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:40:58 +00:00
mcgreer%netscape.com
5f0477176f add a > wordsize test for RC4
git-svn-id: svn://10.0.0.236/trunk@73529 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:38:30 +00:00
rogerl%netscape.com
a02f6ce0d8 use handleDot for call, too.
git-svn-id: svn://10.0.0.236/trunk@73525 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:30:47 +00:00
javi%netscape.com
4491af2512 Don't stop sending text to a log file just because one Write failed.
This way subsequent DEBUG messages may still get printed.


git-svn-id: svn://10.0.0.236/trunk@73524 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:19:03 +00:00
beard%netscape.com
ea7ae68414 delete property support.
git-svn-id: svn://10.0.0.236/trunk@73523 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:14:14 +00:00
beard%netscape.com
8f71e889d8 DELETE_PROP
git-svn-id: svn://10.0.0.236/trunk@73522 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 18:13:46 +00:00
beard%netscape.com
1ef1eb154f DELETE_PROP
git-svn-id: svn://10.0.0.236/trunk@73521 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 17:14:56 +00:00
beard%netscape.com
aa7664867d added DELETE_PROP instruction to implement the "delete" operation.
git-svn-id: svn://10.0.0.236/trunk@73520 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 17:11:50 +00:00
tor%cs.brown.edu
d56893b078 Fix test for 32bit type. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73519 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 13:48:01 +00:00
terry%mozilla.org
1061c1e126 Added some missing newlines.
git-svn-id: svn://10.0.0.236/trunk@73518 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 13:33:10 +00:00
tor%cs.brown.edu
c40af55f26 Off by one error in refresh(). Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73517 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 12:40:42 +00:00
tor%cs.brown.edu
c3bdf7d5ec Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73516 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 12:32:04 +00:00
jfrancis%netscape.com
aa3d7d7f48 bug fixes:
41744 - editor shouldnt be quite as loosy goosy about html 4.0 as CnavDTD is;

41746 - editor ui state (paragraph format feedback) wrong if a <br> is embedded inside the current block;

41971 - using alignment inside table cells gives unexpected results.


git-svn-id: svn://10.0.0.236/trunk@73515 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 09:23:41 +00:00
dbaron%fas.harvard.edu
e642f1b6f5 Some more regression tests for bug 43882 and collapsing margin issues. Does not affect build.
git-svn-id: svn://10.0.0.236/trunk@73514 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 07:59:29 +00:00
Peter.VanderBeken%pandora.be
7e2e76befb Correct typo. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73513 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 07:09:06 +00:00
beard%netscape.com
b669d93d26 unused parameter warning
git-svn-id: svn://10.0.0.236/trunk@73512 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:48:09 +00:00
beard%netscape.com
a0bbecd587 complementary operator delete(void*, JSClass*).
git-svn-id: svn://10.0.0.236/trunk@73511 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:46:36 +00:00
mjudge%netscape.com
261be0b4ae r=saari 42074 pd+dogfood ect. i think we finally nailed this one. focused objects now being passed focus events even when previous document couldnt take focus and is simply returning it. aka hitting return in url bar trying to focus document that will be destroyed to fetch new page.
git-svn-id: svn://10.0.0.236/trunk@73510 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:27:05 +00:00
mjudge%netscape.com
6b543c3d28 r=hyatt bug36617, sfrasier bug. simple change for select all to work.
git-svn-id: svn://10.0.0.236/trunk@73509 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:25:01 +00:00
mjudge%netscape.com
e40b754d98 oninput and on change now firing. this should be working completely now. bug 42045 uncommenting out lines that I had commented out for someone on accident. also this fixes listeners not firing for textareas and only for text inputs. pdt+dogfood+ ect.
git-svn-id: svn://10.0.0.236/trunk@73508 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 05:17:58 +00:00
beard%netscape.com
25cba868b5 some classes to test js2 with.
git-svn-id: svn://10.0.0.236/trunk@73507 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:49:48 +00:00
beard%netscape.com
a2b5cc5c2b updated dependencies
git-svn-id: svn://10.0.0.236/trunk@73506 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:25:10 +00:00
beard%netscape.com
963708a821 Changed StaticCall to use static slot.
git-svn-id: svn://10.0.0.236/trunk@73505 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:23:56 +00:00
beard%netscape.com
e88e8c2639 Fixing static dotted expressions.
git-svn-id: svn://10.0.0.236/trunk@73504 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:23:20 +00:00
beard%netscape.com
16f447e7ad now uses conditional compilation #if defined(OPCODE_NAMES), so that a simple "icode.h" can be included by vmtypes.h and vmtypes.cpp.
git-svn-id: svn://10.0.0.236/trunk@73503 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:21:00 +00:00
beard%netscape.com
41cb724c61 moved all machine generated classes, etc. to icode.h.
git-svn-id: svn://10.0.0.236/trunk@73502 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:19:19 +00:00
beard%netscape.com
4bd45aa1f8 Generated by tools/gencode.pl.
git-svn-id: svn://10.0.0.236/trunk@73501 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 04:18:16 +00:00
despotdaemon%netscape.com
8326043820 Pseudo-automatic update of changes made by mozilla.BenB@bucksch.org.
git-svn-id: svn://10.0.0.236/trunk@73500 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 03:17:25 +00:00
beard%netscape.com
ca9ef8f4a5 fixed static calls.
git-svn-id: svn://10.0.0.236/trunk@73499 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 03:15:52 +00:00
BlakeR1234%aol.com
fc6a0c74b6 Fix for 42204, a=trudelle
git-svn-id: svn://10.0.0.236/trunk@73498 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 03:15:05 +00:00
despotdaemon%netscape.com
54b5c8dd8d Pseudo-automatic update of changes made by ericb@neoplanet.com.
git-svn-id: svn://10.0.0.236/trunk@73497 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 03:06:45 +00:00
cls%seawood.org
3ccf18874c Erk, wrong identifier for OS/2
git-svn-id: svn://10.0.0.236/trunk@73496 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 03:03:43 +00:00
pollmann%netscape.com
ba1a3e50a6 Bug 41013: Prevent event passing from frames to content during document destruction r=joki
git-svn-id: svn://10.0.0.236/trunk@73495 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 02:02:43 +00:00
rogerl%netscape.com
0e43b9fadb Implicit this and class lookup stuff.
git-svn-id: svn://10.0.0.236/trunk@73493 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:21:41 +00:00
morse%netscape.com
6007530a61 fix bug 43235, wallet editor clipped on right side, r=ben
git-svn-id: svn://10.0.0.236/trunk@73492 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:20:45 +00:00
valeski%netscape.com
645ec1114b bustage fix
git-svn-id: svn://10.0.0.236/trunk@73491 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:19:45 +00:00
Jerry.Kirk%Nexwarecorp.com
f14ab80ee3 NOT PART OF BUILD - PHOTON ONLY
Fix the fonts so they are extenting properly


git-svn-id: svn://10.0.0.236/trunk@73490 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:13:25 +00:00
dbaron%fas.harvard.edu
96e57b18bd Add more regression tests for bug 43882. Does not affect build.
git-svn-id: svn://10.0.0.236/trunk@73489 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:09:53 +00:00
despotdaemon%netscape.com
041162eebe Pseudo-automatic update of changes made by nbhatla@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@73488 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:03:15 +00:00
despotdaemon%netscape.com
de5bd7ec25 Pseudo-automatic update of changes made by dimator@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@73487 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 01:01:21 +00:00
valeski%netscape.com
4a64f9c451 43050. r=dougt. null checking and ctor null init'ing
git-svn-id: svn://10.0.0.236/trunk@73486 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:49:13 +00:00
dbaron%fas.harvard.edu
56ff07cb95 Adding regression tests to list. Does not affect build.
git-svn-id: svn://10.0.0.236/trunk@73482 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:42:14 +00:00
dbaron%fas.harvard.edu
7f87ecb955 Adding regression tests (related to bug 43882). Does not affect build.
git-svn-id: svn://10.0.0.236/trunk@73480 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:39:53 +00:00
wtc%netscape.com
1a5e114101 Bugzilla bug #44133: checked in NTO patches contributed by
Jerry Kirk <Jerry.Kirk@nexwarecorp.com>.


git-svn-id: svn://10.0.0.236/trunk@73479 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:31:42 +00:00
tao%netscape.com
27c3925e1f Remove obsolete pull l10n commands.
git-svn-id: svn://10.0.0.236/trunk@73476 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:18:55 +00:00
morse%netscape.com
c00b70fe9c fix bug 44045, master password was needed when deleting database, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@73475 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-29 00:05:41 +00:00
Peter.VanderBeken%pandora.be
d63cd8dfc3 Corrected small typo. Doesn't affect regular build.
git-svn-id: svn://10.0.0.236/trunk@73474 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:46:12 +00:00
Peter.VanderBeken%pandora.be
e0679adc12 Adding build logic for MNG, LDAP and XML Extras. Turned off by default.
Added/corrected build steps for Transformiix and cview. r=jj.


git-svn-id: svn://10.0.0.236/trunk@73473 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:16:49 +00:00
law%netscape.com
e7cfe89be4 New interface for displaying helper app launch confirm dialog; bug 43583
git-svn-id: svn://10.0.0.236/trunk@73472 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:14:57 +00:00
Peter.VanderBeken%pandora.be
b7424d7d9e Adding option flags for MNG, LDAP and XML Extras. Turned off by default. r=jj.
git-svn-id: svn://10.0.0.236/trunk@73471 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:11:40 +00:00
matt%netscape.com
d8a5f70577 adding localization for bug 30456.
R=law


git-svn-id: svn://10.0.0.236/trunk@73470 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:11:32 +00:00
Peter.VanderBeken%pandora.be
d8f977cd2f Adding Mac projects for MNG. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73469 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:04:06 +00:00
Peter.VanderBeken%pandora.be
470f48a3f7 Adding locale files. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73468 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 23:01:14 +00:00
Peter.VanderBeken%pandora.be
b65075f0d7 Adding locale info. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73467 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:57:42 +00:00
Peter.VanderBeken%pandora.be
6e3a97a4bd Fixing access paths. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73466 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:55:26 +00:00
cls%seawood.org
3e05da0165 wrap ifndef XPCONNECT_STANDALONE around xpconnect test components that require external interfaces. Thanks to Mark Adams <madams@janna.com> for the patch. Bug 42026
git-svn-id: svn://10.0.0.236/trunk@73465 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:53:55 +00:00
jst%netscape.com
a5659583f9 Fixing nsbeta2+ bug 37051, always set the form associated with a form control as the parent of the form controls script object, this meks form controls always be in the scope of the form they're in. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73464 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:50:06 +00:00
larryh%netscape.com
7f7c6608e0 BugZilla: 43337. Better implementation
git-svn-id: svn://10.0.0.236/trunk@73463 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:36:25 +00:00
cls%seawood.org
b966210cad OS/2's cmd.exe doesn't support the no-op ':' .
git-svn-id: svn://10.0.0.236/trunk@73462 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:31:12 +00:00
cls%seawood.org
bddf8befbd Reverting mkaply's checkin as it breaks --enable-elf-dynstr-gc on optimized builds.
git-svn-id: svn://10.0.0.236/trunk@73461 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:29:38 +00:00
evaughan%netscape.com
aa55de687f Fixes for gfx scrollbars and absolute/fixed positioning.
40494
28505
41294
36211
41763
23806


git-svn-id: svn://10.0.0.236/trunk@73460 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:19:54 +00:00
javi%netscape.com
1eb433ecd5 Change P12 file path request strings to be consistent with terms used in
Security Advisor.


git-svn-id: svn://10.0.0.236/trunk@73459 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 22:16:11 +00:00
mkaply%us.ibm.com
55548d119c #42637
r = dougt, a = brendan
Rather than using cast and &operator to get spec, use the Spec member function


git-svn-id: svn://10.0.0.236/trunk@73458 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:56:49 +00:00
dmose%mozilla.org
68f5f9d545 Added an item about thread death. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73457 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:42:15 +00:00
javi%netscape.com
6c78d1a039 Add some text to the cases where S/MIME signatures fail when OCSP is enabled.
git-svn-id: svn://10.0.0.236/trunk@73456 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:37:09 +00:00
javi%netscape.com
228ce2267f Fix to add some text to security advisor when S/MIME signatures faile
when OCSP is enabled.


git-svn-id: svn://10.0.0.236/trunk@73455 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:36:36 +00:00
ddrinan%netscape.com
dd9faec463 Fix for bug# 398838
git-svn-id: svn://10.0.0.236/trunk@73454 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:20:38 +00:00
locka%iol.ie
1f7530e509 added missing files
git-svn-id: svn://10.0.0.236/trunk@73453 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:15:09 +00:00
rginda%netscape.com
dec447e1d7 -- not part of build --
fixing windows makefiles
updating references to tasksOverlay.xul


git-svn-id: svn://10.0.0.236/trunk@73452 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 21:02:30 +00:00
chuang%netscape.com
21914ca7b3 Bug GetCardForEmailAddress() is case sensitive, r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@73451 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:57:48 +00:00
saari%netscape.com
fcda4acc7f simple null check to stop crasher. r=joki
git-svn-id: svn://10.0.0.236/trunk@73450 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:56:29 +00:00
rginda%netscape.com
add749b4b4 -- chatzilla changes only --
whitespace changes
fix default dalnet server


git-svn-id: svn://10.0.0.236/trunk@73449 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:51:40 +00:00
locka%iol.ie
8fdfd98bdc Now uses embedding API. Added some context menu & property page support
git-svn-id: svn://10.0.0.236/trunk@73448 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:42:50 +00:00
locka%iol.ie
6a58f5fdb2 Updated VC project
git-svn-id: svn://10.0.0.236/trunk@73447 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:40:29 +00:00
locka%iol.ie
1a51b71c8c Added property dialogs
git-svn-id: svn://10.0.0.236/trunk@73446 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:40:10 +00:00
locka%iol.ie
1937e5aa0c Added clipboard interfaces. Added interface refcount debugging
git-svn-id: svn://10.0.0.236/trunk@73445 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:39:42 +00:00
locka%iol.ie
5cb4c2a8ca Added proper MPL header
git-svn-id: svn://10.0.0.236/trunk@73444 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:38:53 +00:00
locka%iol.ie
192acf6d6a Changed makefile.win to use embedding APIs
git-svn-id: svn://10.0.0.236/trunk@73443 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:37:39 +00:00
locka%iol.ie
d753e3fa36 Added code for write/writeln to IE DOM. Thanks to Arne de Bruijn <arne@knoware.nl> for this contribution
git-svn-id: svn://10.0.0.236/trunk@73442 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:35:51 +00:00
bryner%uiuc.edu
1dd6e32fe1 Fixing bug 43710 - removing old mousewheel cruft and updating to work with
new tree.  r=hyatt,saari.


git-svn-id: svn://10.0.0.236/trunk@73441 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:35:32 +00:00
locka%iol.ie
054c650ff4 Removed unused CIDs and IIDs
git-svn-id: svn://10.0.0.236/trunk@73440 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:31:43 +00:00
locka%iol.ie
d05d21d7ae Changed diagnostic macro
git-svn-id: svn://10.0.0.236/trunk@73439 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:30:33 +00:00
locka%iol.ie
404dd0fb6d Added nsIContextMenuListener. Fixed some memory leaks
git-svn-id: svn://10.0.0.236/trunk@73438 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:29:49 +00:00
locka%iol.ie
d98ec92664 NOT PART OF BUILD. Added a DTD and localized the file somewhat
git-svn-id: svn://10.0.0.236/trunk@73437 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:27:51 +00:00
locka%iol.ie
d11baf7e00 NOT PART OF BUILD. Added some strings
git-svn-id: svn://10.0.0.236/trunk@73436 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:27:15 +00:00
dbragg%netscape.com
39dea0d743 Fix for nsbeta2+ bug 340786 r=sgehani
git-svn-id: svn://10.0.0.236/trunk@73435 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:26:39 +00:00
locka%iol.ie
46c5ef3b20 NOT PART OF BUILD. Removing obselete file
git-svn-id: svn://10.0.0.236/trunk@73434 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:26:28 +00:00
blizzard%redhat.com
488ebf1dbd fix bug #41820. The gtk embedding widget will now startup and shutdown XPCOM properly. Also, fix code that was broken when the nsIWebProgress changes happened. Only build tests when tests are built. Add interface to get the nsIWebBrowser object from the embedding widget. r=dougt,bryner a=brendan
git-svn-id: svn://10.0.0.236/trunk@73433 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 20:24:28 +00:00
dmose%mozilla.org
41245246c9 Added and updated a few more issues. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73432 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:56:08 +00:00
beard%netscape.com
487de01748 implemented JSClass::printProperties().
git-svn-id: svn://10.0.0.236/trunk@73431 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:46:13 +00:00
beard%netscape.com
43420973f7 Enhanced printing of types.
git-svn-id: svn://10.0.0.236/trunk@73430 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:45:44 +00:00
beard%netscape.com
8d4ccf1e51 Type of a JSType* is Type_Type (wow, recursive). Changed mBaseType to be JSType* instead of const JSType*.
git-svn-id: svn://10.0.0.236/trunk@73429 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:45:09 +00:00
dmose%mozilla.org
e52529dc5c gave the threading model a good whack. pushed the threading from the callers (eg nsLDAPChannel) down into the XPCOM wrapper code itself, so that the calling code doesn't need to deal with threading directly ( it gets callbacks via nsISupports proxies ) . this allows LDAP code to be written in Javascript without hanging the UI thread of the browser. a=r=(not built)
git-svn-id: svn://10.0.0.236/trunk@73428 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:39:32 +00:00
sspitzer%netscape.com
301082731b fix classic skin problems. r=german
git-svn-id: svn://10.0.0.236/trunk@73427 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:31:29 +00:00
sspitzer%netscape.com
1626125790 fix addressbook splitter for classic skin. r=german
git-svn-id: svn://10.0.0.236/trunk@73426 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:25:05 +00:00
sspitzer%netscape.com
271ce07f58 fix bustage.
git-svn-id: svn://10.0.0.236/trunk@73425 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:17:51 +00:00
sspitzer%netscape.com
cf277676fb fix bustage.
git-svn-id: svn://10.0.0.236/trunk@73424 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:17:00 +00:00
hangas%netscape.com
1b6a8d8de9 Bug 43658 fixes to Classic Skin - written by german, r=hangas
git-svn-id: svn://10.0.0.236/trunk@73423 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:08:59 +00:00
hangas%netscape.com
fe3d3e85ff First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73422 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:03:04 +00:00
dmose%mozilla.org
cc89543233 Updated documentation. a=r=(not built).
git-svn-id: svn://10.0.0.236/trunk@73421 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:02:27 +00:00
hangas%netscape.com
212ccec140 Bug 43658 fixes to Classic Skin - written by bdonohoe, r=hangas
git-svn-id: svn://10.0.0.236/trunk@73420 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 19:01:15 +00:00
rogerl%netscape.com
b1eb71fadb First set of unified 'dot' handling changes for statics.
git-svn-id: svn://10.0.0.236/trunk@73418 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 18:41:30 +00:00
beard%netscape.com
9b99e9786f added jsclasses.h
git-svn-id: svn://10.0.0.236/trunk@73417 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 18:10:04 +00:00
cyeh%bluemartini.com
045c3716f1 fix for bug #44040 "sanitycheck.cgi dies if apostrophes in product, component, version,
or milestone". thanks to dave@intrec.com (Dave Miller) for the patch


git-svn-id: svn://10.0.0.236/trunk@73416 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 17:54:11 +00:00
mkaply%us.ibm.com
d771157655 #42637
r = leaf, a = leaf
Accidental bloat on pointer file


git-svn-id: svn://10.0.0.236/trunk@73415 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:51:24 +00:00
beard%netscape.com
fc7df849f1 Fix string <.
git-svn-id: svn://10.0.0.236/trunk@73414 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:38:20 +00:00
beard%netscape.com
98b2fcbf59 Fixed dynamic lookup of static slots. Added code to compare strings.
git-svn-id: svn://10.0.0.236/trunk@73413 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:32:52 +00:00
beard%netscape.com
e4a70d59c1 GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name. Implemented GET_PROP/SET_PROP for class objects (looks up slot dynamically, etc.)
git-svn-id: svn://10.0.0.236/trunk@73412 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:15:06 +00:00
beard%netscape.com
a031ccd333 GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name. Now using JSClass::hasStatic() rather than looking up statics in class' scope.
git-svn-id: svn://10.0.0.236/trunk@73411 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:14:18 +00:00
beard%netscape.com
c616ad04eb GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name.
git-svn-id: svn://10.0.0.236/trunk@73410 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:13:12 +00:00
beard%netscape.com
05cbd424c7 Static slots.
git-svn-id: svn://10.0.0.236/trunk@73409 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 16:11:54 +00:00
brade%netscape.com
bf51706d0a submission by Ryan Cassin (rcassin@supernova.org); recent files menu for editor; bug #17502; approved beppe
git-svn-id: svn://10.0.0.236/trunk@73408 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 14:58:36 +00:00
mkaply%us.ibm.com
527223a169 #42637
r=mkaply, a=brendan
OS/2 bringup - rewrite of nsFileSpecOS2.cpp to be more like Windows


git-svn-id: svn://10.0.0.236/trunk@73407 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 14:50:12 +00:00
mkaply%us.ibm.com
3e32a6af4d #43877
r=dougt, a=dougt
Using this pointer rather than other pointer causes crash


git-svn-id: svn://10.0.0.236/trunk@73406 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 14:37:25 +00:00
mkaply%us.ibm.com
83a1153237 #43357
NO ONE AROUND TO REVIEW
The change for ELF broke our tinderbox. The second ELF line should be in the else case for OS/2.


git-svn-id: svn://10.0.0.236/trunk@73405 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 14:19:33 +00:00
cls%seawood.org
d2e0e22ae5 Commented out check for multiple variables on a single line as this causes Makefiles that have multiple dir VPATHs to be only partially generated. Uncommented warning for unknown variables.
git-svn-id: svn://10.0.0.236/trunk@73404 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 10:21:53 +00:00
leaf%mozilla.org
51ffc5c580 Automated update
git-svn-id: svn://10.0.0.236/trunk@73403 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 08:00:17 +00:00
cls%seawood.org
73f8c0769a Check for -pthread support on OpenBSD as well.
git-svn-id: svn://10.0.0.236/trunk@73402 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:53:26 +00:00
cls%seawood.org
12054495f0 Do not explicitly link against -lc_r on OpenBSD. Bug #36467 r=wtc
git-svn-id: svn://10.0.0.236/trunk@73401 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:42:56 +00:00
leaf%mozilla.org
11c4cf7e8d Automated update
git-svn-id: svn://10.0.0.236/trunk@73400 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:15:07 +00:00
warren%netscape.com
90e03f1827 Fixed spelling.
git-svn-id: svn://10.0.0.236/trunk@73399 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:06:09 +00:00
cls%seawood.org
159e1068fd June cleaning.
git-svn-id: svn://10.0.0.236/trunk@73398 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:04:52 +00:00
cls%seawood.org
94c6107c67 Tweaks to build xpconnect standalone. Bug #42024. Thanks to Mark Adams <madams@janna.com> for the patches.
git-svn-id: svn://10.0.0.236/trunk@73397 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 07:03:13 +00:00
warren%netscape.com
20dce9fab9 Added hasSubstitutions for Hyatt & chrome protocol.
git-svn-id: svn://10.0.0.236/trunk@73396 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 06:54:56 +00:00
brendan%mozilla.org
f912d63a39 Interim checkin: -u option for unified (-f and standard) output, down/next links for sorted subgraph navigation, some -j (js-mode) support.
git-svn-id: svn://10.0.0.236/trunk@73395 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 06:42:29 +00:00
brendan%mozilla.org
b2b5554261 Work around unsolved bug reported by rusty.lynch@intel.com.
git-svn-id: svn://10.0.0.236/trunk@73391 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 06:22:29 +00:00
dougt%netscape.com
7afba7fd34 Forgot to check these changes is which were submitted by roc+moz@cs.cmu.edu
and approved by brendan.  See bug 43314.


git-svn-id: svn://10.0.0.236/trunk@73390 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 06:14:09 +00:00
waterson%netscape.com
417a2140ba Bug 43644. Better fix: nsLayoutAtoms::[AddRefAtoms|ReleaseAtoms] calls are unnecessary, as dbaron pointed out to me.
git-svn-id: svn://10.0.0.236/trunk@73388 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 05:36:32 +00:00
gordon%netscape.com
21cd8701fd Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
Remove redundant build commands for security.


git-svn-id: svn://10.0.0.236/trunk@73387 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 05:01:34 +00:00
gordon%netscape.com
64c80082ed Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
Added $build{security}.


git-svn-id: svn://10.0.0.236/trunk@73386 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 05:01:04 +00:00
tor%cs.brown.edu
fec03b23a5 Plug a region leak in nsRegionGTK::SetTo(). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73385 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 05:00:20 +00:00
BlakeR1234%aol.com
3e6da5568f Fix access key for Switch Theme button...the old one, a, no longer applies.
git-svn-id: svn://10.0.0.236/trunk@73384 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:49:48 +00:00
cls%seawood.org
515873b762 Adding configure option --enable-elf-dynstr-gc. Bug #43357
git-svn-id: svn://10.0.0.236/trunk@73383 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:32:15 +00:00
waterson%netscape.com
343c89fa5b Bug 43644. Add 'wildcard' atom to nsLayoutAtoms and use it instead of a statically leaked atom. r=jst,inaky.gonzales@intel.com
git-svn-id: svn://10.0.0.236/trunk@73382 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:17:26 +00:00
mjudge%netscape.com
a8730b8081 removing observer. put in on accident. editor will handle oninput changes. if not i can un comment this
git-svn-id: svn://10.0.0.236/trunk@73381 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:16:44 +00:00
gordon%netscape.com
ebc8514bc4 Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
Initialize member to 0, to avoid crash.


git-svn-id: svn://10.0.0.236/trunk@73380 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:15:39 +00:00
gordon%netscape.com
22b85094e2 Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
git-svn-id: svn://10.0.0.236/trunk@73379 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:12:26 +00:00
gordon%netscape.com
941dda2341 Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
Add PSM to build commands.  Changed branch tags for pulling mozilla/security (on Mac only).


git-svn-id: svn://10.0.0.236/trunk@73378 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:12:04 +00:00
gordon%netscape.com
1c841d26be Bug 19119 [dogfood+] Mac build of PSM in-process. r = beard.
Change to link against PSMStubs.shlb


git-svn-id: svn://10.0.0.236/trunk@73377 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:10:04 +00:00
mjudge%netscape.com
771787b6c1 r=jfrancis,r=hyatt 42045 beta2+ 42675 beta2+ hitting return on text area not putting new line. onchange,oninput.
git-svn-id: svn://10.0.0.236/trunk@73374 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 04:00:12 +00:00
mjudge%netscape.com
eac23d41e2 wrong ifdef. 25% increase in editor typing on windows r=ftang
git-svn-id: svn://10.0.0.236/trunk@73373 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 03:41:32 +00:00
wtc%netscape.com
26f52bbdb4 Bugzilla bug #43507: install the SIGALRM signal handler in
_MD_EnableClockInterrupts before starting the interval timer.
Modified files: _unixos.h, unix.c


git-svn-id: svn://10.0.0.236/trunk@73372 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 02:49:24 +00:00
bryner%uiuc.edu
e23ddc4506 Attempting to fix mac bustage.
git-svn-id: svn://10.0.0.236/trunk@73371 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 02:32:45 +00:00
rginda%netscape.com
2d632ff5f8 -- chatzilla changes only --
Change default EFNet server to irc.mcs.net (no ident req'd.)


git-svn-id: svn://10.0.0.236/trunk@73370 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 02:23:12 +00:00
jim_nance%yahoo.com
0e8a2a6830 Fix build problem on Tru64 Unix. Scc says the code should run faster
this way anyhow.  r=scc


git-svn-id: svn://10.0.0.236/trunk@73369 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 02:07:25 +00:00
wtc%netscape.com
46fcf0e269 Avoid code duplication.
git-svn-id: svn://10.0.0.236/trunk@73368 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 01:42:54 +00:00
morse%netscape.com
53913ca457 bug 44039, back out unintentional change that caused regression
git-svn-id: svn://10.0.0.236/trunk@73367 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 01:26:56 +00:00
ddrinan%netscape.com
bbbbc2787d Added target to release the xpi file
git-svn-id: svn://10.0.0.236/trunk@73366 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 01:19:20 +00:00
wtc%netscape.com
9d4d1aa833 Bugzilla bug #42874: allow OpenProcessToken to fail with
ERROR_CALL_NOT_IMPLEMENTED (on non-NT systems) or ERROR_ACCESS_DENIED
(processes with insufficient access permissions).


git-svn-id: svn://10.0.0.236/trunk@73365 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 01:13:33 +00:00
BlakeR1234%aol.com
104188730b Part of bug 44025. r=dveditz a=johng
git-svn-id: svn://10.0.0.236/trunk@73364 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 01:04:12 +00:00
javi%netscape.com
1313dff449 Make the Pretty print window smaller so that it doesn't run off the bottom of
the screen w/ Mozilla.


git-svn-id: svn://10.0.0.236/trunk@73362 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 00:11:17 +00:00
wtc%netscape.com
77c8a1cc50 Bugzilla bug #39712: backed out the workaround for a compiler bug.
The compiler bug is fixed in Service Pack 4 of MSVC 6.0.


git-svn-id: svn://10.0.0.236/trunk@73361 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 00:10:29 +00:00
wtc%netscape.com
01ba4b5b2e Bugzilla bug #41832: set the error codes if pthread_cond_wait or
pthread_cond_timedwait fails.


git-svn-id: svn://10.0.0.236/trunk@73360 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 00:01:49 +00:00
evaughan%netscape.com
fbf211b82c Forgot file add for last checkin.
git-svn-id: svn://10.0.0.236/trunk@73359 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 00:01:19 +00:00
evaughan%netscape.com
3d5cc870c3 Clean up for autoscrolling menu landing. ScrollBox events need their own type and should not be
on top of menu events.

-r hyatt


git-svn-id: svn://10.0.0.236/trunk@73358 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-28 00:00:18 +00:00
cmanske%netscape.com
a13486f050 Changed AppendFilters when loading into Composer to favor HTML and TXT over 'All Files'. b=43834, r=brade, a=law
git-svn-id: svn://10.0.0.236/trunk@73357 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:55:12 +00:00
bienvenu%netscape.com
886f483b0f part of fix for throbber, r=jefft,mscott 38598
git-svn-id: svn://10.0.0.236/trunk@73356 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:54:57 +00:00
bienvenu%netscape.com
b17f453a49 fix problem with imap messages arriving out of order, r=jefft,mscott 40701
git-svn-id: svn://10.0.0.236/trunk@73355 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:52:05 +00:00
granrose%netscape.com
9c947a979b fixing xptlink.pl to work on mac as well as linux and win32 (43999).
git-svn-id: svn://10.0.0.236/trunk@73354 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:51:35 +00:00
varada%netscape.com
db092a1cea adding sidebar subdirectory in workspace
git-svn-id: svn://10.0.0.236/trunk@73353 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:43:55 +00:00
bryner%uiuc.edu
9f03a0e916 Fixing bug 43939 - timer leaks on Linux. r=scc.
git-svn-id: svn://10.0.0.236/trunk@73352 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:25:32 +00:00
tor%cs.brown.edu
78504e75e8 Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73351 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:22:13 +00:00
varada%netscape.com
49c5f42f51 Fix for bug #43890 -faulty ini file
git-svn-id: svn://10.0.0.236/trunk@73350 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:16:28 +00:00
cyeh%bluemartini.com
943388e1b3 lot's of stuff:
add whoid usergroupset comment query to bug data fields
add AppendComment function
add CanChangeField function to check if a person can change a field
add display() for quick dumps of the bug
add Collision to check for midair collisions before changing a bug
added a stub function for changing a bug in the database
init_bug will now take either a userid or an e-mail address as a valid parameter


git-svn-id: svn://10.0.0.236/trunk@73346 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 23:16:08 +00:00
rusty.lynch%intel.com
14e24dcb5c new fix for bug #43958. r=gagan
git-svn-id: svn://10.0.0.236/trunk@73345 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:53:29 +00:00
leaf%mozilla.org
723a9b2e4b removing pull of l10n from scripts, SeaMonkeyL10n is now part of SeaMonkeyAll
git-svn-id: svn://10.0.0.236/trunk@73344 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:38:59 +00:00
leaf%mozilla.org
51d9272109 adding SeaMonkeyL10n to SeaMonkeyAll -leaf
git-svn-id: svn://10.0.0.236/trunk@73343 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:37:26 +00:00
mkaply%us.ibm.com
89b244e2bc #42637
r=pinkerton, a=brendan
OS/2 bringup - Change from waterson and vidur - don't modify members in a const function


git-svn-id: svn://10.0.0.236/trunk@73342 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:31:43 +00:00
dbaron%fas.harvard.edu
0e664f2e7d Clean up the deprecated (and never really official) HTML namespace by replacing with the official XHTML namespace. b=7834,42280 r=vidur
git-svn-id: svn://10.0.0.236/trunk@73341 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:28:59 +00:00
mkaply%us.ibm.com
cceaef4079 #40177
r=leaf, a=brendan
OS/2 bringup - This really should be a semicolon for OS/2


git-svn-id: svn://10.0.0.236/trunk@73340 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:24:54 +00:00
tao%netscape.com
19e741ee13 39790: [L12y] Move all localizable prefs into chrome://.r=alecf.
git-svn-id: svn://10.0.0.236/trunk@73339 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:13:23 +00:00
gagan%netscape.com
68c7d26b63 Not in the build. Allow POST requests to handle special cases too.
git-svn-id: svn://10.0.0.236/trunk@73338 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:10:27 +00:00
mkaply%us.ibm.com
68127ac939 #42637
r=mkaply, a=brendan
OS/2 bringup - Makefiles to build RC files for objdir and non objdir builds


git-svn-id: svn://10.0.0.236/trunk@73337 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 22:07:30 +00:00
javi%netscape.com
2f50f7a064 When FIPS is enabled, do verification of detached signatures on a separate thread
to prevent dead-locking the front end thread.


git-svn-id: svn://10.0.0.236/trunk@73336 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:55:59 +00:00
dbaron%fas.harvard.edu
d42b7f141f Fix leak (holding past XPCOM shutdown) of 16 strings. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73335 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:54:28 +00:00
javi%netscape.com
cc9f8602bd When verifying a cert, pass in the control connection as the wincx so
that when FIPS is enabled, we don't crash.


git-svn-id: svn://10.0.0.236/trunk@73334 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:53:59 +00:00
blizzard%redhat.com
3fabae78ee remove extra -lelf from the link line. make cvs shaddap. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@73333 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:53:41 +00:00
dbaron%fas.harvard.edu
104b4c3dd8 Fix leak of an atom. r=gagan
git-svn-id: svn://10.0.0.236/trunk@73332 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:51:38 +00:00
mcafee%netscape.com
28367fd850 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@73331 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:46:26 +00:00
dougt%netscape.com
d3d5fc8a04 Check for null. If a NS_EXTERNALHELPERAPPSERVICE_PROGID was not found,
crash would occur.


git-svn-id: svn://10.0.0.236/trunk@73330 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:43:17 +00:00
mkaply%us.ibm.com
cd9d156541 #42637
r=mkaply, a=brendan
OS/2 bringup - Need to increment appshell refcount to prevent crash


git-svn-id: svn://10.0.0.236/trunk@73329 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:39:05 +00:00
mkaply%us.ibm.com
852a1ef060 #42637
r=mkaply, a=brendan
OS/2 bringup - Handle failure return from WinGetMsg


git-svn-id: svn://10.0.0.236/trunk@73328 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:38:07 +00:00
ftang%netscape.com
cae2e05f83 Check in the fix for jbetak. Move the priority of the bookmark / cache up. fix bug 18022
r=jbetak/ftang


git-svn-id: svn://10.0.0.236/trunk@73327 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:29:28 +00:00
ftang%netscape.com
b2f067bb44 fix 35076. r=vidur. escape the URL if it contains non ASCII character. Escape from the position
which the first non ASCII char appear.


git-svn-id: svn://10.0.0.236/trunk@73326 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:27:30 +00:00
robinf%netscape.com
a754e86ed3 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@73325 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:24:48 +00:00
mkaply%us.ibm.com
5bc9a0d2d2 #42637
r=valeski, a=brendan
OS/2 bringup - Support for OS/2 special system directories


git-svn-id: svn://10.0.0.236/trunk@73324 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:23:51 +00:00
morse%netscape.com
73cb88057f fix bug 43886, single signon no longer works, r=jefft
git-svn-id: svn://10.0.0.236/trunk@73323 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:13:50 +00:00
dougt%netscape.com
2e42013815 Adding windows embedding test harness to build.
43054
r=valeski
a=valeski & pdt.


git-svn-id: svn://10.0.0.236/trunk@73322 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:10:25 +00:00
blizzard%redhat.com
7d3b07b8ab fix for bug #42008. make HTTP basic auth case insensitive. r=shaver,brendan,gagan,valeski a=brendan.
git-svn-id: svn://10.0.0.236/trunk@73321 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 21:06:41 +00:00
dougt%netscape.com
d7128e8164 Initializing var before use. simple fix.
git-svn-id: svn://10.0.0.236/trunk@73320 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:55:54 +00:00
blizzard%redhat.com
521fbec8ee turn on base directory for unix ( part of previous checkin )
git-svn-id: svn://10.0.0.236/trunk@73319 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:55:11 +00:00
blizzard%redhat.com
28a52581a9 build the embedding/base code on unix. fix trailing newline in nsEmbedBase.h and put the thread hack back in until we get a long term solution. bug #43952. r=adamlock,valeski a=brendan
git-svn-id: svn://10.0.0.236/trunk@73318 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:54:15 +00:00
wtc%netscape.com
d2d95abe26 Bugzilla bug #42714: removed dependency on winmm.dll. Replaced
timeGetTime() with GetTickCount().
Modified files: pr/src/Makefile, pr/src/Makefile.in, ntinrval.c


git-svn-id: svn://10.0.0.236/trunk@73317 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:54:02 +00:00
dougt%netscape.com
1cdcbb34f4 Adding assert on invalid init of textTransformer. see bug 43094
Basic check for null.

Without this assert, you will crash if there is no nsILineBreakerFactory
found.


git-svn-id: svn://10.0.0.236/trunk@73316 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:54:01 +00:00
jst%netscape.com
475e145ee0 Fixing tree blocker 43958 by backing out the last change to this file since it broke my.netscape.com, developer.netscape.com, webmail.netscape.com and probably other sites too. a=granrose
git-svn-id: svn://10.0.0.236/trunk@73315 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 20:42:01 +00:00
mcafee%netscape.com
2fd11dd285 Upping the ante for bloat URLs. Adding test6 to test tables, adding test8 again to test cache. r=warren, a=leaf
git-svn-id: svn://10.0.0.236/trunk@73314 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 18:58:58 +00:00
despotdaemon%netscape.com
d53ddfefca Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@73313 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 18:21:13 +00:00
leaf%mozilla.org
2369f3b07f creating a SeaMonkeyL10n module for inclusion into SeaMonkeyAll -leaf
git-svn-id: svn://10.0.0.236/trunk@73312 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 18:12:04 +00:00
brade%netscape.com
48039fdde4 check in patch for buster; bug #42630; GetChildFrameContainingOffset was hiding inherited
git-svn-id: svn://10.0.0.236/trunk@73306 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 14:47:21 +00:00
tor%cs.brown.edu
cd57a86bb7 Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73305 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 14:40:32 +00:00
cls%seawood.org
0d5bee3573 For whatever reason, just calling "do" on the tinder-config.pl script was not causing the defaults to be overriden, so we manually read & process tinder-config.pl as we did tinder-defaults.pl.
git-svn-id: svn://10.0.0.236/trunk@73304 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 12:21:46 +00:00
locka%iol.ie
0678e56a3b NOT PART OF BUILD. Added popup menus
git-svn-id: svn://10.0.0.236/trunk@73303 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 12:01:24 +00:00
axel%pike.org
4fdb0334a9 Not part of build, r=kvisco, don't add abundant text nodes to document
git-svn-id: svn://10.0.0.236/trunk@73302 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 10:40:57 +00:00
Peter.VanderBeken%pandora.be
8f2fca0cbe Finishing jj's work on bug 39959. r=jj@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@73301 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 07:56:48 +00:00
nisheeth%netscape.com
7a3c35beaa Fix for bug 42196. A simple patch from Rod Spears to prevent asserts that were firing on reading mail messages.
git-svn-id: svn://10.0.0.236/trunk@73300 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 06:56:08 +00:00
mang%subcarrier.org
0f37a10bed progid no longer defined in nsISample.idl
Part of previous fix to bug 10904


git-svn-id: svn://10.0.0.236/trunk@73299 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 06:35:17 +00:00
alecf%netscape.com
f6d96a42e0 back out part of amasari@netscape.com's checkin. no reviewer, because this
string should never have been removed in the first place!
thanks to timeless@bemail.org for finding the error


git-svn-id: svn://10.0.0.236/trunk@73298 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 06:19:53 +00:00
ducarroz%netscape.com
28728c1f75 Fix for bug 43468. We need also to use .value when we pre file a recipient else we will loose the content of every non visible fields! This is more a work around that the reall fix which should be in the textcontrolframe code. R=putterman
git-svn-id: svn://10.0.0.236/trunk@73297 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 06:14:42 +00:00
cls%seawood.org
500003732d Given the statement "a == b ? c : d;" , the WorkShop 5.0 compiler expects c & d to be of the same type.
git-svn-id: svn://10.0.0.236/trunk@73296 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 06:10:21 +00:00
rich.burridge%sun.com
b779e86645 Fix to prevent build bustage on nebiros with Sun compilers.
The Sun compiler expects a specific format for the function
used by the #pragma statement. It should return void and
have no arguments. It also needs an initial function prototype.
r=cls
Fix for breakage for checkin for bug #40769.


git-svn-id: svn://10.0.0.236/trunk@73295 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:58:00 +00:00
mang%subcarrier.org
658e2df19f partial fix for bug 10904 - sample now works in M15
- moves CID/ProgID into header file
- adds more calls to enablePrivilege
- renames "write" callback to something that works as intended

a=brendan@mozilla.org
r=scc@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73294 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:54:46 +00:00
ben%netscape.com
ea23f52dda fix for 8002, patch from Peter Annema, r=ben
git-svn-id: svn://10.0.0.236/trunk@73293 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:47:07 +00:00
ben%netscape.com
0575090c65 fix for 42737, patch by Robert Kaiser, r=ben
git-svn-id: svn://10.0.0.236/trunk@73292 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:46:23 +00:00
alecf%netscape.com
5a51ad8bf4 fix for #43794 contributed by blaker1234@aol.com
r=alecf - just a tiny spelling error - "Outoing" -> "Outgoing"


git-svn-id: svn://10.0.0.236/trunk@73291 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:33:31 +00:00
alecf%netscape.com
3df82822e1 fix for #41645 contributed by <timeless@bemail.org> r=alecf
git-svn-id: svn://10.0.0.236/trunk@73290 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:30:19 +00:00
ducarroz%netscape.com
af2a45c882 Fix for bug 43575. Back out a line that Rods accidently change while checkin rev 1.40 R=hyatt
git-svn-id: svn://10.0.0.236/trunk@73289 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 05:26:28 +00:00
leaf%mozilla.org
1d0d34db54 Automated update
git-svn-id: svn://10.0.0.236/trunk@73288 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 04:45:09 +00:00
alecf%netscape.com
af28f7c68c make window sizable, part of #33101 r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@73287 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 04:42:34 +00:00
sspitzer%netscape.com
abf8ea00c6 back out part of jerry kirk's check in. not sure why he turned this off.
git-svn-id: svn://10.0.0.236/trunk@73286 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 04:37:15 +00:00
despotdaemon%netscape.com
4e8cabf2fc Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@73285 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:57:50 +00:00
beard%netscape.com
67503192d6 Win-specific operator== noise.
git-svn-id: svn://10.0.0.236/trunk@73284 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:52:56 +00:00
beard%netscape.com
b661c5b8ce Fixed unitialized static class members.
git-svn-id: svn://10.0.0.236/trunk@73283 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:43:40 +00:00
beard%netscape.com
e1bf2e7c86 addSlot -> defineSlot, added defineStatic.
git-svn-id: svn://10.0.0.236/trunk@73282 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:42:42 +00:00
dougt%netscape.com
ba45beb562 Bug 43314.
r=Henry Sobotka <sobotka@axess.com>
a=brendan@mozilla.org
s=Robert O'Callahan <roc+moz@cs.cmu.edu>


git-svn-id: svn://10.0.0.236/trunk@73281 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:35:32 +00:00
brendan%mozilla.org
efb5386074 Not again\!
git-svn-id: svn://10.0.0.236/trunk@73280 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:29:49 +00:00
beard%netscape.com
be8e774ffe Fixed type management.
git-svn-id: svn://10.0.0.236/trunk@73279 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:21:33 +00:00
brendan%mozilla.org
0270629fde Fix my stupid missing comma bustage.
git-svn-id: svn://10.0.0.236/trunk@73278 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:17:47 +00:00
leaf%mozilla.org
fb8db5157c Automated update
git-svn-id: svn://10.0.0.236/trunk@73277 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 03:00:11 +00:00
Jerry.Kirk%Nexwarecorp.com
8b32f1a0e2 Changes to allow the Photon version of Mozilla to not be a
MONOLITHIC_TOOLKIT any longer.
r=cls


git-svn-id: svn://10.0.0.236/trunk@73276 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 02:45:09 +00:00
rogerl%netscape.com
0ab4d1b650 lots of stuff me and Patrick did
git-svn-id: svn://10.0.0.236/trunk@73275 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 02:39:32 +00:00
brendan%mozilla.org
2a9d76e574 Fix JS_SetPrototype and __proto__ setting to deal with shared scopes; use JSObjectOps for setProto and setParent operations, and add spare op slots (41126, r=shaver@mozilla.org,pschwartau@netscape.com).
git-svn-id: svn://10.0.0.236/trunk@73274 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 02:37:25 +00:00
javi%netscape.com
9e1cf0b293 Sigh. Preceed all <LINK ..> blocks with a <SCRIPT></SCRIPT> to work around
a bug in 4.x Communicator Solaris where the contents of the style sheet get
dumped to the screen.  Not sure why this solves that problem, but it does.


git-svn-id: svn://10.0.0.236/trunk@73273 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:32:39 +00:00
law%netscape.com
545f2ef5f6 Fix for bug 43892; properly calculate unicode string length; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73272 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:30:23 +00:00
dougt%netscape.com
01cf26060b simplify, simplify, simplify...
added editor support.
added multiple document support.
reduced what interfaces were needed by the WebBrowser class.


Not Part of build!


git-svn-id: svn://10.0.0.236/trunk@73271 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:30:20 +00:00
ddrinan%netscape.com
8db6580aa2 Build the PSM xpi files
git-svn-id: svn://10.0.0.236/trunk@73270 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:21:41 +00:00
nisheeth%netscape.com
ab324a8e94 Fix for bug 43019. Does not affect current build. Fixes a unix compile problem for XSL hooks in mozilla.
git-svn-id: svn://10.0.0.236/trunk@73269 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 01:12:44 +00:00
javi%netscape.com
9f043c0b2b Doh!! Forgot to add the psm executable to the xpi file.
git-svn-id: svn://10.0.0.236/trunk@73268 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:55:05 +00:00
jst%netscape.com
bf4dfc972a Fixing the remaining details in nsbeta2+ bug 38495, mozilla is now backwards compatible with existing plugin content as long as the plugins are updated. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73267 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:54:44 +00:00
javi%netscape.com
a6545ceffd Add an html file that can be used to install the xpi
git-svn-id: svn://10.0.0.236/trunk@73265 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:34:03 +00:00
endico%mozilla.org
7f200ff1ac added item on copying db from one installation to another
git-svn-id: svn://10.0.0.236/trunk@73264 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:27:10 +00:00
tao%netscape.com
bd20adbe0f 41054: Bundle 2-3 language packs with Seamonkey.r=jbetak
git-svn-id: svn://10.0.0.236/trunk@73263 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:24:48 +00:00
javi%netscape.com
0b43e84fbb Add a rule to automatically create XPi files.
git-svn-id: svn://10.0.0.236/trunk@73262 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:20:07 +00:00
ducarroz%netscape.com
f2590dfb53 Fix build bustage for rhp. Add msgUtils library to the Mac project (both target)
git-svn-id: svn://10.0.0.236/trunk@73261 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-27 00:12:48 +00:00
javi%netscape.com
825e2983b3 Checking in the file we use for xpi install on UNIX with mozilla.
git-svn-id: svn://10.0.0.236/trunk@73260 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 23:44:28 +00:00
cyeh%bluemartini.com
861e0acb60 fix for DBI compatibility
git-svn-id: svn://10.0.0.236/trunk@73259 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 23:04:40 +00:00
rhp%netscape.com
37687de29e Fix to use the server and port from AB Sync server - Bug # 43782 - r: jefft
git-svn-id: svn://10.0.0.236/trunk@73258 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 23:04:37 +00:00
sgehani%netscape.com
722315f24b Fix font issue: make license readable in installer.
[nsbeta2+ b=40960; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@73257 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:41:27 +00:00
cotter%netscape.com
5da5c16f30 Updated installation and what's new sections re Security directory on Windows, which no longer needs to be renamed when installing Netscape 6 after PSM for Communicator (or vice versa).
git-svn-id: svn://10.0.0.236/trunk@73256 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:32:55 +00:00
av%netscape.com
fc3f0b75fd Not part of the build yet. Default plugin.
git-svn-id: svn://10.0.0.236/trunk@73255 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:30:38 +00:00
leaf%mozilla.org
18ada066a1 Automated update
git-svn-id: svn://10.0.0.236/trunk@73254 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:30:09 +00:00
rich.burridge%sun.com
92fa85731e Fix to allow refcnt'ing on the Solaris platform.
r=scc@mozilla.org a=brendan@mozilla.org
Bug #40769


git-svn-id: svn://10.0.0.236/trunk@73253 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 22:23:47 +00:00
cls%seawood.org
c0ab59d720 Added BeOS debugger to debugger list. bug #43723
git-svn-id: svn://10.0.0.236/trunk@73252 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:52:27 +00:00
law%netscape.com
53bb7777ca Fix for bug 35956; turn off gzip content encodng when downloading via http; r=gagan
git-svn-id: svn://10.0.0.236/trunk@73251 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:36:28 +00:00
cmanske%netscape.com
2ba9df27e7 Added flag to be sure file exists when loading a file using Windows filepicker. part of fix for 43834, r&a=rods
git-svn-id: svn://10.0.0.236/trunk@73250 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:16:01 +00:00
nisheeth%netscape.com
3ac334fdb1 r=vidur, jst. Fix for bug 9076. The nodeName property is now case sensitive for XHTML elements and folded to uppercase for HTML elements.
git-svn-id: svn://10.0.0.236/trunk@73249 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:05:16 +00:00
sspitzer%netscape.com
79039ebdbd fix for #1144 (and various other bugs, I'm sure.)
export absync.properties on the Mac.  r=mscott


git-svn-id: svn://10.0.0.236/trunk@73248 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:03:55 +00:00
rusty.lynch%intel.com
d32014ccc6 David Baron's patch to fix bug #41172. r=waterson
git-svn-id: svn://10.0.0.236/trunk@73247 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:03:19 +00:00
evaughan%netscape.com
c91452df4c Fix for dogfood bug #43474
git-svn-id: svn://10.0.0.236/trunk@73246 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 21:00:44 +00:00
rusty.lynch%intel.com
dc44b012ca part of a fix for bug #40321. r=gagan
git-svn-id: svn://10.0.0.236/trunk@73245 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:58:04 +00:00
mkaply%us.ibm.com
ea8f1202b8 #42637
r=mscott, a=brendan
OS/2 bringup - need casts for VisualAge


git-svn-id: svn://10.0.0.236/trunk@73244 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:39:19 +00:00
Jerry.Kirk%Nexwarecorp.com
77d5ef4dab NOT PART oF BUILD - PHOTON ONLY
Made the timers for photon work as a component by defining
NS_TIMER_PH_CID and changing the component name to the new name.


git-svn-id: svn://10.0.0.236/trunk@73243 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:37:03 +00:00
endico%mozilla.org
0a6c3cfd47 change wording of mail notification
git-svn-id: svn://10.0.0.236/trunk@73242 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:29:10 +00:00
shanjian%netscape.com
165f5ef435 related to #40734
The rule has been changed. '=' will no longer be breakable in western
languages. Akkana agreed the change.


git-svn-id: svn://10.0.0.236/trunk@73241 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:26:47 +00:00
dougt%netscape.com
7515b96e14 Removing bookmark requirement.
43082.
r=jbetak@netscape.com
a=valeski@netscape.com


git-svn-id: svn://10.0.0.236/trunk@73240 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:26:16 +00:00
shanjian%netscape.com
dc73ec9814 #40734
Checkin the code again with small modification from previous one. The
failure in test should be corrected by changing the test case. The rule
has been changed. Akkana agreed the change.


git-svn-id: svn://10.0.0.236/trunk@73239 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:25:41 +00:00
mkaply%us.ibm.com
09621b24a4 r=cls, a=cls
Broken objdir stuff


git-svn-id: svn://10.0.0.236/trunk@73238 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 20:18:21 +00:00
mkaply%us.ibm.com
dd8be9c7b4 #42637
r=jst, a=brendan
OS/2 bring up - PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@73237 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 19:59:18 +00:00
neeti%netscape.com
76dd70d02c Removing an useless include xpcomio_s from the Makefile.r/a=gagan
git-svn-id: svn://10.0.0.236/trunk@73236 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 19:57:41 +00:00
mkaply%us.ibm.com
d7d989774e #42637
r=mkaply, a=brendan
OS/2 bring up - Change window list behavior to be more like Windows - windows are only in the task list if they are visible


git-svn-id: svn://10.0.0.236/trunk@73235 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 19:54:19 +00:00
mkaply%us.ibm.com
8b0c128d62 #42637
r=mkaply, a=brendan
OS/2 bring up - Fixes for our cursors


git-svn-id: svn://10.0.0.236/trunk@73234 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 19:52:41 +00:00
cls%seawood.org
db4eb3374a Ok, that was a stupid mistake
git-svn-id: svn://10.0.0.236/trunk@73233 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 19:23:36 +00:00
rpallath%eng.sun.com
0f0ebad037 Added this test case
git-svn-id: svn://10.0.0.236/trunk@73232 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 18:09:44 +00:00
beard%netscape.com
ccd4698faf JSValue::operator==: added CASE(type) to fix warning.
git-svn-id: svn://10.0.0.236/trunk@73231 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 17:47:07 +00:00
beard%netscape.com
9ce999f990 added JSObject::deleteProperty(), and changed mName in JSType to be a JSString. Need to revisit other uses of String soon.
git-svn-id: svn://10.0.0.236/trunk@73230 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 17:42:20 +00:00
beard%netscape.com
248c6cb94b simplified string addition
git-svn-id: svn://10.0.0.236/trunk@73229 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 17:25:25 +00:00
beard%netscape.com
3054177c8b defined JSStringBase, and constructors from in JSString
git-svn-id: svn://10.0.0.236/trunk@73228 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 17:24:57 +00:00
beard%netscape.com
e530a8d939 String addition: don't share structure with LHS.
git-svn-id: svn://10.0.0.236/trunk@73227 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 17:09:27 +00:00
beard%netscape.com
38b67e2e27 added constructor from JSString&.
git-svn-id: svn://10.0.0.236/trunk@73226 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 16:55:01 +00:00
beard%netscape.com
dcf06c37e9 Reset register usage after generating each initializer statement.
git-svn-id: svn://10.0.0.236/trunk@73225 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 15:19:45 +00:00
beard%netscape.com
8764a7d072 Simplified NEW_CLASS, using a single do .. while loop, introducing nextPC instruction iterator to simplify initial case. now calls all defined constructors.
git-svn-id: svn://10.0.0.236/trunk@73224 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 15:06:36 +00:00
bienvenu%netscape.com
a100917856 fix for 38598 progress not working r=mscott
git-svn-id: svn://10.0.0.236/trunk@73223 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:54:28 +00:00
locka%iol.ie
d6ecfb9d7f NOT PART OF BUILD. Fixed DTD makefile
git-svn-id: svn://10.0.0.236/trunk@73222 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:50:53 +00:00
mkaply%us.ibm.com
b94aaf3d70 #42637
r=mkaply, a=brendan
OS/2 bring up - Set mresolvepath - OS/2 only


git-svn-id: svn://10.0.0.236/trunk@73221 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:50:20 +00:00
locka%iol.ie
a936ff0df5 NOT PART OF BUILD. First working cut of the mini navigator chrome
git-svn-id: svn://10.0.0.236/trunk@73220 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:49:39 +00:00
locka%iol.ie
5550039780 NOT PART OF BUILD. Fixed some path problems in makefiles & manifest
git-svn-id: svn://10.0.0.236/trunk@73219 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:48:54 +00:00
mkaply%us.ibm.com
12d5704c62 #40177
r=cls, a=brendan
OS/2 bring up - Forgot OSDIR to specify location of cpp file


git-svn-id: svn://10.0.0.236/trunk@73218 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:46:18 +00:00
bienvenu%netscape.com
edde59dd98 fix for 38598 progress not working r=mscott
git-svn-id: svn://10.0.0.236/trunk@73217 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 14:24:05 +00:00
bryner%uiuc.edu
572054010f Oops, need to check for microseconds overflow into full seconds. bug
43789.  r=pavlov.


git-svn-id: svn://10.0.0.236/trunk@73216 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 06:46:01 +00:00
pavlov%netscape.com
797bce8c48 fix for timers not firing accurately bug 43789. r=blizzard, syd, bryner
git-svn-id: svn://10.0.0.236/trunk@73215 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 05:58:17 +00:00
rjc%netscape.com
f4103e6374 Fix nsbeta2+ bug # 43498: search file update. R/A=me
git-svn-id: svn://10.0.0.236/trunk@73214 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 05:24:45 +00:00
rjc%netscape.com
bab06adffb Fix nsbeta2+ bug # 42887: allow charset specification in a search dataset. Code: nhotta R/A: me
git-svn-id: svn://10.0.0.236/trunk@73213 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 05:08:23 +00:00
dbaron%fas.harvard.edu
9f0ca0e3b5 Undo my previous change, which was wrong. PR_TRUE is the correct way to continue enumeration for |nsHashtable|s. I don't know what is causing the leak (bug 43707). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@73212 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:39:49 +00:00
conrad%ingress.com
8f63a1e61f * Not part of build *
Filled in some nsIWebBrowserChrome and nsIBaseWindowMethods which were only stubbed out before.


git-svn-id: svn://10.0.0.236/trunk@73211 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:25:16 +00:00
conrad%ingress.com
946e16276a * Not part of build *
Changd nsAllocator::Free() to nsCRT::free()


git-svn-id: svn://10.0.0.236/trunk@73210 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:23:10 +00:00
conrad%ingress.com
0e814bc032 * Not part of build *
Hooked up progress UI


git-svn-id: svn://10.0.0.236/trunk@73209 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:21:51 +00:00
conrad%ingress.com
7b8b984943 * Not part of build *
Hooked up progress UI.


git-svn-id: svn://10.0.0.236/trunk@73208 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:21:27 +00:00
conrad%ingress.com
59a8e842e2 * Not part of build *
Added SetWebBrowser()


git-svn-id: svn://10.0.0.236/trunk@73207 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:20:54 +00:00
conrad%ingress.com
8fb6d2a0fc * Not part of build *
Took out calls to Repeater and PR_Sleep.
Added SetWebBrowser()


git-svn-id: svn://10.0.0.236/trunk@73206 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:20:04 +00:00
conrad%ingress.com
9ab457a9fb * Not part of build *
Moved calls to Repeater to ProcessEvent(). This used to be done in the SpendTime() method of each CBrowserShell which was wrong.


git-svn-id: svn://10.0.0.236/trunk@73205 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:18:32 +00:00
conrad%ingress.com
b478b71b4d * Not part of build *
Added res ID for plain browser window.


git-svn-id: svn://10.0.0.236/trunk@73204 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:13:19 +00:00
conrad%ingress.com
3f686dc68d * Not part of build *
Added progress bar.


git-svn-id: svn://10.0.0.236/trunk@73203 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 02:12:32 +00:00
ben%netscape.com
2b8fab70e7 tree tweak for classic skin.
git-svn-id: svn://10.0.0.236/trunk@73202 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-26 01:20:53 +00:00
mkaply%us.ibm.com
ae0e56406c # 40177
r = mkaply, a = brendan
OS/2 bring-up - Versions of these files for OS/2


git-svn-id: svn://10.0.0.236/trunk@73201 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 22:42:16 +00:00
mkaply%us.ibm.com
1b4a50ead4 # 40177
r = cls, a = brendan
OS/2 bring-up - Change so this builds on OS/2


git-svn-id: svn://10.0.0.236/trunk@73200 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 22:39:51 +00:00
Peter.VanderBeken%pandora.be
59914605fb Added expat to optimized target. Not part of build yet.
git-svn-id: svn://10.0.0.236/trunk@73199 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 20:57:37 +00:00
rhp%netscape.com
be18301515 Fixing problem with printing - simple one line JS fix for a missing call - Bug #43478 - r: jefft
git-svn-id: svn://10.0.0.236/trunk@73198 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 17:33:57 +00:00
beard%netscape.com
8bb1ef70ac Only call non-null constructors.
git-svn-id: svn://10.0.0.236/trunk@73197 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 17:04:38 +00:00
beard%netscape.com
1bb0ae2fc2 Conditionally set constructor, if it has any instructions.
git-svn-id: svn://10.0.0.236/trunk@73196 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 17:04:01 +00:00
beard%netscape.com
75fa0c383f updated dependencies
git-svn-id: svn://10.0.0.236/trunk@73195 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 16:44:29 +00:00
beard%netscape.com
0935fcf077 check for non-null superClass
git-svn-id: svn://10.0.0.236/trunk@73194 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 16:43:25 +00:00
beard%netscape.com
491725a122 hooked up superClass' scope as the prototype of a class's scope, to do method inheritance, removed bogus JSInstance::getSlotCount(), which overcounted slots.
git-svn-id: svn://10.0.0.236/trunk@73193 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 16:35:33 +00:00
mkaply%us.ibm.com
534fd167f6 # 40177
r = cls, a = brendan
OS/2 bring-up - the PS dir is only needed for *IX platforms


git-svn-id: svn://10.0.0.236/trunk@73192 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 14:42:08 +00:00
ben%netscape.com
652948ad51 fixes for classic skin, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@73190 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 06:07:54 +00:00
tao%netscape.com
521fd4f1a0 back out l10n changes.
git-svn-id: svn://10.0.0.236/trunk@73189 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 04:05:08 +00:00
tao%netscape.com
ff8f01d63b Back out l10n changes
git-svn-id: svn://10.0.0.236/trunk@73188 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 04:01:42 +00:00
tao%netscape.com
6e79c944f9 Back out l10n changes.
git-svn-id: svn://10.0.0.236/trunk@73187 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 04:00:27 +00:00
tao%netscape.com
2329db2be4 change dirs ordering to see if this fixes install order.
git-svn-id: svn://10.0.0.236/trunk@73182 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-25 01:59:57 +00:00
beard%netscape.com
a3a1f59b43 Added calls to superClass constructors.
git-svn-id: svn://10.0.0.236/trunk@73177 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 22:42:43 +00:00
beard%netscape.com
5e640f5cf7 JSInstance::getSlotCount() no longer recursive.
git-svn-id: svn://10.0.0.236/trunk@73176 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 22:42:15 +00:00
beard%netscape.com
7f094b555a Beginning support for superclass slots.
git-svn-id: svn://10.0.0.236/trunk@73175 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 22:07:00 +00:00
tao%netscape.com
ed9af13cb6 41054: Bundle 2-3 language packs with Seamonkey.r=jbetak.
git-svn-id: svn://10.0.0.236/trunk@73174 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 21:48:17 +00:00
sspitzer%netscape.com
7657985439 comment out my printf.
git-svn-id: svn://10.0.0.236/trunk@73173 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 21:45:08 +00:00
sspitzer%netscape.com
53d802af6a fix for #39853. when populating the subscribe dialog from disk, we'd
block the entire ui.  this was bad if the hostinfo.dat file was big.
r=mscott


git-svn-id: svn://10.0.0.236/trunk@73172 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 21:35:59 +00:00
sspitzer%netscape.com
3676e6c34a fix for #41062. pop up an alert on news errors, like auth failure.
r=mscott.


git-svn-id: svn://10.0.0.236/trunk@73171 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 21:22:47 +00:00
jst%netscape.com
cafa975bba Fixing nsbeta2+ bug 13350, add a JS branch callback to the DOM code that runs the JS GC and also lets users abort extremely long running scripts (i.e. infinite JS loops). r=vidur&brendan
git-svn-id: svn://10.0.0.236/trunk@73170 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 16:18:41 +00:00
beard%netscape.com
3d0c7e4a46 Added emptyArgs, removed unused return value in readEvalFile
git-svn-id: svn://10.0.0.236/trunk@73169 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:42:51 +00:00
beard%netscape.com
b4ef9b75fb enable RTTI
git-svn-id: svn://10.0.0.236/trunk@73168 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:36:52 +00:00
beard%netscape.com
0f9a13273f VC++ doesn't like local classes in templates.
git-svn-id: svn://10.0.0.236/trunk@73167 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:36:09 +00:00
beard%netscape.com
8ee63e4a30 major surgery to enable the "load()" native function.
git-svn-id: svn://10.0.0.236/trunk@73166 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:25:33 +00:00
beard%netscape.com
032e7d113c Experiment with looking up methods in the prototype chain.
git-svn-id: svn://10.0.0.236/trunk@73165 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:22:23 +00:00
beard%netscape.com
771cfb9f71 Always use the target object, regardless of where a method property is found along the prototype chain.
git-svn-id: svn://10.0.0.236/trunk@73164 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:21:49 +00:00
beard%netscape.com
3fa84e139b When generating a reference to "this" use the current code generator's mClass when appropriate.
git-svn-id: svn://10.0.0.236/trunk@73163 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 05:21:03 +00:00
ben%netscape.com
544b1501f0 fix for 38262, 38497, r=verah@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73162 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 04:55:47 +00:00
ben%netscape.com
f1af12c6d0 more classic skin work
git-svn-id: svn://10.0.0.236/trunk@73161 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 04:52:59 +00:00
ben%netscape.com
ee8907c483 more classic skin work + fix manifest
git-svn-id: svn://10.0.0.236/trunk@73160 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 04:52:33 +00:00
morse%netscape.com
3557f39e20 update wallet tables, not part of build
git-svn-id: svn://10.0.0.236/trunk@73159 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 04:34:18 +00:00
joki%netscape.com
c1ec0c7d3c Part of fix for 42418, patch up event target from PresShell after re-entrant events to avoid null targets. r:nisheeth
git-svn-id: svn://10.0.0.236/trunk@73158 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:58:13 +00:00
tor%cs.brown.edu
875aaade38 Dangling symbol reference was causing problems with Tru64 and MacOS.
Not in default build.


git-svn-id: svn://10.0.0.236/trunk@73157 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:54:35 +00:00
mcafee%netscape.com
f9fb471e4b Removing unused 4.x prefs (39812). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73156 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:32:40 +00:00
mcafee%netscape.com
6cbafd115c file is dead, removing. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73155 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:20:39 +00:00
morse%netscape.com
830640e80c bug 42774, fix typo
git-svn-id: svn://10.0.0.236/trunk@73154 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:09:11 +00:00
mcafee%netscape.com
70eea3db84 Don't inherit the 4.x cache file location for mozilla (39812). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@73153 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 03:04:51 +00:00
rginda%netscape.com
0670e54423 fixing source stepping (opcode stepping to come back later)
debugger is now quiet by default.


git-svn-id: svn://10.0.0.236/trunk@73152 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:53:29 +00:00
beard%netscape.com
6c8e7ab7a9 Removed JSType::isClassType().
git-svn-id: svn://10.0.0.236/trunk@73151 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:51:34 +00:00
beard%netscape.com
e24d5dd777 Added JSClass::get/setConstructor().
git-svn-id: svn://10.0.0.236/trunk@73150 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:51:03 +00:00
beard%netscape.com
d5f478e4b2 Added call to constructor when executing NEW_CLASS.
git-svn-id: svn://10.0.0.236/trunk@73149 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:50:23 +00:00
beard%netscape.com
eb882da672 Generating default constructor to run slot initializers.
git-svn-id: svn://10.0.0.236/trunk@73148 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:49:45 +00:00
ben%netscape.com
591f0a6158 [classic-skin] fix mac sidebar css to use correct colours
git-svn-id: svn://10.0.0.236/trunk@73147 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:16:38 +00:00
dougt%netscape.com
2c89b23807 fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@73146 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:10:17 +00:00
gagan%netscape.com
0e6114432b Fix for bug 42841. We were sending a Host: foo:80 header for the default port cases. Several server cgi's that rely on this for virtual hosts were failing to compare the two as same. r=dougt,rjc Ooops... I think I ran this file thru my deruslanizer too.
git-svn-id: svn://10.0.0.236/trunk@73145 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:02:19 +00:00
dougt%netscape.com
5e1c69c466 adding helper source. Not part of built.
git-svn-id: svn://10.0.0.236/trunk@73144 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 02:01:29 +00:00
dougt%netscape.com
d647fb0127 Adjusting user of makeUnique. a=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@73143 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:55:40 +00:00
dougt%netscape.com
b4fae1275b nsIFile unique file creation is racy and insecure
bug 43314. a=brendan@mozilla.org
written by Robert O'Callahan <roc+moz@cs.cmu.edu>


git-svn-id: svn://10.0.0.236/trunk@73142 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:50:53 +00:00
alecf%netscape.com
7b4aa37af0 fix for 39345 - remove save password from all UI
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73141 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:32:12 +00:00
dougt%netscape.com
5a016c0fee Change nsIDOMXULDocument --> nsIDOMDocument
bug 43424
r=akkana@netscape.com
a=phil@netscape.com ?


git-svn-id: svn://10.0.0.236/trunk@73140 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:29:58 +00:00
mscott%netscape.com
e2331d355d Bug #43651 --> can't read news without crashing. Implement GetContentType for nntp protocol.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73139 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:17:02 +00:00
ducarroz%netscape.com
97ce0a7bba Fix for bug 41266. Don't close the popup menu when pressing the up/down arrow key. R=mscott
git-svn-id: svn://10.0.0.236/trunk@73138 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:15:42 +00:00
mscott%netscape.com
381890bc97 Gee wizz...i didn't check in the progid registration for the external helper app service last night.
Bug #38374, 30157, 10802
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73137 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:14:52 +00:00
thayes%netscape.com
216910f39a Add tests for Secret Decoder Ring (SDR)
git-svn-id: svn://10.0.0.236/trunk@73136 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:06:26 +00:00
beard%netscape.com
154282855d testCompile() is static
git-svn-id: svn://10.0.0.236/trunk@73135 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:04:58 +00:00
rogerl%netscape.com
e8e7f3718b typing 'this'
git-svn-id: svn://10.0.0.236/trunk@73134 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 01:02:34 +00:00
rogerl%netscape.com
9d9a6a599f Got newClass working, added printProperties for instances, some slot
stuff is happening.


git-svn-id: svn://10.0.0.236/trunk@73133 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:50:59 +00:00
endico%mozilla.org
13c209ac50 add comment explaining how to set up mail alias
git-svn-id: svn://10.0.0.236/trunk@73132 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:13:55 +00:00
cltbld%netscape.com
420f7b4f04 added patches to build Mac with XSLT, SVG, MathML. fix for #39959. (activated by Options{} switches - default is off) --jj.
git-svn-id: svn://10.0.0.236/trunk@73131 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:06:58 +00:00
cltbld%netscape.com
999c778b9e added Options{} table. part of fix for #39959 -- jj.
git-svn-id: svn://10.0.0.236/trunk@73130 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:03:50 +00:00
dougt%netscape.com
bf15c34b53 I IDL-ifying the nsProxyObjectManager.
I have updated all users that I found
grepping the source tree.

r=valeski@netscape.com
a=waterson@netscape.com
b=43131

Also checking in changes to the window's embed test which is NOT
hooked up to the build system.


git-svn-id: svn://10.0.0.236/trunk@73129 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:03:10 +00:00
cltbld%netscape.com
9528ea55c9 added DefinesOptions.h to Mac build. part of fix for #39959
git-svn-id: svn://10.0.0.236/trunk@73128 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-24 00:02:31 +00:00
valeski%netscape.com
dce89aed9d a=waterson. adding idl file, part of dougt's checkin.
git-svn-id: svn://10.0.0.236/trunk@73127 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:56:55 +00:00
endico%mozilla.org
b4a89b36f1 add more whitespace to exporter's log message
git-svn-id: svn://10.0.0.236/trunk@73126 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:54:35 +00:00
radha%netscape.com
83f086107a More checkins for feature bug 36547. CODE NOT PART OF THE BUILD. reviewer will be provided
when feature is enabled.


git-svn-id: svn://10.0.0.236/trunk@73125 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:54:30 +00:00
cltbld%netscape.com
509b1f5c01 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73124 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:53:02 +00:00
endico%mozilla.org
c7416d554f move new path code to beginning
git-svn-id: svn://10.0.0.236/trunk@73123 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:52:32 +00:00
beard%netscape.com
f0d31a051c added NEW_CLASS instruction, to instantiate classes.
git-svn-id: svn://10.0.0.236/trunk@73122 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:49:48 +00:00
beard%netscape.com
b8d21f902b added NEW_CLASS instruction.
git-svn-id: svn://10.0.0.236/trunk@73121 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:49:17 +00:00
cltbld%netscape.com
173d29e9cc added XSLT, SVG, MathML to Mac build. fix for #39959
git-svn-id: svn://10.0.0.236/trunk@73119 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:47:11 +00:00
dveditz%netscape.com
645075a3e5 42762 create English language pack for l10n
git-svn-id: svn://10.0.0.236/trunk@73118 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:46:29 +00:00
cltbld%netscape.com
f52bc38217 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73117 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:45:00 +00:00
rogerl%netscape.com
071facaac6 Adding slot handling to code gen.
git-svn-id: svn://10.0.0.236/trunk@73116 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:43:24 +00:00
beard%netscape.com
5d613bac76 added NEW_CLASS instruction.
git-svn-id: svn://10.0.0.236/trunk@73115 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:41:27 +00:00
dougt%netscape.com
a08152032b Adding idl'ifed nsIProxyObjectManager interface file.
git-svn-id: svn://10.0.0.236/trunk@73114 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:34:11 +00:00
dveditz%netscape.com
bd33c6c595 42762 create English language pack for l10n, r=ssu
git-svn-id: svn://10.0.0.236/trunk@73113 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:33:01 +00:00
beard%netscape.com
324cafdec3 Added JSClass::hasSlot, getSlotCount(), and JSInstance.
git-svn-id: svn://10.0.0.236/trunk@73112 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:25:55 +00:00
beard%netscape.com
5bb59bebb9 JSValue::type now JSType* instead of const JSType*, all predefined JSType objects no longer const as well.
git-svn-id: svn://10.0.0.236/trunk@73111 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 23:25:14 +00:00
tor%cs.brown.edu
ef95bf8be2 Update libmng snapshot. Not in default build.
git-svn-id: svn://10.0.0.236/trunk@73110 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:59:51 +00:00
bryner%uiuc.edu
20f5e42ebc Fixing bug 43628. r=hyatt,pavlov.
git-svn-id: svn://10.0.0.236/trunk@73109 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:59:18 +00:00
ssu%netscape.com
c8156ba838 fixing bug #41054 - adding language packs to seamonkey product. r=dveditz,sgehani
git-svn-id: svn://10.0.0.236/trunk@73108 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:57:34 +00:00
endico%mozilla.org
74595fe77d include error messages for each bug in the exporter's confirmation mail
git-svn-id: svn://10.0.0.236/trunk@73107 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:56:45 +00:00
rogerl%netscape.com
f0dcf103dd Removed FUNCTION instruction, other class related junk.
git-svn-id: svn://10.0.0.236/trunk@73106 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:53:09 +00:00
vidur%netscape.com
19893b2add Fix for bug 35010. Since this is just a test case, I don't need an a= or r=. font.html
git-svn-id: svn://10.0.0.236/trunk@73105 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:52:39 +00:00
law%netscape.com
fb5f84dae8 Bug 31578; add 'Reload Frame' to context menu; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73104 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:49:05 +00:00
endico%mozilla.org
7959e0c5a2 find the path this script lives in and add it to @INC and to the current working directory.
git-svn-id: svn://10.0.0.236/trunk@73103 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:43:21 +00:00
cyeh%bluemartini.com
0714929f7c add voters to text
git-svn-id: svn://10.0.0.236/trunk@73102 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:35:38 +00:00
rginda%netscape.com
0deba46ad9 Added debugger opcode, change InstructionMap to a std::map, print source lines while tracing
git-svn-id: svn://10.0.0.236/trunk@73101 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:27:17 +00:00
thayes%netscape.com
a2172d1094 Add SDR test command
git-svn-id: svn://10.0.0.236/trunk@73100 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:25:22 +00:00
vidur%netscape.com
153de75d02 Fix for bug 31376. Just modifying an incorrect comment.
git-svn-id: svn://10.0.0.236/trunk@73099 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:23:37 +00:00
saari%netscape.com
b98ddb60b1 adding null check to prevent a few crashers on windows and linux that I introduced (exposed new code path). r=bryner
git-svn-id: svn://10.0.0.236/trunk@73098 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 22:18:54 +00:00
dbaron%fas.harvard.edu
88967dd6f9 Add new style classes to the leak/bloat logs. This should increase the bloat statistics. r=attinasi
git-svn-id: svn://10.0.0.236/trunk@73097 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:57:39 +00:00
javi%netscape.com
fc49242917 Move some localizable strings from psm_ui.properties.in to psm_text.properties.in
git-svn-id: svn://10.0.0.236/trunk@73096 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:54:32 +00:00
bryner%uiuc.edu
af531aefa9 Patching more (hopefully all) trees to work with the new tree widget (bug
30511).  r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@73095 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:44:48 +00:00
jim_nance%yahoo.com
8b699a2717 Added line to print working directory of commands which fail.
git-svn-id: svn://10.0.0.236/trunk@73094 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:31:42 +00:00
matt%netscape.com
8213d2f2d9 pulling out search string from JS to a properties file.
R:law
bug:35124


git-svn-id: svn://10.0.0.236/trunk@73093 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:23:44 +00:00
rogerl%netscape.com
60220bebd1 Add return statement if the function doesn't end with one
git-svn-id: svn://10.0.0.236/trunk@73092 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 21:20:03 +00:00
waqar%netscape.com
d28f9e07c1 #=24871
r=pavlov@netscape.com
d=New timer code for GTK. This should speed up navigation quite a bit.


git-svn-id: svn://10.0.0.236/trunk@73091 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:54:02 +00:00
dcone%netscape.com
1db3197083 Printing regression test samples were revised. Does not effect the build.
git-svn-id: svn://10.0.0.236/trunk@73090 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:33:26 +00:00
joki%netscape.com
b25ef2eeab Temporary fix for bug 43390, allow modal dialogs/windows to be raised from script. r:vidur
git-svn-id: svn://10.0.0.236/trunk@73089 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:32:45 +00:00
dcone%netscape.com
cd2c52ab8a Added two files to build.. nsPrintOptionsImpl.cpp and nsPrintOptionsMac.cpp. r = kmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73088 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:21:50 +00:00
attinasi%netscape.com
9a8808a5fa Checkin for dcone: Adding print options object to makefile. b=36796 r=attinasi
git-svn-id: svn://10.0.0.236/trunk@73087 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:15:59 +00:00
mkaply%us.ibm.com
fb2b5a0c8b r = pchen, a = pchen
EROFS is not defined in VisualAge so it breaks our Tinderbox


git-svn-id: svn://10.0.0.236/trunk@73086 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 20:13:04 +00:00
mcs%netscape.com
6d63f2fe67 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73085 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 19:42:37 +00:00
endico%mozilla.org
5b205da46a give more verbose error messages
git-svn-id: svn://10.0.0.236/trunk@73084 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 19:41:38 +00:00
cyeh%bluemartini.com
56d7c8e6ac committing to close bug 6682 "Chart all bug states". patches
contributed by mhamby@logicon.com


git-svn-id: svn://10.0.0.236/trunk@73083 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 18:59:48 +00:00
valeski%netscape.com
308822e8ed making urlinfo threadsafe for test harness a=granrose
git-svn-id: svn://10.0.0.236/trunk@73082 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 18:49:07 +00:00
chrisk%netscape.com
04c4ea3f80 Added and corrected some comments
Added $layercounter
Clarified $boundary generation (a boundary has leading AND trailing CRLFs!)


git-svn-id: svn://10.0.0.236/trunk@73081 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 18:37:33 +00:00
cyeh%bluemartini.com
97fb8ee283 checkin to fix Bug 25010 "Need a way to edit the list of available groups".
Patches and work contributed by dave@intrec.com (Dave Miller).
Some cleanup work needs to be done with regards to permissions and bit-twiddling
see other bugs that are dependent on 25010 for details.


git-svn-id: svn://10.0.0.236/trunk@73080 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 18:03:47 +00:00
sdv%sparc.spb.su
c1383224df added note about cvs tag DOM_PR1
git-svn-id: svn://10.0.0.236/trunk@73079 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 17:35:51 +00:00
sdv%sparc.spb.su
4f491022e3 got rid of dependance on java\config\localdefs.mak
git-svn-id: svn://10.0.0.236/trunk@73078 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 17:16:29 +00:00
sdv%sparc.spb.su
75efb3494b fix for bug=41494
removed headers generated by javah
updated makefiles


git-svn-id: svn://10.0.0.236/trunk@73077 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 17:14:11 +00:00
chrisk%netscape.com
2b65c3df83 Preliminary checkin at a state where smime can parse messages generated
by itself.


git-svn-id: svn://10.0.0.236/trunk@73076 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 16:40:31 +00:00
vidur%netscape.com
b674c84709 Allowed complete script access to our components. This is WIP and not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73075 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 15:51:47 +00:00
dcone%netscape.com
4d3af51cc1 Added the IDL file for Vidur.
git-svn-id: svn://10.0.0.236/trunk@73074 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 15:22:38 +00:00
german%netscape.com
4130b46949 Fixing messenger 3-pane splitter in classic skin by updating align='vertical' to orient='vertical'.
git-svn-id: svn://10.0.0.236/trunk@73073 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:51:05 +00:00
jst%netscape.com
23bcfd2e8d Removing references to removed makefiles. r=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73072 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:41:50 +00:00
dcone%netscape.com
1a95dd11e1 Added a new interface file to compile for nsPrintOptions. r=kmmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73071 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:41:06 +00:00
dcone%netscape.com
af00864e4f Added a new interface definition for nsIPrintOptons. r=kmmclusky. b=36796
git-svn-id: svn://10.0.0.236/trunk@73070 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:39:58 +00:00
mkaply%us.ibm.com
abfefdd565 #42637
r=mkaply, a=brendan
OS/2 bring up - Menus sometimes not drawing correctly


git-svn-id: svn://10.0.0.236/trunk@73069 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:38:08 +00:00
dcone%netscape.com
57052b8469 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@73068 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:35:57 +00:00
dcone%netscape.com
06b7383369 Added new class definitions for the PrintOptions class. r=kmmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73067 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:34:17 +00:00
vidur%netscape.com
0ff74154af Checking in for mccabe, since he had to leave town. Partial fix for bug 41429. Adding a new interface that components can implement to control the capabilities needed for XPConnect access to them - default is UniversalXPConnect. r=vidur
git-svn-id: svn://10.0.0.236/trunk@73066 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:32:38 +00:00
dcone%netscape.com
9ece460fe3 Added class definitions for the PrintOptions class. r=kmmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73065 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:32:06 +00:00
dcone%netscape.com
a510a98f69 Added class definitions for PrintOptions. r=kmmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73064 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:30:55 +00:00
dcone%netscape.com
1d31530d44 new CID's for the PrintOptions class. r=kmmclusky b=36796
git-svn-id: svn://10.0.0.236/trunk@73063 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:28:54 +00:00
sdv%sparc.spb.su
5b284d85a5 updated patch to webshell, so it works with the
latest version.


git-svn-id: svn://10.0.0.236/trunk@73062 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:14:23 +00:00
jst%netscape.com
18d9bb2095 Fixing nsbeta2+ bug 41953, form element regressions. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73061 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:12:24 +00:00
sdv%sparc.spb.su
7a90f857bc fix for bug=43293
git-svn-id: svn://10.0.0.236/trunk@73060 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 14:09:19 +00:00
neeti%netscape.com
734b991480 fix for bug 43345.browser.cache.enable check, r=warren/gagan
git-svn-id: svn://10.0.0.236/trunk@73059 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:42:46 +00:00
neeti%netscape.com
dce6bd2291 fix for bug 39717 - Disk cache directory not being recreated after it's deleted.r=gagan
git-svn-id: svn://10.0.0.236/trunk@73058 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:39:44 +00:00
jdunn%netscape.com
b2fb06a133 fix for hp bustage. the last entry in enum can't have a ','
git-svn-id: svn://10.0.0.236/trunk@73057 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:21:57 +00:00
rods%netscape.com
26ec507dd2 Better fix for printf spewage.
git-svn-id: svn://10.0.0.236/trunk@73056 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:19:50 +00:00
sdv%sparc.spb.su
d4b0a9436d fix for bug=43473
git-svn-id: svn://10.0.0.236/trunk@73055 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 13:17:29 +00:00
locka%iol.ie
182b2fa29c NOT PART OF BUILD. Prototype (and currently non-functional) chrome for embedding apps
git-svn-id: svn://10.0.0.236/trunk@73054 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 10:17:13 +00:00
waterson%netscape.com
0c6159b166 Fix nsAReadableString assertions. r=jst.
git-svn-id: svn://10.0.0.236/trunk@73053 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 08:49:04 +00:00
warren%netscape.com
01f208bc5c Removed DNS_TIMING stuff from release builds. Bug 29534.
git-svn-id: svn://10.0.0.236/trunk@73052 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 08:01:54 +00:00
tajima%eng.sun.com
f1d0769832 XUL based print dialog on UNIX paltform,r=syd
git-svn-id: svn://10.0.0.236/trunk@73051 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 08:00:10 +00:00
mscott%netscape.com
89cbc0175c Bug #38374 --> make sure the temp file we are saving the file to is unqiue by calling make unique.
This call will be replaced by createUnique once that gets checked in. I also need to fix the temp file
name I use as well.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73050 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 06:42:14 +00:00
waterson%netscape.com
6a43f0364b Added MOZ_COUNT_CTOR/DTOR macros for ftp events. r=warren
git-svn-id: svn://10.0.0.236/trunk@73049 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 06:32:48 +00:00
evaughan%netscape.com
911083bad3 Fix for linux horkage.
git-svn-id: svn://10.0.0.236/trunk@73048 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 06:10:33 +00:00
beard%netscape.com
7fb39e02e0 added assertion to ensure that mPC is always valid before fetching the next instruction.
git-svn-id: svn://10.0.0.236/trunk@73047 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 06:10:14 +00:00
ben%netscape.com
86f82b0f06 fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@73046 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 06:09:05 +00:00
vidur%netscape.com
91fa351b69 Getting rid of debug spewage left in by one of the last couple of checkins
git-svn-id: svn://10.0.0.236/trunk@73045 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:51:07 +00:00
saari%netscape.com
107a69004e Fix for nsbeta2+ bug 38673. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@73044 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:37:08 +00:00
saari%netscape.com
f8eecd30b7 updating mac project files for evaughan's checkin
git-svn-id: svn://10.0.0.236/trunk@73043 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:15:23 +00:00
evaughan%netscape.com
a87e4943ba Autoscrolling menus feature landing #32730
-r hyatt, saari


git-svn-id: svn://10.0.0.236/trunk@73042 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:15:04 +00:00
beard%netscape.com
c7d7e1af40 Additional JSClass processing: defining slots, generating methods.
git-svn-id: svn://10.0.0.236/trunk@73041 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:13:04 +00:00
beard%netscape.com
af70f28237 When using a JSScope that has a parent scope, don't bother defining the standard properties, they will be shared.
git-svn-id: svn://10.0.0.236/trunk@73040 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:10:46 +00:00
beard%netscape.com
62d8ad0434 A JSClass is a JSType now, and has a JSScope. Added addSlot, getSlot, getScope.
git-svn-id: svn://10.0.0.236/trunk@73039 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 05:09:37 +00:00
morse%netscape.com
dd870b875c fix bug 43211, missing text in select-user dialog
git-svn-id: svn://10.0.0.236/trunk@73038 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:59:11 +00:00
ben%netscape.com
dfa14ec130 more classic skin work
git-svn-id: svn://10.0.0.236/trunk@73037 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:57:28 +00:00
mscott%netscape.com
657cc24036 Bug #30157 --> add "network.protocols.useSystemDefaults" preference which is currently FALSE.
if set to TRUE, then link clicks will be dispatched to OS specified default protocol
handlers.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73036 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:49:47 +00:00
ben%netscape.com
78603c1dd7 didn't mean to check in changes to these files just yet...
git-svn-id: svn://10.0.0.236/trunk@73035 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:49:15 +00:00
mscott%netscape.com
17ef196c7c Bug #10802 --> in order to impelement open attachments, I needed to make sure the
stream converter passes out the same channel it is given. This makes the converter
much more transparant in the conversion process.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73034 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:48:29 +00:00
mscott%netscape.com
d79f1f4825 Bug #10802 --> remove special case of message/rfc822 content. we resolve this diffently now in order to make
open attachments work.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73033 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:47:30 +00:00
waterson%netscape.com
b502fc0e74 Fixed refcounting. r=warren
git-svn-id: svn://10.0.0.236/trunk@73032 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:46:58 +00:00
ben%netscape.com
12fc3f3df5 more classic skin work
git-svn-id: svn://10.0.0.236/trunk@73031 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:46:10 +00:00
mscott%netscape.com
c89cf4f0fc Bug #30157 --> add the ability to launch urls using OS default protocol handlers. You must set a pref to
enable this behavior.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@73030 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:44:36 +00:00
mscott%netscape.com
b5e2f56993 Bug #38374, 30157, 10802 --> turn on launching of helper applications to handle content types we don't know how to handle!!
turn on the ability to launch urls using OS default protocol handlers.
uri loader modifications to make open attachment possible.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73029 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:43:28 +00:00
sspitzer%netscape.com
fe883b7d25 get launching of external apps working on the mac.
also, on the mac only, dump the temp file to the desktop.
r=mscott #38374.


git-svn-id: svn://10.0.0.236/trunk@73028 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:43:13 +00:00
dbaron%fas.harvard.edu
9487e204b2 Clean up the deprecated (and never really official) HTML namespace by replacing with the official XHTML namespace. b=7834,42280 r=vidur
git-svn-id: svn://10.0.0.236/trunk@73027 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:41:29 +00:00
waterson%netscape.com
03f3db19c0 Bug 43566. Fix nsPSMComponent leak. r=dougt
git-svn-id: svn://10.0.0.236/trunk@73026 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:10:25 +00:00
beard%netscape.com
64b6987bb7 remove unused file.
git-svn-id: svn://10.0.0.236/trunk@73025 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:10:04 +00:00
mjudge%netscape.com
88b03321ef fix for 42188,42347 r=akkana . use selection controller to tell the doc if it should display non-text-selection.
git-svn-id: svn://10.0.0.236/trunk@73024 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:01:19 +00:00
mjudge%netscape.com
57f0cefd69 fix for 42188, r=akkana 42347. use selection controller to tell the doc if it should display non-text-selection.
git-svn-id: svn://10.0.0.236/trunk@73023 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 04:00:45 +00:00
racham%netscape.com
56efcd2764 enabling biff bug 36011 review=scottip
git-svn-id: svn://10.0.0.236/trunk@73022 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 03:20:35 +00:00
gayatrib%netscape.com
774bf17511 Enabling biff bug 36011 review=scottip
git-svn-id: svn://10.0.0.236/trunk@73021 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 03:19:21 +00:00
gayatrib%netscape.com
658f7a601e Biff Feature bug 36011 review=scottip
git-svn-id: svn://10.0.0.236/trunk@73020 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 03:19:17 +00:00
mscott%netscape.com
889a4c8fd1 Bug #10802 --> in order to implement open attachment i need the mail news channels to implement set owner
and set/get contenttype
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@73019 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 03:11:20 +00:00
rods%netscape.com
6601b1f95f It wasn't call the NavQuirks sizing code when in NavQuirks mode.
Bug 42521,41629 r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@73018 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:30:38 +00:00
drapeau%eng.sun.com
ca8d63a49a Two main things:
1) Fix for 23775 (three files changed for this)

2) Many OJI unit tests added.


git-svn-id: svn://10.0.0.236/trunk@73017 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:28:31 +00:00
rods%netscape.com
3031721539 minor fixes for reflow so textfield size correctly
Bug 42521, r=evaughan


git-svn-id: svn://10.0.0.236/trunk@73016 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:28:01 +00:00
beard%netscape.com
4fa1b03210 putting the JSClass* in the current global scope, and looking up superclass rereferences.
git-svn-id: svn://10.0.0.236/trunk@73015 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:22:55 +00:00
waterson%netscape.com
ab0925e6a8 Bug 21650. Add an assertion if the service manager is improperly re-entered. r=dbaron,warren
git-svn-id: svn://10.0.0.236/trunk@73014 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:02:48 +00:00
waterson%netscape.com
bb20e07c08 Bugs 21650, 42586. Remove nsISocketTransportService::LateInit(), move code that gets string bundles to lazily grab the bundle when it's needed. This avoids re-entrancy into the service manager which causes a leak. r=dbaron,warren
git-svn-id: svn://10.0.0.236/trunk@73013 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 02:02:04 +00:00
vidur%netscape.com
f8b5560630 Added Mac projects and make requirements from peter.vanderbeken@pandora.be. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@73012 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 01:55:42 +00:00
bryner%uiuc.edu
dfdbb96740 Bulletproofing fix for bug 41116. r=saari.
git-svn-id: svn://10.0.0.236/trunk@73011 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 01:54:20 +00:00
varada%netscape.com
b517c67e65 fix for bug#37180 -change nsIFileSpecWithUI to nsIFilePicker; r=scottip
git-svn-id: svn://10.0.0.236/trunk@73010 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 01:38:59 +00:00
sspitzer%netscape.com
0317e3c55d fix for #43548, and possibly #43392.
if internet config tells us the string is of zero length, set the 
out string to null.  r=mscott


git-svn-id: svn://10.0.0.236/trunk@73008 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 01:08:53 +00:00
rusty.lynch%intel.com
048f497f01 fix crasher on read-only filesystem (bug #43512)
-r=dveditz


git-svn-id: svn://10.0.0.236/trunk@73007 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 01:01:39 +00:00
law%netscape.com
f5c930b9a8 Bug 36658; adds urlwidgt dll/xpt to package list for windows
git-svn-id: svn://10.0.0.236/trunk@73006 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:57:23 +00:00
tao%netscape.com
e0f4b4416d Minimum set of langpack files.
git-svn-id: svn://10.0.0.236/trunk@73005 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:53:01 +00:00
saari%netscape.com
0bf1559e41 adding GetRootCommandDispatcher to nsPIDOMWindow for utility.
Needed for beta2+ bug 38673. r=hyatt


git-svn-id: svn://10.0.0.236/trunk@73004 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:42:21 +00:00
law%netscape.com
3ec75d6bd2 Bug 36658; patch submitted by Jesse Burris (JBurris@mmxi.com); adds urlwidget to component list; r=law
git-svn-id: svn://10.0.0.236/trunk@73003 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:36:00 +00:00
law%netscape.com
92fb4d990d Bug 36658; patch submitted by Jesse Burris (JBurris@mmxi.com); r=law
git-svn-id: svn://10.0.0.236/trunk@73002 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:31:24 +00:00
kmcclusk%netscape.com
6e1642ddc9 Nested divs with overflow now correctly position their child divs which have negative translations (patch from Robert O'Callahan) b=41153 r=attinasi@netscape.com tested on WIN32, Linux
git-svn-id: svn://10.0.0.236/trunk@73001 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:27:12 +00:00
jst%netscape.com
52bb73928e Fixing nsbeta2+ bug 33477, completing (more or less) the DOM Level 2 NamedNodeMap implementation, this includes modifying the XML content sink to properly pass attribute prefixes to the content objects. r=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@73000 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:21:32 +00:00
attinasi%netscape.com
37da4e4434 Additional BuildID parsing needed by Bindu. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@72999 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:18:09 +00:00
inaky.gonzalez%intel.com
adbc59c7c4 Bug #39323. Change nsSoftwareUpdate::mMasterListener to be a
dynamically allocated object instead of a member, so we don't have to
do ugly tricks AddRefing it manually not to get it destroyed (and thus
segfaulting). r=waterson,dvedit a=dvedit


git-svn-id: svn://10.0.0.236/trunk@72998 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:14:22 +00:00
endico%mozilla.org
4739b31161 fix subject on confirmation mail
git-svn-id: svn://10.0.0.236/trunk@72997 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:10:34 +00:00
rogerl%netscape.com
4587e4f98f Added support for 'debugger' as a statement. (Rob made me)
git-svn-id: svn://10.0.0.236/trunk@72996 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:08:10 +00:00
sgehani%netscape.com
5e5606e05e Subdir in Linux installer tarball. (nsbeta2+)
[b=39735; r=ssu]


git-svn-id: svn://10.0.0.236/trunk@72995 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:04:24 +00:00
mscott%netscape.com
e6f27ed02d Bug #10802 --> register mime as a message/rfc822 to */* converter.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72994 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-23 00:00:52 +00:00
attinasi%netscape.com
aaba2428f9 When the PresShell is notified that a styleshet's state has changed, it now notifies the StyleSet so it can rebuild the rule processors. Part of fix for b=38026 that I missed checking in before (r=karnaze)
git-svn-id: svn://10.0.0.236/trunk@72993 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:58:03 +00:00
ftang%netscape.com
34555304c6 fix bug 35076. r=gagan add UCS2toUTF8 conversion before assign UTF8 back to nsString
git-svn-id: svn://10.0.0.236/trunk@72992 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:53:21 +00:00
ducarroz%netscape.com
9efa70383e Fix for bug 41137. Add support for mailing list. R=alecf
git-svn-id: svn://10.0.0.236/trunk@72991 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:47:16 +00:00
waterson%netscape.com
d0a0fc5cc4 Bug 41534. Fix 'style' attribute on XUL elements; use nsXULAtoms instead of hard-coded atoms. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72990 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:29:43 +00:00
dveditz%netscape.com
3a162a7ca2 removing obsolete files
git-svn-id: svn://10.0.0.236/trunk@72989 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:18:56 +00:00
av%netscape.com
c45a57b7cb Addressing 41197, r=serge
git-svn-id: svn://10.0.0.236/trunk@72988 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:17:50 +00:00
dveditz%netscape.com
a204e818a3 removing obsolete files. These are already not part of the build, but people keep editing them as they match patterns in global chrome cleanup sweeps
git-svn-id: svn://10.0.0.236/trunk@72987 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:17:12 +00:00
law%netscape.com
69b71eb39d Fix for 42384; make sure to deallocate using right method; r=bryner
git-svn-id: svn://10.0.0.236/trunk@72986 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:17:03 +00:00
chuang%netscape.com
98ddb5a878 Bug 43134 Dragging scrollbar thumb in the threadPane initiates a drag, fix the address book part. r=putterman
git-svn-id: svn://10.0.0.236/trunk@72985 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:15:08 +00:00
terry%mozilla.org
981fe96b56 TripleDB has been completely rewritten. Now requires Sleepycat Berkeley DB.
git-svn-id: svn://10.0.0.236/trunk@72984 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:11:37 +00:00
alecf%netscape.com
4cca076194 polish for #33101 contributed by
Josh Soref <soref@wam.umd.edu>
thanks timeless!
r=alecf


git-svn-id: svn://10.0.0.236/trunk@72983 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:08:07 +00:00
alecf%netscape.com
9629770f21 update paths to mailWidgets.xml for #33101 r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@72982 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 23:04:14 +00:00
tao%netscape.com
c6136ee1ce 41289: Proivde UI in the Browser (View | International Web Content) to
langpack download page.r=jbetak


git-svn-id: svn://10.0.0.236/trunk@72981 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:59:46 +00:00
rginda%netscape.com
0ffbfef04f -- Chatzilla only --
fix for 42947 and 43414 and an unreported regression with the view buttons


git-svn-id: svn://10.0.0.236/trunk@72980 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:57:09 +00:00
alecf%netscape.com
3020a9f247 oops, back out a debugging statement (doesn't affect release build)
git-svn-id: svn://10.0.0.236/trunk@72979 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:53:06 +00:00
alecf%netscape.com
83983a7bb3 pre-select the search folder when brought up from the 3-pane UI, for #33101
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72978 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:52:05 +00:00
av%netscape.com
ec53ea8c95 Part of 23667 fix, r=sean@beatnik.com
git-svn-id: svn://10.0.0.236/trunk@72977 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:51:36 +00:00
dbaron%fas.harvard.edu
38aa3f85f2 Fix leak of a string. r=waterson
git-svn-id: svn://10.0.0.236/trunk@72976 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:51:05 +00:00
morse%netscape.com
b44d6f0356 bug 43451, crash bringing up image viewer
git-svn-id: svn://10.0.0.236/trunk@72975 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:50:19 +00:00
dbaron%fas.harvard.edu
16f95fc441 Fix leak of an atom. r=waterson
git-svn-id: svn://10.0.0.236/trunk@72974 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:49:44 +00:00
dbaron%fas.harvard.edu
e01c1a7a60 Fix leak of nsInputDimensionSpec. r=waterson
git-svn-id: svn://10.0.0.236/trunk@72973 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:49:02 +00:00
alecf%netscape.com
3ea36ac882 move mailWidgets.xml into content - remove from skin
for #33101 r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72972 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:42:25 +00:00
alecf%netscape.com
d98c5ed0b7 move mailWidgets.xml out of skin and into content
(per security requirements) so search (#33101) will keep working


git-svn-id: svn://10.0.0.236/trunk@72971 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:38:24 +00:00
mscott%netscape.com
eca3622e2e 10802 --> implement open attachment
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@72970 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:37:22 +00:00
mscott%netscape.com
a3054b7102 Bug #10802 --> implement open attachment
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@72969 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:36:41 +00:00
av%netscape.com
f81e62f45e Part of 23667 fix, r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72968 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:36:37 +00:00
mscott%netscape.com
b5764b3e7d Bug #10802 --> add new interface for fetch mime part
which is only implemented by imap currently...this helps
free up the OpenAttachment name space that this method was
hogging before =).
modify the signature of open attachment to match my needs
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@72967 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:36:06 +00:00
ddrinan%netscape.com
02fa74a0b6 Changed version to 1.2
git-svn-id: svn://10.0.0.236/trunk@72966 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:21:16 +00:00
morse%netscape.com
c507956149 undo change that caused clipping in cookie pref panel
git-svn-id: svn://10.0.0.236/trunk@72965 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:20:11 +00:00
morse%netscape.com
66635ad512 undo change that caused clipping in wallet pref panel
git-svn-id: svn://10.0.0.236/trunk@72964 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:19:36 +00:00
morse%netscape.com
9f16c3ff39 bug 42774, changed security wording, coded=verah, r=morse
git-svn-id: svn://10.0.0.236/trunk@72963 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:17:48 +00:00
sspitzer%netscape.com
e631459f52 work for bug #38374 helperApps.rdf is now mimeTypes.rdf. use the file locator to get the mimeTypes file. fix the unix implementation of nsOSHelperAppService.cpp to go to the base class to determine what application to launch. r=mscott
git-svn-id: svn://10.0.0.236/trunk@72962 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:17:25 +00:00
morse%netscape.com
20528a066d bug 43452, can't get to cookie viewer from prefs panel, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@72961 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:16:55 +00:00
mscott%netscape.com
def6033604 Bug #10802 --> add open attachment action type
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@72960 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:16:07 +00:00
morse%netscape.com
75c3a6876c bug 43201, columns not aligned, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72959 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:15:38 +00:00
sspitzer%netscape.com
d2c8b6c51c work for bug #38374
helperApps.rdf is now mimeTypes.rdf.
use the file locator to get the mimeTypes file.
fix the unix implementation of nsOSHelperAppService.cpp
to go to the base class to determine what application to launch.

r=mscott


git-svn-id: svn://10.0.0.236/trunk@72958 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:14:53 +00:00
mkaply%us.ibm.com
ac7a4c5ce3 #40177
r=cls, a=brendan
OS/2 bring up - need IMPORT_LIBS on OS/2


git-svn-id: svn://10.0.0.236/trunk@72957 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:11:45 +00:00
mkaply%us.ibm.com
2871a99309 #40177
r=cls, a=brendan
OS/2 bring up - copy dirent.h and getopt.h to the dist for VisualAge build


git-svn-id: svn://10.0.0.236/trunk@72956 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:10:43 +00:00
nhotta%netscape.com
67f0a6be64 Changed "force_ascii_search" to false as default, bug 5933, r=bienvenu,taka.
git-svn-id: svn://10.0.0.236/trunk@72955 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:07:32 +00:00
nhotta%netscape.com
74d2221f3b Hooked up charset converter and fixed a couple of bugs
(fixed charset passing to EncodeImap, GetImapCharsetParam to generate "CHARSET" param), bug 5933,r=bienvenu,taka.


git-svn-id: svn://10.0.0.236/trunk@72954 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:07:01 +00:00
ducarroz%netscape.com
e0d586af5d Fix for bug 43365. Avoid to divide by 0 when the tree doesn't have any row. R=hyatt
git-svn-id: svn://10.0.0.236/trunk@72953 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:06:38 +00:00
mscott%netscape.com
9ff01af610 Bug #10802 --> properly report the content type especially in the case of
attachments instead of always reporting "raw"
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72952 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:04:13 +00:00
attinasi%netscape.com
a33c356794 Daily run added for 6-20. Not part of build
git-svn-id: svn://10.0.0.236/trunk@72951 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:03:24 +00:00
andreas.otte%primus-online.de
ffab53289f small performance patch for SetDirectory from jst@netscape.com, r/a=gagan@netscape.com, a=waterson@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@72950 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 22:02:47 +00:00
bryner%uiuc.edu
a660cd8052 Fix bug 43494 - client.mk should stop if you had checkout
conflicts.  r=alecf.


git-svn-id: svn://10.0.0.236/trunk@72949 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 21:56:41 +00:00
vidur%netscape.com
dc8257a1fa Added Unix makefiles and incorporated Andreas Otte's changes for building on Linux. This is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@72948 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 21:41:37 +00:00
javi%netscape.com
0d6134438a Update SSMVersionString value.
git-svn-id: svn://10.0.0.236/trunk@72947 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 21:05:42 +00:00
cotter%netscape.com
aa6d326b2b Minor correction to View Certificate Details section.
git-svn-id: svn://10.0.0.236/trunk@72945 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 20:36:11 +00:00
endico%mozilla.org
3b54fdbe7c send error messages as mail to appropriate parties instead of to stdout
git-svn-id: svn://10.0.0.236/trunk@72944 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 20:00:14 +00:00
larryh%netscape.com
c67cc20fa5 BugZilla: 39942. PR_SetError() calls free()
git-svn-id: svn://10.0.0.236/trunk@72943 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 19:46:28 +00:00
hyatt%netscape.com
78554c2d8f Remove error-checking for bad XUL.
git-svn-id: svn://10.0.0.236/trunk@72942 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 19:34:29 +00:00
alecf%netscape.com
f39732b7d3 fix for assertions - toolbarseparator->separator
a=granrose


git-svn-id: svn://10.0.0.236/trunk@72941 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 18:44:14 +00:00
alecf%netscape.com
cdec49d0cd fix for #43469 - trouble creating a POP account
r=putterman
a=granrose


git-svn-id: svn://10.0.0.236/trunk@72940 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 18:33:42 +00:00
vidur%netscape.com
bd78ce0927 Updated to the new version of nsIPrivateDOMImplementation. We now get a base URL for our own URL resolution from the subject codebase principal. This checkin is for code that is not part of the Seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@72939 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 18:06:49 +00:00
javi%netscape.com
9d491e66f5 We need ssm_swap_bytes defined regardless of whether we're building on a
little endian machine.


git-svn-id: svn://10.0.0.236/trunk@72938 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 17:36:34 +00:00
bienvenu%netscape.com
43a9218387 try to fix build bustage on solaris
git-svn-id: svn://10.0.0.236/trunk@72936 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 14:37:17 +00:00
mkaply%us.ibm.com
2eaaa6d201 # 42637
r = mscott, a = brendan
OS/2 bring-up  - Used false instead of PR_FALSE


git-svn-id: svn://10.0.0.236/trunk@72935 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 14:25:27 +00:00
locka%iol.ie
165bf158bf Fix for incorrect cache checking. Checking in for Tomi.Leppikangas@oulu.fi
b=42505,r=adamlock


git-svn-id: svn://10.0.0.236/trunk@72934 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 14:18:03 +00:00
morse%netscape.com
c9469d0634 remove <div>, change suggested by hyatt, r=morse
git-svn-id: svn://10.0.0.236/trunk@72933 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 14:17:01 +00:00
mkaply%us.ibm.com
a5a6cc46e2 #42637
r=mkaply, a=brendan
OS/2 bring up - Make menus disappear when frame is clicked on


git-svn-id: svn://10.0.0.236/trunk@72932 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 14:00:16 +00:00
mkaply%us.ibm.com
186f173413 #42637
r=mkaply, a=brendan
OS/2 bring up - Make submenus appear


git-svn-id: svn://10.0.0.236/trunk@72931 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 13:59:05 +00:00
jefft%netscape.com
92cc0229f1 fixed bug 18293 - My ISP complains about not receiving a HELO command first; r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@72930 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 13:56:07 +00:00
bienvenu%netscape.com
70517dd15d fix build warning 14653
git-svn-id: svn://10.0.0.236/trunk@72929 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 13:55:44 +00:00
dcone%netscape.com
1ac6576e79 added a new file to the make for the print options. Effects windows only. r=KMcCluskey b=36976
git-svn-id: svn://10.0.0.236/trunk@72928 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 13:39:09 +00:00
dcone%netscape.com
26f1085525 Added an IDL file to the make. Effects Windows build only. r=KMcCluskey b=36796
git-svn-id: svn://10.0.0.236/trunk@72927 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 13:36:45 +00:00
jst%netscape.com
cc6b0ad6cd Fixing linux build bustage introduced by rich.burridge@sun.com. r=andreas.otte@primus-online.de
git-svn-id: svn://10.0.0.236/trunk@72926 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 12:29:14 +00:00
leaf%mozilla.org
6ec92428cb Automated update
git-svn-id: svn://10.0.0.236/trunk@72925 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 11:00:11 +00:00
rich.burridge%sun.com
1c219936b0 Fix to allow Mozilla to build/run on the Solaris Intel platform with
Sun native compilers (SC 5.0 and Workshop 6 aka Forte). The two
xptc...uniish_x86.cpp files are forced to be compiled optimised to
generate the correct assembly code.
r=mccabe@netscape.com a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@72924 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 10:58:06 +00:00
cls%seawood.org
4ad72b621b *sigh*. VPATH is seeing the old .o in unix for the non-objdir builds that recently ran so we need to remove it.
git-svn-id: svn://10.0.0.236/trunk@72923 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 09:23:09 +00:00
mscott%netscape.com
0f0df2f5bc maybe this wasn't the breakage...I was just backing out the makefile too quickly. linux went greeen
before this change went in the build.


git-svn-id: svn://10.0.0.236/trunk@72922 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:53:11 +00:00
mscott%netscape.com
cd1188e9a4 backing out dauphin's fix for my objdir breakage as it seems to break non-objdir linux builds.
git-svn-id: svn://10.0.0.236/trunk@72921 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:46:18 +00:00
ben%netscape.com
754a08046f fix call palcement, suggested by jag on IRC, r=me
git-svn-id: svn://10.0.0.236/trunk@72920 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:43:41 +00:00
pinkerton%netscape.com
0017dac901 fix leaked timer, bug 28226, r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@72919 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:42:18 +00:00
pinkerton%netscape.com
d3b1d2fab8 Adding drag auto-scrolling to trees. bug 28226, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72918 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:41:49 +00:00
pinkerton%netscape.com
e28bd7bc82 Adding drag auto-scrolling to trees, bug#28226, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72917 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:41:16 +00:00
pinkerton%netscape.com
c68de33028 Add drag auto-scrolling to trees. bug#28226, r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@72916 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:40:37 +00:00
cls%seawood.org
b5963d1ade Prepend additional paths to LD_LIBRARY_PATH rather than overriding it.
Pass ConfigureEnvArgs to make.


git-svn-id: svn://10.0.0.236/trunk@72915 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 08:14:54 +00:00
cls%seawood.org
4adca1d390 Fixed objdir bustage. r=bryner
git-svn-id: svn://10.0.0.236/trunk@72914 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:52:35 +00:00
ben%netscape.com
de5b7895b3 fix assert on startup
git-svn-id: svn://10.0.0.236/trunk@72913 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:43:40 +00:00
Peter.VanderBeken%pandora.be
8fe9d99bb1 Use StringList (instead of hashmap) for namespace URIs. Not part of build yet. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@72912 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:30:07 +00:00
Peter.VanderBeken%pandora.be
2faa5c64d3 Fix UNICODE_CHAR bustage. Not part of build yet. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@72911 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:29:20 +00:00
Peter.VanderBeken%pandora.be
af1ffa59d8 Remove include workaround. Not part of build yet. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@72910 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:27:54 +00:00
mscott%netscape.com
c7232c80dc Bug #10802 --> expose load types to load info class so callers can set the load type
this is needed to implement things like open attachment so we can make the doc shell
think a user click happened when it talks to the uriloader.

I removed two boolean fields which were representing two load types. Simplified the api by allowing you
to pass in any of our load types.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@72909 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 07:22:23 +00:00
mscott%netscape.com
374400d4d9 Bug #38374 --> we were throwing an assertion in correctly because we couldn't create a content viewer. This is
actually an okay case, we'll later try to fire a helper app in this condition. No need to assert.

r=valeski


git-svn-id: svn://10.0.0.236/trunk@72908 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:55:10 +00:00
ben%netscape.com
8f13170c10 classic skin work
git-svn-id: svn://10.0.0.236/trunk@72907 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:49:43 +00:00
morse%netscape.com
6c6c5ea322 fix bugs 42298 and 42299, wallet broken on mac, r=rjc
git-svn-id: svn://10.0.0.236/trunk@72906 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:47:34 +00:00
mscott%netscape.com
f3b76591bd add new files to mac project
git-svn-id: svn://10.0.0.236/trunk@72905 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:39:49 +00:00
mscott%netscape.com
09fc8199e6 add new files to idl project.
git-svn-id: svn://10.0.0.236/trunk@72904 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:39:33 +00:00
mscott%netscape.com
8778a786e8 export the idl files for exthandler
git-svn-id: svn://10.0.0.236/trunk@72903 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:38:45 +00:00
morse%netscape.com
1b667ee1ea update wallet tables, not part of build
git-svn-id: svn://10.0.0.236/trunk@72902 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:31:58 +00:00
mscott%netscape.com
20c904f160 Start linking with exthandler static lib.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72901 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:26:05 +00:00
mscott%netscape.com
0fef56a4c7 Throw the switch and start building exthandler on unix. Not actually called by anything yet.
Bug #38374 and #30157
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72900 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:25:45 +00:00
mscott%netscape.com
29f9399b0a Add nsHelperAppRDF.h to the build.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72899 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:24:50 +00:00
mscott%netscape.com
beb4dfc2a4 Throw the switch and start building the exthandler directory on windows. None of this code being called yet.
this if for Bug #38374 and #30157 (launch external applications and launch using default protocol handlers)
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72898 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:24:01 +00:00
alecf%netscape.com
ee07919d75 fix for 43134 r=putterman
git-svn-id: svn://10.0.0.236/trunk@72897 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:20:14 +00:00
mscott%netscape.com
ffe8c6543d not part of the build!!!
fixes to get this buildling on the mac


git-svn-id: svn://10.0.0.236/trunk@72896 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:04:23 +00:00
mscott%netscape.com
970ba5efdb not part of the build!!!
fixes to get this building on the mac.


git-svn-id: svn://10.0.0.236/trunk@72895 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:04:06 +00:00
ben%netscape.com
b4d8067d91 fix prefwindow js errors
git-svn-id: svn://10.0.0.236/trunk@72894 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:03:09 +00:00
ben%netscape.com
6b36362463 fix prefwindow js errors, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72893 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 06:03:02 +00:00
pierre%netscape.com
27b7750cd1 #31136 (Rename prefs from "browser.xxx" to "browser.display.xxx"). Final and trivial touch to the larger fix from mcafee.
git-svn-id: svn://10.0.0.236/trunk@72892 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:41:11 +00:00
cmanske%netscape.com
290fb40fb7 Implement switching betweeen TH and TD elements for table editing. b=20973, r=jfrancis, akkana
git-svn-id: svn://10.0.0.236/trunk@72891 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:39:54 +00:00
pierre%netscape.com
f74c146d92 #12403 "border-style: hidden should force border-width: 0". Fixed RecalcData() to handle 'hidden' similarly to 'none'. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@72890 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:38:26 +00:00
rpotts%netscape.com
d40c34e0a8 DocShell cleanup. Removed the implementation of the unused nsIDocSHell::SetDocument() method and moved the implementation responsibility to the nsIContentViewer
git-svn-id: svn://10.0.0.236/trunk@72889 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:38:07 +00:00
radha%netscape.com
228d30b9de More code for feature bug 36547. CODE NOT PART OF TEH BUILD. reviewer will be provided when the feature is enabled.
git-svn-id: svn://10.0.0.236/trunk@72888 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:36:13 +00:00
pierre%netscape.com
5f1fee244c #42325 "Won't show page on www.teamtalk.com". Fix the parsing of ROWS="*%" in FRAMESETs. r=pollmann.
git-svn-id: svn://10.0.0.236/trunk@72887 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:32:56 +00:00
pierre%netscape.com
59320e5d39 #42029 "Dynamic use of the clip property is causing repaint problems". Make the clip area coordinates conform to the latest spec. r=attinasi.
git-svn-id: svn://10.0.0.236/trunk@72886 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:28:36 +00:00
cmanske%netscape.com
301d82ee01 Checkin for sfraser: Fix document-load listener to work when loading URL into an existing Composer window. b=41584, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@72885 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:24:42 +00:00
attinasi%netscape.com
b50c868ad4 Eliminated warnings from recent checkin (trivial changes).
git-svn-id: svn://10.0.0.236/trunk@72884 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:14:32 +00:00
mscott%netscape.com
b51a2c172a Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

oops i reall don't want this file...take it back.


git-svn-id: svn://10.0.0.236/trunk@72883 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 05:06:02 +00:00
mscott%netscape.com
abe4af79de Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

add manifest file for the mac


git-svn-id: svn://10.0.0.236/trunk@72882 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:59:45 +00:00
cmanske%netscape.com
c17dd40810 Checking for brade: Use PreventDefault instead of returning NS_ERROR_BASE to stop event processing in mouse listners. b=42510, r=cmanske
git-svn-id: svn://10.0.0.236/trunk@72881 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:54:55 +00:00
mscott%netscape.com
baac52dea7 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

More mac file updates.


git-svn-id: svn://10.0.0.236/trunk@72880 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:41:36 +00:00
mcafee%netscape.com
d5a767b7c7 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@72879 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:26:39 +00:00
rhp%netscape.com
dd0ef651da Adding COOL Auth to ABSync - Bug #: 43022 - r: jefft
git-svn-id: svn://10.0.0.236/trunk@72878 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:21:43 +00:00
mcafee%netscape.com
710e85fe09 Contributed by Ken Estes <kestes@staff.mail.com>. Not part of normal mozilla build.
git-svn-id: svn://10.0.0.236/trunk@72877 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:17:19 +00:00
ben%netscape.com
9149f0da73 appearance fixes for browser main window (classic skin), expands upon german/hangas' earlier work.
git-svn-id: svn://10.0.0.236/trunk@72876 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 04:03:35 +00:00
tao%netscape.com
b65e8650fd 41054: Bundle 2-3 language packs with Seamonkey.r=jbetak.
git-svn-id: svn://10.0.0.236/trunk@72875 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 03:38:12 +00:00
tao%netscape.com
b52dc9675c 41054: Bundle 2-3 language packs with Seamonkey. r=jbetak.
git-svn-id: svn://10.0.0.236/trunk@72874 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 03:36:02 +00:00
mscott%netscape.com
351bcb91e4 Bug #10802 --> for open attachment, the mime converter needs to remember the
content type of the part is about to output.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@72873 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 03:25:22 +00:00
cmanske%netscape.com
5b42cf3b3e Changes to <tree> usage for lists to conform to new XUL requiring <treecolgroup>. b=30511, r=bryner. Table editing xul/js work for bug 20973, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@72872 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 03:13:08 +00:00
cmanske%netscape.com
f84202a2dd Simple comment change for clarity relating to table editing. b=20973, r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@72871 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 03:09:19 +00:00
tao%netscape.com
8912b6beee Use MOZ_LANGPACKS to control whether to build subdirs.
git-svn-id: svn://10.0.0.236/trunk@72870 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 02:52:03 +00:00
pollmann%netscape.com
5979bfb8c3 Bug 41585: Don't chop of query string when POSTing forms, only when GETting them r=harishd
git-svn-id: svn://10.0.0.236/trunk@72869 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 02:49:01 +00:00
pollmann%netscape.com
abe0bd1dd3 Bug 23571: Send an onchange event when a checkbox is (un)checked r=harishd
git-svn-id: svn://10.0.0.236/trunk@72868 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 02:46:53 +00:00
mcafee%netscape.com
4ab84e10d6 Adding PSM menu item to debug menu, localizing Composer test page menu (31521). r=matt, cmanske
git-svn-id: svn://10.0.0.236/trunk@72867 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:56:43 +00:00
bryner%uiuc.edu
4d12825f17 Fixing bug 15555. r=danm.
git-svn-id: svn://10.0.0.236/trunk@72866 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:39:40 +00:00
ben%netscape.com
1a32d9adc2 [classic skin] file organisation tango (share securityOverlay betw. platforms, fix classic skin startup failure by telling css file to get icons from right place)
git-svn-id: svn://10.0.0.236/trunk@72865 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:34:06 +00:00
javi%netscape.com
cf33ce111f Fix unicode conversion for win32 so that p12 export/import works again.
git-svn-id: svn://10.0.0.236/trunk@72864 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:28:03 +00:00
alecf%netscape.com
259f5d07b7 fix for #38027 - temporarily workaround broken html:selects by using a menulist and a hidden input
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72863 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:20:25 +00:00
cmanske%netscape.com
53059d96ce Fixed xul to use new treecolgroup in Composer main window b=30511 (by bryner, r=cmanske). Removed textfield in colorpicker - doesn't work, crashes in Linux b=41619, r=akkana
git-svn-id: svn://10.0.0.236/trunk@72862 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:13:28 +00:00
hyatt%netscape.com
b4bfe37959 Same bug as prev. checkin
git-svn-id: svn://10.0.0.236/trunk@72861 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 01:02:11 +00:00
shanjian%netscape.com
cb25c83080 Back out my previous change because the test failed on Linux.
Need to find out what's happening.


git-svn-id: svn://10.0.0.236/trunk@72860 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:54:43 +00:00
cls%seawood.org
8c810432fd Initial version. Bug #43357
git-svn-id: svn://10.0.0.236/trunk@72859 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:52:57 +00:00
evaughan%netscape.com
4445f1d95b Fix for dogfood bug #43206
git-svn-id: svn://10.0.0.236/trunk@72858 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:48:49 +00:00
danm%netscape.com
2972eb8e6e tracking change of name of window.content to _content. (bug 33650) r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72857 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:48:45 +00:00
hangas%netscape.com
e68d6e8c82 Fixing toolbar appearance on Classic Skin Mac, Win, Linux. Bug 41272. Written by German r=hangas
git-svn-id: svn://10.0.0.236/trunk@72856 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:48:41 +00:00
danm%netscape.com
0d626426f0 changing name of window.content to _content. bug 33650. r=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@72855 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:42:34 +00:00
larryh%netscape.com
288570b7b7 BugZilla: 43337. PR_GetPeerName() asserts on NT
git-svn-id: svn://10.0.0.236/trunk@72854 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:42:05 +00:00
anthonyd%netscape.com
4abc5bba4f bug fix for #40742
crasher in DrillDownToEndOfLine()
r:mjudge a:beppe precheckin test done


git-svn-id: svn://10.0.0.236/trunk@72853 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:41:42 +00:00
attinasi%netscape.com
8bfb7bdd72 Reversed the order of testing for link-elements so that the most common (anchors) are tested first. Update to earlier checkin.
git-svn-id: svn://10.0.0.236/trunk@72852 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:41:25 +00:00
cata%netscape.com
20be06a0d4 Turning on charset override by default. r=nhotta a=ftang bug #41620.
git-svn-id: svn://10.0.0.236/trunk@72851 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:41:02 +00:00
bryner%uiuc.edu
cd180f189c First part of fix for 42345. Also fixes 42035. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@72850 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:39:49 +00:00
hyatt%netscape.com
b4f657bd5d XBL groundwork for 41145. r=ben
git-svn-id: svn://10.0.0.236/trunk@72849 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:36:19 +00:00
mcafee%netscape.com
14f60387b7 History was loading tasksOverlay.xul from the wrong place. (43043) r=akkana,jrgm
git-svn-id: svn://10.0.0.236/trunk@72848 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-22 00:07:42 +00:00
vidur%netscape.com
d9c3fc48fb Fix for bug 42278. Thought I'd got it with my prior checkin, but didn't notice rbs@maths.uq.edu.au's prior checkin to switch the namespace string literals. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72847 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:59:21 +00:00
beard%netscape.com
b2ad6db1a4 JSClass support.
git-svn-id: svn://10.0.0.236/trunk@72846 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:58:17 +00:00
beard%netscape.com
36c74a5208 initial checkin, starting on a representation for JS2 classes.
git-svn-id: svn://10.0.0.236/trunk@72845 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:57:09 +00:00
vidur%netscape.com
756dc76c80 Fix for bug 38349. Implemented nsIDOMNode::CloneNode() and ImportNode() for XML and HTML documents as part of finishing out our DOM1 and DOM2 implementations. Cleanup of DOMImplementation::createDocument. r=jst
git-svn-id: svn://10.0.0.236/trunk@72844 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:56:52 +00:00
attinasi%netscape.com
7eb58b89d3 Fixed bug 6306: AREA and LINK elements are now treated like links when it comes to matching selectors. Cleaned up SelectorMatches as well by moving link-logic into new method. r=kmcclusk@netscape.com b=6306
git-svn-id: svn://10.0.0.236/trunk@72842 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:48:21 +00:00
shanjian%netscape.com
77c22fe3b4 #40734 URL wrap
r = ftang
do the line breaking using western rule (dominant space). If a CJK
char is found, back to 4051.


git-svn-id: svn://10.0.0.236/trunk@72841 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:33:50 +00:00
ddrinan%netscape.com
112cd9a345 Add new attribute id to socket status resource. Bug #39680
git-svn-id: svn://10.0.0.236/trunk@72840 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:31:28 +00:00
ddrinan%netscape.com
447ae6670e Checked in fix for bug# 39680
git-svn-id: svn://10.0.0.236/trunk@72839 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:26:53 +00:00
nhotta%netscape.com
ba83736aa1 Changed to apply UTF-8 to UCS2 conversion before assigning the string to nsString, bug 42873, r=cata.
git-svn-id: svn://10.0.0.236/trunk@72838 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:26:36 +00:00
gagan%netscape.com
274afa85cf Part fix for bug 35956. HTTP now has an API to turn off automatic gunziping. r=rjc
git-svn-id: svn://10.0.0.236/trunk@72836 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:18:12 +00:00
varada%netscape.com
fc227477f9 fix for bug #20183;warn before deleting addressbook r=mscott
git-svn-id: svn://10.0.0.236/trunk@72835 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:15:54 +00:00
shanjian%netscape.com
cb49b8d942 #40734 URL wrap
r = ftang
'<' and '>' should be treated as open and close quote, because
they are often used that way.


git-svn-id: svn://10.0.0.236/trunk@72833 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:07:34 +00:00
wtc%netscape.com
0fec63268c bug #42100, Carbon compatibility. r=gordon, saari, pinkerton, sfraser
git-svn-id: svn://10.0.0.236/trunk@72832 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:05:27 +00:00
shanjian%netscape.com
4cb5796071 #40734 URLs wrap
r = ftang
'<' and '>' should be treated as open and close quote, because they are
often used that way.


git-svn-id: svn://10.0.0.236/trunk@72831 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 23:04:25 +00:00
shanjian%netscape.com
6ba48000f9 #40463 Cannot type anything in Composer at selecting Auto-Detect menus
After a new charset dectector is selected, url should be reloaded.
r=sfraser


git-svn-id: svn://10.0.0.236/trunk@72830 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:59:59 +00:00
av%netscape.com
56e5653a55 Addressing #23667 patch by sean@beatnik.com, r=av, a=brendan
git-svn-id: svn://10.0.0.236/trunk@72829 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:57:17 +00:00
wtc%netscape.com
d0d24a7d8c Checked in IPv6 patch for OpenVMS from Colin Blake <colin@theblakes.com>.
git-svn-id: svn://10.0.0.236/trunk@72828 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:51:45 +00:00
ducarroz%netscape.com
fc14561611 Fix for bug 43222
git-svn-id: svn://10.0.0.236/trunk@72827 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:46:03 +00:00
leaf%mozilla.org
31353b21fa added mozilla/tools/elf-dynstr-gc to SeaMonkeyCore for smaller elf binaries
git-svn-id: svn://10.0.0.236/trunk@72826 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:42:31 +00:00
andreas.otte%primus-online.de
a481b30ea1 fix bug 42342, [regression} Text before ':' in URL is interpreted as protocol, r=Adam Lock, Scott Collins, a=Chris Waterson
git-svn-id: svn://10.0.0.236/trunk@72825 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:36:50 +00:00
rogerl%netscape.com
c263fddb6c Work to support 'this'.
git-svn-id: svn://10.0.0.236/trunk@72823 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:32:21 +00:00
dcone%netscape.com
df06ab5472 New interface definition for printer options. a=KMcCluskey
git-svn-id: svn://10.0.0.236/trunk@72821 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:21:34 +00:00
bryner%uiuc.edu
0c97e4d4cb Moving persistence-related methods from nsIXULWindow to
nsIWebBrowserChrome as a basis for fixing bug 15555.  r=valeski.


git-svn-id: svn://10.0.0.236/trunk@72820 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:05:28 +00:00
sspitzer%netscape.com
2e200ba0fb fix for #42216. don't migrate the remember password pref for a server.
git-svn-id: svn://10.0.0.236/trunk@72819 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 22:03:03 +00:00
alecf%netscape.com
343cfc160f fix for #42330 contributed by gemal@gemal.dk
r=alecf
a=waterson


git-svn-id: svn://10.0.0.236/trunk@72818 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:41:28 +00:00
alecf%netscape.com
3c73f4ee7c fix for #42346 contributed by gemal@gemal.dk
a=waterson
r=alecf


git-svn-id: svn://10.0.0.236/trunk@72817 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:39:43 +00:00
radha%netscape.com
02769e6ea5 Fix for bug # 41555 r=pollmann. Update SH with form values on reload too.
A fallout from one of the earlier checkins. THis should also fix another
bug pollmann has.


git-svn-id: svn://10.0.0.236/trunk@72816 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:33:17 +00:00
robinf%netscape.com
16b188fc34 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@72815 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:17:44 +00:00
alecf%netscape.com
3e155e7b77 hook up nsIMsgWindow and status feedback to search #33101
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72814 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:15:55 +00:00
robinf%netscape.com
1cf864a66e *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@72813 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:12:02 +00:00
ducarroz%netscape.com
911c02c5ee Fix for bug 31693. Disable UI element when a Send/Save is in process. R=putterman
git-svn-id: svn://10.0.0.236/trunk@72812 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:11:53 +00:00
alecf%netscape.com
6f73f586b5 move mail status bar into a common overlay so that it can be used elsewhere like search (#33101)
r=putterman


git-svn-id: svn://10.0.0.236/trunk@72811 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:11:34 +00:00
blizzard%redhat.com
df1e752a39 string library vs. gcc 2.7.2. Round 3. Fight!
git-svn-id: svn://10.0.0.236/trunk@72810 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:09:54 +00:00
wtc%netscape.com
d0c72e3f1e Removed unused makefile variable DSO_LDFLAGS.
Modified files: FreeBSD.mk, HP-UX.mk, Linux.mk, NEWS-OS.mk, NetBSD.mk,
OpenBSD.mk


git-svn-id: svn://10.0.0.236/trunk@72809 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:07:10 +00:00
dougt%netscape.com
641e13e99c removing lame asserts so you can see it work.
NOT PART OF BUILD - test app work


git-svn-id: svn://10.0.0.236/trunk@72808 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 21:05:39 +00:00
harishd%netscape.com
0afaf65820 Fix bugs
18480 (nsbeta2+) - Hack to contain stack over flow
patch=jst, r=harishd.

40216 (nsbeta2+) - Shouldn't deal with mInsideNoXXXTag memeber for NOLAYER ( ON  by default ).
patch=rginda, r=harishd.


git-svn-id: svn://10.0.0.236/trunk@72807 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:53:10 +00:00
ddrinan%netscape.com
0d3c2e325b Some bug fixes
git-svn-id: svn://10.0.0.236/trunk@72806 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:52:33 +00:00
harishd%netscape.com
5288903c8f Fix bug
40713 ( nsbeta2+ ) - Style should leak out of TABLE.

r=dbaron@fas.harvard.edu


git-svn-id: svn://10.0.0.236/trunk@72804 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:50:00 +00:00
attinasi%netscape.com
84978456a9 Implemented Style Context Data sharing, reducing the amount of memory used in style by about 40%. Performance will degrade by about 10%, that is being worked on now. b=39618 r=waterson
git-svn-id: svn://10.0.0.236/trunk@72803 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:44:59 +00:00
ddrinan%netscape.com
739d6e076c Must convert unicode to/from NBO/HBO on little endian systems
git-svn-id: svn://10.0.0.236/trunk@72802 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:43:30 +00:00
mscott%netscape.com
b07d95d06c Bug #38374 --> fix refcounting problem on the application field
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72801 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:38:52 +00:00
blizzard%redhat.com
3c719298b1 try to fix solaris
git-svn-id: svn://10.0.0.236/trunk@72800 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 20:22:55 +00:00
javi%netscape.com
134fb8be7d Give these files a license.
git-svn-id: svn://10.0.0.236/trunk@72798 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:38:03 +00:00
morse%netscape.com
6e18a41b73 fix bug 43227 error in mac menu, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@72797 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:36:33 +00:00
morse%netscape.com
96e56036bb fix bugs 43235,43241,42415, polish wallet editor, r=dbragg
git-svn-id: svn://10.0.0.236/trunk@72796 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:34:55 +00:00
blizzard%redhat.com
cb71cab2ab fix backwards check in GtkMozEmbedChrome::FindNamedBrowserItem as pointed out by Steven Work <steve@renlabs.com> r,a=brendan,waterson
git-svn-id: svn://10.0.0.236/trunk@72795 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:26:38 +00:00
chuang%netscape.com
74471ccdf1 Bug 32286 Exception Feature - Edit mailing list in address book, r=putterman
git-svn-id: svn://10.0.0.236/trunk@72794 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:25:45 +00:00
granrose%netscape.com
fb08825cd1 changing milestone from M16 to M17 in user agent string.
git-svn-id: svn://10.0.0.236/trunk@72793 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:23:51 +00:00
blizzard%redhat.com
867d6d38f4 fix for bug #42031. fix string leaks in moz remote code that I caused. r=waterson,scc a=waterson
git-svn-id: svn://10.0.0.236/trunk@72792 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:20:44 +00:00
cyeh%bluemartini.com
37dd6ebd32 Checkin for Bug 42851 'Use listbox with input for CC management on bug form'
contributed by dave@intrec.com (Dave Miller)


git-svn-id: svn://10.0.0.236/trunk@72791 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 19:03:45 +00:00
tao%netscape.com
e7c9b31277 Add langpacks.
git-svn-id: svn://10.0.0.236/trunk@72788 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:48:16 +00:00
chrisk%netscape.com
ad3c068fdf Added some comments and asserts
git-svn-id: svn://10.0.0.236/trunk@72781 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:12:02 +00:00
brendan%mozilla.org
ad1e1644ba Hoist loop invariant.
git-svn-id: svn://10.0.0.236/trunk@72780 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:03:34 +00:00
brendan%mozilla.org
fd75093332 Comment fixes.
git-svn-id: svn://10.0.0.236/trunk@72779 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:03:01 +00:00
tao%netscape.com
38c8ec60b9 Creating a placeholder for en-GB
git-svn-id: svn://10.0.0.236/trunk@72777 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 18:02:11 +00:00
brendan%mozilla.org
3d43822a6a Fix skip-one-frame-too-many backtrace lossage; update TODO.
git-svn-id: svn://10.0.0.236/trunk@72776 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 17:59:30 +00:00
nboyd%atg.com
b3f84fe9a2 Fix javadoc warning
git-svn-id: svn://10.0.0.236/trunk@72775 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 15:49:14 +00:00
cmanske%netscape.com
35ce501ebc Adding simple up, down, left, right arrow images for use by Composer Table Properties dialog (bug 20973) and also needed by prefs dialog. Changed editor CSS files to use these images. r=ben
git-svn-id: svn://10.0.0.236/trunk@72774 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:32:53 +00:00
Jerry.Kirk%Nexwarecorp.com
109c165e9a NOT PART OF BUILD - PHOTON ONLY
Simple for the Photon font name


git-svn-id: svn://10.0.0.236/trunk@72773 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:26:25 +00:00
brade%netscape.com
05541b0c69 don't let shift-keybinding work for new message, undo, redo, select all, cut, copy, paste (explicitly set shift="false") for bug #41989 (r=Pike,jst)
git-svn-id: svn://10.0.0.236/trunk@72772 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:26:16 +00:00
brade%netscape.com
85d8f0e5c2 don't let shift-keybinding work for open local, open remote, save, close, print, quit, find, find next, check spelling, bold, italic, underline (explicitly set shift="false") for bug #41989; r=jst, Pike
git-svn-id: svn://10.0.0.236/trunk@72771 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:20:42 +00:00
Jerry.Kirk%Nexwarecorp.com
478f158cba NOT PART OF BUILD - PHOTON ONLY
Small fix to remove GetCurrentSession method


git-svn-id: svn://10.0.0.236/trunk@72770 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:08:53 +00:00
bienvenu%netscape.com
cf68d00d31 fix running search twice, send notification on search done, add support for interrupting search , 33101 r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@72769 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 14:04:34 +00:00
dbragg%netscape.com
7a4c1b2e85 Fix for nsbeta2+ bug #40783 r=ssu
git-svn-id: svn://10.0.0.236/trunk@72768 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:43:37 +00:00
dbragg%netscape.com
0ab8a40f04 Fix for nsbeta2+ bug #37855 r=ssu
git-svn-id: svn://10.0.0.236/trunk@72767 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:43:07 +00:00
dbragg%netscape.com
b2bf67c3b3 Fix for nsbeta2+ bug #37848 r=ssu
git-svn-id: svn://10.0.0.236/trunk@72766 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:42:26 +00:00
locka%iol.ie
5df8ab853a NOT PART OF BUILD. Fixed a memory leak. Added a stop button. Added code to update the URL field when a page is loaded
git-svn-id: svn://10.0.0.236/trunk@72765 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:30:31 +00:00
locka%iol.ie
a0d9972be0 NOT PART OF BUILD. Created variant of NS_InitEmbedding that accepts an nsILocalFile object as a parameter
git-svn-id: svn://10.0.0.236/trunk@72764 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:19:12 +00:00
locka%iol.ie
7998f606b0 Added new enum for docshell tree items that own chrome content
git-svn-id: svn://10.0.0.236/trunk@72763 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:07:22 +00:00
locka%iol.ie
c1eb9afb8d NOT PART OF BUILD. Moved API declarations into nsEmbedAPI.h
git-svn-id: svn://10.0.0.236/trunk@72762 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:05:49 +00:00
locka%iol.ie
41b06f8880 NOT PART OF BUILD. Added exports for nsEmbedAPI.h, fixed a duff dependency rule
git-svn-id: svn://10.0.0.236/trunk@72761 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:05:21 +00:00
locka%iol.ie
0b2556aef4 NOT PART OF BUILD. Added preliminary header file for embedding API
git-svn-id: svn://10.0.0.236/trunk@72760 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 13:03:05 +00:00
locka%iol.ie
ab02ebf7ba Added nsIContextMenuListener to build
git-svn-id: svn://10.0.0.236/trunk@72759 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:50:38 +00:00
locka%iol.ie
d7fc50add6 New nsIContextMenuListener interface
git-svn-id: svn://10.0.0.236/trunk@72758 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:49:58 +00:00
locka%iol.ie
6d162b6454 Commented out both embedding hacks by default
git-svn-id: svn://10.0.0.236/trunk@72757 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:48:11 +00:00
brade%netscape.com
6a0493cc90 diff submitted by Josh Soref (soref@wam.umd.edu); add class and statusbar=true to progressmeter (a=waterson; r=sfraser) bug #41645
git-svn-id: svn://10.0.0.236/trunk@72756 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:42:24 +00:00
sdv%sparc.spb.su
4e33cfefc1 fix for bug=43290
git-svn-id: svn://10.0.0.236/trunk@72755 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 12:20:08 +00:00
mscott%netscape.com
0ca2097747 Bug #38374 --> NOT PART OF THE BUILD YET!!!!
more unix updates for helper application support


git-svn-id: svn://10.0.0.236/trunk@72754 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 08:37:32 +00:00
mscott%netscape.com
41fad92076 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

unix updates


git-svn-id: svn://10.0.0.236/trunk@72753 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 08:34:58 +00:00
mscott%netscape.com
e4964f6ab4 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

export our rdf vocabulary header file.


git-svn-id: svn://10.0.0.236/trunk@72752 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 08:29:47 +00:00
mscott%netscape.com
04fe2e2da5 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

Landing of the RDF data source which keeps track of all the user specified mime type information.
Landing implementation of user over ride information when determining what helper app to run. now we'll
check the information stored in the data source first. If we don't ahve any over-ride information, then
fall back to the OS defaults.


git-svn-id: svn://10.0.0.236/trunk@72751 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 08:29:13 +00:00
radha%netscape.com
b3b4c14d9e New methods in nsIwebNavigation
git-svn-id: svn://10.0.0.236/trunk@72750 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 08:04:00 +00:00
endico%mozilla.org
b8a1d4b946 forgot the reporter and URL fields
git-svn-id: svn://10.0.0.236/trunk@72749 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 07:52:25 +00:00
endico%mozilla.org
df67d5c475 was converting from dbid to login + real name. Remove the real name
git-svn-id: svn://10.0.0.236/trunk@72748 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 07:50:16 +00:00
radha%netscape.com
2e86ea57c7 Dummy implementation for 2 new methods in nsIWebNavigation. fix burning tree.
git-svn-id: svn://10.0.0.236/trunk@72747 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 07:28:45 +00:00
BlakeR1234%aol.com
5f3c82bbcc Fix for bug 40591. r=scc, alecf a=pink
git-svn-id: svn://10.0.0.236/trunk@72746 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 07:08:10 +00:00
alecf%netscape.com
e420477f3c fix solaris bustage
git-svn-id: svn://10.0.0.236/trunk@72745 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:57:03 +00:00
BlakeR1234%aol.com
55034c0981 Fix for bug 43261, just a typo.
git-svn-id: svn://10.0.0.236/trunk@72744 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:43:00 +00:00
radha%netscape.com
48f3b6c24f More checkins for feature bug 36547. r=self(module owner) All code in this checkin are unused
ie., feature  not enabled.


git-svn-id: svn://10.0.0.236/trunk@72743 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:40:08 +00:00
BlakeR1234%aol.com
d1c84c620c Fix for bug 43263, just a typo.
git-svn-id: svn://10.0.0.236/trunk@72742 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:39:35 +00:00
alecf%netscape.com
8111b9a788 extra files I missed in the last checkin r=putterman
git-svn-id: svn://10.0.0.236/trunk@72741 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:35:58 +00:00
alecf%netscape.com
18d0a94766 move out threadpane-specific code so it can be reused in the search dialog for #33101 r=putterman
git-svn-id: svn://10.0.0.236/trunk@72740 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:34:59 +00:00
mscott%netscape.com
cdad905fd9 Bug #38374 --> add application and user preferred handle action to mime info.
I'm going to be storing this information in the helper app code.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@72739 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:34:43 +00:00
mscott%netscape.com
d92552bbfe Bug #33768 --> add MakeUnqiue to nsIFile. this is actually dougt's code.
r=mscott


git-svn-id: svn://10.0.0.236/trunk@72738 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 06:32:45 +00:00
mscott%netscape.com
61621593ad Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD!!!!!!!!!)
code review will come when this is done and gets turned on.

RDF header file which defines our vocabulary for the mime mapping data source.


git-svn-id: svn://10.0.0.236/trunk@72737 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 05:27:29 +00:00
scc%mozilla.org
a6b40ede8b fix for commercial bustage on Mac (adding |operator const CharT*() const| to |basic_nsLiteralString|). fix for blizzards linux changes needing working |Substring|. r=beard,syd
git-svn-id: svn://10.0.0.236/trunk@72736 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 05:13:10 +00:00
dmose%mozilla.org
1ffa061258 made bindname an attribute of nsILDAPConnection. folded all remaining code from ldapSearch.cpp into various parts of nsLDAPChannel in preparation for pushing threading down out of nsLDAPChannel and into the core SDK wrapper classes (nsILDAP{Connection,Operation,Message}). added an (as-yet unimplemented) toString method to nsILDAPMessage; some of the code in nsLDAPChannel should eventually move there. a=r=(notbuilt)
git-svn-id: svn://10.0.0.236/trunk@72735 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 04:44:58 +00:00
endico%mozilla.org
ce7d9ee170 oops, bonsai was slow because the data dir had filled up with 27K temp files. lets delete them when we're done
git-svn-id: svn://10.0.0.236/trunk@72734 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 04:02:53 +00:00
pinkerton%netscape.com
5e191add7c adding nsIDragTracker.idl bug #28226
git-svn-id: svn://10.0.0.236/trunk@72733 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 03:46:22 +00:00
pinkerton%netscape.com
0ae9c3cd2f add NS_IS_DRAG_EVENT macro r=saari, bug 28226
git-svn-id: svn://10.0.0.236/trunk@72732 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 03:43:40 +00:00
pinkerton%netscape.com
5105a50cb9 add nsIDragTracker.idl bug #28226
git-svn-id: svn://10.0.0.236/trunk@72731 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 03:38:07 +00:00
pinkerton%netscape.com
ed0e0e5a67 add nsIDragTracker.idl
git-svn-id: svn://10.0.0.236/trunk@72730 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 03:37:32 +00:00
pinkerton%netscape.com
92fbe0bbe0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@72729 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 03:36:59 +00:00
waterson%netscape.com
2658ae08e5 Add regression tests for 22413, 27211, 39211, and 41521.
git-svn-id: svn://10.0.0.236/trunk@72727 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:37:05 +00:00
waterson%netscape.com
d31aa06379 Bugs 22413, 27211, 39211. On nsCSSFrameConstructor::ContentRemoved(), check the *child* instead of the parent to see if we need to reframe. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72726 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:35:28 +00:00
dougt%netscape.com
15900fdb04 check for null.
git-svn-id: svn://10.0.0.236/trunk@72725 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:29:08 +00:00
alecf%netscape.com
b693bd1379 add support for searching twice.... clear the scope term list between every search - #33101 r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@72724 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:17:14 +00:00
scc%mozilla.org
0b0baaac67 added blizzards tests for problems with |Substring|
git-svn-id: svn://10.0.0.236/trunk@72723 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:06:29 +00:00
scc%mozilla.org
8e52cd329b had to add a bunch of libraries to get the debug target to build
git-svn-id: svn://10.0.0.236/trunk@72722 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:05:54 +00:00
hyatt%netscape.com
2d0da42def Fix for 42806. r=waterson
git-svn-id: svn://10.0.0.236/trunk@72721 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 02:02:24 +00:00
av%netscape.com
5651f628be Filtering plugins from old installation down to three as per decision in 23856, r=amusil
git-svn-id: svn://10.0.0.236/trunk@72720 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:44:55 +00:00
mkaply%us.ibm.com
991b76195e #42637
r=mkaply, a=brendan
OS/2 bring up - Need io.h for GCC build


git-svn-id: svn://10.0.0.236/trunk@72719 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:35:21 +00:00
amusil%netscape.com
41f4fe3176 Turn on wchar_t
git-svn-id: svn://10.0.0.236/trunk@72718 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:31:09 +00:00
ben%netscape.com
81034ad1a4 Fix mac classic skin to have correct toolbar and other asstd main window styles.
git-svn-id: svn://10.0.0.236/trunk@72717 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:29:43 +00:00
sspitzer%netscape.com
ec061ef297 fix for #40051. thanks to Henrik Gemal <gemal@gemal.dk> for the patch.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@72716 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:17:32 +00:00
sspitzer%netscape.com
a5c5ec8bf1 Bug #38374 --> more updates for external helper application support.
r=mscott


git-svn-id: svn://10.0.0.236/trunk@72715 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:16:32 +00:00
dbaron%fas.harvard.edu
99d1cb0540 Slightly refine my previous fix for string assertions so things behave exactly as before. r=pollmann b=42936
git-svn-id: svn://10.0.0.236/trunk@72714 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:13:10 +00:00
javi%netscape.com
b868f2ab85 added files: mozilla/extensions/psm-glue/src/nsKeygenHandler.cpp
git-svn-id: svn://10.0.0.236/trunk@72713 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 01:02:44 +00:00
mkaply%us.ibm.com
a9e4b20c22 #40177
r=cls, a=brendan
OS/2 bring up - Change some hardcoded values into variable - remove some extra loops that OS/2 was going down.


git-svn-id: svn://10.0.0.236/trunk@72712 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:54:56 +00:00
dbaron%fas.harvard.edu
a2903880c8 Fix leak by continuing to enumerate. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72711 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:54:42 +00:00
dbaron%fas.harvard.edu
1e33476ff7 Fix string assertions. b=42936 code=jst,dbaron r=harishd
git-svn-id: svn://10.0.0.236/trunk@72710 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:53:34 +00:00
vidur%netscape.com
a86b544c90 Fix for bug 9392. document.plugins now aliases to window.navigator.plugins. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72709 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:53:26 +00:00
vidur%netscape.com
0962618074 Fix for bug 42278. Switched around positions of old REC-html40 namespace URI and new XHTML namespace URI in the table so that we do the reverse mapping from namespaceID to URI correctly. r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72708 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:49:22 +00:00
pavlov%netscape.com
4147bb60c2 moving ssl state icons from navigator to communicator. fix for bug 43175. r=valeski
git-svn-id: svn://10.0.0.236/trunk@72707 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:47:29 +00:00
ben%netscape.com
8febb91359 fix mac classic toolbars, 41272
git-svn-id: svn://10.0.0.236/trunk@72706 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:44:15 +00:00
javi%netscape.com
b640bf0549 Fixes for Bug #15623 and Bug #28430 r=thayes
psm-glue work for KEYGEN tag is in.

KEYGEN tag will work with PSM 1.2


git-svn-id: svn://10.0.0.236/trunk@72705 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:43:57 +00:00
vidur%netscape.com
26c84935a5 Fix for bug 42860. nsIScriptNameSpaceManager::RegisterGlobalName() now takes an additional IID parameter. If the IID is that of the nsIScriptObjectOwner interface, we assume it's an old-style idlc interface. Otherwise we try to wrap it using XPConnect. r=rginda
git-svn-id: svn://10.0.0.236/trunk@72704 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:42:59 +00:00
pollmann%netscape.com
31acca5c90 Bug 25300: Enable activation of buttons by the keyboard (space or enter) r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@72703 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:40:11 +00:00
bienvenu%netscape.com
2a7fc5b929 fix 31411 problems interrupting imap message load r=jefft
git-svn-id: svn://10.0.0.236/trunk@72702 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:34:43 +00:00
BlakeR1234%aol.com
b48bba9005 Fix for bug 43217, regression which caused Go menu to disappear. r=smfr, disttsc@bart.nl
git-svn-id: svn://10.0.0.236/trunk@72701 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:34:13 +00:00
joki%netscape.com
1dadc3af0b fix for 29517, prevent DOM event access from regular content to anonymous content inside a file control.
git-svn-id: svn://10.0.0.236/trunk@72700 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:23:28 +00:00
mkaply%us.ibm.com
bd6a9629de #40177
r=cls, a=brendan
OS/2 bring up - remove trailing slash


git-svn-id: svn://10.0.0.236/trunk@72699 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:21:57 +00:00
joki%netscape.com
948602adcc Part of fix for 38117, prevent scripts from running event handlers on windows from other domains. r:mstoltz
git-svn-id: svn://10.0.0.236/trunk@72698 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:21:50 +00:00
joki%netscape.com
04fd4c2598 Fix for bug 25117, check security when sizing/positioning/configuring windows. r:danm
git-svn-id: svn://10.0.0.236/trunk@72697 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:20:39 +00:00
mkaply%us.ibm.com
f44461554c #40177
r=cls, a=brendan
OS/2 bring up - fix some various build problems relating to nsinstall and SHELL


git-svn-id: svn://10.0.0.236/trunk@72696 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:16:45 +00:00
pavlov%netscape.com
3e6091c956 forgot this file...
patch from Scott Schram (scott@ruthie.com) to add css2/3 cursor support on unix (bug 38444) a=brendan


git-svn-id: svn://10.0.0.236/trunk@72694 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:11:42 +00:00
mkaply%us.ibm.com
9698e13717 # 42637
r = valeski, a = brendan
OS/2 bring-up  - PR_CALLBACK for VisualAge


git-svn-id: svn://10.0.0.236/trunk@72693 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:07:57 +00:00
ben%netscape.com
de15bb5971 install classic skin into chrome registry on installation, 41272
git-svn-id: svn://10.0.0.236/trunk@72692 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:06:44 +00:00
ben%netscape.com
e0a40aa060 forgot to add files
git-svn-id: svn://10.0.0.236/trunk@72691 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:06:07 +00:00
bryner%uiuc.edu
7ae1b28e6d Fixing bugs 33549, 34033. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@72690 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:05:55 +00:00
ben%netscape.com
85dc94eb23 fixing classic skin so that it doesnt hang on startup, improving back and forward buttons. b41272
git-svn-id: svn://10.0.0.236/trunk@72689 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:05:00 +00:00
chrisk%netscape.com
ac3e94b5b9 Oops - fixed the fix. The prototype now correctly unpacks into a
DHPublicKey structure.


git-svn-id: svn://10.0.0.236/trunk@72688 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-21 00:04:38 +00:00
beard%netscape.com
225060e4fa bug #42100, Carbon compatibility. r=gordon, saari, pinkerton, sfraser
git-svn-id: svn://10.0.0.236/trunk@72686 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 23:10:06 +00:00
rogerl%netscape.com
ae69e1c56c Changed use of Register to TypedRegister throughout.
git-svn-id: svn://10.0.0.236/trunk@72685 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:45:45 +00:00
rogerl%netscape.com
656a834b8a Support for TypedRegister
git-svn-id: svn://10.0.0.236/trunk@72684 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:44:46 +00:00
javi%netscape.com
5efdef3fe4 Don't block forever waiting for socket status to get created. Mozilla
may call that function after the connection is gone in which case the
socket status will not exist.


git-svn-id: svn://10.0.0.236/trunk@72683 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:39:24 +00:00
wtc%netscape.com
0d28d012f4 Bugzilla bug #40941: added assembly language implementation of atomic
routines for IA-64 Linux.  Thanks to David Mosberger <davidm@hpl.hp.com>
for the code review.
Modifies files: configure, configure.in, _linux.h, pr/src/md/unix/Makefile,
pr/src/md/unix/Makefile.in, pr/src/md/unix/objs.mk
Added files: os_Linux_ia64.s


git-svn-id: svn://10.0.0.236/trunk@72682 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 22:22:23 +00:00
larryh%netscape.com
5044d318b8 BugZilla: 42367. Fix copyright date, Original Code
git-svn-id: svn://10.0.0.236/trunk@72681 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 21:48:45 +00:00
brade%netscape.com
00a24d0d7e File Removed.
git-svn-id: svn://10.0.0.236/trunk@72680 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 21:19:10 +00:00
edburns%acm.org
10bd03fb23 bug=41197
r=av
a=waterson.

This checkin makes it possible to use the default plugin even
for Java.


git-svn-id: svn://10.0.0.236/trunk@72679 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 21:04:52 +00:00
brade%netscape.com
4888e028ce File Removed.
git-svn-id: svn://10.0.0.236/trunk@72678 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 21:00:52 +00:00
sspitzer%netscape.com
091011aaae Bug #38374 --> more updates for external helper application support.
(NOT PART OF THE BUILD) r=mscott


git-svn-id: svn://10.0.0.236/trunk@72677 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 20:57:21 +00:00
sspitzer%netscape.com
a30e941673 Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD) r=mscott
git-svn-id: svn://10.0.0.236/trunk@72676 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 20:43:54 +00:00
wtc%netscape.com
6f20b930cf Changed default host name to www.mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@72675 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 20:11:24 +00:00
mscott%netscape.com
2f7bb16fbd Bug #38374 --> more updates for external helper application support. (NOT PART OF THE BUILD)
code review will come when this is done and gets turned on.

Unix stub files for the OS helper app service implementation.

a=granrose


git-svn-id: svn://10.0.0.236/trunk@72670 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 18:22:47 +00:00
endico%mozilla.org
8e873af9e0 rename move.cgi to move.pl
git-svn-id: svn://10.0.0.236/trunk@72665 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 17:14:00 +00:00
chrisk%netscape.com
f773ad5402 Fix OID for DC AVAs - the root OID in RFC2247 is not different from
the root OID in RFC1274 - so the one we had was WRONG.
I don't know where it came from.


git-svn-id: svn://10.0.0.236/trunk@72664 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:31:31 +00:00
chrisk%netscape.com
0cffe12987 Add code for generation of SMIMEProfile and SMIMEKeyEncryptionPreference
git-svn-id: svn://10.0.0.236/trunk@72663 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:28:59 +00:00
chrisk%netscape.com
6d6ec2de90 First feeble attempt at fixing the problem that our definition of
Diffie-Hellman key parameters does not encompass all the optional
fields defined in RFC2459, section 7.3.2 (namely j and validationParams).

I added comments reminding us of the fact that PQGParams need to be
extended to hold these, and fixed the ASN1 prototype from its previous
totally broken status to one that decodes prime, subPrime and base
correctly, and skips the rest.

This avoids failure in public key extraction (which is part of verification)
with DH certs.


git-svn-id: svn://10.0.0.236/trunk@72662 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:22:36 +00:00
chrisk%netscape.com
7ff55a4d25 Fix problem where DH certs were always rejected when verifying them
for EMail encryption.
A Diffie-Hellman key needs to be tested for KU_KEY_AGREEMENT, not
KU_KEY_ENCIPHERMENT.


git-svn-id: svn://10.0.0.236/trunk@72661 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 16:15:32 +00:00
chrisk%netscape.com
4be6618598 Fixed bug in sequence printing code: array counter was overshooting by one
git-svn-id: svn://10.0.0.236/trunk@72660 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:35:17 +00:00
brade%netscape.com
57c4115007 fix returned error codes (as part of bug #42510)
git-svn-id: svn://10.0.0.236/trunk@72659 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:25:34 +00:00
brade%netscape.com
9f2a620177 call PreventDefault for key events which we want to "consume" (bug #42510); r=smfr
git-svn-id: svn://10.0.0.236/trunk@72658 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:23:43 +00:00
mkaply%us.ibm.com
330dd35387 #42637
r=mkaply, a=brendan
OS/2 bring up - rewrite some nsLocalFileOS2 stuff to be more like Windows


git-svn-id: svn://10.0.0.236/trunk@72657 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 14:06:00 +00:00
mkaply%us.ibm.com
1e74f6b8a9 #42637
r=valeski, a=brendan
OS/2 bring up - Change DebugBreak code for OS/2 to make it a little easier


git-svn-id: svn://10.0.0.236/trunk@72656 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:59:17 +00:00
mkaply%us.ibm.com
a22e45a75a #42637
r=hyatt, a=brendan
OS/2 bring up - change menu code so clicks are NOT passed to the default window proc if they are handled.
This fix has been tested on Linux, Windows, OS/2 - does not affect Mac.


git-svn-id: svn://10.0.0.236/trunk@72655 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:49:24 +00:00
mkaply%us.ibm.com
bbc83a1967 #42637
r=mkaply, a=brendan
OS/2 bring up - Trap when typing in URL bar


git-svn-id: svn://10.0.0.236/trunk@72654 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:24:52 +00:00
chrisk%netscape.com
6db98da95b Fix bug in decoder:
When encoding indefinitely & encountering an optional field at the end of
a sequence, right after an IMPLICIT or POINTER template, the decoder
was not propagating the optionalness and the end-of-contents condition
correctly as it hits the end-of-contents octets instead of the optional
field. This is because IMPLICIT and POINTER push TWO states to look
for the next tag, not just one.
(The first state is "afterImplicit" or "afterPointer", the second one
starts with "beforeIdentifier" as usual).
This finally makes decoding envelopedData messages in cmsutil work.


git-svn-id: svn://10.0.0.236/trunk@72653 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:24:01 +00:00
mkaply%us.ibm.com
eb1ac6eaf8 #42637
r=mkaply, a=brendan
Makefile change to build timer


git-svn-id: svn://10.0.0.236/trunk@72652 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:22:43 +00:00
mkaply%us.ibm.com
77bd26d806 #42637
r=mkaply, a=brendan
Remove OS/2 debugging messages during bringup


git-svn-id: svn://10.0.0.236/trunk@72651 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 13:21:22 +00:00
ben%netscape.com
0ef5ba9960 forgot to add classic skin to packager files in earlier checkin
git-svn-id: svn://10.0.0.236/trunk@72649 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 10:30:19 +00:00
ben%netscape.com
1575c6f556 fix for skin switching writing to install directory instead of profile, 30536, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72648 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 09:47:33 +00:00
hyatt%netscape.com
52384c15ff 33524. r=ben
git-svn-id: svn://10.0.0.236/trunk@72647 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 09:21:42 +00:00
pinkerton%netscape.com
c46cbc5873 Migrating d&d back into new tree-grid. bug# 30511, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@72646 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 08:13:14 +00:00
rpotts%netscape.com
5c4ca89c3b Added Set/GetLoadCookie methods to nsDocShell. The mLoadCookie is no longer directly set by the nsDSURIContentListener class!
git-svn-id: svn://10.0.0.236/trunk@72645 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 08:01:19 +00:00
rpotts%netscape.com
7a02e24f0f Made the nsDocShell a nsIWebProgressListener. This is a first step for the Session History changes and ultimately removing the nsIDocumentLoaderObserver interface...
git-svn-id: svn://10.0.0.236/trunk@72644 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-20 07:59:45 +00:00
299 changed files with 96529 additions and 8088 deletions

View File

@@ -1,32 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src res
include $(topsrcdir)/config/rules.mk

View File

@@ -1,27 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..
include <$(DEPTH)/config/config.mak>
DIRS = public src res
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,4 +0,0 @@
nsIPSMComponent.idl
nsIPSMUIHandler.idl
nsISecureBrowserUI.idl
nsISSLSocketProvider.idl

View File

@@ -1,45 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
# Terry Hayes <thayes@netscape.com>
#
MODULE = psmglue
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
XPIDLSRCS = \
nsIPSMComponent.idl \
nsIPSMUIHandler.idl \
nsISecureBrowserUI.idl \
nsIPSMSocketInfo.idl \
nsISSLSocketProvider.idl \
nsISecretDecoderRing.idl \
$(NULL)
PREF_JS_EXPORTS = $(srcdir)/psm-glue.js
include $(topsrcdir)/config/rules.mk

View File

@@ -1,53 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
# Terry Hayes <thayes@netscape.com>
#
MODULE = psmglue
DEPTH=..\..\..
IGNORE_MANIFEST=1
DLLNAME = psmglue
PDBFILE = $(DLLNAME).pdb
MAPFILE = $(DLLNAME).map
DLL = .\$(OBJDIR)\$(DLLNAME).dll
MAKE_OBJ_TYPE = DLL
include <$(DEPTH)/config/config.mak>
XPIDL_INCLUDES=-I$(DEPTH)\..\mozilla\dist\idl
XPIDLSRCS= \
.\nsIPSMComponent.idl \
.\nsIPSMUIHandler.idl \
.\nsISecureBrowserUI.idl \
.\nsISSLSocketProvider.idl \
.\nsIPSMSocketInfo.idl \
.\nsISecretDecoderRing.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install::
$(MAKE_INSTALL) .\psm-glue.js $(DIST)\bin\defaults\pref

View File

@@ -1,58 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
* Mitch Stoltz <mstoltz@netscape.com>
*/
#include "nsISupports.idl"
interface nsIPrincipal;
%{C++
#include "cmtcmn.h"
%}
[ptr] native nsCMTControlStar(CMT_CONTROL);
[scriptable, uuid(9e482670-5412-11d3-bbc8-0000861d1237)]
interface nsIPSMComponent : nsISupports
{
[noscript] nsCMTControlStar getControlConnection( );
/**
* Display the Security Advisor. PickledStatus and hostName can be null.
* If they are, the "Selected Info" dialog will be empty.
*/
void displaySecurityAdvisor(in string pickledStatus, in string hostName);
/**
* This will send PSM all preferences that we know about.
*/
void passPrefs();
};
%{C++
#define PSM_COMPONENT_PROGID "component://netscape/psm"
#define PSM_COMPONENT_CLASSNAME "Mozilla PSM Component"
%}

View File

@@ -1,50 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
%{C++
#include "cmtcmn.h"
#include "nsPSMShimLayer.h"
%}
[ptr] native psmtControlStar(CMT_CONTROL);
[ptr] native cmSocketStar(CMSocket);
[ptr] native nsFileDescStar(PRFileDesc);
[noscript, uuid(deeb8dfc-fb7a-11d3-ac84-00c04fa0d26b)]
interface nsIPSMSocketInfo : nsISupports {
readonly attribute string hostName;
readonly attribute PRInt32 hostPort;
readonly attribute string proxyName;
readonly attribute PRInt32 proxyPort;
readonly attribute psmtControlStar controlPtr;
readonly attribute cmSocketStar socketPtr;
readonly attribute nsFileDescStar fileDescPtr;
void getPickledStatus(out charPtr pickledStatus);
};

View File

@@ -1,36 +0,0 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
[scriptable, uuid(d92be9b0-601b-11d3-8c4a-000064657374)]
interface nsIPSMUIHandler : nsISupports
{
void DisplayURI(in long width, in long height, in PRBool modal, in string urlStr);
void PromptForFile(in wstring prompt, in string fileRegEx, in boolean shouldFileExist, out string outFile);
};
%{C++
#define PSM_UI_HANLDER_PROGID "component://netscape/psm/ui"
#define PSM_UI_HANLDER_CLASSNAME "Mozilla PSM UI Handler"
%}

View File

@@ -1,35 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISocketProvider.idl"
[noscript, uuid(856a93d0-5415-11d3-bbc8-0000861d1237)]
interface nsISSLSocketProvider : nsISocketProvider {
};
%{C++
#define NS_ISSLSOCKETPROVIDER_PROGID NS_NETWORK_SOCKET_PROGID_PREFIX "ssl"
#define NS_ISSLSOCKETPROVIDER_CLASSNAME "Mozilla SSL Socket Provider Component"
%}

View File

@@ -1,63 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* thayes@netscape.com
*
*/
#include "nsISupports.idl"
/* Buffer type - for storing 8-bit octet values */
[ptr] native buffer(unsigned char);
[scriptable, uuid(0EC80360-075C-11d4-9FD4-00C04F1B83D8)]
interface nsISecretDecoderRing: nsISupports {
/* Encrypt a buffer - callable only from C++ */
[noscript] long encrypt(in buffer data, in long dataLen, out buffer result);
/* Decrypt a buffer - callable only from C++ */
[noscript] long decrypt(in buffer data, in long dataLen, out buffer result);
/* Encrypt nul-terminated string to BASE64 output */
string encryptString(in string text);
/* Decrypt BASE64 input to nul-terminated string output */
/* There is no check for embedded nul values in the decrypted output */
string decryptString(in string crypt);
/* Prompt the user to change the password on the SDR key */
void changePassword();
/* Logout of the security device that protects the SDR key */
void logout();
};
/*
* Configuration interface for the Secret Decoder Ring
* - this interface allows setting the window that will be
* used as parent for dialog windows (such as password prompts)
*/
[scriptable, uuid(01D8C0F0-0CCC-11d4-9FDD-000064657374)]
interface nsISecretDecoderRingConfig: nsISupports {
void setWindow(in nsISupports w);
};

View File

@@ -1,44 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
interface nsIDOMWindow;
interface nsIDOMElement;
[scriptable, uuid(081e31e0-a144-11d3-8c7c-00609792278c)]
interface nsSecureBrowserUI : nsISupports
{
void init(in nsIDOMWindow window, in nsIDOMElement button);
void displayPageInfoUI();
};
%{C++
#define NS_SECURE_BROWSER_UI_PROGID "component://netscape/secure_browser_ui"
#define NS_SECURE_BROWSER_UI_CLASSNAME "Mozilla Secure Browser UI Handler"
#define NS_SECURE_BROWSER_UI_CID \
{ 0x10fe7ea0, 0xa10a, 0x11d3, {0x8c, 0x7c, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c}}
%}

View File

@@ -1,11 +0,0 @@
pref("general.useragent.security", "U");
pref("security.enable_ssl2", true);
pref("security.enable_ssl3", true);
pref("security.default_personal_cert", "Select Automatically");
pref("security.ask_for_password", 0);
pref("security.password_lifetime", 30);
pref("security.warn_entering_secure", true);
pref("security.warn_leaving_secure", true);
pref("security.warn_viewing_mixed", true);
pref("security.warn_submit_insecure", true);

View File

@@ -1,32 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = content locale
include $(topsrcdir)/config/rules.mk

View File

@@ -1,3 +0,0 @@
securityOverlay.xul
securityUI.js
PSMTaskMenu.xul

View File

@@ -1,38 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk
COMMUNICATOR_CONTENT_DIR = $(DIST)/bin/chrome/packages/core/communicator/content/
COMMUNICATOR_EXPORT_CONTENT = \
$(srcdir)/securityOverlay.xul \
$(srcdir)/securityUI.js \
$(srcdir)/PSMTaskMenu.xul \
$(NULL)
install::
$(INSTALL) $(COMMUNICATOR_EXPORT_CONTENT) $(COMMUNICATOR_CONTENT_DIR)

View File

@@ -1,22 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/PSMTaskMenu.dtd" >
<overlay id="psmTaskMenuID"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script language="JavaScript">
function displaySecurityAdvisor()
{
var psm = Components.classes["component://netscape/psm"].getService();
psm = psm.QueryInterface(Components.interfaces.nsIPSMComponent);
psm.displaySecurityAdvisor( null, null );
}
</script>
<menupopup id="personalManagers">
<menuitem id="PSMMentItem" position="1" value="&PSMCmd.label;" oncommand="displaySecurityAdvisor()"/>
</menupopup>
</overlay>

View File

@@ -1,35 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) securityOverlay.xul $(DIST)\bin\chrome\packages\core\communicator\content
$(MAKE_INSTALL) securityUI.js $(DIST)\bin\chrome\packages\core\communicator\content
$(MAKE_INSTALL) PSMTaskMenu.xul $(DIST)\bin\chrome\packages\core\communicator\content
clobber::
$(RM) $(DIST)\bin\chrome\packages\core\communicator\content\securityOverlay.xul
$(RM) $(DIST)\bin\chrome\packages\core\communicator\content\securityUI.js
$(RM) $(DIST)\bin\chrome\packages\core\communicator\content\PSMTaskMenu.xul

View File

@@ -1,14 +0,0 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://communicator/skin/securityOverlay.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://communicator/locale/securityOverlay.dtd">
<overlay id="NavSecurityOverlay"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script language="JavaScript" src="chrome://communicator/content/securityUI.js" />
<statusbarpanel id="security-button" onclick="displayPageInfo()" tooltip="aToolTip" tooltiptext="&lockIcon.label;"/>
</overlay>

View File

@@ -1,45 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
window.addEventListener("load", SetSecurityButton, false);
var securityUI;
function SetSecurityButton()
{
dump("in SetSecurityButton\n");
var ui = Components.classes["component://netscape/secure_browser_ui"].createInstance();
securityUI = ui.QueryInterface(Components.interfaces.nsSecureBrowserUI);
var button = document.getElementById('security-button');
if (button && window.content)
securityUI.init(window.content, button);
}
function displayPageInfo()
{
if (securityUI)
securityUI.displayPageInfoUI();
}

View File

@@ -1,32 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = en-US
include $(topsrcdir)/config/rules.mk

View File

@@ -1,3 +0,0 @@
PSMTaskMenu.dtd
securityOverlay.dtd
security.properties

View File

@@ -1,41 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
COMMUNICATOR_RESOURCE_CONTENT = \
$(srcdir)/PSMTaskMenu.dtd \
$(srcdir)/security.properties \
$(srcdir)/securityOverlay.dtd \
$(NULL)
include $(topsrcdir)/config/rules.mk
install::
$(INSTALL) $(COMMUNICATOR_RESOURCE_CONTENT) $(DIST)/bin/chrome/locales/en-US/communicator/locale

View File

@@ -1 +0,0 @@
<!ENTITY PSMCmd.label "Security Manager">

View File

@@ -1,37 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..\..
include <$(DEPTH)\config\rules.mak>
COMMUNICATOR_DIST=$(DIST)\bin\chrome\locales\en-US\communicator\locale
install::
$(MAKE_INSTALL) PSMTaskMenu.dtd $(COMMUNICATOR_DIST)
$(MAKE_INSTALL) security.properties $(COMMUNICATOR_DIST)
$(MAKE_INSTALL) securityOverlay.dtd $(COMMUNICATOR_DIST)
clobber::
$(RM) -f $(DIST)\bin\chrome\locales\en-US\communicator\locale\PSMTaskMenu.dtd
$(RM) -f $(DIST)\bin\chrome\locales\en-US\communicator\locale\security.properties
$(RM) -f $(DIST)\bin\chrome\locales\en-US\communicator\locale\securityOverlay.dtd

View File

@@ -1,29 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
Title=Security Warning
MixedContentMessage=You have requested a secure document that contains some insecure information.
LeaveSiteMessage=You have requested an insecure document. The document and any information you send back could be observed by a third party while in transit.
EnterSiteMessage=You have requested a secure document. The document and any information you send back are encrypted for privacy while in transit.
PostToInsecure=Warning! Although this document is secure, the information you have submitted is insecure and could be observed by a third party while in transit. If you are submitting passwords, credit card numbers, or other information you would like to keep private, it would be safer for you to cancel the submission.
PostToInsecureFromInsecure=Any information you submit is insecure and could be observed by a third party while in transit. If you are submitting passwords, credit card numbers, or other information you would like to keep private, it would be safer for you to cancel the submission.
DontShowAgain=Show Me This Alert Next Time.
FindText=Please find the Personal Security Manager application

View File

@@ -1,2 +0,0 @@
<!ENTITY lockIcon.label "Show security information for this window">

View File

@@ -1,27 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..\..
DIRS=en-US
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,27 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
DEPTH=..\..\..
include <$(DEPTH)/config/config.mak>
DIRS = content locale
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,66 +0,0 @@
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = psmglue
IS_COMPONENT = 1
LIBRARY_NAME = psmglue
CPPSRCS = \
nsPSMComponent.cpp \
nsPSMUICallbacks.cpp \
nsSSLSocketProvider.cpp \
nsPSMModule.cpp \
nsSSLIOLayer.cpp \
nsSecureBrowserUIImpl.cpp \
nsSDR.cpp \
nsFSDR.cpp \
nsCrypto.cpp \
nsKeygenHandler.cpp \
$(NULL)
CSRCS = \
nsPSMMutex.c \
nsPSMShimLayer.c \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(MOZ_COMPONENT_LIBS) \
-lcmt \
-lprotocol \
$(MOZ_JS_LIBS) \
$(NULL)
include $(topsrcdir)/config/rules.mk
INCLUDES += \
-I$(srcdir) \
$(NULL)

View File

@@ -1,72 +0,0 @@
#!nmake
#
# 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 mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
#
MODULE = psmglue
DEPTH=..\..\..
IGNORE_MANIFEST=1
DLLNAME = psmglue
PDBFILE = $(DLLNAME).pdb
MAPFILE = $(DLLNAME).map
DLL = .\$(OBJDIR)\$(DLLNAME).dll
MAKE_OBJ_TYPE = DLL
include <$(DEPTH)/config/config.mak>
LINCS = $(LINCS) \
-I$(PUBLIC) \
-I$(PUBLIC)/security \
$(NULL)
LLIBS = \
$(LIBNSPR) \
$(DIST)\lib\neckobase_s.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\js3250.lib \
$(DIST)\lib\cmt.lib \
$(DIST)\lib\protocol.lib \
$(DIST)\lib\mozreg.lib \
$(DIST)\lib\jsdom.lib \
$(NULL)
OBJS = \
.\$(OBJDIR)\nsPSMMutex.obj \
.\$(OBJDIR)\nsPSMShimLayer.obj \
.\$(OBJDIR)\nsPSMComponent.obj \
.\$(OBJDIR)\nsPSMUICallbacks.obj \
.\$(OBJDIR)\nsPSMModule.obj \
.\$(OBJDIR)\nsSecureBrowserUIImpl.obj \
.\$(OBJDIR)\nsSSLIOLayer.obj \
.\$(OBJDIR)\nsSSLSocketProvider.obj \
.\$(OBJDIR)\nsSDR.obj \
.\$(OBJDIR)\nsFSDR.obj \
.\$(OBJDIR)\nsCrypto.obj \
.\$(OBJDIR)\nsKeygenHandler.obj \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components

File diff suppressed because it is too large Load Diff

View File

@@ -1,112 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _nsCrypto_h_
#define _nsCrypto_h_
#include "nsIDOMCRMFObject.h"
#include "nsIDOMCrypto.h"
#include "nsIScriptObjectOwner.h"
#include "nsIDOMPkcs11.h"
#define NS_CRYPTO_CLASSNAME "Crypto JavaScript Class"
#define NS_CRYPTO_CID \
{0x929d9320, 0x251e, 0x11d4, { 0x8a, 0x7c, 0x00, 0x60, 0x08, 0xc8, 0x44, 0xc3} }
#define NS_PKCS11_CLASSNAME "Pkcs11 JavaScript Class"
#define NS_PKCS11_CID \
{0x74b7a390, 0x3b41, 0x11d4, { 0x8a, 0x80, 0x00, 0x60, 0x08, 0xc8, 0x44, 0xc3} }
class nsIPSMComponent;
class nsIDOMScriptObjectFactory;
class nsCRMFObject : public nsIDOMCRMFObject,
public nsIScriptObjectOwner {
public:
nsCRMFObject();
virtual ~nsCRMFObject();
NS_DECL_IDOMCRMFOBJECT
NS_DECL_ISUPPORTS
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
NS_IMETHOD SetScriptObject(void* aScriptObject);
nsresult init();
nsresult SetCRMFRequest(char *inRequest);
private:
nsString mBase64Request;
void *mScriptObject;
};
class nsCrypto: public nsIDOMCrypto,
public nsIScriptObjectOwner {
public:
nsCrypto();
virtual ~nsCrypto();
nsresult init();
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
NS_IMETHOD SetScriptObject(void* aScriptObject);
NS_DECL_ISUPPORTS
NS_DECL_IDOMCRYPTO
static nsresult GetScriptObjectFactory(nsIDOMScriptObjectFactory **aResult);
static nsIDOMScriptObjectFactory *gScriptObjectFactory;
static nsIPrincipal* GetScriptPrincipal(JSContext *cx);
static const char *kPSMComponentProgID;
private:
nsIPSMComponent *mPSM;
nsString mVersionString;
PRBool mVersionStringSet;
void *mScriptObject;
};
class nsPkcs11 : public nsIDOMPkcs11,
public nsIScriptObjectOwner {
public:
nsPkcs11();
virtual ~nsPkcs11();
nsresult init();
NS_DECL_ISUPPORTS
NS_DECL_IDOMPKCS11
NS_IMETHOD GetScriptObject(nsIScriptContext *aContext, void** aScriptObject);
NS_IMETHOD SetScriptObject(void* aScriptObject);
private:
nsIPSMComponent *mPSM;
void *mScriptObject;
};
nsresult
getPSMComponent(nsIPSMComponent ** retPSM);
#endif //_nsCrypto_h_

File diff suppressed because it is too large Load Diff

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Terry Hayes <thayes@netscape.com>
* Steve Morse <morse@netscape.com>
*/
#ifndef _NSFSDR_H_
#define _NSFSDR_H_
#include "nsISecretDecoderRing.h"
// ===============================================
// nsFSecretDecoderRing - "fake" implementation of nsISecretDecoderRing
// ===============================================
#define NS_FSDR_CLASSNAME "Fake Secret Decoder Ring"
#define NS_FSDR_CID \
{ 0x1ee28720, 0x2b93, 0x11d4, { 0xa0, 0xa4, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
#define NS_FSDR_PROGID "netscape.security.fsdr"
class nsFSecretDecoderRing : public nsISecretDecoderRing
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISECRETDECODERRING
nsFSecretDecoderRing();
virtual ~nsFSecretDecoderRing();
nsresult init();
private:
nsIPSMComponent *mPSM;
static const char *kPSMComponentProgID;
nsresult encode(const unsigned char *data, PRInt32 dataLen, char **_retval);
nsresult decode(const char *data, unsigned char **result, PRInt32 * _retval);
};
#endif /* _NSFSDR_H_ */

View File

@@ -1,255 +0,0 @@
//For some weird reason, nsProxiedService has to be the first file
//included. Don't ask me, I'm just the messenger.
#include "nsProxiedService.h"
#include "nsKeygenHandler.h"
#include "nsVoidArray.h"
#include "nsSecureBrowserUIImpl.h"
#include "nsIServiceManager.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsIContent.h"
#include "nsIPSMComponent.h"
#include "nsIPSMUIHandler.h"
#include "nsPSMUICallbacks.h"
#include "nsCrypto.h"
#include "cmtcmn.h"
#include "cmtjs.h"
//These defines are taken from the PKCS#11 spec
#define CKM_RSA_PKCS_KEY_PAIR_GEN 0x00000000
#define CKM_DH_PKCS_KEY_PAIR_GEN 0x00000020
#define CKM_DSA_KEY_PAIR_GEN 0x00000010
static NS_DEFINE_IID(kFormProcessorIID, NS_IFORMPROCESSOR_IID);
static NS_DEFINE_IID(kIDOMHTMLSelectElementIID, NS_IDOMHTMLSELECTELEMENT_IID);
static const char *mozKeyGen = "-mozilla-keygen";
NS_IMPL_ADDREF(nsKeygenFormProcessor);
NS_IMPL_RELEASE(nsKeygenFormProcessor);
NS_IMPL_QUERY_INTERFACE(nsKeygenFormProcessor, kFormProcessorIID);
nsKeygenFormProcessor::nsKeygenFormProcessor()
{
NS_INIT_REFCNT();
getPSMComponent(&mPSM);
}
char *
nsKeygenFormProcessor::ChooseToken(PCMT_CONTROL control,
CMKeyGenTagArg *psmarg,
CMKeyGenTagReq *reason)
{
CMUint32 resID;
CMTStatus crv;
CMTItem url;
char *keyString = nsnull;
nsresult rv = NS_OK;
NameList *tokenNames;
int i;
// In this case, PSM provided us with a list of potential tokens to choose
// from, but we're gonna make it use it's UI for now, so let's delte the
// memory associated with the structure it sent back.
tokenNames = (NameList*)psmarg->current;
for (i=0; i < tokenNames->numitems; i++) {
nsCRT::free(tokenNames->names[i]);
}
nsCRT::free((char*)tokenNames);
resID = psmarg->rid;
memset(&url, 0, sizeof(CMTItem));
NS_WITH_PROXIED_SERVICE(nsIPSMUIHandler, handler, nsPSMUIHandlerImpl::GetCID(), NS_UI_THREAD_EVENTQ, &rv);
crv = CMT_GetStringAttribute(control, resID, SSM_FID_CHOOSE_TOKEN_URL, &url);
if (crv != CMTSuccess) {
goto loser;
}
if (NS_SUCCEEDED(rv)) {
handler->DisplayURI(400, 300, PR_TRUE, (char*)url.data);
} else {
goto loser;
}
return CMT_GetGenKeyResponse(control, psmarg, reason);
loser:
if (keyString)
nsCRT::free(keyString);
return nsnull;
}
char *
nsKeygenFormProcessor::SetUserPassword(PCMT_CONTROL control,
CMKeyGenTagArg *psmarg,
CMKeyGenTagReq *reason)
{
nsresult rv;
CMTStatus crv;
CMTItem url;
char *keystring=nsnull;
// We need to delete the memory the PSM client API allocated for us since
// we're just gonna tell it to use it's own UI.
nsCRT::free((char*)psmarg->current);
NS_WITH_PROXIED_SERVICE(nsIPSMUIHandler, handler, nsPSMUIHandlerImpl::GetCID(), NS_UI_THREAD_EVENTQ, &rv);
memset (&url, 0, sizeof(CMTItem));
crv = CMT_GetStringAttribute(control,psmarg->rid, SSM_FID_INIT_DB_URL, &url);
if (crv != CMTSuccess || NS_FAILED(rv)){
goto loser;
}
handler->DisplayURI(500, 450, PR_TRUE, (char*)url.data);
return CMT_GetGenKeyResponse(control, psmarg, reason);
loser:
if (keystring)
nsCRT::free(keystring);
return nsnull;
}
nsresult
nsKeygenFormProcessor::GetPublicKey(nsString& value, nsString& challenge,
nsString& keyType,
nsString& outPublicKey, nsString& pqg)
{
PCMT_CONTROL control;
nsresult rv;
CMKeyGenParams *params = nsnull;
CMKeyGenTagArg *psmarg = nsnull;
CMKeyGenTagReq reason;
char *emptyCString = "null";
char *keystring = nsnull;
rv = mPSM->GetControlConnection(&control);
if (NS_FAILED(rv)) {
goto loser;
}
params = new CMKeyGenParams;
if (params == nsnull) {
goto loser;
}
params->typeString = (keyType.IsEmpty()) ? emptyCString :
keyType.ToNewCString();
params->challenge = (challenge.IsEmpty()) ? emptyCString :
challenge.ToNewCString();
params->choiceString = value.ToNewCString();
params->pqgString = (pqg.IsEmpty()) ? emptyCString : pqg.ToNewCString();
psmarg = new CMKeyGenTagArg;
if (psmarg == nsnull) {
goto loser;
}
// ARGH, while this is going on, we need to lock the control
// connection so that the event loop doesn't drop our response on
// the floor.
CMT_LockConnection(control);
psmarg->op = CM_KEYGEN_START;
psmarg->rid = 0;
psmarg->tokenName = NULL;
psmarg->current = params;
keystring = CMT_GenKeyOldStyle(control, psmarg, &reason);
while (!keystring) {
psmarg->op = reason;
switch (psmarg->op) {
case CM_KEYGEN_PICK_TOKEN:
keystring = ChooseToken(control, psmarg, &reason);
break;
case CM_KEYGEN_SET_PASSWORD:
keystring = SetUserPassword(control, psmarg, &reason);
break;
case CM_KEYGEN_ERR:
default:
goto loser;
}
}
CMT_UnlockConnection(control);
outPublicKey.AssignWithConversion(keystring);
nsCRT::free(keystring);
return NS_OK;
loser:
return NS_ERROR_FAILURE;
}
NS_METHOD
nsKeygenFormProcessor::ProcessValue(nsIDOMHTMLElement *aElement,
const nsString& aName,
nsString& aValue)
{
#ifdef DEBUG_javi
char *name = aName.ToNewCString();
char *value = aValue.ToNewCString();
printf("ProcessValue: name %s value %s\n", name, value);
delete [] name;
delete [] value;
#endif
nsresult rv = NS_OK;
nsCOMPtr<nsIDOMHTMLSelectElement>selectElement;
nsresult res = aElement->QueryInterface(kIDOMHTMLSelectElementIID,
getter_AddRefs(selectElement));
if (NS_SUCCEEDED(res)) {
nsAutoString keygenvalue;
nsAutoString challengeValue;
nsString publicKey;
nsString mozillaKeygen;
nsString mozType;
mozType.AssignWithConversion("_moz-type");
mozillaKeygen.AssignWithConversion(mozKeyGen);
res = selectElement->GetAttribute(mozType, keygenvalue);
if (NS_CONTENT_ATTR_HAS_VALUE == res && keygenvalue.Equals(mozillaKeygen)) {
nsString challenge;
nsString keyType;
nsString keyTypeValue;
nsString pqg, pqgValue;
challenge.AssignWithConversion("challenge");
pqg.AssignWithConversion("pqg");
res = selectElement->GetAttribute(pqg, pqgValue);
keyType.AssignWithConversion("keytype");
res = selectElement->GetAttribute(keyType, keyTypeValue);
if (NS_FAILED(res) || keyTypeValue.IsEmpty()) {
// If this field is not present, we default to rsa.
keyTypeValue.AssignWithConversion("rsa");
}
res = selectElement->GetAttribute(challenge, challengeValue);
rv = GetPublicKey(aValue, challenge, keyTypeValue,
publicKey, pqgValue);
aValue = publicKey;
}
}
return rv;
}
NS_METHOD nsKeygenFormProcessor::ProvideContent(const nsString& aFormType,
nsVoidArray& aContent,
nsString& aAttribute)
{
nsString selectString;
nsresult rv;
PCMT_CONTROL control;
PRUint32 i;
selectString.AssignWithConversion("SELECT");
if (aFormType.EqualsIgnoreCase(selectString)) {
nsString *selectString;
char **result;
rv = mPSM->GetControlConnection(&control);
if (NS_FAILED(rv)) {
goto loser;
}
result = CMT_GetKeyChoiceList(control, "rsa"/*Need to figure out if DSA*/,
nsnull);
for (i=0; result[i] != nsnull; i++) {
selectString = new nsString;
selectString->AssignWithConversion(result[i]);
aContent.AppendElement(selectString);
delete []result[i];
}
delete []result;
aAttribute.AssignWithConversion(mozKeyGen);
}
return NS_OK;
loser:
return NS_ERROR_FAILURE;
}

View File

@@ -1,32 +0,0 @@
#ifndef _NSKEYGENHANDLER_H_
#define _NSKEYGENHANDLER_H_
// Form Processor
#include "nsIFormProcessor.h"
#include "ssmdefs.h"
#include "cmtcmn.h"
class nsIPSMComponent;
class nsKeygenFormProcessor : public nsIFormProcessor {
public:
nsKeygenFormProcessor();
NS_IMETHOD ProcessValue(nsIDOMHTMLElement *aElement,
const nsString& aName,
nsString& aValue);
NS_IMETHOD ProvideContent(const nsString& aFormType,
nsVoidArray& aContent,
nsString& aAttribute);
NS_DECL_ISUPPORTS
protected:
nsresult GetPublicKey(nsString& value, nsString& challenge,
nsString& keyType, nsString& outPublicKey,
nsString& pqg);
char * ChooseToken(PCMT_CONTROL control, CMKeyGenTagArg *psmarg,
CMKeyGenTagReq *reason);
char * SetUserPassword(PCMT_CONTROL control, CMKeyGenTagArg *psmarg,
CMKeyGenTagReq *reason);
nsIPSMComponent *mPSM;
};
#endif //_NSKEYGENHANDLER_H_

View File

@@ -1,935 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
* Mitch Stoltz <mstoltz@netscape.com>
*/
#include "nsProxiedService.h"
#include "nsPSMUICallbacks.h"
#include "VerReg.h"
#include "nspr.h"
#include "nsPSMComponent.h"
#include "nsCRT.h"
#include "nsNetUtil.h"
#include "nsIURI.h"
#include "nsIChannel.h"
#include "nsIInputStream.h"
#include "nsIStreamListener.h"
#include "nsIPref.h"
#include "nsIProfile.h"
#include "nsILocalFile.h"
#include "nsDirectoryService.h"
#include "rsrcids.h"
#include "nsPSMMutex.h"
#include "nsPSMShimLayer.h"
#include "nsPSMUICallbacks.h"
#include "nsISecureBrowserUI.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIScriptSecurityManager.h"
#include "nsICertificatePrincipal.h"
#include "nsIProtocolProxyService.h"
#define PSM_VERSION_REG_KEY "/Netscape/Personal Security Manager"
#ifdef WIN32
#define PSM_FILE_NAME "psm.exe"
#elif XP_UNIX
#define PSM_FILE_NAME "start-psm"
#else
#define PSM_FILE_NAME "psm"
#endif
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
static NS_DEFINE_CID(kProfileCID, NS_PROFILE_CID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
static NS_DEFINE_CID(kProtocolProxyServiceCID, NS_PROTOCOLPROXYSERVICE_CID);
nsPSMComponent* nsPSMComponent::mInstance = nsnull;
nsPSMComponent::nsPSMComponent()
{
NS_INIT_REFCNT();
mControl = nsnull;
}
nsPSMComponent::~nsPSMComponent()
{
if (mControl)
{
CMT_CloseControlConnection(mControl);
mControl = nsnull;
}
}
NS_IMETHODIMP
nsPSMComponent::CreatePSMComponent(nsISupports* aOuter, REFNSIID aIID, void **aResult)
{
if (!aResult) {
return NS_ERROR_INVALID_POINTER;
}
if (aOuter) {
*aResult = nsnull;
return NS_ERROR_NO_AGGREGATION;
}
if (mInstance == nsnull)
{
mInstance = new nsPSMComponent();
}
if (mInstance == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = mInstance->QueryInterface(aIID, aResult);
if (NS_FAILED(rv))
{
*aResult = nsnull;
}
return rv;
}
/* nsISupports Implementation for the class */
NS_IMPL_THREADSAFE_ISUPPORTS3(nsPSMComponent,
nsIPSMComponent,
nsIContentHandler,
nsISignatureVerifier);
#define INIT_NUM_PREFS 100
/* preference types */
#define STRING_PREF 0
#define BOOL_PREF 1
#define INT_PREF 2
/* resizable list struct that contains pref items */
typedef struct CMSetPrefList {
int n; /* number of filled items */
int capacity; /* allocated memory */
CMTSetPrefElement* list; /* actual list */
} CMSetPrefList;
static void get_pack_bool_pref(nsIPref *prefManager, char* key, CMTSetPrefElement* list, int* n)
{
PRBool boolpref;
list[*n].key = nsCRT::strdup(key);
list[*n].type = BOOL_PREF;
if ((prefManager->GetBoolPref(key, &boolpref) != 0) || boolpref)
{
list[*n].value = nsCRT::strdup("true");
}
else
{
list[*n].value = nsCRT::strdup("false");
}
(*n)++; /* increment the counter after done packing */
return;
}
static void SaveAllPrefs(int number, CMTSetPrefElement* list)
{
nsCOMPtr<nsIPref> prefManager;
nsresult res = nsServiceManager::GetService(kPrefCID,
nsIPref::GetIID(),
getter_AddRefs(prefManager));
if (NS_FAILED(res) || !prefManager)
{
return;
}
int i;
int intval;
for (i = 0; i < number; i++)
{
if (list[i].key == nsnull)
{
/* misconfigured item: next */
continue;
}
switch (list[i].type)
{
case 0: /* string type */
prefManager->SetCharPref(list[i].key, list[i].value);
break;
case 1: /* boolean type */
if (strcmp(list[i].value, "true") == 0) {
prefManager->SetBoolPref(list[i].key, (PRBool)1);
}
else if (strcmp(list[i].value, "false") == 0) {
prefManager->SetBoolPref(list[i].key, (PRBool)0);
}
break;
case 2:
intval = atoi(list[i].value);
prefManager->SetIntPref(list[i].key, intval);
break;
default:
break;
}
}
return;
}
NS_IMETHODIMP
nsPSMComponent::PassPrefs()
{
// if we have not passed anything to psm yet, this function can just return.
if (!mControl)
return NS_OK;
int i;
nsresult rv = NS_ERROR_FAILURE;
char* strpref = NULL;
int intpref;
PRBool boolpref;
CMSetPrefList prefs = {0};
CMTSetPrefElement* list = NULL;
char* pickAuto = "Select Automatically";
char* alwaysAsk = "Ask Every Time";
nsCOMPtr<nsIPref> prefManager;
nsresult res = nsServiceManager::GetService(kPrefCID,
nsIPref::GetIID(),
getter_AddRefs(prefManager));
if (NS_OK != res)
{
return NS_ERROR_FAILURE;
}
/* allocate memory for list */
prefs.n = 0; /* counter */
prefs.capacity = INIT_NUM_PREFS;
prefs.list = (CMTSetPrefElement*) new char[(INIT_NUM_PREFS * sizeof(CMTSetPrefElement))];
if (prefs.list == NULL)
{
return rv;
}
/* shorthand */
list = prefs.list;
/* get preferences */
get_pack_bool_pref(prefManager, "security.enable_ssl2", (CMTSetPrefElement*)list, &(prefs.n));
get_pack_bool_pref(prefManager, "security.enable_ssl3", (CMTSetPrefElement*)list, &(prefs.n));
/* this pref is a boolean pref in nature but a string pref for
* historical reason
*/
list[prefs.n].key = nsCRT::strdup("security.default_personal_cert");
list[prefs.n].type = STRING_PREF;
if ((prefManager->CopyCharPref(list[prefs.n].key, &strpref) == 0) && (strcmp(strpref, pickAuto) == 0))
{
list[prefs.n].value = nsCRT::strdup(pickAuto);
}
else
{
/* although one could choose a specific cert for client auth in
* Nova, that mode is deprecated with PSM and mapped to ASK
*/
list[prefs.n].value = nsCRT::strdup(alwaysAsk);
}
prefs.n++;
if (strpref != NULL)
{
nsCRT::free(strpref);
}
list[prefs.n].key = nsCRT::strdup("security.default_mail_cert");
list[prefs.n].type = STRING_PREF;
if (prefManager->CopyCharPref(list[prefs.n].key, &list[prefs.n].value) != 0)
{
list[prefs.n].value = NULL;
}
prefs.n++;
list[prefs.n].key = nsCRT::strdup("security.ask_for_password");
list[prefs.n].type = INT_PREF;
if (prefManager->GetIntPref(list[prefs.n].key, &intpref) != 0)
{
intpref = 0; /* default */
}
list[prefs.n].value = PR_smprintf("%d", intpref);
prefs.n++;
list[prefs.n].key = nsCRT::strdup("security.password_lifetime");
list[prefs.n].type = INT_PREF;
if (prefManager->GetIntPref(list[prefs.n].key, &intpref) != 0)
{
intpref = 30; /* default */
}
list[prefs.n].value = PR_smprintf("%d", intpref);
prefs.n++;
/* OCSP preferences */
/* XXX since these are the new ones added by PSM, we will be more
* error-tolerant in fetching them
*/
if (prefManager->GetBoolPref("security.OCSP.enabled", &boolpref) == 0)
{
if (boolpref)
{
list[prefs.n].value = nsCRT::strdup("true");
}
else
{
list[prefs.n].value = nsCRT::strdup("false");
}
list[prefs.n].key = nsCRT::strdup("security.OCSP.enabled");
list[prefs.n].type = BOOL_PREF;
prefs.n++;
}
if (prefManager->GetBoolPref("security.OCSP.useDefaultResponder", &boolpref) == 0)
{
if (boolpref)
{
list[prefs.n].value = nsCRT::strdup("true");
}
else
{
list[prefs.n].value = nsCRT::strdup("false");
}
list[prefs.n].key = nsCRT::strdup("security.OCSP.useDefaultResponder");
list[prefs.n].type = BOOL_PREF;
prefs.n++;
}
if (prefManager->CopyCharPref("security.OCSP.URL", &strpref) == 0)
{
list[prefs.n].value = strpref;
list[prefs.n].key = nsCRT::strdup("security.OCSP.URL");
list[prefs.n].type = STRING_PREF;
prefs.n++;
}
if (prefManager->CopyCharPref("security.OCSP.signingCA", &strpref) == 0)
{
list[prefs.n].value = strpref;
list[prefs.n].key = nsCRT::strdup("security.OCSP.signingCA");
list[prefs.n].type = STRING_PREF;
prefs.n++;
}
/* now application-specific preferences */
/* get navigator preferences */
get_pack_bool_pref(prefManager, "security.warn_entering_secure", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_leaving_secure", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_viewing_mixed", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_submit_insecure", (CMTSetPrefElement*)list, &prefs.n);
// Add any other prefs here such as ldap or mail/news.
CMT_SetSavePrefsCallback(mControl, (savePrefsCallback_fn)SaveAllPrefs);
if (CMT_PassAllPrefs(mControl, prefs.n, (CMTSetPrefElement*)prefs.list) != CMTSuccess)
{
goto loser;
}
rv = NS_OK; /* success */
loser:
/* clean out memory for prefs */
for (i = 0; i < prefs.n; i++)
{
if (prefs.list[i].key != NULL)
{
nsCRT::free(prefs.list[i].key);
}
if (prefs.list[i].value != NULL)
{
nsCRT::free(prefs.list[i].value);
}
}
if (prefs.list != NULL)
{
delete(prefs.list);
}
return rv;
}
#ifdef XP_MAC
extern "C" {
void RunMacPSM(void* arg);
PRThread* SSM_CreateAndRegisterThread(PRThreadType type, void (*start)(void *arg),
void *arg, PRThreadPriority priority,
PRThreadScope scope, PRThreadState state,
PRUint32 stackSize);
void SSM_KillAllThreads(void);
}
#endif
NS_IMETHODIMP
nsPSMComponent::GetControlConnection( CMT_CONTROL * *_retval )
{
nsresult rv;
*_retval = nsnull;
if (mControl)
{
*_retval = mControl;
return NS_OK;
}
else /* initialize mutex, sock table, etc. */
{
if (nsPSMMutexInit() != PR_SUCCESS)
return NS_ERROR_FAILURE;
#ifdef XP_MAC
/* FIXME: Really need better error handling in PSM, which simply exits on error. */
/* use a cached monitor to rendezvous with the PSM thread. */
PRMonitor* monitor = PR_CEnterMonitor(this);
if (monitor != nsnull) {
/* create the Cartman thread, and let it run awhile to get things going. */
PRThread* cartmanThread = SSM_CreateAndRegisterThread(PR_USER_THREAD, RunMacPSM,
this, PR_PRIORITY_NORMAL,
PR_LOCAL_THREAD, PR_UNJOINABLE_THREAD, 0);
if (cartmanThread != nsnull) {
/* need a good way to rendezvouz with the Cartman thread. */
PR_CWait(this, PR_INTERVAL_NO_TIMEOUT);
}
PR_CExitMonitor(this);
}
#endif
// Try to see if it is open already
mControl = CMT_ControlConnect(&nsPSMMutexTbl, &nsPSMShimTbl);
// Find the one in the bin directory
if (mControl == nsnull)
{
nsCOMPtr<nsILocalFile> psmAppFile;
NS_WITH_SERVICE(nsIProperties, directoryService, NS_DIRECTORY_SERVICE_PROGID, &rv);
if (NS_FAILED(rv)) return rv;
directoryService->Get("system.OS_CurrentProcessDirectory",
NS_GET_IID(nsIFile),
getter_AddRefs(psmAppFile));
psmAppFile->Append("psm");
psmAppFile->Append(PSM_FILE_NAME);
PRBool isExecutable, exists;
psmAppFile->Exists(&exists);
psmAppFile->IsExecutable(&isExecutable);
if (exists && isExecutable)
{
nsXPIDLCString path;
psmAppFile->GetPath(getter_Copies(path));
// FIX THIS. using a file path is totally wrong here.
mControl = CMT_EstablishControlConnection((char*)(const char*)path, &nsPSMShimTbl, &nsPSMMutexTbl);
}
}
// Get the one in the version registry
if (mControl == nsnull)
{
//Try to find it.
int err;
char filepath[MAXREGPATHLEN];
err = VR_GetPath(PSM_VERSION_REG_KEY, sizeof(filepath), filepath);
if ( err == REGERR_OK )
{
nsFileSpec psmSpec(filepath);
psmSpec += PSM_FILE_NAME;
if (psmSpec.Exists())
{
mControl = CMT_EstablishControlConnection((char *)psmSpec.GetNativePathCString(), &nsPSMShimTbl, &nsPSMMutexTbl);
}
}
}
if (!mControl || InitPSMUICallbacks(mControl) != PR_SUCCESS)
goto failure;
nsFileSpec profileSpec;
PRUnichar* profileName;
NS_WITH_SERVICE(nsIProfile, profile, kProfileCID, &rv);
if (NS_FAILED(rv)) goto failure;
rv = profile->GetCurrentProfileDir(&profileSpec);
if (NS_FAILED(rv)) goto failure;;
#ifdef XP_MAC
profileSpec += "Security";
// make sure the dir exists
profileSpec.CreateDirectory();
#endif
rv = profile->GetCurrentProfile(&profileName);
if (NS_FAILED(rv)) goto failure;
CMTStatus psmStatus;
nsCAutoString profilenameC;
profilenameC.AssignWithConversion(profileName);
psmStatus = CMT_Hello( mControl,
PROTOCOL_VERSION,
profilenameC,
(char*)profileSpec.GetNativePathCString());
if (psmStatus == CMTFailure)
{
PR_FREEIF(profileName);
goto failure;
}
if (InitPSMEventLoop(mControl) != PR_SUCCESS)
{
PR_FREEIF(profileName);
goto failure;
}
if (NS_FAILED(PassPrefs()))
{
PR_FREEIF(profileName);
goto failure;
}
PR_FREEIF(profileName);
nsCOMPtr<nsIProtocolProxyService> proxySvc = do_GetService(kProtocolProxyServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
proxySvc->AddNoProxyFor("127.0.0.1", mControl->port);
*_retval = mControl;
return NS_OK;
}
failure:
#ifdef DEBUG
printf("*** Failure setting up Cartman! \n");
#endif
if (mControl)
{
CMT_CloseControlConnection(mControl);
mControl = NULL;
}
// TODO we need to unregister our UI callback BEFORE destroying our mutex.
// nsPSMMutexDestroy();
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsPSMComponent::DisplaySecurityAdvisor(const char *pickledStatus, const char *hostName)
{
CMT_CONTROL *controlConnection;
GetControlConnection( &controlConnection );
if (DisplayPSMUIDialog(controlConnection, pickledStatus, hostName) == PR_SUCCESS)
return NS_OK;
return NS_ERROR_FAILURE;
}
class CertDownloader : public nsIStreamListener
{
public:
CertDownloader() {NS_ASSERTION(0, "don't use this constructor."); }
CertDownloader(PRInt32 type);
virtual ~CertDownloader();
NS_DECL_ISUPPORTS
NS_DECL_NSISTREAMOBSERVER
NS_DECL_NSISTREAMLISTENER
protected:
char* mByteData;
PRInt32 mBufferOffset;
PRInt32 mContentLength;
PRInt32 mType;
};
CertDownloader::CertDownloader(PRInt32 type)
{
NS_INIT_REFCNT();
mByteData = nsnull;
mType = type;
}
CertDownloader::~CertDownloader()
{
if (mByteData)
nsMemory::Free(mByteData);
}
NS_IMPL_ISUPPORTS(CertDownloader,NS_GET_IID(nsIStreamListener));
NS_IMETHODIMP
CertDownloader::OnStartRequest(nsIChannel* channel, nsISupports* context)
{
channel->GetContentLength(&mContentLength);
if (mContentLength == -1)
return NS_ERROR_FAILURE;
mBufferOffset = 0;
mByteData = (char*) nsMemory::Alloc(mContentLength);
if (!mByteData)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
CertDownloader::OnDataAvailable(nsIChannel* channel,
nsISupports* context,
nsIInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength)
{
if (!mByteData)
return NS_ERROR_OUT_OF_MEMORY;
PRUint32 amt;
nsresult err;
do
{
err = aIStream->Read(mByteData+mBufferOffset, mContentLength-mBufferOffset, &amt);
if (amt == 0) break;
if (NS_FAILED(err)) return err;
aLength -= amt;
mBufferOffset += amt;
} while (aLength > 0);
return NS_OK;
}
NS_IMETHODIMP
CertDownloader::OnStopRequest(nsIChannel* channel,
nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
nsCOMPtr<nsIPSMComponent> psm = do_QueryInterface(context);
if (!psm) return NS_ERROR_FAILURE;
CMT_CONTROL *controlConnection;
psm->GetControlConnection( &controlConnection );
unsigned int certID;
certID = CMT_DecodeAndCreateTempCert(controlConnection, mByteData, mContentLength, mType);
if (certID)
CMT_DestroyResource(controlConnection, certID, SSM_RESTYPE_CERTIFICATE);
return NS_OK;
}
/* other mime types that we should handle sometime:
application/x-pkcs7-crl
application/x-pkcs7-mime
application/pkcs7-signature
application/pre-encrypted
*/
NS_IMETHODIMP
nsPSMComponent::HandleContent(const char * aContentType,
const char * aCommand,
const char * aWindowTarget,
nsISupports* aWindowContext,
nsIChannel * aChannel)
{
// We were called via CI. We better protect ourselves and addref.
NS_ADDREF_THIS();
nsresult rv = NS_OK;
if (!aChannel) return NS_ERROR_NULL_POINTER;
CMUint32 type = -1;
if ( nsCRT::strcasecmp(aContentType, "application/x-x509-ca-cert") == 0)
{
type = 1; //CA cert
}
else if (nsCRT::strcasecmp(aContentType, "application/x-x509-server-cert") == 0)
{
type = 2; //Server cert
}
else if (nsCRT::strcasecmp(aContentType, "application/x-x509-user-cert") == 0)
{
type = 3; //User cert
}
else if (nsCRT::strcasecmp(aContentType, "application/x-x509-email-cert") == 0)
{
type = 4; //Someone else's email cert
}
if (type != -1)
{
// I can't directly open the passed channel cause it fails :-(
nsCOMPtr<nsIURI> uri;
rv = aChannel->GetURI(getter_AddRefs(uri));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = NS_OpenURI(getter_AddRefs(channel), uri);
if (NS_FAILED(rv)) return rv;
return channel->AsyncRead(new CertDownloader(type), NS_STATIC_CAST(nsIPSMComponent*,this));
}
return NS_ERROR_NOT_IMPLEMENTED;
}
//---------------------------------------------
// Functions Implenenting NSISignatureVerifier
//---------------------------------------------
NS_IMETHODIMP
nsPSMComponent::HashBegin(PRUint32 alg, PRUint32* id)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if(CMT_HashCreate(controlConnection, alg, (CMUint32*)id) != CMTSuccess)
return NS_ERROR_FAILURE;
if(CMT_HASH_Begin(controlConnection, *id) != CMTSuccess)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::HashUpdate(PRUint32 id, const char* buf, PRUint32 buflen)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if (CMT_HASH_Update(controlConnection, id,
(const unsigned char*)buf, buflen) != CMTSuccess)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::HashEnd(PRUint32 id, unsigned char** hash,
PRUint32* hashLen, PRUint32 maxLen)
{
if (!hash)
return NS_ERROR_ILLEGAL_VALUE;
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if(CMT_HASH_End(controlConnection, id, *hash,
(CMUint32*)hashLen, maxLen) != CMTSuccess)
return NS_ERROR_FAILURE;
CMT_HASH_Destroy(controlConnection, id);
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::CreatePrincipalFromSignature(const char* aRSABuf, PRUint32 aRSABufLen,
nsIPrincipal** aPrincipal)
{
PRInt32 errorCode;
return VerifySignature(aRSABuf, aRSABufLen, nsnull, 0, &errorCode, aPrincipal);
}
PR_STATIC_CALLBACK(void)
UselessPK7DataSink(void* arg, const char* buf, CMUint32 len)
{
}
NS_IMETHODIMP
nsPSMComponent::VerifySignature(const char* aRSABuf, PRUint32 aRSABufLen,
const char* aPlaintext, PRUint32 aPlaintextLen,
PRInt32* aErrorCode,
nsIPrincipal** aPrincipal)
{
if (!aPrincipal || !aErrorCode)
return NS_ERROR_NULL_POINTER;
*aErrorCode = 0;
*aPrincipal = nsnull;
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
//-- Decode the signature stream
CMUint32 decoderID;
CMInt32* blah = nsnull;
CMTStatus result = CMT_PKCS7DecoderStart(controlConnection, nsnull,
&decoderID, blah,
UselessPK7DataSink, nsnull);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
result = CMT_PKCS7DecoderUpdate(controlConnection, decoderID, aRSABuf, aRSABufLen);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
CMUint32 contentInfo;
result = CMT_PKCS7DecoderFinish(controlConnection,
decoderID, &contentInfo);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
CMTItem hashItem;
hashItem.data = 0;
hashItem.len = 0;
//-- If a plaintext was provided, hash it.
if (aPlaintext)
{
CMUint32 hashId;
CMT_HashCreate(controlConnection, nsISignatureVerifier::SHA1, &hashId);
CMT_HASH_Begin(controlConnection, hashId);
CMTStatus result = CMT_HASH_Update(controlConnection, hashId,
(const unsigned char*)aPlaintext, aPlaintextLen);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
unsigned char* hash = (unsigned char*)PR_MALLOC(nsISignatureVerifier::SHA1_LENGTH);
if (!hash) return NS_ERROR_OUT_OF_MEMORY;
CMUint32 hashLen;
result = CMT_HASH_End(controlConnection, hashId, hash,
&hashLen, nsISignatureVerifier::SHA1_LENGTH);
if (result != CMTSuccess)
{
PR_FREEIF(hash);
return NS_ERROR_FAILURE;
}
NS_ASSERTION(hashLen == nsISignatureVerifier::SHA1_LENGTH,
"PSMComponent: Hash too short.");
CMT_HASH_Destroy(controlConnection, hashId);
hashItem.data = hash;
hashItem.len = hashLen;
}
//-- Verify signature
// We need to call this function even if we're only creating a principal, not
// verifying, because PSM won't give us certificate information unless this
// function has been called.
result = CMT_PKCS7VerifyDetachedSignature(controlConnection, contentInfo,
6 /* =Object Signing Cert */,
3 /* =SHA1 algorithm (MD5=2)*/,
1,/* Save Certificate */
&hashItem, (CMInt32*)aErrorCode);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
if (aPlaintext && *aErrorCode != 0) return NS_OK; // Verification failed.
CMUint32 certID;
result = CMT_GetRIDAttribute(controlConnection, contentInfo,
SSM_FID_P7CINFO_SIGNER_CERT, &certID);
if ((result != CMTSuccess) || !certID) return NS_OK; // No signature present
CMTItem fingerprint;
result = CMT_GetStringAttribute(controlConnection, certID,
SSM_FID_CERT_FINGERPRINT, &fingerprint);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
//-- Get a principal
nsresult rv;
NS_WITH_SERVICE(nsIScriptSecurityManager, secMan,
NS_SCRIPTSECURITYMANAGER_PROGID, &rv)
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
rv = secMan->GetCertificatePrincipal((char*)fingerprint.data,
aPrincipal);
if (NS_FAILED(rv)) return rv;
//-- Get common name and store it in the principal.
// Using common name + organizational unit as the user-visible certificate name
nsCOMPtr<nsICertificatePrincipal> certificate = do_QueryInterface(*aPrincipal, &rv);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
CMTItem common;
result = CMT_GetStringAttribute(controlConnection, certID,
SSM_FID_CERT_COMMON_NAME, &common);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
CMTItem subject;
result = CMT_GetStringAttribute(controlConnection, certID,
SSM_FID_CERT_SUBJECT_NAME, &subject);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
nsCAutoString commonName;
commonName = (char*)common.data;
static const char orgUnitTag[] = " OU=";
char* orgUnitPos = PL_strstr((char*)subject.data, orgUnitTag);
if (orgUnitPos)
{
orgUnitPos += sizeof(orgUnitTag)-1;
char* orgUnitEnd = PL_strchr(orgUnitPos, ',');
PRInt32 orgUnitLen;
if(orgUnitEnd)
orgUnitLen = orgUnitEnd - orgUnitPos;
else
orgUnitLen = PL_strlen(orgUnitPos);
commonName.Append(' ');
commonName.Append(orgUnitPos, orgUnitLen);
}
char* commonChar = commonName.ToNewCString();
if (!commonChar) return NS_ERROR_OUT_OF_MEMORY;
rv = certificate->SetCommonName(commonChar);
Recycle(commonChar);
return rv;
}

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nscore.h"
#include "nsIPSMComponent.h"
#include "nsISignatureVerifier.h"
#include "nsIStringBundle.h"
#include "nsIContentHandler.h"
#define SECURITY_STRING_BUNDLE_URL "chrome://communicator/locale/security.properties"
#define NS_PSMCOMPONENT_CID {0xddcae170, 0x5412, 0x11d3, {0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37}}
// Implementation of the PSM component interface.
class nsPSMComponent : public nsIPSMComponent,
public nsIContentHandler,
public nsISignatureVerifier
{
public:
NS_DEFINE_STATIC_CID_ACCESSOR( NS_PSMCOMPONENT_CID );
nsPSMComponent();
virtual ~nsPSMComponent();
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMCOMPONENT
NS_DECL_NSICONTENTHANDLER
NS_DECL_NSISIGNATUREVERIFIER
static NS_METHOD CreatePSMComponent(nsISupports* aOuter, REFNSIID aIID, void **aResult);
private:
PCMT_CONTROL mControl;
nsCOMPtr<nsISupports> mSecureBrowserIU;
static nsPSMComponent* mInstance;
};

View File

@@ -1,178 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsPSMUICallbacks.h"
#include "nsPSMComponent.h"
#include "nsISecureBrowserUI.h"
#include "nsSecureBrowserUIImpl.h"
#include "nsSSLSocketProvider.h"
#include "nsSDR.h"
#include "nsFSDR.h"
#include "nsCrypto.h"
#include "nsKeygenHandler.h"
//For the NS_CRYPTO_PROGID define
#include "nsDOMCID.h"
#include "nsCURILoader.h"
#include "nsISupportsUtils.h"
// Define SDR object constructor
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_IID(kFormProcessorCID, NS_IFORMPROCESSOR_CID);
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSecretDecoderRing, init)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsFSecretDecoderRing, init)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsCrypto, init)
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPkcs11, init)
static nsModuleComponentInfo components[] =
{
{
PSM_COMPONENT_CLASSNAME,
NS_PSMCOMPONENT_CID,
PSM_COMPONENT_PROGID,
nsPSMComponent::CreatePSMComponent
},
{
"PSM Content Handler - application/x-x509-ca-cert",
NS_PSMCOMPONENT_CID,
NS_CONTENT_HANDLER_PROGID_PREFIX"application/x-x509-ca-cert",
nsPSMComponent::CreatePSMComponent
},
{
"PSM Content Handler - application/x-x509-server-cert",
NS_PSMCOMPONENT_CID,
NS_CONTENT_HANDLER_PROGID_PREFIX"application/x-x509-server-cert",
nsPSMComponent::CreatePSMComponent
},
{
"PSM Content Handler - application/x-x509-user-cert",
NS_PSMCOMPONENT_CID,
NS_CONTENT_HANDLER_PROGID_PREFIX"application/x-x509-user-cert",
nsPSMComponent::CreatePSMComponent
},
{
"PSM Content Handler - application/x-x509-email-cert",
NS_PSMCOMPONENT_CID,
NS_CONTENT_HANDLER_PROGID_PREFIX"application/x-x509-email-cert",
nsPSMComponent::CreatePSMComponent
},
{
PSM_UI_HANLDER_CLASSNAME,
NS_PSMUIHANDLER_CID,
PSM_UI_HANLDER_PROGID,
nsPSMUIHandlerImpl::CreatePSMUIHandler
},
{
NS_SECURE_BROWSER_UI_CLASSNAME,
NS_SECURE_BROWSER_UI_CID,
NS_SECURE_BROWSER_UI_PROGID,
nsSecureBrowserUIImpl::Create
},
{
NS_SECURE_BROWSER_DOCOBSERVER_CLASSNAME,
NS_SECURE_BROWSER_DOCOBSERVER_CID,
NS_SECURE_BROWSER_DOCOBSERVER_PROGID,
nsSecureBrowserUIImpl::Create
},
{
NS_ISSLSOCKETPROVIDER_CLASSNAME,
NS_SSLSOCKETPROVIDER_CID,
NS_ISSLSOCKETPROVIDER_PROGID,
nsSSLSocketProvider::Create
},
{
NS_SDR_CLASSNAME,
NS_SDR_CID,
NS_SDR_PROGID,
nsSecretDecoderRingConstructor
},
{
NS_FSDR_CLASSNAME,
NS_FSDR_CID,
NS_FSDR_PROGID,
nsFSecretDecoderRingConstructor
},
{
NS_CRYPTO_CLASSNAME,
NS_CRYPTO_CID,
NS_CRYPTO_PROGID,
nsCryptoConstructor
},
{
NS_PKCS11_CLASSNAME,
NS_PKCS11_CID,
NS_PKCS11_PROGID,
nsPkcs11Constructor
}
};
#if 0
NS_IMPL_NSGETMODULE("PSMComponent", components);
#endif
extern "C" NS_EXPORT nsresult NSGetModule(nsIComponentManager *servMgr,
nsIFile* location,
nsIModule** result)
{
nsresult rv;
// Put in code to register KEYGEN form input handler.
rv= NS_NewGenericModule("PSMComponent",
sizeof(components) / sizeof(components[0]),
components, nsnull, result);
// Register a form processor. The form processor has the opportunity to
// modify the value's passed during form submission.
nsKeygenFormProcessor* testFormProcessor = new nsKeygenFormProcessor();
nsCOMPtr<nsISupports> formProcessor;
rv = testFormProcessor->QueryInterface(kISupportsIID,
getter_AddRefs(formProcessor));
if (NS_SUCCEEDED(rv) && formProcessor) {
rv = nsServiceManager::RegisterService(kFormProcessorCID, formProcessor);
}
return rv;
}

View File

@@ -1,72 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "prmon.h"
#include "prtypes.h"
#include "nsPSMMutex.h"
static PRMonitor *_nsPSMMutexVar;
PRStatus
nsPSMMutexInit()
{
if (!_nsPSMMutexVar)
_nsPSMMutexVar = PR_NewMonitor();
return _nsPSMMutexVar ? PR_SUCCESS : PR_FAILURE;
}
PRStatus
nsPSMMutexDestroy()
{
if (!_nsPSMMutexVar)
return PR_FAILURE;
PR_Wait(_nsPSMMutexVar, PR_INTERVAL_NO_TIMEOUT);
PR_DestroyMonitor(_nsPSMMutexVar);
return PR_SUCCESS;
}
static void
nsPSMMutexLock(CMTMutexPointer *p)
{
PR_EnterMonitor(*(PRMonitor **)p);
return;
}
static void
nsPSMMutexUnlock(CMTMutexPointer *p)
{
PR_ExitMonitor(*(PRMonitor **)p);
return;
}
CMT_MUTEX nsPSMMutexTbl =
{
&_nsPSMMutexVar,
(CMTMutexFunction)nsPSMMutexLock,
(CMTMutexFunction)nsPSMMutexUnlock
};

View File

@@ -1,39 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef _NSPSMMUTEX_H
#define _NSPSMMUTEX_H
#include "cmtcmn.h"
PR_BEGIN_EXTERN_C
PR_EXTERN(CMT_MUTEX) nsPSMMutexTbl;
PR_EXTERN(PRStatus) nsPSMMutexInit(void);
PR_EXTERN(PRStatus) nsPSMMutexDestroy(void);
PR_END_EXTERN_C
#endif

View File

@@ -1,293 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nspr.h"
#include "nsPSMShimLayer.h"
#ifdef XP_UNIX
#include <sys/stat.h>
#include <unistd.h>
#include "private/pprio.h" /* for PR_Socket */
#endif
#define PSM_TIMEOUT_IN_SEC 300
#define NSPSMSHIMMAXFD 50
static PRIntervalTime gTimeout = PR_INTERVAL_NO_TIMEOUT;
CMT_SocketFuncs nsPSMShimTbl =
{
nsPSMShimGetSocket,
nsPSMShimConnect,
nsPSMShimVerifyUnixSocket,
nsPSMShimSend,
nsPSMShimSelect,
nsPSMShimReceive,
nsPSMShimShutdown,
nsPSMShimClose
};
CMTSocket
nsPSMShimGetSocket(int unixSock)
{
PRStatus rv;
PRFileDesc *fd;
CMSocket *sock;
PRSocketOptionData sockopt;
/*
if (PR_INTERVAL_NO_WAIT == gTimeout)
{
gTimeout = PR_SecondsToInterval(PSM_TIMEOUT_IN_SEC);
}
*/
if (unixSock)
{
#ifndef XP_UNIX
return NULL;
#else
fd = PR_Socket(PR_AF_LOCAL, PR_SOCK_STREAM, 0);
PR_ASSERT(fd);
#endif
}
else
{
fd = PR_NewTCPSocket();
PR_ASSERT(fd);
/* disable Nagle algorithm delay for control sockets */
sockopt.option = PR_SockOpt_NoDelay;
sockopt.value.no_delay = PR_TRUE;
rv = PR_SetSocketOption(fd, &sockopt);
PR_ASSERT(PR_SUCCESS == rv);
}
sock = (CMSocket *)PR_Malloc(sizeof(CMSocket));
if (sock == NULL)
return sock;
sock->fd = fd;
sock->isUnix = unixSock;
memset(&sock->netAddr, 0, sizeof(PRNetAddr));
return (CMTSocket)sock;
}
CMTStatus
nsPSMShimConnect(CMTSocket sock, short port, char *path)
{
CMTStatus rv = CMTSuccess;
PRStatus err;
PRErrorCode errcode;
PRSocketOptionData sockopt;
PRBool nonBlocking;
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
if (cmSock->isUnix)
{
#ifndef XP_UNIX
return CMTFailure;
#else
int pathLen;
if (!path)
{
return CMTFailure;
}
/* check buffer overrun */
pathLen = strlen(path)+1;
pathLen = pathLen < sizeof(cmSock->netAddr.local.path)
? pathLen : sizeof(cmSock->netAddr.local.path);
memcpy(&cmSock->netAddr.local.path, path, pathLen);
cmSock->netAddr.local.family = PR_AF_LOCAL;
#endif
}
else /* cmSock->isUnix */
{
cmSock->netAddr.inet.family = PR_AF_INET;
cmSock->netAddr.inet.port = PR_htons(port);
cmSock->netAddr.inet.ip = PR_htonl(PR_INADDR_LOOPBACK);
}
/* Save non-blocking status */
sockopt.option = PR_SockOpt_Nonblocking;
err = PR_GetSocketOption(cmSock->fd, &sockopt);
PR_ASSERT(PR_SUCCESS == err);
nonBlocking = sockopt.value.non_blocking;
/* make connect blocking for now */
sockopt.option = PR_SockOpt_Nonblocking;
sockopt.value.non_blocking = PR_FALSE;
err = PR_SetSocketOption(cmSock->fd, &sockopt);
PR_ASSERT(PR_SUCCESS == err);
err = PR_Connect( cmSock->fd, &cmSock->netAddr, PR_INTERVAL_MAX );
if (err == PR_FAILURE)
{
errcode = PR_GetError();
if (PR_IS_CONNECTED_ERROR != errcode)
rv = CMTFailure;
}
/* restore nonblock status */
if (nonBlocking) {
sockopt.option = PR_SockOpt_Nonblocking;
sockopt.value.non_blocking = nonBlocking;
err = PR_SetSocketOption(cmSock->fd, &sockopt);
PR_ASSERT(PR_SUCCESS == err);
}
return rv;
}
CMTStatus
nsPSMShimVerifyUnixSocket(CMTSocket sock)
{
#ifndef XP_UNIX
return CMTFailure;
#else
int rv;
CMSocket *cmSock;
struct stat statbuf;
cmSock = (CMSocket *)sock;
if (!cmSock || !cmSock->isUnix)
return CMTFailure;
rv = stat(cmSock->netAddr.local.path, &statbuf);
if (rv < 0 || statbuf.st_uid != geteuid() )
{
PR_Close(cmSock->fd);
cmSock->fd = NULL;
PR_Free(cmSock);
return CMTFailure;
}
return CMTSuccess;
#endif
}
size_t
nsPSMShimSend(CMTSocket sock, void *buffer, size_t length)
{
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
return PR_Send(cmSock->fd, buffer, length, 0, gTimeout);
}
size_t
nsPSMShimReceive(CMTSocket sock, void *buffer, size_t bufSize)
{
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
return PR_Recv(cmSock->fd, buffer, bufSize, 0, gTimeout);
}
CMTSocket
nsPSMShimSelect(CMTSocket *socks, int numsocks, int poll)
{
CMSocket **sockArr = (CMSocket **)socks;
PRPollDesc readPDs[NSPSMSHIMMAXFD];
PRIntervalTime timeout;
PRInt32 cnt;
int i;
if (!socks) return NULL;
memset(readPDs, 0, sizeof(readPDs));
PR_ASSERT(NSPSMSHIMMAXFD >= numsocks);
for (i=0; i<numsocks; i++)
{
readPDs[i].fd = sockArr[i]->fd;
readPDs[i].in_flags = PR_POLL_READ;
}
timeout = poll ? PR_INTERVAL_NO_WAIT : PR_INTERVAL_NO_TIMEOUT;
cnt = PR_Poll(readPDs, numsocks, timeout);
/* Figure out which socket was selected */
if (cnt > 0)
{
for (i=0; i<numsocks; i++)
{
if (readPDs[i].out_flags & PR_POLL_READ)
{
return (CMTSocket)sockArr[i];
}
}
}
return NULL;
}
CMTStatus
nsPSMShimShutdown(CMTSocket sock)
{
CMSocket *cmSock = (CMSocket*)sock;
PRStatus rv;
if (!sock) return CMTFailure;
rv = PR_Shutdown(cmSock->fd, PR_SHUTDOWN_SEND);
return (PR_SUCCESS == rv) ? CMTSuccess : CMTFailure;
}
CMTStatus
nsPSMShimClose(CMTSocket sock)
{
CMSocket *cmSock = (CMSocket*)sock;
PRStatus rv = PR_SUCCESS;
PR_ASSERT(cmSock);
if (!sock) return CMTFailure;
rv = PR_Close(cmSock->fd);
cmSock->fd = NULL;
PR_Free(cmSock);
return (PR_SUCCESS == rv) ? CMTSuccess : CMTFailure;
}

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef _NSPSMSHIMLAYER_H_
#define _NSPSMSHIMLAYER_H_
#include "cmtcmn.h"
#include "prio.h"
PR_BEGIN_EXTERN_C
typedef struct CMSocket {
PRFileDesc *fd;
PRBool isUnix;
PRNetAddr netAddr;
} CMSocket;
PR_EXTERN(CMT_SocketFuncs) nsPSMShimTbl;
PR_EXTERN(CMTSocket)
nsPSMShimGetSocket(int unixSock);
PR_EXTERN(CMTStatus)
nsPSMShimConnect(CMTSocket sock, short port, char *path);
PR_EXTERN(CMTStatus)
nsPSMShimVerifyUnixSocket(CMTSocket sock);
PR_EXTERN(size_t)
nsPSMShimSend(CMTSocket sock, void *buffer, size_t length);
PR_EXTERN(CMTSocket)
nsPSMShimSelect(CMTSocket *socks, int numsocks, int poll);
PR_EXTERN(size_t)
nsPSMShimReceive(CMTSocket sock, void *buffer, size_t bufSize);
PR_EXTERN(CMTStatus)
nsPSMShimShutdown(CMTSocket sock);
PR_EXTERN(CMTStatus)
nsPSMShimClose(CMTSocket sock);
PR_END_EXTERN_C
#endif /* _NSPSMSHIMLAYER_H_ */

View File

@@ -1,348 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsProxiedService.h"
#include "nsIEventQueueService.h"
#include "nsPSMUICallbacks.h"
#include "nsINetSupportDialogService.h"
#include "nsIFilePicker.h"
#include "nsAppShellCIDs.h"
#include "prprf.h"
#include "prmem.h"
#include "nsSSLIOLayer.h" // for SSMSTRING_PADDED_LENGTH
#include "ssmdefs.h"
#include "rsrcids.h"
// Interfaces Needed
#include "nsIAppShellService.h"
#include "nsIDocShell.h"
#include "nsIDOMWindow.h"
#include "nsIInterfaceRequestor.h"
#include "nsIPrompt.h"
#include "nsIScriptGlobalObject.h"
#include "nsIURL.h"
#include "nsIXULWindow.h"
static NS_DEFINE_IID(kAppShellServiceCID, NS_APPSHELL_SERVICE_CID);
static NS_DEFINE_CID(kNetSupportDialogCID, NS_NETSUPPORTDIALOG_CID);
// Happy callbacks
static char * PromptUserCallback(void *arg, char *prompt, int isPasswd);
static char * FilePathPromptCallback(void *arg, char *prompt, char *fileRegEx, CMUint32 shouldFileExist);
static void ApplicationFreeCallback(char *userInput);
static void * CartmanUIHandler(uint32 resourceID, void* clientContext, uint32 width, uint32 height,
CMBool isModal, char* urlStr, void *data);
extern "C" void CARTMAN_UIEventLoop(void *data);
/* nsISupports Implementation for the class */
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPSMUIHandlerImpl, nsIPSMUIHandler)
NS_METHOD
nsPSMUIHandlerImpl::DisplayURI(PRInt32 width, PRInt32 height, PRBool modal, const char *urlStr)
{
nsresult rv;
nsCOMPtr<nsIDOMWindow> hiddenWindow;
JSContext *jsContext;
NS_WITH_SERVICE(nsIAppShellService, appShell, kAppShellServiceCID, &rv);
if (NS_SUCCEEDED(rv))
{
rv = appShell->GetHiddenWindowAndJSContext( getter_AddRefs( hiddenWindow ),
&jsContext );
if ( NS_SUCCEEDED( rv ) )
{
// Set up arguments for "window.open"
void *stackPtr;
char params[36];
if (modal) // if you change this, remember to change the buffer size above.
strcpy(params, "menubar=no,height=%d,width=%d,modal");
else
strcpy(params, "menubar=no,height=%d,width=%d");
char buffer[256];
PR_snprintf(buffer,
sizeof(buffer),
params,
height,
width );
jsval *argv = JS_PushArguments(jsContext, &stackPtr, "sss", urlStr, "_blank", buffer);
if (argv)
{
// open the window
nsIDOMWindow *newWindow;
hiddenWindow->Open(jsContext, argv, 3, &newWindow);
newWindow->ResizeTo(width, height);
JS_PopArguments(jsContext, stackPtr);
}
}
}
return rv;
}
NS_IMETHODIMP
nsPSMUIHandlerImpl::PromptForFile(const PRUnichar *prompt, const char *fileRegEx, PRBool shouldFileExist, char **outFile)
{
NS_ENSURE_ARG_POINTER(outFile);
nsCOMPtr<nsIFilePicker> fp = do_CreateInstance("component://mozilla/filepicker");
if (!fp)
return NS_ERROR_NULL_POINTER;
fp->Init(nsnull, prompt, nsIFilePicker::modeOpen);
fp->AppendFilter(NS_ConvertASCIItoUCS2(fileRegEx).GetUnicode(), NS_ConvertASCIItoUCS2(fileRegEx).GetUnicode());
fp->AppendFilters(nsIFilePicker::filterAll);
PRInt16 mode;
nsresult rv = fp->Show(&mode);
if (NS_FAILED(rv) || (mode == nsIFilePicker::returnCancel))
return rv;
nsCOMPtr<nsILocalFile> file;
rv = fp->GetFile(getter_AddRefs(file));
if (file)
file->GetPath(outFile);
return rv;
}
NS_METHOD
nsPSMUIHandlerImpl::CreatePSMUIHandler(nsISupports* aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv = NS_OK;
if ( aResult )
{
/* Allocate new find component object. */
nsPSMUIHandlerImpl *component = new nsPSMUIHandlerImpl();
if ( component )
{
/* Allocated OK, do query interface to get proper */
/* pointer and increment refcount. */
rv = component->QueryInterface( aIID, aResult );
if ( NS_FAILED( rv ) )
{
/* refcount still at zero, delete it here. */
delete component;
}
}
else
{
rv = NS_ERROR_OUT_OF_MEMORY;
}
}
else
{
rv = NS_ERROR_NULL_POINTER;
}
return rv;
}
extern "C" void CARTMAN_UIEventLoop(void *data)
{
CMT_EventLoop((PCMT_CONTROL)data);
}
PRStatus InitPSMEventLoop(PCMT_CONTROL control)
{
PR_CreateThread(PR_USER_THREAD,
CARTMAN_UIEventLoop,
control,
PR_PRIORITY_NORMAL,
PR_GLOBAL_THREAD,
PR_UNJOINABLE_THREAD,
0);
return PR_SUCCESS;
}
PRStatus InitPSMUICallbacks(PCMT_CONTROL control)
{
if (!control)
return PR_FAILURE;
CMT_SetPromptCallback(control, (promptCallback_fn)PromptUserCallback, nsnull);
CMT_SetAppFreeCallback(control, (applicationFreeCallback_fn) ApplicationFreeCallback);
CMT_SetFilePathPromptCallback(control, (filePathPromptCallback_fn) FilePathPromptCallback, nsnull);
if (CMT_SetUIHandlerCallback(control, (uiHandlerCallback_fn) CartmanUIHandler, NULL) != CMTSuccess)
return PR_FAILURE;
return PR_SUCCESS;
}
PRStatus DisplayPSMUIDialog(PCMT_CONTROL control, const char *pickledStatus, const char *hostName)
{
CMUint32 advRID = 0;
CMInt32 width = 0;
CMInt32 height = 0;
CMTItem urlItem = {0, NULL, 0};
CMTStatus rv = CMTSuccess;
CMTItem advisorContext = {0, NULL, 0};
void * pwin;
CMTSecurityAdvisorData data;
memset(&data, '\0', sizeof(CMTSecurityAdvisorData));
if (hostName)
{
// if there is a hostName, than this request is about
// a webpage.
data.hostname = (char*) hostName;
data.infoContext = SSM_BROWSER;
if (pickledStatus)
{
CMTItem pickledResource = {0, NULL, 0};
CMUint32 socketStatus = 0;
pickledResource.len = *(int*)(pickledStatus);
pickledResource.data = (unsigned char*) PR_Malloc(SSMSTRING_PADDED_LENGTH(pickledResource.len));
if (! pickledResource.data) return PR_FAILURE;
memcpy(pickledResource.data, pickledStatus+sizeof(int), pickledResource.len);
/* Unpickle the SSL Socket Status */
if (CMT_UnpickleResource( control,
SSM_RESTYPE_SSL_SOCKET_STATUS,
pickledResource,
&socketStatus) == CMTSuccess)
{
data.infoContext = SSM_BROWSER;
data.resID = socketStatus;
}
PR_FREEIF(pickledResource.data);
}
}
/* Create a Security Advisor context object. */
rv = CMT_SecurityAdvisor(control, &data, &advRID);
if (rv != CMTSuccess)
return PR_FAILURE;
/* Get the URL, width, height, etc. from the advisor context. */
rv = CMT_GetStringAttribute(control,
advRID,
SSM_FID_SECADVISOR_URL,
&urlItem);
if ((rv != CMTSuccess) || (!urlItem.data))
return PR_FAILURE;
rv = CMT_GetNumericAttribute(control,
advRID,
SSM_FID_SECADVISOR_WIDTH,
&width);
if (rv != CMTSuccess)
return PR_FAILURE;
rv = CMT_GetNumericAttribute(control,
advRID,
SSM_FID_SECADVISOR_HEIGHT,
&height);
if (rv != CMTSuccess)
return PR_FAILURE;
/* Fire the URL up in a window of its own. */
pwin = CartmanUIHandler(advRID, nsnull, width, height, CM_FALSE, (char*)urlItem.data, NULL);
//allocated by cmt, we can free with free:
free(urlItem.data);
return PR_SUCCESS;
}
void* CartmanUIHandler(uint32 resourceID, void* clientContext, uint32 width, uint32 height, CMBool isModal, char* urlStr, void *data)
{
nsresult rv = NS_OK;
NS_WITH_PROXIED_SERVICE(nsIPSMUIHandler, handler, nsPSMUIHandlerImpl::GetCID(), NS_UI_THREAD_EVENTQ, &rv);
if(NS_SUCCEEDED(rv))
handler->DisplayURI(width, height, isModal, urlStr);
return nsnull;
}
char * PromptUserCallback(void *arg, char *prompt, int isPasswd)
{
nsresult rv = NS_OK;
PRUnichar *password;
PRBool value;
NS_WITH_PROXIED_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, NS_UI_THREAD_EVENTQ, &rv);
if (NS_SUCCEEDED(rv)) {
rv = dialog->PromptPassword(nsnull, NS_ConvertASCIItoUCS2(prompt).GetUnicode(),
NS_ConvertASCIItoUCS2(" ").GetUnicode(), // hostname
PR_TRUE, &password, &value);
if (NS_SUCCEEDED(rv) && value) {
nsString a(password);
char* str = a.ToNewCString();
Recycle(password);
return str;
}
}
return nsnull;
}
void ApplicationFreeCallback(char *userInput)
{
nsMemory::Free(userInput);
}
char * FilePathPromptCallback(void *arg, char *prompt, char *fileRegEx, CMUint32 shouldFileExist)
{
nsresult rv = NS_OK;
char* filePath = nsnull;
NS_WITH_PROXIED_SERVICE(nsIPSMUIHandler, handler, nsPSMUIHandlerImpl::GetCID(), NS_UI_THREAD_EVENTQ, &rv);
if(NS_SUCCEEDED(rv))
handler->PromptForFile(NS_ConvertASCIItoUCS2(prompt).GetUnicode(), fileRegEx, (PRBool)shouldFileExist, &filePath);
return filePath;
}

View File

@@ -1,56 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef _NSPSMUICALLBACKS_H
#define _NSPSMUICALLBACKS_H
#include "prtypes.h"
#include "cmtcmn.h"
#include "nsIPSMUIHandler.h"
PRStatus InitPSMUICallbacks(PCMT_CONTROL gControl);
PRStatus InitPSMEventLoop(PCMT_CONTROL gControl);
PRStatus DisplayPSMUIDialog(PCMT_CONTROL control, const char* pickledStatus, const char *hostName);
#define NS_PSMUIHANDLER_CID {0x15944e30, 0x601e, 0x11d3, {0x8c, 0x4a, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74}}
class nsPSMUIHandlerImpl : public nsIPSMUIHandler
{
public:
NS_DEFINE_STATIC_CID_ACCESSOR( NS_PSMUIHANDLER_CID );
/* ctor/dtor */
nsPSMUIHandlerImpl() { NS_INIT_REFCNT(); }
virtual ~nsPSMUIHandlerImpl() { }
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMUIHANDLER
static NS_METHOD CreatePSMUIHandler(nsISupports* aOuter, REFNSIID aIID, void **aResult);
};
#endif

View File

@@ -1,320 +0,0 @@
/* -*- Mode: C++; tab-width: 4; 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* thayes@netscape.com
*/
#include "stdlib.h"
#include "plstr.h"
#include "nsMemory.h"
#include "nsIServiceManager.h"
#include "plbase64.h"
#include "nsISecretDecoderRing.h"
#include "cmtcmn.h"
#include "nsIPSMComponent.h"
#include "nsSDR.h"
NS_IMPL_ISUPPORTS1(nsSecretDecoderRing, nsISecretDecoderRing)
nsSecretDecoderRing::nsSecretDecoderRing()
{
NS_INIT_ISUPPORTS();
mPSM = NULL;
}
nsSecretDecoderRing::~nsSecretDecoderRing()
{
if (mPSM) mPSM->Release();
}
/* Init the new instance */
nsresult nsSecretDecoderRing::
init()
{
nsresult rv;
nsISupports *psm;
rv = nsServiceManager::GetService(kPSMComponentProgID, NS_GET_IID(nsIPSMComponent),
&psm);
if (rv != NS_OK) goto loser; /* Should promote error */
mPSM = (nsIPSMComponent *)psm;
loser:
return rv;
}
/* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
NS_IMETHODIMP nsSecretDecoderRing::
Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
{
nsresult rv = NS_OK;
unsigned char *r = 0;
CMT_CONTROL *control;
CMTStatus status;
CMUint32 cLen;
if (data == nsnull || result == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connect to use for the request */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
status = CMT_SDREncrypt(control, (void *)0, (const unsigned char *)0, 0,
data, dataLen, result, &cLen);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* XXX */
/* Copy returned data to nsMemory buffer ? */
*_retval = cLen;
loser:
return rv;
}
/* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
NS_IMETHODIMP nsSecretDecoderRing::
Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
{
nsresult rv = NS_OK;
CMTStatus status;
CMT_CONTROL *control;
CMUint32 len;
if (data == nsnull || result == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connection */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
/* Call PSM to decrypt the value */
status = CMT_SDRDecrypt(control, (void *)0, data, dataLen, result, &len);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* Promote? */
/* Copy returned data to nsMemory buffer ? */
*_retval = len;
loser:
return rv;
}
/* string encryptString (in string text); */
NS_IMETHODIMP nsSecretDecoderRing::
EncryptString(const char *text, char **_retval)
{
nsresult rv = NS_OK;
unsigned char *encrypted = 0;
PRInt32 eLen;
if (text == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
rv = Encrypt((unsigned char *)text, PL_strlen(text), &encrypted, &eLen);
if (rv != NS_OK) { goto loser; }
rv = encode(encrypted, eLen, _retval);
loser:
if (encrypted) nsMemory::Free(encrypted);
return rv;
}
/* string decryptString (in string crypt); */
NS_IMETHODIMP nsSecretDecoderRing::
DecryptString(const char *crypt, char **_retval)
{
nsresult rv = NS_OK;
char *r = 0;
unsigned char *decoded = 0;
PRInt32 decodedLen;
unsigned char *decrypted = 0;
PRInt32 decryptedLen;
if (crypt == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
rv = decode(crypt, &decoded, &decodedLen);
if (rv != NS_OK) goto loser;
rv = Decrypt(decoded, decodedLen, &decrypted, &decryptedLen);
if (rv != NS_OK) goto loser;
// Convert to NUL-terminated string
r = (char *)nsMemory::Alloc(decryptedLen+1);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, decrypted, decryptedLen);
r[decryptedLen] = 0;
*_retval = r;
r = 0;
loser:
if (r) nsMemory::Free(r);
if (decrypted) nsMemory::Free(decrypted);
if (decoded) nsMemory::Free(decoded);
return rv;
}
/* void changePassword(); */
NS_IMETHODIMP nsSecretDecoderRing::
ChangePassword()
{
nsresult rv = NS_OK;
CMTStatus status;
CMT_CONTROL *control;
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
status = CMT_SDRChangePassword(control, (void*)0);
loser:
return rv;
}
/* void logout(); */
NS_IMETHODIMP nsSecretDecoderRing::
Logout()
{
nsresult rv = NS_OK;
CMTStatus status;
CMT_CONTROL *control;
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connection */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
/* Call PSM to decrypt the value */
status = CMT_LogoutAllTokens(control);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* Promote? */
loser:
return rv;
}
// Support routines
nsresult nsSecretDecoderRing::
encode(const unsigned char *data, PRInt32 dataLen, char **_retval)
{
nsresult rv = NS_OK;
*_retval = PL_Base64Encode((const char *)data, dataLen, NULL);
if (!*_retval) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
loser:
return rv;
#if 0
nsresult rv = NS_OK;
char *r = 0;
// Allocate space for encoded string (with NUL)
r = (char *)nsMemory::Alloc(dataLen+1);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, data, dataLen);
r[dataLen] = 0;
*_retval = r;
r = 0;
loser:
if (r) nsMemory::Free(r);
return rv;
#endif
}
nsresult nsSecretDecoderRing::
decode(const char *data, unsigned char **result, PRInt32 * _retval)
{
nsresult rv = NS_OK;
PRUint32 len = PL_strlen(data);
int adjust = 0;
/* Compute length adjustment */
if (data[len-1] == '=') {
adjust++;
if (data[len-2] == '=') adjust++;
}
*result = (unsigned char *)PL_Base64Decode(data, len, NULL);
if (!*result) { rv = NS_ERROR_ILLEGAL_VALUE; goto loser; }
*_retval = (len*3)/4 - adjust;
loser:
return rv;
#if 0
nsresult rv = NS_OK;
unsigned char *r = 0;
PRInt32 rLen;
// Allocate space for decoded string (missing NUL)
rLen = PL_strlen(data);
r = (unsigned char *)nsMemory::Alloc(rLen);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, data, rLen);
*result = r;
r = 0;
*_retval = rLen;
loser:
if (r) nsMemory::Free(r);
return rv;
#endif
}
const char * nsSecretDecoderRing::kPSMComponentProgID = PSM_COMPONENT_PROGID;

View File

@@ -1,58 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Terry Hayes <thayes@netscape.com>
*/
#ifndef _NSSDR_H_
#define _NSSDR_H_
#include "nsISecretDecoderRing.h"
// ===============================================
// nsSecretDecoderRing - implementation of nsISecretDecoderRing
// ===============================================
#define NS_SDR_CLASSNAME "Secret Decoder Ring"
#define NS_SDR_CID \
{ 0xd9a0341, 0xce7, 0x11d4, { 0x9f, 0xdd, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
#define NS_SDR_PROGID "netscape.security.sdr"
class nsSecretDecoderRing : public nsISecretDecoderRing
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISECRETDECODERRING
nsSecretDecoderRing();
virtual ~nsSecretDecoderRing();
nsresult init();
private:
nsIPSMComponent *mPSM;
static const char *kPSMComponentProgID;
nsresult encode(const unsigned char *data, PRInt32 dataLen, char **_retval);
nsresult decode(const char *data, unsigned char **result, PRInt32 * _retval);
};
#endif /* _NSSDR_H_ */

View File

@@ -1,550 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nspr.h"
#include "nsString.h"
#include "cmtcmn.h"
#include "nsIPSMComponent.h"
#include "nsIPSMSocketInfo.h"
#include "nsIServiceManager.h"
#include "nsPSMShimLayer.h"
#include "nsSSLIOLayer.h"
static PRDescIdentity nsSSLIOLayerIdentity;
static PRIOMethods nsSSLIOLayerMethods;
static nsIPSMComponent* gPSMService = nsnull;
class nsPSMSocketInfo : public nsIPSMSocketInfo
{
public:
nsPSMSocketInfo();
virtual ~nsPSMSocketInfo();
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMSOCKETINFO
// internal functions to psm-glue.
nsresult SetSocketPtr(CMSocket *socketPtr);
nsresult SetControlPtr(CMT_CONTROL *aControlPtr);
nsresult SetFileDescPtr(PRFileDesc *aControlPtr);
nsresult SetHostName(char *aHostName);
nsresult SetProxyName(char *aName);
nsresult SetHostPort(PRInt32 aPort);
nsresult SetProxyPort(PRInt32 aPort);
nsresult SetPickledStatus();
protected:
CMT_CONTROL* mControl;
CMSocket* mSocket;
PRFileDesc* mFd;
nsString mHostName;
PRInt32 mHostPort;
nsString mProxyName;
PRInt32 mProxyPort;
unsigned char* mPickledStatus;
};
static PRStatus PR_CALLBACK
nsSSLIOLayerConnect(PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout)
{
nsresult result;
PRStatus rv = PR_SUCCESS;
CMTStatus status = CMTFailure;
/* Set the error in case of failure. */
PR_SetError(PR_UNKNOWN_ERROR, status);
if (!fd || !addr || !fd->secret || !gPSMService)
return PR_FAILURE;
char ipBuffer[PR_NETDB_BUF_SIZE];
rv = PR_NetAddrToString(addr, (char*)&ipBuffer, PR_NETDB_BUF_SIZE);
if (rv != PR_SUCCESS)
return PR_FAILURE;
if (addr->raw.family == PR_AF_INET6 && PR_IsNetAddrType(addr, PR_IpAddrV4Mapped))
{
/* Chop off the leading "::ffff:" */
strcpy(ipBuffer, ipBuffer + 7);
}
CMT_CONTROL *control;
result = gPSMService->GetControlConnection(&control);
if (result != PR_SUCCESS)
return PR_FAILURE;
CMSocket* cmsock = (CMSocket *)PR_Malloc(sizeof(CMSocket));
if (!cmsock)
return PR_FAILURE;
memset(cmsock, 0, sizeof(CMSocket));
cmsock->fd = fd->lower;
cmsock->isUnix = PR_FALSE;
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
infoObject->SetControlPtr(control);
infoObject->SetSocketPtr(cmsock);
char* proxyName;
char* hostName;
infoObject->GetProxyName(&proxyName);
infoObject->GetHostName(&hostName);
if (!proxyName)
{
// Direct connection
status = CMT_OpenSSLConnection(control,
cmsock,
SSM_REQUEST_SSL_DATA_SSL,
PR_ntohs(addr->inet.port),
ipBuffer,
(hostName ? hostName : ipBuffer),
CM_FALSE,
nsnull);
}
else
{
// not supported yet.
return PR_FAILURE;
#if 0
PRInt32 destPort;
infoObject->GetProxyPort(&destPort);
status = CMT_OpenSSLProxyConnection(control,
cmsock,
destPort,
proxyName, // wants IP
hostName);
#endif
}
if (hostName) Recycle(hostName);
if (proxyName) Recycle(proxyName);
if (CMTSuccess == status)
{
// since our stuff can block, what we want to do is return PR_FAILURE,
// but set the nspr ERROR to BLOCK. This will put us into a select
// q.
PR_SetError(PR_WOULD_BLOCK_ERROR, status);
return PR_FAILURE;
}
return PR_FAILURE;
}
/* CMT_DestroyDataConnection(ctrl, sock); */
/* need to strip our layer, pass result to DestroyDataConnection */
/* which will clean up the CMT accounting of sock, then call our */
/* shim layer to translate back to NSPR */
static PRStatus PR_CALLBACK
nsSSLIOLayerClose(PRFileDesc *fd)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
PR_Shutdown(fd, PR_SHUTDOWN_BOTH);
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
infoObject->SetPickledStatus();
CMT_GetSSLDataErrorCode(control, socket, &errorCode);
CMT_DestroyDataConnection(control, socket);
NS_RELEASE(infoObject); // if someone is interested in us, the better have an addref.
fd->identity = PR_INVALID_IO_LAYER;
return (PRStatus)errorCode;
}
return PR_FAILURE;
}
static PRInt32 PR_CALLBACK
nsSSLIOLayerRead( PRFileDesc *fd, void *buf, PRInt32 amount)
{
if (!fd)
return PR_FAILURE;
PRInt32 result = PR_Recv(fd, buf, amount, 0, PR_INTERVAL_MIN);
if (result > 0)
return result;
if (result == -1)
{
PRErrorCode code = PR_GetError();
if (code == PR_IO_TIMEOUT_ERROR )
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
if (result == 0)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
CMT_GetSSLDataErrorCode(control, socket, &errorCode);
if (errorCode == PR_IO_TIMEOUT_ERROR)
{
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
PR_SetError(0, 0);
return errorCode;
}
}
return result;
}
static PRInt32 PR_CALLBACK
nsSSLIOLayerWrite( PRFileDesc *fd, const void *buf, PRInt32 amount)
{
if (!fd)
return PR_FAILURE;
PRInt32 result = PR_Send(fd, buf, amount, 0, PR_INTERVAL_MIN);
if (result > 0)
return result;
if (result == -1)
{
PRErrorCode code = PR_GetError();
if (code == PR_IO_TIMEOUT_ERROR )
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
if (result == 0)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
CMT_GetSSLDataErrorCode(control, socket, &errorCode);
PR_SetError(0, 0);
return errorCode;
}
}
return result;
}
nsPSMSocketInfo::nsPSMSocketInfo()
{
NS_INIT_REFCNT();
mControl = nsnull;
mSocket = nsnull;
mPickledStatus = nsnull;
}
nsPSMSocketInfo::~nsPSMSocketInfo()
{
PR_FREEIF(mPickledStatus);
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPSMSocketInfo, nsIPSMSocketInfo);
NS_IMETHODIMP
nsPSMSocketInfo::GetControlPtr(CMT_CONTROL * *aControlPtr)
{
*aControlPtr = mControl;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetControlPtr(CMT_CONTROL *aControlPtr)
{
mControl = aControlPtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetSocketPtr(CMSocket * *socketPtr)
{
*socketPtr = mSocket;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetSocketPtr(CMSocket *socketPtr)
{
mSocket = socketPtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetFileDescPtr(PRFileDesc * *aFilePtr)
{
*aFilePtr = mFd;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetFileDescPtr(PRFileDesc *aFilePtr)
{
mFd = aFilePtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetHostName(char * *aHostName)
{
if (mHostName.IsEmpty())
*aHostName = nsnull;
else
*aHostName = mHostName.ToNewCString();
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetHostName(char *aHostName)
{
mHostName.AssignWithConversion(aHostName);
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetHostPort(PRInt32 *aPort)
{
*aPort = mHostPort;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetHostPort(PRInt32 aPort)
{
mHostPort = aPort;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetProxyName(char * *aName)
{
if (mProxyName.IsEmpty())
*aName = nsnull;
else
*aName = mProxyName.ToNewCString();
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetProxyName(char *aName)
{
mProxyName.AssignWithConversion(aName);
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetProxyPort(PRInt32 *aPort)
{
*aPort = mProxyPort;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetProxyPort(PRInt32 aPort)
{
mProxyPort = aPort;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetPickledStatus()
{
PR_FREEIF(mPickledStatus);
long level;
CMTItem pickledStatus = {0, nsnull, 0};
unsigned char* ret = nsnull;
if (CMT_GetSSLSocketStatus(mControl, mSocket, &pickledStatus, &level) != PR_FAILURE)
{
ret = (unsigned char*) PR_Malloc( (SSMSTRING_PADDED_LENGTH(pickledStatus.len) + sizeof(int)) );
if (ret)
{
*(int*)ret = pickledStatus.len;
memcpy(ret+sizeof(int), pickledStatus.data, *(int*)ret);
}
PR_FREEIF(pickledStatus.data);
mPickledStatus = ret;
}
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetPickledStatus(char * *pickledStatusString)
{
if (!mPickledStatus)
SetPickledStatus();
if (mPickledStatus)
{
PRInt32 len = *(int*)mPickledStatus;
char *out = (char *)nsMemory::Alloc(len);
memcpy(out, mPickledStatus, len);
*pickledStatusString = out;
return NS_OK;
}
*pickledStatusString = nsnull;
return NS_ERROR_FAILURE;
}
nsresult
nsSSLIOLayerNewSocket( const char *host,
PRInt32 port,
const char *proxyHost,
PRInt32 proxyPort,
PRFileDesc **fd,
nsISupports** info)
{
static PRBool firstTime = PR_TRUE;
if (firstTime)
{
nsSSLIOLayerIdentity = PR_GetUniqueIdentity("Cartman layer");
nsSSLIOLayerMethods = *PR_GetDefaultIOMethods();
nsSSLIOLayerMethods.connect = nsSSLIOLayerConnect;
nsSSLIOLayerMethods.close = nsSSLIOLayerClose;
nsSSLIOLayerMethods.read = nsSSLIOLayerRead;
nsSSLIOLayerMethods.write = nsSSLIOLayerWrite;
nsresult result = nsServiceManager::GetService( PSM_COMPONENT_PROGID,
NS_GET_IID(nsIPSMComponent),
(nsISupports**)&gPSMService);
if (NS_FAILED(result))
return PR_FAILURE;
firstTime = PR_FALSE;
}
PRFileDesc * sock;
PRFileDesc * layer;
PRStatus rv;
/* Get a normal NSPR socket */
sock = PR_NewTCPSocket();
if (! sock) return NS_ERROR_OUT_OF_MEMORY;
/* disable Nagle algorithm delay for control sockets */
PRSocketOptionData sockopt;
sockopt.option = PR_SockOpt_NoDelay;
sockopt.value.no_delay = PR_TRUE;
rv = PR_SetSocketOption(sock, &sockopt);
PR_ASSERT(PR_SUCCESS == rv);
layer = PR_CreateIOLayerStub(nsSSLIOLayerIdentity, &nsSSLIOLayerMethods);
if (! layer)
{
PR_Close(sock);
return NS_ERROR_FAILURE;
}
nsPSMSocketInfo *infoObject = new nsPSMSocketInfo();
if (!infoObject)
{
PR_Close(sock);
// clean up IOLayerStub.
return NS_ERROR_FAILURE;
}
NS_ADDREF(infoObject);
infoObject->SetHostName((char*)host);
infoObject->SetHostPort(port);
infoObject->SetProxyName((char*)proxyHost);
infoObject->SetProxyPort(proxyPort);
layer->secret = (PRFilePrivate*) infoObject;
rv = PR_PushIOLayer(sock, PR_GetLayersIdentity(sock), layer);
if (rv == PR_SUCCESS)
{
*fd = sock;
*info = infoObject;
NS_ADDREF(*info);
return NS_OK;
}
PR_Close(sock);
return NS_ERROR_FAILURE;
}

View File

@@ -1,39 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _NSSSLIOLAYER_H
#define _NSSSLIOLAYER_H
#include "prtypes.h"
#include "prio.h"
#include "nsIPSMSocketInfo.h"
// define taken from 4.x cartman glue code.
#define SSMSTRING_PADDED_LENGTH(x) ((((x)+3)/4)*4)
nsresult nsSSLIOLayerNewSocket(const char *host,
PRInt32 port,
const char *proxyHost,
PRInt32 proxyPort,
PRFileDesc **fd,
nsISupports **securityInfo);
#endif /* _NSSSLIOLAYER_H */

View File

@@ -1,94 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsSSLSocketProvider.h"
#include "nsSSLIOLayer.h"
////////////////////////////////////////////////////////////////////////////////
nsSSLSocketProvider::nsSSLSocketProvider()
{
NS_INIT_REFCNT();
}
nsresult
nsSSLSocketProvider::Init()
{
nsresult rv = NS_OK;
return rv;
}
nsSSLSocketProvider::~nsSSLSocketProvider()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsSSLSocketProvider, nsISocketProvider, nsISSLSocketProvider);
NS_METHOD
nsSSLSocketProvider::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
nsSSLSocketProvider * inst;
if (NULL == aResult) {
rv = NS_ERROR_NULL_POINTER;
return rv;
}
*aResult = NULL;
if (NULL != aOuter) {
rv = NS_ERROR_NO_AGGREGATION;
return rv;
}
NS_NEWXPCOM(inst, nsSSLSocketProvider);
if (NULL == inst) {
rv = NS_ERROR_OUT_OF_MEMORY;
return rv;
}
NS_ADDREF(inst);
rv = inst->QueryInterface(aIID, aResult);
NS_RELEASE(inst);
return rv;
}
NS_IMETHODIMP
nsSSLSocketProvider::NewSocket(const char *host,
PRInt32 port,
const char *proxyHost,
PRInt32 proxyPort,
PRFileDesc **_result,
nsISupports **securityInfo)
{
nsresult rv = nsSSLIOLayerNewSocket(host,
port,
proxyHost,
proxyPort,
_result,
securityInfo);
return (NS_FAILED(rv)) ? NS_ERROR_SOCKET_CREATE_FAILED : NS_OK;
}

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _NSSSLSOCKETPROVIDER_H_
#define _NSSSLSOCKETPROVIDER_H_
#include "nsISSLSocketProvider.h"
/* 274418d0-5437-11d3-bbc8-0000861d1237 */
#define NS_SSLSOCKETPROVIDER_CID { 0x274418d0, 0x5437, 0x11d3, {0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37}}
class nsSSLSocketProvider : public nsISSLSocketProvider
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISOCKETPROVIDER
NS_DECL_NSISSLSOCKETPROVIDER
// nsSSLSocketProvider methods:
nsSSLSocketProvider();
virtual ~nsSSLSocketProvider();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
protected:
};
#endif /* _NSSSLSOCKETPROVIDER_H_ */

View File

@@ -1,654 +0,0 @@
/* -*- Mode: C++; tab-width: 4; 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998-2000 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
* Stuart Parmenter <pavlov@netscape.com>
*/
#include "nspr.h"
#include "prlog.h"
#include "nsISecureBrowserUI.h"
#include "nsSecureBrowserUIImpl.h"
#include "nsIPSMComponent.h"
#include "nsPSMComponent.h"
#include "nsCOMPtr.h"
#include "nsIInterfaceRequestor.h"
#include "nsIServiceManager.h"
#include "nsIScriptGlobalObject.h"
#include "nsIObserverService.h"
#include "nsIDocumentLoader.h"
#include "nsCURILoader.h"
#include "nsIDocShell.h"
#include "nsIDocumentViewer.h"
#include "nsCURILoader.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMWindow.h"
#include "nsIContent.h"
#include "nsIWebProgress.h"
#include "nsIChannel.h"
#include "nsIPSMSocketInfo.h"
#include "nsIURI.h"
#include "prmem.h"
#include "nsINetSupportDialogService.h"
#include "nsIPrompt.h"
#include "nsICommonDialogs.h"
#include "nsIPref.h"
#include "nsIFormSubmitObserver.h"
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
static NS_DEFINE_CID(kCommonDialogsCID, NS_CommonDialog_CID );
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
#define ENTER_SITE_PREF "security.warn_entering_secure"
#define LEAVE_SITE_PREF "security.warn_leaving_secure"
#define MIXEDCONTENT_PREF "security.warn_viewing_mixed"
#define INSECURE_SUBMIT_PREF "security.warn_submit_insecure"
#if defined(PR_LOGGING)
//
// Log module for nsSecureBroswerUI logging...
//
// To enable logging (see prlog.h for full details):
//
// set NSPR_LOG_MODULES=nsSecureBroswerUI:5
// set NSPR_LOG_FILE=nspr.log
//
// this enables PR_LOG_DEBUG level information and places all output in
// the file nspr.log
//
PRLogModuleInfo* gSecureDocLog = nsnull;
#endif /* PR_LOGGING */
NS_IMETHODIMP
nsSecureBrowserUIImpl::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
nsSecureBrowserUIImpl * inst;
if (NULL == aResult) {
rv = NS_ERROR_NULL_POINTER;
return rv;
}
*aResult = NULL;
if (NULL != aOuter) {
rv = NS_ERROR_NO_AGGREGATION;
return rv;
}
NS_NEWXPCOM(inst, nsSecureBrowserUIImpl);
if (NULL == inst) {
rv = NS_ERROR_OUT_OF_MEMORY;
return rv;
}
NS_ADDREF(inst);
rv = inst->QueryInterface(aIID, aResult);
NS_RELEASE(inst);
return rv;
}
nsSecureBrowserUIImpl::nsSecureBrowserUIImpl()
{
NS_INIT_REFCNT();
#if defined(PR_LOGGING)
if (nsnull == gSecureDocLog) {
gSecureDocLog = PR_NewLogModule("nsSecureBroswerUI");
}
#endif /* PR_LOGGING */
mIsSecureDocument = mMixContentAlertShown = mIsDocumentBroken = PR_FALSE;
mLastPSMStatus = nsnull;
mCurrentURI = nsnull;
mSecurityButton = nsnull;
}
nsSecureBrowserUIImpl::~nsSecureBrowserUIImpl()
{
PR_FREEIF(mLastPSMStatus);
}
NS_IMPL_ISUPPORTS4(nsSecureBrowserUIImpl,
nsSecureBrowserUI,
nsIWebProgressListener,
nsIFormSubmitObserver,
nsIObserver);
NS_IMETHODIMP
nsSecureBrowserUIImpl::Init(nsIDOMWindow *window, nsIDOMElement *button)
{
mSecurityButton = button;
mWindow = window;
nsresult rv = nsServiceManager::GetService( kPrefCID,
NS_GET_IID(nsIPref),
getter_AddRefs(mPref));
if (NS_FAILED(rv)) return rv;
NS_WITH_SERVICE(nsIStringBundleService, service, kCStringBundleServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsILocale* locale = nsnull;
rv = service->CreateBundle(SECURITY_STRING_BUNDLE_URL, locale, getter_AddRefs(mStringBundle));
if (NS_FAILED(rv)) return rv;
// hook up to the form post notifications:
nsIObserverService *svc = 0;
rv = nsServiceManager::GetService(NS_OBSERVERSERVICE_PROGID,
NS_GET_IID(nsIObserverService),
(nsISupports**)&svc );
if (NS_SUCCEEDED(rv) && svc) {
nsString topic; topic.AssignWithConversion(NS_FORMSUBMIT_SUBJECT);
rv = svc->AddObserver( this, topic.GetUnicode());
nsServiceManager::ReleaseService( NS_OBSERVERSERVICE_PROGID, svc );
}
// hook up to the webprogress notifications.
nsCOMPtr<nsIDocShell> docShell;
nsCOMPtr<nsIScriptGlobalObject> sgo = do_QueryInterface(window);
if (!sgo) return NS_ERROR_NULL_POINTER;
sgo->GetDocShell(getter_AddRefs(docShell));
if (!docShell) return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIWebProgress> wp = do_GetInterface(docShell);
if (!wp) return NS_ERROR_NULL_POINTER;
wp->AddProgressListener(NS_STATIC_CAST(nsIWebProgressListener*,this));
mInitByLocationChange = PR_TRUE;
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::DisplayPageInfoUI()
{
nsresult res;
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
nsXPIDLCString host;
if (mCurrentURI)
mCurrentURI->GetHost(getter_Copies(host));
return psm->DisplaySecurityAdvisor(mLastPSMStatus, host);
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::Observe(nsISupports*, const PRUnichar*, const PRUnichar*)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult IsChildOfDomWindow(nsIDOMWindow *parent, nsIDOMWindow *child, PRBool* value)
{
*value = PR_FALSE;
if (parent == child)
{
*value = PR_TRUE;
return NS_OK;
}
nsCOMPtr<nsIDOMWindow> childsParent;
child->GetParent(getter_AddRefs(childsParent));
if (childsParent && childsParent.get() != child)
IsChildOfDomWindow(parent, childsParent, value);
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::Notify(nsIContent* formNode, nsIDOMWindow* window, nsIURI* actionURL)
{
// Return NS_OK unless we want to prevent this form from submitting.
if (!window || !actionURL || !formNode) {
return NS_OK;
}
nsCOMPtr<nsIDocument> document;
formNode->GetDocument(*getter_AddRefs(document));
if (!document) return NS_OK;
nsCOMPtr<nsIScriptGlobalObject> globalObject;
document->GetScriptGlobalObject(getter_AddRefs(globalObject));
nsCOMPtr<nsIDOMWindow> postingWindow = do_QueryInterface(globalObject);
PRBool isChild;
IsChildOfDomWindow(mWindow, postingWindow, &isChild);
if (!isChild)
return NS_OK;
PRBool okayToPost;
nsresult res = CheckPost(actionURL, &okayToPost);
if (NS_SUCCEEDED(res) && okayToPost)
return NS_OK;
return NS_ERROR_FAILURE;
}
// nsIWebProgressListener
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnProgressChange(nsIWebProgress* aWebProgress,
nsIRequest* aRequest,
PRInt32 aCurSelfProgress,
PRInt32 aMaxSelfProgress,
PRInt32 aCurTotalProgress,
PRInt32 aMaxTotalProgress)
{
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnStateChange(nsIWebProgress* aWebProgress,
nsIRequest* aRequest,
PRInt32 aProgressStateFlags,
nsresult aStatus)
{
nsresult res = NS_OK;
if (aRequest == nsnull || !mSecurityButton || !mPref)
return NS_ERROR_NULL_POINTER;
// Get the channel from the request...
// If the request is not network based, then ignore it.
nsCOMPtr<nsIChannel> channel;
channel = do_QueryInterface(aRequest, &res);
if (NS_FAILED(res))
return NS_OK;
nsCOMPtr<nsIURI> loadingURI;
channel->GetURI(getter_AddRefs(loadingURI));
#if defined(DEBUG)
nsXPIDLCString temp;
loadingURI->GetSpec(getter_Copies(temp));
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: OnStateChange: %x :%s\n", this, aProgressStateFlags,(const char*)temp));
#endif
// A Document is starting to load...
if ((aProgressStateFlags & flag_start) &&
(aProgressStateFlags & flag_is_network))
{
// starting to load a webpage
PR_FREEIF(mLastPSMStatus); mLastPSMStatus = nsnull;
mIsSecureDocument = mMixContentAlertShown = mIsDocumentBroken = PR_FALSE;
res = CheckProtocolContextSwitch( loadingURI, mCurrentURI);
return res;
}
// A document has finished loading
if ((aProgressStateFlags & flag_stop) &&
(aProgressStateFlags & flag_is_network) &&
mIsSecureDocument)
{
if (!mIsDocumentBroken) // and status is okay FIX
{
// qi for the psm information about this channel load.
nsCOMPtr<nsISupports> info;
channel->GetSecurityInfo(getter_AddRefs(info));
nsCOMPtr<nsIPSMSocketInfo> psmInfo = do_QueryInterface(info);
if (psmInfo)
{
// Everything looks okay. Lets stash the picked status.
PR_FREEIF(mLastPSMStatus);
res = psmInfo->GetPickledStatus(&mLastPSMStatus);
if (NS_SUCCEEDED(res)) {
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: Icon set to lock\n", this));
res = mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("high") );
return res;
}
}
}
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: Icon set to broken\n", this));
mIsDocumentBroken = PR_TRUE;
res = mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken"));
return res;
}
/// if (aProgressStateFlags == nsIWebProgress::flag_net_redirecting)
/// {
/// // need to implmentent.
/// }
// don't need to do anything more if the page is broken or not secure...
if (!mIsSecureDocument || mIsDocumentBroken)
return NS_OK;
// A URL is starting to load...
if ((aProgressStateFlags & flag_start) &&
(aProgressStateFlags & flag_is_request))
{ // check to see if we are going to mix content.
return CheckMixedContext(loadingURI);
}
// A URL has finished loading...
if ((aProgressStateFlags & flag_stop) &&
(aProgressStateFlags & flag_is_request))
{
if (1) // FIX status from the flag...
{
nsCOMPtr<nsISupports> info;
channel->GetSecurityInfo(getter_AddRefs(info));
nsCOMPtr<nsIPSMSocketInfo> psmInfo = do_QueryInterface(info, &res);
// qi for the psm information about this channel load.
if (psmInfo) {
return NS_OK;
}
}
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: OnStateChange - Icon set to broken\n", this));
mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken") );
mIsDocumentBroken = PR_TRUE;
}
return res;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnLocationChange(nsIURI* aLocation)
{
mCurrentURI = aLocation;
if (mInitByLocationChange)
{
IsURLHTTPS(mCurrentURI, &mIsSecureDocument);
mInitByLocationChange = PR_FALSE;
}
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::IsURLHTTPS(nsIURI* aURL, PRBool* value)
{
*value = PR_FALSE;
if (!aURL)
return NS_OK;
char* scheme;
aURL->GetScheme(&scheme);
if (scheme == nsnull)
return NS_ERROR_NULL_POINTER;
if ( PL_strncasecmp(scheme, "https", 5) == 0 )
*value = PR_TRUE;
nsMemory::Free(scheme);
return NS_OK;
}
void nsSecureBrowserUIImpl::GetBundleString(const nsString& name, nsString &outString)
{
if (mStringBundle && name.Length() > 0) {
PRUnichar *ptrv = nsnull;
if (NS_SUCCEEDED(mStringBundle->GetStringFromName(name.GetUnicode(), &ptrv)))
outString = ptrv;
else
outString.SetLength(0);;
nsMemory::Free(ptrv);
} else {
outString.SetLength(0);;
}
}
nsresult
nsSecureBrowserUIImpl::CheckProtocolContextSwitch( nsIURI* newURI, nsIURI* oldURI)
{
nsresult res;
PRBool isNewSchemeSecure, isOldSchemeSecure, boolpref;
res = IsURLHTTPS(oldURI, &isOldSchemeSecure);
if (NS_FAILED(res))
return res;
res = IsURLHTTPS(newURI, &isNewSchemeSecure);
if (NS_FAILED(res))
return res;
// Check to see if we are going from a secure page to and insecure page
if ( !isNewSchemeSecure && isOldSchemeSecure)
{
mSecurityButton->RemoveAttribute( NS_ConvertASCIItoUCS2("level") );
if ((mPref->GetBoolPref(LEAVE_SITE_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &res);
if (NS_FAILED(res))
return res;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("LeaveSiteMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue) {
mPref->SetBoolPref(LEAVE_SITE_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
psm->PassPrefs();
}
}
}
// check to see if we are going from an insecure page to a secure one.
else if (isNewSchemeSecure && !isOldSchemeSecure)
{
if ((mPref->GetBoolPref(ENTER_SITE_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &res);
if (NS_FAILED(res))
return res;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("EnterSiteMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue)
{
mPref->SetBoolPref(ENTER_SITE_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
psm->PassPrefs();
}
}
}
mIsSecureDocument = isNewSchemeSecure;
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::CheckMixedContext(nsIURI* nextURI)
{
PRBool secure;
nsresult rv = IsURLHTTPS(nextURI, &secure);
if (NS_FAILED(rv))
return rv;
if (!secure && mIsSecureDocument)
{
mIsDocumentBroken = PR_TRUE;
mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken") );
if (!mPref) return NS_ERROR_NULL_POINTER;
PRBool boolpref;
if ((mPref->GetBoolPref(MIXEDCONTENT_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref && !mMixContentAlertShown)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &rv);
if (NS_FAILED(rv))
return rv;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("MixedContentMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue) {
mPref->SetBoolPref(MIXEDCONTENT_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &rv);
if (NS_FAILED(rv))
return rv;
psm->PassPrefs();
}
mMixContentAlertShown = PR_TRUE;
}
}
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::CheckPost(nsIURI *actionURL, PRBool *okayToPost)
{
PRBool secure;
nsresult rv = IsURLHTTPS(actionURL, &secure);
if (NS_FAILED(rv))
return rv;
// if we are posting to a secure link from a secure page, all is okay.
if (secure && mIsSecureDocument)
return NS_OK;
PRBool boolpref;
// posting to a non https URL.
if ((mPref->GetBoolPref(INSECURE_SUBMIT_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref) {
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &rv);
if (NS_FAILED(rv))
return rv;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
// posting to insecure webpage from a secure webpage.
if (!secure && mIsSecureDocument && !mIsDocumentBroken) {
GetBundleString(NS_ConvertASCIItoUCS2("PostToInsecure"), message);
} else { // anything else, post generic warning
GetBundleString(NS_ConvertASCIItoUCS2("PostToInsecureFromInsecure"), message);
}
PRBool outCheckValue = PR_TRUE;
dialog->ConfirmCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue,
okayToPost);
if (!outCheckValue) {
mPref->SetBoolPref(INSECURE_SUBMIT_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &rv);
if (NS_FAILED(rv))
return rv;
psm->PassPrefs();
}
} else {
*okayToPost = PR_TRUE;
}
return NS_OK;
}

View File

@@ -1,108 +0,0 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* 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 mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef nsSecureBrowserUIImpl_h_
#define nsSecureBrowserUIImpl_h_
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsString.h"
#include "nsIObserver.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIDOMElement.h"
#include "nsIDOMWindow.h"
#include "nsIStringBundle.h"
#include "nsISecureBrowserUI.h"
#include "nsIDocShell.h"
#include "nsIPref.h"
#include "nsIWebProgressListener.h"
#include "nsIFormSubmitObserver.h"
#include "nsIURI.h"
#define NS_SECURE_BROWSER_DOCOBSERVER_CLASSNAME "Mozilla Secure Browser Doc Observer"
#define NS_SECURE_BROWSER_DOCOBSERVER_CID \
{0x97c06c30, 0xa145, 0x11d3, \
{0x8c, 0x7c, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c}}
#define NS_SECURE_BROWSER_DOCOBSERVER_PROGID "component://netscape/secure_browser_docobserver"
class nsSecureBrowserUIImpl : public nsSecureBrowserUI,
public nsIWebProgressListener,
public nsIFormSubmitObserver,
public nsIObserver
{
public:
nsSecureBrowserUIImpl();
virtual ~nsSecureBrowserUIImpl();
static NS_METHOD Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_DECL_ISUPPORTS
NS_DECL_NSIWEBPROGRESSLISTENER
NS_DECL_NSSECUREBROWSERUI
// nsIObserver
NS_DECL_NSIOBSERVER
NS_IMETHOD Notify(nsIContent* formNode, nsIDOMWindow* window, nsIURI *actionURL);
protected:
nsCOMPtr<nsIDOMWindow> mWindow;
nsCOMPtr<nsIDOMElement> mSecurityButton;
nsCOMPtr<nsIDocumentLoaderObserver> mOldWebShellObserver;
nsCOMPtr<nsIPref> mPref;
nsCOMPtr<nsIStringBundle> mStringBundle;
nsCOMPtr<nsIURI> mCurrentURI;
PRBool mIsSecureDocument; // is https loaded
PRBool mIsDocumentBroken; //
PRBool mMixContentAlertShown;
PRBool mInitByLocationChange;
char* mLastPSMStatus;
void GetBundleString(const nsString& name, nsString &outString);
nsresult LoadStringBundle();
nsresult CheckProtocolContextSwitch( nsIURI* newURI, nsIURI* oldURI);
nsresult CheckMixedContext(nsIURI* nextURI);
nsresult CheckPost(nsIURI *actionURL, PRBool *okayToPost);
nsresult IsURLHTTPS(nsIURI* aURL, PRBool *value);
};
#endif /* nsSecureBrowserUIImpl_h_ */

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

@@ -0,0 +1,214 @@
#! 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 = 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
# 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
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,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,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, 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.*;
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,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,274 @@
/* -*- 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 Context.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;
}
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.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() {
resize(150,50);
setFont(new Font("TimesRoman",Font.BOLD,36));
s = 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){}
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,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.*;
/**
* RunScript3: Execute scripts in an environment that includes the
* example Counter class.
*
* @author Norris Boyd
*/
public class RunScript3 {
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);
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,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,508 @@
/* -*- 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[2], comment);
// 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 = "";
}
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 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);
}

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

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,130 @@
/* -*- 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.names[index+1], 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.names[index+1], 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);
}
private NativeCall activation;
private Object[] args;
private boolean hasCaller;
}

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,61 @@
/* -*- 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
*
* 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 getTargetClassFileName();
public void setTargetClassFileName(String classFileName);
public String getTargetPackage();
public void setTargetPackage(String targetPackage);
public String getTargetClassFileName(String className);
public String getGeneratingDirectory();
public void setTargetExtends(Class extendsClass);
public void setTargetImplements(Class[] implementsClasses);
public ClassOutput getClassOutput();
public void setClassOutput(ClassOutput classOutput);
}

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-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.
* @return a stream into which to write bytecode.
* @since 1.5 Release 2
*/
public OutputStream getOutputStream(String className)
throws IOException;

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,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,152 @@
/* -*- 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() + " (" + sourceName +
"; line " + lineNumber + ")";
else
return errorObject.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,342 @@
/* -*- 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.Hashtable;
import java.util.Enumeration;
/**
* Manipulate a Scriptable object as if its prototype chain were flattened.
* <p>
* This class has been deprecated in favor of the static methods
* <code>getProperty</code>, <code>putProperty</code>, and
* <code>deleteProperty</code>. Those methods provide the
* same functionality without the confusing and inefficient need to construct
* a new object instance.
*
* @see org.mozilla.javascript.ScriptableObject
*
* @author Norris Boyd
*/
public class FlattenedObject {
/**
* Construct a new FlattenedObject.
*
* @param object the object to be viewed with flattened properties
* @deprecated
*/
public FlattenedObject(Scriptable object) {
this.obj = object;
}
/**
* Get the associated Scriptable object.
* @deprecated
*/
public Scriptable getObject() {
return obj;
}
/**
* Determine if a property exists in an object.
*
* This is a more convenient (and less efficient) form than
* <code>Scriptable.has()</code>.
* It returns true if and only if the property
* exists in this object or any of the objects in its prototype
* chain.
*
* @param id the property index, which may be either a String or a
* Number
* @return true if and only if the property exists in the prototype
* chain
* @see org.mozilla.javascript.Scriptable#has
* @deprecated As of 1.5R2, replaced by ScriptableObject.getProperty
*/
public boolean hasProperty(Object id) {
String stringId = ScriptRuntime.toString(id);
String s = ScriptRuntime.getStringId(stringId);
if (s == null)
return getBase(obj, ScriptRuntime.getIntId(stringId)) != null;
return getBase(obj, s) != null;
}
/**
* Get a property of an object.
* <p>
* This is a more convenient (and less efficient) form than
* <code>Scriptable.get()</code>. It corresponds exactly to the
* expression <code>obj[id]</code> in JavaScript. This method
* will traverse the prototype chain of an object to find the
* property.<p>
*
* If the property does not exist in the object or its prototype
* chain, the undefined value will be returned.
*
* @param id the property index; can be a String or a Number; the
* String may contain characters representing a number
* @return the value of the property or the undefined value
* @see org.mozilla.javascript.Scriptable#get
* @see org.mozilla.javascript.Context#getUndefinedValue
* @deprecated As of 1.5R2, replaced by ScriptableObject.getProperty
*/
public Object getProperty(Object id) {
String s = ScriptRuntime.getStringId(id);
int index = s == null ? ScriptRuntime.getIntId(id) : 0;
Scriptable m = obj;
Object result;
for(;;) {
result = s == null ? m.get(index, obj) : m.get(s, obj);
if (result != Scriptable.NOT_FOUND)
break;
m = m.getPrototype();
if (m == null)
return Undefined.instance;
}
if (result instanceof Scriptable)
return new FlattenedObject((Scriptable) result);
return result;
}
/**
* Set a property of an object.
*
* This is a more convenient (and less efficient) form than that
* provided in Scriptable. It corresponds exactly to the
* expression <code>obj[id] = val</code> in JavaScript.<p>
*
* @param id the property index, which may be either a String or
* a Number
* @param value the value of the property
* @see org.mozilla.javascript.Scriptable#put
* @deprecated As of 1.5R2, replaced by ScriptableObject.putProperty
*/
public void putProperty(Object id, Object value) {
String s = ScriptRuntime.getStringId(id);
if (value instanceof FlattenedObject)
value = ((FlattenedObject) value).getObject();
Scriptable x;
if (s == null) {
int index = ScriptRuntime.getIntId(id);
x = getBase(obj, index);
if (x == null)
x = obj;
x.put(index, obj, value);
return;
}
x = getBase(obj, s);
if (x == null)
x = obj;
x.put(s, obj, value);
}
/**
* Remove a property.
*
* This method provides the functionality of the <code>delete</code>
* operator in JavaScript.
*
* @param id the property index, which may be either a String or
* a Number
* @return true if the property didn't exist, or existed and was removed
* @see org.mozilla.javascript.Scriptable#delete
* @deprecated as of 1.5R2, replaced by ScriptableObject.deleteProperty
*/
public boolean deleteProperty(Object id) {
String s = ScriptRuntime.getStringId(id);
if (s == null) {
int index = ScriptRuntime.getIntId(id);
Scriptable base = getBase(obj, index);
if (base == null)
return true;
base.delete(index);
return !base.has(index, base);
}
Scriptable base = getBase(obj, s);
if (base == null)
return true;
base.delete(s);
return !base.has(s, base);
}
/**
* Return an array that contains the ids of the properties.
*
* <p>This method will walk the prototype chain and collect the
* ids of all objects in the prototype chain.<p>
*
* If an id appears in more than one object in the prototype chain,
* it will only be in the array once. (So all the entries in the
* array will be unique respective to equals().)
*
* @see org.mozilla.javascript.Scriptable#getIds
* @deprecated
*/
public Object[] getIds() {
Hashtable h = new Hashtable(11);
Scriptable m = obj;
while (m != null) {
Object[] e = m.getIds();
for (int i=0; i < e.length; i++) {
h.put(e[i], Boolean.TRUE);
}
m = m.getPrototype();
}
Enumeration keys = h.keys();
Object elem;
Object[] result = new Object[h.size()];
int index = 0;
while (keys.hasMoreElements()) {
elem = keys.nextElement();
result[index++] = elem;
}
return result;
}
/**
* Consider this object to be a function, and call it.
*
* @param cx the current Context for this thread
* @param thisObj the JavaScript 'this' for the call
* @param args the arguments for the call
* @return the result of the JavaScript function call
* @exception NotAFunctionException if this object is not a function
* @exception JavaScriptException if an uncaught JavaScript exception
* occurred while executing the function
* @see org.mozilla.javascript.Function#call
* @deprecated
*/
public Object call(Context cx, Scriptable thisObj, Object[] args)
throws NotAFunctionException,
JavaScriptException
{
if (!(obj instanceof Function)) {
throw new NotAFunctionException();
}
return ScriptRuntime.call(cx, obj, thisObj, args, (Function) obj);
}
/**
* Consider this object to be a function, and invoke it as a
* constructor call.
*
* @param cx the current Context for this thread
* @param args the arguments for the constructor call
* @return the allocated object
* @exception NotAFunctionException if this object is not a function
* @exception JavaScriptException if an uncaught JavaScript exception
* occurred while executing the constructor
* @see org.mozilla.javascript.Function#construct
* @deprecated
*/
public Scriptable construct(Context cx, Object[] args)
throws NotAFunctionException,
JavaScriptException
{
if (!(obj instanceof Function)) {
throw new NotAFunctionException();
}
return ScriptRuntime.newObject(cx, obj, args, null);
}
/**
* Get the property indicated by the id, and invoke it with the
* specified arguments.
* <p>
* For example, for a FlattenedObject <code>obj</code>,
* and a Java array <code>a</code> consisting of a single string
* <code>"hi"</code>, the call <pre>
* obj.callMethod("m", a)</pre>
* is equivalent to the JavaScript code <code>obj.m("hi")</code>.<p>
*
* If the property is not found or is not a function, an
* exception will be thrown.
*
* @param id the Number or String to use to find the function property
* to call
* @param args the arguments for the constructor call
* @return the result of the call
* @exception PropertyException if the designated property
* was not found
* @exception NotAFunctionException if this object is not a function
* @exception JavaScriptException if an uncaught JavaScript exception
* occurred while executing the method
* @see org.mozilla.javascript.Function#call
* @deprecated
*/
public Object callMethod(Object id, Object[] args)
throws PropertyException,
NotAFunctionException,
JavaScriptException
{
if (!hasProperty(id)) {
throw new PropertyException(
Context.getMessage("msg.prop.not.found", null));
}
Object o = getProperty(id);
if (o instanceof FlattenedObject)
return ((FlattenedObject) o).call(Context.getContext(), obj, args);
throw new NotAFunctionException();
}
/****** End of API *******/
private static Scriptable getBase(Scriptable obj, String s) {
Scriptable m = obj;
while (m != null) {
if (m.has(s, obj))
return m;
m = m.getPrototype();
}
return null;
}
private static Scriptable getBase(Scriptable obj, int index) {
Scriptable m = obj;
while (m != null) {
if (m.has(index, obj))
return m;
m = m.getPrototype();
}
return null;
}
private Scriptable obj;
}

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,94 @@
/* -*- 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;
}
/**
* 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 byte itsFunctionType;
}

View File

@@ -0,0 +1,636 @@
/* -*- 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
* 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.Hashtable;
import java.util.Vector;
import java.lang.reflect.*;
public class FunctionObject extends NativeFunction {
/**
* 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();
}
String myNames[] = { name };
super.names = myNames;
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)
{
String[] args = { methodName };
String message = Context.getMessage("msg.varargs.ctor",
args);
throw Context.reportRuntimeError(message);
}
parmsLength = VARARGS_CTOR;
} else {
if (!isStatic ||
types[0] != Context.class ||
types[1] != ScriptRuntime.ScriptableClass ||
types[2].getComponentType() != ScriptRuntime.ObjectClass ||
types[3] != ScriptRuntime.FunctionClass)
{
String[] args = { methodName };
String message = Context.getMessage("msg.varargs.fun",
args);
throw Context.reportRuntimeError(message);
}
parmsLength = VARARGS_METHOD;
}
// XXX check return type
length = 1;
} else {
parmsLength = (short) types.length;
boolean hasConversions = false;
for (int i=0; i < parmsLength; i++) {
Class type = types[i];
if (type == ScriptRuntime.ObjectClass) {
// may not need conversions
} else if (type == ScriptRuntime.StringClass ||
type == ScriptRuntime.BooleanClass ||
ScriptRuntime.NumberClass.isAssignableFrom(type) ||
Scriptable.class.isAssignableFrom(type))
{
hasConversions = true;
} else if (type == Boolean.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.BooleanClass;
} else if (type == Byte.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.ByteClass;
} else if (type == Short.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.ShortClass;
} else if (type == Integer.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.IntegerClass;
} else if (type == Float.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.FloatClass;
} else if (type == Double.TYPE) {
hasConversions = true;
types[i] = ScriptRuntime.DoubleClass;
}
// Note that long is not supported; see comments above
else {
Object[] errArgs = { methodName };
throw Context.reportRuntimeError(
Context.getMessage("msg.bad.parms", errArgs));
}
}
if (!hasConversions)
types = null;
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();
}
/**
* Override ScriptableObject's has, get, and set in order to define
* the "length" property of the function. <p>
*
* We could also have defined the property using ScriptableObject's
* defineProperty method, but that would have consumed a slot in every
* FunctionObject. Most FunctionObjects typically don't have any
* properties anyway, so having the "length" property would cause us
* to allocate an array of slots. <p>
*
* In particular, this method will return true for
* <code>name.equals("length")</code>
* and will delegate to the superclass for all other
* values of <code>name</code>.
*/
public boolean has(String name, Scriptable start) {
return name.equals("length") || super.has(name, start);
}
/**
* Override ScriptableObject's has, get, and set in order to define
* the "length" property of the function. <p>
*
* In particular, this method will 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.
*
* @see org.mozilla.javascript.FunctionObject#setLength
*/
public Object get(String name, Scriptable start) {
if (name.equals("length"))
return new Integer(lengthPropertyValue);
return super.get(name, start);
}
/**
* Override ScriptableObject's has, get, and set in order to define
* the "length" property of the function. <p>
*
* In particular, this method will ignore all attempts to set the
* "length" property and forward all other requests to ScriptableObject.
*
* @see org.mozilla.javascript.FunctionObject#setLength
*/
public void put(String name, Scriptable start, Object value) {
if (!name.equals("length"))
super.put(name, start, value);
}
/**
* 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));
prototype.setParentScope(this);
final int attr = ScriptableObject.DONTENUM |
ScriptableObject.PERMANENT |
ScriptableObject.READONLY;
defineProperty("prototype", prototype, attr);
String name = prototype.getClassName();
if (!name.equals("With")) {
// A "With" object would delegate these calls to the prototype:
// not the right thing to do here!
if (prototype instanceof ScriptableObject) {
((ScriptableObject) prototype).defineProperty("constructor",
this, attr);
} else {
prototype.put("constructor", prototype, this);
}
}
if (scope instanceof ScriptableObject) {
((ScriptableObject) scope).defineProperty(name, this,
ScriptableObject.DONTENUM);
} else {
scope.put(name, scope, this);
}
setParentScope(scope);
}
static public Object convertArg(Scriptable scope,
Object arg, Class desired)
{
if (desired == ScriptRuntime.BooleanClass
|| desired == Boolean.TYPE)
return ScriptRuntime.toBoolean(arg) ? Boolean.TRUE
: Boolean.FALSE;
else if (desired == ScriptRuntime.StringClass)
return ScriptRuntime.toString(arg);
else if (desired == ScriptRuntime.IntegerClass
|| desired == Integer.TYPE)
return new Integer(ScriptRuntime.toInt32(arg));
else if (desired == ScriptRuntime.DoubleClass
|| desired == Double.TYPE)
return new Double(ScriptRuntime.toNumber(arg));
else if (desired == ScriptRuntime.ScriptableClass)
return ScriptRuntime.toObject(scope, arg);
else if (desired == ScriptRuntime.ObjectClass)
return arg;
// Note that the long type is not supported; see the javadoc for
// the constructor for this class
else {
Object[] errArgs = { desired.getName() };
throw Context.reportRuntimeError(
Context.getMessage("msg.cant.convert", errArgs));
}
}
/**
* 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.
Object[] errArgs = { names[0] };
String msg = Context.getMessage("msg.incompat.call", errArgs);
throw NativeGlobal.constructError(cx, "TypeError", msg, 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)
? method.invoke(thisObj, invokeArgs)
: ctor.newInstance(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) {
// Ugly: allow variable-arg constructors that need access to the
// scope to get it from the Context. Cleanest solution would be
// to modify the varargs form, but that would require users with
// the old form to change their code.
cx.ctorScope = scope;
result = (Scriptable) callVarargs(cx, null, args, true);
cx.ctorScope = null;
} 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 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 = method.invoke(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)
: method.invoke(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;
}
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;
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,144 @@
/* -*- 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) 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;
import java.util.Vector;
/**
* Class ImporterTopLevel
*
* This class defines a ScriptableObject that can be instantiated
* as a top-level ("global") object to provide functionality similar
* to Java's "import" statement.
* <p>
* This class can be used to create a top-level scope using the following code:
* <pre>
* Scriptable scope = cx.initStandardObjects(new ImporterTopLevel());
* </pre>
* Then JavaScript code will have access to the following methods:
* <ul>
* <li>importClass - will "import" a class by making its unqualified name
* available as a property of the top-level scope
* <li>importPackage - will "import" all the classes of the package by
* searching for unqualified names as classes qualified
* by the given package.
* </ul>
* The following code from the shell illustrates this use:
* <pre>
* js> importClass(java.io.File)
* js> f = new File('help.txt')
* help.txt
* js> importPackage(java.util)
* js> v = new Vector()
* []
*
* @author Norris Boyd
*/
public class ImporterTopLevel extends ScriptableObject {
public ImporterTopLevel() {
String[] names = { "importClass", "importPackage" };
try {
this.defineFunctionProperties(names, ImporterTopLevel.class,
ScriptableObject.DONTENUM);
} catch (PropertyException e) {
throw new Error(); // should never happen
}
}
public String getClassName() {
return "global";
}
public Object get(String name, Scriptable start) {
Object result = super.get(name, start);
if (result == NOT_FOUND && importedPackages != null) {
for (int i=0; i < importedPackages.size(); i++) {
Object o = importedPackages.elementAt(i);
NativeJavaPackage p = (NativeJavaPackage) o;
Object v = p.getPkgProperty(name, start, false);
if (v != null && !(v instanceof NativeJavaPackage)) {
if (result == NOT_FOUND) {
result = v;
} else {
String[] args = { result.toString(), v.toString() };
throw Context.reportRuntimeError(
Context.getMessage("msg.ambig.import",
args));
}
}
}
}
return result;
}
public void importClass(Object cl) {
if (!(cl instanceof NativeJavaClass)) {
String[] args = { Context.toString(cl) };
throw Context.reportRuntimeError(
Context.getMessage("msg.not.class", args));
}
String s = ((NativeJavaClass) cl).getClassObject().getName();
String n = s.substring(s.lastIndexOf('.')+1);
Object val = this.get(n, this);
if (val != NOT_FOUND && val != cl) {
String[] args = { n };
throw Context.reportRuntimeError(
Context.getMessage("msg.prop.defined", args));
}
this.defineProperty(n, cl, DONTENUM);
}
public void importPackage(Object pkg) {
if (importedPackages == null)
importedPackages = new Vector();
if (!(pkg instanceof NativeJavaPackage)) {
String[] args = { Context.toString(pkg) };
throw Context.reportRuntimeError(
Context.getMessage("msg.not.pkg", args));
}
for (int i=0; i < importedPackages.size(); i++) {
if (pkg == importedPackages.elementAt(i))
return; // allready in list
}
importedPackages.addElement(pkg);
}
private Vector importedPackages;
}

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