Compare commits

..

2716 Commits

Author SHA1 Message Date
ccarlen%netscape.com
465f96a441 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109949 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:58:56 +00:00
ccarlen%netscape.com
e55ec0916b Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109946 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:49:51 +00:00
ccarlen%netscape.com
7ea9d87b19 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109943 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:42:11 +00:00
ccarlen%netscape.com
f992237e17 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109935 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:32:40 +00:00
ccarlen%netscape.com
efdc98eaa2 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109930 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:18:48 +00:00
ccarlen%netscape.com
6bac62367b Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109926 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 01:10:26 +00:00
ccarlen%netscape.com
26f0345be9 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109924 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:59:26 +00:00
ccarlen%netscape.com
4ea37e5009 Checking in so I can remove.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109922 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:53:48 +00:00
ccarlen%netscape.com
84b7813e95 Removing.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109920 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:42:34 +00:00
ccarlen%netscape.com
615cc82c91 Checking in so I can remove.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109914 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:36:35 +00:00
ccarlen%netscape.com
21184d171d Checking in so I can remove.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109909 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:25:43 +00:00
ccarlen%netscape.com
68109adf48 killing all .mcp files
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109907 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:24:00 +00:00
ccarlen%netscape.com
b242b706f1 update
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109906 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-07 00:22:18 +00:00
ccarlen%netscape.com
1d1e74944f Build with CW7
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109897 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 23:37:33 +00:00
ccarlen%netscape.com
203582fb33 Adding.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109894 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 23:15:59 +00:00
ccarlen%netscape.com
1fe55e9031 Adding.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109890 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 23:03:12 +00:00
ccarlen%netscape.com
3b000a820b Adding.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109889 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 22:43:55 +00:00
ccarlen%netscape.com
9a26f47aaf Adding.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109876 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 22:24:09 +00:00
ccarlen%netscape.com
6ee49cec7c Adding.
git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109871 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-06 22:05:13 +00:00
(no author)
1163caec2a This commit was manufactured by cvs2svn to create branch
'CW7_20011205_BRANCH'.

git-svn-id: svn://10.0.0.236/branches/CW7_20011205_BRANCH@109750 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 19:46:44 +00:00
hyatt%netscape.com
a8c77bc7d0 Fix smoketest blocker.
git-svn-id: svn://10.0.0.236/trunk@109749 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 19:46:43 +00:00
pschwartau%netscape.com
148d11e201 not part of default build
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as


git-svn-id: svn://10.0.0.236/trunk@109748 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 19:32:16 +00:00
sonja.mirtitsch%sun.com
b031c036c9 test for key and cert databases
git-svn-id: svn://10.0.0.236/trunk@109747 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 19:18:14 +00:00
shrutiv%netscape.com
a2157bf525 Including proper formatting in the file, having only one tab stop
instead of two tab stops for indentation.


git-svn-id: svn://10.0.0.236/trunk@109746 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 18:48:02 +00:00
sonja.mirtitsch%sun.com
f5d1db2c3e added 2 more tests
git-svn-id: svn://10.0.0.236/trunk@109745 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 18:34:09 +00:00
despotdaemon%netscape.com
350ba3ac94 Pseudo-automatic update of changes made by hwaara@chello.se.
git-svn-id: svn://10.0.0.236/trunk@109744 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 18:05:25 +00:00
despotdaemon%netscape.com
23933fa750 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@109743 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 18:02:49 +00:00
ian.mcgreer%sun.com
f3b3f9dcea if no token name is provided to PK11_FindCertByNickname, default to internal token (as opposed to the entire trust domain)
git-svn-id: svn://10.0.0.236/trunk@109741 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 17:07:53 +00:00
blizzard%redhat.com
d2700c2e78 Share timer implementation with gtk and gtk2. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@109740 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 15:38:59 +00:00
ccarlen%netscape.com
3a3bff46ce Bug 113312 - Two profile folders created when profile is deleted from disk. r=bhuvan/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109739 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 15:04:44 +00:00
rods%netscape.com
3dc35c98bd Change the default of FrameSet print from "As Is" to "Each frame Separately"
Bug 112665 sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109738 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 14:55:50 +00:00
bzbarsky%mit.edu
8855009f3b Set the |inherited| bool in all cases when we inherit. Bug 113533,
r=dbaron, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@109737 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 14:06:34 +00:00
mcafee%netscape.com
0bceb23c11 Adding mailnews bloat test. labels into bloatdiff so we can run different tests there.
git-svn-id: svn://10.0.0.236/trunk@109736 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 09:27:28 +00:00
mcafee%netscape.com
267fabfb30 regxpcom test
git-svn-id: svn://10.0.0.236/trunk@109735 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 09:23:07 +00:00
hyatt%netscape.com
6c6f01e32e Enhancements to CSS to enable multi-colored borders and painting of image subregions. 112988 and 112990. r=dbaron,hewitt for 112990, r=ben,hewitt for 112988
git-svn-id: svn://10.0.0.236/trunk@109734 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 08:35:05 +00:00
blakeross%telocity.com
3654118f4f Just removing code obsoleted by bookmarksliner... r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109733 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:55:36 +00:00
blakeross%telocity.com
e76be1faae jan's patch for isseparator() should return a value in nsXULOutlinerBuilder::Init(). r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109732 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:43:05 +00:00
blakeross%telocity.com
5e9e68b812 readding
git-svn-id: svn://10.0.0.236/trunk@109731 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:42:33 +00:00
blakeross%telocity.com
9d808ac08a readding
git-svn-id: svn://10.0.0.236/trunk@109730 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:40:57 +00:00
blakeross%telocity.com
9bba021e3a just seeing if this fixes leaks; will backout soon.
git-svn-id: svn://10.0.0.236/trunk@109729 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:33:34 +00:00
peterlubczynski%netscape.com
3714c963b9 JRE auto-detection needs to be version specific, bug 108957 r=curt sr=darin
git-svn-id: svn://10.0.0.236/trunk@109727 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 06:13:15 +00:00
blakeross%telocity.com
e0e581b9c4 try commenting out hackish refreshSort call that passed |this| to try to fix leaks. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109726 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 05:37:19 +00:00
blakeross%telocity.com
a0fc85e10d Remove observer in destructor. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109725 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 05:36:07 +00:00
dbaron%fas.harvard.edu
d8f7525c3c Add newline to end of file to fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@109723 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 05:19:53 +00:00
blizzard%redhat.com
22e4b732a2 checkpointing changes. not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@109722 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 05:17:21 +00:00
blakeross%telocity.com
16d86f8daf fix something I botched before checkin.
git-svn-id: svn://10.0.0.236/trunk@109721 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 04:52:08 +00:00
blakeross%telocity.com
d5087990d3 73508 - convert bookmarks to outliner. don't file bugs on this yet. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@109720 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 04:30:04 +00:00
sonja.mirtitsch%sun.com
177ed7a96e added calls to new dbtest program
git-svn-id: svn://10.0.0.236/trunk@109719 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 04:25:31 +00:00
leaf%mozilla.org
f7a210fa16 remove cppsrcs from makefile.win files, bug 102459 r=dbaron sr=cls
git-svn-id: svn://10.0.0.236/trunk@109718 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:52:30 +00:00
dbaron%fas.harvard.edu
f0d1a6f6ce Simplify loop in CountValidUTF8Bytes and fix UMR. b=110531 r=jag sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109717 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:49:13 +00:00
leaf%mozilla.org
516776e606 remove cppsrcs defines from makefile.win files, bug 102459, sr=cls r=dbaron
git-svn-id: svn://10.0.0.236/trunk@109714 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:43:29 +00:00
mcafee%netscape.com
137ea46823 Updated tooltip comment to reflect xul test change
git-svn-id: svn://10.0.0.236/trunk@109713 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:32:29 +00:00
namachi%netscape.com
515e646658 http://bugzilla.mozilla.org/show_bug.cgi?id=111093
Generation of MAP and COD files
This patch should help create MAP file and COD files only on Windows.
These files will be generated only when MODINFO and CODINFO flags are set.
r=cls,leaf and sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@109712 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:28:33 +00:00
jst%netscape.com
af121ab737 Fixing bug 62744. Making link/area.protocol not throw an exception if there's an unknown protocol in the URI. r=hidday@geocities.com, sr=rpotts@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@109711 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:16:13 +00:00
hewitt%netscape.com
d1e2b0f39a adding newline to fix HP bustage
git-svn-id: svn://10.0.0.236/trunk@109710 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:07:43 +00:00
racham%netscape.com
8210efd0ff Fixing bug 107363. Making file picker to start inthe existing signature folder, if there is one. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@109709 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:05:19 +00:00
racham%netscape.com
d46348b3e0 Fixing bugs 105899, 105902. Fixing js warnings and errors in address book files. r=bhuvan
git-svn-id: svn://10.0.0.236/trunk@109708 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:05:03 +00:00
racham%netscape.com
10ed2bb310 Fixing bug 104358. js warnings in smtpserverlist.js. r=bhuvan
git-svn-id: svn://10.0.0.236/trunk@109707 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 03:04:58 +00:00
leaf%mozilla.org
f6aeb09b46 Automated update
git-svn-id: svn://10.0.0.236/trunk@109706 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 02:57:47 +00:00
law%netscape.com
29cf6aaaab Update to report minimum time rather than avg to reduce noise, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@109705 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 02:53:33 +00:00
seawood%netscape.com
f2af8c8c71 Removing unneeded AC_SUBST calls
git-svn-id: svn://10.0.0.236/trunk@109704 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 02:46:12 +00:00
av%netscape.com
86d7246074 Changing CPP_OBJS to OBJS in makefile.win -- not part of the build
git-svn-id: svn://10.0.0.236/trunk@109703 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 02:24:34 +00:00
jgaunt%netscape.com
7d35359334 bug 112731 fix for accPreviousSibling
r=aaronl
rs=waterson


git-svn-id: svn://10.0.0.236/trunk@109702 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 02:11:02 +00:00
ben%netscape.com
91b3ad67e6 fix whitespace (indenting) to match 4 space precedent.
git-svn-id: svn://10.0.0.236/trunk@109701 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 01:56:05 +00:00
ben%netscape.com
f4aed64695 fix bug bugscape 11251 - text missing from Exit menu item etc. on windows
due to file not being built because of invalid placement of DIRS variable in makefile. r=bryner, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@109699 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 01:47:05 +00:00
ben%netscape.com
03a05d59a3 fix bug 79408 - windows integration dialog text is awkward.
r=law, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@109698 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 01:45:45 +00:00
darin%netscape.com
df49844ca4 netwerk/build changes for bug 15860 "digest auth" r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@109697 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 01:09:38 +00:00
darin%netscape.com
5e883b7a4f mac project changes for bug 15860 "digest auth"
r=dougt, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@109696 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 01:09:00 +00:00
darin%netscape.com
61533626e3 fixes mac bustage
git-svn-id: svn://10.0.0.236/trunk@109695 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 00:51:18 +00:00
pschwartau%netscape.com
43115b71dd not part of default build
bug 111365, JS standalone doesn't build on solaris.
point AS to /usr/ccs/bin/as


git-svn-id: svn://10.0.0.236/trunk@109694 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 00:31:55 +00:00
rayw%netscape.com
a67815f488 More fixes to strings, and changed encoding to support a single string
lookup key instead of two for better genericity and efficiency.


git-svn-id: svn://10.0.0.236/trunk@109693 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 00:10:07 +00:00
naving%netscape.com
2f0739f441 112355 r=sspitzer sr=bienvenu. null out folder's db reference as the search is over on a folder. this will
help in cutting bloat during and after the search is over.


git-svn-id: svn://10.0.0.236/trunk@109692 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-05 00:08:16 +00:00
curt%netscape.com
8a05d35dfe Removed references to Communicator.
git-svn-id: svn://10.0.0.236/trunk@109690 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:56:40 +00:00
hewitt%netscape.com
aa05bf7a61 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109688 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:50:57 +00:00
hewitt%netscape.com
88f0b41339 113100 - Stretched icons in link toolbar and personal toolbar folder, patch=christopher_brien@hotmail.com, r=hwaara, sr=me
git-svn-id: svn://10.0.0.236/trunk@109687 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:49:25 +00:00
darin%netscape.com
cc45405ad0 fixes bug 15860 "support http/1.1 digest authentication"
patch=jab@atdot.org,pach@cs.cmu.edu,darin@netscape.com
r=dougt@netscape.com
sr=rpotts@netscape.com


git-svn-id: svn://10.0.0.236/trunk@109686 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:49:06 +00:00
hewitt%netscape.com
30aab4d4f4 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109685 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:45:22 +00:00
hewitt%netscape.com
1204dc3c01 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109684 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:36:40 +00:00
shliang%netscape.com
29732864f5 backing out fix for bug 103190
git-svn-id: svn://10.0.0.236/trunk@109683 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:31:02 +00:00
hewitt%netscape.com
6e81240065 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109682 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:30:25 +00:00
law%netscape.com
b35682051c updates
git-svn-id: svn://10.0.0.236/trunk@109681 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 23:16:42 +00:00
dcone%netscape.com
be90a7433a bug=96870 r=rods sr=attinasi. This add abilty to print and print preview background images and color.
git-svn-id: svn://10.0.0.236/trunk@109680 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:46:41 +00:00
pchen%netscape.com
92e34f3ed0 bug 101263, r=kaie, sr=alecf, when we get logout-session message, logout of
password manager


git-svn-id: svn://10.0.0.236/trunk@109679 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:42:21 +00:00
hewitt%netscape.com
03f2a59c9a 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109678 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:38:40 +00:00
hewitt%netscape.com
801573f381 93839 - tooltiptext should work without specifying tooltip, r=pinkerton, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109677 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:32:49 +00:00
shliang%netscape.com
822bcf2fdc bug 71637 - css errors in chrome. r=dbaron, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109676 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:26:31 +00:00
naving%netscape.com
92f061e800 112028 r=ducarroz sr=bievenu fix leaking attachment url on sending message.
git-svn-id: svn://10.0.0.236/trunk@109675 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:26:02 +00:00
sfraser%netscape.com
89f6240468 Fix bug 113295 by ensuring that mac locale for communicator/platform is registered after unix and win. r=bryner/pchen, sr=ben
git-svn-id: svn://10.0.0.236/trunk@109674 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:24:55 +00:00
hewitt%netscape.com
bf455fb30b 113039 - [modern] simplify primary toolbar xbl and css, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109671 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:20:06 +00:00
alexsavulov%netscape.com
9ff2a72d72 fix for bug 101699: "Form does not submit if insecure submission warning active"
Patch by brendan, sr= attinasi, r= alexsavulov


git-svn-id: svn://10.0.0.236/trunk@109670 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:18:55 +00:00
law%netscape.com
7076292763 updates
git-svn-id: svn://10.0.0.236/trunk@109669 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:15:45 +00:00
alecf%netscape.com
3b26228e2a fix bug 112708, take two
use nsCAutoString instead of PR_smprintf to reduce pref shutdown notifications by 3x
r=bnesse, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109667 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 22:01:22 +00:00
shliang%netscape.com
da0316e4dd bug 99631 - preview icon for composer tab in modern. r=jag, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109666 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:58:50 +00:00
naving%netscape.com
033fcb37fd Adding a comment, no bug, no reviewer
git-svn-id: svn://10.0.0.236/trunk@109665 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:50:42 +00:00
dp%netscape.com
a61c552cf3 NS_TIMELINE_ENABLE
git-svn-id: svn://10.0.0.236/trunk@109664 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:48:40 +00:00
rayw%netscape.com
dad7d0ce3f Changed string literals in nsSOAPUtil.h yet again. Perhaps this fixes
the strings that had stopped working on various plaatforms.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109663 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:42:13 +00:00
leaf%mozilla.org
4267823c16 Automated update
git-svn-id: svn://10.0.0.236/trunk@109661 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:27:54 +00:00
law%netscape.com
4915d6cd00 tweaking
git-svn-id: svn://10.0.0.236/trunk@109660 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:25:57 +00:00
seawood%netscape.com
2750945184 Initial landing of win32 support for autoconf builds.
Bug #58981 sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109658 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:17:48 +00:00
dp%netscape.com
ab2e1c19fc bug 112470 TIMELINE and TRACE_MALLOC ON by default for debug builds
git-svn-id: svn://10.0.0.236/trunk@109657 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:16:10 +00:00
dp%netscape.com
e3b68c249c bug 112470 Include config.mak early to get TRACE_MALLOC settings in. Patch by alecf. r=dp
git-svn-id: svn://10.0.0.236/trunk@109656 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:15:28 +00:00
dp%netscape.com
55ff867745 bug 112470 Getting timeline ON for debug builds by default.
When running, NS_TIMELINE_ENABLE is required for seeing the timeline
output. r=cathleen, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109655 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:14:21 +00:00
bzbarsky%mit.edu
8c7d49ce1e Stop case-folding attribute values. This makes us compatible with NS4
on those properties that can be gotten in NS4 and compatible with IE
5.5/6 across the board.  Bug 113174, r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@109654 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:12:15 +00:00
bienvenu%netscape.com
194ada1a53 fix crash loading corrupt history.dat file, cut down on mork memory growth when history does link coloring, r=naving, sr=alecf, sspitzer 113287 113354
git-svn-id: svn://10.0.0.236/trunk@109653 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:04:56 +00:00
sonja.mirtitsch%sun.com
685157368a changed the evaluation of returncode
git-svn-id: svn://10.0.0.236/trunk@109652 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 21:01:47 +00:00
alecf%netscape.com
3207e85edb back myself out to fix blocker 113482
git-svn-id: svn://10.0.0.236/trunk@109651 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 20:34:03 +00:00
law%netscape.com
4cb84da125 fixing miniXul.xul
git-svn-id: svn://10.0.0.236/trunk@109650 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 20:03:47 +00:00
law%netscape.com
47ab7cc8da New tools for measuring window open times
git-svn-id: svn://10.0.0.236/trunk@109648 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 19:55:48 +00:00
ddrinan%netscape.com
032de1c856 Removed extra close comment in MOZ_CLIENT comment section
git-svn-id: svn://10.0.0.236/trunk@109646 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 19:14:33 +00:00
wtc%netscape.com
d6278cf4d9 Bugzilla bug 111574: standard header files should be included with
#include <foo.h>, not #include "foo.h".  Thanks to Roland Mainz
<Roland.Mainz@informatik.med.uni-giessen.de> for the patch.  r=wtc.
Modified files: signtool.h jar.h


git-svn-id: svn://10.0.0.236/trunk@109645 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 18:36:58 +00:00
rogerl%netscape.com
a99ecbbd86 removing obsoleted msdev project files.
git-svn-id: svn://10.0.0.236/trunk@109644 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 18:35:28 +00:00
wtc%netscape.com
46e7a3b371 Bugzilla bug 111294: make NSS build on QNX6 (Neutrino). The patch was
contributed by Dave Inglis <dinglis@qnx.com>. r=wtc.
Modified Files:
	coreconf/config.mk coreconf/nsinstall/nsinstall.c
	nss/lib/freebl/unix_rand.c nss/lib/ssl/unix_err.c
Added Files:
	coreconf/QNX.mk


git-svn-id: svn://10.0.0.236/trunk@109640 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 18:20:57 +00:00
ian%hixie.ch
59fcb856a2 Removing a bunch of dump(10, ...) calls. It turns out that dump() is actually quite expensive, and calling it 1000+ times just to do nothing isn't that useful. In addition, most of these dump()s were used to debug the core PLIF code which now works pretty well, so they aren't that useful any more.
git-svn-id: svn://10.0.0.236/trunk@109639 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 18:06:06 +00:00
ian%hixie.ch
10d64daec7 PLIF::Service::XML::Char() was the most expensive function in a typical profile. This takes it completely off the radar by not bothering to merge adjacent strings.
git-svn-id: svn://10.0.0.236/trunk@109638 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 17:51:23 +00:00
beard%netscape.com
5b1f02b594 [not part of build] Install instructions.
git-svn-id: svn://10.0.0.236/trunk@109636 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 17:02:29 +00:00
blizzard%redhat.com
8d5eb4bb86 Checkpointing changes. Not part of the build. Some more methods flushed out including widget creation and moving and resizing.
git-svn-id: svn://10.0.0.236/trunk@109635 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 16:58:04 +00:00
beard%netscape.com
a68d3b9fea [not part of build] bumped version to 1.0d7.
git-svn-id: svn://10.0.0.236/trunk@109634 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 16:27:27 +00:00
beard%netscape.com
bff01706d3 [not part of build] Change history.
git-svn-id: svn://10.0.0.236/trunk@109633 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 16:26:37 +00:00
beard%netscape.com
8f5e8157b7 [not part of build] Bumped version to 1.0d6.
git-svn-id: svn://10.0.0.236/trunk@109631 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 16:20:18 +00:00
kaie%netscape.com
02ab791fca b=110420 fix cert prompt dialogs
r=javi sr=shaver


git-svn-id: svn://10.0.0.236/trunk@109630 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 15:56:54 +00:00
alecf%netscape.com
9500bda665 further fixes for bug 112708 r=bnesse sr=dveditz
instead of using PR_smprintf to construct each user_pref line to the preferences, store it all in a smart cconcatination string - reduces pref allocations at shutdown by 3x


git-svn-id: svn://10.0.0.236/trunk@109629 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 15:44:38 +00:00
bienvenu%netscape.com
fd266d4985 reduce biff notifications, move biff to server level r=naving, sr=sspitzer 113366
git-svn-id: svn://10.0.0.236/trunk@109628 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 15:34:00 +00:00
mkaply%us.ibm.com
dc5e9b403a #84420
r=gordon
Forgot to remove a path that OS/2 and BeOS shouldn't go down - leaving code in but #if 0 per gordon


git-svn-id: svn://10.0.0.236/trunk@109627 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 15:05:03 +00:00
ian%hixie.ch
2358cf13a4 Changed the groupsById and groupsByName hashes of arrays into hashes of hashes to make them friendlier to handle. Also fixed some typos (groupByID instead of groupsByID, and one case of groupsByID where groupsByName was meant) and optimised away a call to dataSource.user's getGroupName method (since we already know the name).
git-svn-id: svn://10.0.0.236/trunk@109626 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 14:34:54 +00:00
ian%hixie.ch
20b7ae1c79 Fixing copy/paste error -- the user prefs object isn't the application object...
git-svn-id: svn://10.0.0.236/trunk@109625 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 13:40:04 +00:00
ian%hixie.ch
1365aca89e Make '0' and '' be equivalent to 'default' for the 'order' attribute of the <set> element. This makes defaulting actually work (missing attributes seem to get set to ''?).
git-svn-id: svn://10.0.0.236/trunk@109624 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 13:08:39 +00:00
ian%hixie.ch
4723ad814e Place a 5 second timeout on the SMTP object -- this makes running setup bearable without an SMTP server (the default timeout is 2 minutes).
git-svn-id: svn://10.0.0.236/trunk@109623 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 12:53:40 +00:00
ian%hixie.ch
5e76d0defd getFieldsHierarchically() will now return an even prettier result. Since it is mainly (currently only?) used for creating the data hash sent to the string expanders, this makes it a lot easier to author the templates. No silly numbers to remember. :-)
git-svn-id: svn://10.0.0.236/trunk@109622 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 12:51:48 +00:00
peterv%netscape.com
4a909a03a3 Make SOAP build again on Mac. Doesn't affect default build. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@109621 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 11:41:03 +00:00
bryner%netscape.com
253a4c8acd install:: is now libs::. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@109620 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 08:34:45 +00:00
dveditz%netscape.com
fd7a016357 bug 113144 installer shouldn't download entire set of xpi files just because
one of them was missing from the "blob". r=sgehani,sr=darin


git-svn-id: svn://10.0.0.236/trunk@109619 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 08:19:43 +00:00
waterson%netscape.com
12d696038c Bug 113390. Make sure that the module has a MODULE_NAME. rs=blizzard
git-svn-id: svn://10.0.0.236/trunk@109617 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 05:26:50 +00:00
dbaron%fas.harvard.edu
5797bffb8a Fix massive numbers of threadsafety assertions by re-adding NS_INIT_ISUPPORTS, to make builds usable again. b=110531 sr=waterson
git-svn-id: svn://10.0.0.236/trunk@109616 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 05:26:46 +00:00
naving%netscape.com
1a656d8aa7 113359 r=suresh sr=bienvenu. free the collation key after finding the place where the new msg hdr will be
inserted.


git-svn-id: svn://10.0.0.236/trunk@109614 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 05:08:26 +00:00
hewitt%netscape.com
2cd84b4cd7 112831 - inspector not in linux installed builds
git-svn-id: svn://10.0.0.236/trunk@109613 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 05:03:13 +00:00
hewitt%netscape.com
5191e28056 112999 - Built-in Accept button closes dialog even when not used in dialog, r=cmanske, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109612 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 05:01:19 +00:00
hewitt%netscape.com
06317c5623 113353 - DOM Inspector needs chromeclass toolbar, r=me
git-svn-id: svn://10.0.0.236/trunk@109611 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 04:48:52 +00:00
dbaron%fas.harvard.edu
cc6399b4d5 Fix orange by exiting loop when bytes hits aMaxBytes rather than waiting for it to get farther.
git-svn-id: svn://10.0.0.236/trunk@109610 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 04:22:44 +00:00
sonja.mirtitsch%sun.com
f45de1fede new test for enhancement request 112504, not hooked in yet
git-svn-id: svn://10.0.0.236/trunk@109609 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 04:16:56 +00:00
mscott%netscape.com
6a662c1a9d Bug #113384 --> hook up CAB collection to a timer to improve initial
message display time.
r=sspitzer
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@109608 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 04:04:22 +00:00
mscott%netscape.com
3849b124cf Bug #112661 --> back out my removal of the firing of selection changed
because it stopped us from selecting the next message when you delete the top of
a collapsed thread.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@109607 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 04:02:02 +00:00
sonja.mirtitsch%sun.com
5c69640fe0 one more change for bug #111229
git-svn-id: svn://10.0.0.236/trunk@109605 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:58:59 +00:00
neeti%netscape.com
c8e9152cd4 fix for bug 112659 - nsSocketTransport does not cache DNS service, r=dougt, sr=darin
git-svn-id: svn://10.0.0.236/trunk@109604 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:47:19 +00:00
waldemar%netscape.com
7aa69e6261 Updated to latest CodeWarrior and to fix subproject dependencies
git-svn-id: svn://10.0.0.236/trunk@109603 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:26:32 +00:00
waldemar%netscape.com
4071dd6dc6 Added support for named function parameters. Fixed several minor variable definition bugs.
git-svn-id: svn://10.0.0.236/trunk@109602 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:25:03 +00:00
mkaply%us.ibm.com
2f54fffc04 OS/2 bustage
git-svn-id: svn://10.0.0.236/trunk@109601 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:10:01 +00:00
andreww%netscape.com
96d1d963f1 bugzilla 101590 different terms in bookmarks properties referring to same element. r=shliang sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109600 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:06:15 +00:00
andreww%netscape.com
6361b1ba52 bugzilla 71486 mac classic buttons too large. r=andreww, sr=hewitt. Patch by Brad Tiffany <btiffany@usermail.com>.
git-svn-id: svn://10.0.0.236/trunk@109599 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:04:02 +00:00
despotdaemon%netscape.com
c0be791366 Pseudo-automatic update of changes made by drepper@cygnus.com.
git-svn-id: svn://10.0.0.236/trunk@109598 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:03:42 +00:00
andreww%netscape.com
3b964af2a8 bugzilla 103192 r=morse sr=hewitt reducing h and v space taken up in cookies prefpanels
git-svn-id: svn://10.0.0.236/trunk@109597 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 02:00:36 +00:00
alecf%netscape.com
55466e06c9 first part of fix for bug 112708 r=bnesse, sr=brendan
switch prefs from PLHash to PLDHash


git-svn-id: svn://10.0.0.236/trunk@109596 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:52:44 +00:00
alecf%netscape.com
1f28c5a550 fix for bug 79707
code by ccarlen, sr=alecf, r=valeski
simple null-check so that embeddors don't have to implement nsIBrowserHistory


git-svn-id: svn://10.0.0.236/trunk@109594 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:42:01 +00:00
cmanske%netscape.com
a7e9b6c238 Fix for Color-Background image properties dialog - forgot to checkin previously for b=90229, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109593 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:24:55 +00:00
alecf%netscape.com
f5bf981bca oops, requires update - add uconv
git-svn-id: svn://10.0.0.236/trunk@109592 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:12:51 +00:00
alecf%netscape.com
728ab648ca fix for bug 110531, r=dougt, jag, sr=darin - moving ConverterInputStream into uconv, and changing the one in XPCOM into an UTF8-only converter
git-svn-id: svn://10.0.0.236/trunk@109591 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:10:43 +00:00
pete%alphanumerica.com
374763776d removing bad header.
--pete


git-svn-id: svn://10.0.0.236/trunk@109590 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:09:37 +00:00
pete%alphanumerica.com
2bad071cbe fix for win bustage
forgot nsIProcess header

--pete


git-svn-id: svn://10.0.0.236/trunk@109589 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 01:08:54 +00:00
rginda%netscape.com
4c925905ac chatzilla only, adding class="chromeclass-toolbar" for os X.
patch=rjc, r=me.


git-svn-id: svn://10.0.0.236/trunk@109588 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:56:12 +00:00
pschwartau%netscape.com
175c0d3676 Adding one more case to test.
git-svn-id: svn://10.0.0.236/trunk@109587 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:54:00 +00:00
darin%netscape.com
172bb49781 fixes bug 94327 "When there are multiple fonts with different foundry names
but the same family name moz should pick the best fit based on width, weight
and available size"
patch=Roland.Mainz@informatik.med.uni-giessen.de
r=katakai@japan.sun.com,(R.K.Aa)dark@c2i.net
sr=kin@netscape.com,jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@109586 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:47:38 +00:00
sonja.mirtitsch%sun.com
ae0cb282f1 improvements coupling QA and tinderbox
git-svn-id: svn://10.0.0.236/trunk@109585 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:44:35 +00:00
pete%alphanumerica.com
14973255e8 b=112515, r=douft, sr=jst
remove spawn method from nsIFile.

/**
    Warning nsIFile API change
 */

--pete


git-svn-id: svn://10.0.0.236/trunk@109584 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:27:43 +00:00
shanjian%netscape.com
39cb7e9730 #103673 Switching to User-Defined character coding causes crash [@ nsFontMetricsWin::ResolveForwards ]
Load userdefined font once and only once, and then treat all other font as normal.

r=rbs, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109583 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:26:28 +00:00
bienvenu%netscape.com
1d4713efc9 fix invalid body partial error from imap server when clicking on message, r=cavin, sr=sspitzer 103171
git-svn-id: svn://10.0.0.236/trunk@109582 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:25:58 +00:00
rginda%netscape.com
320cedffc0 landing CHATZILLA_0_8_5_BRANCH, bug 103386, r=samuel@sieb.net, rs=brendan@mozilla.org
See the ChangeLog and bug for a full list of changes, and the branch checkin log for a blow by blow.


git-svn-id: svn://10.0.0.236/trunk@109581 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:20:48 +00:00
bienvenu%netscape.com
d782fc61ca fix assertion about 0 msg size when first msg you select is fetched with mpod r=cavin, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@109580 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:18:12 +00:00
mcafee%netscape.com
de780130e9 added title= labels for Lk/Bl tinderbox output
git-svn-id: svn://10.0.0.236/trunk@109579 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:18:10 +00:00
despotdaemon%netscape.com
a30241ba05 Pseudo-automatic update of changes made by glen.beasley@sun.com.
git-svn-id: svn://10.0.0.236/trunk@109578 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:12:24 +00:00
rjc%netscape.com
bb79ca7948 Part of fix for bug # 108809: r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109577 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:05:21 +00:00
mcafee%netscape.com
f39fbdbc33 title= labels for Ts, Txul.
git-svn-id: svn://10.0.0.236/trunk@109576 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-04 00:04:57 +00:00
evaughan%netscape.com
e5c8b10723 Facelift for nsBoxToBlockAdaptor -r hyatt -sr waterson #110328
Grid memory leak -r naving -sr hewitt #109490


git-svn-id: svn://10.0.0.236/trunk@109575 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:41:13 +00:00
kmcclusk%netscape.com
c03de93934 Check aHandled after event dispatch before accessing the view's children. b=113121 r=roc+moz sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109574 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:37:09 +00:00
mscott%netscape.com
4252e86f6c remove some obsolete comments.
git-svn-id: svn://10.0.0.236/trunk@109573 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:36:57 +00:00
hwaara%chello.se
5d67f9c327 #78365, make scrolling="off" and scrolling="on" work for frameset elements.
r=fabian, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109572 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:36:40 +00:00
bryner%netscape.com
3d4b21a62a Removing unused MORK_OBSOLETE and MORK_ALONE code. r=bienvenu, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@109571 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:35:23 +00:00
shanjian%netscape.com
6b044f6feb #109913 universal charset detector improvement: use positive approach
r=yokoyama, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109570 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:33:12 +00:00
bienvenu%netscape.com
44121b5cef reduce number of outliner row paints r=varga, sr=hyatt 112253
git-svn-id: svn://10.0.0.236/trunk@109569 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:32:00 +00:00
sgehani%netscape.com
e047419c40 Fix font size menupopup to show sizes more than one char wide.
b=112907; r=sgehani; sr=alecf (checking in for jrgm@netscape.com)


git-svn-id: svn://10.0.0.236/trunk@109568 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:30:53 +00:00
despotdaemon%netscape.com
9e7b754c2c Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@109567 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:30:33 +00:00
smontagu%netscape.com
cba13e3d15 Fix for Bug 17644 [INLINE-H] negative text-indent paragraphs starting with images, r=dbaron, sr=roc+moz
git-svn-id: svn://10.0.0.236/trunk@109566 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:30:32 +00:00
sgehani%netscape.com
82e08e2088 Make old profiles that have a closed sidebar be able to open the sidebar again.
b=113031; r=morse; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109565 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:28:28 +00:00
naving%netscape.com
b30aba8ec0 112783 r=ducarroz sr=bienvenu. free charset got from parsing headers before setting to ISO-8859-1
git-svn-id: svn://10.0.0.236/trunk@109564 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:25:13 +00:00
dbaron%fas.harvard.edu
0739da3e8c Make nsSharableString::Assign set the length correctly when it's reusing its existing buffer. b=112483 r=scc sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109561 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:14:15 +00:00
bzbarsky%mit.edu
033ce36ec4 Create formpost files as 0600, not 0666 so people can't randomly read
them.  Bug 76463, r=alexsavulov, sr=darin


git-svn-id: svn://10.0.0.236/trunk@109560 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:04:44 +00:00
jdunn%netscape.com
e043336604 fixing hp-ux tinderbox orange and aix build bustage
when functions are defined they shouldn't be defined extern
and when declaring externs, they should be declared globably

r=bnesse@netscape.com
sr=alecf@netscape.com
# 113319


git-svn-id: svn://10.0.0.236/trunk@109559 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:04:29 +00:00
alecf%netscape.com
104971899d part of fix for bug 110531 - move CSS loader over to using nsIConverterStream instead of nsIUnicharInputStream
sr=darin, r=dougt


git-svn-id: svn://10.0.0.236/trunk@109558 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:03:18 +00:00
bzbarsky%mit.edu
20b7eaa2ae Forms should return .method in all lowercase for compat with IE and
NS4.  Bug 113174, r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@109557 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:02:12 +00:00
sonja.mirtitsch%sun.com
11c92c480c commiting some changes (backwardcompatibility tests, uname -p problem,
numbers of tests...)
before starting to work on tinderbox problem, log hard to find. 111229


git-svn-id: svn://10.0.0.236/trunk@109556 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 23:00:02 +00:00
morse%netscape.com
c05b6f8783 bug 112757, form manager not working correctly with frames, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109555 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 22:58:47 +00:00
nhotta%netscape.com
9b8be7a4ae Added geostd8 to charset menu, bug 107533, r=yokoyama.
git-svn-id: svn://10.0.0.236/trunk@109554 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 22:58:26 +00:00
dsirnapalli%netscape.com
ae4c770fd9 Test case to test nsIAccessible methods for HTML Table.
git-svn-id: svn://10.0.0.236/trunk@109552 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 22:33:51 +00:00
dsirnapalli%netscape.com
8d95250074 This javascript file contains all the basic functions needed to test nsIAccessible interface.
git-svn-id: svn://10.0.0.236/trunk@109551 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 22:33:13 +00:00
ben%netscape.com
24e139b3ca forgot this too..(113295, blocker)
git-svn-id: svn://10.0.0.236/trunk@109550 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 22:23:17 +00:00
ben%netscape.com
92e434cc59 part of previous fix for 113295
git-svn-id: svn://10.0.0.236/trunk@109548 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 21:51:56 +00:00
ben%netscape.com
c5c9195302 fix for 113295 -'Exit' etc missing from menus. (smoketest blocker)
git-svn-id: svn://10.0.0.236/trunk@109547 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 21:35:55 +00:00
mcafee%netscape.com
9fbe124ac0 Adjusting btek yrange hack value
git-svn-id: svn://10.0.0.236/trunk@109546 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 20:48:38 +00:00
kestes%walrus.com
6e7c6a9cc3 empty cells need to have text brower string.
git-svn-id: svn://10.0.0.236/trunk@109545 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 20:02:39 +00:00
kestes%walrus.com
ae40875194 minor changes in now addnote communicates with tinder.cgi. now the note
is rendered on an as needed basis inside tinder.cgi.


git-svn-id: svn://10.0.0.236/trunk@109544 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:57:35 +00:00
relyea%netscape.com
e52c4fd8a8 Sigh, Fix name collision between pk11wrap and softoken.
git-svn-id: svn://10.0.0.236/trunk@109543 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:56:00 +00:00
kestes%walrus.com
2d83e80dfc text browser updates.
git-svn-id: svn://10.0.0.236/trunk@109542 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:55:56 +00:00
kestes%walrus.com
12ad231d6b add features to allow text browsers to view status tables.
git-svn-id: svn://10.0.0.236/trunk@109541 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:55:12 +00:00
kestes%walrus.com
b35960948e update tests to accomidate new text browser features and conventions.
git-svn-id: svn://10.0.0.236/trunk@109540 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:53:31 +00:00
kestes%walrus.com
61a08b1a54 add support for an ALL page.
fix a bunch of minor bugs and typos.


git-svn-id: svn://10.0.0.236/trunk@109539 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:52:38 +00:00
relyea%netscape.com
940286fb1c Fix Solaris and HP build failures.
git-svn-id: svn://10.0.0.236/trunk@109538 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:51:57 +00:00
kestes%walrus.com
22c7490c4d add link back to the current status page from which ever status page
you are looking at.


git-svn-id: svn://10.0.0.236/trunk@109537 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:50:00 +00:00
kestes%walrus.com
87115e5a49 add support for text browser characters.
git-svn-id: svn://10.0.0.236/trunk@109536 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:48:47 +00:00
kestes%walrus.com
14ae8c3224 generalize treestate so that we can provide data to text browsers.
git-svn-id: svn://10.0.0.236/trunk@109535 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:47:24 +00:00
kestes%walrus.com
ffda9dbeeb add support for an ALL page.
git-svn-id: svn://10.0.0.236/trunk@109534 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:46:04 +00:00
kestes%walrus.com
4d536e38db add support for text browsers: colorized characters which discribe the build
cell state.  Also allow users to chose the brief/full log from the
status page.


git-svn-id: svn://10.0.0.236/trunk@109533 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:44:26 +00:00
kestes%walrus.com
fa08080ad9 add support for text browsers including, special colorized characters
and click through text of notices.


git-svn-id: svn://10.0.0.236/trunk@109532 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:43:28 +00:00
kestes%walrus.com
6adfc6bfa6 add support for text browsers.
git-svn-id: svn://10.0.0.236/trunk@109531 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 19:42:45 +00:00
jdunn%netscape.com
918a4c91d9 Use the right vtable : AIX ONLY!
# 90720
r=cls@seawood.org


git-svn-id: svn://10.0.0.236/trunk@109528 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 15:02:08 +00:00
peterv%netscape.com
da41d89803 Making SOAP build on Mac. Not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@109527 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 14:43:30 +00:00
locka%iol.ie
5af218e201 Add code to nullify pointers and do extra checks to catch docshell crashes most likely caused by bad weak references. b=67721 r=rpotts@netscape.com sr=mscott@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109526 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 12:42:49 +00:00
seawood%netscape.com
8aaa83d975 Backing out previous checkin due to TT font issues.
Bug #94327


git-svn-id: svn://10.0.0.236/trunk@109525 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 10:29:10 +00:00
mcafee%netscape.com
fb5bd72174 Adding &days=0 default to Ts and Txul links.
git-svn-id: svn://10.0.0.236/trunk@109524 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 09:10:32 +00:00
ben%netscape.com
e690e412bc fix 77513 - text on autocomplete checkbox does not wrap on mac modern/classic and causes panel to overflow. r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109523 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 09:07:23 +00:00
mcafee%netscape.com
afe4232ff0 removing jrgm's version of &days=, Date::Calc version is working.
git-svn-id: svn://10.0.0.236/trunk@109522 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 09:07:16 +00:00
ben%netscape.com
34aa827bcd oops forgot this one
git-svn-id: svn://10.0.0.236/trunk@109521 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 08:58:40 +00:00
mcafee%netscape.com
df9d89c579 Adding &days=n argument.
git-svn-id: svn://10.0.0.236/trunk@109520 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 08:56:28 +00:00
mcafee%netscape.com
072c304843 Adding &days=n argument. Left in jrgm's attempt as a comment for now.
git-svn-id: svn://10.0.0.236/trunk@109519 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 08:40:42 +00:00
ben%netscape.com
68f4d927c0 104485 - remove duplicate platformGlobalOverlays, move code into better location and use a better name (platformCommunicatorOverlay). sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109518 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 08:25:21 +00:00
mcafee%netscape.com
f914bb2f05 Adding &days=n argument. Needs Bit::Vector and Date::Calc perl modules.
git-svn-id: svn://10.0.0.236/trunk@109517 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 08:11:15 +00:00
jband%netscape.com
512af6dc98 adding build instructions from pschwartau@netscape.com to the README. Not part of mozilla build
git-svn-id: svn://10.0.0.236/trunk@109516 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 07:58:18 +00:00
hewitt%netscape.com
3a6a5da964 112831 - linux installer crashes when installing inspector (just fixing typo in packages)
git-svn-id: svn://10.0.0.236/trunk@109515 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 06:18:00 +00:00
blakeross%telocity.com
06b1b51c97 110674 - msgdeletemessage() has two unnecessary function calls. r=hwaara sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@109514 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 06:03:33 +00:00
blakeross%telocity.com
c045d704f4 112954 - tasksOverlay.css is loaded twice on nav startup, mail startup and msg compose opening. sr=ben
git-svn-id: svn://10.0.0.236/trunk@109513 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 06:01:24 +00:00
jaggernaut%netscape.com
2ac4fb93a3 Bug 61886: Revert to use currentURI.spec instead of _content.location.href. r=dbaron
git-svn-id: svn://10.0.0.236/trunk@109512 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 04:19:00 +00:00
seawood%netscape.com
fc5cfdea80 When there are fonts with multiple foundry names, pick the best font based upon widget, height & available size.
Thanks to Brian Stell <bstell@netscape.com> & Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> for the patch.
Bug #94327 r=katakai sr=kin


git-svn-id: svn://10.0.0.236/trunk@109511 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 04:18:26 +00:00
dbaron%fas.harvard.edu
77c606ffad Make nsSharableString::Assign set the length when it's reusing its existing buffer. b=112483 r=jag sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109509 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 03:54:32 +00:00
seawood%netscape.com
9758414022 Implement textZoom, fix caret hiding problem and fix italics displaying as normal chars problem.
Thanks to Makoto Hamanaka <VYA04230@nifty.com> & Paul Ashford <arougthopher@lizardland.net> for the patch.
Bug #68442 r=cls


git-svn-id: svn://10.0.0.236/trunk@109508 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 03:16:05 +00:00
av%netscape.com
d415329519 Preparing the Plugin SDK to become a part of the regular build. It is not yet.
git-svn-id: svn://10.0.0.236/trunk@109507 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 02:46:10 +00:00
mcafee%netscape.com
5b91673b2e Changing to long hashtable tag (113175). code=gisburn, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@109506 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 02:31:46 +00:00
naving%netscape.com
eb72fbb1a3 112331, 112333 r=ducarroz sr=bienvenu. fix leaking char *mail charset and url string.
git-svn-id: svn://10.0.0.236/trunk@109505 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 00:58:37 +00:00
bryner%netscape.com
b09257b93a Backing out new code alecf accidentely checked in, fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@109504 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-03 00:37:35 +00:00
av%netscape.com
b80617f16a Preparing the Plugin SDK to become a part of the build, it is not yet.
git-svn-id: svn://10.0.0.236/trunk@109503 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 23:39:03 +00:00
alecf%netscape.com
0daeecc032 augh, didn't mean to check these in
git-svn-id: svn://10.0.0.236/trunk@109502 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 23:17:11 +00:00
alecf%netscape.com
bfb7e06d84 ok, back out my ToLowerCase() change, it didn't make any difference
git-svn-id: svn://10.0.0.236/trunk@109501 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 23:15:31 +00:00
seawood%netscape.com
c3a0ae9bc7 Revert to using standard config.sub & config.guess entries for OS/2.
Thanks to pedemont@us.ibm.com (Javier Pedemonte) for the patch.
Bug #112244 r=cls


git-svn-id: svn://10.0.0.236/trunk@109500 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:16:28 +00:00
rangansen%netscape.com
8ee6615c9b bug 112517, r=rangansen sr=hewitt.
Removing some dead bloats  checking in for John Morrison


git-svn-id: svn://10.0.0.236/trunk@109499 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:11:21 +00:00
bryner%netscape.com
90f701cee0 Removing unused useViewManager2 default pref. rs=ben.
git-svn-id: svn://10.0.0.236/trunk@109498 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:09:09 +00:00
seawood%netscape.com
c88ac2817e Adding test for gcc -pipe feature.
Bug #81031 r=wtc


git-svn-id: svn://10.0.0.236/trunk@109497 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:08:42 +00:00
rangansen%netscape.com
645f530172 bug 112249, r=rangansen sr=blake.
checking in for John Morrison


git-svn-id: svn://10.0.0.236/trunk@109496 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 22:00:28 +00:00
leaf%mozilla.org
01dab956f2 Automated update
git-svn-id: svn://10.0.0.236/trunk@109495 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:57:48 +00:00
seawood%netscape.com
f31e9e184a Remove --disable-gcc-pipe option.
Bug #81031


git-svn-id: svn://10.0.0.236/trunk@109494 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:56:19 +00:00
mcafee%netscape.com
5076271f06 Added &autoscale=1 option, default is still the btek hack [1300:1400]
git-svn-id: svn://10.0.0.236/trunk@109493 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:54:25 +00:00
mcafee%netscape.com
56fe984f6b First commit.
git-svn-id: svn://10.0.0.236/trunk@109492 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:50:59 +00:00
mcafee%netscape.com
bdccdab341 Adding &autoscale=1 option, default is off
git-svn-id: svn://10.0.0.236/trunk@109491 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:43:35 +00:00
mcafee%netscape.com
b5df37b8a6 Ignore db directory
git-svn-id: svn://10.0.0.236/trunk@109490 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:31:30 +00:00
mcafee%netscape.com
d3e4ce05b3 Added &autoscale=1 option to autoscale y-axis.
git-svn-id: svn://10.0.0.236/trunk@109489 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 21:30:31 +00:00
alecf%netscape.com
cf0efed474 performance test - just to see if nsString.ToLowerCase() is faster than ToLowerCase()
no reviewer, will back out after one or two tinderbox cycles


git-svn-id: svn://10.0.0.236/trunk@109488 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 19:06:02 +00:00
mcafee%netscape.com
c607935314 renamed XUL test timeout to match test name, extended timeout openwound was timing out
git-svn-id: svn://10.0.0.236/trunk@109487 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 19:04:52 +00:00
mcafee%netscape.com
f4920c741f xul test is faster than 5 min.
git-svn-id: svn://10.0.0.236/trunk@109486 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 09:29:33 +00:00
mcafee%netscape.com
cca2e5fcc9 need chomp to nuke \n off of open_time
git-svn-id: svn://10.0.0.236/trunk@109485 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 09:17:07 +00:00
mcafee%netscape.com
c65adbaa24 data doesn't like spaces? protocol error in send_xulwinopen_results_to_server()
git-svn-id: svn://10.0.0.236/trunk@109484 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 08:59:04 +00:00
mcafee%netscape.com
8f4b30c5ce Changed xulwinopen token so we can wrap the number with a link to a graph of the data history. Added comment for -P profile slowness in startup test.
git-svn-id: svn://10.0.0.236/trunk@109483 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 06:44:20 +00:00
mcafee%netscape.com
f5e32f2df1 Tinderbox test only: change data token so we only get a number back (ms).
git-svn-id: svn://10.0.0.236/trunk@109482 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 06:40:56 +00:00
dp%netscape.com
a4490c1e80 disabling unconditional printfs.
git-svn-id: svn://10.0.0.236/trunk@109480 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 05:39:49 +00:00
dbaron%fas.harvard.edu
3c194f9341 Fix OS/2 bustage by changing |inline nsresult| to |NS_IMETHODIMP| for function that can't and shouldn't be inline. b=110127
git-svn-id: svn://10.0.0.236/trunk@109479 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 05:33:20 +00:00
curt%netscape.com
1eb1030073 More complete title for Mail and Newsgroups.
git-svn-id: svn://10.0.0.236/trunk@109478 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 04:49:39 +00:00
dbaron%fas.harvard.edu
d43ae7083a Fix leak (and other) regression from previous checkin. b=111815
git-svn-id: svn://10.0.0.236/trunk@109477 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 04:07:17 +00:00
bryner%netscape.com
5905d6acc1 Forgot this file as part of 113082. (pre-emptively fixing bustage)
git-svn-id: svn://10.0.0.236/trunk@109476 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:46:56 +00:00
dbaron%fas.harvard.edu
7a15a72b48 Various cleanup and commenting in nsRuleNode and nsStyleContext. A few minor performance tweaks to nsRuleNode::WalkRuleTree. Fix correctness / crash errors that were caused by not setting the parent struct in the Compute*Data functions for inherited structs. b=111815 r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109475 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:44:45 +00:00
bzbarsky%mit.edu
d414acca70 Fix typo in value returned by getComputedStyle. Bug 112866, sr=jst
git-svn-id: svn://10.0.0.236/trunk@109474 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:28:48 +00:00
bzbarsky%mit.edu
fab167e7ab Make DOM inspector scroll to elements before flashing them. Bug 112817,
r=hidday@geocities.com, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@109473 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:25:36 +00:00
av%netscape.com
bdbe12be37 Preparing pluign SDK for becoming a part of the build (it is not yet).
git-svn-id: svn://10.0.0.236/trunk@109472 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:14:05 +00:00
bryner%netscape.com
38d080e8ca Removing old grid code (bug 113082). r=timeless, evaughan, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@109471 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-02 00:10:21 +00:00
leaf%mozilla.org
612b6a7c12 Automated update
git-svn-id: svn://10.0.0.236/trunk@109470 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 22:27:51 +00:00
seawood%netscape.com
3b8c1ad96f Set -DFUNCPROTO=15 when compiling against X so that the X headers use the fully qualified ANSI-C prototypes.
Bug #112873 r=bryner


git-svn-id: svn://10.0.0.236/trunk@109469 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 22:15:20 +00:00
bryner%netscape.com
7557fca3e3 Removing unused silentdownload prefs. r=shaver, rs=ben.
git-svn-id: svn://10.0.0.236/trunk@109468 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 21:03:12 +00:00
leaf%mozilla.org
72e98582f5 Automated update
git-svn-id: svn://10.0.0.236/trunk@109467 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 18:57:50 +00:00
seawood%netscape.com
43e92a7e26 Revert to using standard config.sub & config.guess entries for OS/2.
Thanks to pedemont@us.ibm.com (Javier Pedemonte) for the patch.
Bug #112244 r=cls


git-svn-id: svn://10.0.0.236/trunk@109466 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 18:54:41 +00:00
seawood%netscape.com
85f1209627 Disable universalchardet tests when DISABLE_TESTS is set.
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #111528 r=cls


git-svn-id: svn://10.0.0.236/trunk@109465 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 18:49:06 +00:00
nhotta%netscape.com
fe0a0ab52d Attempt to fix the Mac bustage.
git-svn-id: svn://10.0.0.236/trunk@109464 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 18:28:15 +00:00
nhotta%netscape.com
acd5f7a6de Added default charset to nsIMsgCompFields, removed nsMsgI18NGetDefaultMailCharset, bug 110127, r=ducarroz, sr=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@109462 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 17:39:17 +00:00
nhotta%netscape.com
3a97f35d33 For search, cache default charset to the class. For eudora, changed to get a pref directly,
bug 110127, r=naving, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@109461 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 17:36:35 +00:00
bienvenu%netscape.com
c871243e84 clear cached thread object when folder tries to clear db (fix for bloat when switching folders) r=naving, sr=sspitzer 95685
git-svn-id: svn://10.0.0.236/trunk@109460 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 17:25:33 +00:00
mkaply%us.ibm.com
864d999137 put PL_strtok_r in to try to fix HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@109459 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 14:58:54 +00:00
roc+%cs.cmu.edu
35e1d479ea Bug 73382. Clean up view manager interfaces, 2nd attempt. r=kmcclusk,rs=attinasi
git-svn-id: svn://10.0.0.236/trunk@109458 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 14:31:45 +00:00
jst%netscape.com
ced02272fe Fixing bug 113008. Marking nsIDOMNodeFilter as a 'function' so that JS functions can be passed as nsIDOMNodeFilters. r=dbaron@fas.harvard.edu, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109457 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 09:24:36 +00:00
leaf%mozilla.org
388fec8b4d Automated update
git-svn-id: svn://10.0.0.236/trunk@109456 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 08:42:51 +00:00
dbaron%fas.harvard.edu
d53a7ab034 Back out failed attempt to fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@109455 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 08:37:37 +00:00
dbaron%fas.harvard.edu
84182160c6 nsBookmarksService.h now depends on nkcache. Fixing bustage. b=108809
git-svn-id: svn://10.0.0.236/trunk@109454 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 08:34:11 +00:00
ben%netscape.com
c424dc725c fix build bustage. add nkcache dependency.
git-svn-id: svn://10.0.0.236/trunk@109453 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 08:01:08 +00:00
leaf%mozilla.org
5499e2a236 Automated update
git-svn-id: svn://10.0.0.236/trunk@109452 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 07:27:49 +00:00
rjc%netscape.com
8082ff2e04 Fix bug #108809. r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109451 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 07:23:21 +00:00
dbaron%fas.harvard.edu
0090b7de69 Fix HP bustage from bug 112708 by testing for strtok_r in C++ rather than C.
git-svn-id: svn://10.0.0.236/trunk@109450 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 07:16:07 +00:00
jst%netscape.com
7978eda6a0 Adding 'raises(...)' to a few methods to make our interfaces match the W3C DOM Events ones closer. No review, these changes are meaningless in mozilla for now.
git-svn-id: svn://10.0.0.236/trunk@109448 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 06:45:32 +00:00
hewitt%netscape.com
d4423fda70 101958 - outliner drag-n-drop without changing columns sorts on that column, r=jag, sr=blake
git-svn-id: svn://10.0.0.236/trunk@109447 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 06:38:42 +00:00
jst%netscape.com
b294f8c72f Whitespace changes to make these interfaces match the styling in the other DOM interfaces.
git-svn-id: svn://10.0.0.236/trunk@109446 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 06:36:12 +00:00
mcafee%netscape.com
2d6a76a195 comment hints for mail test
git-svn-id: svn://10.0.0.236/trunk@109444 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 06:01:33 +00:00
seawood%netscape.com
98e5ef46e1 Remove mozilla/security/makefile.win from PSM pull as it's still breaking things.
bug #109581


git-svn-id: svn://10.0.0.236/trunk@109443 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 04:50:26 +00:00
seawood%netscape.com
ad4f27ab02 More fun with CVS' Emptydir feature. Pull NSS before PSM like win32 does.
Bug #109581


git-svn-id: svn://10.0.0.236/trunk@109442 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 04:39:04 +00:00
ian%hixie.ch
e0683c5b96 Fixed a bug in the main run loop whereby the objects array wasn't freed until shutdown, which sometimes meant objects got destroyed after the application, which is bad when the objects use the application to find services, etc. (This doesn't happen with services since services are not allowed to store references to the application, either directly or indirectly through references to objects or service instances.) Fixed the logout code to wait until the user tries to do something that requires login before clearing the logging out flag. This fixes a bug with HTTP whereby if a user logged out then his UA wouldn't ever be sent a 401 so wouldn't ever lose the authentication info, because browsers send the authentication info regardless of whether a page needs it or not. Also took the opportunity to remove a potential bug in the input validator code: store the admin message instead of a reference to the user object which might end up with a lifetime longer than expected.
git-svn-id: svn://10.0.0.236/trunk@109441 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 04:37:26 +00:00
rko%netscape.com
e66d81d179 Testing cvs upgrade
git-svn-id: svn://10.0.0.236/trunk@109440 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 04:34:21 +00:00
ian%hixie.ch
b2d7bfcb3f Removed an outdated comment. It is now safe to have a single module be a service, one or more service instances, and one or more objects all at the same time.
git-svn-id: svn://10.0.0.236/trunk@109439 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 04:29:20 +00:00
law%netscape.com
3c64a584db Enhance compareNav so it handles jar/nojar configurations
git-svn-id: svn://10.0.0.236/trunk@109438 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:54:14 +00:00
seawood%netscape.com
5864394fd1 Pull mozilla/security/makefile.win now that the cvs server has been upgraded. bug #109581
git-svn-id: svn://10.0.0.236/trunk@109437 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:45:14 +00:00
waldemar%netscape.com
0fd39e383e Recent ECMA grammar changes: deleted the x.class operator and prohibited super from being a direct operand of the delete operator.
git-svn-id: svn://10.0.0.236/trunk@109436 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:31:46 +00:00
waldemar%netscape.com
0338c89237 Fixed Mac warnings
git-svn-id: svn://10.0.0.236/trunk@109435 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:30:13 +00:00
pschwartau%netscape.com
b0ecf5191b Added more cases to test; updated the license at top.
git-svn-id: svn://10.0.0.236/trunk@109434 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:29:24 +00:00
seawood%netscape.com
e6d1d3a41d Post CVS server upgrade test
git-svn-id: svn://10.0.0.236/trunk@109433 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 03:23:13 +00:00
dp%netscape.com
74fd5a7096 make this work with cygwin
git-svn-id: svn://10.0.0.236/trunk@109432 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 01:51:41 +00:00
vidur%netscape.com
ce35be2ae4 Better handling of progress indicator. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109431 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 01:20:46 +00:00
vidur%netscape.com
2c85c3cfe2 Ensure that we call NS_TermEmbedding on shutdown. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109430 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 01:20:02 +00:00
waterson%netscape.com
724ee564ce First checked in.
git-svn-id: svn://10.0.0.236/trunk@109429 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 01:07:39 +00:00
morse%netscape.com
d7d45166cb bug 112934, fix regression caused by patch in bug 77073, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109428 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:58:59 +00:00
mscott%netscape.com
903636d139 add missing file
git-svn-id: svn://10.0.0.236/trunk@109427 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:58:48 +00:00
law%netscape.com
460bff4c49 Updating old .bat files to key off nav window visibility; adding tools to run with alternative .jars and calculate stats
git-svn-id: svn://10.0.0.236/trunk@109426 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:51:12 +00:00
dp%netscape.com
e1b00fa978 bug 112312 Removing 32k-1 allocs when reading jar files. Saves a bunch
of time (about 10% on win2k) on startup. r=cathleen,dveditz sr=darin


git-svn-id: svn://10.0.0.236/trunk@109425 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:50:13 +00:00
akkana%netscape.com
7149730967 91388: fix some link checker regressions (debug menu only), track change in backend apis. r=brade,cmanske sr=kin
git-svn-id: svn://10.0.0.236/trunk@109424 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:44:30 +00:00
jaggernaut%netscape.com
b95acca2fe Bug 99501: JS error in viewZoomOverlay.js at startup. r=sfraser, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109422 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:43:22 +00:00
hewitt%netscape.com
dd19aed169 97253 - XBL Default Content Bug in LocateInstance, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109421 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:32:07 +00:00
hewitt%netscape.com
a0aefcf642 112772 - DOM Inspector leaks a whole document, r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109420 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:25:01 +00:00
bryner%netscape.com
955fa48f3d Bug 41119 - Don't waste time notifying the frame manager about frame destruction if it is happening from nsFrameManager::Destroy. r=dbaron, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@109419 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:22:00 +00:00
rayw%netscape.com
01d7dc1de2 Fixed errors in mustUnderstand attribute of header block.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109417 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:03:57 +00:00
mscott%netscape.com
a179cb995d Bug #112724 --> reduce the duplicate copies of messenger's contents.rdf
by creating a new chrome package called messenger-mapi.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109415 18797224-902f-48f8-a5cc-f745e15eee43
2001-12-01 00:01:02 +00:00
rpotts%netscape.com
08aa9eb651 i'm a doofus!! all of the LoadURI calls started looking the same :-)
git-svn-id: svn://10.0.0.236/trunk@109414 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:54:30 +00:00
jgaunt%netscape.com
72a3d81e33 Fixing bustage on linux
git-svn-id: svn://10.0.0.236/trunk@109413 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:51:06 +00:00
sfraser%netscape.com
6bb76f2ad1 Fix access paths to pick up new files.
git-svn-id: svn://10.0.0.236/trunk@109412 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:42:44 +00:00
ian%hixie.ch
1b28669e3b Add support for keyed channels to mozbot. A lot of work, like it said in the INSTALL file. :-) b=112955 r=timeless
git-svn-id: svn://10.0.0.236/trunk@109410 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:38:21 +00:00
rayw%netscape.com
ff74724cba Gave more SOAP objects xpconnect behaviors.
git-svn-id: svn://10.0.0.236/trunk@109409 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:32:53 +00:00
relyea%netscape.com
4e5aab32b8 1) restore the const to PK11_Configure().
2) partial set of fixes from Nelson's review (checking for NULL) from the
'double escape' functions.
3) Add functions to clean up global memory locks


git-svn-id: svn://10.0.0.236/trunk@109408 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:32:30 +00:00
relyea%netscape.com
7535dff25e The other half of the double check change.
git-svn-id: svn://10.0.0.236/trunk@109407 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:29:31 +00:00
mkaply%us.ibm.com
bb79587d15 #110927
r=mkaply, sr=blizzard
OS/2 only - Code from jblanco to fix Alt Key handling with menus


git-svn-id: svn://10.0.0.236/trunk@109406 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:29:29 +00:00
relyea%netscape.com
ad1ef60f63 Fix several memory leaks.
Adjust the default hash sizes down for mozilla client.
Merge the NSS 3.3 key check and signature check stuff.


git-svn-id: svn://10.0.0.236/trunk@109405 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:24:35 +00:00
relyea%netscape.com
9b9e6b8328 fix Bug 93989 Memory leak when adding a module.
git-svn-id: svn://10.0.0.236/trunk@109404 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:22:53 +00:00
relyea%netscape.com
568582c0fc Add code to 'shutdown' freebl (clean up the blinding cache in rsa).
merge the NSS 3.3 changes to export Ian's double check code through the loader.


git-svn-id: svn://10.0.0.236/trunk@109403 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 23:21:49 +00:00
alecf%netscape.com
7d510d571d add nsConverterInputStream to factory now that all 3 platforms are updated
git-svn-id: svn://10.0.0.236/trunk@109402 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:58:36 +00:00
alecf%netscape.com
63cb208466 oops, export this file
git-svn-id: svn://10.0.0.236/trunk@109401 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:58:01 +00:00
alecf%netscape.com
287688d772 Added files:
mozilla/intl/uconv/src/nsConverterInputStream.cpp


git-svn-id: svn://10.0.0.236/trunk@109400 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:57:55 +00:00
rayw%netscape.com
456c9f8a82 Fixed most SOAP issues brought up by reviewer. Added completion object.
Inherited SOAPParameter and SOAPHeaderBlock from SOAPBlock, improved
error condition handling, improved comments.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109399 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:53:16 +00:00
seawood%netscape.com
eadbebad36 Since jobserver feature of gmake causes dependency targets to be processed in parallel, we need to invoke $(MAKE) for each of the phases that we want to build from a meta target (like all:: & alldep::).
git-svn-id: svn://10.0.0.236/trunk@109398 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:53:10 +00:00
alecf%netscape.com
547df4c3e4 other part of bug 11053, move ConverterInputStream into uconv from xpcom, sr=darin r=dougt
git-svn-id: svn://10.0.0.236/trunk@109397 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:50:27 +00:00
jgaunt%netscape.com
791ff8df84 bug 112701 - seperate accessible/src dir into 3
mac specific changes
r=aaronl
r=leaf
sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@109396 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:49:02 +00:00
jgaunt%netscape.com
6d091ec688 bug 112701 - seperate accessible/src directory into 3
r=aaronl
r=leaf
sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@109395 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:48:55 +00:00
alecf%netscape.com
20ef036496 bug 110531 and bug 108285 - move ConverterInputStream into uconv and out of xpcom. sr=darin, r=dougt
git-svn-id: svn://10.0.0.236/trunk@109394 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:48:47 +00:00
mkaply%us.ibm.com
4defff2d32 #107905
r=mkaply, sr=attinasi
OS/2 only - don't shortcut font computations for fixed with fonts


git-svn-id: svn://10.0.0.236/trunk@109393 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:47:57 +00:00
mkaply%us.ibm.com
3f17113145 #112359
r=mkaply, sr=blizzard
OS/2 only - crash if you don't have font Times New Roman MT 30 installed


git-svn-id: svn://10.0.0.236/trunk@109392 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:43:52 +00:00
ian.mcgreer%sun.com
60617f97d8 fix so that nickname lookup falls back to email address (for CERT_FindCertByNicknameOrEmailAddr)
git-svn-id: svn://10.0.0.236/trunk@109391 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:40:31 +00:00
rpotts%netscape.com
2faee254d0 bug #94205 (r=adamlock@netscape.com, sr=jst@netscape.com) nsIWebNavigation interface changes...
git-svn-id: svn://10.0.0.236/trunk@109390 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:35:33 +00:00
jj%netscape.com
5a413592bd bump up mac version number to 0.9.6+ on the trunk
git-svn-id: svn://10.0.0.236/trunk@109389 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:21:31 +00:00
despotdaemon%netscape.com
db385a8bd7 Pseudo-automatic update of changes made by mitchf@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@109388 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:11:20 +00:00
dp%netscape.com
761471061c stop with visible window
git-svn-id: svn://10.0.0.236/trunk@109387 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:08:55 +00:00
dbaron%fas.harvard.edu
25c6c4fd3c Fix typo. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@109386 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 22:03:28 +00:00
dbaron%fas.harvard.edu
79ed9126ca Fix typos that shouldn't have been checked in. b=110802
git-svn-id: svn://10.0.0.236/trunk@109383 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:58:09 +00:00
mcafee%netscape.com
7c297b316b Adding test timeouts, so clients can configure this.
git-svn-id: svn://10.0.0.236/trunk@109382 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:56:21 +00:00
jake%acutex.net
e0604e6a44 Get the file list of files to scan for templates from Support::Files instead of glob('*')
git-svn-id: svn://10.0.0.236/trunk@109381 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:49:47 +00:00
yokoyama%netscape.com
4da245455d Bug 109265
checking in for skamio@netscape.net
Disabling IME for Readonly attribute of <INPUT>
/r=yokoyama; /sr=kin


git-svn-id: svn://10.0.0.236/trunk@109380 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:48:31 +00:00
mkaply%us.ibm.com
6a1f0c6ce3 No bug
r=mkaply
OS/2 only - "." and " " should not be special file system chars on OS/2


git-svn-id: svn://10.0.0.236/trunk@109379 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:28:41 +00:00
mkaply%us.ibm.com
bb7cbc0dc5 No bug - cleanup - remove unnecessary XP_OS2_HACK and XP_OS2
git-svn-id: svn://10.0.0.236/trunk@109377 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 21:00:43 +00:00
mkaply%us.ibm.com
4ad9438062 No bug - cleanup - remove unnecessary XP_OS2_HACK
git-svn-id: svn://10.0.0.236/trunk@109376 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:56:42 +00:00
mkaply%us.ibm.com
495db0227d No bug - cleanup - remove unnecessary XP_OS2
git-svn-id: svn://10.0.0.236/trunk@109375 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:55:28 +00:00
law%netscape.com
bda7e275dd Bug 106231; add mnemonic for Disable QuickLaunch menu item; patch from Tsukasa Maruyama (mal@mozilla.gr.jp); r=morse, sr=ben
git-svn-id: svn://10.0.0.236/trunk@109374 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:50:18 +00:00
ian%hixie.ch
1fde83c771 Made all dependencies load their modules on demand rather than on startup (cuts down the page serving time by about 50%). Also removed some debugging statements in certain high profile areas.
git-svn-id: svn://10.0.0.236/trunk@109373 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:48:36 +00:00
mkaply%us.ibm.com
4d79330194 Taking cls suggestion - just include string.h
git-svn-id: svn://10.0.0.236/trunk@109372 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:48:13 +00:00
attinasi%netscape.com
c34413af37 Blocked images will no longer show the broken image icon, nor will they show ALT text. Repairs alleged 'regression' from previous ALT text fixes. b=109090 r=alexsavulov sr=kin
git-svn-id: svn://10.0.0.236/trunk@109371 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:47:06 +00:00
attinasi%netscape.com
3db4a0e9ac Checkin for Ulrich Drepper: cleanup of 'if' cascade in frame constructor for controls. b=99421 r=rods sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109370 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:43:35 +00:00
mkaply%us.ibm.com
4858a05464 Attempt to fix HPUX bustage - use PL_strtok_r instead of strtok_r
git-svn-id: svn://10.0.0.236/trunk@109369 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 20:41:49 +00:00
mkaply%us.ibm.com
0780022acc Preemptively fix OS/2 bustage that will be caused by prefapi change
git-svn-id: svn://10.0.0.236/trunk@109368 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:56:56 +00:00
despotdaemon%netscape.com
0ed7d1b0ca Pseudo-automatic update of changes made by alexsavulov@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@109367 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:53:58 +00:00
alecf%netscape.com
b1a1737850 for bug 112708, sr=dveditz, r=bnesse move prefapi.c to prefapi.cpp
git-svn-id: svn://10.0.0.236/trunk@109366 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:43:43 +00:00
alecf%netscape.com
f803585f96 for bug 112708, sr=dveditz, r=bnesse convert prefapi.c to C++
git-svn-id: svn://10.0.0.236/trunk@109365 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:42:41 +00:00
despotdaemon%netscape.com
d5ccc4ed9e Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@109364 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 18:40:49 +00:00
ian%hixie.ch
9ea87b9464 Added support for easily getting the original key name of a munged key: added a virtual '.coses: original key' entry to all hashes in COSES (works similar to the virtual '.length' item that all arrays have). Edited the debug string to mention these virtual items.
git-svn-id: svn://10.0.0.236/trunk@109361 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 16:20:22 +00:00
ian%hixie.ch
10f906b791 Fixing an inconsistency between getArgument() and peekArgument(). peekArgument() now returns an empty list in an array context if there is no such argument, instead of undef. This makes it act like getArgument(), which just returns the list of values in an array context. Similarly, made the default implementation of peekArgument() whine about not being implemented instead of returning undef, since by design peekArgument() should return the same as getArgument() if the argument is present.
git-svn-id: svn://10.0.0.236/trunk@109360 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 16:13:00 +00:00
ian%hixie.ch
5668befe73 Adding error handling for the case where the user prefs editor is called with bogus user IDs.
git-svn-id: svn://10.0.0.236/trunk@109359 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 16:06:45 +00:00
karnaze%netscape.com
f9dc3f03b9 bug 51023 - reduce the size of table related frame classes. sr=kin.
git-svn-id: svn://10.0.0.236/trunk@109358 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 15:05:51 +00:00
ian%hixie.ch
9d60eadb89 Implemented logout and explicit new account creation in the login service. Had to add removeObject() to the Controller module (the opposite of the exisiting addObject()).
git-svn-id: svn://10.0.0.236/trunk@109357 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 13:31:29 +00:00
peterv%netscape.com
1528f1d062 Fix for 106586 (Inappropriate source into the plaintext copy.) r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@109355 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 09:50:25 +00:00
peterv%netscape.com
022734969c Fix for 106586 (Inappropriate source into the plaintext copy.) r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@109354 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 09:19:33 +00:00
mcafee%netscape.com
5a19c639ba close the file to get it to write to disk
git-svn-id: svn://10.0.0.236/trunk@109353 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:41:27 +00:00
mcafee%netscape.com
299232dd6d match changes from startup test.
git-svn-id: svn://10.0.0.236/trunk@109352 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:38:05 +00:00
sspitzer%netscape.com
662226b765 fix for #112786. the home page link isn't "blue" like the other links in the addressbook
card preview pane.


git-svn-id: svn://10.0.0.236/trunk@109351 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:34:22 +00:00
mcafee%netscape.com
53f812c1af better error message when no data file is found.
git-svn-id: svn://10.0.0.236/trunk@109350 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:32:53 +00:00
rginda%netscape.com
4cbd7a484c bug 112494, "crash in nsAccessibilityService::CreateIFrameAccessible", r=jgaunt, sr=shaver
sanity check the parameter and return an error code if something isn't right, instead of crashing.


git-svn-id: svn://10.0.0.236/trunk@109348 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:29:08 +00:00
samuel%sieb.net
c517416200 bring the xml-rpc code up to date with current APIs (bug 109960)
r=mj@digicool.com  sr=darin@netscape.com
not part of the build


git-svn-id: svn://10.0.0.236/trunk@109346 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 08:04:25 +00:00
mcafee%netscape.com
3b00003c68 try to fix error-on-first-report
git-svn-id: svn://10.0.0.236/trunk@109345 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 07:57:19 +00:00
dveditz%netscape.com
6d4c956f3f Free bloated component registry buffer after XPCOM init (bug 76329)
r=dougt, sr=shaver


git-svn-id: svn://10.0.0.236/trunk@109344 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 07:50:03 +00:00
jst%netscape.com
a517f0d2fa Fixing bug 93513. Make window.open() use the base uri of the caller as the base, and not the document uri of the caller. r=danm@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109343 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 07:49:32 +00:00
mcafee%netscape.com
3bbe05e233 Adding xulwinopen test data reporting.
git-svn-id: svn://10.0.0.236/trunk@109338 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 06:00:16 +00:00
mcafee%netscape.com
15f72e185c avg -> value
git-svn-id: svn://10.0.0.236/trunk@109337 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:53:01 +00:00
mcafee%netscape.com
8dc19dba47 switching avg to value
git-svn-id: svn://10.0.0.236/trunk@109336 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:49:19 +00:00
mcafee%netscape.com
6a31a9a661 Fixing Y axis label
git-svn-id: svn://10.0.0.236/trunk@109335 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:44:07 +00:00
bzbarsky%mit.edu
ec244f8044 Add unicharutil_s to LLIBS to make Win link correctly.
git-svn-id: svn://10.0.0.236/trunk@109334 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:35:37 +00:00
dbaron%fas.harvard.edu
f929dd8a3c Add nsOutlinerContentView.cpp and nsOutlinerUtils.cpp for varga. b=97062
git-svn-id: svn://10.0.0.236/trunk@109333 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:10:25 +00:00
dbaron%fas.harvard.edu
181862eab6 Add nsIOutlinerContentView.idl for varga. b=97062
git-svn-id: svn://10.0.0.236/trunk@109332 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 05:08:26 +00:00
mcafee%netscape.com
fac515fed9 First add. Clone of startup cgis. plans to make this a general graph cgi are in the wings, this is a temporary get-this-going hack
git-svn-id: svn://10.0.0.236/trunk@109330 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:51:04 +00:00
peterlubczynski%netscape.com
8ffb403866 Fixing up simple Mac Plugin SDK sample. not part of the build
git-svn-id: svn://10.0.0.236/trunk@109328 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:49:46 +00:00
peterlubczynski%netscape.com
69224826eb Mac Plugin SDK Scriptable plugin project file fix for Classic
git-svn-id: svn://10.0.0.236/trunk@109327 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:42:30 +00:00
varga%utcru.sk
e0dc84b7d2 Fix for 97062.
Implement a content model view for <outliner>.
r=bryner sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@109326 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:41:55 +00:00
bzbarsky%mit.edu
5c31397853 Bug 109236, take 2, now that mcp has been changed. r=law, sr=mscott.
git-svn-id: svn://10.0.0.236/trunk@109325 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:37:21 +00:00
peterlubczynski%netscape.com
2648c43ca9 Removing debug prefix file from Mac Plugin SDK. not part of the build
git-svn-id: svn://10.0.0.236/trunk@109324 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:33:25 +00:00
sfraser%netscape.com
f975fa5699 Add UnicharUtil library for bz
git-svn-id: svn://10.0.0.236/trunk@109323 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:32:00 +00:00
sspitzer%netscape.com
766713789c fix warnings, fix whitespace.
git-svn-id: svn://10.0.0.236/trunk@109322 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:19:21 +00:00
law%netscape.com
b1eab7dd46 Bug 108567; put icon <image>s in vbox so they don't stretch; r=hwaara/bzbarsky, sr=blake
git-svn-id: svn://10.0.0.236/trunk@109321 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:17:05 +00:00
peterlubczynski%netscape.com
43ccc3908c Fixing up Mac Plugin SDK Basic Sample Project for Classic. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@109320 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:12:42 +00:00
kmcclusk%netscape.com
a91bf4a68d Make the backbuffer transitory based on a pref. This does not have any effect unless you set (layout.transitory.backbuffer", true) bug 95952 sr=attinasi r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@109319 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:12:36 +00:00
kmcclusk%netscape.com
303a5331d9 Replace the O(n^2) call to GetChild in nsViewHandleEvent to substantially improve page load performance and interactivity on pages with lots of comboboxes. bug 112525 r=roc+moz sr=kin
git-svn-id: svn://10.0.0.236/trunk@109318 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:09:36 +00:00
peterlubczynski%netscape.com
7c5142e62d Removing Mac Plugin SDK resource, not part of build.
git-svn-id: svn://10.0.0.236/trunk@109317 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:07:47 +00:00
peterlubczynski%netscape.com
54c25b59f5 Removing Mac Plugin SDK project file. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@109316 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 04:06:44 +00:00
morse%netscape.com
fa863da1e2 bug 77073, wallet checks slows creation of edit and context menus, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109315 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 03:46:18 +00:00
sspitzer%netscape.com
aaaaa6eada fix build bustage on mac.
git-svn-id: svn://10.0.0.236/trunk@109314 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 03:08:38 +00:00
javi%netscape.com
f7e61b2f4d Remove reference to nsSecureBrowserUIImpl.obj which is no longer built in this
directory.  Should fix tbox bustage.


git-svn-id: svn://10.0.0.236/trunk@109312 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:30:37 +00:00
waldemar%netscape.com
d73005ea74 Added comments
git-svn-id: svn://10.0.0.236/trunk@109311 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:23:05 +00:00
waldemar%netscape.com
bcb258b1cd Added /* and */ statements
git-svn-id: svn://10.0.0.236/trunk@109310 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:22:37 +00:00
mcafee%netscape.com
7bf5d09c94 Adding mailbloattest stub.
git-svn-id: svn://10.0.0.236/trunk@109308 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:03:24 +00:00
mcafee%netscape.com
37ac07a0fd Profile cleanup. Adding mailbloattest stub. Fixed component.reg filename. comments, etc.
git-svn-id: svn://10.0.0.236/trunk@109307 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:02:57 +00:00
vidur%netscape.com
0b5099dd72 progress indicator and menu improvements. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109306 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 02:02:11 +00:00
vidur%netscape.com
c9a247e9cb Fixed prompt and password dialogs. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109305 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 01:59:01 +00:00
dbaron%fas.harvard.edu
8e4767a26d Backing out shanjian at his request to fix Linux orange.
git-svn-id: svn://10.0.0.236/trunk@109304 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 01:57:24 +00:00
bzbarsky%mit.edu
065a782ee4 backing this out. need to get some build magic on the mac first. :(
git-svn-id: svn://10.0.0.236/trunk@109303 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 01:10:10 +00:00
darin%netscape.com
74891049b2 build TestPerf on linux
git-svn-id: svn://10.0.0.236/trunk@109302 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 01:01:23 +00:00
bzbarsky%mit.edu
a692927a23 Fix build bustage on Win. Bug 109236
git-svn-id: svn://10.0.0.236/trunk@109301 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:54:46 +00:00
sspitzer%netscape.com
c42591d68f fix for #112727 (removing expired articles won't remove all expired articles in certain cases.)
and hopefully for #110362 (top crasher in ParseURL()), and some cleanup.

for #110362, I'm making sure we only check the local cache for message and message part urls.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@109300 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:49:47 +00:00
vidur%netscape.com
fed00f2d29 Copy over installed-chrome.txt to get scrollbars working
git-svn-id: svn://10.0.0.236/trunk@109299 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:47:09 +00:00
vidur%netscape.com
cc0f4274fb Fixed alerts and added prompt and password support. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109298 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:46:06 +00:00
sgehani%netscape.com
0a4fc62cec Fix reset button (was too large) on helper apps pref pane.
b=109516; r=sgehani; sr=alecf
(checking in for Andre Dahlqvist <andre.dahlqvist@telia.com>)


git-svn-id: svn://10.0.0.236/trunk@109297 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:44:16 +00:00
shanjian%netscape.com
e2b3da1e6a #support unicode beyond BMP plane in Compressed charmap
r=bstell,  sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109296 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:41:20 +00:00
sgehani%netscape.com
60941822af Fix Netscape search sherlock plugin.
b=112029; r=morse; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109295 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:37:13 +00:00
shanjian%netscape.com
b4ff2d0a9c #disable debug message in optimized build
r=danm sr=waterson


git-svn-id: svn://10.0.0.236/trunk@109294 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:36:56 +00:00
av%netscape.com
467660d8e8 Updating readme.txt for the plugin SDK, not part of the regular build
git-svn-id: svn://10.0.0.236/trunk@109293 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:35:58 +00:00
sgehani%netscape.com
8f3fb51346 Add brandShortName to content pack switch message.
b=109477; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109292 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:34:55 +00:00
sgehani%netscape.com
51bff52b51 Open a new window if one isn't around when users select the
``Search the Web'' menu item from the ``Search'' menu.
b=83329; r=morse; sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@109291 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:30:22 +00:00
sgehani%netscape.com
a349c153c1 Don't distingiush between an edited and unedited URL bar text when
the search button is clicked.
b=60283; r=morse; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109290 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:27:47 +00:00
darin%netscape.com
c52192895e fixes bug 112366 "status message is often incorrect [eg. resolving host...]"
r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109289 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:23:56 +00:00
cmanske%netscape.com
b4c2e75b53 Backed out change not part of fix for bugscape bug 10937
git-svn-id: svn://10.0.0.236/trunk@109288 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:22:19 +00:00
sgehani%netscape.com
bf45a76495 Remove dependency of sidebarOverlay on brand.dtd.
b=109450; r=morse; sr=blake


git-svn-id: svn://10.0.0.236/trunk@109287 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:20:07 +00:00
cmanske%netscape.com
4bcad7365e Fixed spell check dialog bug 10937, r=syd, sr=kin
git-svn-id: svn://10.0.0.236/trunk@109286 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:16:21 +00:00
bzbarsky%mit.edu
a8c5407a66 Make the mime service do extension --> type matching based on the
information the user has entered in helper app prefs.  Bug 109236,
r=law, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109285 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:14:14 +00:00
bryner%netscape.com
45bcef5504 Bug 112719 - make nsXULTreeSliceFrame inherit from nsGridRowLeafFrame, as it was intended to. r=jag, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@109284 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:12:02 +00:00
sgehani%netscape.com
d8ae0581db Add persistent panel support (iframe's remain loaded even when not visible).
b=106129; r=morse; sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@109283 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:10:13 +00:00
cmanske%netscape.com
ce5cd24903 Fixed busted composer pref panel, b=112463, r=sfraser,syd sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@109282 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:09:20 +00:00
kaie%netscape.com
79b0d6b360 b=109777 Make sure certificate downloading works immediately
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109281 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:07:13 +00:00
cmanske%netscape.com
67cc82f61b XUL 1.0-related fixes for tab widget, b=103855, r=brade,syd sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109280 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:06:33 +00:00
dougt%netscape.com
d3046e16dd Add IsMainThread to nsIThread. r=danm@netscape.com, sr=darin@netscape.com 112397
git-svn-id: svn://10.0.0.236/trunk@109279 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:06:32 +00:00
cmanske%netscape.com
3fd8415aaa Fixed getting all headings for list, b=103855, r=brade, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@109278 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-30 00:01:45 +00:00
alecf%netscape.com
0984f9daba for bug 112708, add an #include so this can be compiled by prefapi.cpp
sr=dveditz, r=bnesse


git-svn-id: svn://10.0.0.236/trunk@109277 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:56:38 +00:00
alecf%netscape.com
0d76157146 for bug 112708, add a bunch of casts so this file can also be compiled as C++
sr=dveditz, r=bnesse


git-svn-id: svn://10.0.0.236/trunk@109276 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:55:27 +00:00
sgehani%netscape.com
a89d2f4723 Ask user if they'd like to make the search sidebar tab engine selection
their default search engine.
b=100078; r=morse; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@109275 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:51:47 +00:00
waterson%netscape.com
a6396f40ca Bug 11079. xptinfo shouldn't be an EXPORT_LIBRARY, or else it will end up both in the statically linked exectuable _and_ libxpcom.so. r=cls
git-svn-id: svn://10.0.0.236/trunk@109274 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:50:56 +00:00
waterson%netscape.com
f6fc5c5388 Bug 45353. Remove the pool used to keep XUL attributes now that we've improved sharing. r=shaver
git-svn-id: svn://10.0.0.236/trunk@109273 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:49:10 +00:00
cmanske%netscape.com
fe1bac57c6 Removed 'IsValidImage()' method, b=90229, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109272 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:49:02 +00:00
javi%netscape.com
b423daf3d1 b=75947 Landing security startup performance improvement and related issues.
r=javi sr=alecf

b=109777 Make sure certificate downloading works immediately
r=javi sr=mscott

(checking in for kaie)


git-svn-id: svn://10.0.0.236/trunk@109271 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:45:36 +00:00
kaie%netscape.com
cc2997bfa0 b=75947 Landing security startup performance improvement and related issues.
r=javi sr=alecf
b=109777  Make sure certificate downloading works immediately
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109270 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:43:26 +00:00
javi%netscape.com
c971fc767e b=75947 Landing security startup performance improvement related issues. r=javi sr=alecf
b=109777 Mae sure certificate downloading works immediately r=javi sr=mscott

(Checking in for kaie)


git-svn-id: svn://10.0.0.236/trunk@109269 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:43:10 +00:00
kaie%netscape.com
c4caa1b828 b=75947 Landing security startup performance improvement and related issues.
r=javi sr=alecf
b=109777  Make sure certificate downloading works immediately
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109268 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:36:34 +00:00
jaggernaut%netscape.com
ddeef888b9 Bug 112569: Session History set from navigator.js redundantly. r=hyatt, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109267 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:34:27 +00:00
darin%netscape.com
4e2d71768d fixes bug 112328 "purify report ABR in nsBaseURLParser::ParseURL"
r=bbaetz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109266 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:28:34 +00:00
javi%netscape.com
6e10bce240 b= 75947 Landing security start up performance improvement and related issues r=javi sr=alecf
b=10977 Make sure certificate downloading works immediately r=javi sr=mscott

(checking in for kaie)


git-svn-id: svn://10.0.0.236/trunk@109265 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:25:56 +00:00
kaie%netscape.com
40d3a042e5 b=75947 Landing security startup performance improvement and related issues.
r=javi sr=alecf
b=109777  Make sure certificate downloading works immediately
r=javi sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109264 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:19:52 +00:00
jj%netscape.com
3f92a4a24f Mozilla icon for MacOS X
git-svn-id: svn://10.0.0.236/trunk@109263 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:08:42 +00:00
jj%netscape.com
96ce0965ff bug #110132: updated version number to 0.9.6+ and added <CFBundleExecutable>, <CFBundleShortVersionString>, and <CFBundleGetInfoString> keys.
git-svn-id: svn://10.0.0.236/trunk@109262 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:05:57 +00:00
gordon%netscape.com
8bc0b7e9bf Fix bug 110405. Removing anachronistic assertion, added condition to respect STORE_ON_DISK policy. Changed fav icon cache policy to STORE_ANYWHERE. r/sr = darin, hyatt, sfraser.
git-svn-id: svn://10.0.0.236/trunk@109261 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 23:04:58 +00:00
kin%netscape.com
54983a3e01 Fix for bug 111264: nsTextFrame::SetSelected() calls Invalidate() with empty rect.
Prevent SetSelected() from generating invalidate warnings by
preventing calls to Invalidate with an empty rect.

r=jfrancis@netscape.com  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@109260 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:54:15 +00:00
kin%netscape.com
0d6b36df4c Fix for bug 69398: {label,hr,br}:after {content: ":"} repeats creation of :
with mouse movement

Modified RemoveGeneratedContentFrameSiblings() to handle the case where
the :after frame is in a continuing frame for the primary frame's parent.

r=dbaron@fas.harvard.edu  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@109259 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:53:03 +00:00
shrutiv%netscape.com
86339f8974 Fix for bugzilla 106305: CCK Wizard doesn't check disk space for Linux
installer when tarball pack is on a different drive (r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@109258 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:49:44 +00:00
bnesse%netscape.com
9d2575fcb5 Fix for bug 108236. "intl.charset.detector" should not be treated as both a char pref and a unichar pref. Also whitespace cleanup. r=yokoyama, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@109257 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:46:42 +00:00
bzbarsky%mit.edu
f56674ebbb Fixing line endings to avoid all the "^M"s on Unix. Bug 112642,
r=Roland.Mainz@informatik.med.uni-giessen.de, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109256 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:41:59 +00:00
pinkerton%netscape.com
69c6ffd626 view shouldn't be opaque. allows webpages to show up. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109255 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:39:37 +00:00
pinkerton%netscape.com
8072ba5aac Fix some complilation errors, change line endings on scrollbar. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@109254 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:37:48 +00:00
pinkerton%netscape.com
8ac744782a fix regressions with carbon events. r=ccarlen/sr=sfraser. bug# 112653
git-svn-id: svn://10.0.0.236/trunk@109253 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:36:22 +00:00
samuel%sieb.net
03dbac5ec8 Remove the orient= from the splitters.
r=rginda
not part of the build


git-svn-id: svn://10.0.0.236/trunk@109251 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:33:28 +00:00
shrutiv%netscape.com
af2f1a5667 Fix for bugzilla 101439: Custom configs should point to it's own files
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@109250 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:29:53 +00:00
dougt%netscape.com
16e560771a fixed bug 112345. JAR Channel does not cache mime service. r=neeti@netscape.com, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109249 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:29:00 +00:00
ian.mcgreer%sun.com
f902ddb08d fix bug found from PK11_ListCerts
git-svn-id: svn://10.0.0.236/trunk@109248 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:05:32 +00:00
despotdaemon%netscape.com
31d75d97c5 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@109247 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 22:02:07 +00:00
shrutiv%netscape.com
d8a790e7dd Fix for bugzilla 104124: User agent string allows blank spaces input
(r=smeredith)


git-svn-id: svn://10.0.0.236/trunk@109245 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 21:27:38 +00:00
shrutiv%netscape.com
8dea82607b Fix for bugzilla 104124: User agent string allows blank spaces input
(r=tao)


git-svn-id: svn://10.0.0.236/trunk@109244 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 21:22:37 +00:00
morse%netscape.com
ffea25f59b backing out patch for bug 111396 because it caused smoketest blocker bug 112643
git-svn-id: svn://10.0.0.236/trunk@109241 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 20:52:48 +00:00
despotdaemon%netscape.com
65a4dcd29e Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@109240 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 20:35:38 +00:00
ian%hixie.ch
ced7a9ce15 Minor fixes to make the previous checkin actually compile...
git-svn-id: svn://10.0.0.236/trunk@109239 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 20:23:48 +00:00
ian.mcgreer%sun.com
54677fad6a fix memory leaks
git-svn-id: svn://10.0.0.236/trunk@109238 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 19:34:08 +00:00
jpierre%netscape.com
9e179ff639 Fix for bug 95458 - ASN1 decoder crashes when fed incorrect data
git-svn-id: svn://10.0.0.236/trunk@109237 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:46:17 +00:00
blythe%netscape.com
bf73e67f74 NOT part of normal build.
Remove special cases involving reallocs of size 0 (improve it actually).
Avoid qsort problem on MSVC win32.


git-svn-id: svn://10.0.0.236/trunk@109236 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:44:15 +00:00
rayw%netscape.com
e2e5db7900 Added "function" keyword to permit function to be passed as a SOAP response
listener.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109235 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:20:11 +00:00
ian%hixie.ch
d65266d7a4 * Corrected some inaccurate comments I came across.
* Added support for group membership levels (now you can be a normal member, as before, but also a group op or a group admin) -- this affected the user data source, the mysql data source, and the user service.
* Added a getFieldsHierarchically() method to the user data source.
* Added a getFieldsByCategory() method to the user data source.
* Fixed a typo in some of the SQL in the rights management part of the MySQL user data source.
* Added support in the arguments input module for treating the arguments as dot-delimited trees and returning a specific branch.
* Added support in the passwords service for encrypting a specific password.
* Added a getFieldByID() method to the user service.
* Made the groups in the user service be indexed by both ID and Name.
* Implemented the user preferences component.


git-svn-id: svn://10.0.0.236/trunk@109234 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 18:03:38 +00:00
rayw%netscape.com
83082e1254 There were obsolete XML Schema URIs left from the old code. Updated to the
latest XML Schema specification -- 2001 URIs.  Also fixed the namespace of the
type attribute.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109233 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 17:30:55 +00:00
pinkerton%netscape.com
7654dbfe76 one more removed file bustage fix.
git-svn-id: svn://10.0.0.236/trunk@109231 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 16:11:12 +00:00
karnaze%netscape.com
b3e24127f2 new regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@109230 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 16:04:35 +00:00
pinkerton%netscape.com
52e1cbaf29 fixing mach-o bustage
git-svn-id: svn://10.0.0.236/trunk@109229 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 16:03:38 +00:00
leaf%mozilla.org
d937a9da5c Automated update
git-svn-id: svn://10.0.0.236/trunk@109228 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:57:55 +00:00
seawood%netscape.com
9df1b887ce Fix problem with Solaris /bin/sh interpreting ^ in a grep statement.
r=axel@pike.org


git-svn-id: svn://10.0.0.236/trunk@109227 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:57:27 +00:00
karnaze%netscape.com
56be8b5ead bug 112182 - check for null pointers, sr=attinasi, r=bernd.
git-svn-id: svn://10.0.0.236/trunk@109226 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:55:27 +00:00
ccarlen%netscape.com
dbbe382e38 Bug 97239 - On Mac, can't delete profile whose files on disk have been removed. r=brade/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109225 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:48:58 +00:00
dcone%netscape.com
852a3dbb95 bug 103377. Images are scaled down for background tiled images that are printed. r=rods sr=attinsi
git-svn-id: svn://10.0.0.236/trunk@109224 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:48:15 +00:00
mikep%oeone.com
b4980045e9 Adding file with -kb
git-svn-id: svn://10.0.0.236/trunk@109223 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:43:09 +00:00
mikep%oeone.com
b775befe31 Removing calendar_topbar as test.
git-svn-id: svn://10.0.0.236/trunk@109222 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:41:19 +00:00
karnaze%netscape.com
33ac3614b6 bug 111028 - better height calc for table elements when printing. r=rods, sr=none.
git-svn-id: svn://10.0.0.236/trunk@109221 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:41:07 +00:00
pinkerton%netscape.com
003e4215aa fix bustage
git-svn-id: svn://10.0.0.236/trunk@109220 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:39:33 +00:00
pinkerton%netscape.com
068170f445 removing nsMacMessageSink.h
git-svn-id: svn://10.0.0.236/trunk@109219 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 15:11:13 +00:00
dp%netscape.com
1544df4261 backing out previous change. Causes installer to fail with crc
errors.


git-svn-id: svn://10.0.0.236/trunk@109217 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:51:50 +00:00
pinkerton%netscape.com
ddb1f29d56 removing per bug 110851, replaced with nsIEventSink on each window. r=ccarlen/sr=sfraser.
git-svn-id: svn://10.0.0.236/trunk@109216 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:43:45 +00:00
pinkerton%netscape.com
bc4ff100ea make sure mouse loc is in local coordinates on a scrollwheel event. sr=sfraser. bug# 112448.
git-svn-id: svn://10.0.0.236/trunk@109215 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:41:10 +00:00
pinkerton%netscape.com
901ad8ab6a removing nsMacMessageSink for standalone and embedding. Replacing with nsIEventSink and a couple of internal interfaces. r=ccarlen/sr=sfraser. bug#110851
git-svn-id: svn://10.0.0.236/trunk@109214 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:38:56 +00:00
peterv%netscape.com
d1911c6d0a Fix for bug 108024 (missing carriage returns when copying PRE tag content to clipboard). r=Pike, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@109213 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:19:30 +00:00
bzbarsky%mit.edu
a57f896a19 Get rid of ghost elements in a form's |elements| array. Bug 98487,
r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@109212 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 14:12:06 +00:00
kaie%netscape.com
43a79c95df b=111938 Wrong usage of getService => createInstance
r=javi sr=shaver


git-svn-id: svn://10.0.0.236/trunk@109211 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 12:50:26 +00:00
kaie%netscape.com
8983dc7b3a b=106939 Fix wrong caps.
r=javi sr=shaver


git-svn-id: svn://10.0.0.236/trunk@109209 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 12:47:20 +00:00
mkaply%us.ibm.com
b9fbe70f0d #112243
r=cls
Os/2 only - if config/myrules.mk and config/myconfig.mk don't exist, create them - work around gmake bug


git-svn-id: svn://10.0.0.236/trunk@109206 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 11:42:59 +00:00
rods%netscape.com
030f56d8b3 This was in the patch, but somehow missed the checkin
Bug 102596 rdcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109205 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:26:51 +00:00
brade%netscape.com
b6cbec2b01 #include cleanup (bug #112008, r=akkana, sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@109204 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:14:04 +00:00
jfrancis%netscape.com
533392f396 fix for 106274: toolbar colorpicker feedback broken when selection is collapsed
git-svn-id: svn://10.0.0.236/trunk@109203 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:08:25 +00:00
brade%netscape.com
76d1ce8a02 #include cleanup (bug #112008, r=akkana, sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@109202 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:06:21 +00:00
brade%netscape.com
c79bdc933a allow scripting of methods with no parameters (bug #112008, r=akkana, sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@109201 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:05:36 +00:00
jfrancis%netscape.com
474493b5ff fix for 97259: caret sometimes drawn on line above a blank line when it should be on blank line. r=fm; sr=kin
git-svn-id: svn://10.0.0.236/trunk@109200 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 10:01:28 +00:00
jst%netscape.com
304a701c9b Whitespace changes.
git-svn-id: svn://10.0.0.236/trunk@109199 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:59:31 +00:00
rods%netscape.com
ae067511a4 Hookup the setting of scaling for Print Preview and Printing
Bug 110529 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109198 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:59:16 +00:00
rods%netscape.com
e97e909b21 Give checkbox and radio face color on active
Bug 56585 r=bryner sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109197 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:54:38 +00:00
rods%netscape.com
073a7fc430 Removed un-used first/last page option
Bug 102009 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109196 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:46:15 +00:00
rods%netscape.com
fb258c2434 Use system IDC_HAND cursor when available
Bug 104035 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109195 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:41:19 +00:00
hewitt%netscape.com
12ee36a26b 102574 - enable DOM Inspector in the default builds, r=leaf, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@109193 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:36:46 +00:00
jst%netscape.com
a167a4f39d Oops, backing out last checkin.
git-svn-id: svn://10.0.0.236/trunk@109192 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:34:06 +00:00
jst%netscape.com
f3e223e230 Formatting changes, and fixing compiler warning. r=nobody
git-svn-id: svn://10.0.0.236/trunk@109191 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:31:45 +00:00
jst%netscape.com
fb84fd48e7 Formatting changes, and fixing compiler warning. r=nobody
git-svn-id: svn://10.0.0.236/trunk@109190 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:30:46 +00:00
morse%netscape.com
ef8d610587 bug 111396, tabbing in dialogs give incorrect results, r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@109189 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:27:19 +00:00
jst%netscape.com
378ca9ba32 Formatting changes, and fixing compiler warning. r=nobody
git-svn-id: svn://10.0.0.236/trunk@109188 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 09:27:12 +00:00
jst%netscape.com
be2baf922d Fixing bug 112473. Eliminate unnecessary allocations in the CSS parser and speed up NS_NewHTMLReflowCommand() a bit. r=dbaron@fas.harvard.edu, rs=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109187 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 08:48:53 +00:00
bstell%netscape.com
6737b66f15 bug 112522 on anti-alias scale bitmap font on local X server
r=pavlov, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@109186 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 07:55:08 +00:00
jst%netscape.com
9dbb6356f3 Oops, forgot to make peterv's suggested comment changes when checking in the fix for bug 109854.
git-svn-id: svn://10.0.0.236/trunk@109185 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 07:14:00 +00:00
rjc%netscape.com
1122aea9e8 Fix bug # 112176. r=danm sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109184 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 07:02:24 +00:00
peterlubczynski%netscape.com
f7d714738e Fix for always loading the Java VM for embed tag, patch by nis@sparc.spb.su (Igor Nekrestyanov) bug 94023 r=peterl sr=beard
git-svn-id: svn://10.0.0.236/trunk@109183 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 05:14:11 +00:00
jst%netscape.com
fa9acfe976 Fixing bug 34398. Making element.offsetParent be a <th>, <td> or <table> if element is a decendant of one of those element types. r=hidday@geocities.com, rs=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109182 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 05:08:25 +00:00
nhotta%netscape.com
360e8e2867 Added charsetOverride field to nsIMsgWindow, so msgCompose can use it for quoting,
bug 111055, r=ducarroz, sr=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@109181 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 04:56:42 +00:00
vidur%netscape.com
93341bca3c Got rid of installation name in project. This is not part of the build.
git-svn-id: svn://10.0.0.236/trunk@109179 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 04:11:53 +00:00
jkeiser%iname.com
9aabc077d6 Submit empty file inputs. Bug 111963. r=alexsuvalov@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109178 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 03:51:38 +00:00
rayw%netscape.com
ad0a29b7ce Fixed SOAP document-style returns. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@109177 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 03:31:42 +00:00
rayw%netscape.com
831c4e6f2e More bug fixes to SOAP implementation. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@109176 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 03:07:37 +00:00
dbaron%fas.harvard.edu
9a5ab76543 Fix runtime bustage for other ports that have the same problem as GTK. b=109974, 111088
git-svn-id: svn://10.0.0.236/trunk@109175 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 03:02:49 +00:00
dbaron%fas.harvard.edu
ebd0276943 Fix orange. b=109974, 111088
git-svn-id: svn://10.0.0.236/trunk@109174 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:58:30 +00:00
waterson%netscape.com
072b1c9990 Build with \`-O2' by default.
git-svn-id: svn://10.0.0.236/trunk@109173 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:57:34 +00:00
waterson%netscape.com
a8b9ebcb99 Add \`--size' option.
git-svn-id: svn://10.0.0.236/trunk@109172 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:57:13 +00:00
alecf%netscape.com
700d0e8fd2 move UTF8traits to the public realm for later consumption
r=dbaron r=jag (the string experts)
for bug 110531


git-svn-id: svn://10.0.0.236/trunk@109171 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:53:48 +00:00
shanjian%netscape.com
9e1fb89e0a #34242 replace X font lookups on "-*-*-*-*-*-*-*-*-*-*-*-*-*-*" with "-*"
patch prepared by:  Roland Mainz
r=shanjian sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109170 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:05:52 +00:00
pchen%netscape.com
3c10b47a80 bug 57647, r=sgehani, sr=ben, don't redeclare 'var ix'
git-svn-id: svn://10.0.0.236/trunk@109169 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:03:05 +00:00
pchen%netscape.com
afcb5dfeef bug 86299, r=sgehani, sr=ben, do the right thing with relativeNode and parentNode when adding a new folder
git-svn-id: svn://10.0.0.236/trunk@109168 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:03:03 +00:00
pchen%netscape.com
6ca7a5e472 bug 102311, r=hewitt, sr=ben, set bookmark types using rdf:type
git-svn-id: svn://10.0.0.236/trunk@109167 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:03:00 +00:00
pchen%netscape.com
f93c8688bf bug 102311, r=hewitt, sr=ben, use getAttributeNS on RDF_NS to get correct bookmark types, also remove debugging alerts when adding a bookmark
git-svn-id: svn://10.0.0.236/trunk@109166 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:02:57 +00:00
pchen%netscape.com
a5b6f77038 bug 102311, r=hewitt, sr=ben, use getAttributeNS on RDF_NS to get correct bookmark types
git-svn-id: svn://10.0.0.236/trunk@109165 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 02:02:54 +00:00
danm%netscape.com
c83f68dac3 reinstate rev 1.38 without breaking testgtkembed: focus and notify all common dialogs. somewhat experimental fix for bug 53345. r=pinkerton,sfraser
git-svn-id: svn://10.0.0.236/trunk@109164 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:52:25 +00:00
naving%netscape.com
dda492e80e 112342 r=ducarroz sr=bienvenu. free filename after use.
git-svn-id: svn://10.0.0.236/trunk@109163 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:51:19 +00:00
ben%netscape.com
a4fd12b258 back out unapproved changes to Navigator context menus. See bug 70830.
git-svn-id: svn://10.0.0.236/trunk@109162 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:40:21 +00:00
blythe%netscape.com
1f6d513fde NOT part of normal build.
Get spacetrace to report data in seconds instead of confusing interval.
Move weight to far most colunm, as a product.
Unhexcape strings to that C++ classes/member can be targeted.
Add the align by option, to report real heap impact.


git-svn-id: svn://10.0.0.236/trunk@109161 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:29:26 +00:00
vidur%netscape.com
376734369d Removed absolute paths to framework. Relative paths *should* work.
git-svn-id: svn://10.0.0.236/trunk@109160 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 01:20:38 +00:00
attinasi%netscape.com
7451e69bbe Fixed a problem where changes to inline-style were not causing the correct clearing of the style system's cached rules. b=97874 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109159 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:56:43 +00:00
darin%netscape.com
b786fe257c adding jar performance test
git-svn-id: svn://10.0.0.236/trunk@109158 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:50:55 +00:00
attinasi%netscape.com
ba062622a4 loading iamge and broken image icons were not getting picked up by installers after they were moved out of res/html. Now they will. b=110384 r=peterv sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@109157 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:45:07 +00:00
andreww%netscape.com
a3c240977c bug 112462 r-oeschger sr-hewitt fixing css syntax error.
git-svn-id: svn://10.0.0.236/trunk@109156 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:38:20 +00:00
rbs%maths.uq.edu.au
09781b2e2a Bug 111069: don't initialize the device context twice in GfxWin & OS2 (also left in the debugging code used to catch that), r=rods, sr=waterson. Bug 109974: re-enable a consolidated memory-pressure observer to compact font resources in low-memory situations, r=shanjian, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@109155 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:34:07 +00:00
bryner%netscape.com
af8a9989d9 Bug 96981 - filepicker scrollbar stays in same position when switching directories. r=jag, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109154 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:28:27 +00:00
yokoyama%netscape.com
47b0b5e410 Bug 112240
Add shift-jis alias
in a properties file
/r=shanjian


git-svn-id: svn://10.0.0.236/trunk@109153 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:24:13 +00:00
attinasi%netscape.com
e47c372e52 null-ptr check for talkback crash that I cannot duplicate. b=105168 r=karnaze sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109152 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:10:31 +00:00
alecf%netscape.com
16001eccc7 just removing some dead code that blake spotted, followup to bug 110226
git-svn-id: svn://10.0.0.236/trunk@109151 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:42 +00:00
rayw%netscape.com
f3dd37550b Fixes to the lookup of SOAP encoders.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109150 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:27 +00:00
pete%alphanumerica.com
2921cd1a40 b=92569, r=dougt, sr=brendan
nsLocalFileUnix cleanup part two.
nothing but white space and comment cleanup

--pete


git-svn-id: svn://10.0.0.236/trunk@109149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:07:10 +00:00
bryner%netscape.com
293eacef9a Bug 87490 - focus goes dead if the focused content is removed. r=saari, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@109148 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:04:31 +00:00
bstell%netscape.com
c8d9369bfa checkin for adam@gimp.org
bug 110793: gcc problem with parameters
r=bstell@netscape.com, sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@109147 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:03:36 +00:00
alecf%netscape.com
04ad2b7b2e big 'ol global history cleanup:
- remove lots of string assertions by avoiding using string classes on null strings
- clean up all known leaks
bug 112058, r=pchen, sr=blake


git-svn-id: svn://10.0.0.236/trunk@109146 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-29 00:02:16 +00:00
alecf%netscape.com
7e7f80fab0 *shrug* moving from profile-do-change to profile-after-change per conrad's suggestion - this seems to fix the blocker for me, what's the worst that could happen? :)
git-svn-id: svn://10.0.0.236/trunk@109145 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 23:40:45 +00:00
vidur%netscape.com
8a8c1296e8 Adding Cocoa test application to test Cocoa embedding wrapper framework. This is not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@109144 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 22:40:06 +00:00
vidur%netscape.com
5ed4e67154 Temporarily change framework installation path to be absolute. This is not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@109143 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 22:38:54 +00:00
vidur%netscape.com
a3cdf48282 First iteration of Cocoa NSView wrapper around embedded component. This is not part of the default build.
git-svn-id: svn://10.0.0.236/trunk@109142 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 21:42:53 +00:00
ian.mcgreer%sun.com
ab64c3ccea solaris x86 doesn't seem to like PR_LOG, so turning it off by default in debug builds
git-svn-id: svn://10.0.0.236/trunk@109141 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 20:19:38 +00:00
rayw%netscape.com
7d0a856ad7 Changes to match new IDL.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109140 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 19:04:02 +00:00
ian.mcgreer%sun.com
233b7897cf land changes for handling temporary and cached certs in 3.4
* separate trust object from cert object
* move handling of cryptoki objects into libdev
* implement digest in libdev (for trust object indexing)
* fixes in cache implementation; connect cache to 3.4 certs
* implement CERT_NewTempCertificate via crypto context


git-svn-id: svn://10.0.0.236/trunk@109138 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 16:23:51 +00:00
rods%netscape.com
46b3aa6437 Enabling the specifying of the gap around the page for Print Preview
and an offset from the edge of the page for headers and footers (used in PP and Printing)
Bug 102596 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109137 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 15:19:47 +00:00
pete%alphanumerica.com
727438403c b=92569, r=dougt, sr=brendan
nsLocalFileUnix general clean up

--pete


git-svn-id: svn://10.0.0.236/trunk@109136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 15:12:14 +00:00
rods%netscape.com
1cd5365b6e Enabling the specifying of the gap around the page and an offset from the edge of the page
Bug 102596 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109135 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 15:07:56 +00:00
rayw%netscape.com
30897f54b4 More adjustment to class info for SOAP checkins.
Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109134 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 12:33:38 +00:00
rayw%netscape.com
38278b93b0 Not part of default build.
Added more class information and module factories for soap items, fixed
copyright date.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109133 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 12:25:46 +00:00
rayw%netscape.com
fd692cb08b Fixes required to bring SOAP up to date. The SOAP, WSDL, and Schema code
is not part of the default build.  MOZ_WSDL and MOZ_SCHEMA were eliminated
in favor of MOZ_SOAP.  MOZ_SCHEMA wasn't being used anyway, and MOZ_WSDL
had things needed by MOZ_SOAP.

Not part of the default build.


git-svn-id: svn://10.0.0.236/trunk@109132 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 11:33:49 +00:00
rayw%netscape.com
861ac3345e Fixed to reflect new signature of Send call. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@109131 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 11:06:09 +00:00
jst%netscape.com
6ef8928139 Fixing bug 109854. Don't let HTMLContentSink::DemoteContainer() mess up the order of the form controls in form.elements, and rename DemoteContainer() to DemoteForm(). Patch by jkeiser@iname.com and myself, r=peterv@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109130 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 11:00:14 +00:00
rayw%netscape.com
726dbae4d6 Updating SOAP files from branch. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@109129 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 10:50:29 +00:00
dbaron%fas.harvard.edu
ff23b14240 Fix OS/2 PR_CALLBACK bustage.
git-svn-id: svn://10.0.0.236/trunk@109126 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 08:43:30 +00:00
dbaron%fas.harvard.edu
3233bfeefd Fix more |#ifdef DEBUG| bustage from jst's checkin.
git-svn-id: svn://10.0.0.236/trunk@109125 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 07:57:55 +00:00
jst%netscape.com
53db01d7f1 Adding missing #include that's needed for debug builds.
git-svn-id: svn://10.0.0.236/trunk@109124 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 07:18:35 +00:00
jkeiser%iname.com
dcdbaa821c Make disabled optgroups not be initially selected (bug 106524, r=bzbarsky@mit.edu, sr=jst@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@109123 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:52:56 +00:00
dbaron%fas.harvard.edu
3b6c33c60c Fix HP bustage by moving GetStyleData function templates from nsStyleStruct.h to nsIFrame.h and nsIStyleContext.h b=111883
git-svn-id: svn://10.0.0.236/trunk@109122 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:50:13 +00:00
jst%netscape.com
07fce6e351 Fixing bug 109760. Make mozilla fire a DOMContentLoaded event when the HTML on a page is done loading (i.e. the HTML only, not images, frames, nor anything like that). r=peterv@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109121 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:32:57 +00:00
seawood%netscape.com
3dc823d06e Removing unused BUILD_IDLC variable
git-svn-id: svn://10.0.0.236/trunk@109119 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:14:16 +00:00
jst%netscape.com
e9bd9a6f04 Fixing bug 109400. Removing unnecessary layers of abstraction from nsHTMLTags that does nothing for us except using more memory than we need to use, and makes us slower. This makes nsHTMLTags::LookupTag() 4 times faster. r=harishd@netscape.com, rs=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109117 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:13:11 +00:00
jst%netscape.com
d86dad5995 nsDependentString(nsnull) is illegal and asserts. sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109116 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:09:40 +00:00
dbaron%fas.harvard.edu
2cc163f62f Copy my comment changes from nsAString to nsACString. b=104663 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@109115 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 06:06:43 +00:00
dbaron%fas.harvard.edu
c0b306795b Make nsSharable[C]String writable by overriding appropriate methods. Ensure that it doesn't store null buffer handle pointer internally, and override get() on nsXPIDL[C]String for backwards-compatibility. Collapse nsSharedBufferHandle and nsFlexBufferHandle into nsSharedBufferHandle which knows its length but can't have a storage start distinct from its data start. Convert string users who were working around broken nsSharableString::Assign back to using it. b=104663, 100751, 74726 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@109114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:22:57 +00:00
dbaron%fas.harvard.edu
4ae66f30c3 Switch to using typesafe way of accessing style data. r=hyatt sr=waterson b=111883
git-svn-id: svn://10.0.0.236/trunk@109113 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:06:17 +00:00
dbaron%fas.harvard.edu
1771b4505d Add typesafe functions (global |GetStyleData|) for accessing style data. b=111883 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109112 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:04:23 +00:00
dbaron%fas.harvard.edu
9254acc87e Fix leak when attempting to synchronously load a nonexistant XBL file. b=111356 r=brendan sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@109111 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 05:00:29 +00:00
jst%netscape.com
7a8b18de9a Checking in alecf's fix for bug 112209, string code performance regression. r=dbaron@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109110 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:59:29 +00:00
dbaron%fas.harvard.edu
b8b7a75e99 Region code doesn't need to be threadsafe since it all runs on one thread. b=110802 r=bryner sr=waterson
git-svn-id: svn://10.0.0.236/trunk@109109 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:59:26 +00:00
dbaron%fas.harvard.edu
0e1a7a0ed0 Correct computation of containing block for absolutely positioned elements added dynamically within fixed positioned elements or for which the containing block's element is scrollable. b=111849, 91060 r=waterson sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109108 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:57:31 +00:00
dbaron%fas.harvard.edu
397b3fb021 Consider the result of |mStyleRuleSupplier->UseDocumentRules| in FileRules to prevent incorrect application of document rules to scrollbars and some form controls. Patch from <fantasai@escape.com>. r=dbaron sr=hyatt b=109808
git-svn-id: svn://10.0.0.236/trunk@109107 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:54:05 +00:00
dbaron%fas.harvard.edu
c43ef01630 Remove |#ifdef NS_TRACE_MALLOC| code to flush logfiles for real-time TM readers until we figure out a better way to do it that doesn't break low and lowest priority timers. b=111651 r=brendan sr=waterson
git-svn-id: svn://10.0.0.236/trunk@109106 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:48:38 +00:00
dbaron%fas.harvard.edu
9d54fd9b86 Fix leak of nsMsgProgress (and the things it owns) when sending mail. r=bienvenu sr=waterson b=99180
git-svn-id: svn://10.0.0.236/trunk@109105 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:47:20 +00:00
dbaron%fas.harvard.edu
d3232628b5 Fix crash and incorrect calculation of percentage line-height by computing relative to self's font-size rather than parent's font size. r=pierre sr=hyatt b=111405
git-svn-id: svn://10.0.0.236/trunk@109104 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:35:52 +00:00
mscott%netscape.com
91d0aa8509 Bug #112324 --> don't initialize the view header menu item in the onload handler for the mail
3-pane. This helps start up time in a very small way.

r=bienvenu
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109100 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 04:17:54 +00:00
dbaron%fas.harvard.edu
29e7322c52 Make XPCOM_BREAK_ON_LOAD work on mach-o build. b=111519 r=beard sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109098 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:52:34 +00:00
sfraser%netscape.com
c24ed5040f Fix the output path, so that generated files go into mozilla/dist/mailnews, rather than mozilla/mailnews/dist/mailnews.
git-svn-id: svn://10.0.0.236/trunk@109097 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:50:15 +00:00
dp%netscape.com
71ad48391f bug 112312 removing 32k allocs from libjar. darin&dp r=dbaron, sr=darin
git-svn-id: svn://10.0.0.236/trunk@109094 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:23:16 +00:00
jkeiser%iname.com
670c65fdd2 Fix for bug 109754 (crash on dhtmlcentral.com). r=kin@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109093 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 03:22:30 +00:00
sfraser%netscape.com
27d9692424 Fix the build by adding nsIMsgSMIMEHeaderSink.idl to the IDL project
git-svn-id: svn://10.0.0.236/trunk@109091 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:48:32 +00:00
alecf%netscape.com
4b94aca125 notify observers in reverse order, so that if a observer removes itself when it gets notified, we don't forget to notify the next guy
r=dougt, sr=bienvenu bug 110226


git-svn-id: svn://10.0.0.236/trunk@109090 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:48:10 +00:00
jpierre%netscape.com
5c0fe0cb75 Fix crlutil crash on error
git-svn-id: svn://10.0.0.236/trunk@109089 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:47:22 +00:00
cathleen%netscape.com
9b2fff433e fix bustage in win32 static build, and also it's run-time err, unable to get
textService, bug 111062 r=dbaron sr=darin


git-svn-id: svn://10.0.0.236/trunk@109088 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:36:27 +00:00
blythe%netscape.com
6c232105b6 NOT part of normal build.
Allow gd graphics library to be specified for SpaceTrace.


git-svn-id: svn://10.0.0.236/trunk@109087 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:07:42 +00:00
naving%netscape.com
10f8931bb1 fixing whitespace !
git-svn-id: svn://10.0.0.236/trunk@109086 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 02:01:00 +00:00
peterlubczynski%netscape.com
9f6ff57124 More Mac Plugin SDK changes. NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@109085 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:56:31 +00:00
naving%netscape.com
10e6892109 112266 r=ducarroz sr=bienvenu. free mimeGetStringById after use (fwd inline)
112287 r=ducarroz sr=bienvenu. fix leaking mime url by using nsCOMPtr (fwd inline)


git-svn-id: svn://10.0.0.236/trunk@109084 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:33:44 +00:00
dbaron%fas.harvard.edu
2535751351 Fix bustage.
git-svn-id: svn://10.0.0.236/trunk@109083 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:26:26 +00:00
dbaron%fas.harvard.edu
906067dd58 Use an add instead of a load to link the stack frames correctly since something seems to be clobbering the first linking pointer. Just add 8 instead of adding 4 in two places. Copy comments over from mac version. b=108646 r=sfraser sr=beard
git-svn-id: svn://10.0.0.236/trunk@109082 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:24:06 +00:00
attinasi%netscape.com
a85b13ed6d Fix for problem with horizontal auto margins in presence of padding on parent: checkin for arunan_bala@hotmail.com b=20582 r=dbaron sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109081 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:17:51 +00:00
dbaron%fas.harvard.edu
f371918a1d Free the nsUnicodeMappingUtil singleton on shutdown. b=111385 r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@109080 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:15:10 +00:00
mscott%netscape.com
8f5440eb00 Bug #110543 --> add smime UI to message display
r=kai
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109079 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:07:46 +00:00
mscott%netscape.com
7a4dec8993 Bug #110543 --> afire a custom event when the message pane loads
inform any listeners when we start to display a message
r=kai
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109078 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:06:37 +00:00
peterlubczynski%netscape.com
ea266aee4e Plugin SDK changes for Mac. NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@109077 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 01:01:38 +00:00
darin%netscape.com
947488d86a fixes bug 112257 "Reply quoting includes header text" r=gagan, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@109076 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:59:02 +00:00
dougt%netscape.com
3c41b28890 remove nsIShutdownListener. r=dbaron, sr=alecf, bug 99152
git-svn-id: svn://10.0.0.236/trunk@109075 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:57:53 +00:00
karnaze%netscape.com
24a1d95ffd new regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@109074 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:55:04 +00:00
karnaze%netscape.com
300e242585 bug 111872 - Keep track of pct height content that overflows a cell on the 3rd pass reflow and Hide it. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@109073 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:50:08 +00:00
darin%netscape.com
4b5a155616 patch 2 of bug 110686 "nsStandardURL not thread-safe" r=dougt, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@109072 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:49:07 +00:00
darin%netscape.com
5962d78a48 patch 1 of bug 110686 "nsStandardURL not thread-safe" r=dougt, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@109071 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:46:29 +00:00
bryner%netscape.com
cd319461be removed files: mozilla/layout/xul/base/src/nsObeliskLayout.cpp, mozilla/layout/xul/base/src/nsTempleLayout.cpp, mozilla/layout/xul/base/src/nsMonumentLayout.cpp, mozilla/layout/xul/base/src/nsGridLayout.cpp
git-svn-id: svn://10.0.0.236/trunk@109070 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:46:19 +00:00
darin%netscape.com
357445332c fixes bug 103016 "crash [@nsSocketTransport::OnStatus]" r=dougt, sr=jband
git-svn-id: svn://10.0.0.236/trunk@109069 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:42:57 +00:00
shanjian%netscape.com
d3619bd7f6 #111340 Autodetect All detect SJIS as Greek
r=yokoyama, sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109068 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:25:14 +00:00
darin%netscape.com
82d866c6cf fixing compiler warning, function missing a return value.
git-svn-id: svn://10.0.0.236/trunk@109067 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:24:00 +00:00
bbaetz%cs.mcgill.ca
6bcb941cd2 install:: -> libs::
Not part of build.


git-svn-id: svn://10.0.0.236/trunk@109065 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:06:08 +00:00
mscott%netscape.com
4fe3249a0b make the user agent header field name stay at the top of the line when the user agent wraps.
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109064 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-28 00:04:30 +00:00
alecf%netscape.com
e529936b5b oops, one more try to back out
git-svn-id: svn://10.0.0.236/trunk@109063 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:55:03 +00:00
alecf%netscape.com
9e40851eab ack! back these out, weren't meant to land
git-svn-id: svn://10.0.0.236/trunk@109062 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:53:18 +00:00
alecf%netscape.com
9714ddf32b debug stuff only - adding MOZ_COUNT_DTOR/CTOR and changing DEBUG to DEBUG_dougt
(last part r=dougt)


git-svn-id: svn://10.0.0.236/trunk@109061 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:52:05 +00:00
heikki%netscape.com
715c6fb111 Bug 98928, send() can take any type of parameter, i.e. it can now take JavaScript string. r=jst, sr=jband.
git-svn-id: svn://10.0.0.236/trunk@109058 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:44:12 +00:00
ashishbhatt%netscape.com
8ffbeb810f Changed in acordance with mfcembed
git-svn-id: svn://10.0.0.236/trunk@109057 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:43:36 +00:00
mscott%netscape.com
0a7cec4477 Part of Bug #110543 for adding smime UI to message display. If we are building smime and building psm,
then export the MANIFEST_IDL file in extensions/smime/public.


git-svn-id: svn://10.0.0.236/trunk@109056 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:40:32 +00:00
morse%netscape.com
0566a1a59b bug 112109, use of 'cookie' instead of 'image' in image manager dialog, r=bzbarsky, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109055 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:33:11 +00:00
andreww%netscape.com
694dab294a bug 109596 r-shliang sr-hewitt fixing disabled button hover state.
git-svn-id: svn://10.0.0.236/trunk@109054 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:32:12 +00:00
mscott%netscape.com
1120642646 Not part of the build yet. Export nsIMsgSMIMEHeaderSink.idl on the Mac.
Part of Bug #110543


git-svn-id: svn://10.0.0.236/trunk@109053 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:31:44 +00:00
radha%netscape.com
7bbd7dc265 added files: mozilla/netwerk/base/public/nsIMultiPartChannel.idl
git-svn-id: svn://10.0.0.236/trunk@109052 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:16:11 +00:00
radha%netscape.com
73b66f889a Fix for bug # 99638. r=darin sr=rpotts. Use nsIMultiPartChannel to access
htttpChannel that is part of a multipartChannel.


git-svn-id: svn://10.0.0.236/trunk@109051 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:14:15 +00:00
radha%netscape.com
ddac650d1a nsPartChannel implements nsIMultiPartChannel to provide access to base channel. r=darin sr=rpotts bug=99638
git-svn-id: svn://10.0.0.236/trunk@109050 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:13:10 +00:00
radha%netscape.com
d14d67af13 add nsIMultipartChannel to makefiles for bug 99638. r=darin sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@109049 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:12:16 +00:00
radha%netscape.com
e258285944 Initial checkin for bug 99638.
git-svn-id: svn://10.0.0.236/trunk@109048 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:04:18 +00:00
bstell%netscape.com
63567a15ec bug 110804 gdk exits during print preview
move the test for invalid size (off screen pixels) to point after last time sizes are set
r=yokoyama@netscape.com, sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@109047 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:02:26 +00:00
bryner%netscape.com
d597acb80e Bug 105809 - filepicker crash if the user does not have read permission for the directory. r=jag, sr=shaver.
git-svn-id: svn://10.0.0.236/trunk@109046 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 23:02:07 +00:00
mkaply%us.ibm.com
ed1e2249a7 #108280
r=mkaply, sr=blizzard
OS/2 only - code from Javier Pedemonte to get our fonts back after 99010


git-svn-id: svn://10.0.0.236/trunk@109045 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:58:37 +00:00
shliang%netscape.com
b7f815f89c bug 77285 - yellow smiley missing in prefs. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109044 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:57:26 +00:00
shliang%netscape.com
b9bc5aef4c bug 102901 - link toolbar background doesn't fit well in modern. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109043 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:54:59 +00:00
bryner%netscape.com
e151e263b2 Bug 99231 - show focus on directory list when tabbing around the filepicker. r=varga, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@109042 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:54:24 +00:00
blythe%netscape.com
158afbdc12 Fix bug 112196
win32 symbols now work for trace-malloc
r=dbaron,sr=brendan


git-svn-id: svn://10.0.0.236/trunk@109041 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:54:05 +00:00
mkaply%us.ibm.com
9835afca10 #108280
r=mkaply, sr=blizzard
OS/2 only - code from Javier Pedemonte to get our fonts back after 99010


git-svn-id: svn://10.0.0.236/trunk@109040 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:47:21 +00:00
peterlubczynski%netscape.com
1056022318 Fixing warnings on Win32 in PluginSDK, NOT PART OF BUILD.
git-svn-id: svn://10.0.0.236/trunk@109039 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:45:59 +00:00
shliang%netscape.com
7fad9186b1 bug 63624 - mail compose object dropdown missing images. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109038 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:43:13 +00:00
peterlubczynski%netscape.com
1067464bba Plugin SDK changes for Mac. NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@109037 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:38:48 +00:00
peterlubczynski%netscape.com
fc19e4d611 Plugin SDK changes for Mac, NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@109036 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:36:30 +00:00
peterlubczynski%netscape.com
fe8031b9cd Plugin SDK changes for Mac Carbon. NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@109035 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:34:49 +00:00
sonja.mirtitsch%sun.com
1c64196513 trying to reduce sleeptime on linux. relyea thinks we need 30 seconds until selfserv frees the socket, testing. maybe it can also be fixed in the networkconfiguration?
git-svn-id: svn://10.0.0.236/trunk@109034 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:20:14 +00:00
alecf%netscape.com
cac1f2ca73 fix inspector
git-svn-id: svn://10.0.0.236/trunk@109033 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 22:06:14 +00:00
mscott%netscape.com
a073137744 Bug #112220 avoid an extra firing of the on select outliner handler when deleting
a message. Supress command updating when selecting the next message
after a delete
r=bienvenu
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@109032 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:45:41 +00:00
timeless%mac.com
7dda0b46d1 Bugzilla Bug 110271 Right Click->Copy doesn't work in JSConsole
patch by biesi r=timeless sr=blake


git-svn-id: svn://10.0.0.236/trunk@109031 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:36:31 +00:00
brendan%mozilla.org
ef8a450c12 Update all pointers to an arena that moved when it was reallocated (111557, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@109027 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:27:59 +00:00
bzbarsky%mit.edu
a4e5ac87c1 Don't return a mime info based on mime type if we didn't get a helper to
use.   Bug 109897, r=cbiesinger@web.de, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@109025 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:24:32 +00:00
bzbarsky%mit.edu
6509f7fe33 fix possible memory leak when adding mime info objects to mime cache.
Bug 109130, r=law, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@109024 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:21:34 +00:00
bzbarsky%mit.edu
c876bd8d34 For files starting with "#!" check whether the buffer contains any nulls
before deciding whether they are plain text.  Bug 110767, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@109023 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:20:25 +00:00
alecf%netscape.com
bf4d9b0e6e first part of fix for bug 112209, making nsStr private by switching nsStaticNameTable over to nsAFlatString. r=dbaron, sr=blake
git-svn-id: svn://10.0.0.236/trunk@109022 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:13:53 +00:00
shliang%netscape.com
d4197fdc08 bug 110035 - extra blue bars in front of replies. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109020 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:06:04 +00:00
shliang%netscape.com
c2fad7c31c bug 50919 - poor design for thread column icon. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109019 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 21:04:34 +00:00
shliang%netscape.com
bee856e4f7 bug 108976 - secure icons out of alignment with twisty/server. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109018 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:59:53 +00:00
shliang%netscape.com
9eb0b0e7e7 bug 103190 - win classic paragraph drop down does not show selected item. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109017 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:55:05 +00:00
shliang%netscape.com
6847f11d25 bug 94886 - scroll bars too narrow in modern theme. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@109016 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:48:19 +00:00
locka%iol.ie
f8edbb23b5 Make LiveConnect optional once more. b=112215 r=leaf@mozilla.orf sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@109015 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:32:26 +00:00
morse%netscape.com
6a92b07b86 bug 110560, cookie topcrasher, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@109014 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:25:36 +00:00
mkaply%us.ibm.com
6387c2ef06 No bug
r=mkaply, sr=blizzard
OS/2 only - code from jblanco to get print preview working


git-svn-id: svn://10.0.0.236/trunk@109013 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:24:20 +00:00
locka%iol.ie
3b1d6316a3 Implement nsIWindowCreator service for ActiveX control. r=danm@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109012 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:13:43 +00:00
ashishbhatt%netscape.com
5c84a7ab0a Updating typo error from RunAllHistoryEnrtyTests to RunAllHistoryEntryTests()
git-svn-id: svn://10.0.0.236/trunk@109011 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:11:41 +00:00
locka%iol.ie
1c0e19032f Add -chrome argument to mfcembed so it can load chrome content. b=111627 r=chak@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@109010 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:09:39 +00:00
kirk.erickson%sun.com
b992807046 Fixes bug 107777. Added '-L <seconds>' argument (ops/sec logging).
Review by Nelson and Wan-Teh made this patch very clean.  We are
now creating a separating logger() thread.


git-svn-id: svn://10.0.0.236/trunk@109009 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 20:08:57 +00:00
seawood%netscape.com
99ba97a000 Add MAKEFILES_macmorefiles to the "all" list.
git-svn-id: svn://10.0.0.236/trunk@109008 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 19:27:46 +00:00
naving%netscape.com
25a72fd5b6 112095 r=ducarroz sr=bienvenu. fix leaking msg hdrs (to, from..) upon reading mail/news messages
git-svn-id: svn://10.0.0.236/trunk@109006 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 19:23:41 +00:00
chak%netscape.com
a8d5f4106e Fix for #110795 - Freeze core DOM interfaces
r/sr=jst


git-svn-id: svn://10.0.0.236/trunk@109005 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 19:18:00 +00:00
rods%netscape.com
7ae9a2f98b temp patch for Bug 112048 r=rods a=leaf
git-svn-id: svn://10.0.0.236/trunk@109004 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 16:28:01 +00:00
timeless%mac.com
1f72525f45 Bugzilla Bug 111606ÿWant black combo box arrow
by neil@parkwaycc.co.uk r=rods sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109003 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 15:48:16 +00:00
bzbarsky%mit.edu
f243d1dcf3 Make sure the <input type="hidden"> never takes up space by setting it
to use display:none (now that it'll submit fine with that setting).
Bug 109847, r=jkeiser, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@109002 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 15:36:33 +00:00
jake%acutex.net
acaebc81a5 Bug 108312 - The mid-air collision page was only showing the most recent changes if two people comitted changes to a bug while you were viewing it.
r=louie, myk


git-svn-id: svn://10.0.0.236/trunk@109001 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 15:04:52 +00:00
dcone%netscape.com
2b974aef37 Put in a check so backgrounds are not printed. This is temporary until 96870 is fixed. r=rods sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@109000 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 14:50:35 +00:00
brade%netscape.com
443c97021c remove unused methods; r=cmanske; sr=kin (bug #107636)
git-svn-id: svn://10.0.0.236/trunk@108999 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 13:59:57 +00:00
morse%netscape.com
cb5c29698a bug 110560, cookie topcrasher, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108998 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 13:33:11 +00:00
jst%netscape.com
4e4d21df88 Fixing bug 42321. Delaying GC's two seconds when leaving a page (which is done when opening a window too), and don't start GC'ing until 10 seconds after the first request. r=bzbarsky@mit.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@108996 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 09:46:38 +00:00
jst%netscape.com
6950e2ad6c Fixing the second part of bug 11213. Don't call nsIScriptGlobalObject::SetNewDocument() after leaving print-preview since that well clear the JS scope and cancel all timers that might have queued up while in print-preview mode. Patch by rods@netscape.com, r=peterv@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108995 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 09:30:15 +00:00
jst%netscape.com
818ffd7c28 Fixing part of bug 111213. Make nsIScriptContext::SetScriptsEnabled() 'restart' scripts if they were turned off earlier in this context (print preview relies on this). r=jkeiser@iname.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108994 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 09:18:28 +00:00
axel%pike.org
b18568c928 bug 111222, add security check for loading XSLT stylesheets, r=mstoltz, peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@108993 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 09:03:10 +00:00
seawood%netscape.com
9a782a6bb8 Removing widget/src/xlib/window_service/Makefile
git-svn-id: svn://10.0.0.236/trunk@108992 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 07:18:08 +00:00
seawood%netscape.com
c56c34b7f6 Move that comment back to the first column otherwise it gets printed in the build log.
git-svn-id: svn://10.0.0.236/trunk@108991 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 06:54:22 +00:00
alecf%netscape.com
d692d783a1 just adding MOZ_COUNT_CTOR/DTOR - no functional changes
git-svn-id: svn://10.0.0.236/trunk@108990 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 06:27:13 +00:00
alecf%netscape.com
f14b46ebdc just adding MOZ_COUNT_CTOR/DTOR - no functional code
git-svn-id: svn://10.0.0.236/trunk@108989 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 06:19:36 +00:00
seawood%netscape.com
9a74a5e531 Call each of ldap's build stages individually, as it was before the tier builds (bug 107302), as ldap doesn't seem to handle -j properly from its default target.
git-svn-id: svn://10.0.0.236/trunk@108988 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 06:16:23 +00:00
mcafee%netscape.com
58f4cd449d report startup times as an html link to the graph of previous runs
git-svn-id: svn://10.0.0.236/trunk@108987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:43:01 +00:00
alecf%netscape.com
af37f5ea47 fix for bug 111333 - properly close out morkFactory object to reduce leak that was exposed recently. r=bienvenu sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108986 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:17:42 +00:00
alecf%netscape.com
315b363db3 fix for assertion that would be caused by my next checkin, checking in for bienvenu, r=alecf, sr=sspitzer bug 111333
git-svn-id: svn://10.0.0.236/trunk@108985 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:16:35 +00:00
mcafee%netscape.com
2c009fda42 switching to tegu mozilla.org graph server
git-svn-id: svn://10.0.0.236/trunk@108984 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:14:19 +00:00
naving%netscape.com
34e6308d7f 112070 r/sr=bienvenu. fix a small char* leak.
git-svn-id: svn://10.0.0.236/trunk@108983 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:05:08 +00:00
mcafee%netscape.com
f49504d5e7 Solaris needs LD_LIBRARY_PATH help for /usr/local/lib
git-svn-id: svn://10.0.0.236/trunk@108982 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 05:01:47 +00:00
mcafee%netscape.com
6b8b7d763d Find gnuplot
git-svn-id: svn://10.0.0.236/trunk@108980 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:43:32 +00:00
morse%netscape.com
51fbf93eaa bug 111362, no radio button selected in p3p dialog, r=bryner, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108979 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:41:37 +00:00
pschwartau%netscape.com
735e9a7b96 Skipping a new, big test that exceeds Java classfile size limitations
git-svn-id: svn://10.0.0.236/trunk@108977 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:21:28 +00:00
pschwartau%netscape.com
4c980e750e Initial add. Regression test for bug 111557.
git-svn-id: svn://10.0.0.236/trunk@108976 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:13:03 +00:00
shliang%netscape.com
68e2a1f984 bug 79355 - classic toolbar grippies not as slim as in 4.x. r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108974 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:07:58 +00:00
shliang%netscape.com
9cba58d9c9 bug 71637 - css errors in chrome. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@108973 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 04:01:38 +00:00
bienvenu%netscape.com
fea97f766d cache most recent thread object asked for, should speed up painting of thread pane when in threaded mode, r=naving, sr=sspitzer 111976
git-svn-id: svn://10.0.0.236/trunk@108972 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 03:53:31 +00:00
waldemar%netscape.com
431ce42998 Added more statement semantics
git-svn-id: svn://10.0.0.236/trunk@108970 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:39:34 +00:00
waldemar%netscape.com
c443242db6 Removed #, .., ->, and @ tokens
git-svn-id: svn://10.0.0.236/trunk@108969 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:39:18 +00:00
waldemar%netscape.com
9919f852f4 Fixed string literal bug
git-svn-id: svn://10.0.0.236/trunk@108968 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:38:56 +00:00
waldemar%netscape.com
8faac21dd0 Fixed formatting of empty records
git-svn-id: svn://10.0.0.236/trunk@108967 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:38:39 +00:00
waldemar%netscape.com
b365e7b285 Added support for :var arguments
git-svn-id: svn://10.0.0.236/trunk@108966 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:38:13 +00:00
mcafee%netscape.com
d59e0d9133 First add. code=jrgm, modified by mcafee
git-svn-id: svn://10.0.0.236/trunk@108965 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:26:48 +00:00
mcafee%netscape.com
dfa7caf5d7 minor html fix
git-svn-id: svn://10.0.0.236/trunk@108964 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:19:00 +00:00
darin%netscape.com
eb57161317 updating .cvsignore
git-svn-id: svn://10.0.0.236/trunk@108963 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 02:11:44 +00:00
dp%netscape.com
a080db14dd Removing timeline marks. These dont provide much information
git-svn-id: svn://10.0.0.236/trunk@108962 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:55:55 +00:00
naving%netscape.com
b84b36db35 110941 r=sspitzer sr=bienvenu. fix a few leaking char*.
git-svn-id: svn://10.0.0.236/trunk@108961 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:53:50 +00:00
rjc%netscape.com
e41baa73d3 Fix bug # 75772: On Mac OS X, add support for window toolbar button which hides/shows toolbar buttons. r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108960 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:47:41 +00:00
karnaze%netscape.com
d537a4df3c bug 103925 (3rd patch) - display changes in reflow parameters. sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@108959 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:45:46 +00:00
av%netscape.com
e8dd18ea55 Fixing bug 108246 -- special chars in plugin property strings break our plugin management mechanism, r=dp, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@108958 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:39:21 +00:00
dp%netscape.com
699a283d5d marking pref file load times in timeline. For timeline builds only.
git-svn-id: svn://10.0.0.236/trunk@108957 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:39:09 +00:00
bryner%netscape.com
5159db80ef Bug 106445 - clicking url in mail doesn't focus browser window. r=jst, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@108956 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:22:34 +00:00
dp%netscape.com
816700526f int g_timelineDisabled -> PRBool gTimelineDisabled (review comments for previous version) r=sgehani,sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108955 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:16:27 +00:00
dp%netscape.com
d9296f3270 Getting timeline to display startup time even if NS_TIMELINE_DISABLE is defined
git-svn-id: svn://10.0.0.236/trunk@108954 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:10:37 +00:00
wtc%netscape.com
a0aae4cf80 Bugzilla bug 111287: checked in a patch from Dave Inglis <dinglis@qnx.com>
to fix the QNX6 port of dbm.  r=wtc.
Modified files: include/mcom_db.h src/hash.c


git-svn-id: svn://10.0.0.236/trunk@108953 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 01:06:33 +00:00
dp%netscape.com
ab3b87236d NS_TIMELINE_MARK_FUNCTION1() and NS_TIMELINE_DISABLE. For timeline builds only. r/sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108951 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:54:57 +00:00
nhotta%netscape.com
6e68565fd3 Added charset submenu to the context menu, written by jbetak, bug 70830, r=nhotta, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@108950 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:54:01 +00:00
myk%mozilla.org
81302cc7d8 Fix for bug 109802: Make it clear how to enter mysql passwords with special characters into localconfig.
Patch by Dave Miller <justdave@syndicomm.com>.
r=ddkilzer,louie.


git-svn-id: svn://10.0.0.236/trunk@108949 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:49:26 +00:00
hyatt%netscape.com
a73ca54807 Fix for 112044, positional attribute in overlays doesn't do a merge when position is higher than the number of current children. r=rginda, sr=ben
git-svn-id: svn://10.0.0.236/trunk@108946 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:34:33 +00:00
mstoltz%netscape.com
51eea64691 Bug 109113 - misplaced #ifdef DEBUG caused fix not to work in opt builds.
Moved #endif to exclude important call. r/sr=jst.


git-svn-id: svn://10.0.0.236/trunk@108945 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:29:20 +00:00
hewitt%netscape.com
5d69e8d170 83944 - urlbar history popup should have a max-width, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108943 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:03:36 +00:00
hewitt%netscape.com
4dc6c5e2de 111396 - tabbing in dialogs gives incorrect results, r=morse, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108942 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-27 00:00:12 +00:00
dp%netscape.com
ee2f4321cd added dll, pref file listing. Automated cost breakdown
git-svn-id: svn://10.0.0.236/trunk@108940 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 23:37:07 +00:00
myk%mozilla.org
61c2e2550c Fix for bug 101875: Put the product column before the component column rather than after.
Patch by Paul Baker <pbaker@where2getit.com>.
Low risk, r=myk, no second review needed.


git-svn-id: svn://10.0.0.236/trunk@108939 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 23:29:29 +00:00
darin%netscape.com
823c9cb360 fixes bug 110846 "all nsStandardURL setters except SetSpec are missing the
escaping step" r=andreas.otte, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108938 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 23:28:44 +00:00
dp%netscape.com
ff4143ac63 Marking window visible time on startup. Only for MOZ_TIMELINE. r/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108936 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 23:13:36 +00:00
nhotta%netscape.com
da0ab34391 Adding new files for Georgian charset GEOSTD8, bug 107533.
git-svn-id: svn://10.0.0.236/trunk@108935 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:58:02 +00:00
nhotta%netscape.com
8bc39f4630 Adding Georgian charset GEOSTD8, contributed by giasher@wanex.net, bug 107533, r=ftang, rs=brendan.
git-svn-id: svn://10.0.0.236/trunk@108934 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:57:11 +00:00
shannond%netscape.com
1d7b0ebca2 Bug 111980 - CCK build broken - changing target from install to libs as a
result of bug 56601, r=smeredith@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108933 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:56:12 +00:00
shannond%netscape.com
baa82e012c Bug 111980 - CCK build broken - changed target from install to libs as
a result of the checkin for bug 56601, r=smeredith@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108932 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:53:45 +00:00
shannond%netscape.com
ae08d483eb Bug 111980 - CCK build broken - changing target from install to libs as a
result of the checkin for bug 56601, r=smeredith@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108931 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:52:23 +00:00
dp%netscape.com
c9c2fd7357 timing js deserialization in timeline builds
git-svn-id: svn://10.0.0.236/trunk@108930 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:47:16 +00:00
andreww%netscape.com
b8e837b15c bugzilla 83828 - fixes improper borders in mac classic popups. r=shliang sr=blake.
git-svn-id: svn://10.0.0.236/trunk@108929 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:47:10 +00:00
leaf%mozilla.org
e9fe9e0d5f Automated update
git-svn-id: svn://10.0.0.236/trunk@108928 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:42:56 +00:00
jband%netscape.com
b9450f6730 fix bug 100187. This is Vidur's patch to expose the interfaceinfomanager as a service accessible via the service manager. r=dbradley sr=jband
git-svn-id: svn://10.0.0.236/trunk@108926 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:31:39 +00:00
dp%netscape.com
12eb8ef06d Timing rdf blocking parse for timeline enabled builds
git-svn-id: svn://10.0.0.236/trunk@108925 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:28:37 +00:00
seawood%netscape.com
86157bf044 Add explicit check against zero when looking to remove an option so that test doesn't treat the return value of grep as "true" always.
Bug 111653 r=bryner


git-svn-id: svn://10.0.0.236/trunk@108924 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:28:12 +00:00
dp%netscape.com
da1c57cda3 Adding function timer. Only for timeline
git-svn-id: svn://10.0.0.236/trunk@108923 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:26:39 +00:00
naving%netscape.com
d356c1e5d1 111829 r/sr=bienvenu. fix leaking folder name upon creating new folder.
git-svn-id: svn://10.0.0.236/trunk@108922 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 22:05:26 +00:00
naving%netscape.com
5d17ac7524 111899 r=ducarroz sr=bienvenu. fix a prunichar* memory leak
git-svn-id: svn://10.0.0.236/trunk@108921 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:53:17 +00:00
ashishbhatt%netscape.com
d78faebc37 Updated for cascading menus and interface test cases
git-svn-id: svn://10.0.0.236/trunk@108920 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:47:06 +00:00
alecf%netscape.com
80438c6cde one more try - fix last case of bug 102043 - hide urls as they're added to history, even when history ui is visible, by notifying rdf that the rows are gone.
sr=blake, r=waterson


git-svn-id: svn://10.0.0.236/trunk@108919 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:46:12 +00:00
bienvenu%netscape.com
7cdcf1eeb2 fix crash when mail message has no to, cc, or bcc header r=naving, sr=sspitzer 111932
git-svn-id: svn://10.0.0.236/trunk@108917 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:35:50 +00:00
blythe%netscape.com
5b0bd4a484 Fix bug 110807, newlines on win32 trace-malloc tools
sr=brendan,r=dbaron
NOT in normal build


git-svn-id: svn://10.0.0.236/trunk@108916 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:10:45 +00:00
cmanske%netscape.com
8d5bd954f8 Remove pref to change delete key behavior for selected cells, b=95633, r=syd, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@108915 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:07:55 +00:00
mkaply%us.ibm.com
13bdbbbd8b No bug - Os/2 support for print preview
git-svn-id: svn://10.0.0.236/trunk@108914 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 21:04:19 +00:00
curt%netscape.com
9425685ff8 Passes parameters correctly for install.Execute() and file.Execute().
Fixes Bug #104152.


git-svn-id: svn://10.0.0.236/trunk@108913 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 20:46:41 +00:00
timeless%mac.com
b438be51f6 Bugzilla Bug 111922ÿ[Xlib] Fatal crash at shutdown in nsAppShellService destructor
Roland.Mainz@informatik.med.uni-giessen.de r=leaf


git-svn-id: svn://10.0.0.236/trunk@108911 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 19:52:29 +00:00
mscott%netscape.com
65b9e2eb6e give the header toggle widget box flex so the subject line wraps. rs=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108907 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 19:33:16 +00:00
rayw%netscape.com
55a781cd77 Changed case of include file to permit it to build on Linux. Not part
of default build.


git-svn-id: svn://10.0.0.236/trunk@108903 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 18:23:49 +00:00
curt%netscape.com
18348db40d Cleaning up more obsolete files.
git-svn-id: svn://10.0.0.236/trunk@108902 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 18:11:32 +00:00
ian.mcgreer%sun.com
5c2f85abc0 include AES in performance info dump
git-svn-id: svn://10.0.0.236/trunk@108901 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 17:53:44 +00:00
ccarlen%netscape.com
1501fa2fac Bug 110660 - MOZ_PLUGIN_PATH not added to plugin search paths. r=peterl/sr=jband
git-svn-id: svn://10.0.0.236/trunk@108899 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 15:54:38 +00:00
jake%acutex.net
57dc03667d Bug 109530 - xml.cgi was quoting stuff way too much. This is because it was incorrectly quoted in Bug.pm
r= justdave, louie


git-svn-id: svn://10.0.0.236/trunk@108898 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 14:16:10 +00:00
rods%netscape.com
d00d1ac83c Initial checkin
Bug 108345 r=dchak,dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108897 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 14:11:23 +00:00
rods%netscape.com
cb511ac42c Bug 108345 r=dcone,chak sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108896 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 13:45:36 +00:00
rods%netscape.com
fdb6cf0011 Change nsIWebBrowserPrint.h interface to use nsIPrintSettings
Also added minimal PageSetup dialog with support for Printing BGColors, BGIMages, and Scaling
Bug 108345 r=dcone,chak sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108895 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 12:51:39 +00:00
rods%netscape.com
0bcf76ec42 Add PrintBGColors, PRINBGImages and Scaling
Bug 108345 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108894 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 12:48:41 +00:00
timeless%mac.com
11936d43d6 Bugzilla Bug 111508 [xlib] Xlib timer code is scary
by Roland.Mainz@informatik.med.uni-giessen.de (xlib peer)
r=timeless


git-svn-id: svn://10.0.0.236/trunk@108892 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 10:18:14 +00:00
timeless%mac.com
535b6f20f2 Bugzilla Bug 107823 change nsIFile
to use 'Modified' instead of 'Modification'
r=akkana sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 08:05:05 +00:00
jaggernaut%netscape.com
38e0429654 Bug 103662: Allow wide concatenation of defined string constants, r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@108890 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 05:59:35 +00:00
mcafee%netscape.com
55eaac9e1b minor comment
git-svn-id: svn://10.0.0.236/trunk@108889 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 05:48:06 +00:00
naving%netscape.com
3ba20e6987 111789 r/sr=bienvenu. fix nntpurl leak when copying news messages to an imap folder
git-svn-id: svn://10.0.0.236/trunk@108887 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 03:24:58 +00:00
brendan%mozilla.org
2bf095e76f Break self-cycle to fix leak (106860, r=dbaron, sr=bienvenu).
git-svn-id: svn://10.0.0.236/trunk@108886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 01:20:31 +00:00
jaggernaut%netscape.com
e9626cd7e8 Bug 108990: remove unreferenced function urlDomain() in navigator.js. r=jrgm, sr=ben
git-svn-id: svn://10.0.0.236/trunk@108884 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 00:47:42 +00:00
blakeross%telocity.com
a87a16cc92 109117 - offline ui: download/sync now window has extra big ok and cancel buttons. r=bienvenu sr=ben
git-svn-id: svn://10.0.0.236/trunk@108883 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-26 00:43:56 +00:00
leaf%mozilla.org
dfa2438984 Automated update
git-svn-id: svn://10.0.0.236/trunk@108881 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 23:42:58 +00:00
dbaron%fas.harvard.edu
ecfabe7587 Enable the gcc3 version of the sparc/solaris xptcinvoke code. r=cls sr=shaver b=71627
git-svn-id: svn://10.0.0.236/trunk@108880 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 23:29:29 +00:00
dbaron%fas.harvard.edu
c320c4e3e8 Add HAVE_GCC3_ABI so the build system can know whether we're using gcc3. r=cls sr=shaver b=71627
git-svn-id: svn://10.0.0.236/trunk@108879 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 23:28:13 +00:00
ben%netscape.com
4b360ed113 fix booboo in properties file caused by mistake in copy-paste application of henrik
gemal's patch the other day.


git-svn-id: svn://10.0.0.236/trunk@108878 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 23:22:23 +00:00
dbaron%fas.harvard.edu
c3a65006f0 Cleaning up comment style per shaver's sr comments. b=71627
git-svn-id: svn://10.0.0.236/trunk@108877 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 23:15:01 +00:00
bernd.mielke%snafu.de
51626fd157 fix a build warning (troy) r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108876 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 20:38:30 +00:00
morse%netscape.com
4641baa587 bug 111818, remove-site button in cookie manager is always disabled, r=sgehani, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108874 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 17:30:51 +00:00
ian%hixie.ch
336b360680 mkdir requires the second argument in perl 5.005. b=111730, r=daniele
git-svn-id: svn://10.0.0.236/trunk@108873 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 14:17:19 +00:00
ian%hixie.ch
d04f2cabc2 Mozbot shipped with a broken default bugsDWIMQueryDefault -- made the code more consistent. b=93203, r=timeless
git-svn-id: svn://10.0.0.236/trunk@108872 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 13:59:53 +00:00
blakeross%telocity.com
edad48fccf Rest of fix for 98782.
git-svn-id: svn://10.0.0.236/trunk@108871 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 05:14:28 +00:00
blakeross%telocity.com
b470532432 96176 - access to localstore is wrong. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108870 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 04:03:00 +00:00
blakeross%telocity.com
8df826868e Fix for 98782 and a few other history bugs. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108869 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 04:01:04 +00:00
naving%netscape.com
20a0241bf3 111371 r/sr=bienvenu fix char* leaks when reading filenames from disk.
git-svn-id: svn://10.0.0.236/trunk@108868 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 03:02:24 +00:00
ian%hixie.ch
70cff4c514 oops, stray dot meant the private karma scores were getting corrupted! r=kerz
git-svn-id: svn://10.0.0.236/trunk@108866 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 01:25:27 +00:00
ian%hixie.ch
05498db6d7 Initial checkin of a karma module. r=kerz b=111757
git-svn-id: svn://10.0.0.236/trunk@108865 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-25 01:01:35 +00:00
dbaron%fas.harvard.edu
859b0ce867 Backing out most of my checkin for bug 109788. b=111710
git-svn-id: svn://10.0.0.236/trunk@108863 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 23:28:45 +00:00
bstell%netscape.com
bd7758a217 bug 111251, checkin for adam@gimp.org,
very minor inefficiency in nsFontMetricsGTK.cpp
r=bstell@netscape.com, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@108861 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 22:13:18 +00:00
bbaetz%cs.mcgill.ca
ca87a319db Bug 110976 - libart's art_render doesn't fill certain paths correctly.
Patch by james.turner@crocodile-clips.com, not part of build.


git-svn-id: svn://10.0.0.236/trunk@108859 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 19:50:23 +00:00
bienvenu%netscape.com
9fd9013d30 fix umr in nsDBFolderInfo.cpp, rs=sspitzer 111382
git-svn-id: svn://10.0.0.236/trunk@108858 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 16:41:38 +00:00
varga%utcru.sk
dc4faa61c1 Fix for 109478. Add view, contentView and builderView properties to the outliner binding. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108855 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 12:33:07 +00:00
bernd.mielke%snafu.de
6530a23cbc adding table regression testcase not part of the build
git-svn-id: svn://10.0.0.236/trunk@108853 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 08:02:49 +00:00
dbaron%fas.harvard.edu
e2dee5c690 Fixing BeOS bustage. b=84947, 111450
git-svn-id: svn://10.0.0.236/trunk@108852 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 07:17:31 +00:00
dbaron%fas.harvard.edu
786d386ab3 Fixing BeOS bustage. b=84947, 111450
git-svn-id: svn://10.0.0.236/trunk@108851 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 05:40:31 +00:00
roc+%cs.cmu.edu
fce7355cf6 My cleanup checkin for bug 73382 caused 5% increase in page load times. Backing out.
git-svn-id: svn://10.0.0.236/trunk@108850 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 05:37:25 +00:00
dbaron%fas.harvard.edu
5f0d0b5180 Fixing BeOS bustage. b=84947, 111450
git-svn-id: svn://10.0.0.236/trunk@108849 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 04:09:47 +00:00
dbaron%fas.harvard.edu
72afaea567 Bugs 84947 and 111450: fix BeOS bustage for new print dialog for Unix, OS/2, and BeOS by porting the changes to BeOS. Checking in for Roland.Mainz@informatik.med.uni-giessen.de
git-svn-id: svn://10.0.0.236/trunk@108848 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-24 02:38:58 +00:00
bzbarsky%mit.edu
d0c7beb38b Use <> for system headers, not "". This should help prevent Sun WSU2
compiler bustage.  Bug 111574, patch from Roland Mainz
(<Roland.Mainz@informatik.med.uni-giessen.de>), r=bzbarsky, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108847 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 22:36:54 +00:00
nboyd%atg.com
b79fb11b45 JavaAdapter serialization contribution from Kemal Bayram.
git-svn-id: svn://10.0.0.236/trunk@108846 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 20:40:08 +00:00
nboyd%atg.com
a66c0d63c1 Hi, Norris!
In our browser we need to support scripts that use as an identifier name future reserved keywords such as interface. The scripts are rather old and perfectly legal under previous revisions of EcmaScript which does not included the list of almost every Java keyword to the future reserve.

To support this I added an option to query Context.hasFeature for FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER:

    /**
     * if hasFeature(RESERVED_KEYWORD_AS_IDENTIFIER) returns true,
     * treat future reserved keyword (see  Ecma-262, section 7.5.3) as ordinary
     * identifiers but warn about this usage
     */
    public static final int FEATURE_RESERVED_KEYWORD_AS_IDENTIFIER = 3;

The corresponding code in TokenStream checks for it and issues just a warning when this feature is enabled.

I also think that it would be better not to return RESERVED as a token from TokenStream.getToken but report the specific syntax error immediately because it is very unclear from the error message:

js> x.interface = 1
js: "<stdin>", line 1: uncaught JavaScript exception: SyntaxError: missing name after . operator (<stdin>; line 1)
js: x.interface = 1
js: ..........^

what exactly went wrong. I can send a patch later for that.

Regards, Igor


git-svn-id: svn://10.0.0.236/trunk@108845 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 20:38:50 +00:00
bienvenu%netscape.com
4d23237673 fix tinderbox bustage on solaris, patch from roland mainz, r=bzbarsky, sr=bienvenu 111574
git-svn-id: svn://10.0.0.236/trunk@108844 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 19:17:05 +00:00
jake%acutex.net
4c0546033c More win32 build goodness
git-svn-id: svn://10.0.0.236/trunk@108842 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 17:44:39 +00:00
mikep%oeone.com
358c639e5a Changes made for windows makefiles.
git-svn-id: svn://10.0.0.236/trunk@108840 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 17:09:39 +00:00
ian%hixie.ch
69e9874b10 Changing 'will soon be available as an open source resource' to 'is available as an open source resource'
git-svn-id: svn://10.0.0.236/trunk@108839 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 16:50:57 +00:00
dougt%netscape.com
6c0300195e fixing comment in idl. bug 111518
git-svn-id: svn://10.0.0.236/trunk@108837 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 15:11:37 +00:00
rbs%maths.uq.edu.au
0f01c7b8cd re-disable this problematic memory-pressure observer as it causes device contexts to hang around until shutdown. bug 109974. Need more investigation. In the meantime, the font cache retains the ability to compact itself when font handles are running out
git-svn-id: svn://10.0.0.236/trunk@108833 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 10:31:30 +00:00
dbaron%fas.harvard.edu
fcad73a0e2 Split ConstructFrameByTag into ConstructTextFrame and ConstructHTMLFrame to make it easier to reorganize frame construction by tag and by display type. b=109788 r=hyatt rs=waterson
git-svn-id: svn://10.0.0.236/trunk@108831 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 04:52:24 +00:00
nboyd%atg.com
5cebd79ae6 Update for new failures.
git-svn-id: svn://10.0.0.236/trunk@108830 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 01:20:56 +00:00
ian%hixie.ch
6c5b533a17 work in progress: a component that provides a way for users and admins to edit user preferences, settings, contact details, password, etc.
git-svn-id: svn://10.0.0.236/trunk@108829 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-23 00:16:44 +00:00
jband%netscape.com
26f6f3a656 trivial patch to avoid string assertions when entry is empty rs=jband
git-svn-id: svn://10.0.0.236/trunk@108828 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 23:32:49 +00:00
jband%netscape.com
2f06cb4e7d trivial patch to make what is supposed to be a warning really a warning instead of an assert. rs=jband
git-svn-id: svn://10.0.0.236/trunk@108827 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 23:26:34 +00:00
dbaron%fas.harvard.edu
3a151b5003 Set DYLD_LIBRARY_PATH for Mac OS X (Darwin). b=110918 r=seawood
git-svn-id: svn://10.0.0.236/trunk@108826 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 23:22:59 +00:00
dbaron%fas.harvard.edu
4a9a7c847f Changing |#ifdef DEBUG_dbaron| to |#ifdef DEBUG_dbaron_off| so I don't see these assertions anymore.
git-svn-id: svn://10.0.0.236/trunk@108825 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 23:19:33 +00:00
dbaron%fas.harvard.edu
f7ef596567 Fix leak of popup frames (that fans out into leaking entire XUL documents) by creating nsIAnonymousContentCreator anonymous content for the doc element frame before creating frames for the real content children, which should only affect popupsets. b=109671 r=ben sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108822 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 21:44:34 +00:00
dbaron%fas.harvard.edu
f276a3b1e1 Fix leak of style contexts from vertical splitters. b=108642 r=hewitt sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@108821 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 21:41:47 +00:00
ian%hixie.ch
bb6b01bb43 changing the argument names from the cosesEditorXYZ form to the cosesEditor.x.y.z form. This will make them more consistent with how things work elsewhere in PLIF.
git-svn-id: svn://10.0.0.236/trunk@108819 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 20:15:45 +00:00
jfrancis%netscape.com
763808d87d fixes for ---
45888: center followed by heading 2: text doesn't take on heading 2 
102754: Lists with Headings applied do not create new list items when return entered
9835: Indent button behaves differently if <li> contains two <br>
r=fm; sr=kin


git-svn-id: svn://10.0.0.236/trunk@108818 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 19:35:11 +00:00
bernd.mielke%snafu.de
29ff86caf8 bug 99923 react correctly on style change reflows targetted at higher frames
r=karnaze sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108817 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 19:34:59 +00:00
mikep%oeone.com
9208ce26b4 Updating files for windows builds and adding windows makefiles.
git-svn-id: svn://10.0.0.236/trunk@108816 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 19:22:04 +00:00
jake%acutex.net
effa3a810e Add Windows makefile for calendar.
git-svn-id: svn://10.0.0.236/trunk@108815 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 19:15:20 +00:00
dinglis%qnx.com
ca4d7fe203 -not part of build-
clean up splash screen
removed PHIG env requirement.


git-svn-id: svn://10.0.0.236/trunk@108813 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 18:45:00 +00:00
nboyd%atg.com
503987f4fb Hi,
I'm working on a project which uses rhino. I wanted to have finer
control over class generation and saving so I've done some patching
and clean up on the current rhino tip.

The biggest change I've made is the replacement of ClassOutput with
ClassRepository that has the single method:

    public boolean storeClass(String className, byte[] classBytes,
                           boolean isTopLevel) throws IOException;

This interface allows any arbitary storage method, such as a
Hashtable/Map. In addition it also allows you to specify whether a
class should be loaded, via returning true or false.  You can still use
ClassOutput as I've coded an internal wrapper.

With this interface it has also been possible to strip out the file
saving code from Codegen and OptClassNameHelper.  The file
saving code is now an inner class FileClassRepository in Context. As
a consequence of this  I've stripped out some methods from ClassNameHelper.
The resulting code is much more cleaner then before hand and everything
still works as per usual.

Other small additions are:
  o  Annonymous functions are now named class$1 instead of class1
  o  get/setClassName added to ClassNameHelper exposed in Context.

My final thoughts are, since all methods in ClassNameHelper except reset()
are now exposed whould n't it be much more "cleaner" to simply to some
how work around to eliminate reset() and provide getClassNameHelper()
via Context?  You could then remove the numerous ClassNameHelper shadow
methods from Context.

Likewise, FileClassRepository could be made a public class very easily
and combined with the above result in a dozen or so less public methods in
Context.

Anyway, the changes can be found on http://www.cins.co.uk/rhino.zip

Hope it is of use to some

Kemal Bayram


git-svn-id: svn://10.0.0.236/trunk@108807 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 15:48:21 +00:00
ian%hixie.ch
90f855808b * Created service- and serviceInstance- specific constructors so that a single module can have distinct constructors depending on how it is invoked. These constructors are called serviceInit() and serviceInstanceInit(), and both chain to the existing init() constructor (so no change are required by this).
* Changed FileStrings so that it doesn't have to be updated every time the file string format changes. The format is now one line per piece of metadata, then a blank line, then the string data. If additional metadata is added later then this will automatically support it.
* Renamed the dataSource.strings service to dataSource.strings.customised, and renamed its get() method to getCustomisedString().
* Changed the semantics of dataSource.strings.customised so that it no longer looks for a default string if it can't find a customised one (and thus removed getDefaultString).
* Abstracted the Generic output module even more. It now consists of output.generic (a service instance with its own constructor) and dataSource.strings (a pure service), the latter of which is a wrapper around dataSource.strings.customised and dataSource.strings.defaults.
* Updated Coses to work with the new dataSource.strings insterface.
* Removed the test app DataSource::ConsoleStrings and DataSource::HTTPStrings files, since they were redundant with the default output files.
* Removed all the default strings in the CosesEditor and Login components since they are pretty pointless.
* Factored out the call to dump() in the GenericOutputs module.
* Changed setString in the MySQL string data source so that it will now add a blank string (it used to delete the string if it was blank, but that meant that it was not possible to customise strings away).
* Added a piece of metadata to strings: their version number.
* Updated the customised string data source stubs to mention the version data now stored with all strings
* Added a getAllStringVersions method to the customised strings data source which returns all the string names and their version numbers.
* Made the customised strings data source check the version number of every string in its database during setupInstall to make sure that they are all up to date, version-wise. If any are out of date, the user is notified.
* Added support for the new version column to the MySQL version of the customised string data source.
* Updated the increasingly misnamed CosesEditor to support the versioned strings stuff.
* Factored out some code in the CosesEditor.
* Added version information to all default strings. All default strings are now at version 1.
* Fixed a typo in a FileStrings dump statement.
* Fixed the calls to setProgress in the MySQL user and strings data sources and in the user field factory to use the correct syntax (a parsable dotted string instead of unlocalisable plain English).
* Updated the Generic output module's documentation to match what now happens.


git-svn-id: svn://10.0.0.236/trunk@108806 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 15:46:42 +00:00
justdave%syndicomm.com
fe649f9b61 Fix for bug 61634: explain what "Milestone URL" is on the editproducts page.
patch by Matthew Tuck <matty@chariot.net.au>
r= caillon, justdave


git-svn-id: svn://10.0.0.236/trunk@108805 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 15:46:27 +00:00
timeless%mac.com
38c8443ca8 Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
r=axel@pike.org sr=kin


git-svn-id: svn://10.0.0.236/trunk@108804 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 15:12:51 +00:00
kaie%netscape.com
408e7ac983 b=84947 Roland tries to fix bustage, which only occurs on Unix when XPrint is not used.
r=kaie


git-svn-id: svn://10.0.0.236/trunk@108801 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 11:13:22 +00:00
kaie%netscape.com
c2e93a3049 b=84947 New print dialog for Unix and OS/2
r=cls/rods/mkaply/pchen sr=roc+moz
Checking in for Roland.Mainz@informatik.med.uni-giessen.de


git-svn-id: svn://10.0.0.236/trunk@108800 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 10:00:44 +00:00
gerv%gerv.net
401144e72a Bug 104261 - incorrect template paths. r=myk, ddk.
git-svn-id: svn://10.0.0.236/trunk@108799 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 06:12:36 +00:00
jst%netscape.com
e3719284dd Comment change...
git-svn-id: svn://10.0.0.236/trunk@108798 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 06:12:20 +00:00
rpotts%netscape.com
19db6dc154 Removing dead, wrong, evil, dangerous code from the parser!!
git-svn-id: svn://10.0.0.236/trunk@108797 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 05:50:04 +00:00
roc+%cs.cmu.edu
5d13b4f0c5 View manage interface cleanup. Bug 73382. r=kmcclusk, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108796 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 05:26:32 +00:00
jst%netscape.com
9b6e8f4262 Adding comments per brendan@mozilla.org's request in bug 111361.
git-svn-id: svn://10.0.0.236/trunk@108794 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 04:58:09 +00:00
rpotts%netscape.com
e318b93922 bug #102737 (r=harishd@netscape.com, sr=jst@netscape.com) one more time! only emit an empty HTML document when the content type is *not* text/plain
git-svn-id: svn://10.0.0.236/trunk@108793 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 04:37:39 +00:00
bhart00%yahoo.com
cf4c7a45a1 fix for bug 102349, r=ben/sr=brendan
git-svn-id: svn://10.0.0.236/trunk@108792 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 04:03:36 +00:00
seawood%netscape.com
5bd0d8e4eb Remove use of MOZ_MAKE_ENV. Builds should use |make -j3| instead of |MAKE='make -j3' make|
git-svn-id: svn://10.0.0.236/trunk@108791 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 04:02:28 +00:00
ben%netscape.com
d9a577721b backing out fix for 90080 as it is redundant and caused other bugs (always showing alert
when exiting prefs after viewing appearance, inability to close prefwindow sometimes
see bug 109561).


git-svn-id: svn://10.0.0.236/trunk@108790 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 03:35:32 +00:00
jst%netscape.com
96cfd386f4 Fixing bug 111361. nsGlobalNameStruct::mDOMClassInfoID is only valid on nsGlobalNameStruct's whose mType == eTypeClassConstructor. r=bbaetz@cs.mcgill.ca, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108788 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 03:11:58 +00:00
hewitt%netscape.com
cf4c8d943e 97119 - Inconsistent textbox height in Pref - Advanced - Proxies, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108786 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 03:08:17 +00:00
bienvenu%netscape.com
e5b8777058 fix hpux bustage, only define delet eoperator when debugging mem useage
git-svn-id: svn://10.0.0.236/trunk@108785 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:56:49 +00:00
jst%netscape.com
2e9bbc66b0 Ahem...
git-svn-id: svn://10.0.0.236/trunk@108784 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:56:22 +00:00
ben%netscape.com
8dde5c3032 31154, 50517 - consistency in terminology in profile manager dialogs.
patch by henrik gemal, sr=ben@netscape.com, r=hewitt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108783 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:28:34 +00:00
wtc%netscape.com
f4db2e0924 Bugzilla bug 111293: the inclusion of "nssrenam.h" in this file breaks
the NSS build (on 64-bit AIX).  I am backing it out.


git-svn-id: svn://10.0.0.236/trunk@108782 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:27:57 +00:00
ben%netscape.com
64cec59dfb 42798 - consistency in debug pref panel titles. patch from henrik gemal, sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108781 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:27:05 +00:00
ben%netscape.com
1ed98f9c2b 77513 - remove some unnecessary text to save space.
r=hewitt, sr=ben, patch from andre dahlqvist


git-svn-id: svn://10.0.0.236/trunk@108780 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:26:10 +00:00
ben%netscape.com
ebcf9c86c6 fix for 73655 - remove reference to obsolete file.
r=rginda, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@108779 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 02:00:37 +00:00
seawood%netscape.com
424155a7cf Add ldap to DIRS
git-svn-id: svn://10.0.0.236/trunk@108778 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 01:37:17 +00:00
jpierre%netscape.com
45dfc06ce7 Bug 105271 - undo changes
git-svn-id: svn://10.0.0.236/trunk@108777 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 01:24:39 +00:00
cmanske%netscape.com
458091d67c Removed uneccessary hack to make toolbar buttons show checked state, b=101982, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108775 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 01:15:09 +00:00
naving%netscape.com
ca3380c989 111314 r=ducarroz sr=bienvenu. fix char* memory leaks.
git-svn-id: svn://10.0.0.236/trunk@108774 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:56:56 +00:00
darin%netscape.com
58b5b0421a fixing bustage
git-svn-id: svn://10.0.0.236/trunk@108773 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:56:08 +00:00
jpierre%netscape.com
87e28e9839 Fixes for OS/2 build
git-svn-id: svn://10.0.0.236/trunk@108772 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:46:48 +00:00
bienvenu%netscape.com
42de406b2c fix aix bustage
git-svn-id: svn://10.0.0.236/trunk@108771 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:37:07 +00:00
cmanske%netscape.com
680929647b Fixed layout problem with Link Properties dialog, r=110303, r=syd, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108770 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:29:50 +00:00
darin%netscape.com
a66738bc2d fixes mac bustage
git-svn-id: svn://10.0.0.236/trunk@108769 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:28:30 +00:00
darin%netscape.com
ff7c1e82ca fixes mac bustage!!
git-svn-id: svn://10.0.0.236/trunk@108768 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:28:16 +00:00
cmanske%netscape.com
5e0b97fa2e Fixed getting HR settings from prefs and removed unused code, b=111273, r=syd, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108767 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:26:49 +00:00
darin%netscape.com
605cc59292 fixes bug 111072 "nsIOService::ExtractUrlPart does not return correct HOST
(flag=IOService.url_Host)" r=cmanske,andreas.otte, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@108766 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:19:47 +00:00
jpierre%netscape.com
6da005ee84 Fix for 95128 - OS/2 build issue
git-svn-id: svn://10.0.0.236/trunk@108765 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:18:08 +00:00
morse%netscape.com
61558cddcc bug 98575 speed up cookie manager, r=sgehani, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108764 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:16:37 +00:00
bienvenu%netscape.com
fb92157584 fix hpux build bustage, use delete directly as per compiler error msg
git-svn-id: svn://10.0.0.236/trunk@108763 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:15:16 +00:00
jpierre%netscape.com
87b86ce8c9 Fix for 95128 - OS/2 build issue with DBM
git-svn-id: svn://10.0.0.236/trunk@108762 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:13:56 +00:00
naving%netscape.com
b2b2112364 111291 r=ducarroz sr=bienvenu. fix a bunch of char * memory leaks.
git-svn-id: svn://10.0.0.236/trunk@108761 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:13:39 +00:00
nhotta%netscape.com
f19738ca45 Adding Georgian charset GEOSTD8, contributed by giasher@wanex.net, bug 107533, r=ftang, rs=brendan.
git-svn-id: svn://10.0.0.236/trunk@108760 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:13:10 +00:00
cmanske%netscape.com
d1943d8d4a Add print Setup menuitem from global overlay (b=106374, r=syd, sr=kin); fix colorpicker on Composer toolbar (b=108681, r=timeless, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108759 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:12:16 +00:00
cmanske%netscape.com
8e24a6761e Add Print Setup menuitem from platform-specific overlay, b=106374, r=syd, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108758 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:12:01 +00:00
cmanske%netscape.com
f26408b04c Added id to print menuitem as part of fix to bug 106374, r=syd, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108757 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:11:54 +00:00
darin%netscape.com
021b4930dd enables new scriptable string stream interface (bug 100172) r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@108756 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:08:14 +00:00
darin%netscape.com
0f222d7d84 mac project changes for bug 100172 "scriptable string stream implementation" r=dougt, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@108755 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-22 00:06:25 +00:00
darin%netscape.com
a86d6eecf0 new files for bug 100172 "need scriptable string stream implementation (must
support nsIInputStream)" r=dougt, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108754 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:55:10 +00:00
brendan%mozilla.org
4e8a45eab4 Thanks to scole@planetweb.com (Steven Cole) for fixing date_format to respect PRMJ_FormatTime's return value (102159, r=beard, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@108753 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:53:54 +00:00
nhotta%netscape.com
04e940bfe1 Adding Georgian charset GEOSTD8, contributed by giasher@wanex.net, bug 107533, r=ftang, rs=brendan.
git-svn-id: svn://10.0.0.236/trunk@108752 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:48:08 +00:00
nhotta%netscape.com
b02346f0fb Removing unused files, check in for ftang, bug 108112, r=nhotta.
git-svn-id: svn://10.0.0.236/trunk@108751 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:45:26 +00:00
ducarroz%netscape.com
acd35b613b Fix for bug 110775. Need to clear the subject and disable the editable field when caching the compose window and enabling those fields when we reopen the compose window. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@108750 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:43:26 +00:00
nhotta%netscape.com
defd2ba609 Adding Georgian charset GEOSTD8, contributed by giasher@wanex.net, bug 107533, r=ftang, rs=brendan.
git-svn-id: svn://10.0.0.236/trunk@108749 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:40:05 +00:00
nelsonb%netscape.com
41c640be48 Change form to inform user that serial number is a hex string.
git-svn-id: svn://10.0.0.236/trunk@108748 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:38:25 +00:00
sgehani%netscape.com
4b6c8e2cd3 Fix typo.
b=110961; r=morse; rs=dveditz


git-svn-id: svn://10.0.0.236/trunk@108747 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:33:47 +00:00
nelsonb%netscape.com
ad7c192d68 Some bug fixes found while debugging a different bug.
git-svn-id: svn://10.0.0.236/trunk@108746 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:33:26 +00:00
yokoyama%netscape.com
ae11650bfc Bug 86581
Check the UseDocFont Pref setting
before calling the font download
r=shanjian; /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108745 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:30:36 +00:00
sgehani%netscape.com
1b0b2a125b Make search results show up in search sidebar tab again.
b=110792; r=morse; sr=mscott


git-svn-id: svn://10.0.0.236/trunk@108744 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:30:30 +00:00
brendan%mozilla.org
1adc3b3656 Don't eagerly allocate fatlock freelist chunks; don't preallocate so much, and use a smaller global lock hashtable (109218, r=shaver/sr=jband).
git-svn-id: svn://10.0.0.236/trunk@108743 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:28:52 +00:00
yokoyama%netscape.com
90696cffcf Bug 110512
Remove the hard-coded charset
Read a default charset from Pref
/r=jbetak; /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108742 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:28:19 +00:00
mscott%netscape.com
50cb02258b Bug #111274 --> define the addresses object inside the while loop.
r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108741 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:22:43 +00:00
nhotta%netscape.com
268491531c Adding Georgian charset GEOSTD8, bug 107533, r=nhotta, sr=brendan.
git-svn-id: svn://10.0.0.236/trunk@108740 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:18:56 +00:00
rpotts%netscape.com
24d31a905f bug #99627 (r=adamlock@netscape.com). Improving the comments in preparation of freezing this interface...
git-svn-id: svn://10.0.0.236/trunk@108739 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:17:41 +00:00
chak%netscape.com
e75441b73e Fix for #90749 - MfcEmbed does not show the Form method part
r=adamlock, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108738 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:17:11 +00:00
chak%netscape.com
5241986e89 Fix for #82708 - Using Find doesn't alert user when completed searching
r=adamlock, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108737 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 23:11:36 +00:00
pschwartau%netscape.com
a4c56ba812 Removing two tests from the skip list because they have been removed from the repository.
git-svn-id: svn://10.0.0.236/trunk@108736 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 22:16:19 +00:00
sspitzer%netscape.com
a172f68aab ignore generated makefiles.
git-svn-id: svn://10.0.0.236/trunk@108735 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 22:07:10 +00:00
pschwartau%netscape.com
bc58cb1179 Removing test from repository. It contains very large blocks.
But because of the fix to bug 80981, these are no longer large enough
to trigger the internal error and exit code 3 that the test looked for.


git-svn-id: svn://10.0.0.236/trunk@108734 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:59:31 +00:00
bienvenu%netscape.com
17d28b6514 rest of fix for 111071 can't cancel out of imap password prompt, r=mscott, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108733 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:55:36 +00:00
sspitzer%netscape.com
9ee730a434 fix warning, add a comment. piggybacking on our carpool.
r/sr=no one


git-svn-id: svn://10.0.0.236/trunk@108732 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:53:57 +00:00
sspitzer%netscape.com
f91f9f2064 build changes for #110820
git-svn-id: svn://10.0.0.236/trunk@108731 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:53:26 +00:00
bienvenu%netscape.com
61cf694220 xpcomize mork and remove orkin layer from mork, r=naving, sr=sspitzer 110850
git-svn-id: svn://10.0.0.236/trunk@108730 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:52:12 +00:00
bienvenu%netscape.com
045f03e0f1 cache char set in folder info r=naving, sr=sspitzer 102806 and also show folder contents before folder finishes loading
git-svn-id: svn://10.0.0.236/trunk@108729 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:52:06 +00:00
bienvenu%netscape.com
72434773ff use xpcom ref-counting and comptrs now that mdb supports that r=naving, sr=sspizer 110850 (also fixed some more ref-counting bugs in ab code)
git-svn-id: svn://10.0.0.236/trunk@108728 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:52:00 +00:00
bienvenu%netscape.com
c8eebf1935 remove unused attribute from msg hdr r=naving, sr=sspitzer 110820
git-svn-id: svn://10.0.0.236/trunk@108727 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:51:42 +00:00
bienvenu%netscape.com
bd7ac1c4da use xpcom ref-counting and comptrs now that mdb supports that r=alecf, sr=sspitzer 110850
git-svn-id: svn://10.0.0.236/trunk@108726 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:51:38 +00:00
bienvenu%netscape.com
1b5cc553ab use xpcom add/release ref calls now that mork supports them 110850 reduce memory allocations when painting 110820 cache folder charset 102806 r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108725 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:51:34 +00:00
bienvenu%netscape.com
2f151caccc use xpcom add/release ref calls for mork objects now that mork supports it r=naving, sr=sspitzer 110850
git-svn-id: svn://10.0.0.236/trunk@108724 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:51:29 +00:00
jpierre%netscape.com
da95debbe0 Fix for 95264 - add more info in s/mime script
git-svn-id: svn://10.0.0.236/trunk@108723 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:37:12 +00:00
pschwartau%netscape.com
e27ea5dbad Skipping another test with a large switch() statement
git-svn-id: svn://10.0.0.236/trunk@108722 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:34:25 +00:00
sonja.mirtitsch%sun.com
a8a2f95ae3 removed the before and after context grep as a workaround for 97209
git-svn-id: svn://10.0.0.236/trunk@108721 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:19:14 +00:00
pschwartau%netscape.com
3341a1e9ef Initial add. Regression test for bug 80981.
git-svn-id: svn://10.0.0.236/trunk@108720 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 21:17:31 +00:00
nelsonb%netscape.com
0b78f800ea Change the behavior of the -list <module> option so that it doesn't stop
at the first error it encounters when looping through the slots, and so
that it displays the slot info even if it cannot get token info. 111075


git-svn-id: svn://10.0.0.236/trunk@108719 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 20:52:37 +00:00
justdave%syndicomm.com
a159436d81 Fix for bug 99864: consistant use of "product" vs "program"
Patch by Josh Soref <timeless@mac.com>
r= dkl, justdave


git-svn-id: svn://10.0.0.236/trunk@108715 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 19:56:28 +00:00
sspitzer%netscape.com
ddb9624bc4 fix for smoketest blocker bug #111242. menus not doing anything.
patch by pink.


git-svn-id: svn://10.0.0.236/trunk@108713 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 19:40:17 +00:00
leaf%mozilla.org
6ef4f6a39c Automated update
git-svn-id: svn://10.0.0.236/trunk@108712 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 19:13:03 +00:00
seawood%netscape.com
e95f8cecee Restoring STDC_HEADERS define for os/2 since the the standard autoconf test macro doesn't seem to work.
Fixing tinderbox bustage


git-svn-id: svn://10.0.0.236/trunk@108711 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 19:10:44 +00:00
dinglis%qnx.com
fe679ddfe9 -not part of build-
added NOTIFY flag to drawing region.


git-svn-id: svn://10.0.0.236/trunk@108710 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 18:53:23 +00:00
relyea%netscape.com
e31243d81f changes for PSM to compile against NSS shared libraries.
Move SSL and S/MIME to the new common MAPFILE usage


git-svn-id: svn://10.0.0.236/trunk@108708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 18:00:28 +00:00
nboyd%atg.com
80ec4cef5c Hi,
I'm working on a project which uses rhino. I wanted to have finer
control over class generation and saving so I've done some patching
and clean up on the current rhino tip.

The biggest change I've made is the replacement of ClassOutput with
ClassRepository that has the single method:

    public boolean storeClass(String className, byte[] classBytes,
                           boolean isTopLevel) throws IOException;

This interface allows any arbitary storage method, such as a
Hashtable/Map. In addition it also allows you to specify whether a
class should be loaded, via returning true or false.  You can still use
ClassOutput as I've coded an internal wrapper.

With this interface it has also been possible to strip out the file
saving code from Codegen and OptClassNameHelper.  The file
saving code is now an inner class FileClassRepository in Context. As
a consequence of this  I've stripped out some methods from ClassNameHelper.
The resulting code is much more cleaner then before hand and everything
still works as per usual.

Other small additions are:
  o  Annonymous functions are now named class$1 instead of class1
  o  get/setClassName added to ClassNameHelper exposed in Context.

My final thoughts are, since all methods in ClassNameHelper except reset()
are now exposed whould n't it be much more "cleaner" to simply to some
how work around to eliminate reset() and provide getClassNameHelper()
via Context?  You could then remove the numerous ClassNameHelper shadow
methods from Context.

Likewise, FileClassRepository could be made a public class very easily
and combined with the above result in a dozen or so less public methods in
Context.

Anyway, the changes can be found on http://www.cins.co.uk/rhino.zip

Hope it is of use to some

Kemal Bayram <rhino@cins.co.uk>


git-svn-id: svn://10.0.0.236/trunk@108706 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 17:12:57 +00:00
timeless%mac.com
7560074afe Bugzilla Bug 93754 describe should be #directable
r=justdave,dkl


git-svn-id: svn://10.0.0.236/trunk@108705 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 16:44:38 +00:00
bienvenu%netscape.com
05a6ca6bac remove unused code, r=naving, sr=sspitzer part of general footprint bug 110820
git-svn-id: svn://10.0.0.236/trunk@108704 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 15:51:39 +00:00
bienvenu%netscape.com
c08d46ed5f fixing #ifdef debug me code, no bug or reviewer
git-svn-id: svn://10.0.0.236/trunk@108703 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 15:42:56 +00:00
morse%netscape.com
2c83d20b7b bug 110994, doubleclicking does not prefill individual form fields, r=fabian, sr=jst
git-svn-id: svn://10.0.0.236/trunk@108702 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 15:14:36 +00:00
karnaze%netscape.com
753ff4b844 new regression test not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@108701 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:46:39 +00:00
karnaze%netscape.com
eb086b139a bug 102784 - only start a row on another page if it doesn't fit on the current one if there is less than 5% of the current page space left. sr=attinasi, r=bernd
git-svn-id: svn://10.0.0.236/trunk@108700 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:42:00 +00:00
karnaze%netscape.com
52eaf06781 bug 30692 (additional patch) - deal width percent height based contents inside a table cell during an incremental reflow. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@108699 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:38:40 +00:00
timeless%mac.com
211df66276 Bugzilla Bug 110643ÿ[xlib] Minor Xlib toolkit cleanup ...
work by Roland.Mainz@informatik.med.uni-giessen.de (de facto module owner)
r=timeless


git-svn-id: svn://10.0.0.236/trunk@108698 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:33:08 +00:00
kin%netscape.com
fd1f07fa3a Fix for bug #71979: <br><hr> inside link displays additional hr upon each mouseover
Modified FindFrameWithContent() to skip over sibling :before pseudo frames when
looking for the primary frame for non-splittable-element aContent.

r=dbaron@fas.harvard.edu   sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108697 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:24:59 +00:00
kin%netscape.com
e690a4a290 Fix for bug #74383: nsBoxToBlockAdaptor::Reflow() prevents TextArea contents from being reflowed
bug #100727:Javascript to modify textarea causes field to go blank/unchangeable
        bug #101122: Textarea sometimes not refreshing correctly (blank space after delete sel., etc.)
        bug #107973:Cut and paste in forms is broken

Modified Reflow() so that it allows a reflow to happen during a ResizeReflow
request when the adaptor or it's children are dirty.

r=evaughan@netscape.com  sr=attinasi@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108696 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 14:18:26 +00:00
jst%netscape.com
6cef83e2c7 Removing dead code.
git-svn-id: svn://10.0.0.236/trunk@108695 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 13:06:18 +00:00
seawood%netscape.com
44232b1a59 NSS only copies dbm32.lib to dbm.lib during the 'install' phase so do the copying from PSM during the 'libs' phase instead.
Fixing tinderbox bustage.


git-svn-id: svn://10.0.0.236/trunk@108694 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 11:45:34 +00:00
hewitt%netscape.com
2872758e55 83457 - Text overflow handling of URL bar search popup, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108693 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 11:17:38 +00:00
hewitt%netscape.com
99293006d2 110612 - Urlbar history dropdown has no border in Classic, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108692 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 11:16:43 +00:00
hewitt%netscape.com
7bb2ae8de3 96154 - Remove class=outlinercol-header outlinercol-inset-header from outliner, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108691 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 11:00:22 +00:00
seawood%netscape.com
cc2b0abcad This old ruleset breaks when CC is a full path. Removing to fix shrike tinderbox bustage.
git-svn-id: svn://10.0.0.236/trunk@108690 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 10:55:56 +00:00
seawood%netscape.com
f94d434ea3 Add check for STDC_HEADERS. Should fix QNX 6.0 bustage.
Bug #107618


git-svn-id: svn://10.0.0.236/trunk@108689 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 10:51:21 +00:00
hewitt%netscape.com
e71fe61110 110033 - outliner not invalidating outliner when the columns get hidden or shown, patch=varga@utcru.sk, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108688 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 10:38:40 +00:00
pchen%netscape.com
d5bd7ab4fa bug 109569, r=fabian, sr=hewitt, remove onkeypress for textbox
git-svn-id: svn://10.0.0.236/trunk@108687 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 10:16:36 +00:00
pchen%netscape.com
6e2759be28 bug 109569, r=fabian, sr=hewitt, need to get ok button via document.documentElement.getButton("accept)"
git-svn-id: svn://10.0.0.236/trunk@108686 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 10:16:34 +00:00
cls%seawood.org
230f0645f3 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108685 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:53:22 +00:00
seawood%netscape.com
889469fd27 Rename 'install' build phase to 'libs'.
Bug #56601 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108684 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:49:41 +00:00
jst%netscape.com
7f9f34333a Checking in Fabian's <hidday@geocities.com> patch for bug 6052. Make element.nodeValue return null in stead of empty string. sr=jst@netscape.com, no reviewer, trivial change
git-svn-id: svn://10.0.0.236/trunk@108683 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:20:52 +00:00
jst%netscape.com
b2781576cf Fixing bug 110924. Speeding up HTMLContentSink::AddAttributes() and nsGenericHTMLElement::IsEventName(). r=bzbarsky@mit.edu, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108682 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 09:10:41 +00:00
seawood%netscape.com
f83af44959 Renaming 'install' build phase to 'libs'
Bug #56601 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108681 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 08:55:59 +00:00
justdave%syndicomm.com
e0e98de5e0 Fix for bug 102141: SECURITY FIX - the Product popup menu on the show_bug form listed all products, even if the user didn't
have access to all of them.  It now only shows products the user has access to (and the product the bug is in, if the user is
viewing it because of some other override)
Patch by George Hotelling <george.hotelling@iconideas.com> and Dave Miller <justdave@syndicomm.com>
r= bbaetz, caillon


git-svn-id: svn://10.0.0.236/trunk@108680 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 08:31:59 +00:00
matty%chariot.net.au
92a2b2029a Bug 110276:SQL error in globals.pl.
Patch by me, r=bbaetz,caillon.


git-svn-id: svn://10.0.0.236/trunk@108678 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 08:09:32 +00:00
hewitt%netscape.com
98682e83a2 107276 - Sometimes the Close Tab contextual menu operation has no effect., r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108677 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 07:34:46 +00:00
hewitt%netscape.com
784435b7cd 104993 - unable to select item in xul menulist [popup list/combobox] in dialogs, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108675 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 07:23:21 +00:00
seawood%netscape.com
00caaa977c Add $(SUBMAKEFILES) as a dependency for the default toplevel target so that submakefiles (& the toplevel makefile) are regen'd automatically.
git-svn-id: svn://10.0.0.236/trunk@108673 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 07:10:52 +00:00
hewitt%netscape.com
5bb1ffc78a 66441 - Get rid of gray_*_splitter from utilityOverlay, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108672 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 06:59:57 +00:00
hewitt%netscape.com
99a8392be6 95159 - autocomplete preferences ambiguous, r=sgehani, sr=hewitt, patch=diego@biurrun.de
git-svn-id: svn://10.0.0.236/trunk@108670 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 06:48:14 +00:00
bbaetz%cs.mcgill.ca
1bd8bea0e7 Bug 83517 - add a setTranslation method. patch by
alex.fritze@crocodile-clips.com, r=pavlov, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108667 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 04:10:31 +00:00
mscott%netscape.com
26cdd45edf Bug #110543 --> add smime UI to message display
r=kai
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108665 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 03:57:35 +00:00
dbaron%fas.harvard.edu
b42386ef84 Bug 109431: Speed up ID selector matching, mainly by using nsDependentString instead of nsAutoString. Patch by rjesup and me. Bug 110815: Avoid an unneeded QI from nsICSSStyleRule to nsIStyleRule, which it inherits. r=jag sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108664 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 03:30:44 +00:00
dbaron%fas.harvard.edu
eb89cf17f8 Speed up HTMLAttributesImpl::HasClass, mostly by using nsDependentString instead of nsAutoString. Patch by rjesup and me. r=jag sr=jst b=109416
git-svn-id: svn://10.0.0.236/trunk@108663 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 03:27:14 +00:00
bzbarsky%mit.edu
93de6ccf63 Fix scrolling to a frame when the frame is in an abs. pos. element
that's not the scrollable view.  Bug 111081, r=jkeiser, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108656 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 03:06:19 +00:00
sonja.mirtitsch%sun.com
aaefdbd1db bugfixes, regarding a daily build directory insider the daily build...
git-svn-id: svn://10.0.0.236/trunk@108655 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 02:36:33 +00:00
bienvenu%netscape.com
33209e43dc no longer call SetRecipientsIsNewsgroup - we weren't using it, r=naving, sr=sspitzer 110820
git-svn-id: svn://10.0.0.236/trunk@108654 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 01:57:53 +00:00
bienvenu%netscape.com
c979aa25c5 fix going offline from compose window, patch from sspitzer, r/sr = me 111087
git-svn-id: svn://10.0.0.236/trunk@108653 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 01:48:50 +00:00
bienvenu%netscape.com
3649e630b2 fix cancelling from imap password prompt r=sspitzer, sr=mscott 111071
git-svn-id: svn://10.0.0.236/trunk@108652 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 01:45:59 +00:00
shanjian%netscape.com
5a91a5ddfc #62929 psm charset detector should tolerate char '\0'
r=yokoyama sr=brendan


git-svn-id: svn://10.0.0.236/trunk@108651 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:58:48 +00:00
mstoltz%netscape.com
6a5e7d6cce Bug 94551 - HTML-escape HTTP header data written to about:cache-entry pages.
r=bbaetz, gagan, sr=darin


git-svn-id: svn://10.0.0.236/trunk@108650 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:49:17 +00:00
rbs%maths.uq.edu.au
3c9422ec4f Re-enable my fix
git-svn-id: svn://10.0.0.236/trunk@108649 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:43:27 +00:00
dbaron%fas.harvard.edu
82ce2b26af Tweak ifdefs to fix ICOs for Mach-O build. b=109165 rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@108648 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:27:01 +00:00
rbs%maths.uq.edu.au
bea727c0c1 Disable the registration codefor now as it causes TB to turn orange.
git-svn-id: svn://10.0.0.236/trunk@108647 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:25:24 +00:00
pavlov%netscape.com
65f9cd59fa better hack for crash due to recent versions of gcc's poor optimization + inlining skills. bug 106891. patch from simm0@ii.net. r=pavlov sr=brendan
git-svn-id: svn://10.0.0.236/trunk@108646 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:16:21 +00:00
hyatt%netscape.com
45ad1c71e2 Collapse chrome reg. r=dp, sr=brendan, 109488
git-svn-id: svn://10.0.0.236/trunk@108645 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-21 00:12:42 +00:00
seawood%netscape.com
e7bc18fc7f Bump optimization level for mkdepend on Solaris to -fast
Bug #87585 r=Roland.Mainz@informatik.med.uni-giessen.de (Roland Mainz)


git-svn-id: svn://10.0.0.236/trunk@108643 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:49:06 +00:00
brendan%mozilla.org
5655c0ae34 Thanks to scole@planetweb.com, no more un-ECMA error for /* in a /**/ comment (110286, r=khanson, sr=brendan).
git-svn-id: svn://10.0.0.236/trunk@108642 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:35:45 +00:00
dbaron%fas.harvard.edu
1ced18945d Allow nsTraceMalloc to build even when cplus_demangle isn't available (should fix bustage on Brad's tinderbox). Also use NS_PTR_TO_INT32 per Brendan's review comments on bug 106352.
git-svn-id: svn://10.0.0.236/trunk@108641 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:32:17 +00:00
mstoltz%netscape.com
d5db2db548 bug 105705, take 2: Replace global property security-check optimization
rewritten more conservatively, merge doCheckReadAccess and doCheckWriteAccess,
and pass real property names into the security manager instead of "scriptglobals."
r=brendan, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@108640 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:15:32 +00:00
peterlubczynski%netscape.com
6c84cd2102 Stop including Realplayer in 4.x plugin scan bug 110916 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108639 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:06:50 +00:00
andreww%netscape.com
426e7eb949 bug 110526 r=shliang sr=hewitt. mac classic sidebar splitter too narrow for thumb.
git-svn-id: svn://10.0.0.236/trunk@108637 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 23:02:09 +00:00
rbs%maths.uq.edu.au
6da04cb9b2 Attempt to fix orangeness - move the registration from Init() to CommonInit()
git-svn-id: svn://10.0.0.236/trunk@108636 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:57:07 +00:00
attinasi%netscape.com
cae55bbe7b Stop stripping whitespace from image map name. b=87050 r=kmcclusk sr=attinasi (checked in for David Einstein)
git-svn-id: svn://10.0.0.236/trunk@108635 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:53:59 +00:00
mscott%netscape.com
f8655c6105 Bug #110905 --> remove code to enumerate over parsed header results.
allow the ability to get all of the results all at once in a set of
arrays. This improves message display performance by reducing the number
of round trips between the JS thread and the UI thread.
r=ducarroz
sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108634 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:53:47 +00:00
bienvenu%netscape.com
0c94dbdc77 fix crash after entering password for web mail r=sspitzer, sr=mscott bugscape 11055
git-svn-id: svn://10.0.0.236/trunk@108633 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:36:15 +00:00
attinasi%netscape.com
e950ed88d6 Moving loading and broken image icons to /res b=110384 r=adamlock,sfraser sr=sfraser,waterson
git-svn-id: svn://10.0.0.236/trunk@108630 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:24:33 +00:00
attinasi%netscape.com
db3134a2a8 Loading and broken image icons moving to /res b=110384 r=-adamlock,sfraser sr=sfraser,waterson
git-svn-id: svn://10.0.0.236/trunk@108629 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:23:34 +00:00
attinasi%netscape.com
836d14a60f Moving loading and broken image icons to /res and adding to embedding dists. b=110384 r=adamlock,sfraser sr=sfraser,waterson
git-svn-id: svn://10.0.0.236/trunk@108628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:21:59 +00:00
attinasi%netscape.com
e41d8f0647 Moving loading and broken image icons to /res for embedding. b=110384 r=adamlock,sfraser sr=sfraser,waterson
git-svn-id: svn://10.0.0.236/trunk@108627 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 22:21:14 +00:00
dp%netscape.com
77f3a19327 Function timers. r=sgehani, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108626 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 21:37:27 +00:00
brendan%mozilla.org
fa065f1652 Better fix than 0.9.6 minimal fix for NUL-termination assumption in replace (108832, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@108625 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 21:26:33 +00:00
naving%netscape.com
47e00140bb 110366 r/sr=darin, addref the reader before using it so that it doesn't get released from under us.
git-svn-id: svn://10.0.0.236/trunk@108624 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 21:09:14 +00:00
darin%netscape.com
231a36a679 backing out last checkin for bug 110418 a=leaf
git-svn-id: svn://10.0.0.236/trunk@108622 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:41:52 +00:00
barnboy%trilobyte.net
66a77561a4 Added blurb about unified diffs.
git-svn-id: svn://10.0.0.236/trunk@108621 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:16:24 +00:00
sfraser%netscape.com
86868e129c Fix the flags passed to nsICacheSession::CreateSession; bug 110114. r=pavlov, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@108620 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:15:19 +00:00
radha%netscape.com
2e83f2071a Fix for bug # 106994. - Remove redundant code in nsDocShell to acquire handle to SH in the root docshell r=adamlock sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@108619 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:14:02 +00:00
sfraser%netscape.com
fc238c8623 Remove nsMacMessageSink.cpp from the widget module, since it is already in WidgetSupport. Bug 110109 r=pinkerton, sr=beard
git-svn-id: svn://10.0.0.236/trunk@108618 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:12:21 +00:00
barnboy%trilobyte.net
9cd514d2f1 Taint mode note.
git-svn-id: svn://10.0.0.236/trunk@108617 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:11:41 +00:00
barnboy%trilobyte.net
7b8146183a Added Javascript, Cookies, and Templatization requirements to Hacking
Bugzilla.


git-svn-id: svn://10.0.0.236/trunk@108616 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:09:06 +00:00
rpotts%netscape.com
0bb079d92b bug #110179 (r=danm@netscape.com, sr=jst@netscape.com) The domwindowopened notification should *not* be fired while the window watcher is holding onto its internal lock.
git-svn-id: svn://10.0.0.236/trunk@108615 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 20:05:52 +00:00
barnboy%trilobyte.net
8c2295b971 Added tip about checking sanitycheck.cgi if you make schema changes,
per bug 98049.


git-svn-id: svn://10.0.0.236/trunk@108613 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:56:31 +00:00
rbs%maths.uq.edu.au
5854031c59 Compact the font cache in low-memory situations or when font handles are running out. b=109974, r=shanjian, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108612 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:47:28 +00:00
colinp%oeone.com
b01444f7bc removed more unecessary files
git-svn-id: svn://10.0.0.236/trunk@108606 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:19:53 +00:00
radha%netscape.com
f413809f4a Fix for bug # 103050. Wrong index value passed for OnHistoryGotoIndex(). r=chak sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108604 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:14:11 +00:00
colinp%oeone.com
f8080e8c2f removed unecessary graphics
git-svn-id: svn://10.0.0.236/trunk@108602 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:06:52 +00:00
colinp%oeone.com
67ead90dbb removing unecessary graphics
git-svn-id: svn://10.0.0.236/trunk@108601 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:06:28 +00:00
colinp%oeone.com
0fa3805ee1 new graphic for topbar
git-svn-id: svn://10.0.0.236/trunk@108600 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 19:03:52 +00:00
andreww%netscape.com
4a1a9e045c bug 100528 r=shliang sr=hewitt not enough padding in mac classic button labels
git-svn-id: svn://10.0.0.236/trunk@108599 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:56:35 +00:00
relyea%netscape.com
32ce05f926 More PSM fixes:
clean up of the escape adding string code.
   Code to keep cert->trust in sync with nscert->trust in various situations.
   Code to allow old version of built-ins to continue to work.
   Implement TrustDomain_TraverseCertificates so that PK11_ListCerts will work.


git-svn-id: svn://10.0.0.236/trunk@108596 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:28:49 +00:00
barnboy%trilobyte.net
5c12496ebe Removed references to bugzilla.mozilla.org so we can avoid
spurious bug postings.  However, this file will need some significant
treatment for 2.16 release since the query.cgi interface has changed.


git-svn-id: svn://10.0.0.236/trunk@108595 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:22:30 +00:00
justdave%syndicomm.com
b1524a2399 Backing out previous checkin, this file is distributed with Bugzilla, we don't need mozilla-specific information in it.
git-svn-id: svn://10.0.0.236/trunk@108594 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:11:05 +00:00
dp%netscape.com
0b1d41cb87 Track dlls loaded
git-svn-id: svn://10.0.0.236/trunk@108593 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:04:11 +00:00
dp%netscape.com
b7c27006fb Print percentage of total for all cumulative timers
git-svn-id: svn://10.0.0.236/trunk@108592 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 18:03:16 +00:00
barnboy%trilobyte.net
f3a9f9a24c Added one liner mentioning that mozilla.org provides only one vote
per bug.


git-svn-id: svn://10.0.0.236/trunk@108591 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 17:46:14 +00:00
barnboy%trilobyte.net
93afffd7ff Modified Win32 notes regarding system() calls per bug 99595.
git-svn-id: svn://10.0.0.236/trunk@108590 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 17:26:45 +00:00
barnboy%trilobyte.net
64144297d3 Fixed CPAN locations per bug 97582.
git-svn-id: svn://10.0.0.236/trunk@108589 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 17:18:03 +00:00
barnboy%trilobyte.net
a0d50fc6a0 Added bit about needing proper <Directory> permissions in order
for .htaccess to function.  See bug 97668.


git-svn-id: svn://10.0.0.236/trunk@108588 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 17:09:38 +00:00
barnboy%trilobyte.net
aa0ea6b3f9 Changed openjade compilation instructions to match new commands
required by XML conversion of the Guide.


git-svn-id: svn://10.0.0.236/trunk@108586 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 16:41:23 +00:00
barnboy%trilobyte.net
2049c9f6b5 Initial conversion to XML format from SGML.
Note this is a work-in-progress.  It compiles cleanly, but I am not yet
submitting compiled HTML and text.
There is one notable problem: nsgmls barfs on the <imagedata> tag in
database.sgml during validation.  openjade handles it fine. Weird.


git-svn-id: svn://10.0.0.236/trunk@108585 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 16:36:28 +00:00
bernd.mielke%snafu.de
f0c5a2e645 remove remote access from regression testcases - not part of the build
git-svn-id: svn://10.0.0.236/trunk@108576 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 15:26:21 +00:00
colinp%oeone.com
3e1e531bf4 removed unnecessary graphics after localization
git-svn-id: svn://10.0.0.236/trunk@108575 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 14:13:06 +00:00
alex.fritze%crocodile-clips.com
5f5d4c214d Make libart compile on Windows.
NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@108573 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 10:27:00 +00:00
brade%netscape.com
3dacb6be51 remove string bundle code from Init; add IsSupportedTextType to api :-( and change callers; add DoAfterSave method to api; bug #107636 (r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108571 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:54:37 +00:00
brade%netscape.com
c25eccdd52 remove IsSupportedTextType since it is now part of idl (bug #107636 r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108570 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:54:21 +00:00
brade%netscape.com
72504499ae add doAfterSave and isSupportedTextType so they can be called from JS (bug #107636 r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108569 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:54:01 +00:00
brade%netscape.com
83743e9b5a Change editorshell string calls to GetString (JS utility function); use new JS save function for bug #107636 (r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108568 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:43:34 +00:00
brade%netscape.com
501ed6f04a Change editorshell string calls to GetString (JS utility function); fix JS warning; add saving and related functions for bug #107636 (r=kin; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108567 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 09:43:14 +00:00
joki%netscape.com
01dbc6e3c0 Fix for 108104, prevent key/mouse events from untrusted scripts to spoof UI into thinking it got real native events. r:saari,sr:jst
git-svn-id: svn://10.0.0.236/trunk@108566 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 08:40:54 +00:00
leaf%mozilla.org
f1cd5d336f Automated update
git-svn-id: svn://10.0.0.236/trunk@108565 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 08:28:00 +00:00
seawood%netscape.com
0b60922ed0 Allow specific extensions to be disabled by doing --enable-extensions=all,-ext_I_do_not_want
Bug #110900 r=pavlov


git-svn-id: svn://10.0.0.236/trunk@108564 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 08:17:13 +00:00
stephend%netscape.com
732bb4c901 Partial fix for bug 90691. 'Document: Done' is shown in the statusbar, prior to 'Done Loading Page' (which is the remaining portion of this bug, but is called from editor.xul) r=jglick/hwaara, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108563 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 08:03:50 +00:00
mcafee%netscape.com
ca24d1c3fa Properly adding on B for bytes units
git-svn-id: svn://10.0.0.236/trunk@108562 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 07:20:51 +00:00
mcafee%netscape.com
a5f504f183 Removing server-side pageloader data reporting, use client-side scrape mechanism
git-svn-id: svn://10.0.0.236/trunk@108561 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 06:30:18 +00:00
mcafee%netscape.com
cb6752f8c1 Remove server-side data reporting for pageloader test, use client-based scrape mechanism now.
git-svn-id: svn://10.0.0.236/trunk@108560 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 06:27:33 +00:00
mcafee%netscape.com
21f5e9477c bloat.pl not needed, use scrape.pl
git-svn-id: svn://10.0.0.236/trunk@108559 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 05:42:46 +00:00
naving%netscape.com
7296503126 110693 r=darin sr=bienvenu. Code clean in nsPop3Service::BuildPop3Url.
git-svn-id: svn://10.0.0.236/trunk@108558 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 05:31:31 +00:00
mcafee%netscape.com
d5acb001b9 Removing old bloat data reporting stuff, use scrape reporting now.
git-svn-id: svn://10.0.0.236/trunk@108557 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 05:27:29 +00:00
brendan%mozilla.org
989357e2ad Don't warn or 'correct' = to == in a condition unless the right operand has greater precedence than == (106244, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@108556 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 05:20:57 +00:00
bzbarsky%mit.edu
b4a448372b Fix variable name to make "Wrap Long Lines" pref work correctly once
again.  Bug 110594, r=timeless, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108555 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 05:02:15 +00:00
seawood%netscape.com
a7fa139578 For Irix CC builds, change the default optimization flags to -O -g.
Lame workaround for bug 92099. r=bbaetz


git-svn-id: svn://10.0.0.236/trunk@108552 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 04:22:05 +00:00
mcafee%netscape.com
88bfddd5bb no more startup.dat
git-svn-id: svn://10.0.0.236/trunk@108551 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:50:25 +00:00
mcafee%netscape.com
518aa115bf startup.pl should use scrape.pl mechanism now.
git-svn-id: svn://10.0.0.236/trunk@108550 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:47:05 +00:00
mcafee%netscape.com
74f0dd9e37 startup data goes to scrapt.dat now.
git-svn-id: svn://10.0.0.236/trunk@108549 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:43:27 +00:00
sgehani%netscape.com
73bcd89098 Implemented resetTimer().
b=106551; r=dp; sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@108548 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:33:11 +00:00
mscott%netscape.com
ba16eef595 Bug #109929 --> cache email address nodes in the multi toggle email address widget. This helps with
message display performance.
r=ssu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108547 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:29:27 +00:00
sspitzer%netscape.com
34c55a5114 removing this 2 megabyte file from the tree. while it's not part of the build
we shouldn't make everyone check it out.  the mozilla source is big enough.


git-svn-id: svn://10.0.0.236/trunk@108546 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:27:20 +00:00
sgehani%netscape.com
edb4d3210d Added brandShortName.
b=1109912; r=morse; rs=alecf


git-svn-id: svn://10.0.0.236/trunk@108545 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:26:08 +00:00
ducarroz%netscape.com
50ce12894c Fix for bug 108731. Send page must use the message compose service in order to be able to use the recycled compose window. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@108544 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:12:32 +00:00
ducarroz%netscape.com
550526bfd6 Fix for bug 108731. Send Page and Send Link must use to message compose service in order to be able to use a recycled window. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@108543 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 03:09:41 +00:00
myk%mozilla.org
cb97f8190d Fix for bug 109240: fixes the regression that changed the way comments regarding attachment creation are formatted.
Patch by Jake <jake@acutex.net>.
r=myk@mozilla.org, no second review needed.


git-svn-id: svn://10.0.0.236/trunk@108542 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:59:55 +00:00
rginda%netscape.com
db9ee285d0 bug 110903, patch=brendan, sr=shaver, r=me
Call new script hook for scripts created via xdr.


git-svn-id: svn://10.0.0.236/trunk@108541 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:47:41 +00:00
brendan%mozilla.org
93edeeffb3 Don't ass-u-me fp->argv => fp->fun (109635, sr=shaver/jband).
git-svn-id: svn://10.0.0.236/trunk@108539 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:37:01 +00:00
darin%netscape.com
8b329d58a4 removing dead/unused files
git-svn-id: svn://10.0.0.236/trunk@108538 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:31:47 +00:00
darin%netscape.com
0cc2f10f19 fixing comment which references nsStdURL
git-svn-id: svn://10.0.0.236/trunk@108537 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:29:47 +00:00
aaronl%netscape.com
aa5543cad0 Bug 109851. Fix extra accessible events being generated. sr=brendan, r=jgaunt
git-svn-id: svn://10.0.0.236/trunk@108536 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:29:14 +00:00
darin%netscape.com
5908cb604b removing stale reference to nsStdURL.h
git-svn-id: svn://10.0.0.236/trunk@108535 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:29:07 +00:00
colinp%oeone.com
fdfce14992 fix to localize timepicker
git-svn-id: svn://10.0.0.236/trunk@108534 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:27:53 +00:00
darin%netscape.com
51d0c5101d removing old files
git-svn-id: svn://10.0.0.236/trunk@108533 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:27:19 +00:00
peterlubczynski%netscape.com
ec9e2b75cf Code cleanup. bug 109039 r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@108530 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:17:53 +00:00
peterlubczynski%netscape.com
f8d62c16c5 Fixing using correct attribute or parameter for Java based on tag type, fixes mayscript for Liveconnect. bug 109039 r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@108529 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:17:21 +00:00
aaronl%netscape.com
ae90321739 Bug 109851, bug 108629, bug 109921, bug 109977, bug 109153, bug 109187, bug 109213, bug 109221. Check in latest XUL accessibility support - menus, <colorpicker>, <progressmeter>, <groupbox>, mixed states for checkboxes, buttons that can be 'checked' ie pressed down, fixes extra MSAA events being generated, couldn't see HTML content
git-svn-id: svn://10.0.0.236/trunk@108528 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:05:26 +00:00
jgaunt%netscape.com
b3eaafdf32 mcp files for bug 108629 and bug 109221 latest round of accessibility support
r=jgaunt
sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@108527 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:03:03 +00:00
colinp%oeone.com
e34475d6e1 locaized the unifinder buttons
git-svn-id: svn://10.0.0.236/trunk@108526 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 02:00:23 +00:00
zach%zachlipton.com
a8d489f851 Fix for bug 107120, templates/default/global/header has invalid HTML.
Patch removes a <meta> tag as per bug 38856.

Patch by David D. Kilzer <mailto:ddkilzer@theracingworld.com>.
r1=Christopher Aillon <mailto:caillon@returnzero.com>. No 2nd review
required as per caillon.


git-svn-id: svn://10.0.0.236/trunk@108525 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 01:59:57 +00:00
karnaze%netscape.com
a14a6284c9 new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@108524 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 01:27:31 +00:00
karnaze%netscape.com
79395becd5 bug 110566 - get correct cell spacing value when calculating pct height basis on table. sr=attinasi, r=alexsavulov.
git-svn-id: svn://10.0.0.236/trunk@108523 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 01:21:18 +00:00
peterlubczynski%netscape.com
879a121601 Fix for not weeding out plugin duplicates because we were only checking the filename. Now, do a deep comparison of the name, description, and order of mime types. This will prevent two plugins with these same properties but with diferent names from loading. bug 110781 r=av sr=beard
git-svn-id: svn://10.0.0.236/trunk@108522 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 01:19:33 +00:00
sonja.mirtitsch%sun.com
6389aa4cc6 fixed several PC solaris PATH problems - build problems
git-svn-id: svn://10.0.0.236/trunk@108519 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 01:06:41 +00:00
karnaze%netscape.com
0fcba4eb02 bug 110523 - Get the correct starting row index when inserting a new row in a tbody that is not the first one. sr=atinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@108515 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 00:58:53 +00:00
bienvenu%netscape.com
8006f0dd31 change code inside #ifdef DEBUG me so it will compile, no bug or reviewer
git-svn-id: svn://10.0.0.236/trunk@108514 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 00:44:49 +00:00
colinp%oeone.com
c16cad780b fix for localization of calendar month view
git-svn-id: svn://10.0.0.236/trunk@108513 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 00:42:21 +00:00
darin%netscape.com
4bc579526e another patch for bug 110418; r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108512 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-20 00:17:37 +00:00
akkana%netscape.com
bea70f253a 50131: map full-pathname argument to file: url. r=mcafee sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108511 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 23:39:35 +00:00
varada%netscape.com
22d4318438 adding Inbox for bloat tests:NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@108510 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 23:36:42 +00:00
dbaron%fas.harvard.edu
92961e9e41 Add BloatTest2 option for trace-malloc leak/bloat stats test, and fix up a few more things with that test. b=84831 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@108509 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 23:29:48 +00:00
andreww%netscape.com
cf1171dac4 bugzilla 109174, r=shliang sr=hewitt border on sidebar under status bar.
git-svn-id: svn://10.0.0.236/trunk@108508 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 23:15:42 +00:00
timeless%mac.com
2812a0a4a1 Bugzilla Bug 108271 Support RLE compression and bitfields for the BMP Decoder
This patch adds bitfields support.
Only 5-5-5 and 5-6-5 16-bit BMPs and 8-8-8 32-bit BMPs are supported;
patch by cbiesinger@web.de r=pavlov, sr=tor


git-svn-id: svn://10.0.0.236/trunk@108507 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 23:15:27 +00:00
gordon%netscape.com
16ff7e9355 Fix bug 110327 "0775 is bad mask for for cache", checkin patch for timeless@mac.com, r=gordon, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@108505 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:48:30 +00:00
rginda%netscape.com
cb65522af8 bug 110620, r=aaronl, sr=brendan, a=blizzard/drivers
add null pointer check to avoid crash when we're called in unexpected ways.


git-svn-id: svn://10.0.0.236/trunk@108504 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:44:14 +00:00
bryner%netscape.com
81bedc058e Checking in for Roland.Mainz@inforamtik.med.uni-giessen.de - bug 110628, tune xlib gc cache size. r=timeless, sr=scc.
git-svn-id: svn://10.0.0.236/trunk@108503 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:37:51 +00:00
colinp%oeone.com
ddbd6572b9 added mozilla toolbars and statusbar
git-svn-id: svn://10.0.0.236/trunk@108502 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:25:41 +00:00
bbaetz%cs.mcgill.ca
4e13352a31 Don't use gen_art_config - supply art_config.h instead (made using nspr).
Makes the build stuff easier.


git-svn-id: svn://10.0.0.236/trunk@108499 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:12:29 +00:00
sgehani%netscape.com
5ea8e984cd Fix Debug|Verification|JavaScript menu item link.
b=56848; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108498 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:11:01 +00:00
mscott%netscape.com
a17efdd1a9 Bug #109923 --> register messenger-smime chrome
git-svn-id: svn://10.0.0.236/trunk@108497 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 22:01:49 +00:00
locka%iol.ie
1edd6dd9f4 Restore old URI space trimming code to avoid potential regression. bug 110081 r=pchen@netscape.com sr=ben@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108496 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:48:31 +00:00
bienvenu%netscape.com
4fb8406450 fix leak of imap password, r=naving, sr=sspitzer 11065
git-svn-id: svn://10.0.0.236/trunk@108495 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:47:04 +00:00
bienvenu%netscape.com
e77937c603 fix leak of progress string (and fix assert when compact fires with biff) r=naving, sr=sspitzer 11061
git-svn-id: svn://10.0.0.236/trunk@108494 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:45:12 +00:00
bienvenu%netscape.com
cafc06fdbb fix MimeInlineText leaking encoder and decoder for every message read, r=ducarroz, sr=sspitzer 11066
git-svn-id: svn://10.0.0.236/trunk@108493 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:42:16 +00:00
bienvenu%netscape.com
b68588e979 fix leak of identity object when editing drafts r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108492 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:40:33 +00:00
locka%iol.ie
4026617021 Fix for assertions happening on every new docshell. b=110685 r=brade@netscape.com sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108491 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:39:40 +00:00
nhotta%netscape.com
98b61e53df Change to notify S/MIME charset properly, it needs to have a separte code because the parsing is delayed for S/MIME
and the common code in mimemult.cpp cannot get the charset because of the delay,
bug 110030, r=ducarroz, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@108490 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:31:11 +00:00
darin%netscape.com
095816b465 fixes bug 110418; r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108489 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 21:26:56 +00:00
varada%netscape.com
1b3ffcdcdb mail smoketest automation:NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@108488 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:52:53 +00:00
bzbarsky%mit.edu
945c775af1 Check the mimetype on the stylesheet channel and only
load the sheet if the type is text/css (strict mode change
only). bug 46225, r=dbaron, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108487 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:30:29 +00:00
bzbarsky%mit.edu
1fb836ea17 Add detection of PDF and PostScript to the unknown content decoder.
Bugs 110662 and 110663, r=bbaetz, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108486 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:25:53 +00:00
alecf%netscape.com
f021d78bd7 fix for bug 102043 - hide redirected URLs after adding them to global history
r=radha, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108485 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:22:14 +00:00
darin%netscape.com
712627fbb2 fixes bug 110508 "doing SetSpec() with a string with a query doesn't do the
right thing" r=bbaetz, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108484 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:21:42 +00:00
pinkerton%netscape.com
9e064c6abd if we don't find the command in our table, don't return noErr from the event handler so things like plugins still get a crack at it. r=peterl/sr=sfraser. bug# 108835
git-svn-id: svn://10.0.0.236/trunk@108483 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 20:19:14 +00:00
relyea%netscape.com
d6a02fdc86 NSS 3.4 integration changes.
1) 3.4 needs to bump the version numbers up by one on secmod.db from NSS 3.3
   2) Need to add escapes to the configdirectory. (should add them to other parameters as well.
   3) put exported files back into the correct headers.
   4) Add _BEGIN/_END protos where appropriate.


git-svn-id: svn://10.0.0.236/trunk@108481 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 19:04:59 +00:00
dp%netscape.com
9d486e8e8e split diff computation into a function
git-svn-id: svn://10.0.0.236/trunk@108480 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 17:33:51 +00:00
karnaze%netscape.com
36651bf0cd new regression tests, not affecting the build
git-svn-id: svn://10.0.0.236/trunk@108479 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:52:06 +00:00
karnaze%netscape.com
e3817c5a55 bug 110474 - fix pixel rounding errors. sr=attinasi, r=bernd
git-svn-id: svn://10.0.0.236/trunk@108478 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:51:28 +00:00
alecf%netscape.com
4844378688 Fix for bug 110371 - remove uconv dependency from nsFileSpec by moving unicode-related routines into mailnews. sr=sspitzer, r=nhotta
git-svn-id: svn://10.0.0.236/trunk@108477 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:28:56 +00:00
bbaetz%cs.mcgill.ca
5752f5f556 Make teh art_config rule down so that its not the default.
git-svn-id: svn://10.0.0.236/trunk@108476 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:03:33 +00:00
pinkerton%netscape.com
c085887862 More scrolling love, with some other window goodness. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@108475 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 15:02:23 +00:00
bbaetz%cs.mcgill.ca
2b4bc06c61 art_config.h needs to depend on the Makefile.in
git-svn-id: svn://10.0.0.236/trunk@108474 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 14:45:26 +00:00
jst%netscape.com
e5e4e2e102 Checking in John Keiser's fix for bug 110613, problems with file inputs. r=peterv@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108473 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 10:35:52 +00:00
dprice%netscape.com
08a61fb578 r=dveditz sr=mscott fixes 105781
-checking for a null channel where there should not be one


git-svn-id: svn://10.0.0.236/trunk@108472 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 09:13:37 +00:00
timeless%mac.com
7b921259da Bugzilla Bug 110080 change !NS_SUCCEEDED(status) to NS_FAILED(status)
s/!NS_SUCCEEDED/NS_FAILED/g;s/!NS_FAILED/NS_SUCCEEDED/g;
r=dougt sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@108471 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 06:45:00 +00:00
mscott%netscape.com
db727b7b40 Bug #108790 --> fix bogus rdf name space url. contributed by waterson
r=bryner
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@108469 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 04:37:10 +00:00
dveditz%netscape.com
6ea6d2fb6f topcrash bug 78442 during xpinstall.
patch thanks to jband@netscape.com, r=syd, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@108467 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 04:23:47 +00:00
waterson%netscape.com
9338b8d869 Break runloop out of main, clean up and comment it a bit.
git-svn-id: svn://10.0.0.236/trunk@108466 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 03:05:51 +00:00
waterson%netscape.com
bcf452c261 s/last_.*/limit/ to avoid confusion.
git-svn-id: svn://10.0.0.236/trunk@108465 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 02:49:29 +00:00
waterson%netscape.com
7f971e5588 Fix off-by-one error in |decay|.
git-svn-id: svn://10.0.0.236/trunk@108464 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 02:47:42 +00:00
seawood%netscape.com
839f959f7a Remove components.reg before running regxpcom
git-svn-id: svn://10.0.0.236/trunk@108463 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 01:47:54 +00:00
sspitzer%netscape.com
5114e2142f fix for #110698. fix assertions cause by calling NS_ConvertUTF8toUCS2() with null.
fix the code to not call MIME_DecodeMimeHeader() and NS_ConvertUTF8toUCS2() when the
header is null.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108461 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 01:07:19 +00:00
sspitzer%netscape.com
c492fb67a1 fix for #103626. don't need to include mailWindowOverlay.xul
fix by neil@parkwaycc.co.uk, r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108460 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-19 00:42:47 +00:00
sspitzer%netscape.com
f2facb1565 fix for #110502. get "edit as new" and "fwd inline" to work again.
the problem is the standard url parser no longer allows us to use illegal
uris.  '_' is an illegal character in a URI (and URL) scheme.
so this patch switches from "foo_message://" to "foo-message://"
r=bbaetz,sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108459 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 23:38:52 +00:00
sspitzer%netscape.com
1b665ea539 fix for #110522. asserting when pop biff url runs. call SetUsername() after we call SetSpec().
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108458 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 22:37:28 +00:00
gerv%gerv.net
f2a3c7158a Bug 98707. Query.cgi rewrite. Patch by me, layout by mpt and others, r=justdave, mattyt. Wahey!
git-svn-id: svn://10.0.0.236/trunk@108457 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 22:23:31 +00:00
gerv%gerv.net
34838abe95 Bug 98707. Query.cgi rewrite, reformatting and templatisation. Patch by me, layout by mpt and others, r=justdave,matty. Wahey!
git-svn-id: svn://10.0.0.236/trunk@108455 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 22:20:20 +00:00
leaf%mozilla.org
85fe4059ca remove fullcircle calls that shouldn't live in the mozilla tree. r=namachi, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@108454 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 22:18:42 +00:00
dougt%netscape.com
8b005407f0 fixing bug 108573. Calling AutoRegisterComponents when any registered loaders do not exists will crash. r=dp,sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@108453 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 20:19:44 +00:00
bernd.mielke%snafu.de
95501e5d3f new table regression testcases - not part of the build
git-svn-id: svn://10.0.0.236/trunk@108452 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 19:35:56 +00:00
bernd.mielke%snafu.de
8ad1e30e0f remove non local access in layout regression testcase - not part of the build
git-svn-id: svn://10.0.0.236/trunk@108451 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 19:09:15 +00:00
bernd.mielke%snafu.de
90bafc9cba make print testcase local - not part of the build
git-svn-id: svn://10.0.0.236/trunk@108450 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 19:03:13 +00:00
bernd.mielke%snafu.de
170f524ac2 make print regression test 59280-1.html local - not part of the build
git-svn-id: svn://10.0.0.236/trunk@108449 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 19:01:14 +00:00
blakeross%telocity.com
b9cc3e8237 oops, gFocusedDocument is from ben's fullscreen landing.
git-svn-id: svn://10.0.0.236/trunk@108448 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 18:44:19 +00:00
blakeross%telocity.com
f4f0aedf64 110679 - minor performance optimizations in navigator. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@108447 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 18:41:24 +00:00
alecf%netscape.com
642691dccd fix the MallocTools anchor reference - docs only
git-svn-id: svn://10.0.0.236/trunk@108446 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 18:33:06 +00:00
seawood%netscape.com
67548e7e82 /usr/builds/tinderbox/SeaMonkey/BSD_OS_4.2_Depend/mozilla/dom/src/base/nsDOMClassInfo.h:102: ANSI C++ forbids declaration `IsReadonlyReplaceable' with no type
git-svn-id: svn://10.0.0.236/trunk@108443 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 12:05:57 +00:00
seawood%netscape.com
d4634024f7 Coping with yet another string change
git-svn-id: svn://10.0.0.236/trunk@108442 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 11:58:27 +00:00
seawood%netscape.com
75a93bd93f All makefiles in dirs listed from mozilla/Makefile.in *must* be created by configure. The rest *should* be listed here as well.
git-svn-id: svn://10.0.0.236/trunk@108441 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 11:09:04 +00:00
ben%netscape.com
f4114294e0 license files. (NOT PART OF BUILD)
git-svn-id: svn://10.0.0.236/trunk@108440 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:47:25 +00:00
ben%netscape.com
40c6773f8b add test form for UI doodling.
This & previous checkin are NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@108439 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:45:24 +00:00
ben%netscape.com
175eb358e5 Correct Window Mediator's registration of browser windows.
git-svn-id: svn://10.0.0.236/trunk@108438 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:44:46 +00:00
pchen%netscape.com
cb829494fb bug 20943, r=rods, sr=ben, need to use alternate dc for print preview
git-svn-id: svn://10.0.0.236/trunk@108437 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:00:14 +00:00
pchen%netscape.com
ed2a9ee19e bug 20943, r=rods, sr=ben, set NS_PRINT_PREVIEW for mac build
git-svn-id: svn://10.0.0.236/trunk@108436 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:00:08 +00:00
pchen%netscape.com
42906eba07 bug 20943, r=rods, sr=ben, don't put up print dialog in nsDeviceContextSpecMac::Init() if aQuiet is true
git-svn-id: svn://10.0.0.236/trunk@108435 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 08:00:04 +00:00
pchen%netscape.com
59b79a3115 bug 20943, r=rods, sr=ben, remove ifdef XP_WIN || XP_UNIX in PrintPreview() since I'm turning it on for mac
git-svn-id: svn://10.0.0.236/trunk@108434 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 07:59:55 +00:00
pchen%netscape.com
26d858b7f6 bug 110081, patch=adamlock, r=pchen, sr=ben, harden docshell against empty URLs
git-svn-id: svn://10.0.0.236/trunk@108433 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 07:45:14 +00:00
pchen%netscape.com
83fe182deb bug 110081, r=adamlock, sr=ben, check for null url to avoid needless load
git-svn-id: svn://10.0.0.236/trunk@108432 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 07:44:50 +00:00
jst%netscape.com
1a12c02153 Fixing bug 110397. Making the read-write properties innerHeight, innerWidth, outerHeight, outerWidth, screenX, screenY, status, and name 'replaceable' by making assignment to these properties replace the real properties if the propery name is not fully qualified when doing the assignment. This is an attempt at fixing backwards compatibility problems where these properties are used a global variables (which worked in NS4x). r=peterv@netscape.com, rs=vidur@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@108428 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 06:45:10 +00:00
bbaetz%cs.mcgill.ca
751aa9e898 Remove the libart build system, and use mozilla's instead. Manually
generate config.h (based on nspr defines) and libart-features.h. Its the
only way this will work on win/mac, too.


git-svn-id: svn://10.0.0.236/trunk@108427 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 06:30:01 +00:00
jst%netscape.com
ded5cf4b76 Fixing part of bug 62536. Make element.scrollHeight and scrollWidth work correctly and making element.scrollIntoView() work even for elements inside nested scrollable views. r=hidday@geocities.com, jkeiser@iname.com, sr=attinasi@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108426 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 06:04:17 +00:00
blakeross%telocity.com
5c187e0689 Bookmarksliner work (not part of build)
git-svn-id: svn://10.0.0.236/trunk@108425 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 05:06:47 +00:00
ben%netscape.com
4f212d1dfb Implement Window Mediator service
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@108424 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 04:50:25 +00:00
matty%chariot.net.au
ca6d7f14fc Moving a comment to the right place, in order to be able to make a comment about my previous check in that accidentally got checked in without a comment, and hence didn't show up on Tinderbox I think.
It was a change to CGI.pl, a fix for bug 105812: Rename "Components" link in sub GetCommandMenu() to "Products".

The patch was by James A Laska <jlaska@us.ibm.com>.


git-svn-id: svn://10.0.0.236/trunk@108420 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 03:54:54 +00:00
matty%chariot.net.au
067fbac069 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@108419 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 03:22:50 +00:00
ssu%netscape.com
292b226022 checking in patch for Roland Mainz. r=pocemit. not part of normal build process
git-svn-id: svn://10.0.0.236/trunk@108418 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 02:27:37 +00:00
ssu%netscape.com
c65e0ec4f8 checking in patch for Roland Mainz. r=ssu. not part of normal build process
git-svn-id: svn://10.0.0.236/trunk@108417 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 02:24:45 +00:00
bryner%netscape.com
13159390d2 Adding calendar makefiles for win32. Note that this is still non-functional since libical is not ported to win32 yet. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@108413 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 01:13:39 +00:00
sspitzer%netscape.com
b93a6cfc1c changes to build when DEBUG_MIGRATOR is set. r/sr=no one
git-svn-id: svn://10.0.0.236/trunk@108412 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 00:42:28 +00:00
bstell%netscape.com
169d753a5f enable anti-aliased scaled bitmaps now that tinderbox has settled
see bug 90813


git-svn-id: svn://10.0.0.236/trunk@108410 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-18 00:30:01 +00:00
sspitzer%netscape.com
f31cd528b9 changes to get this code to build when DEBUG_profile_verbose is set.
r/sr=no one


git-svn-id: svn://10.0.0.236/trunk@108409 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 23:59:43 +00:00
sspitzer%netscape.com
bd73fdd3f8 ignore generated makefiles.
git-svn-id: svn://10.0.0.236/trunk@108405 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 23:12:13 +00:00
justdave%syndicomm.com
bfa6922bde Fix for bug 100788: enter_bug.cgi wasn't correctly interpretting whether or not a partial URL needed an http:// added to the
front of it, which had the side-effect of duplicating the http:// on the front when a URL was passed from Bugzilla Helper.
Patch by Josh Soref <timeless@mac.com>
r= justdave, caillon


git-svn-id: svn://10.0.0.236/trunk@108404 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 23:05:48 +00:00
justdave%syndicomm.com
f7a62b41f9 Fix for bug 109354: After entering a new bug, the link offering to add an attachment to the bug you just created pointed at
the old attachment form instead of the new one.
Patch by Josh Soref <timeless@mac.com>
r= myk x2


git-svn-id: svn://10.0.0.236/trunk@108402 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 22:40:02 +00:00
justdave%syndicomm.com
b696d2648c Fix for bug 107120: templates/default/global/header was generating HTML that wouldn't validate as HTML 4.01 Transitional
Patch by Dave Miller <justdave@syndicomm.com>
r= jake, bbaetz


git-svn-id: svn://10.0.0.236/trunk@108401 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 22:25:15 +00:00
bstell%netscape.com
39657e1d78 the way bloat and times are reported just changed
I want a clear before and after so I am turning off AASB
and will turn on in a bit


git-svn-id: svn://10.0.0.236/trunk@108400 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 22:21:02 +00:00
justdave%syndicomm.com
1a5671d3ab Fix for bug 92500: line-feeds were not being properly converted when submitting parameter changes with some Mac browsers.
Patch by Gervase Markham <gerv@mozilla.org>
r= ddk, justdave


git-svn-id: svn://10.0.0.236/trunk@108399 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 22:18:07 +00:00
bstell%netscape.com
517134194d enable anti-aliased scaled bitmap fonts
see: bug 90813 (bug 107018, bug 107019, bug 107020, bug 107025)


git-svn-id: svn://10.0.0.236/trunk@108398 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:57:46 +00:00
mcafee%netscape.com
73a8b73214 Add a label for bytes
git-svn-id: svn://10.0.0.236/trunk@108397 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:42:07 +00:00
justdave%syndicomm.com
ab0ed93ca8 Backing out previous checkin, it broke the tree. :(
git-svn-id: svn://10.0.0.236/trunk@108396 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:28:24 +00:00
ben%netscape.com
94bd3d2552 Fix bookmarks window, add new file for Window Mediator.
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@108395 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:27:36 +00:00
justdave%syndicomm.com
2f07aa0c10 Fix for bug 102487: If admin has set preferences to require a comment on a product/component change, prompt the user that they
forgot to comment first, before prompting for component, milestone, and version for new product.
Patch by Garvase Markham <gerv@mozilla.org>
r= kiko, ddk


git-svn-id: svn://10.0.0.236/trunk@108394 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:12:53 +00:00
justdave%syndicomm.com
38ae4f7251 Fix for bug 12284: allow user to specify which columns to display in a bug list
Patch by Andreas Franke <afranke@ags.uni-sb.de>
r= gerv, kiko


git-svn-id: svn://10.0.0.236/trunk@108392 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 21:04:37 +00:00
ian%hixie.ch
8c8be7f871 Correct some XML errors in the default output strings.
git-svn-id: svn://10.0.0.236/trunk@108391 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:57:42 +00:00
dp%netscape.com
ddb92a3c69 First version
git-svn-id: svn://10.0.0.236/trunk@108390 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:54:29 +00:00
dp%netscape.com
1ea910b4e4 Printing the dll name in the timeline r=sgehani, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108389 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:37:08 +00:00
dp%netscape.com
0a03dd13ac Printing the dll name in the timeline r=sgehani, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108388 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:23:48 +00:00
dp%netscape.com
463a8468e2 Implementing NS_TIMELINE_MARK_TIMER1 that prints an additional string
along with the timer mark. r=sgehani, sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@108387 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:20:25 +00:00
bstell%netscape.com
0a6977e48e bug 107020 anti-aliased scaled bitmap fonts
r=katakai@japan.sun.com, sr=brenday@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@108386 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 20:01:04 +00:00
bstell%netscape.com
0f6dc4fd68 add preference setting for Anti-aliased scaled bitmap fonts (AASB)
bug 107020
(AASB currently disabled)


git-svn-id: svn://10.0.0.236/trunk@108385 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 19:57:12 +00:00
hwaara%chello.se
fda43c5e4a #104815, align text correctly.
r=bzbarsky, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108383 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 18:27:57 +00:00
zach%zachlipton.com
0d8c3fd7a1 Fix the double testing of .pm files.
No review needed for tests at this time.


git-svn-id: svn://10.0.0.236/trunk@108382 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 17:29:06 +00:00
bzbarsky%mit.edu
e638b84bda Set referrer correctly when a document is loaded by setting
location.href. Bug 109319, r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108381 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 17:26:18 +00:00
tingley%sundell.net
3530a327b2 Speed up natural order comparisons and in-order insertions in
XULSortService (=> faster bookmark menu building).
bug 105783, r=rjc, sr=waterson.


git-svn-id: svn://10.0.0.236/trunk@108380 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 17:17:24 +00:00
bzbarsky%mit.edu
d4a430efa2 Update 'Get New Theme' link in View menu. Bug 102632, patch by David
Hallowell <dave532@uklinux.net>, r=doron, sr=ben


git-svn-id: svn://10.0.0.236/trunk@108379 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 16:27:23 +00:00
ccarlen%netscape.com
5f866fa0f5 Bug 77231 - find plugins using directory service. r=av/sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108378 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 15:26:02 +00:00
ccarlen%netscape.com
465a47d651 Adding new files for bug 77231 - find plugins using directory service. r=av/sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108376 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 15:22:46 +00:00
mcafee%netscape.com
3bf9646847 Adding client-side data reporting for bloat test.
git-svn-id: svn://10.0.0.236/trunk@108375 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 10:37:02 +00:00
mcafee%netscape.com
92c4133477 Settings::BloatStats is old, retiring. use Settings::BloatTest instead.
git-svn-id: svn://10.0.0.236/trunk@108374 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 10:35:32 +00:00
matty%chariot.net.au
2ddf8be3ca Bug 104677 : Votes field (text style) on showvotes.cgi defaults to size 5, not natural size and doesn't include a maxlength attribute.
Patch by Christoper Aillon <caillon@returnzero.com>.


git-svn-id: svn://10.0.0.236/trunk@108373 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 10:29:55 +00:00
mcafee%netscape.com
3c3ebf9745 whitespace
git-svn-id: svn://10.0.0.236/trunk@108372 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 10:29:27 +00:00
bbaetz%cs.mcgill.ca
eb246d5306 Bug 101560, pt 2. Perl 5.00503 gives a (bogus?) warning which 5.6 doesn't.
Quote manually rather than using qw to get arround this


git-svn-id: svn://10.0.0.236/trunk@108365 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 07:57:25 +00:00
bbaetz%cs.mcgill.ca
3bc2957b7a Bug 101560 - clear some more env vars so that system calls will run in
taint mode. The perforce integration stuff needs this.

r=gerv,mattyt


git-svn-id: svn://10.0.0.236/trunk@108362 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 07:19:46 +00:00
mcafee%netscape.com
0a10a3bc8b removing server-side startup data reporting, use client-side TinderboxPrint: now.
git-svn-id: svn://10.0.0.236/trunk@108361 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 06:52:50 +00:00
wtc%netscape.com
575d3fab64 We can use cp on Windows. cp is a built-in command of shmsdos.exe and is
in both MKS and Cygwin toolkits, so it is not a new build tool requirement.


git-svn-id: svn://10.0.0.236/trunk@108360 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 06:40:03 +00:00
ssu%netscape.com
dda6d0d1f5 fixing bug 108530 - Setup.exe error on install, mozilla launches with full screen empty page. r=curt sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@108359 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 06:21:11 +00:00
danm%netscape.com
c748829484 more changes to make xmldoc.createElementNS() create the correct type of element (and fix tinderbox mac bustage)
git-svn-id: svn://10.0.0.236/trunk@108358 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 06:18:04 +00:00
mcafee%netscape.com
050c2a3e4a switching to client-side reporting for startup test.
git-svn-id: svn://10.0.0.236/trunk@108357 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 06:05:40 +00:00
bryner%netscape.com
31419cc4eb Removing dead file, not part of the build. r=jag.
git-svn-id: svn://10.0.0.236/trunk@108356 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:45:35 +00:00
waterson%netscape.com
573dc30eeb First checked in.
git-svn-id: svn://10.0.0.236/trunk@108355 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:33:22 +00:00
jst%netscape.com
643238fef2 Checking in Alex Fritze's (alex.fritze@crocodile-clips.com) changes to make xmldoc.createElementNS() create the correct type of element. r=hidday@geocities.com, sr=me (and slight modifications done by me).
git-svn-id: svn://10.0.0.236/trunk@108354 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:32:30 +00:00
danm%netscape.com
571390d3ef reenable lazy instantiation of mDocument from rev 1.459 now that the leak has been plugged. r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108353 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:22:05 +00:00
danm%netscape.com
a9c1ca532f stop extraneous reallocation and leak of namespace manager in Reset. r=dbaron,jst
git-svn-id: svn://10.0.0.236/trunk@108352 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:20:35 +00:00
danm%netscape.com
136cb90749 plug leak of docshell. bug 110410 code=dbaron r=jst,me
git-svn-id: svn://10.0.0.236/trunk@108351 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 05:19:10 +00:00
seawood%netscape.com
2003a344a1 With the new tier system for the toplevel makefile, there's no need to build each stage individually from client.mk.
git-svn-id: svn://10.0.0.236/trunk@108350 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 03:56:53 +00:00
seawood%netscape.com
821959398b Add overlays to add calendar to the Tasks menu
Bug #110354 r=colinp


git-svn-id: svn://10.0.0.236/trunk@108349 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 03:49:05 +00:00
bbaetz%cs.mcgill.ca
0a0678b8c4 Add text mentioning that this applies to gnome.org cvs.
git-svn-id: svn://10.0.0.236/trunk@108346 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 03:23:53 +00:00
pschwartau%netscape.com
53f933a408 Initial add. Regression test for bug 110286.
git-svn-id: svn://10.0.0.236/trunk@108345 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 03:20:45 +00:00
colinp%oeone.com
b77fb786b7 fix for bug 109264 - sidebar panel does not resize properly
git-svn-id: svn://10.0.0.236/trunk@108344 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:57:17 +00:00
rbs%maths.uq.edu.au
eb14e5ee17 Fix crasher bug 110174 by extending the substitute fallback font to be a bitmap font or to be a global font. r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@108343 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:43:30 +00:00
rbs%maths.uq.edu.au
5553e08c9e bug 110417 - no need to special-case the viewsource protocol anymore since security now knows about it. r=bzbasrky sr=jst
git-svn-id: svn://10.0.0.236/trunk@108341 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:36:05 +00:00
leaf%mozilla.org
33613481e2 turn the embedding tests on for MOZILLA_OFFICIAL builds, bug 110341, r=cls
git-svn-id: svn://10.0.0.236/trunk@108340 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:34:52 +00:00
bzbarsky%mit.edu
64ae81272f Make various location.href and anchor href properties writable (NS4
compat).  Patch from Christian Biesinger (cbiesinger@web.de),
r=bzbarsky, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108339 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:23:22 +00:00
bzbarsky%mit.edu
afd0165ec8 Bump version to 0.9.6+. Bug 110229, patch from Doron Rosenberg
<doronr@naboonline.com>, r=bzbarsky, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@108338 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:15:52 +00:00
bzbarsky%mit.edu
5209f5c632 Look in our predefined extension/type list for common extensions like
.bin.  Bug 87403, r=law, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108337 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 02:13:33 +00:00
danm%netscape.com
ec0b2fc477 backing out last change, which seems, on fifteenth approach, to fix smoketest blocker bug 110494 r=jst
git-svn-id: svn://10.0.0.236/trunk@108336 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-17 01:51:22 +00:00
beard%netscape.com
a426beb9e4 [not part of build] Use templates for releasing misc. CF references.
git-svn-id: svn://10.0.0.236/trunk@108331 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 23:33:33 +00:00
bbaetz%cs.mcgill.ca
dec9142705 mozilla ships with autoconf/automake gnerated files. Add them, and change
autogen.sh to copy, rather than link.


git-svn-id: svn://10.0.0.236/trunk@108330 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 22:07:08 +00:00
bbaetz%cs.mcgill.ca
f1f030c27c Importing libart_lgpl from cvs.gnome.org. Version 2.3.7, plus Raph's
2001-11-07 changes to use the new intersector code.

These files are licensed under the LGPL.

a=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@108328 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 21:08:16 +00:00
varada%netscape.com
95110e8725 [sspitzer checking in as varada]
fix for smoketest blocker #110478.  reply to local messages fails to quote the message.
calling SetSpec() on a spec with a query string causes problems.  see #110508
but to fix the blocker, I've rewritten the code to use SetQuery(), which is better anyways.

r=ducarroz


git-svn-id: svn://10.0.0.236/trunk@108324 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 20:51:54 +00:00
kestes%walrus.com
eaa7acdb9f leave the update function early if we have not updated anything.
git-svn-id: svn://10.0.0.236/trunk@108323 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 20:45:24 +00:00
kestes%walrus.com
960160100e remove comment which was left over from the original code copy. It refered
to some other code.


git-svn-id: svn://10.0.0.236/trunk@108322 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 20:44:54 +00:00
kestes%walrus.com
f62cec6b27 add support for the Req Ticketing system.
git-svn-id: svn://10.0.0.236/trunk@108321 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 20:43:30 +00:00
mcafee%netscape.com
138f283dd4 report min value to graph server, to match reported number.
git-svn-id: svn://10.0.0.236/trunk@108320 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 20:24:01 +00:00
ian.mcgreer%sun.com
bd587aacd3 some minor ckfw fixes
git-svn-id: svn://10.0.0.236/trunk@108319 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 19:41:49 +00:00
ian.mcgreer%sun.com
25af9bb35b fips fix for signtool
git-svn-id: svn://10.0.0.236/trunk@108318 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 19:39:37 +00:00
ian.mcgreer%sun.com
5a3e326b12 fix unneeded lock release in list iteration
git-svn-id: svn://10.0.0.236/trunk@108317 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 19:36:43 +00:00
mikep%oeone.com
de690d7698 Adding in words with no "s" on the end
git-svn-id: svn://10.0.0.236/trunk@108316 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:51:22 +00:00
mikep%oeone.com
fc3cf7275a Fix for image in unifinder stretching.
git-svn-id: svn://10.0.0.236/trunk@108315 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:50:44 +00:00
mikep%oeone.com
5af37380c6 XUL changes and alerts working for calendar events
git-svn-id: svn://10.0.0.236/trunk@108314 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:50:06 +00:00
mikep%oeone.com
ae5749062f Removing binary file.
git-svn-id: svn://10.0.0.236/trunk@108313 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:28:08 +00:00
relyea%netscape.com
be87626514 Remove redundant call to createHash Tables. bug 95537
git-svn-id: svn://10.0.0.236/trunk@108312 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:10:24 +00:00
mikep%oeone.com
7b47f7e7e3 Fixing alignment problem for timepicker.
git-svn-id: svn://10.0.0.236/trunk@108311 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:08:33 +00:00
mikep%oeone.com
5f8ae8420c Files added so that calendar can be called like ./mozilla -calendar
git-svn-id: svn://10.0.0.236/trunk@108310 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:07:40 +00:00
mikep%oeone.com
9c765b5b87 Removing title so that tooltip does not appear twice.
git-svn-id: svn://10.0.0.236/trunk@108309 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 18:02:24 +00:00
seawood%netscape.com
a7a1bc99b0 Oops. Only bump the opt level for gcc.
Fixing nebiros bustage.


git-svn-id: svn://10.0.0.236/trunk@108307 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 17:41:48 +00:00
despotdaemon%netscape.com
dd5f90648a Pseudo-automatic update of changes made by tingley@sundell.net.
git-svn-id: svn://10.0.0.236/trunk@108306 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 17:20:18 +00:00
morse%netscape.com
d82e69afa8 bug 104894, parsing p3p compact policies, r=harishd, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108304 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 15:05:53 +00:00
brade%netscape.com
ba68668ea3 ForceCompositionEnd when focus is lost (Blur); bug #81356; patch from Masaki Katakai (katakai@japan.sun.com); r=brade/ftang; sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@108303 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 15:04:17 +00:00
ccarlen%netscape.com
1c7e2fb54a Bug 103384 - Move unicode conversion out of nsLocalFileCommon.cpp r=dougt/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108302 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 14:54:38 +00:00
karnaze%netscape.com
20df1e1ac0 bug 110369 - pedemont's patch to put child on pixel boundary when center aligning. r=karnaze.
git-svn-id: svn://10.0.0.236/trunk@108301 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 14:54:11 +00:00
ccarlen%netscape.com
a64c05a807 Adding new files for bug 103384 - move unicode conversion out of nsLocalFileCommon.cpp r=dougt/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108300 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 14:47:42 +00:00
realpeterv%mac.com
88938ea93f Fix for bug 83360 (improve LDAP datasource usefulness with XUL templates). r=dmose. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@108299 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 14:46:13 +00:00
realpeterv%mac.com
2bef1d2998 Fix for bug 83360 (improve LDAP datasource usefulness with XUL templates). r=dmose. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@108298 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 14:40:41 +00:00
neeti%netscape.com
4dc47433dd bug 106466 - Removed nsServiceEntry from ComponentManager, r=dougt, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@108297 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 13:53:04 +00:00
rods%netscape.com
461f5b6b61 Temporary fix for problem with nsStrin.ReplaceSubString
We need to make sure the sure we are subst for isn't in the subst string.
Bug 110284 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108296 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 13:41:12 +00:00
locka%iol.ie
22ffd06071 NOT PART OF BUILD. Implement IAuthenticate to allow streams requiring username/password to be downloaded
git-svn-id: svn://10.0.0.236/trunk@108295 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 13:01:06 +00:00
locka%iol.ie
acf074d45d Fix for nsILocalFIle::GetURL returning malformed URLs on Unix. b=110299 r=blizzard@mozilla.org sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108294 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 12:07:38 +00:00
peterv%netscape.com
efb0947a3c Fixing mac debug bustage. Patch suggested by jst, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@108292 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 10:50:33 +00:00
ben%netscape.com
3aa9446cea bug 110435 - make consistent use of variable names in add bookmark dialog. Also prevent adding bookmarks without names. r=peterv, sr=jst
git-svn-id: svn://10.0.0.236/trunk@108291 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 10:42:55 +00:00
bstell%netscape.com
25458f74bb minor clean up from bug 107025
git-svn-id: svn://10.0.0.236/trunk@108290 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 09:19:11 +00:00
sspitzer%netscape.com
ee1086cdab more work on #73868. converting ab from tree to outliner.
addressbook sidebar channel persistence changes. NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@108289 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 09:05:24 +00:00
dbaron%fas.harvard.edu
5f96f091fa Call the root 'malloc' rather than '.root' since there's no leak root detection going on here.
git-svn-id: svn://10.0.0.236/trunk@108288 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 09:00:26 +00:00
bstell%netscape.com
e62b9a07ca bug 107018, add an assert to check for alignment issue
approved by brendan


git-svn-id: svn://10.0.0.236/trunk@108287 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 08:37:55 +00:00
bstell%netscape.com
95ad1daab5 minor clean up from bug 107025
remove debug line, add ifdef DEBUG to one prototype


git-svn-id: svn://10.0.0.236/trunk@108286 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 08:25:13 +00:00
jst%netscape.com
1a51f22f1a Fixing bug 109182. Don't allocate a string buffer every time NS_NewURI(nsIURI**, const nsAReadableString&) is called. r=dbaron@fas.harvard.edu, sr=darin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108285 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 08:23:28 +00:00
sspitzer%netscape.com
e445822a1c more work on #73868. converting ab from tree to outliner.
restore selection after sorting. NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@108284 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 07:53:43 +00:00
leaf%mozilla.org
f9207c08f4 Automated update
git-svn-id: svn://10.0.0.236/trunk@108283 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 07:43:32 +00:00
seawood%netscape.com
e31141ea5d Allow modules to override *default* optimization levels by setting MODULE_OPTIMIZE_FLAGS
Bug #110215 r=bryner


git-svn-id: svn://10.0.0.236/trunk@108282 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 07:42:48 +00:00
seawood%netscape.com
1a1f300cc1 Add concept of tiers (module groups) to toplevel Makefile.
Bug #107302 r=bryner


git-svn-id: svn://10.0.0.236/trunk@108280 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 07:40:42 +00:00
brendan%mozilla.org
3a5c14a623 Makefile should be ignored.
git-svn-id: svn://10.0.0.236/trunk@108279 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 06:43:02 +00:00
sspitzer%netscape.com
f988c8615d fix for #92393. get msgs toolbar button (and menu item) disabled until you select a folder
if you don't have it set to "check for new messages" on startup.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@108278 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 06:41:42 +00:00
danm%netscape.com
e2c4e40413 temporarily disabling lazy instantiation of mDocument and stuffing some 6K of bloattest leaks back into the box
git-svn-id: svn://10.0.0.236/trunk@108277 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 06:38:01 +00:00
ben%netscape.com
9398c4ecd7 Beginnings of supporting downloading of items, deleting download entries from the datasource.
NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@108276 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 06:33:56 +00:00
mstoltz%netscape.com
f5760e7eb3 Bug 109113, second half of fix. r=jst, sr=brendan. Adding new CheckObjectAccess
callback to enforce the same-origin policy on function.caller.


git-svn-id: svn://10.0.0.236/trunk@108275 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 06:17:24 +00:00
naving%netscape.com
3c70dd7ca8 110208 r=stephend sr=bienvenu. Remove printfs from release build. Should make pop3 downloading msgs and biff
a bit faster.


git-svn-id: svn://10.0.0.236/trunk@108273 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 05:22:45 +00:00
blakeross%telocity.com
1ecbc9e7fd 110145 - Using the mouse wheel crashes when there's no target content. Scroll the focused content when the cursor is outside the window. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108272 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 04:52:16 +00:00
bzbarsky%mit.edu
c59df8124b Make SetInnerHTML use the right parser mode (ie strict for strict
documents instead of always quirks).  Bug 106565, r=harishd, sr=jst


git-svn-id: svn://10.0.0.236/trunk@108271 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 04:48:30 +00:00
dbaron%fas.harvard.edu
f0f1ff9e1f Fix HP bustage due to old-style for-loop scoping.
git-svn-id: svn://10.0.0.236/trunk@108269 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 04:02:07 +00:00
dbaron%fas.harvard.edu
2d6b5c1c2d Fix Mach-O/BeOS/OS/2 REQUIRES bustage.
git-svn-id: svn://10.0.0.236/trunk@108267 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:47:07 +00:00
dp%netscape.com
80c5991124 Satisfying compilers...
git-svn-id: svn://10.0.0.236/trunk@108266 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:37:15 +00:00
blizzard%redhat.com
727fab5071 bug #104576. Font sizes wrong when running under Xinerama. r=bstell,sr=tor
git-svn-id: svn://10.0.0.236/trunk@108264 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:18:18 +00:00
jst%netscape.com
09af6c1092 Disabling security check optimization since it exposes security problems. rs=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108263 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:14:05 +00:00
jst%netscape.com
07982becb6 Putting back security check optimization that was taken out a few weeks ago, will disable this check until the real fix comes along. rs=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108262 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:12:12 +00:00
smontagu%netscape.com
1dc588ab2f Fix crash when scrolling absolute positioned textarea by adding test to return value from |GetLine|. Bug 105004, r=rbs, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108261 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:08:30 +00:00
jst%netscape.com
70829fcf48 Fixing bug 110242. Huge unsigned interger + another huge unsigned integer will wrap, and that caused a crash in this code. r=rayw@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108259 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 03:01:29 +00:00
brendan%mozilla.org
056cf28a63 Remove __call__ and add a callback used to check f.caller access for any function object f (109113, r=jst, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@108257 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:56:49 +00:00
mscott%netscape.com
1a8eb9b1f3 Try registering the smime chrome the right way.....chrome in mail.jst and the locale in
langenus.jst


git-svn-id: svn://10.0.0.236/trunk@108256 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:56:30 +00:00
beard%netscape.com
839ca42429 fix for bug #100151, r=peterl, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108254 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:52:22 +00:00
dbaron%fas.harvard.edu
d75cd553c0 Ignore the library/address part of the stack unless asked to use it.
git-svn-id: svn://10.0.0.236/trunk@108252 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:47:07 +00:00
jkeiser%iname.com
f0b531fc70 Fix to make radio buttons and checkbox show their values on Print (bug 109914). r=rods@netscape.com,sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108251 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:43:23 +00:00
dp%netscape.com
5a69dc4d07 bug 108071 Eliminate 4000 calls to malloc by using copy getters of
registry. r=dveditz, sr=sfraser


git-svn-id: svn://10.0.0.236/trunk@108250 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:38:23 +00:00
jkeiser%iname.com
d443ae56e1 Fix textboxes not showing up in Print and Print Preview (bug 109914). r=sicking@bigfoot.com;sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108249 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:38:10 +00:00
rangansen%netscape.com
b4a977db33 bug# 109084 ,patch=ssaux, r=rangansen , sr=hewitt
exception handling in device-manager window


git-svn-id: svn://10.0.0.236/trunk@108247 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:32:20 +00:00
bienvenu%netscape.com
c9a006a2f9 fix downloading of imap messages for offline use when reading if mime parts on demand is invoked r=naving, sr=mscott 11067
git-svn-id: svn://10.0.0.236/trunk@108246 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:32:05 +00:00
relyea%netscape.com
fc6b6ceee3 Cause NSS_init() to fail if it can't open the databases, rather than succeding and leaving the system half initialized.
git-svn-id: svn://10.0.0.236/trunk@108245 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:30:38 +00:00
ben%netscape.com
2d6da23758 Read previous downloads from profile RDF XML datasource.
NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@108244 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:25:29 +00:00
blythe%netscape.com
6d460e3f06 NOT in normal build.
Have the tools build on windows, wether or not they work yet is another
issue.


git-svn-id: svn://10.0.0.236/trunk@108242 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:19:14 +00:00
dbaron%fas.harvard.edu
4af8dcbc41 Reduce bloat by eliminating nsString member variable (size of nsString and double-on-fault growth). r=jag sr=hyatt b=109963
git-svn-id: svn://10.0.0.236/trunk@108240 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:17:04 +00:00
alecf%netscape.com
beb4a442c0 further preparations for fixing bug 71482 - not part of build
- don't use the app-startup mechanism. for now, just rely on global history to create the load listener


git-svn-id: svn://10.0.0.236/trunk@108239 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:15:43 +00:00
danm%netscape.com
e48388726b hook up CreateAboutBlankContentViewer. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108238 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:15:31 +00:00
jband%netscape.com
4ef39dc620 fix bug 109893. If we fail to open a zip/jar for reading then just log that fact and continue on rather than failing. r=valeski sr=jst.
git-svn-id: svn://10.0.0.236/trunk@108237 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:14:59 +00:00
danm%netscape.com
e3ad075016 lazily instantiate mDocument. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108236 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:14:53 +00:00
bzbarsky%mit.edu
569f8e6897 mouse pointer should be normal pointer, not hand, over throbber. Bug
67761, r=hwaara, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@108235 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:14:22 +00:00
danm%netscape.com
56b222775b GetInterface can now return an nsIDOMWindow (to its 'main content', or browser window, as expected for implementations of nsIWebBrowserChrome. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108234 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:14:04 +00:00
danm%netscape.com
7d415546b0 get rid of nsPIWindowWatcher::CreateChromeWindow (no longer necessary) and get rid of alternate docshell about:blank initialization path which fired off an actual URL load. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108233 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:12:07 +00:00
danm%netscape.com
9daf08941d get rid of nsPIWindowWatcher::CreateChromeWindow (no longer necessary). bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108232 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:10:57 +00:00
darin%netscape.com
8225bd1d9c landing standard url rewrite (bug 103916)
r=andreas.otte@debitel.net, sr=brendan,alecf


git-svn-id: svn://10.0.0.236/trunk@108231 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:09:13 +00:00
danm%netscape.com
b765835495 adding an nsILoadGroup parameter to nsIDocumentLoaderFactory::CreateBlankDocument and cleaning up its implementation. Should be good to go now. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108230 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:08:09 +00:00
danm%netscape.com
20e05520b9 adding an nsILoadGroup parameter to nsIDocumentLoaderFactory::CreateBlankDocument. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108229 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:06:56 +00:00
bstell%netscape.com
1d5b3ecf25 bug 107025 (part of bug 90813)
anti-aliased bitmap font code
r=shanjian@netscape.com, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@108228 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:06:22 +00:00
danm%netscape.com
307b64f891 adding nsIDocument::ResetToURI and refactoring Reset. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108226 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:03:50 +00:00
danm%netscape.com
a5c5cddf01 adding nsIDocument::ResetToURI. bug 88229 r=jst,rpotts
git-svn-id: svn://10.0.0.236/trunk@108225 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:03:19 +00:00
jaggernaut%netscape.com
c68b39647b Fix xlib bustage, use .get() where previously implicit conversion from nsCString to const char* was used. patch by gisburn, r=jag, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@108224 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 02:02:04 +00:00
bstell%netscape.com
857ea2e252 bug 107025 (part of bug 90813)
anti-aliased scaled bitmap font object code
r=shanjian@netscape.com, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@108223 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:59:23 +00:00
darin%netscape.com
6c188f6fe7 fixes bug 97958 "[CRASH] on :jar protocol" r=dbaron, sr=dougt
git-svn-id: svn://10.0.0.236/trunk@108222 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:58:20 +00:00
danm%netscape.com
44e67f7c7d better-behaved GetAttention method flashes owner of dependent windows and sets timer on topmost parent. necessary with rev 1.38 of commonDialog.js. bug 53345 r=hyatt,syd
git-svn-id: svn://10.0.0.236/trunk@108221 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:58:17 +00:00
kaie%netscape.com
cd6d0037c0 b=109770 Obtaining a certificate from Verisign does not work
r=javi sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@108219 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:57:58 +00:00
danm%netscape.com
9ccd384fa4 focus and notify all common dialogs. somewhat experimental (people wanted to try it) fix for bug 53345, r=pinkerton,syd
git-svn-id: svn://10.0.0.236/trunk@108218 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:55:44 +00:00
kaie%netscape.com
965786aed2 b=108600 Avoid the risk of unexpected NSS shutdowns
r=javi sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@108217 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:55:37 +00:00
jaggernaut%netscape.com
d928e4ddac Clean up REQUIRES lines. r/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108216 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:54:59 +00:00
sspitzer%netscape.com
83ab3bab23 more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108215 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:41:13 +00:00
sspitzer%netscape.com
223f8e91c6 more work on #73868. converting ab from tree to outliner.
get sort indicators to work, make it so even if we persist some old or illegal
value for "sortedColumn", we do the right thing.

NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@108214 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:40:22 +00:00
relyea%netscape.com
72ff06ee26 The new DB stuff was not supposed to be turned on!
git-svn-id: svn://10.0.0.236/trunk@108213 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:18:21 +00:00
cltbld%netscape.com
ab89cdfecc switching to report minimum time of the entire run. r=mcafee,dp
git-svn-id: svn://10.0.0.236/trunk@108212 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 01:13:34 +00:00
ben%netscape.com
ab67aae96c Serialize Download Datasource -> XML in profile directory, some initial command support (launch, reveal, download file) in the UI & at datasource level.
NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@108211 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 00:23:01 +00:00
mscott%netscape.com
ec759acd03 attemp to fix mailnews compose window perf regression: Bug #110355
backout my packaging change from last night.

a=loan


git-svn-id: svn://10.0.0.236/trunk@108210 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-16 00:20:37 +00:00
yokoyama%netscape.com
b34d76db57 bug 110170
IME COMPOSITION string was off by one
and not to use compStrLen in NS_IMM_GETCOMPOSITIONSTRING()
/r=ftang, /sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108207 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:42:00 +00:00
ssu%netscape.com
ac7233c2f6 fixing blocker bug 108530 - Setup.exe error on install, mozilla launches with full screen empty page
git-svn-id: svn://10.0.0.236/trunk@108206 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:27:55 +00:00
sonja.mirtitsch%sun.com
78f6f229de modernized... changed servers, clients, mastebuild, 10 minutes wait now
git-svn-id: svn://10.0.0.236/trunk@108205 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:27:20 +00:00
sonja.mirtitsch%sun.com
71dab61202 put fips test before the stress test (in case of a copied db the fips test interferes)
git-svn-id: svn://10.0.0.236/trunk@108204 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:26:21 +00:00
relyea%netscape.com
315e1fffc2 Add Issuer/SN to the trust objects for faster lookup.
git-svn-id: svn://10.0.0.236/trunk@108203 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:07:39 +00:00
relyea%netscape.com
9927580782 Add issuer/SN to the search criteria
git-svn-id: svn://10.0.0.236/trunk@108202 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:06:10 +00:00
relyea%netscape.com
b6e70a0487 performance optimizations:
1) add serial number index to trust lookups.
2) add code for replacing key db indexing (coded but not turned on -- causes a keydb upgrade, but can run with older key db's as well).


git-svn-id: svn://10.0.0.236/trunk@108201 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 23:04:41 +00:00
rayw%netscape.com
ce658d512b Not part of default build.
Fixed casing of included file so that it compiles
on Linux.  Schema is not part of build.

rs=rayw


git-svn-id: svn://10.0.0.236/trunk@108197 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:44:06 +00:00
blythe%netscape.com
44e5d93d15 Fix bug 108103, new tool SpaceTrace
SR,RS=brendan, SR=waterson, R=dbaron


git-svn-id: svn://10.0.0.236/trunk@108196 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:40:53 +00:00
sspitzer%netscape.com
4d83de169d fix how we do sorting in ab view. collation keys are raw data, not PRUnichar *.
NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@108195 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:16:49 +00:00
alecf%netscape.com
d348a4e9ab better fixes to make bloatblame work on windows
git-svn-id: svn://10.0.0.236/trunk@108193 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 22:08:03 +00:00
despotdaemon%netscape.com
e08268685d Pseudo-automatic update of changes made by blythe@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@108190 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 21:44:01 +00:00
despotdaemon%netscape.com
74c0691738 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@108189 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 21:25:48 +00:00
nelsonb%netscape.com
b83e00bb67 Add one more missing declaration of environ;
git-svn-id: svn://10.0.0.236/trunk@108188 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 20:40:44 +00:00
nelsonb%netscape.com
c968df5114 Go back to declaring "extern char ** environ".
git-svn-id: svn://10.0.0.236/trunk@108186 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 20:35:31 +00:00
alecf%netscape.com
10dba00731 some changes required to get bloatblame building on windows
git-svn-id: svn://10.0.0.236/trunk@108185 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 20:29:28 +00:00
mikep%oeone.com
9b413cab0b Adding in libical source.
git-svn-id: svn://10.0.0.236/trunk@108183 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 19:28:01 +00:00
despotdaemon%netscape.com
5bd55575ce Pseudo-automatic update of changes made by blythe@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@108182 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 19:25:02 +00:00
sonja.mirtitsch%sun.com
85d9ea119a added a hyperlink in the header
git-svn-id: svn://10.0.0.236/trunk@108180 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 19:01:42 +00:00
sonja.mirtitsch%sun.com
a1f486ef9a added sendmail, fixed sendmailbug
git-svn-id: svn://10.0.0.236/trunk@108179 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 19:01:16 +00:00
alecf%netscape.com
8752f42736 fix for bug 110290 - empty cells are considered non-existent when trying to see if a history cell is hidden or not. r/a=brade
git-svn-id: svn://10.0.0.236/trunk@108178 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 18:38:50 +00:00
gerv%gerv.net
52ebafa034 Bug 6419 - command-line query tools by Andreas Franke <afranke@ags.uni-sb.de>.
git-svn-id: svn://10.0.0.236/trunk@108177 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 17:04:58 +00:00
cmanske%netscape.com
46aec36943 Fixed case of 'publishprefs.js' where used in editor files
git-svn-id: svn://10.0.0.236/trunk@108176 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 16:44:48 +00:00
cmanske%netscape.com
de2267bac0 Fixing UNIX built bustage: wrong case for file in jar.mn
git-svn-id: svn://10.0.0.236/trunk@108175 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 16:39:59 +00:00
mcafee%netscape.com
9e747ddf19 Use TinderboxPrint mechanism for startup test.
git-svn-id: svn://10.0.0.236/trunk@108174 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 16:11:47 +00:00
cmanske%netscape.com
9931abe651 Mail Overlay xul for Composer relating to publishing ui, b=88208, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108173 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 16:03:14 +00:00
cmanske%netscape.com
26d26952e3 Composer CSS relating to new publishing ui, b=88208, r=brade, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@108172 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 16:00:03 +00:00
pinkerton%netscape.com
a02a863295 enable scrollbars when told [not part of build]
git-svn-id: svn://10.0.0.236/trunk@108171 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 15:31:34 +00:00
cmanske%netscape.com
af7e0a06cc Editor JS utilities reorg (b=106374, r=kin, sr=hewitt) and first draft of new Publishing UI (b=88208, r=brade, sr=hewitt)
git-svn-id: svn://10.0.0.236/trunk@108170 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 15:28:24 +00:00
karnaze%netscape.com
cb584f37c6 bug 80966 - calc row desired size when printing based on split height of cells. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@108169 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 14:58:27 +00:00
rods%netscape.com
8011a838ab Added an assert and an if to protect from crashing and help discover what is happening
during print preview (it's ok the shell is null, but why do we get a focus event?)
Bug 109567 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108166 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 13:15:54 +00:00
locka%iol.ie
acf6b49a48 Remove sample chrome embed.jar from unix browser package and rename to avoid confusion with the real embed.jar used in the embedding dist. b=87622 r=blizzard@mozilla.org sr=dveditz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108165 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 12:23:57 +00:00
seawood%netscape.com
70e9350002 Tweak calendar for the static build.
git-svn-id: svn://10.0.0.236/trunk@108164 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 08:23:53 +00:00
dbaron%fas.harvard.edu
5d903ccb5f Avoid pointless nsAutoString construction and extra copy. b=109250 r=jag sr=jst
git-svn-id: svn://10.0.0.236/trunk@108163 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:47:39 +00:00
dbaron%fas.harvard.edu
f11ce5ca4c Oops, meant to remove that incorrect comment.
git-svn-id: svn://10.0.0.236/trunk@108162 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:44:59 +00:00
dbaron%fas.harvard.edu
c4d6c73aeb New, more portable (i.e., works for me, unlike the old code) Linux nsGetTypeName using dladdr. r=jag sr=waterson b=109829
git-svn-id: svn://10.0.0.236/trunk@108161 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:44:26 +00:00
hyatt%netscape.com
71bedef261 MIssed a spot in 109261. same reviewers apply as for previous checkin of bug fix.
git-svn-id: svn://10.0.0.236/trunk@108160 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:31:13 +00:00
dbaron%fas.harvard.edu
51696fc40a Fix overly long lines. r=kin sr=waterson b=106658
git-svn-id: svn://10.0.0.236/trunk@108159 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:30:09 +00:00
dbaron%fas.harvard.edu
6d6d615a63 Fix floater state recovery to descend into blocks (which might contain floaters). b=106658 r=kin sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108158 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:28:46 +00:00
blizzard%redhat.com
553e8e8f5e Checkpointing changes. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@108157 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:27:22 +00:00
blizzard%redhat.com
405febe992 Bug #95833. Use gtk routines for nsWindow::SetTitle(). r=bryner,sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108156 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 07:02:39 +00:00
bstell%netscape.com
92ad50f04d bug 107018; alpha blending routines for anti-aliased scaled X bitmap fonts
add nsX11AlphaBlend.cpp to list of file to compile
r=pavlov, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@108155 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 06:51:13 +00:00
bstell%netscape.com
b75e0ddbfb bug 107018, alpha blending routines for anti-aliased scaled X bitmap fonts
(part of bug 90813), r=pavlov, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@108154 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 06:45:16 +00:00
alecf%netscape.com
9d8651e6b1 aug, I give up. stupid SMIME
git-svn-id: svn://10.0.0.236/trunk@108153 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:58:14 +00:00
bryner%netscape.com
9851232df6 Make sure the state of the ok button is correct even if the window does not get initial focus (bug 98480). r=jag, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@108152 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:37:32 +00:00
cmanske%netscape.com
e5ad45b5bd Fixed misspelled 'default' case in imagemap dialog, fix by premstaller, b=84111, r=cmanske, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108151 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:32:43 +00:00
cmanske%netscape.com
d291b28865 Fixed Insert Character radio button initialization, b=107767, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108150 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:30:29 +00:00
cmanske%netscape.com
7010ba00cf Fixed error checking and reporting when loading page in Composer and removed commented-out code, b=105561, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:26:25 +00:00
alecf%netscape.com
e8f3e2729d better fix - conditional REQUIRES based on BUILD_SMIME (but thanks anyway dbaron)
git-svn-id: svn://10.0.0.236/trunk@108148 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:12:38 +00:00
hewitt%netscape.com
01d79b4190 DOM Inspector update - tons of crash fixes, js error fixes, performance and usability improvements, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108147 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 05:09:26 +00:00
despotdaemon%netscape.com
2b735a1b27 Pseudo-automatic update of changes made by arougthopher@lizardland.net.
git-svn-id: svn://10.0.0.236/trunk@108145 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:33:56 +00:00
nelsonb%netscape.com
b9c0acc0a2 Now that the implementations of all the RNG_ functions have been moved
from lib/util to lib/freebl, move the RNG header file there, too.
Eliminate secrngt.h, which has been empty (except for the license
boilerplate) for many releases.


git-svn-id: svn://10.0.0.236/trunk@108144 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:29:27 +00:00
dbaron%fas.harvard.edu
3da2bb0c9f Fix bustage. windowwatcher still needed in REQUIRES (ifdef BUILD_SMIME).
git-svn-id: svn://10.0.0.236/trunk@108143 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:27:27 +00:00
hewitt%netscape.com
826eabf6d9 108543 - urlbar autocomplete isn't showing search, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108141 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:19:32 +00:00
hewitt%netscape.com
e0f51d7027 DOM Inspector update - tons of crash fixes, js error fixes, performance and usability improvements, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108140 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 04:09:41 +00:00
alecf%netscape.com
0c847ee212 win32 REQUIRES cleanup
git-svn-id: svn://10.0.0.236/trunk@108139 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 03:49:13 +00:00
waterson%netscape.com
be4f98c3bc Bug 101982. Fix onbroadcast handler. r=cmanske, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108138 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:46:29 +00:00
sgehani%netscape.com
66343ffcee Fixing regression: adding languages is possible again.
b=109629; r=bryner; sr=blake


git-svn-id: svn://10.0.0.236/trunk@108137 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:43:32 +00:00
nelsonb%netscape.com
38c49051cb Use data from /dev/urandom to initialize PRNG, when possible.
and related changes.  Bug 96626.


git-svn-id: svn://10.0.0.236/trunk@108136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:41:20 +00:00
relyea%netscape.com
ee79a0f5dd Fix AIX 64 bit build breakage when in debug mode.
git-svn-id: svn://10.0.0.236/trunk@108135 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:23:31 +00:00
sgehani%netscape.com
17328c4012 Make preview tab window content have a scrollbar when it needs one.
b=79651; r=morse; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108134 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:20:57 +00:00
sgehani%netscape.com
6f00a7baf1 Don't build search results when search panel isn't open and
auto open search panel isn't set.
b=91168; r=morse,jruderman; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108130 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:01:10 +00:00
nhotta%netscape.com
48815cee09 Changed to use char* for charset instead of nsString& for i18n functions, bug 108932, r=ducarroz,sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@108129 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 02:00:32 +00:00
mscott%netscape.com
b307afe4cc Register smime chrome.
git-svn-id: svn://10.0.0.236/trunk@108125 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 01:29:33 +00:00
varada%netscape.com
ab8362e632 adding mail smoketest files -NOT PART OF BUILD
git-svn-id: svn://10.0.0.236/trunk@108118 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 01:18:39 +00:00
rangansen%netscape.com
4b7e789269 bug# 109792 ; s=kaie ; sr=hewitt Fixing the blank cert details tab problem
git-svn-id: svn://10.0.0.236/trunk@108116 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 01:16:02 +00:00
alecf%netscape.com
2c306b3de9 add hidePage() API to nsIBrowserHistory, to allow hiding 302 redirected URLs from the UI, for bug 102043 r=blake, sr=sspitzer (parity with 4.x and IE behavior)
git-svn-id: svn://10.0.0.236/trunk@108114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:48:18 +00:00
alecf%netscape.com
b47d6fc10d further fixes for bug 102043 - add support for the hidePage() api when a redirected page is encountered
git-svn-id: svn://10.0.0.236/trunk@108113 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:46:26 +00:00
sspitzer%netscape.com
5a11950d35 repairing...(I hope)
git-svn-id: svn://10.0.0.236/trunk@108112 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:40:01 +00:00
sspitzer%netscape.com
6e78417c0e trying to repair mime.mcp.
git-svn-id: svn://10.0.0.236/trunk@108111 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:38:25 +00:00
sspitzer%netscape.com
0d1b31e4d1 more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108110 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:28:12 +00:00
sgehani%netscape.com
e0b1ce6a6b Replace strtok() with nsCRT::strok().
(Checking in for drepper@cygnus.com)
b=81590; r=sgehani; sr=alecf


git-svn-id: svn://10.0.0.236/trunk@108109 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:09:40 +00:00
cavin%netscape.com
5819e4979a Bug #107369: Check nNewSize=0 in AllocateSpace() and add current size to AllocateSpace() calls. r=bienvenu,sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@108108 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:06:37 +00:00
akkana%netscape.com
b0c5a7f34a 104195: fix some problems with rewrap. r=brade sr=kin
git-svn-id: svn://10.0.0.236/trunk@108107 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-15 00:04:26 +00:00
kin%netscape.com
de04b31a56 Fix for bug 108666: No context menu when right clicking on form text widgets
getAttribute() now returns a null object instead of an empty string
  when an attribute does not exist, so expand shortcuts like
  getAttribute().toUpperCase() to the longer form to prevent errors.

r=blakeross@telocity.com  sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108106 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 23:56:42 +00:00
kin%netscape.com
c853bf4c4b Fix for bug 96455: hr has duplicate lineboxes in frame tree
- Move code in HaveFirstLetter*() methods to a more generic method
    HasPseudoStyle() to expand it's use, and make those methods call it.

  - Added static method RemoveGeneratedContentFrameSiblings(), which
    is now called from ContentRemoved(), to remove any sibling :before
    and :after frames for a given frame.

r=attinasi@netscape.com (also looked at by rbs@maths.uq.edu.au)
sr=waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@108105 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 23:55:44 +00:00
nhotta%netscape.com
2c2e9d314d Changed location.href to force escape 8 bit if the href contains 8 bit, bug 40469, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@108102 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 23:45:23 +00:00
bryner%netscape.com
8089a9b1a9 Adding $(MOZ_COMPONENT_LIBS) for platforms that resolve symbols at link time. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@108101 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 23:38:25 +00:00
ian.mcgreer%sun.com
c9b297cd2e merge 3.3 branch checkin; rsa double check and key consistency functions (see bug 74226)
git-svn-id: svn://10.0.0.236/trunk@108100 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 23:03:20 +00:00
andreww%netscape.com
2f4c821a8c bugzilla 93866 r=shliang sr=blake Fields not sized properly under preferences for Appearance:Themes
git-svn-id: svn://10.0.0.236/trunk@108098 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:50:42 +00:00
andreww%netscape.com
73df04eec4 bugzilla 108789 r=shliang sr=hewitt a=blizzard (for branch checkin) inset border in trees
git-svn-id: svn://10.0.0.236/trunk@108097 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:47:52 +00:00
rbs%maths.uq.edu.au
81e93a759c transliterate &ApplyFunction; b=106780 r=shanjian sr=waterson
git-svn-id: svn://10.0.0.236/trunk@108096 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:44:19 +00:00
leaf%mozilla.org
c8e97fa48a Automated update
git-svn-id: svn://10.0.0.236/trunk@108095 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:43:03 +00:00
bstell%netscape.com
dbb5792627 bug 102515: fix assertion from previous patch
checkin for mailto:andreas.otte@debitel.net,
r=bstell@netscape.com, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@108094 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:40:47 +00:00
seawood%netscape.com
891f71eee4 Use dummy statement to override default adding of ical to LIBS (since we don't want it there).
git-svn-id: svn://10.0.0.236/trunk@108093 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:30:39 +00:00
pinkerton%netscape.com
dcd32d5c70 Add scrollbars, fix window resize issues, make scrolling work [not part of build]
git-svn-id: svn://10.0.0.236/trunk@108092 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:29:25 +00:00
pinkerton%netscape.com
958cf38835 fix overzealous ifdef causing some keys to not go into gecko. r=saari/sr=sfraser. bug#108722
git-svn-id: svn://10.0.0.236/trunk@108091 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:28:04 +00:00
cmanske%netscape.com
886cace519 Use 1000 as limit for HR size, b=102051, r=brade, sr=jst
git-svn-id: svn://10.0.0.236/trunk@108090 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:27:58 +00:00
cmanske%netscape.com
02b45c471c Fixed join cells table bug 103360, r=akkana, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108089 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:22:17 +00:00
seawood%netscape.com
58c6f22581 Fixing AIX bustage. Resolve symbols at link time. r=bryner
git-svn-id: svn://10.0.0.236/trunk@108088 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 22:00:16 +00:00
kestes%walrus.com
be8493b366 turn apostrophe into accute accent to work arround netscape bug.
git-svn-id: svn://10.0.0.236/trunk@108087 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:59:55 +00:00
dbaron%fas.harvard.edu
4c020bcc00 Oops. Backing that out.
git-svn-id: svn://10.0.0.236/trunk@108085 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:44:45 +00:00
despotdaemon%netscape.com
793dede43a Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@108084 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:43:28 +00:00
dbaron%fas.harvard.edu
9677901489 Add script to diff the output of two files created by NS_TraceMallocDumpAllocations.
git-svn-id: svn://10.0.0.236/trunk@108083 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:42:54 +00:00
sspitzer%netscape.com
16acdc5e3f more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108082 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:38:32 +00:00
kestes%walrus.com
9a2c8179f1 document most important change.
git-svn-id: svn://10.0.0.236/trunk@108081 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:25:49 +00:00
kestes%walrus.com
866a37470f admin scripts I use.
git-svn-id: svn://10.0.0.236/trunk@108080 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:24:36 +00:00
kestes%walrus.com
9434b0aefc my echo statements had leading '$', how did they get there?
I added to the test command so that you can see exactly how it was called.
change the example to show how --tree now works.


git-svn-id: svn://10.0.0.236/trunk@108079 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:23:40 +00:00
kestes%walrus.com
4a849ad3eb make the checkouts of -D be in sync with the tinderbox boxes by ensuring
-D is really the start time.


git-svn-id: svn://10.0.0.236/trunk@108078 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:22:13 +00:00
kestes%walrus.com
9d6e1eed77 allow for alternating builds using a single build process.
git-svn-id: svn://10.0.0.236/trunk@108077 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 21:21:02 +00:00
shrutiv%netscape.com
51e6d7da25 Fix for bug 96732: Hide DOS windows when building installer (r=tao)
git-svn-id: svn://10.0.0.236/trunk@108070 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 19:05:48 +00:00
bzbarsky%mit.edu
01108728c5 msvc barfs on functions taking nsAString& with default initializers from
an NS_LITERAL_STRING.  Remove the default initializer, which is not
being used.  r=jag, a=leaf to get tests building again.


git-svn-id: svn://10.0.0.236/trunk@108065 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 17:27:11 +00:00
brade%netscape.com
1682133637 fix bug #106022; disable unicode input for OS < 9.0 (r=ftang; sr=sfraser)
git-svn-id: svn://10.0.0.236/trunk@108064 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 16:00:17 +00:00
blizzard%redhat.com
aeb7b28295 Bug #75372. Get dragging messages to the compose window working again on Linux. Fix incorrect case in drag flavour. r=jag,rginda sr=sspitzer, a=dbaron
git-svn-id: svn://10.0.0.236/trunk@108062 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 15:40:03 +00:00
bbaetz%cs.mcgill.ca
9ca8a3c375 Bug 107718 pt 2 - use subtraction instead of the ~ operator, which older
mysql versions don't support. Remove the checksetup.pl restriction, too.

r=jake x2


git-svn-id: svn://10.0.0.236/trunk@108061 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 15:12:23 +00:00
rods%netscape.com
3d51ca2366 trying again to fix the bustage on the ports
git-svn-id: svn://10.0.0.236/trunk@108060 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 14:44:34 +00:00
mkaply%us.ibm.com
b6110d2c3c #36163
r=mkaply, r/sr=attinasi
Don't show Bidi control characters in the browser


git-svn-id: svn://10.0.0.236/trunk@108059 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 14:21:52 +00:00
rods%netscape.com
bdd0f4956c Added image animation mode constants to imgIContainer.IDL,
Changed the animation mode enum to PRUint16 (removed the enum) in nsIPresContext so we could use the constants
from imgIContainer. (changes from dcone's review comments)
Bug 2586 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108058 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 14:03:09 +00:00
rods%netscape.com
4b3f973350 Added image animation mode constants to imgIContainer.IDL,
Changed the animation mode enum to PRUint16 (removed the enum) in nsIPresContext so we could use the constants
from imgIContainer. (change from dcone's review comments)
Bug 2586 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108057 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:59:08 +00:00
peterv%netscape.com
ed0166f1db Clean up project (put files in subfolders where they belong).
git-svn-id: svn://10.0.0.236/trunk@108056 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:50:15 +00:00
peterv%netscape.com
bd1e7483fb Fix for bug 105452 (Annoying assert when outputing DOM to HTML source). r=cmanske, sr=kin.
git-svn-id: svn://10.0.0.236/trunk@108055 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:47:49 +00:00
karnaze%netscape.com
2478679da6 bug 109043 - made percent tables without a computed height initiate a special 3rd pass reflow only when a table related frame up the chain has a fixed or percent height. Made row groups not allocate additional vertical space to percent rows in excess of the table height. sr=attinasi,r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@108054 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:44:38 +00:00
karnaze%netscape.com
65fe290a5b bug 103925 (2nd patch) - flag pixel rounding errors in display reflow debugging. sr=attinasi, r=bernd
git-svn-id: svn://10.0.0.236/trunk@108053 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:40:03 +00:00
locka%iol.ie
04d0dcd1ae Add error message when user tries to load a malformed url instead of silently ignoring it. b=89118 r=ccarlen@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@108052 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 13:26:43 +00:00
jfrancis%netscape.com
86581dbcfa fix for Bug#:107494, when editting in IME mode, you cannot delete last uncommitted character. r=smfr; sr=kin; a=drivers
git-svn-id: svn://10.0.0.236/trunk@108051 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 12:58:57 +00:00
rods%netscape.com
2c256afb90 Fix breakage on SunOS and IRIX
git-svn-id: svn://10.0.0.236/trunk@108049 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 12:43:53 +00:00
jaggernaut%netscape.com
d22bec017c Bug 98213: Make data members of nsStr protected and clean up code. r=dbaron, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108048 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 12:35:52 +00:00
bernd.mielke%snafu.de
dbb80ab0d1 style change reflows should be send down to the childrens, bug 108340, r=karnaze
sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108047 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 11:40:03 +00:00
rods%netscape.com
04987fe8c2 Rename some bools, there is now one for when PP is being created and one for when it is in PP mode.
It now can turn on/off animated gifs and calling PP toggles it on and then call it again toggles it off
Bug 2586 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108046 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 11:24:03 +00:00
rods%netscape.com
598f28dd63 The PresContext must walk the content tree and find all the images and turn them back "on" for animation
It must also walk it's own list that contains the background images
Bug 2586 r=dcone sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@108045 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 11:21:54 +00:00
sspitzer%netscape.com
d1358e97fd more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108044 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 10:25:19 +00:00
hewitt%netscape.com
6dc045c3a2 108757 - dispatch DOM events for mouse wheel scrolling, r=?, sr=?
git-svn-id: svn://10.0.0.236/trunk@108043 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 10:06:21 +00:00
sspitzer%netscape.com
ff39b3820a more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108042 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 09:59:11 +00:00
sspitzer%netscape.com
357edc322c more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@108041 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 09:36:30 +00:00
bryner%netscape.com
6f14faee25 Fixing win32 bustage
git-svn-id: svn://10.0.0.236/trunk@108040 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:46:46 +00:00
hyatt%netscape.com
898c319da9 put a comment in the stylecontext header.
git-svn-id: svn://10.0.0.236/trunk@108039 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:37:58 +00:00
hyatt%netscape.com
cb07ac61ff Inline PeekStyleData for 109261.
git-svn-id: svn://10.0.0.236/trunk@108038 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:29:11 +00:00
bryner%netscape.com
b81f5400ae Adding libfileview.so and filepicker.xpt, for bug 82854.
git-svn-id: svn://10.0.0.236/trunk@108037 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:25:03 +00:00
bryner%netscape.com
01f9c809ba Turning on new C++ filepicker code (bug 82854). r=jag, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@108036 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:19:23 +00:00
hyatt%netscape.com
c0d0283f4f Perf and footprint opt. Make style re-resolution cheaper. r=glazou, sr=hewitt, bug 109261
git-svn-id: svn://10.0.0.236/trunk@108035 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:19:13 +00:00
dbaron%fas.harvard.edu
0bed06a100 Fix assertions that I caused with my previous checkin. sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108034 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 08:17:19 +00:00
darin%netscape.com
0d5c69b3dc fixing mac bustage
git-svn-id: svn://10.0.0.236/trunk@108033 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 07:38:05 +00:00
stephend%netscape.com
1e7eaf9f8d Bug 109677. 'Empty Trash Can' in context menu to 'Empty Trash'. r=jglick@netscape.com, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@108032 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 07:22:16 +00:00
hewitt%netscape.com
3e3f843750 108579 - hiding first column causes empty outliner, r=jag, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@108031 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 07:02:06 +00:00
mscott%netscape.com
7d19a62068 Bug #109979 --> only construct the view for the view mode we are in. Then when we toggle the
view mode, build the new view. This improves message display performance.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108030 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:59:45 +00:00
hewitt%netscape.com
f5f329d919 108543 - urlbar autocomplete isn't showing search, r=blake, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108029 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:52:32 +00:00
hewitt%netscape.com
fcb78f0695 109169 - dialog should support custom dialog buttons, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108028 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:48:44 +00:00
hewitt%netscape.com
2abff317c3 109190 - Editable menulists no longer show dropmarker, r=ben, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@108027 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:46:03 +00:00
darin%netscape.com
424a7bd5f9 patch for bug 107789 "deprecate nsIRandomAccessStore (superceded by nsISeekableStream)"
r=dougt, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@108026 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:45:27 +00:00
morse%netscape.com
44b4767079 bug 109360, image blocking blocks wrong server, r=andre, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@108025 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:37:45 +00:00
mscott%netscape.com
df1295094c Bug #109923 --> register chrome in the installer for messenger-smime
git-svn-id: svn://10.0.0.236/trunk@108024 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 06:17:18 +00:00
seawood%netscape.com
e72b14ebec Only allow XP_AssertAtLine/XP_ASSERT to print to console in debug builds.
Bug #78647 r=bryner


git-svn-id: svn://10.0.0.236/trunk@108023 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 05:43:59 +00:00
dbaron%fas.harvard.edu
f9e51525af Add code for trace-malloc based leak/bloat test (but no option to enable yet). b=84831 r=mcafee
git-svn-id: svn://10.0.0.236/trunk@108021 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 05:35:25 +00:00
leaf%mozilla.org
9a86a07b1b Automated update
git-svn-id: svn://10.0.0.236/trunk@108019 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 05:13:03 +00:00
seawood%netscape.com
63fdb0b574 Attempt to compile simple X11 program to verify that X11 headers exist.
Bug #83822


git-svn-id: svn://10.0.0.236/trunk@108018 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 05:11:00 +00:00
naving%netscape.com
da4c44e528 108774. r/sr=bienvenu. Make copying multiple messages work for 2nd pop3 acct.
git-svn-id: svn://10.0.0.236/trunk@108017 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 05:06:02 +00:00
seawood%netscape.com
3ad38bcf0b Update standalone xpconnect to handle js/xpconnect split.
Bug #104307 sr=jband


git-svn-id: svn://10.0.0.236/trunk@108016 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:54:14 +00:00
seawood%netscape.com
54111460c9 Build libmozjs during the install phase.
Bug #104307 sr=jband


git-svn-id: svn://10.0.0.236/trunk@108015 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:52:55 +00:00
cmanske%netscape.com
12889f5b49 Added 'Edit Link in New Composer' menuitem to Composer context menu, b=97425, r=hewitt, sr=kin
git-svn-id: svn://10.0.0.236/trunk@108014 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:33:42 +00:00
seawood%netscape.com
f922174b1f Removing obsolete files from tree.
Bug #102787 r=pierre


git-svn-id: svn://10.0.0.236/trunk@108013 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:13:46 +00:00
seawood%netscape.com
fe85f33fbb Removing obsolete xpcom/remote files.
Bug #102787 r=igor.kushnirskiy@sun.com


git-svn-id: svn://10.0.0.236/trunk@108012 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:10:51 +00:00
seawood%netscape.com
977f1f7fe7 Use -no-cpp-precomp instead of -traditional-cpp for darwin
Bug #106617


git-svn-id: svn://10.0.0.236/trunk@108011 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 04:01:43 +00:00
seawood%netscape.com
60d7c851aa Generate staticmod makefile when building meta components too.
git-svn-id: svn://10.0.0.236/trunk@108009 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:50:32 +00:00
jake%acutex.net
ff3e46489b We don't really need to look for fragments that are pulled in by [% INCLUDE %] or [% PROCESS %]. While removing this code bit doesn't allow us to seperatly check that those fragments exist and compile, they'll be checked atomatically when the the template that wants them is run through the process() routine by the 004template.t test. This issue was raised because bug 98707 introduced a [% BLOCK %] element and the syntax for using that is the same as for including a template fragment.
git-svn-id: svn://10.0.0.236/trunk@108008 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:44:07 +00:00
pete%alphanumerica.com
7b12a0334d b=108925, r=shaver, sr=jst
patch to remove symlinked dirs when recursive flag is set to false

--pete


git-svn-id: svn://10.0.0.236/trunk@108007 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:42:59 +00:00
dbaron%fas.harvard.edu
d11d813ea8 Add unicharutils static library.
git-svn-id: svn://10.0.0.236/trunk@108006 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 03:08:55 +00:00
bzbarsky%mit.edu
d29525429f Fix bustage -- add unicharutil to REQUIRES
git-svn-id: svn://10.0.0.236/trunk@108005 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 02:46:58 +00:00
seawood%netscape.com
17a9830da0 Removing unused unix-jar.mn
Bug #106375 r=lordpixel


git-svn-id: svn://10.0.0.236/trunk@108004 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 02:42:07 +00:00
dbaron%fas.harvard.edu
6dad459f6f Fix xmlterm bustage, and make it faster too. r=bzbarsky b=104159
git-svn-id: svn://10.0.0.236/trunk@108003 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 02:41:03 +00:00
serge%netscape.com
8d0828d01d bug#99080 using plugger, makes the temp file huge; r=peterl; sr=dougt
git-svn-id: svn://10.0.0.236/trunk@108002 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 02:15:57 +00:00
mscott%netscape.com
fb6e98659b Bug #109931 --> delay construction of the long email address view
until the user actually puts us in expanded email addresses mode.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@108001 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 02:07:39 +00:00
attinasi%netscape.com
c4a9b2e2c7 Fixing image that was added non-binary
git-svn-id: svn://10.0.0.236/trunk@108000 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:56:39 +00:00
av%netscape.com
feeeb9c6e5 109973 -- passing plugin creation parameters to the plugin instance, not part of the build
git-svn-id: svn://10.0.0.236/trunk@107999 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:54:11 +00:00
dbaron%fas.harvard.edu
d3a1b4c5f8 FizillaMach: Make the Quit menu item work by checking the command attribute in nsMenuBarX::ExecuteCommand as in nsMenuItemX::DoCommand. b=107212 r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@107998 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:53:33 +00:00
dbaron%fas.harvard.edu
09e9d89450 FizillaMach: Further refine the XP_MACOSX / MOZ_WIDGET_TOOLKIT=mac ifdefs. b=109165 r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@107997 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:48:17 +00:00
av%netscape.com
899918a8be 109973 -- SDK sample code, passing plugin creation parameters to the plugin instance, not part of the build
git-svn-id: svn://10.0.0.236/trunk@107996 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:47:28 +00:00
dbaron%fas.harvard.edu
4d7fae424c FizillaMach: Create MozillaDebug.app for DEBUG builds rather than Mozilla.app. b=109939 r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@107995 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:45:03 +00:00
leaf%mozilla.org
a4018d9ea9 Automated update
git-svn-id: svn://10.0.0.236/trunk@107994 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:43:06 +00:00
seawood%netscape.com
0186c61d8d Add hooks for building calendar. r=bryner
git-svn-id: svn://10.0.0.236/trunk@107993 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:40:53 +00:00
dbaron%fas.harvard.edu
d1c83fa406 Reduce string copying by using |operator+| to form dependent concatenations. b=106153 r=jag sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107992 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:38:55 +00:00
dbaron%fas.harvard.edu
27085c8d89 Reduce allocations by using the buffering in nsXMLContentSink. b=106153 r=jag sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107991 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:37:43 +00:00
wtc%netscape.com
390af0f971 Bugzilla bug 109389: changed the PLEvent event receiver window class
name to say "XPCOM" instead of "NSPR".  r=dougt.  sr=alecf.


git-svn-id: svn://10.0.0.236/trunk@107990 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:37:41 +00:00
timeless%mac.com
e33abfe1ce Bugzilla Bug 87792 Fix accesskeys based on new flexibility
patch by slate@gwu.edu r=aaronl sr=ben


git-svn-id: svn://10.0.0.236/trunk@107989 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:37:35 +00:00
sspitzer%netscape.com
2bde81b92b fix for #108264, problems with autosubscribe dialog on linux.
fix for #68303 and #109537. problems with auto-subscribe / auto-unsubscribe when newsgroup has non-ASCII chars in the name.

patches by hwaara.  r/sr=sspitzer,alecf


git-svn-id: svn://10.0.0.236/trunk@107988 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:37:28 +00:00
bzbarsky%mit.edu
068756d821 Use NS_LITERAL_STRING instead of NS_ConvertASCIItoUCS2 where possible
(i.e. where the string is a literal).  Bug 104159, r=jag, sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107987 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:33:42 +00:00
rangansen%netscape.com
56b339685e bug# 109072 ; s-kaie ; sr=hewitt Fixing the blank cert details tab problem
git-svn-id: svn://10.0.0.236/trunk@107986 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:32:21 +00:00
wtc%netscape.com
a3600d2ad1 Bugzilla bug 104645: Fixed compiler warnings. Improved compiler warning
fixes.  r=mcafee.
Modified files: src/h_page.c src/hash.c tests/lots.c


git-svn-id: svn://10.0.0.236/trunk@107984 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:31:11 +00:00
alecf%netscape.com
6c7c586272 REQUIRES cleanup
git-svn-id: svn://10.0.0.236/trunk@107983 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:28:24 +00:00
leaf%mozilla.org
6aea6acbdd Automated update
git-svn-id: svn://10.0.0.236/trunk@107982 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:28:01 +00:00
smontagu%netscape.com
7b6125768b Change the definition of IS_ARABIC_ALPHABETIC to correct the display of Persian and Urdu numerals. Bug 82347, r=mkaply, sr=kin
git-svn-id: svn://10.0.0.236/trunk@107981 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:26:21 +00:00
seawood%netscape.com
869f09ca92 Remove reference to defunct libIDL homepage.
Bug #109901


git-svn-id: svn://10.0.0.236/trunk@107979 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:24:19 +00:00
seawood%netscape.com
f206ab690e Generate proper tarball name for cross-compile builds. Use target name instead of build name.
git-svn-id: svn://10.0.0.236/trunk@107978 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:22:10 +00:00
sfraser%netscape.com
2f9cc4b128 Fix for blocker bug 109893. Comment out line that adds the plugins folder to the XPT search paths, to avoid errors when trying to look in MRJPlugin.jar for .xpt files on Mac. r=jband/a=sleestack
git-svn-id: svn://10.0.0.236/trunk@107977 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 01:14:08 +00:00
smeredith%netscape.com
15b788703c Merged SeamonkeyCCK_6_2_BRANCH with trunk.
git-svn-id: svn://10.0.0.236/trunk@107973 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-14 00:23:13 +00:00
bryner%netscape.com
12a77bd184 Fixing smoketest blocker 109870 - crashes when favicon doesn't exist. r=dbaron ,sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@107972 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 23:35:12 +00:00
jpierre%netscape.com
e21447d1e0 Fix OS/2 build
git-svn-id: svn://10.0.0.236/trunk@107970 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 21:38:54 +00:00
sfraser%netscape.com
47bff0a065 Fix for blocker bug 109893; update packages-mac after I changed gfx/widget to be component DLLs. r=pink, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@107967 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 19:47:31 +00:00
pschwartau%netscape.com
f0a1c21adf Adding another case to test.
git-svn-id: svn://10.0.0.236/trunk@107966 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 19:46:27 +00:00
mikep%oeone.com
4b15498292 Fixed bug 109262, alarms resetting their unit values.
git-svn-id: svn://10.0.0.236/trunk@107965 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 19:45:11 +00:00
dinglis%qnx.com
ed80e9ad92 -not part of build -
fixed crash when creating a scriptable Region


git-svn-id: svn://10.0.0.236/trunk@107964 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 19:25:32 +00:00
gerv%gerv.net
8891347238 Fix license headers and make attachment changed page look like bug changed page. Bug 99518 and 98110. r-myk, no second review.
git-svn-id: svn://10.0.0.236/trunk@107963 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 17:24:24 +00:00
mikep%oeone.com
9affe1d153 Changes made to get the calendar working under the nightlies because of XUL changes.
git-svn-id: svn://10.0.0.236/trunk@107962 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 16:39:15 +00:00
dinglis%qnx.com
b5c475787c - not part of build -
fix up bustage.


git-svn-id: svn://10.0.0.236/trunk@107960 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 15:49:51 +00:00
jaggernaut%netscape.com
4cfd160b80 Bug 15050, bug 109650: if user starts typing after page load kicks off, but before it replaces the url, don't overwrite what the user just typed, but do update the rest of the UI, doh!, and make sure switching tabs does replace what the user typed. r=ben, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@107956 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 09:00:22 +00:00
hyatt%netscape.com
0d5d8dd51e Turn on favicons in Mozilla. r=glazou, bryner, sr=ben,hewitt, bug 109843
git-svn-id: svn://10.0.0.236/trunk@107955 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 08:55:23 +00:00
seawood%netscape.com
5966f2478a Use separate shell process for cvs pulls so that 'make -n -f client.mk' doesn't attempt to pull from cvs.
Bug #71200


git-svn-id: svn://10.0.0.236/trunk@107954 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 08:38:56 +00:00
dbaron%fas.harvard.edu
f6e15b701a Adding newline to end of file to fix HP bustage.
git-svn-id: svn://10.0.0.236/trunk@107953 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:59:24 +00:00
bryner%netscape.com
c9ba9c64dc Adding support for building calendar by having MOZ_CALENDAR=1 set. r=cls.
git-svn-id: svn://10.0.0.236/trunk@107952 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:57:31 +00:00
seawood%netscape.com
8f720e0943 Update mail meta modules list to handle smime.
Bug #109432 r=bryner


git-svn-id: svn://10.0.0.236/trunk@107951 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:48:26 +00:00
rpotts%netscape.com
168c3705c6 bug #106558 (r=darin) again! make sure that all initial stream errors prevent the creation of a content viewer!
git-svn-id: svn://10.0.0.236/trunk@107950 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:47:22 +00:00
bstell%netscape.com
ee96d98681 follow up for bug 102113, per Brendan's request
change the name from dummy to align, no other change


git-svn-id: svn://10.0.0.236/trunk@107949 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:36:38 +00:00
hyatt%netscape.com
a9b4cb7515 Fix handledomevent to work with custom eventts in XUL. r=jag, sr=hewitt, bug 109831
git-svn-id: svn://10.0.0.236/trunk@107947 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 07:00:21 +00:00
alecf%netscape.com
30649c62ba remove some DEBUG_alecf's - no bug, not affecting anything...
git-svn-id: svn://10.0.0.236/trunk@107946 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 05:46:51 +00:00
dbaron%fas.harvard.edu
0aa3ce9bc2 Adding / removing files for hyatt. b=106153
git-svn-id: svn://10.0.0.236/trunk@107945 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 04:19:47 +00:00
hyatt%netscape.com
b4e87bafad Fix for 106153, don't build a content model for XBL's implementation. r=bryner, sr=ben
git-svn-id: svn://10.0.0.236/trunk@107944 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 04:09:56 +00:00
hyatt%netscape.com
3a488100eb 106153. convert property to field in XBL. r=bryner, sr=ben
git-svn-id: svn://10.0.0.236/trunk@107943 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 04:08:55 +00:00
sonja.mirtitsch%sun.com
40e8999e40 made cronsafe (I hope)
git-svn-id: svn://10.0.0.236/trunk@107942 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 03:28:52 +00:00
sspitzer%netscape.com
914e467a98 more work on #73868. converting ab from tree to outliner. NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@107941 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 02:13:58 +00:00
kirk.erickson%sun.com
072424c974 Resolves 107777 - selfserv needs log stats mode
git-svn-id: svn://10.0.0.236/trunk@107940 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 02:13:19 +00:00
seawood%netscape.com
a19730ed38 Link against xinerama libs in static build if xinerama is enabled.
Bug #109245 r=lidl@pix.net


git-svn-id: svn://10.0.0.236/trunk@107939 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 01:48:29 +00:00
sonja.mirtitsch%sun.com
d35e81719f attempt to copy the qa results to mozilla.
this version untars with a script on mozilla, last one filled up my homedirectory
umask 000
cd /home/ftp/pub/security/nss
gunzip all.tar.gz
tar xf all.tar
rm  all.tar.gz all.tar
ls -l


git-svn-id: svn://10.0.0.236/trunk@107938 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 01:30:21 +00:00
shanjian%netscape.com
805f57c60f #108012 text measurment on win xp have problem with unicode while word-spacing and letter-spacing is present
r= smontagu sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107934 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 00:51:22 +00:00
av%netscape.com
04e70594d1 Bug 109041 -- adding call to NPP_SetWindow for windowless plugins on paint event, patch by dbrittain@superscape.com, r=av, sr=beard
git-svn-id: svn://10.0.0.236/trunk@107933 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 00:30:44 +00:00
sspitzer%netscape.com
53271138d8 more work on #73868. converting ab from tree to outliner.
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@107932 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 00:16:18 +00:00
sspitzer%netscape.com
e8b3e5a4d2 fix for #109278. can't edit existing addressbook cards.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107931 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-13 00:13:15 +00:00
smontagu%netscape.com
9d803d9084 Recheckin of fix to bug 104792, which was killed by checkin on bug 104874. r=rods, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107930 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 22:31:32 +00:00
seawood%netscape.com
1a286497ca Since we automatically generate the toplevel configure, make RUN_AUTOCONF_LOCALLY *always* remove all of the configure files before pulling and regenerate them after pulling.
Bug #47989 r=mkaply


git-svn-id: svn://10.0.0.236/trunk@107929 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 21:57:55 +00:00
smontagu%netscape.com
df20575389 To fix Mac bustage
git-svn-id: svn://10.0.0.236/trunk@107928 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 21:40:03 +00:00
sspitzer%netscape.com
50fef1cc5e partial fix for #108751.
the SearchDialog no longer includes dialogOverlay.xul, so this function is not defined.

r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107927 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 21:03:10 +00:00
smontagu%netscape.com
5005056c08 Fix for bug 81773: Bidi XUL text (e.g. bookmarks, tab titles) was flipping to and fro on systems without native Bidi support. r=mkaply, r/sr=hyatt, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107926 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 20:51:48 +00:00
kaie%netscape.com
0ba5bc52ae b=108735 Fix large blank space in cert manager
r=kaie sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@107925 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 20:29:31 +00:00
seawood%netscape.com
43d2254ded Use proper module name for smime & make local function static.
Fixing static build bustage
Bug #109575 r=bryner sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107924 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 20:16:48 +00:00
relyea%netscape.com
b1be3f4016 1) bug 95135 - DSA key fails 1 out of 8 times, causing intermitant
test failures.

Fix: use the Signed attribute to store the key as well as look it up.

2) Fix code so that looking up a public key won't crash if it can't find the
corresponsing private key in the database (found by code inspection).


git-svn-id: svn://10.0.0.236/trunk@107923 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 17:59:45 +00:00
ccarlen%netscape.com
6105575789 Bug 108383 - no user prefs if starting mozilla with -p. r=bnesse/sr=alecf
git-svn-id: svn://10.0.0.236/trunk@107922 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 15:52:58 +00:00
jake%acutex.net
9b3a845780 Fix for bug 86300 - If a bug didn't exist and GetBugLink() tried to create a tooltip for it, you'd get uninitialized variables warnings in your error log. This path also introduces a cache so if the same bug # is mentioned more than once during the same running of the script, it only has to query the database once.
r= mattyt, gerv


git-svn-id: svn://10.0.0.236/trunk@107921 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 13:43:59 +00:00
sspitzer%netscape.com
b1ff4140ee more changes for converting addressbook results pane from tree to outliner.
NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@107920 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 12:28:38 +00:00
ben%netscape.com
70aa6dba85 Adding Download Manager component & initial interface, datasource, etc.
not part of build


git-svn-id: svn://10.0.0.236/trunk@107918 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 08:57:42 +00:00
hyatt%netscape.com
a686fc891b Fix to convert property to field. 106153. r=hixie, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107917 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 07:28:30 +00:00
bbaetz%cs.mcgill.ca
58006fb10f Oops. Bug 109690 again, r=justdave, gerv
git-svn-id: svn://10.0.0.236/trunk@107916 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 05:47:24 +00:00
bbaetz%cs.mcgill.ca
c2a13c0ac1 Bug 109690: Check $bug before using it.
r=justdave,gerv


git-svn-id: svn://10.0.0.236/trunk@107915 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 05:39:14 +00:00
kaie%netscape.com
50d50d5f9c b=103198 Make sure master preferences panel fits.
r=kaie sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107913 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 05:07:23 +00:00
kaie%netscape.com
9a8dea60ee b=108625 Fix regression / XUL value attribute assignment
r=ddrinan sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107912 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 04:57:53 +00:00
rweltman%netscape.com
f244ffbdd6 Use explicit imports
git-svn-id: svn://10.0.0.236/trunk@107908 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 01:32:07 +00:00
rweltman%netscape.com
035ed46bb5 Use real javax.security.sasl package instead of Sun preview
git-svn-id: svn://10.0.0.236/trunk@107907 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 01:31:41 +00:00
rweltman%netscape.com
85b98e0160 Added sasl.jar and jnet.jar to the build CLASSPATH
git-svn-id: svn://10.0.0.236/trunk@107906 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 01:29:33 +00:00
peterv%netscape.com
39d48aedbb Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead. Not part of the build. r=jag, rs=scc.
git-svn-id: svn://10.0.0.236/trunk@107905 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 01:22:31 +00:00
rweltman%netscape.com
62a52afd0c November 11, 2001 implementation of javax.security.sasl
git-svn-id: svn://10.0.0.236/trunk@107904 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-12 00:58:53 +00:00
bzbarsky%mit.edu
8a3a1251d3 Fix pasting into password boxes with middle-mouse paste. Bug 109520,
r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@107902 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 22:52:18 +00:00
seawood%netscape.com
c2069142e7 Add xpcom/glue
git-svn-id: svn://10.0.0.236/trunk@107901 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 22:46:29 +00:00
brendan%mozilla.org
589201c307 Avoid ClaimScope (lock-free to -full transition) in JS_GetClass and js_FinalizeObject called from the GC (109183, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@107900 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 21:25:13 +00:00
dbaron%fas.harvard.edu
3d164442b1 Attempt to fix HP runtime bustage. b=83836
git-svn-id: svn://10.0.0.236/trunk@107899 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 20:46:42 +00:00
peterv%netscape.com
46a634bc19 Adding namespaces and tbodies. Testcase, not part of the build. r=sicking.
git-svn-id: svn://10.0.0.236/trunk@107898 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 20:40:56 +00:00
dbaron%fas.harvard.edu
70936bf2ff Fix nsDependentString assertions when using history window, part 2. b=109172 r=jag sr=alecf
git-svn-id: svn://10.0.0.236/trunk@107897 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 20:37:53 +00:00
jband%netscape.com
aa380de8e9 fix bug 106122. build xpt file search path based on NS_XPCOM_COMPONENTS_DIR *and* NS_APP_PLUGINS_DIR_LIST. Also, correctly detect that search path has changed - even when the change is just appended items. r=ccarlen sr=jst.
git-svn-id: svn://10.0.0.236/trunk@107895 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 19:01:00 +00:00
sicking%bigfoot.com
b474cb8a97 [Not part of build]
Make standalone TransforMiiX build again. Fix merge-conflict resolved the wrong way.

No bug. r=hwaara.


git-svn-id: svn://10.0.0.236/trunk@107894 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 17:40:44 +00:00
ian%hixie.ch
2f70d2e668 Some very primitive default HTML output files for login.accessDenied and login.detailsSent.
git-svn-id: svn://10.0.0.236/trunk@107893 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 15:37:48 +00:00
ian%hixie.ch
b7cb0633c4 We should be able to access strings with uppercase letters -- oops. Changing regexp to include 'A-Z' as well as 'a-z'. Also adding a dump statement in the failure case to help when analysing the log looking for a bug.
git-svn-id: svn://10.0.0.236/trunk@107892 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 15:33:59 +00:00
ian%hixie.ch
cac8ba4310 Missed a return statement in the setupInstall method. This was causing setup to fail every time, because the function returned a defined value. Also took the opportunity to add a call to setupProgress.
git-svn-id: svn://10.0.0.236/trunk@107891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 11:54:06 +00:00
ian%hixie.ch
87506d5097 Missed a return statement in the setupInstall method. This was causing setup to fail every time, because the function returned a defined value.
git-svn-id: svn://10.0.0.236/trunk@107890 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 11:48:14 +00:00
ian%hixie.ch
3176c0d2a4 Should have been checking for a defined value, not a true value -- there is nothing to stop a failure from being '0', for instance. (The important thing is to be consistent with the SelectingServiceList code, really, and it uses defined().)
git-svn-id: svn://10.0.0.236/trunk@107889 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 11:47:02 +00:00
seawood%netscape.com
0d2c3d6058 more beos bustage fixing
git-svn-id: svn://10.0.0.236/trunk@107888 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 09:43:48 +00:00
ian%hixie.ch
ba16dd127e Implement a module to give the main application the ability to add rights and do other configuration related stuff.
git-svn-id: svn://10.0.0.236/trunk@107887 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 09:36:02 +00:00
mcafee%netscape.com
90735d6f61 Switching to arg form of system call to avoid security hole (76109)
git-svn-id: svn://10.0.0.236/trunk@107886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 09:08:56 +00:00
mcafee%netscape.com
943edc668f typo! fixes bug
git-svn-id: svn://10.0.0.236/trunk@107884 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 08:30:21 +00:00
morse%netscape.com
7b7937b807 bug 109411, prevent malloc of 0, c=pedemonte, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@107883 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 08:27:05 +00:00
seawood%netscape.com
572298288c Fixing beos bustage. who needs the lxr lesson?
git-svn-id: svn://10.0.0.236/trunk@107882 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 08:26:18 +00:00
ian%hixie.ch
e1e5a2a6f1 Mute the Net::AIM warnings and add some null-checking code to the close() method.
git-svn-id: svn://10.0.0.236/trunk@107881 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 08:08:26 +00:00
blakeross%telocity.com
0744b9ee00 changing timeout to 0, r/sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107874 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 04:41:48 +00:00
blakeross%telocity.com
8c11ea56e0 73748 - Stop loading nsJSSupportsUtils.js and nsJSComponentManager.js on startup. r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@107873 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 04:20:01 +00:00
ian%hixie.ch
7dc7a687d2 First stab at primitive AIM output support as an alternative to e-mail.
git-svn-id: svn://10.0.0.236/trunk@107872 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 04:18:09 +00:00
bzbarsky%mit.edu
0220720066 Fixing bogus indentation that I missed (checked in old version of
patch). bug 84599 reprise, r=glazou, sr=attinasi (still).


git-svn-id: svn://10.0.0.236/trunk@107871 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 03:56:49 +00:00
bryner%netscape.com
36c48a1f6a Fixing startup crash. sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@107869 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 02:48:05 +00:00
dbaron%fas.harvard.edu
cbbd6fb539 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=jag, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107868 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:57:33 +00:00
dbaron%fas.harvard.edu
52148e4d9c Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=jag, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107867 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:52:04 +00:00
dbaron%fas.harvard.edu
67028224e2 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=jag, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107866 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:42:10 +00:00
dbaron%fas.harvard.edu
01e7c5fab7 Avoid applying all default rendering of HTML's table element to anonymous table objects. b=72358 r=hixie sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107865 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:35:25 +00:00
dbaron%fas.harvard.edu
278dd22f03 Fix nsDependentString assertions when using history window. b=109172 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@107864 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:27:30 +00:00
bryner%netscape.com
b142df599a added files: mozilla/content/xbl/src/nsXBLPrototypeResources.cpp, mozilla/content/xbl/src/nsXBLResourceLoader.cpp
git-svn-id: svn://10.0.0.236/trunk@107863 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:21:33 +00:00
waterson%netscape.com
06395bc517 Bug 109143. Search datasource should return a valid result set from GetTargets now that we're suppressing re-entrant content builds. r=rjc, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107862 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:16:08 +00:00
hyatt%netscape.com
6ab421ca7c Fix for 106153, dont build a content model for XBL <resources>, r=bryner, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107861 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 01:15:22 +00:00
ian%hixie.ch
79a6f20984 Fix typo (PLIFF->PLIF)
git-svn-id: svn://10.0.0.236/trunk@107860 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 00:58:48 +00:00
pete%alphanumerica.com
6ca4d43048 b=53596, r=dougt, sr=brendan
nsLocalFileUnix fix for ::GetLeafName not working on relative paths

--pete


git-svn-id: svn://10.0.0.236/trunk@107859 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 00:15:28 +00:00
ian%hixie.ch
52581f47aa Fix the DESTROY method to actually call the close() method like it was supposed to.
git-svn-id: svn://10.0.0.236/trunk@107858 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-11 00:14:07 +00:00
dbaron%fas.harvard.edu
9527b379c7 Fix bustage. b=109165
git-svn-id: svn://10.0.0.236/trunk@107857 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 23:55:36 +00:00
dbaron%fas.harvard.edu
e619d6fc7c Pull computation of loop invariants for rule matching out of outer loop (over rule processors) as well, from SelectorMatchesData in nsCSSStyleSheet to RuleProcessorData in nsStyleSet. Use the RuleProcessorData structure in nsHTMLStyleSheet as well. Simplify matching of :-moz-bound-element pseudo-class. b=83836 r=waterson, pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107856 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 23:51:45 +00:00
dbaron%fas.harvard.edu
7a3e6639d5 Tweak XP_MACOSX ifdefs to fix keyboard shortcuts (partly), context menus, and hidden window behavior and build the mac classic skin in the Mach-O build. b=109165 r=pinkerton sr=beard
git-svn-id: svn://10.0.0.236/trunk@107855 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 23:30:13 +00:00
jband%netscape.com
37eba2b798 not part of build. Now that null DOM strings are correctly supported we can fix the test case
git-svn-id: svn://10.0.0.236/trunk@107854 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:35:26 +00:00
jaggernaut%netscape.com
e377996066 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107853 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:20:21 +00:00
ian%hixie.ch
3a9a356b60 Change the order of the settings so as to match the order in which they are requested. This causes the error message to mention the setting that the user aborted on, instead of some random later setting.
git-svn-id: svn://10.0.0.236/trunk@107852 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:06:54 +00:00
ian%hixie.ch
30f7d9e23f Change createArgument so that we drop the default on the floor -- the default should only be used when explicitly requested (e.g. by the user in interactive mode), not in all cases. CommandLine.pm was in fact already assume that this was the case.
git-svn-id: svn://10.0.0.236/trunk@107851 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:04:34 +00:00
jaggernaut%netscape.com
85bf8c8fb4 Bug 53057: Removing implicit |CharT*| conversion operator for nsCString, r=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107850 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 22:00:31 +00:00
ian%hixie.ch
38d0af9333 Switching to batch mode involves changing the 'batch' argument, not the one being requested... ahem.
git-svn-id: svn://10.0.0.236/trunk@107849 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:59:13 +00:00
ian%hixie.ch
e7f0b0e6e4 Bracket shuffling to fix a warning in Perl 5.0.x.
git-svn-id: svn://10.0.0.236/trunk@107848 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:57:07 +00:00
ian%hixie.ch
d793a48053 Handle the case where the user hits Ctrl+D during input, and the case where the user piped a file into us and the file was too short.
git-svn-id: svn://10.0.0.236/trunk@107847 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:53:49 +00:00
ian%hixie.ch
c56420bdaf Correct an error in the default handler of the namespaced XML walker: we have to shift out the first argument otherwise weird things will naturally happen.
git-svn-id: svn://10.0.0.236/trunk@107846 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:44:28 +00:00
jaggernaut%netscape.com
edf1c61246 Bug 15050: page load shouldn't overwrite text typed into the url bar. r=hewitt, sr=ben
git-svn-id: svn://10.0.0.236/trunk@107845 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:38:28 +00:00
ian%hixie.ch
7d3015eda3 The User object was not saving anything if its userID started off as undef (i.e., new user) and the code never changed any properties (which is normal for a new user). Changed the code to automatically assume it is dirty if it starts with an undefined userID. Changed writeProperties to use the return value from the data source to save any changes to userID, so that when it is defined (by inserting a new record, probably) then we can remember it. Finally, changed propertySet so that when userID is changed from an undefined value to a defined value, the change is propagated to the fields and the groups are marked dirty, which will force them to be written out too.
git-svn-id: svn://10.0.0.236/trunk@107843 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 21:00:37 +00:00
ian%hixie.ch
85565622cc Fix the output template to support multiple authentication protocols now that the code is not lying about that.
git-svn-id: svn://10.0.0.236/trunk@107842 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:55:39 +00:00
ian%hixie.ch
6c7a644159 Changed a comment in UserField.pm to be more accurate: it is actually safe to change the userID on the fly from an undefined value to a defined value because the code only uses it at two points: creation, if it was defined (used by the caller) and destruction (at which point it is passed to the data source to save any changes).
git-svn-id: svn://10.0.0.236/trunk@107841 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:53:37 +00:00
ian%hixie.ch
1c45721015 s/smtp/email/go -- have to be consistent with the rest of the code\!
git-svn-id: svn://10.0.0.236/trunk@107840 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:46:29 +00:00
ian%hixie.ch
6738fc00b6 Return the user ID even when the user exists, so that there is no need for callers to check the return value.
git-svn-id: svn://10.0.0.236/trunk@107839 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:43:44 +00:00
ian%hixie.ch
b4a63e1b65 Fixing ill-formedness error.
git-svn-id: svn://10.0.0.236/trunk@107838 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:34:00 +00:00
mcafee%netscape.com
02e56d096c fixing perl error
git-svn-id: svn://10.0.0.236/trunk@107837 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 20:21:38 +00:00
mcafee%netscape.com
ec2a2ad12c Switching to proper log-header variable
git-svn-id: svn://10.0.0.236/trunk@107836 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 19:26:42 +00:00
gerv%gerv.net
114dd11eed Bug 108177 - change Henrik Gemal's email address to mozilla@gemal.dk . r=gerv, auto-sr=brendan. Comment changes only.
git-svn-id: svn://10.0.0.236/trunk@107835 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 19:10:40 +00:00
waterson%netscape.com
ca9282e17c Bug 109505. Dumb typo. Use iterator variable when looking for template builder.
git-svn-id: svn://10.0.0.236/trunk@107834 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 18:45:02 +00:00
loadrunner%betak.net
3c651c0153 bug 64146, Delay nsCharsetMenu initialization to avoid consuming ~2% of startup time, r=dp, sr=brendan,alecf (this file didn't make it into M096)
git-svn-id: svn://10.0.0.236/trunk@107833 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 17:39:50 +00:00
bzbarsky%mit.edu
7d6358f8fc Fix getComputedStyle() position/size calculations. Bug 84599 and bug
94855, r=glazou, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107832 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 17:29:04 +00:00
alecf%netscape.com
4fda431336 NOT PART OF BUILD
for bug 102043 and bug 71482 - update nsHistoryLoadListener to support redirected URLs, and to update titles through nsIBrowserHistory


git-svn-id: svn://10.0.0.236/trunk@107831 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 16:37:19 +00:00
ian%hixie.ch
4b6476a5c9 implemented getFieldNamesByCategory() in the user data source, and used it to fill in the list of contact methods for the loginFailed output handler.
git-svn-id: svn://10.0.0.236/trunk@107830 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 10:55:33 +00:00
ian%hixie.ch
be63bbfcfc Made the phrase 'or to have your password sent to you,' appear regardless of the value of data.tried
git-svn-id: svn://10.0.0.236/trunk@107829 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 10:51:10 +00:00
dp%netscape.com
d13f63a9db fixed dup printing
git-svn-id: svn://10.0.0.236/trunk@107828 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 09:18:45 +00:00
dp%netscape.com
29e6249ac1 first version
git-svn-id: svn://10.0.0.236/trunk@107827 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 08:54:53 +00:00
jst%netscape.com
0936a7cef0 Checking in Jonas Sicking's <sicking@bigfoot.com> fix for bug 109154. Make this code not suck as much, don't use GetPrimaryFrame() when there's no need to. r=jkeiser@iname.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107826 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 08:25:16 +00:00
jkeiser%iname.com
ecfc39a688 Null-safety checks (bug 108808). r=rods@netscape.com, sr=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107825 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 07:45:15 +00:00
jst%netscape.com
ad66f47ab5 Checking in Fabian's <hidday@geocities.com> patch for bug 105640. Add support for IE's document.compatMode property. r=sicking@bigfoot.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107824 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 07:36:19 +00:00
stephend%netscape.com
a7e8288316 Bug 107188. Help tooltip not correct or localizable. r=oeschger@netscape.com, sr=hewitt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107823 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 06:34:16 +00:00
ian%hixie.ch
5c49903375 Fix a typo on the To: line which was resulting in a blank To: field, made the Subject: line be dynamically generated, and made the text actually be useful.
git-svn-id: svn://10.0.0.236/trunk@107822 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 06:26:28 +00:00
mcafee%netscape.com
b418eb136e proper checking for scrape_builds data
git-svn-id: svn://10.0.0.236/trunk@107821 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 06:01:35 +00:00
ian%hixie.ch
77fb90f83b Oops, syntax error.
git-svn-id: svn://10.0.0.236/trunk@107820 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 05:21:17 +00:00
ian%hixie.ch
ab2a33bd20 Use the actual From: address (now that the outputter tells us what it is...).
git-svn-id: svn://10.0.0.236/trunk@107819 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 05:12:06 +00:00
ian%hixie.ch
7ba9f2d1c5 Added another set of data to the data hash: the outputter hash. This will be useful for strings that have to embed things like the e-mail address of the application itself. Added hash methods to the Email and Stdout generic outputter modules to support this change. Renamed 'from' to 'address' in the Email outputter to make it easier to reuse the code (hehe). Also, in the same module, changed some of the comments, changed a double quote string literal to a single quote string literal, and added the word 'configure' where it was missing in one of the dump statements.
git-svn-id: svn://10.0.0.236/trunk@107818 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 05:00:14 +00:00
bstell%netscape.com
2aec1606d4 bug 107019: anti-aliased glyph code
r=yokoyama@netscape.com, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107817 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 04:41:18 +00:00
bstell%netscape.com
811171d8cb bug 107019 anti-aliased glyph C++ object code
r=yokoyama@netscape.com, sr=blizzard@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107816 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 04:39:57 +00:00
bstell%netscape.com
f607d9793e bug 102133: fix 64 bit solaris crash
r=shanjian@netscape.com, sr=brendan@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107815 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 04:20:55 +00:00
sfraser%netscape.com
931a22f26b Fix the carbon build.
git-svn-id: svn://10.0.0.236/trunk@107814 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 03:28:05 +00:00
pschwartau%netscape.com
388f6c3fbb Fixing a typo.
git-svn-id: svn://10.0.0.236/trunk@107813 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 02:47:52 +00:00
pschwartau%netscape.com
df7a557ec3 Adding another case to test.
git-svn-id: svn://10.0.0.236/trunk@107812 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 02:46:24 +00:00
law%netscape.com
e9cd5892c6 New tools for measuring startup with a minimalist 'Navigator'
git-svn-id: svn://10.0.0.236/trunk@107811 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 02:40:13 +00:00
blakeross%telocity.com
3ec8782659 109207 - stop loading brand.dtd three additional times on startup. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107809 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:51:44 +00:00
mcafee%netscape.com
776256bb10 Fixing tab makefile bustage
git-svn-id: svn://10.0.0.236/trunk@107808 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:33:55 +00:00
naving%netscape.com
43405e0d52 104504 r/sr=darin. Null out the listeners once we are done with read requests. This fixes
nsImapCacheStreamListener and nsNntpCacheStreamListener leaks.


git-svn-id: svn://10.0.0.236/trunk@107807 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:13:06 +00:00
morse%netscape.com
d534e8ff3c bug 68136, full screen mode, r/sr=ben/alecf
git-svn-id: svn://10.0.0.236/trunk@107806 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:12:37 +00:00
rbs%maths.uq.edu.au
e929b26421 fix typo that caused font download to stop working. b=106633 r=yokoyama s=waterson
git-svn-id: svn://10.0.0.236/trunk@107805 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:10:39 +00:00
sfraser%netscape.com
4129548ff2 Change to convert Widget and Gfx into component DLLs on Mac, bug 94434. r=pchen, sr=beard/darin
git-svn-id: svn://10.0.0.236/trunk@107804 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 01:05:03 +00:00
morse%netscape.com
e37ddd0cda bug 109325, crash in cookie module, r=ccarlen, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@107803 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:58:59 +00:00
curt%netscape.com
943b0a4c74 Moved upgradeClean ahead of file copy.
git-svn-id: svn://10.0.0.236/trunk@107801 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:41:16 +00:00
mscott%netscape.com
99bf7967f4 remove a define DEBUG_rhp from the makefile
git-svn-id: svn://10.0.0.236/trunk@107800 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:36:14 +00:00
mscott%netscape.com
16c2639a60 remove a define DEBUG_rhp from the make project.
git-svn-id: svn://10.0.0.236/trunk@107799 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:35:51 +00:00
pchen%netscape.com
cd45b13677 bug 107900, r=jag, sr=ben, add toolbarbutton and button to lazy elements
that don't have their contents built right away


git-svn-id: svn://10.0.0.236/trunk@107798 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:13:24 +00:00
mscott%netscape.com
96abba64cb fix mac build.
git-svn-id: svn://10.0.0.236/trunk@107797 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:13:19 +00:00
pchen%netscape.com
ecf432b21f bug 107900, r=jag, sr=ben, add toolbarbutton xul atom
git-svn-id: svn://10.0.0.236/trunk@107796 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:10:20 +00:00
pchen%netscape.com
aa3b124b3f bug 107900, r=jag, sr=ben, return true if we loaded bookmarks, otherwise
return false


git-svn-id: svn://10.0.0.236/trunk@107795 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:08:42 +00:00
pchen%netscape.com
1ab984a1af bug 107900, r=jag, sr=ben, return bool from ReadBookmarks()
git-svn-id: svn://10.0.0.236/trunk@107794 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:07:51 +00:00
waterson%netscape.com
807c7a00e9 Bug 106749. Make sure template builder only tries to build content if it's the _closest_ builder to the lazy node. r=rjc, sr=shaver
git-svn-id: svn://10.0.0.236/trunk@107793 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:06:08 +00:00
waterson%netscape.com
ed486643da Bug 105068. Oops, I mean to remove this.
git-svn-id: svn://10.0.0.236/trunk@107792 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:04:47 +00:00
waterson%netscape.com
f02192bdee Bug 108775. Don't broadcast |id|, |ref|, or |persist| attributes. Avoid re-entrancy when restoring persisted attributes. r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107791 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-10 00:03:53 +00:00
nhotta%netscape.com
c1c9f64869 Changed to use local stack for charset conversion util functions, bug 108914, r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@107790 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:57:15 +00:00
nhotta%netscape.com
65516669cc Changed to use local stack for message body charset conversion, bug 108749, r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@107789 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:56:19 +00:00
mscott%netscape.com
ef3625406f Bug #108960 --> get rid of some obsolete CSS rules to make this file load
faster and help message display.
rs=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107788 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:54:34 +00:00
mscott%netscape.com
c4e2261977 Bug #108761 --> override globalEditMenuItems and selectEditMenuItems so
with our own custom event so we can reduce the amount of command updating
they were doing during message display.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107787 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:53:16 +00:00
mscott%netscape.com
60cfbceeb2 Bug #109134 --> optimize our CSS by using .classname instead of tagname.class name
for a couple styles.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107786 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:50:38 +00:00
sicking%bigfoot.com
33dadb9240 Bug 95779 - Key cached expressions and patterns on node they appear in rather then string.
r=Pike sr=jst


git-svn-id: svn://10.0.0.236/trunk@107785 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:46:36 +00:00
mscott%netscape.com
45d499f29b Bug #108635 --> disable session and global history for the message pane. This helps improve
message display time.
r=jag/mscott
sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@107784 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:41:08 +00:00
mscott%netscape.com
a38b60f537 Bug #108635 --> add ability to disable global and session history.
r=jag/mscott
sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@107783 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:39:56 +00:00
despotdaemon%netscape.com
e5b0c39cc0 Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@107782 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:38:25 +00:00
sicking%bigfoot.com
09b20ef1df Bug 105979 - Cleanup NodeSetFunctionCall and Tokenizer classes
r=Pike,peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@107781 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:34:06 +00:00
mscott%netscape.com
3352b66874 Bug #22960 --> broadcast all the headers at once instead of individually.
if not in view all headers mode, only send out the headers we need. This helps
message display performance.
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107780 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 23:31:54 +00:00
tao%netscape.com
723fd0db48 report ui language and country code in test program (not part of client).
git-svn-id: svn://10.0.0.236/trunk@107779 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 22:57:30 +00:00
ian.mcgreer%sun.com
a508954d9b construct salt and password buffers for PBE correctly
git-svn-id: svn://10.0.0.236/trunk@107778 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 22:51:42 +00:00
shrutiv%netscape.com
c41f9aa079 Removing extra CR's
git-svn-id: svn://10.0.0.236/trunk@107777 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 22:12:00 +00:00
ian%hixie.ch
76152f2135 Implement some primitive error handling for sending mail.
git-svn-id: svn://10.0.0.236/trunk@107776 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:59:21 +00:00
relyea%netscape.com
376653238f Rewrite Ian's get cert by email address to use the standard cert searching code.
git-svn-id: svn://10.0.0.236/trunk@107775 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:43:18 +00:00
mcafee%netscape.com
bf8a257f80 Adding scrapebuilds.pl check
git-svn-id: svn://10.0.0.236/trunk@107774 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:37:02 +00:00
mcafee%netscape.com
34578d29a0 Adding scrape_builds
git-svn-id: svn://10.0.0.236/trunk@107773 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:35:25 +00:00
mcafee%netscape.com
b285a9e360 Adding scrapebuilds toggle ui
git-svn-id: svn://10.0.0.236/trunk@107772 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:32:41 +00:00
mcafee%netscape.com
ff7f60b684 Adding scrapebuilds.pl
git-svn-id: svn://10.0.0.236/trunk@107771 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:31:19 +00:00
ian%hixie.ch
8429169df5 Removing unnecessary spammy debug output (this code works now... honest\!)
git-svn-id: svn://10.0.0.236/trunk@107770 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:22:32 +00:00
ian%hixie.ch
3d2d5f544f Decode %XX-encoded strings.
git-svn-id: svn://10.0.0.236/trunk@107769 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:19:59 +00:00
javi%netscape.com
a6f1ecb450 Fixing typo
git-svn-id: svn://10.0.0.236/trunk@107766 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 21:14:07 +00:00
javi%netscape.com
529933e14f Bug 106507
Enable S/MIME for users that are already building PSM.


git-svn-id: svn://10.0.0.236/trunk@107765 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:45:47 +00:00
kaie%netscape.com
2c948ee683 build smime if MOZ_PSM is defined
a=leaf


git-svn-id: svn://10.0.0.236/trunk@107764 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:45:36 +00:00
mscott%netscape.com
e6bb9498ee build smime if psm2 is defined.
a=leaf


git-svn-id: svn://10.0.0.236/trunk@107763 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:26:40 +00:00
ian%hixie.ch
f6dff658e9 Added some more comments that might help people get this working on Apache.
git-svn-id: svn://10.0.0.236/trunk@107762 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:23:42 +00:00
ian%hixie.ch
0b383c1d78 Factored out the connect/disconnect code, added settings for the host and the from address and made them be handled by a setup.configure handler, wrapped the call to Net::SMTP->new() in a warning-free block.
git-svn-id: svn://10.0.0.236/trunk@107761 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:21:11 +00:00
ian%hixie.ch
3443dd9f0e Adding support for generic saving and retrieving of settings.
git-svn-id: svn://10.0.0.236/trunk@107760 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:13:21 +00:00
ian%hixie.ch
7b02c6d19e Adding a comment on the use of assert()
git-svn-id: svn://10.0.0.236/trunk@107759 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 20:09:22 +00:00
rweltman%netscape.com
391019dc2c Call Vector.removeAllElements() instead of Vector.clear() to allow compilation and execution with JDK 1.1.x (Bugzilla bug 107830)
git-svn-id: svn://10.0.0.236/trunk@107758 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 19:57:54 +00:00
dp%netscape.com
8a40115287 Better usage message. Ability to take args.
git-svn-id: svn://10.0.0.236/trunk@107757 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 19:16:04 +00:00
ian%hixie.ch
de07b8d410 Refactored the Database::DBI code. Added support for default values in the setup code. Added support to create the database and the user (although some of this may need refactoring into separate MySQL submodules).
git-svn-id: svn://10.0.0.236/trunk@107756 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:23:41 +00:00
ian%hixie.ch
a674a12422 Changing the order of loaded modules to make sure they are set up in the right order.
git-svn-id: svn://10.0.0.236/trunk@107755 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:16:50 +00:00
ian%hixie.ch
64d32bc1a9 Added a missing 'return' statement so that the user.fields setup routine doesn't appear to have failed when it hasn't (without a return statement, the value of the last statement is the return value).
git-svn-id: svn://10.0.0.236/trunk@107754 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:15:13 +00:00
ian%hixie.ch
ab6ec76c4d Changed the DESTROY method to make sure it calls its parent.
git-svn-id: svn://10.0.0.236/trunk@107753 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:13:27 +00:00
ian%hixie.ch
18252bc48b Added support for printing the default value for requests.
git-svn-id: svn://10.0.0.236/trunk@107752 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:12:18 +00:00
ian%hixie.ch
9ff7bb94ea Added the ability to find the length of an array (array.length to go with array.0, array.1, etc). Added assertions to handle the case of invalid order or sort attributes on <set>. Added two new sort types ('default' and 'reverse default').
git-svn-id: svn://10.0.0.236/trunk@107751 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:10:22 +00:00
ian%hixie.ch
e819a06972 Added two assertions to make sure the handle is defined before using it, and added a check that the handle is defined before releasing it. Also changed the DESTROY method to call its parent.
git-svn-id: svn://10.0.0.236/trunk@107750 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:07:18 +00:00
ian%hixie.ch
ca0cb58027 Removing excess trailing spaces on one line, and moving a warn from level 5 ('important events') to level 8 ('frequent important events').
git-svn-id: svn://10.0.0.236/trunk@107749 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:03:40 +00:00
ian%hixie.ch
7474ccc4a0 Fixed DESTROY method to make sure it calls its parent.
git-svn-id: svn://10.0.0.236/trunk@107748 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 17:00:28 +00:00
ian%hixie.ch
ba894a2d01 Removing the @arguments array from a dump statement, because if any of the elements in the array are undef then a runtime warning is printed (undef elements is not always a bug).
git-svn-id: svn://10.0.0.236/trunk@107747 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:58:38 +00:00
ian%hixie.ch
ad6449583d Added a level 5 dump indicating the completion of the PLIF program.
git-svn-id: svn://10.0.0.236/trunk@107746 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:56:49 +00:00
dp%netscape.com
6a47e8068a secs not ms
git-svn-id: svn://10.0.0.236/trunk@107745 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:54:22 +00:00
ian%hixie.ch
33359b80b5 Fixed DESTROY method to make sure it called it's parent.
git-svn-id: svn://10.0.0.236/trunk@107744 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:52:08 +00:00
ian%hixie.ch
7e3afcf26f Change default DEBUG level from 9 to 4, which is what it should be in production releases. Added comments explaining debug levels 6 (reserved for personal use) and 8. Added level 10 debug info to the DESTROY method (makes it easier to track down bugs during shutdown).
git-svn-id: svn://10.0.0.236/trunk@107743 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:50:47 +00:00
ian.mcgreer%sun.com
3a136e2217 Output validated cert text to stdout, otherwise the QA scripts think there is a failure.
git-svn-id: svn://10.0.0.236/trunk@107742 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:40:26 +00:00
ian.mcgreer%sun.com
d014371d2d disabling cert cache (temporarily)
git-svn-id: svn://10.0.0.236/trunk@107741 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:39:34 +00:00
ian%hixie.ch
1da5e9e25e Made it so the setupEnding event is sent out after the setup failure message is printed but before the setup success message is printed (reduces the number of error messages if you cancel during setup). Changed the semantics of the output.progress string's data.component data. It is now a dotted hierarchical string giving progressively more detail about what is being set up. e.g., 'database', 'database.default.settings', 'database.default.settings.connection.port'. If outputters are interpreting data.component then any trailing unknown levels of detail should be ignored. This allows the setup routines to potentially give much more useful output. Fixed the default stdout output string for setup (it has <text variable=""> instead of value="").
git-svn-id: svn://10.0.0.236/trunk@107740 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:39:29 +00:00
blizzard%redhat.com
88f0c76909 null check in stack trace code so we don't crash on some systems. r=bryner, dbaron no bug number.
git-svn-id: svn://10.0.0.236/trunk@107737 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 16:18:56 +00:00
ccarlen%netscape.com
bd1340dc29 Bug 104021 - Profile mgr needs to put necko offline when switching profile. r=dougt,kaie/rs=darin/a=asa
git-svn-id: svn://10.0.0.236/trunk@107736 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 15:32:49 +00:00
kin%netscape.com
d7e3258a81 Fix for bug 106383: regression: new composer doc behaves as if empty
mozilla/editor/libeditor/html/nsHTMLDataTransfer.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.cpp
  mozilla/editor/libeditor/html/nsHTMLEditRules.h
  mozilla/editor/libeditor/html/nsHTMLEditor.h
  mozilla/editor/libeditor/text/nsTextEditRules.h

    - Added nsHTMLEditRules::WillLoadHTML() which removes any mBogusNode.
    - Modified nsHTMLEditor::LoadHTML() to call Will/DidDoAction().
    - Changed all references of kOpHTMLLoad to kOpLoadHTML to match
      function name, and added kLoadHTML.

r=jfrancis.netscape.com  sr=sfraser.netscape.com  a=asa@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107735 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 15:16:03 +00:00
ian.mcgreer%sun.com
eaed36d3e2 fixes pk12util import failure
git-svn-id: svn://10.0.0.236/trunk@107734 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 14:52:19 +00:00
sicking%bigfoot.com
bc75854c14 Make checkboxes without value attribute work.
b=109122 r=bz sr=jst a=asa (for drivers)


git-svn-id: svn://10.0.0.236/trunk@107732 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 06:14:52 +00:00
nelsonb%netscape.com
b4a47a9861 Added a new -o option, to override check on received client auth certs,
forcing those certs to be OK.  -v will now test the SSL_LocalCertificate()
function.  Bug 78959.


git-svn-id: svn://10.0.0.236/trunk@107731 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:45:21 +00:00
nelsonb%netscape.com
f14f3467c1 Add code to test new SSL_LocalCertificate() function on first connection,
or on every connection if -vv option is used.  Bug 78959.
Also, the nickname "none" can now be used to prevent performing client
authentication without having to use an invalid password.


git-svn-id: svn://10.0.0.236/trunk@107730 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:43:06 +00:00
nelsonb%netscape.com
7e4958958b Add localCert field to sid cache entry so SSL_LocalCertificate can
remember the certs it sent back when it established the SSL session.
Bug 78959.  Also, hold on the certs in the received cert chain until
the SSL connection is complete.  This makes it easier for applications
to look at the entire cert chain after the handshake is over without
having to write their own custom authCert callbacks.  It is backwards
compatible with older NSS SSL applications, but may use more memory.


git-svn-id: svn://10.0.0.236/trunk@107729 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:39:36 +00:00
timeless%mac.com
01aa33c91c Bugzilla Bug 109138 platform detection not working on macintosh
r=bbaetz,dkl


git-svn-id: svn://10.0.0.236/trunk@107728 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 05:32:43 +00:00
beard%netscape.com
f512f2bbc3 [not part of build] Bumped version to 1.0d6.
git-svn-id: svn://10.0.0.236/trunk@107727 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 04:48:35 +00:00
morse%netscape.com
739bdf33c1 bug 109163, form-manager fields are shrunken, r=jag,sr=blake,a=asa
git-svn-id: svn://10.0.0.236/trunk@107726 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 04:01:11 +00:00
leaf%mozilla.org
2988195a61 Automated update
git-svn-id: svn://10.0.0.236/trunk@107724 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 03:13:03 +00:00
colin%theblakes.com
b6b0b8afda Make OpenVMS use MKSHLIB_[UN]FORCE_ALL. Remove other cruft that is now
no longer needed. b=108862 r=cls a/driver=asa


git-svn-id: svn://10.0.0.236/trunk@107722 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 03:06:36 +00:00
rweltman%netscape.com
3262a36397 Initial introduction to org.ietf.ldap
git-svn-id: svn://10.0.0.236/trunk@107721 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:54:26 +00:00
rweltman%netscape.com
f3926530d5 Initial checkin of org.ietf.ldap classes
git-svn-id: svn://10.0.0.236/trunk@107720 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:36:04 +00:00
rweltman%netscape.com
3cc7c008cd ant Makefile for ietfldap
git-svn-id: svn://10.0.0.236/trunk@107719 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:26:37 +00:00
relyea%netscape.com
cf843bc9b2 Fix reporting of the label
git-svn-id: svn://10.0.0.236/trunk@107718 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:23:47 +00:00
relyea%netscape.com
2abd5c3157 Fix Solaris crash.. don't send more of the template than we need
git-svn-id: svn://10.0.0.236/trunk@107717 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:22:48 +00:00
myk%mozilla.org
94f803c2c3 Fix for bug 109048: fixes error when creating attachments without logging in.
Patch by Myk Melez <myk@mozilla.org>.
r=bbaetz,gerv


git-svn-id: svn://10.0.0.236/trunk@107716 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:11:09 +00:00
sonja.mirtitsch%sun.com
d1a4dd4f04 fixed email header and tinderbox hyperlink
git-svn-id: svn://10.0.0.236/trunk@107715 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:09:17 +00:00
timeless%mac.com
0ff9eafab4 Bugzilla Bug 92533 Region selection button is hidden in Profile Manager
patch by jg@cyberstorm.demon.co.uk r=hwaara sr=ben a=asa


git-svn-id: svn://10.0.0.236/trunk@107714 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 01:07:55 +00:00
peterlubczynski%netscape.com
46a8719065 Mac fix for HTML embed region being painted the default background color bug 83159 r=av sr=sfraser a=asa
git-svn-id: svn://10.0.0.236/trunk@107713 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:42:02 +00:00
relyea%netscape.com
2391301a89 Update Library name to match the current library.
git-svn-id: svn://10.0.0.236/trunk@107712 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:38:03 +00:00
relyea%netscape.com
cdde8c7dd3 Fix NT process command to something that will work in our environment without requiring new tools.
git-svn-id: svn://10.0.0.236/trunk@107711 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:37:12 +00:00
ian.mcgreer%sun.com
d16299751e fips changes. forces login for cert listing.
git-svn-id: svn://10.0.0.236/trunk@107710 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:37:03 +00:00
ian.mcgreer%sun.com
1f69c02407 changes to get fips working
git-svn-id: svn://10.0.0.236/trunk@107709 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:36:12 +00:00
jband%netscape.com
861f4c54ac fix bug 108915 to unbust XPCOM_STANDALONE. This #ifdef's out calls into code that is only available when i18n is part of the build. This has no impact on the browser or gecko embeddings. r=jst sr=alecf a=blizzard
git-svn-id: svn://10.0.0.236/trunk@107708 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:34:56 +00:00
cmanske%netscape.com
ec47fc497c Removed duplicate declaration to make Advanced Edit dialog work, b=109085, r=brade, sr=kin, a=asa-drivers@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107707 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-09 00:17:59 +00:00
shrutiv%netscape.com
715d7e0780 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@107706 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:58:42 +00:00
brendan%mozilla.org
57a2bb6907 For now (0.9.6), str_replace requires an independent replacement string (108832, r=shaver, sr=jband, a=asa).
git-svn-id: svn://10.0.0.236/trunk@107705 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:53:33 +00:00
racham%netscape.com
fddea1c06c Fixing bug 108912. Opening the accountmanager window panel for any activity is having adverse affect on the smtp server of the associated identity. Fixing the situation to use the smtp server of the identity only when the key is valid. In all other cases, default smtp server will be used to send messages. r=ducarroz, sr=sspitzer, a=asa@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107704 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:40:34 +00:00
beard%netscape.com
e7900f1871 [not part of build] Fix for bug #108054, guard against NULL url parameter.
git-svn-id: svn://10.0.0.236/trunk@107703 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:28:47 +00:00
roc+%cs.cmu.edu
57363b125c Fix for bug 108940. r=kmcclusk,sr=attinasi. Initialize nsZPlaceholderView correctly.
git-svn-id: svn://10.0.0.236/trunk@107702 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:11:01 +00:00
yokoyama%netscape.com
e3dca6f594 Bug 108712
ISO-8859-16 and Korean (ISO-2022-KR) menu
appears in the wrong submenu.
/r=nhotta; /a=asa


git-svn-id: svn://10.0.0.236/trunk@107701 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 23:05:30 +00:00
cmanske%netscape.com
8c7afa2b65 Fix cutoff of buttons in Spell Check (r=kin, sr=hewitt) and Image Properties (r=brade, sr=ben) dialogs, bugscape b=10888
git-svn-id: svn://10.0.0.236/trunk@107699 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 22:59:58 +00:00
yokoyama%netscape.com
60a2ffd6a1 Bug 108712
ISO-8859-16 and Korean (ISO-2022-KR) menu
appears in the wrong submenu.
/r=nhotta; /a=asa


git-svn-id: svn://10.0.0.236/trunk@107698 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 22:57:29 +00:00
morse%netscape.com
0e128015ac bug 109058, text missing in p3p dialog, r=blake, sr=alecf, a=asa
git-svn-id: svn://10.0.0.236/trunk@107697 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 22:51:18 +00:00
pinkerton%netscape.com
e679e16997 processing UI timers. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@107696 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 22:21:27 +00:00
ian.mcgreer%sun.com
4cf69b3ce3 fix pbe gen bugs
git-svn-id: svn://10.0.0.236/trunk@107695 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 22:11:07 +00:00
tao%netscape.com
0d6a80a4bb 107375: localeVersion update: 0.9.4 -> 0.9.6 in the trunk.
(r=jbetak,sr=dveditz,a=asa), fix smime and ldap parts.


git-svn-id: svn://10.0.0.236/trunk@107694 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:50:50 +00:00
jst%netscape.com
0dc194375f Fixing compiler warning, unused variable (debug only). This was pointed out by hidday@geocities.com
git-svn-id: svn://10.0.0.236/trunk@107693 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:50:47 +00:00
pinkerton%netscape.com
b144b93211 Fixed up view offsets. Now can pass native NSView as parent for nsChildView for embedding. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@107692 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:47:44 +00:00
attinasi%netscape.com
f06a7c002e New image for loading and broken images icons. b=108799 r=kmcclusk sr=waterson a=blizzard/drivers
git-svn-id: svn://10.0.0.236/trunk@107691 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:43:54 +00:00
attinasi%netscape.com
3d224b0911 New image for broken images icon. b=108799 r=kmcclusk sr=waterson a=blizzard/drivers
git-svn-id: svn://10.0.0.236/trunk@107690 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:37:24 +00:00
attinasi%netscape.com
f288530ace New image for loading images icon. b=108799 r=kmcclusk sr=waterson a=blizzard/drivers
git-svn-id: svn://10.0.0.236/trunk@107689 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:36:50 +00:00
ian.mcgreer%sun.com
c63b98c7eb get signtool working
git-svn-id: svn://10.0.0.236/trunk@107688 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:23:35 +00:00
mikep%oeone.com
f20b08f057 Fixed bug with having to specify your home directory.
git-svn-id: svn://10.0.0.236/trunk@107687 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:05:44 +00:00
bryner%netscape.com
127f609447 Initial checkin of mozilla-style Makefile.in's for calendar. r/a=mikep@oeone.com. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107686 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 21:00:34 +00:00
ian.mcgreer%sun.com
90f3968ca4 a plethora of changes for handling S/MIME certs
git-svn-id: svn://10.0.0.236/trunk@107685 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 20:46:11 +00:00
evaughan%netscape.com
2bfeba936c bug fixes #107707, 108771, 108773
-r jag -sr hyatt -a asa


git-svn-id: svn://10.0.0.236/trunk@107684 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 20:46:02 +00:00
mkaply%us.ibm.com
861f679532 No bug
r=mkaply, sr=blizzard, a=asa for drivers
OS/2 only - lower tile buffer height and width so we won't tile progressive images


git-svn-id: svn://10.0.0.236/trunk@107683 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 20:36:26 +00:00
timeless%mac.com
59208ea8e0 Fixing bustage:
XML Parsing Error: mismatched tag. Expected: </page>.
Location: file:///mozilla/extensions/wallet/editor/WalletUrlspecific.xul
Line Number 114, Column 3: </window>
--^


git-svn-id: svn://10.0.0.236/trunk@107682 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 19:55:36 +00:00
bzbarsky%mit.edu
89020f859e Fix crash for ftp:// and file:// urls that have no useful extension and
binary data.  r=bbaetz, sr=mscott, a=asa


git-svn-id: svn://10.0.0.236/trunk@107681 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 19:05:22 +00:00
despotdaemon%netscape.com
90a6dfd82c Pseudo-automatic update of changes made by rweltman@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@107680 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 18:11:44 +00:00
ian%hixie.ch
0e1edf614f Also send default values to output.
git-svn-id: svn://10.0.0.236/trunk@107679 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 17:27:07 +00:00
ian%hixie.ch
738e081f7c Implement default values for arguments. getArgument() and createArgument() now take two parameters like setArgument(). Changed the CommandLine module's createArgument() method so that if the user hits enter at the prompt, the default value is used. Added some comments to clarify what is going on with the 'batch' argument. Changed setArgument() and createArgument() in the Arguments module and createArgument() in the CommandLine module to be more efficient (less array copying).
git-svn-id: svn://10.0.0.236/trunk@107678 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 17:09:11 +00:00
ian.mcgreer%sun.com
daed5695b8 fix for windows build
git-svn-id: svn://10.0.0.236/trunk@107677 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 16:59:00 +00:00
ian%hixie.ch
5741b48cad Adding comments to clearly indicate that no dump()s, warn()s or error()s should have a level lower than 5 unless they are not expected to occur during normal operation. Also changing the default level at which the user is notified of problems from 3 to 1.
git-svn-id: svn://10.0.0.236/trunk@107676 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 16:47:25 +00:00
ian%hixie.ch
822aa05814 Added two new hooks into the setup code: a start notification and an end notification. Added the ability to disable the string datasource (causes it to only use the default strings and not the database). Made the string datasource automatically disable itself during configuration, using the two hooks added to the setup code. This removes the warning messages that are output during a clean setup ('could not get string from database', etc).
git-svn-id: svn://10.0.0.236/trunk@107675 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 16:42:42 +00:00
ian.mcgreer%sun.com
492833f7cc use nsinstall not copy on windows
git-svn-id: svn://10.0.0.236/trunk@107674 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 16:20:54 +00:00
ian%hixie.ch
9cc94f02cd Improved error handling for the case where the database configuration doesn't exist and therefore every output attempt raises database errors. Fatal database errors are now fatal, missing database configurations is not. This would be a lot cleaner if Perl exceptions were objects... Also improved some of the error messages.
git-svn-id: svn://10.0.0.236/trunk@107673 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 16:10:21 +00:00
relyea%netscape.com
10748492f6 HP ans Solaris are still down...
git-svn-id: svn://10.0.0.236/trunk@107672 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 15:27:56 +00:00
relyea%netscape.com
992f3ed148 OK, try this again. FreeBL needs Get_Noise in the freebl .so on solaris, so
move the random number stuff there where it belongs.


git-svn-id: svn://10.0.0.236/trunk@107671 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 15:02:25 +00:00
blakeross%telocity.com
a55eb44974 108841 - can't create new news account. r=racham,jmkg sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107670 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 12:41:55 +00:00
leaf%mozilla.org
63f6ee74d5 Automated update
git-svn-id: svn://10.0.0.236/trunk@107668 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 12:28:06 +00:00
jdunn%netscape.com
6e7fe92b09 Reverting back to the previous version of this file (1.3)
The patch submitted by IBM didn't take into account all the conditions
r=cls@seawood.org
a=blizzard@mozilla.org
# 24458


git-svn-id: svn://10.0.0.236/trunk@107667 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 12:18:37 +00:00
jdunn%netscape.com
6417df93ef Fixing the problem with AIX not passing floating point params thru xptinvoke
submitted by pkw@austin.ibm.com
r=cls@seawood.org
a=blizzard@mozilla.org
# 106118


git-svn-id: svn://10.0.0.236/trunk@107666 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 12:17:19 +00:00
jdunn%netscape.com
d982a0c526 setting up AIX to only export NSGetModule from all components
These are if'd AIX only!
r=cls@seawood.org
a=blizzard@mozilla.org
# 108864


git-svn-id: svn://10.0.0.236/trunk@107665 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 12:15:48 +00:00
dp%netscape.com
985d1d4f5d changed usage message
git-svn-id: svn://10.0.0.236/trunk@107660 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 07:45:32 +00:00
dp%netscape.com
b9eeff26ec adding more formatting of prints
git-svn-id: svn://10.0.0.236/trunk@107659 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 07:44:12 +00:00
endico%mozilla.org
4a0f6acf08 Text describing the purpose of this directory from Frank Hecker <hecker@mozilla.org>
git-svn-id: svn://10.0.0.236/trunk@107657 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 06:09:01 +00:00
relyea%netscape.com
8e5904ce24 Fixes to make pkcs12 work correctly:
1) Make pkcs12 pbe function.
   2) add code to allow setting and getting of the key nickname attribute.


git-svn-id: svn://10.0.0.236/trunk@107656 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:39:56 +00:00
dp%netscape.com
67f3df9ea1 renaming startup-quick.pl to measure-simple.pl
git-svn-id: svn://10.0.0.236/trunk@107655 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:30:16 +00:00
ian.mcgreer%sun.com
930d3a8376 add lookup by email function, try to fix softoken bugs for that (but cert->emailAddr doesn't seem to be set there)
git-svn-id: svn://10.0.0.236/trunk@107653 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:19:32 +00:00
ian%hixie.ch
f74c5a2421 Added a little more level 9 verbose debugging feedback to help track down where output is going wrong.
git-svn-id: svn://10.0.0.236/trunk@107651 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:07:42 +00:00
hyatt%netscape.com
4446eabbf3 Turn off favicon.ico and remove support for turning it on from the UI. r=hixie, sr=ben, a=asa
git-svn-id: svn://10.0.0.236/trunk@107650 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:06:48 +00:00
ian%hixie.ch
97db51b03d Stop complaining about the configuration file missing -- if it is not there then just assume there is nothing to worry about. This makes the output of the initial run with the 'setup' argument a lot quieter.
git-svn-id: svn://10.0.0.236/trunk@107649 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:06:27 +00:00
ian%hixie.ch
04036664cd Make the STDOUT generic outputter flush everything it outputs -- this fixes a bug whereby sometimes prompts wouldn't appear until after the user had replied to them.
git-svn-id: svn://10.0.0.236/trunk@107648 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:03:57 +00:00
sspitzer%netscape.com
a83c005751 more work for #73868. get sorting to work. NOT PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@107647 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 05:00:29 +00:00
ian.mcgreer%sun.com
e22141b43b fix cert and s/mime profile import issues
git-svn-id: svn://10.0.0.236/trunk@107646 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 04:12:26 +00:00
ian.mcgreer%sun.com
d7dcb593c7 this seems to be needed to get linux linking again. libnss3.so tries to access the C_GetFunctionList entry point to the libsoftokn3.so library directly, and linux complains that it can't find it.
git-svn-id: svn://10.0.0.236/trunk@107645 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 03:44:17 +00:00
justdave%syndicomm.com
e78b6416c2 Fix for bug 99519: timestamps were not being set correctly in the activity table in some situations, and the delta_ts on the
bug itself was not always being updated if dependencies or CCs changed.
Patch by Dave Miller <justdave@syndicomm.com>
r= bbaetz, jake


git-svn-id: svn://10.0.0.236/trunk@107644 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 03:38:12 +00:00
mkaply%us.ibm.com
00a1b58d21 No bug
r=jblanco, sr=blizzard, a=asa for drivers
OS/2 only - better fix for not printing on Lexmark printers


git-svn-id: svn://10.0.0.236/trunk@107643 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 03:28:49 +00:00
dp%netscape.com
873f65621c fixed unclosed html tag
git-svn-id: svn://10.0.0.236/trunk@107642 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 03:24:56 +00:00
dp%netscape.com
0c5c3f78ae first version
git-svn-id: svn://10.0.0.236/trunk@107641 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 03:24:26 +00:00
myk%mozilla.org
3b483d8209 Fix for bug 104652: Duplicate bugs in the dependency tree now get marked with the message "This bug appears elsewhere in this tree." so users know why the bug does not appear to have dependencies.
Patch by Gerv <gerv@mozilla.org>.
r=jake@acutex.net,myk@mozilla.org


git-svn-id: svn://10.0.0.236/trunk@107640 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 02:43:55 +00:00
dbaron%fas.harvard.edu
b941398e09 Add omitted NS_INIT_ISUPPORTS. b=108750 a=blizzard
git-svn-id: svn://10.0.0.236/trunk@107639 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 02:17:43 +00:00
nelsonb%netscape.com
076553af57 Implement new function SSL_LocalCertificate(). Bug 78959.
git-svn-id: svn://10.0.0.236/trunk@107638 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 02:15:38 +00:00
beard%netscape.com
b3bc2391fa [not part of build] Implemented vfprintf redirection using Carbon Event timers. Turned off for now. This means that low-level JVM messages still go to the global system console instead of the Java console.
git-svn-id: svn://10.0.0.236/trunk@107637 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 01:50:35 +00:00
beard%netscape.com
da81066722 [not part of build] Fix for bug #108519, to convert "file:" URLs between HFS+ and POSIX representations.
git-svn-id: svn://10.0.0.236/trunk@107636 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 01:49:05 +00:00
beard%netscape.com
9b11f1b0af [not part of any build] Broke out class declaration from MRJContext.cpp for use in MRJSession.cpp.
git-svn-id: svn://10.0.0.236/trunk@107635 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 01:14:28 +00:00
jaggernaut%netscape.com
eb5b6bfd08 Bug 108359: crash when opening subscribe dialog ( crash in grid code ). patch by evaughan, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107634 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 01:14:21 +00:00
myk%mozilla.org
f128dfb46b Fix for bug 108822: Prevent any user from changing their own groupset.
Patch by Jake <jake@acutex.net>.
r=bbaetz,myk


git-svn-id: svn://10.0.0.236/trunk@107633 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:54:15 +00:00
myk%mozilla.org
37c1fa29af Fix for bug 108821: Prevent users with any blessgroupset privileges from blessing any group set.
Patch by Jake <jake@acutex.net> and Bradley <bbaetz@cs.mcgill.ca>.
r=jake,myk for Bradley's portion, r=bbaetz,myk for Jake's portion.


git-svn-id: svn://10.0.0.236/trunk@107632 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:52:13 +00:00
myk%mozilla.org
f0967cda10 Fix for bug 108812: Prevent users from running queries containing arbitrary SQL.
Patch by Jake <jake@acutex.net>
r=bbaetz,myk


git-svn-id: svn://10.0.0.236/trunk@107631 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:49:18 +00:00
relyea%netscape.com
162c530b16 Land BOB_WORK_BRANCH unto the tip.
remove lots of depricated files.
move some files to appropriate directories (pcertdb *_rand
associated headers to soft token, for instance)
rename several stan files which had the same name as other nss files.
remove depricated functions.


git-svn-id: svn://10.0.0.236/trunk@107628 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:15:51 +00:00
relyea%netscape.com
c587ffe998 Add -DXP_OS2 so that sysrand.c can pick it up...
git-svn-id: svn://10.0.0.236/trunk@107627 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-08 00:08:28 +00:00
pschwartau%netscape.com
47b893d895 Initial add. Regression test for bug 108440.
git-svn-id: svn://10.0.0.236/trunk@107626 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 23:20:48 +00:00
dp%netscape.com
991378ff5e first version
git-svn-id: svn://10.0.0.236/trunk@107625 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 23:19:53 +00:00
bbaetz%cs.mcgill.ca
8904a09db5 Require (temporarily) mysql >= 3.23.5 for the ~ operator, needed for the
fix to bug 107718. This should be removed when the group stuff lands (bug
60822).

r=justdave x 2


git-svn-id: svn://10.0.0.236/trunk@107624 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 22:42:32 +00:00
dbaron%fas.harvard.edu
19ac8a8d84 Fix |#ifdef TARGET_CARBON| assertions for bug 104651 to fix blocker bug 108911 (TARGET_CARBON changes only).
git-svn-id: svn://10.0.0.236/trunk@107623 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 22:08:31 +00:00
mikep%oeone.com
e395496a29 Fixing file names.
git-svn-id: svn://10.0.0.236/trunk@107622 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:59:04 +00:00
ian.mcgreer%sun.com
96eab15224 fix linux 2.1 also
git-svn-id: svn://10.0.0.236/trunk@107621 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:58:09 +00:00
ian.mcgreer%sun.com
6ebb09e576 get linux building again
git-svn-id: svn://10.0.0.236/trunk@107620 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:56:18 +00:00
mikep%oeone.com
3d37751e19 Moving files around.
git-svn-id: svn://10.0.0.236/trunk@107619 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:41:11 +00:00
dbaron%fas.harvard.edu
7ada03aefc Back out incorrect part of my fix from yesterday that was causing AIX tinderbox bustage. b=107052
git-svn-id: svn://10.0.0.236/trunk@107617 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:29:59 +00:00
mikep%oeone.com
c3178b792e Fixing all the license header files.
git-svn-id: svn://10.0.0.236/trunk@107616 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 20:29:04 +00:00
blizzard%redhat.com
e31fa995ed back out rpotts' checkin for bug #106558 since it caused blocker bug #108869. r=mscott
git-svn-id: svn://10.0.0.236/trunk@107614 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:56:27 +00:00
mikep%oeone.com
4f2d0a9dac Removing unused docs.
git-svn-id: svn://10.0.0.236/trunk@107612 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:50:51 +00:00
relyea%netscape.com
c4b6c5af00 Move map file processing definitions back into base .mk files.
setup up map files so the can be switched on simply by adding a directive to
manifest.mn.


git-svn-id: svn://10.0.0.236/trunk@107611 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:34:47 +00:00
mikep%oeone.com
531758dbb4 Adding in calendar files.
git-svn-id: svn://10.0.0.236/trunk@107610 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:28:41 +00:00
mikep%oeone.com
b4bb33dac3 Adding in the calendar code.
git-svn-id: svn://10.0.0.236/trunk@107609 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:18:46 +00:00
locka%iol.ie
f68e749c8b Workaround for problem in PromiseFlatString class. b=108880 r=adamlock@netscape.com sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107608 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 19:03:39 +00:00
ian.mcgreer%sun.com
8a2c7868fb fix handling of token options, specifically deletion
git-svn-id: svn://10.0.0.236/trunk@107606 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 16:15:29 +00:00
bbaetz%cs.mcgill.ca
9caaabcc10 Bug 101166 - users seeing a bug via _accessible bits should see that its
the group

r=justdave,jake


git-svn-id: svn://10.0.0.236/trunk@107605 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 16:11:33 +00:00
jake%acutex.net
7a6b9817cc Bug 108547 - Make the JavaScript use proper DOM
Patch by Christopher Aillon <caillon@returnzero.com>
r= timeless@bemail.org, kiko@async.com.br


git-svn-id: svn://10.0.0.236/trunk@107604 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 14:58:56 +00:00
nboyd%atg.com
9e9cb2fc7c Patch from Igor:
I suggest to move the code in ScriptableObject.get/put that deals with getter/setter
into separated methods so it would be easy to follow the code and the attached patch
does just that.


git-svn-id: svn://10.0.0.236/trunk@107603 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 14:15:48 +00:00
seawood%netscape.com
c29db87705 Oops. That wasn't supposed to go in yet. Fixing tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@107600 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 08:09:36 +00:00
jaggernaut%netscape.com
98e92c1ba9 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107597 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:52:48 +00:00
jst%netscape.com
246aea4410 Fixing bug 92071. Making sure DOM objects that don't have a class interface (such as <span> elements, there is no nsIDOMHTMLSpanElement) get their prototype chain properly set up. r=hidday@geocities.com, peterv@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107596 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:52:41 +00:00
jaggernaut%netscape.com
47ed3411c3 Bug 108734: nsCString::Replace is broken. r=darin, sr=scc
git-svn-id: svn://10.0.0.236/trunk@107594 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:43:11 +00:00
ben%netscape.com
df9186e2bc 108816 - add back removed navigation bindings for Windows only. r=waterson, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107593 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:38:49 +00:00
dbaron%fas.harvard.edu
e456dfae91 Add a comment explaining how to fix callers that trigger the null-termination assertion. r=jag rs=scc b=104651
git-svn-id: svn://10.0.0.236/trunk@107592 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:36:36 +00:00
dbaron%fas.harvard.edu
77c9718bde Move nsDOMCSSAttributeDeclaration into its own file to progress towards moving all of the style system code back into the layout library. r=jst sr=hyatt b=108750
git-svn-id: svn://10.0.0.236/trunk@107591 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 07:06:31 +00:00
waterson%netscape.com
48ee495f01 Bug 100952, round two. This time, maintain a stack of active resources that we're currently building content for. r=tingley@sundell.net, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107590 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:56:39 +00:00
seawood%netscape.com
35772f6f4c Where's the auto-update?
git-svn-id: svn://10.0.0.236/trunk@107589 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:41:26 +00:00
hyatt%netscape.com
2518cd7fad Fix for 32087, custom icon support in tabs and url bar. r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107588 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:40:04 +00:00
seawood%netscape.com
e20a9945a1 Don't even ask
git-svn-id: svn://10.0.0.236/trunk@107587 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:39:14 +00:00
brendan%mozilla.org
4566fb535b Fix Function.call(this, 'alert(42)')() so the anonymous function finds its nearest scripted caller's principals (90546, sr=shaver&jband).
git-svn-id: svn://10.0.0.236/trunk@107586 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:34:04 +00:00
joki%netscape.com
e4bbbe83de Fix for 71705, stop right click from triggering onclick handlers in base html content, though not in xml/xul/chrome. reviewed a while ago, lost in tree. r:saari,sr:hyatt
git-svn-id: svn://10.0.0.236/trunk@107585 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:29:29 +00:00
morse%netscape.com
ecb7927d80 bug 108762, select-user dialog (used in password manager) broken, r=cmankse+bryner,sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107584 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:26:33 +00:00
dbaron%fas.harvard.edu
13b5500ba3 Ensure that string literals are used as |const char*| rather than |char*|. r=jag sr=brendan b=107052
git-svn-id: svn://10.0.0.236/trunk@107583 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:24:10 +00:00
seawood%netscape.com
c981ebf61c Move defines from config.mk into configure.in
git-svn-id: svn://10.0.0.236/trunk@107582 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:13:22 +00:00
seawood%netscape.com
ae8c42a6f4 Silence!
git-svn-id: svn://10.0.0.236/trunk@107581 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 06:06:02 +00:00
seawood%netscape.com
307b0d276b Clean up options
git-svn-id: svn://10.0.0.236/trunk@107580 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:52:21 +00:00
dbaron%fas.harvard.edu
ab4b9ed8e0 Fix nsDependentString users who were passing non-NULL terminated buffers. b=104651 rr=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@107579 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:51:27 +00:00
hewitt%netscape.com
307e398404 108778 - dialog should fire ondialogcancel when native window close button clicked, r=cmanske, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107578 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:43:03 +00:00
cmanske%netscape.com
e07b4c1b35 Fixed problems relating to new XUL 1.0 changes, b=108670, r=timeless, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107577 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:42:41 +00:00
mkaply%us.ibm.com
b835c29c3e Temp fix to try to plug OS/2 only region leak
git-svn-id: svn://10.0.0.236/trunk@107576 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:36:32 +00:00
mkaply%us.ibm.com
81d93848f0 #91898
r=robinf
Fix some HTML mistakes in help file


git-svn-id: svn://10.0.0.236/trunk@107573 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:31:03 +00:00
mkaply%us.ibm.com
7bdb802715 #105476
r=os2team, sr=brendan@mozilla.org
Add ASM implementation of js_CompareAndSwap for OS/2 VACPP


git-svn-id: svn://10.0.0.236/trunk@107572 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:20:33 +00:00
dbaron%fas.harvard.edu
c8f7ebfe63 Fix nsDependentString users not to pass null buffers. b=104651 r=jag rs=scc
git-svn-id: svn://10.0.0.236/trunk@107571 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:11:46 +00:00
mkaply%us.ibm.com
6b3dd9d642 OS/2 only - let's be more like Windows
git-svn-id: svn://10.0.0.236/trunk@107570 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:11:34 +00:00
attinasi%netscape.com
2fffc35507 Default value for pref to override broken-image layout. b=102281 r=kmcclusk sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107569 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:05:52 +00:00
attinasi%netscape.com
9e73b286fe Due to popular demand, broken images are now getting an icon and a sized-box if they have width and height and are in QuirksMode documents (see bug for pref to override). b=102281 r=kmcclusk sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107568 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 05:02:42 +00:00
dbaron%fas.harvard.edu
ab5246a768 Really fix HPUX bustage. b=108597
git-svn-id: svn://10.0.0.236/trunk@107567 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:52:19 +00:00
rpotts%netscape.com
784b2dd57b bug #106558 (r=darin@netscape.com, sr=mscott@netscape.com) Do not call a consumers OnStartRequest() if an error has already occurred...
git-svn-id: svn://10.0.0.236/trunk@107566 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:50:35 +00:00
mkaply%us.ibm.com
858853ff87 #95106
r=pavlov, sr=waterson
Get 256 colors working again - step 3 - handle palette messages in nsWindow


git-svn-id: svn://10.0.0.236/trunk@107565 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:45:21 +00:00
mkaply%us.ibm.com
7cfa8e64c4 #95106
r=pavlov, sr=waterson
Get 256 colors working again - step 2 - add back palette stuff back to Windows GFX


git-svn-id: svn://10.0.0.236/trunk@107564 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:44:14 +00:00
mkaply%us.ibm.com
5f475d64f6 #95106
r=pavlov, sr=waterson
Get 256 colors working again - step 1 - add back palette API to nsDeviceContext


git-svn-id: svn://10.0.0.236/trunk@107563 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:36:47 +00:00
markh%activestate.com
f9f77e73de Update to Python XPCOM for recent breaking changes:
* Freeze/Modifications to nsIObserver and nsIServiceManager
* Header file re-organization.

Thanks to Christof Meerwald for the basis of this patch.

Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@107562 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:32:37 +00:00
attinasi%netscape.com
0ed5164758 Export GetAltTextfor as static member fcn. b=102281 r=kmcclusk sr=waerson
git-svn-id: svn://10.0.0.236/trunk@107561 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:32:25 +00:00
ccarlen%netscape.com
ca270b69bf Bug 104020 - send out notification after SetOffline has completed, respond to profile change notifications. r=dougt/sr=darin
git-svn-id: svn://10.0.0.236/trunk@107560 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:26:19 +00:00
waterson%netscape.com
f0d9433954 Bug 108736. Lurn tuh speel. r=tingley@sundell.net, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107559 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:25:41 +00:00
waterson%netscape.com
840acb0db5 Bug 103959. Maintain nsTemplateMatch::mBindingDependencies so that we don't leave dangling references in the nsConflictSet::mBindingDependencies table. r=tingley@sundell.net, sr=shaver@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107558 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:24:51 +00:00
dbaron%fas.harvard.edu
25428c5c64 Quiet annoying warning on HP by using the two-step NS_STATIC_CAST that is really meant here. r=jag sr=brendan b=107052
git-svn-id: svn://10.0.0.236/trunk@107557 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:12:24 +00:00
dbaron%fas.harvard.edu
52bea38360 Add assertions that users of nsDependentC?String meet the requirements of nsAFlatC?String. Add nsDependentSingleFragmentC?Substring for users that don't. Additional cleanup after bug 100214. b=104651 r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@107556 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:12:20 +00:00
roc+%cs.cmu.edu
a38af362a7 Bug 73382. Let the view code work with nsView*/nsViewManager* internally and migrate some methods from public to private to the view module. Also deCOMify those methods for speed. r=kmmclusk,sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107555 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:05:38 +00:00
blakeross%telocity.com
689da41ca0 autocomplete dialog shouldn't be resizable. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107554 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:05:20 +00:00
beard%netscape.com
9f6db5a709 [not part of build] Bumped version to 1.0d5.
git-svn-id: svn://10.0.0.236/trunk@107552 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:05:07 +00:00
beard%netscape.com
5e987d2489 [not part of build] First cut at proxied security for raw LiveConnect calls into Java. Doesn't switch threads any longer.
git-svn-id: svn://10.0.0.236/trunk@107551 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 04:00:35 +00:00
beard%netscape.com
f3cecbf649 [not part of build] Added JNIRunnable to support security proxying.
git-svn-id: svn://10.0.0.236/trunk@107550 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:58:47 +00:00
beard%netscape.com
dcb61be6c1 [not part of build] Implemented getApplet() for LiveConnect scripting of applets.
git-svn-id: svn://10.0.0.236/trunk@107549 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:58:00 +00:00
beard%netscape.com
de4545ac35 [not part of build] Simplest possible class to provide a security proxy for raw LiveConnect calls into Java.
git-svn-id: svn://10.0.0.236/trunk@107548 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:56:52 +00:00
beard%netscape.com
969e21496b [not part of build] Forked for MRJPluginCarbon, to provide class loader caching, and preloading of LiveConnectProxy.
git-svn-id: svn://10.0.0.236/trunk@107547 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:56:47 +00:00
beard%netscape.com
6191900cab [not part of build] Added LiveConnectProxy.java, rearranged some entries, added additional access paths to use some Caps classes.
git-svn-id: svn://10.0.0.236/trunk@107546 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:54:09 +00:00
sspitzer%netscape.com
67ee809929 more work for converting AB results pane to outliner.
bug #73868.  not part of the build


git-svn-id: svn://10.0.0.236/trunk@107545 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:46:17 +00:00
hyatt%netscape.com
db67978a0a Fix for 108318 make ICO decoder non-incremental. r=pav, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107544 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:28:51 +00:00
hyatt%netscape.com
79374b514b Fix for 108318 make ICO decoder non-incremental. r=pav, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107543 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:27:58 +00:00
peterlubczynski%netscape.com
ecf99805e4 Fix for NPN_PostURL not always working correctly [like with binary file data] bug 105417 r=av sr=darin
git-svn-id: svn://10.0.0.236/trunk@107542 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 03:03:04 +00:00
law%netscape.com
e7d529ebd1 Bug 102350; it's just a little disk; r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107541 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:54:28 +00:00
law%netscape.com
1e545b2e81 Bug 100406 (patch submitted by Mike Kaply); size to content before centering; this is necessary because we change the content; r=law, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107540 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:50:43 +00:00
ian%hixie.ch
78c02b74a7 Disambiguate the names of the two methods 'hash' and 'sort'. They are now called 'genericHash' and 'genericSort' so as not to clash with the perl builtins 'CORE::hash' and 'CORE::sort'.
git-svn-id: svn://10.0.0.236/trunk@107539 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:49:21 +00:00
ian%hixie.ch
2923002831 Changing the shebang to point to a more likely location of the perl interpreter.
git-svn-id: svn://10.0.0.236/trunk@107538 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:46:38 +00:00
sgehani%netscape.com
e94a6acda8 Eliminate warnings.
b = 79336
r = sgehani (checking in sfraser's patch)
rs = alecf


git-svn-id: svn://10.0.0.236/trunk@107537 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:43:39 +00:00
sgehani%netscape.com
714b51280f Don't change window size on load.
b = 99725
r = matt
sr = blake


git-svn-id: svn://10.0.0.236/trunk@107536 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:41:53 +00:00
karnaze%netscape.com
7265213615 bug 105166 - additional patch to place rounding code in the right place. sr=attinasi.
git-svn-id: svn://10.0.0.236/trunk@107535 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:38:49 +00:00
loadrunner%betak.net
bfeea864ea bug 106536 Blank charset list in SaveAs charset of HTML composer, r=cmanske, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107534 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:32:58 +00:00
sgehani%netscape.com
5042bb2d30 Fix bustage from last checkin.
git-svn-id: svn://10.0.0.236/trunk@107533 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 02:30:18 +00:00
ian%hixie.ch
76d8c32a10 Initial checkin of the first PLIF test application.
git-svn-id: svn://10.0.0.236/trunk@107532 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:42:05 +00:00
dbaron%fas.harvard.edu
f4593f1a78 Let's not put crucial XP includes in |#ifdef XP_WIN|. Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@107530 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:32:44 +00:00
peterlubczynski%netscape.com
da662eeea7 Fix for when the browser calls "Destroy" twice for some XPCOM plugins bug 104038 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107529 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:12:14 +00:00
cls%seawood.org
8a19b66a7c make our 64-bit platforms happy and use the macro to cast from pointer to int.
git-svn-id: svn://10.0.0.236/trunk@107528 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:08:26 +00:00
kmcclusk%netscape.com
d0fb62d700 Fix leak of parser objects when page load is interrupted by calling nsParser::CancelParsingEvents inside nsParser::Terminate; bug 108049 (patch from aaronr@us.ibm.com) r=harishd sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107527 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:02:56 +00:00
peterlubczynski%netscape.com
c93017e863 Fix for using OS temp directory for plugin temporary files instead of profile bug 104859 r=av sr=darin
git-svn-id: svn://10.0.0.236/trunk@107526 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 01:00:24 +00:00
hewitt%netscape.com
28703b942c 108759 - nsDOMEvent::InitEvent is throwing away screen/client coordinates, r=hyatt, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107525 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:54:02 +00:00
sspitzer%netscape.com
154d93971a new css file for switching ab over to outliner.
NOT PART OF THE BUILD. #73868


git-svn-id: svn://10.0.0.236/trunk@107524 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:27:09 +00:00
shliang%netscape.com
07ceb9e71c bug 61244. some classic skin files missing namespace. r=andreww, sr=hewitt.
git-svn-id: svn://10.0.0.236/trunk@107523 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:25:21 +00:00
brendan%mozilla.org
c1526a5251 Avoid recursive join/toString death (108440, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@107522 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:15:44 +00:00
loadrunner%betak.net
83478013af bug 102026 Charset menu misplacing (.), r=nhotta, rs=kin
git-svn-id: svn://10.0.0.236/trunk@107521 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:13:18 +00:00
jgaunt%netscape.com
3c4c93afa1 bug 108069 r=aaronl sr=hyatt
groundwork for XUL select accessibility work


git-svn-id: svn://10.0.0.236/trunk@107520 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:13:07 +00:00
jgaunt%netscape.com
daab4c1f4c bug 108069 r=aaronl sr=hyatt
groundwork for XUL select accessibility work
lots of suffling stuff around


git-svn-id: svn://10.0.0.236/trunk@107519 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:12:16 +00:00
jst%netscape.com
edf83c6cd6 Fixing bug 108651. Don't call nsIDocument::ContentAppended() if nothing was appended (when inserting an empty document fragment). r=harishd@netscape.com, rs=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107518 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:11:36 +00:00
brendan%mozilla.org
d97c123a81 Move the oversized arena back-pointer to a well-aligned header extension lying just behind a->base (108013, sr=waterson&jband).
git-svn-id: svn://10.0.0.236/trunk@107517 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:11:22 +00:00
loadrunner%betak.net
ef7e4e3743 bug 97175 startup perf- remove the need of loading of charsetalias.properties files at startup, r=nhotta, sr=kin
git-svn-id: svn://10.0.0.236/trunk@107516 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:06:43 +00:00
sfraser%netscape.com
709635468a Clean up after my wonky fixing of the DefaultPlugin project yesterday, and CVS remove the checked in binary (bug 108223).
git-svn-id: svn://10.0.0.236/trunk@107515 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:02:42 +00:00
alecf%netscape.com
ff976d776d fix HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@107514 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:02:07 +00:00
ddrinan%netscape.com
e6b9c1e197 Bug 108744 - mail compose does not get S/MIME settings. r=javi,sr=mscott
git-svn-id: svn://10.0.0.236/trunk@107513 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-07 00:00:44 +00:00
radha%netscape.com
9c70ff699d Fix for bug # 108041. Session history misbehaves when _top is replaced after a series of subframe navigations. r=adamlock sr=rpotts.
git-svn-id: svn://10.0.0.236/trunk@107512 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:56:45 +00:00
mscott%netscape.com
73de839dd7 *sigh* fix yet another xul syntax regression. text --> label
git-svn-id: svn://10.0.0.236/trunk@107511 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:47:42 +00:00
mscott%netscape.com
179c4c0111 Bug #107707 --> add a row element to the grid to make brief mode work again.
r=bienvenu
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107510 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:46:51 +00:00
peterlubczynski%netscape.com
46045b394a Fix for background color not being set on the widget for plugins bug 83159 r=av sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107509 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:46:13 +00:00
av%netscape.com
8c4c191580 Bug 106435 -- handling booleans passed in NPN_SetVariable in backward compatible way, r=peterl, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107508 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:45:01 +00:00
locka%iol.ie
dca063f714 Add flag to prevent saveURI from decompressing gzipped data as it is arriving b=108268 r=bryner@netscape.com sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107507 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:43:39 +00:00
srilatha%netscape.com
126a9b7f60 Fix for bug # 107558, added getServerList to make ldap prefs work again.
r=dmose,sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107506 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:42:58 +00:00
peterlubczynski%netscape.com
0140ed3af2 Fix for loading Carbon plugins that also have a mainRD exported. Fixes load problems with Carbon Shockwave Director bug 106070 r=beard sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@107505 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:42:35 +00:00
bryner%netscape.com
ed1fc72b3e Bug 108742 - cannot get a cert. patch from stephen walker, r=bryner, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@107504 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:39:17 +00:00
blizzard%redhat.com
966e87d540 Bug #107651. Handle drop type text/uri-list. Patch is from James Henstridge <james@daa.com.au>. r=markh, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@107503 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:31:17 +00:00
javi%netscape.com
ef265319b8 This should be the last for Bug 106507.
Forgot to add mimecryp.cpp to the Mac Mime project file.


git-svn-id: svn://10.0.0.236/trunk@107502 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:30:24 +00:00
alecf%netscape.com
e769459750 kill DIST_DIRS, LAYOUT_DIRS, and CLIENT_DIRS r=cls
bug 105077


git-svn-id: svn://10.0.0.236/trunk@107501 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:16:37 +00:00
karnaze%netscape.com
bfb10c7fae new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@107500 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:15:24 +00:00
alecf%netscape.com
b5cc350bd4 fix for minor leak bug 108640 r=jag, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107499 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:14:47 +00:00
darin%netscape.com
6136114f39 fixes bug 108267 "scale back NS_BINDING_REDIRECTED proliferation"
r=gagan, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@107498 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:09:44 +00:00
locka%iol.ie
3c07440a65 Fix duff indentation (tab instead of space). b=78810
git-svn-id: svn://10.0.0.236/trunk@107497 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:06:36 +00:00
ducarroz%netscape.com
d6b8386581 Fix for bug 105729. The string need to have at least the same amount of characters than the substring in order to compare them. R=varada, SR=alecf
git-svn-id: svn://10.0.0.236/trunk@107496 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:06:24 +00:00
blizzard%redhat.com
cc0b022772 Bug #99174. Limit the length of requests to XDrawString to 32K avoid causing X protocol errors. r=alecf, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107495 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:05:39 +00:00
karnaze%netscape.com
f410e9f281 bug 77982 - consider border/padding on a cell that goes from empty to non-empty during an incremental reflow. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@107494 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:05:32 +00:00
timeless%mac.com
13298d275a Bug 83017 - Frame Info dialog has title 'View Page Info'
patch by db48x@yahoo.com r=fabian, sr=jst


git-svn-id: svn://10.0.0.236/trunk@107493 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:01:03 +00:00
karnaze%netscape.com
b87047f2a5 bug 57300 - treat the height attribute on a row similarly to a style height. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@107492 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 23:00:10 +00:00
ben%netscape.com
778cb24ef4 108462 - Remove Vixen. r=bryner, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107491 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:59:55 +00:00
karnaze%netscape.com
8e9ce2be93 bug 30692 - Have children of cell block use the computed width of the cell. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@107490 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:57:17 +00:00
varada%netscape.com
f054d8ebe7 fix for bug #65761 and #108606 -polishing prefill filters;r/sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107489 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:55:37 +00:00
locka%iol.ie
1151308cf0 Add fixup for view-source: URLs. b=78810 r=bzbarsky@mit.edu sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107488 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:55:30 +00:00
ben%netscape.com
a125c72d9b 90080 - no restart message appears when switching UI language.
r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@107487 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:55:05 +00:00
pinkerton%netscape.com
1a055590ab Now a .mm. Obsolete.
git-svn-id: svn://10.0.0.236/trunk@107486 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:54:39 +00:00
bryner%netscape.com
f51e958f3e Removing obsolete unused files. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107485 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:54:29 +00:00
pinkerton%netscape.com
6b9b19e010 pulling over bryner's changes from widget/src/mac
git-svn-id: svn://10.0.0.236/trunk@107484 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:53:51 +00:00
pinkerton%netscape.com
ee51e87c47 removing timer, it's now in toolkit
git-svn-id: svn://10.0.0.236/trunk@107483 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:53:25 +00:00
karnaze%netscape.com
d4308b507a bug 107857 - add -moz-show-background value to empty-cells and make that the quirk default. sr=attinasi, r=pierre.
git-svn-id: svn://10.0.0.236/trunk@107482 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:52:59 +00:00
pinkerton%netscape.com
04c86d73f7 cocoa'ifying toolkit. moving PLEvent timer here.
git-svn-id: svn://10.0.0.236/trunk@107481 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:52:52 +00:00
wtc%netscape.com
71f6b17411 Removed the temporary #if 0.
git-svn-id: svn://10.0.0.236/trunk@107480 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:52:12 +00:00
alecf%netscape.com
618d9ec8d7 fix for bug 108684 - cache objects not included in bloat logs
r=gordon, sr=darin


git-svn-id: svn://10.0.0.236/trunk@107479 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:51:58 +00:00
alecf%netscape.com
71dee0899c fix for bug 108597 - move mOwnsBuffer and mCharSize into smaller variables to reduce nsStr's overall size
r=jag, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107478 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:50:13 +00:00
despotdaemon%netscape.com
0d2bde26d8 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@107477 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 22:49:24 +00:00
wtc%netscape.com
c6fcf205bb Bugzilla bug 108708: commented out the "netstat -ni" command for
debugging.  This change will be backed out.


git-svn-id: svn://10.0.0.236/trunk@107475 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 21:34:09 +00:00
ian.mcgreer%sun.com
1d961328df fix for 95983, compiler warning revealed potential bug
git-svn-id: svn://10.0.0.236/trunk@107474 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 20:32:43 +00:00
ian.mcgreer%sun.com
6c8bd66a32 more trust handling stuff
git-svn-id: svn://10.0.0.236/trunk@107473 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 20:16:19 +00:00
rogerl%netscape.com
2fabd4ccad Added Function.call/apply. Fixed bug in exception handling clean-up of
activation stack.


git-svn-id: svn://10.0.0.236/trunk@107472 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 19:45:04 +00:00
pinkerton%netscape.com
ad253d37ca backing out last change to fix mach-o build
git-svn-id: svn://10.0.0.236/trunk@107471 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 18:50:18 +00:00
despotdaemon%netscape.com
7d27a0daad Pseudo-automatic update of changes made by shliang@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@107470 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 18:42:39 +00:00
despotdaemon%netscape.com
97f686d78c Pseudo-automatic update of changes made by knous@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@107469 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 18:22:14 +00:00
jake%acutex.net
b4c2275ed0 Refixing bug 71840 - The name should be the 'name' should be the same as what the 'href' points it too...
r= justdave@syndicomm.com


git-svn-id: svn://10.0.0.236/trunk@107468 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 18:06:02 +00:00
blizzard%redhat.com
9b6794d44c back out darin's fix for bug #107789 since it caused blocker #108637.
git-svn-id: svn://10.0.0.236/trunk@107466 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 16:32:52 +00:00
pinkerton%netscape.com
4a6332a214 unix linefeeds this time
git-svn-id: svn://10.0.0.236/trunk@107464 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 16:03:52 +00:00
pinkerton%netscape.com
d5a312024f oops, backing out inclusion of nsIEventSink.idl
git-svn-id: svn://10.0.0.236/trunk@107463 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 16:03:02 +00:00
pinkerton%netscape.com
e13b47e743 New EventSink api. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@107462 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:59:32 +00:00
mkaply%us.ibm.com
0b9f89f0d8 Oops overwriting wrong codepage
git-svn-id: svn://10.0.0.236/trunk@107461 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:54:54 +00:00
pinkerton%netscape.com
0503d1a3d0 First stab at cocoa. [not part of build]
git-svn-id: svn://10.0.0.236/trunk@107459 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:46:50 +00:00
pinkerton%netscape.com
ded9d238a5 Remove dependency on nsDynamicMDEF (it's very os9) and removing those
files altogether. [not part of build]


git-svn-id: svn://10.0.0.236/trunk@107458 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:46:26 +00:00
pinkerton%netscape.com
d4634aba3d Ifdefs for mach-o build. We do too have a splash screen. r=beard/rs=sfraser.
git-svn-id: svn://10.0.0.236/trunk@107457 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:39:06 +00:00
pinkerton%netscape.com
caf8397f30 Stub impl for cocoa [Not part of build]
git-svn-id: svn://10.0.0.236/trunk@107456 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:36:12 +00:00
mkaply%us.ibm.com
6009659a90 Forgot some return codes
git-svn-id: svn://10.0.0.236/trunk@107455 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:35:41 +00:00
pinkerton%netscape.com
8f7dd9c564 First stab at Cocoa impl of widget. Some code still carbon, copied from
widget/src/mac. [Not part of build].


git-svn-id: svn://10.0.0.236/trunk@107454 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 15:35:24 +00:00
rods%netscape.com
f5b747b20b Minor fix up to my PrintPreview Checkin
Bug 107562


git-svn-id: svn://10.0.0.236/trunk@107452 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 14:34:00 +00:00
despotdaemon%netscape.com
7d103e0331 Pseudo-automatic update of changes made by mikep@oeone.com.
git-svn-id: svn://10.0.0.236/trunk@107451 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 13:49:32 +00:00
dinglis%qnx.com
6eab060ba1 NTO PART OF BUILD
fixed photon bustage


git-svn-id: svn://10.0.0.236/trunk@107450 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 13:33:36 +00:00
jdunn%netscape.com
a6df12a0f6 fixing build bustage on HP's & AIX's new compilers
removing the static keyword from a couple templates
sr=jst@netscape.com
# 106167


git-svn-id: svn://10.0.0.236/trunk@107449 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 13:22:05 +00:00
rods%netscape.com
843ec68778 Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define
Bug 107562 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107448 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 12:18:51 +00:00
seawood%netscape.com
e9d30f1ebc Whoops! The glue library is supposed to be static.
Bug #83544


git-svn-id: svn://10.0.0.236/trunk@107447 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 10:50:37 +00:00
pierre%netscape.com
0ef28aebb3 Checked in for fantasai@escape.com. Bug 43220 "author !important rules override user !important rules in user.css". Add User sheets. Rename Backstop sheets into UserAgent. Fix cascading order. r=pierre/sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@107446 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 10:04:05 +00:00
seawood%netscape.com
03f596acd6 Allow multiple toolkits to be installed in a build by marking the non-default toolkits as "inactive" and placing them in a separate components dir.
Bug #91829 r=jag


git-svn-id: svn://10.0.0.236/trunk@107445 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 09:45:23 +00:00
jst%netscape.com
ba5a80f5bd Fixing bug 108232. Don't flush like mad in the form code now that form state is kept in the content elements and not in the frames. r=jkeiser@iname.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107444 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 09:10:07 +00:00
hyatt%netscape.com
192c50dc19 103097, fire custom events when link elts are added/removed. Helping out the link toolbar folks. r=jag, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107443 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 09:02:55 +00:00
seawood%netscape.com
e469132bc2 Attempt to fix OS/2 bustage by declaring callback function appropriate
git-svn-id: svn://10.0.0.236/trunk@107442 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 08:23:51 +00:00
rbs%maths.uq.edu.au
ec47d909ea Nail a sneaky memory leak in one of the 'A'-functions - initially detected during the comb of bug 103777, r=shanjian, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107441 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 08:00:15 +00:00
dbaron%fas.harvard.edu
8c7cfc52d1 Fix inheritance of percentage values for 'line-height' by removing hacks to base percentage values for 'line-height' on the actual value rather than the computed value of 'font-size'. Fix various |const|-ness issues in nsRuleNode. b=97726 r=pierre sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107440 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 07:48:02 +00:00
jkeiser%iname.com
5c1f007583 Fix from jst@netscape.com to URL-escape A NAME (bug 87996)
git-svn-id: svn://10.0.0.236/trunk@107439 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 07:14:40 +00:00
attinasi%netscape.com
f538e7840a Fix for memory leaks in nsRenderingContextImpl and nsrenderingContextWin (patch provided by Dainis Jonitis). b=107532 r=mkaply sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107438 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 07:11:30 +00:00
dbaron%fas.harvard.edu
e48117359d Take address before casting to avoid confusing the gcc optimizer with what perhaps shouldn't compile anyway. r=pinkerton sr=sfraser b=108585
git-svn-id: svn://10.0.0.236/trunk@107437 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 06:15:40 +00:00
cls%seawood.org
49044f9a3a Remove c++ comment
git-svn-id: svn://10.0.0.236/trunk@107436 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 06:01:59 +00:00
jkeiser%iname.com
e280789a88 Make only text/password/file/hidden elements reset when value attribute is
changed.  (bug 108526).  r=rpotts@netscape.com, sr=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@107435 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 05:41:47 +00:00
naving%netscape.com
9849e524b7 104610 r=bienvenu sr=sspitzer Make sure that mSubFolders array does not have duplicates.
git-svn-id: svn://10.0.0.236/trunk@107434 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 05:35:42 +00:00
seawood%netscape.com
01ed6f94df Move generic implementations of mimexpcom & nsMimeContentTypeHandler classes into glue library. Modify vcard, calendar & smimestub handlers to use the generic implementations of the base classes. Remove old non-generic copies of mimexpcom & nsMimeContentTypeHandler .
Bug #83544 r=ducarroz sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107433 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 05:12:09 +00:00
seawood%netscape.com
e448539c27 Use generic mimexpcom & nsMimeContentTypeHandler files from cthandlers/glue.
Bug #83544 r=ducarroz sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107432 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 05:08:26 +00:00
mstoltz%netscape.com
aa1727f913 Bug 105705, temporary fix. Remove security check optmization
from global property access. sr=jst, r=harishd. We will find
a better fix that preserves the optimization, this fix is temporary.


git-svn-id: svn://10.0.0.236/trunk@107431 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 05:04:36 +00:00
seawood%netscape.com
fce1d10fb6 Allow nsinstall to install (copy) directories.
Thanks to pedemont@us.ibm.com (Javier Pedemonte) for the patch.
Bug #76900 r=cls sr=brendan


git-svn-id: svn://10.0.0.236/trunk@107430 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 04:51:47 +00:00
naving%netscape.com
77196885e6 108276. Open the mailbox in PR_RDONLY mode because only read operations are done using
this connection. should cut down closing mailbox (PR_Close()) time.


git-svn-id: svn://10.0.0.236/trunk@107429 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 04:25:28 +00:00
bryner%netscape.com
6ad05b9ea5 Clarifying log message. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107428 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 04:23:16 +00:00
bryner%netscape.com
532ac12efb Fixing mac bustage. r=cls.
git-svn-id: svn://10.0.0.236/trunk@107427 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 04:15:05 +00:00
darin%netscape.com
0d51dc65ff fixes mac bustage
git-svn-id: svn://10.0.0.236/trunk@107426 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 03:56:00 +00:00
blakeross%telocity.com
ff478ef551 autocomplete dialog shouldn't be resizable. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107425 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 03:40:13 +00:00
sspitzer%netscape.com
514732e6f4 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@107424 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 03:29:02 +00:00
seawood%netscape.com
f30b49edcb silly line-endings
git-svn-id: svn://10.0.0.236/trunk@107423 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 03:20:41 +00:00
despotdaemon%netscape.com
9ff2328aa5 Pseudo-automatic update of changes made by jkeiser@iname.com.
git-svn-id: svn://10.0.0.236/trunk@107422 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:52:52 +00:00
darin%netscape.com
902546fa1d fixes bug 107789 "depracate nsIRandomAccessStore (superceded by nsISeekableStream)"
r=dougt, sr=rpotts


git-svn-id: svn://10.0.0.236/trunk@107421 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:50:42 +00:00
seawood%netscape.com
89efd0f65a Removed IGNORE_MANIFEST
git-svn-id: svn://10.0.0.236/trunk@107420 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:48:37 +00:00
nelsonb%netscape.com
4035d51f10 Attempt to move all the constant tables in secoid.c into the text segment
where they belong.


git-svn-id: svn://10.0.0.236/trunk@107419 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:46:37 +00:00
attinasi%netscape.com
dc30e5998c Oops - check for empty damageRect in nsFrame::Invalidate should be DEBUG only. b=103266 r=rbs sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107418 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:44:35 +00:00
bryner%netscape.com
ebb951b148 Reorganize nsLookAndFeel so that all of the platform implementations
derive from nsXPLookAndFeel.  Implement a color cache for
nsXPLookAndFeel::GetColor calls.  bug 77941, r=akkana, rs=waterson.


git-svn-id: svn://10.0.0.236/trunk@107417 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:41:04 +00:00
despotdaemon%netscape.com
433d3af967 Pseudo-automatic update of changes made by peterb@oeone.com.
git-svn-id: svn://10.0.0.236/trunk@107416 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:37:42 +00:00
seawood%netscape.com
f9e4cb25aa Start building content handler glue library.
Bug #83544 r=ducarroz sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107415 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:31:08 +00:00
despotdaemon%netscape.com
ba97acdc6d Pseudo-automatic update of changes made by colinp@oeone.com.
git-svn-id: svn://10.0.0.236/trunk@107414 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:30:54 +00:00
seawood%netscape.com
8a9fd9e580 Make mimexpcom & nsMimeContentTypeHandler generic enough to be used for any content handler.
Bug #83544 r=ducarroz sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107413 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:29:16 +00:00
ddrinan%netscape.com
d0987df95f Missed this as part of landing of S/MIME. r=javi, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@107412 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:17:46 +00:00
stephend%netscape.com
78cfb1bb22 Bug 81041. 'New Account' -> 'Add Account'. r=jglick, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@107411 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 02:14:08 +00:00
attinasi%netscape.com
8e3b74c6cf Reversed the order that width and height are checked in IsEmpty since it is more common to have a height of 0. b=103266 r=rbs sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107410 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:48:36 +00:00
bbaetz%cs.mcgill.ca
74513dad3c Bug 38014 - show localised dates in html dir listing
Also fixes bug 99169 - display html dir listing file sizes in a nicer
format.

r=darin, sr=smfr


git-svn-id: svn://10.0.0.236/trunk@107409 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:46:18 +00:00
sfraser%netscape.com
05c5dfecdc Fix NullPlugin.mcp to build in a Carbon debug build; renaming it to DefaultPlugin.mcp and fixing prefix files. r=beard, sr=fm
git-svn-id: svn://10.0.0.236/trunk@107408 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:45:15 +00:00
attinasi%netscape.com
11481ea927 Elimiate calls to nsFrame::Invalidate when the dirtyRect is empty. Also, removed some invalid code from nsFrame::Invalidate and added DEBUG check to catch later offenders. b=103266 r=rbs sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107407 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:44:20 +00:00
seawood%netscape.com
84b9551c2a Adding makefiles for cthandlers glue lib.
Bug #83544 r=ducarroz sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107406 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:44:07 +00:00
pete%alphanumerica.com
3c8b2b33e3 b=92329, r=ccarlen, sr=brendan
Fix for nsLocalFileUnix ::GetTarget doesn't handle relative symlinks


--pete


git-svn-id: svn://10.0.0.236/trunk@107405 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:42:00 +00:00
ben%netscape.com
8f4806600a 108595 - Add a method for determining whether or not a context menu separator should be shown by determining if there are any items prior to the separator that are not hidden. r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107404 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:41:03 +00:00
ben%netscape.com
7c3257d6ab 108595 - prevent a duplicate load of contentAreaContextOverlay.xul which is causing problems for image blocking, and remove an unused script include. r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107403 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:40:09 +00:00
ben%netscape.com
074183292e 108595 - "Block Images for this server" menu item not showing up. Remove display:none style rule now that the overlay that includes this overlay (contentAreaContextOverlay.xul) is no longer being loaded twice by navigator. r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107402 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:39:36 +00:00
ben%netscape.com
bd62da3fb8 108595 - wallet context items inserted into the wrong position in navigator context menu. regardless of context. Reposition them after the clipboard items. r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107401 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:38:48 +00:00
ben%netscape.com
39826bfdaf 108595 - mail send page/link context menu items always showing in Navigator, regardless of context. Ensure that popupshowing event listener gets added. r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107400 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:38:03 +00:00
ben%netscape.com
2e2ef977f4 Bug 107842 - Missing menu items from message pane context menu & 107890 - js error loading standalone message window, popup has no properties
- ensure the correct menu items and separators are hidden using newer separator hide logic. r=blake, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107399 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:36:51 +00:00
karnaze%netscape.com
572c89cc71 new regression test, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@107398 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:35:06 +00:00
dinglis%qnx.com
89d08199b2 NOT PART OF BUILD
increased draw buffer


git-svn-id: svn://10.0.0.236/trunk@107397 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:32:44 +00:00
attinasi%netscape.com
841eb99d32 Fixed typo wrt width and height (patch provided by Dainis Jonitis) b=107530 r=mkaply sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107396 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:28:27 +00:00
dinglis%qnx.com
35f3674b05 NOT PART OF BUILD
small resize opt to use start/end flux when aRepaint not set


git-svn-id: svn://10.0.0.236/trunk@107395 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:27:50 +00:00
sspitzer%netscape.com
fc8f18ede8 work for converting ab results pane from tree to outliner. NOT PART OF THE BUILD.
bug #73868.


git-svn-id: svn://10.0.0.236/trunk@107394 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:27:07 +00:00
danm%netscape.com
17ff11d2db initial (disabled) cut at creating about:blank documents synchronously. part of bug 88229 r=hyatt,rpotts
git-svn-id: svn://10.0.0.236/trunk@107393 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:24:39 +00:00
waldemar%netscape.com
120229a1fc Added :wrap and extended :nowrap to apply as either a paragraph or an inline style
git-svn-id: svn://10.0.0.236/trunk@107392 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:24:13 +00:00
waldemar%netscape.com
eb97b81cf5 Added dump-units
git-svn-id: svn://10.0.0.236/trunk@107391 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:23:17 +00:00
danm%netscape.com
d908e2d3d8 don't show a new chrome window immediately upon creation, but after chrome has loaded. part of bug 88229 r=hyatt,rpotts
git-svn-id: svn://10.0.0.236/trunk@107390 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:22:58 +00:00
waldemar%netscape.com
18741a2d21 Added support for //, assert, and uninitialized vars
git-svn-id: svn://10.0.0.236/trunk@107389 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:22:57 +00:00
blakeross%telocity.com
f1a55693bd minor optimization in radio.xml. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107388 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:22:48 +00:00
waldemar%netscape.com
dac5e56b37 Added dump-regexp
git-svn-id: svn://10.0.0.236/trunk@107387 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:22:45 +00:00
waldemar%netscape.com
cf5f13c0c6 Ensured that styled text doesn't contain non-keyword symbols as styles
git-svn-id: svn://10.0.0.236/trunk@107386 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:22:14 +00:00
danm%netscape.com
c0a163eddd consolidating nsIWebBrowserChrome::CreateBrowserWindow and nsIWindowCreator::CreateChromeWindow. part of bug 88229 r=hyatt,rpotts"
git-svn-id: svn://10.0.0.236/trunk@107384 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:21:03 +00:00
pchen%netscape.com
74029aa39f bug 108539, r=jag, sr=sfraser, need to call NS_IF_RELEASE(mInner) to prevent leak of datasource, also cleaned up create instance call
git-svn-id: svn://10.0.0.236/trunk@107383 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:20:12 +00:00
danm%netscape.com
9eb95d4aed consolidating nsIWebBrowserChrome::CreateBrowserWindow and nsIWindowCreator::CreateChromeWindow. part of bug 88229 r=hyatt,rpotts
git-svn-id: svn://10.0.0.236/trunk@107382 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:19:39 +00:00
blakeross%telocity.com
603326ad56 one brace too many in radio.xml. r/sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107381 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:16:28 +00:00
ducarroz%netscape.com
de4464b584 Fix for bug 108323. Fix regression introduced with my last checkin. For some reason I cannot initialize the LDAP service in one line like other services. R=varada, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107380 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:15:07 +00:00
andreww%netscape.com
81d29352bb bugzilla bug 84532 r=shliang sr=hewitt line break between subject and body of message.
git-svn-id: svn://10.0.0.236/trunk@107379 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:14:06 +00:00
jgaunt%netscape.com
92dd0623c0 bug 108219 fixing filenames so mac's don't choke and adding them to the mcp file
r=hewitt
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@107378 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:13:32 +00:00
andreww%netscape.com
2ae361eabe bugzilla 59887 mac classic focus ring matches system color - r=shliang sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107377 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:12:11 +00:00
jgaunt%netscape.com
d93f453d48 bug 108219 fixing filenames so Mac's can handle them
r=hewitt
rs=sfraser


git-svn-id: svn://10.0.0.236/trunk@107376 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:11:41 +00:00
cmanske%netscape.com
a46d07c43d Fixed 'New' Composer command, b=106728, r=rcassin, sr=kin
git-svn-id: svn://10.0.0.236/trunk@107375 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:07:45 +00:00
hewitt%netscape.com
f7e3c96729 107415 - navigation problems in randomly ordered wizards, r=kerz, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107374 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:07:35 +00:00
ducarroz%netscape.com
0e52e9b97a Fix for bug 102536. Need to proceed up to the end of the buffer, we were missing the last byte!
Thanks to Geoffrey.R.Gustafson@intel.com & James.P.Gurganus@intel.com for the fix. R=ducarroz, SR=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107373 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:06:57 +00:00
shanjian%netscape.com
492232ac44 #107869 Reply mail doesn't inherit the original charset
r=ducarroz sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107372 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 01:02:25 +00:00
timeless%mac.com
f571b33b80 Bugzilla Bug 83017 Frame Info dialog has title 'View Page Info'
patch by db48x@yahoo.com r=fabian sr=jst


git-svn-id: svn://10.0.0.236/trunk@107371 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:54:15 +00:00
sspitzer%netscape.com
87b004006d fix for regression bug#108604 and few other ab bugs.
1)  collapse the card pane inner box initially so that it doesn't look like crap
before we select a card
2)  "Edit and "Card Properties" is now "Properties"
3)  if a mailing list has focus, "Properties" should bring up the edit mailing list dialog
4)  fix js warnings
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107370 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:54:04 +00:00
sspitzer%netscape.com
7c19329053 fix for #107639. fix broken select offline dialog. horked by recent
grid changes.  r/sr=sspitzer fix by blakeross.


git-svn-id: svn://10.0.0.236/trunk@107369 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:50:56 +00:00
sspitzer%netscape.com
ad2a8546b2 fix for #108346. check rv from do_GetService() to prevent crash.
r=ducarroz, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107368 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:49:17 +00:00
harishd%netscape.com
1bfa4fee99 106746 - DD/DT should not contain each other. r=heikki, sr=attinasi.
99388 - Avoid PR_GetEnv(). sr=attinasi.


git-svn-id: svn://10.0.0.236/trunk@107367 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:48:11 +00:00
bzbarsky%mit.edu
4edf8f2b0f Fix inheritance of frameborder in multiply nested framesets. Bug
108164, r=timeless, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107366 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:44:25 +00:00
yokoyama%netscape.com
b9407d3971 Bug 108383
removing strtok() for parsing -P correctly
as it should be.  strtok() was added by mistake 10430
/r=ccarlen; /sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107365 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:44:18 +00:00
jband%netscape.com
9501633b32 better error message when zero passed where object or null expected. bug 108284. r=dbradley sr=shaver. Also, fix uninitilized counter var in debug only code rs=jband
git-svn-id: svn://10.0.0.236/trunk@107364 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:40:54 +00:00
despotdaemon%netscape.com
90b9a8240a Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@107363 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-06 00:34:24 +00:00
blakeross%telocity.com
9c6542ebad 108592 - js error in filepicker. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107361 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 23:27:44 +00:00
blakeross%telocity.com
968987e0c4 108592 - js error in filepicker. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107360 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 23:26:25 +00:00
jst%netscape.com
77961e0d07 Checking in workaround for blocker bug 108526. Don't force a reset of an input if there's no parent since this causes checkboxes and radio buttons to be reset before all their attributes are added. r=sicking@bigfoot.com, sr=blizzard@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@107359 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 23:20:05 +00:00
blakeross%telocity.com
2cbfcac3d4 108592 - js error in filepicker. r=ben sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107358 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 23:07:20 +00:00
rginda%netscape.com
e94dc5a898 removing dead code, see mozilla/js2
git-svn-id: svn://10.0.0.236/trunk@107357 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 21:46:17 +00:00
rginda%netscape.com
b217ed22ea removing dead code, see mozilla/js2
git-svn-id: svn://10.0.0.236/trunk@107355 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 21:38:18 +00:00
justdave%syndicomm.com
2d28f97361 SECURITY FIX see bug 108385: Due to trusting of passed form fields that shouldn't have been trusted, it was possible to add a comment to a bug pretending to be someone else if you edited the HTML by hand before submitting. The bug form did not include the field in question, but due to legacy processing code, the field was still trusted if it was present.
Patch by Dave Miller <justdave@syndicomm.com>
r= jake x2


git-svn-id: svn://10.0.0.236/trunk@107350 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 20:47:17 +00:00
justdave%syndicomm.com
2218691609 SECURITY FIX see bug 108516: Due to trusting of passed form fields that shouldn't have been trusted, it was possible to file a
bug pretending to be someone else if you edited the HTML by hand before submitting.
Patch by Dave Miller <justdave@syndicomm.com>
r= bbaetz, jake


git-svn-id: svn://10.0.0.236/trunk@107349 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 20:43:35 +00:00
blakeross%telocity.com
97f2c39c6f 108565 - revert hewitt's one-line change. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107348 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 19:59:44 +00:00
ian.mcgreer%sun.com
c439de9470 fix Stan reference
git-svn-id: svn://10.0.0.236/trunk@107346 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 19:02:49 +00:00
dinglis%qnx.com
2aba19acd5 NOT PART OF BUILD
fixed random crashes and strange rendering due to using a destroyed GC.


git-svn-id: svn://10.0.0.236/trunk@107345 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 18:53:03 +00:00
dinglis%qnx.com
1018f249a0 NOT PART OF BUILD
fixed damage rect translation and clipping


git-svn-id: svn://10.0.0.236/trunk@107344 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 18:51:56 +00:00
rogerl%netscape.com
c56b67d309 Fixed result value of for..in statement. Handling of user throws & runtime
errors combined. Various reader->pos bugs. Added Error & NativeError types.
Added escape & unescape. Fixed bugs in Array.sort & Date settors.


git-svn-id: svn://10.0.0.236/trunk@107343 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 18:05:37 +00:00
ian.mcgreer%sun.com
095fc6a433 note the token imoprt for Stan
git-svn-id: svn://10.0.0.236/trunk@107342 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 17:55:25 +00:00
ian.mcgreer%sun.com
48d7b0f821 code for handling trust through softoken
git-svn-id: svn://10.0.0.236/trunk@107341 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 17:29:27 +00:00
ian.mcgreer%sun.com
7284b139b8 some attribute and session cleanup
git-svn-id: svn://10.0.0.236/trunk@107340 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 17:18:48 +00:00
karnaze%netscape.com
1f1d2d16ec new regression tests, not affecting the build.
git-svn-id: svn://10.0.0.236/trunk@107338 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 17:04:51 +00:00
jaggernaut%netscape.com
1473ada437 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107336 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 15:49:40 +00:00
karnaze%netscape.com
9a49482ec3 bug 107857 - show backgrounds on empty cells in quirks mode. sr=attinasi,r=alexsavulov,hixie
git-svn-id: svn://10.0.0.236/trunk@107335 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 15:32:25 +00:00
karnaze%netscape.com
548b21d542 additional patch for bug 97138 to cache pct height info on row and constrain sum of row height pcts <= 100.
git-svn-id: svn://10.0.0.236/trunk@107334 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 15:15:24 +00:00
mkaply%us.ibm.com
c1f7cb7901 #107688
r=mkaply, sr=blizzard
Special focus handling for combobox scrollbar


git-svn-id: svn://10.0.0.236/trunk@107333 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 14:53:04 +00:00
beard%netscape.com
557e1e3dec fix pluginClassic bustage, r=peterl, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@107332 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 14:30:05 +00:00
rods%netscape.com
60fde9b724 Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define
Bug 107562 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107331 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 14:14:16 +00:00
dinglis%qnx.com
beda200cf0 Not part of build
fixed REQUIRES


git-svn-id: svn://10.0.0.236/trunk@107330 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 13:35:02 +00:00
bzbarsky%mit.edu
8e5d7cf707 Fix the strings returned by .newValue/.prevValue for mutation events
(get rid of extra quotes, always set .prevValue if it exists).  Bug
107526, r=fabian, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@107329 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 13:19:10 +00:00
seawood%netscape.com
5c19e995e1 Backing out last checkin
git-svn-id: svn://10.0.0.236/trunk@107328 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 12:08:31 +00:00
seawood%netscape.com
f06a6e3ecb Removing toolkit dirs from toplevel Makefile
git-svn-id: svn://10.0.0.236/trunk@107327 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 11:22:12 +00:00
mcafee%netscape.com
2ebd539bdc scrape comment
git-svn-id: svn://10.0.0.236/trunk@107326 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 08:50:55 +00:00
hyatt%netscape.com
404bb5a4e2 108318, tweaks/cleanup to ICO decoder. r=pav, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107325 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 08:38:21 +00:00
hyatt%netscape.com
124acde668 Fix for 108486, XUL images should fire onload. r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107324 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 08:27:01 +00:00
blakeross%telocity.com
250742ac78 108478 - menulist needs default preftype. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107323 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 08:09:10 +00:00
blakeross%telocity.com
c6ee97c9d2 108478 - menulist needs default preftype of "int". r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107322 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:57:38 +00:00
jst%netscape.com
59f4f0adf1 Fixing blocker bug 108198. Make setAttribute('value') change .value until .value is set by JS or user. Patch by John Keiser <jkeiser@iname.com>, r/sr=hyatt@netscape.com, jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107321 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:50:21 +00:00
hyatt%netscape.com
afda6656e2 Fix for 108389. r=jkeiser, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107320 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:45:04 +00:00
law%netscape.com
2da9f9bee9 Bug 102017; add code to register as a WinXP start menu internet app; this was code checked in on the 0.9.4 branch; it needed some more work to factor out the application name into a resource on the trunk; r=ssu, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107319 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:42:18 +00:00
law%netscape.com
3269b7dc07 Bug 102017; adding string resource for use in configuring start menu on WinXP; need to include resource constant from new interface file; requires changing resource compiler flags in the makefile
git-svn-id: svn://10.0.0.236/trunk@107318 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:24:38 +00:00
law%netscape.com
b5fd6816a6 Bug 102017; build new interface with Win32 resource constant needed for WinXP start menu configuration
git-svn-id: svn://10.0.0.236/trunk@107317 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:21:21 +00:00
law%netscape.com
d169e24d96 New interface with Win32-specific resource constants for configuring WinXP start menu (for bug 102017); r=ssu, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107316 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:20:19 +00:00
jst%netscape.com
464f592ef1 Removing pointless GetIndex() call that does nothing but slow us down. r=jkeiser@iname.com, r=bzbarsky@mit.edu, sr=me.
git-svn-id: svn://10.0.0.236/trunk@107315 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:15:14 +00:00
law%netscape.com
a8dfdd90a5 Bug 105507; handle pseudo-error in OnStopRequest when target is redirected; r=pchen, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107314 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 06:13:26 +00:00
bhart00%yahoo.com
240bedba4f Fix for bug 96786, r=bryner sr=blake
git-svn-id: svn://10.0.0.236/trunk@107313 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 05:15:21 +00:00
blakeross%telocity.com
48e1005da3 Fixing js strict warning in stmpserverlist. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107312 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 04:50:11 +00:00
timeless%mac.com
b2399744c5 Bugzilla Bug 107672 Browser OS/Platform discrimination alg sucks
r=bbaetz, jake
Windows XP references are #'d because of bug 92763


git-svn-id: svn://10.0.0.236/trunk@107311 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 04:44:34 +00:00
pchen%netscape.com
fbf805a148 bug 14824, r=rjc, sr=blake, add LoadBookmarks() and initDatasource() protected member functions
git-svn-id: svn://10.0.0.236/trunk@107310 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 03:13:15 +00:00
pchen%netscape.com
836165bc5b bug 14824, r=rjc, sr=blake, don't read bookmarks.html in nsBookmarksService::Init(), load bookmarks once in ReadBookmarks()
git-svn-id: svn://10.0.0.236/trunk@107309 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 03:13:12 +00:00
pchen%netscape.com
dc6948470c bug 14824, r=rjc, sr=blake, add timeout at end of Startup() which will call nsBookmarksService::ReadBookmarks()
git-svn-id: svn://10.0.0.236/trunk@107308 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 03:12:53 +00:00
alecf%netscape.com
228074f97b fix for bug 108314 - fix crash in nsStringBundle::GetSimpleEnumeration by loading the string bundle before starting the enumeration
sr=blake
(simple fix, no r= because I wanted to get this in before the smoktests monday)


git-svn-id: svn://10.0.0.236/trunk@107307 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 02:33:16 +00:00
blakeross%telocity.com
65dddf5052 stupid whitespace changes.
git-svn-id: svn://10.0.0.236/trunk@107306 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 02:29:54 +00:00
blakeross%telocity.com
e110e5ae9b stupid whitespace changes.
git-svn-id: svn://10.0.0.236/trunk@107305 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 02:03:49 +00:00
blakeross%telocity.com
19f1759160 Er, typo in last patch. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107304 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 02:01:31 +00:00
blakeross%telocity.com
b42806bc05 These changes never made it in with original xul landing (/embedding). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@107303 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 01:50:50 +00:00
blakeross%telocity.com
9da4e7f2d2 Reverting two of joe's previous changes. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107302 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:47:52 +00:00
blakeross%telocity.com
d4cb41191e Reverting two of joe's previous changes. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107301 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:47:16 +00:00
blakeross%telocity.com
d0554596b1 Problems with download header dialog. Also revert line that joe shouldn't have changed. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107300 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:29:39 +00:00
karnaze%netscape.com
d30758e3fc bug 97138 - rework of table, row group, row, cell height code. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@107299 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:15:51 +00:00
bryner%netscape.com
57b929e4bf Fixing up initial enabling of the OK button when saving files. r=timeless, sr=blake,
git-svn-id: svn://10.0.0.236/trunk@107298 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:07:38 +00:00
bryner%netscape.com
89157f0cca Bug 107642 -- XUL syntax changes/cleanup. Patch from blake, r=hyatt, sr=ben.
git-svn-id: svn://10.0.0.236/trunk@107297 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-05 00:00:02 +00:00
peterv%netscape.com
f8a0c5299a Make Double purly static. Fix some bugs and exactness problems in Double::toString and Double::toDouble. Remove the Integer class.
b=96143 r=Pike sr=scc


git-svn-id: svn://10.0.0.236/trunk@107296 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 23:28:36 +00:00
sicking%bigfoot.com
608050c81c Make Double purly static. Fix some bugs and exactness problems in Double::toString and Double::toDouble. Remove the Integer class.
b=96143 r=Pike sr=scc


git-svn-id: svn://10.0.0.236/trunk@107295 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 23:27:23 +00:00
rods%netscape.com
0d1f12001c Fixing mem leak from my checkin (Bug 107562)
git-svn-id: svn://10.0.0.236/trunk@107294 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 11:33:28 +00:00
hyatt%netscape.com
64ae6e4822 Fix for 108403, XUL images don't scale to match pref size. r=andreww, sr=ben
git-svn-id: svn://10.0.0.236/trunk@107293 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 09:32:37 +00:00
blakeross%telocity.com
ecb9fd195a Backing out for now because unimplemented parts of xbl are causing problems.
git-svn-id: svn://10.0.0.236/trunk@107292 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 07:44:35 +00:00
blakeross%telocity.com
e42b2b810b smoketest blocker 108198, patch by jkeiser. r=ben sr=blake
git-svn-id: svn://10.0.0.236/trunk@107291 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 07:15:53 +00:00
darin%netscape.com
412602d284 fixes bug 107719 "avoid extra copy of http request headers"
r=bbaetz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@107290 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 05:50:37 +00:00
darin%netscape.com
0e7ad2f7b9 fixes bug 103070 "No new connections issued when waiting for timeout"
r=bbaetz, sr=mscott


git-svn-id: svn://10.0.0.236/trunk@107289 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 05:46:06 +00:00
darin%netscape.com
198888cf9c fixes bug 98884 "Automatic page refresh for Expires META tag not working"
r=gagan, sr=dougt


git-svn-id: svn://10.0.0.236/trunk@107288 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 05:33:33 +00:00
rods%netscape.com
85acd13711 Oops, I didn't mean to check this in, removing my change to turn it on again
git-svn-id: svn://10.0.0.236/trunk@107286 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 03:40:27 +00:00
blakeross%telocity.com
bb096393c2 Missed a line in Asko's patch.
git-svn-id: svn://10.0.0.236/trunk@107285 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 03:39:03 +00:00
bbaetz%cs.mcgill.ca
725fbf3242 Bug 66601 - drag&drop not working form the xul directory view
r=blake, sr=ben


git-svn-id: svn://10.0.0.236/trunk@107284 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 03:05:15 +00:00
mkaply%us.ibm.com
de6273fcb6 OS/2 and AIX bustage - the bustage is related to GetAltDevice in nsDeviceContext.h having an ADDREF of a nonconst - the easiest place to fix it is here
git-svn-id: svn://10.0.0.236/trunk@107283 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 03:04:01 +00:00
blakeross%telocity.com
6c53b26079 108382 - fix by Asko Tontti (atontti@cc.hut.fi). r=hewitt sr=blake
git-svn-id: svn://10.0.0.236/trunk@107282 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 02:59:03 +00:00
blakeross%telocity.com
69b64d953c Bradley doesn't like dir viewer's border. Who am I to disagree? r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107281 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 02:38:04 +00:00
rods%netscape.com
fb6e24185d Fix memory leaks, getting nsIWidget and not releasing it, found an extra one also
git-svn-id: svn://10.0.0.236/trunk@107280 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 02:37:07 +00:00
hyatt%netscape.com
96786e6f32 Bug 18502 remainder of checkin. Turning it on on the Mac. r/sr=pav,jband
git-svn-id: svn://10.0.0.236/trunk@107279 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 02:17:11 +00:00
blakeross%telocity.com
fd495e07d6 Line of text is missing from debug pref pane. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107278 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 02:16:33 +00:00
blakeross%telocity.com
0f5da37f73 Fixing js error. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107277 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 00:56:16 +00:00
blakeross%telocity.com
dd0627559f Fixing js error. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107276 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 00:55:59 +00:00
rods%netscape.com
b0db719a90 Fix for OS2 bustage
git-svn-id: svn://10.0.0.236/trunk@107275 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 00:51:40 +00:00
blakeross%telocity.com
4c900542b8 Bookmarks tree has slightly oversized margins. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107274 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 00:45:41 +00:00
blakeross%telocity.com
b4d8e10d3e Statusbar text has slightly oversized margins. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107273 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-04 00:16:53 +00:00
hyatt%netscape.com
d8f790f6f5 The XUL content sink doesn't block the parser when loading stylesheets and hasn't for six months! Ack ack ack ack ack! Bug 102114. r=jag, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107272 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 23:41:10 +00:00
blakeross%telocity.com
b465e82eda Removing mistakenly removed flex. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107271 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 22:33:59 +00:00
pavlov%netscape.com
2567e9d20e fixing compiler bustage. SetSharedPageData needs a return type (of void)
git-svn-id: svn://10.0.0.236/trunk@107270 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 21:49:38 +00:00
blakeross%telocity.com
b9b8f6e63c Readding mistakenly removed flex. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107269 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 21:25:58 +00:00
blakeross%telocity.com
fa45eff62b No radiobutton selected by default in add directory dialog. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107268 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 21:02:55 +00:00
blakeross%telocity.com
20c41f1e94 Editor OK buttons aren't disabled when there aren't valid conditions. r=hewitt, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107267 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 18:46:07 +00:00
blakeross%telocity.com
9e39fc1af9 Tab text has big margins in Classic. r=hewitt sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107266 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 18:27:38 +00:00
blakeross%telocity.com
f395816de5 Er, these weren't supposed to go in.
git-svn-id: svn://10.0.0.236/trunk@107265 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 17:17:25 +00:00
blakeross%telocity.com
24266939a2 Yes, I forgot to commit from /profile last night...
git-svn-id: svn://10.0.0.236/trunk@107264 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 16:47:13 +00:00
rods%netscape.com
63cd1d83cc add PrintPreview to make file
git-svn-id: svn://10.0.0.236/trunk@107263 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 16:35:42 +00:00
rods%netscape.com
361213d98a Removing the Print Preview option from the menu
Bug 107562


git-svn-id: svn://10.0.0.236/trunk@107262 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 15:08:08 +00:00
rods%netscape.com
8193b14cae Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define
Bug 107562 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107261 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 15:06:24 +00:00
rods%netscape.com
1100db8190 Initial check in for print preview work it is complied in for Windows and linix only
The bulk of print preview can be turned on/off with NS_PRINT_PREVIEW define
Bug 107562 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107260 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:59:39 +00:00
andreas.otte%primus-online.de
b258c8f56c fix bug 61269 ['%' will get URL-escaped to "%25" if not followed by 2
hexadecimal digits] We no longer escape an % which is not followed by
two hex characters, at least not until forced. This is more compatible
with current usage in other browsers. r=dougt@netscape.com,
sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@107259 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:55:57 +00:00
rods%netscape.com
1314032016 Fixed up nsIPrintSettings interface and add a Get/Set method to nsIPrintOptions (only
the setter is implemented at this time) Bug 107399 r=kmcclusk sr=alexf/attinasi


git-svn-id: svn://10.0.0.236/trunk@107258 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:45:46 +00:00
rods%netscape.com
6f99861c46 Backing out checkin, I can't believe you have to edit a mcp to checkin
an IDL file


git-svn-id: svn://10.0.0.236/trunk@107257 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 14:17:37 +00:00
peterv%netscape.com
ae91a9160d Mac bustage fix. Rods didn't add nsIPrintSettings.idl to gfxIDL.mcp.
git-svn-id: svn://10.0.0.236/trunk@107256 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 13:50:33 +00:00
rods%netscape.com
79540d990e change &P to &PT so page totals print at bottom
Bug 107340 r=self sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107255 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 13:05:09 +00:00
rods%netscape.com
e57c1e15e3 Fixed up nsIPrintSettings interface and add a Get/Set method to nsIPrintOptions
(only the setter is implemented at this time)
Bug 107399 r=kmcclusk sr=alexf/attinasi


git-svn-id: svn://10.0.0.236/trunk@107254 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 13:00:40 +00:00
hyatt%netscape.com
aaf9edc30d Fixing 18502, I misapplied the patch and checked in duplicate lines of code. Backing out.
git-svn-id: svn://10.0.0.236/trunk@107253 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 12:08:04 +00:00
hyatt%netscape.com
5cc58cb983 Fixing 18502, I misapplied the patch and checked in duplicate lines of code. Backing out.
git-svn-id: svn://10.0.0.236/trunk@107252 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 12:00:32 +00:00
hyatt%netscape.com
d209765df9 Fix linux bustage.
git-svn-id: svn://10.0.0.236/trunk@107251 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 11:49:08 +00:00
hewitt%netscape.com
8ac8f55982 106637 - DOM inspector not working with tabbrowser, r=jag, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107250 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 11:41:11 +00:00
hewitt%netscape.com
6a4c4da73e fixing various fun regressions from blake's earlier landing, rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@107249 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 11:33:13 +00:00
hewitt%netscape.com
a9d5f8d148 fixing various fun regressions from blake's earlier landing, rs=hyatt
git-svn-id: svn://10.0.0.236/trunk@107248 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 11:27:04 +00:00
hyatt%netscape.com
7419dbb960 Fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@107247 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 10:52:14 +00:00
hyatt%netscape.com
14cf773f2d One more glitch fixed.
git-svn-id: svn://10.0.0.236/trunk@107246 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 10:46:54 +00:00
hyatt%netscape.com
b3c148824a Fix leaks that I just introduced.
git-svn-id: svn://10.0.0.236/trunk@107245 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 10:24:03 +00:00
hyatt%netscape.com
08471b63e6 Oops. Missed a spot.
git-svn-id: svn://10.0.0.236/trunk@107244 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 10:20:30 +00:00
hyatt%netscape.com
8caf8522c8 Fix for 80147, use XUL prototype elements in anonymous content of XBL. r=dbaron, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107243 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 10:12:20 +00:00
hyatt%netscape.com
5eee28774a Fix nebiros bustage.
git-svn-id: svn://10.0.0.236/trunk@107242 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 09:50:31 +00:00
jaggernaut%netscape.com
afb88a1313 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107241 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 09:26:07 +00:00
sspitzer%netscape.com
5bd05615df fix blake's horkage. tomorrow's build is going to be broken all over.
git-svn-id: svn://10.0.0.236/trunk@107240 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 09:04:19 +00:00
bryner%netscape.com
37ef5e7984 Adding the XUL tabindex test to the debug menu. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@107239 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 08:56:09 +00:00
seawood%netscape.com
e5cacf943a Update LD_LIBRARY_PATH_64 if LD_LIBRARY_PATH_64 is set.
Thanks to Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de> for the patch.
Bug #91842


git-svn-id: svn://10.0.0.236/trunk@107238 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 08:26:37 +00:00
jst%netscape.com
425fc3a0b6 Fixing bug 108321. Don't waste time using the component manager when creating an nsHTMLAttributes when setting attributes on an element, call NS_NewHTMLAttributes() directly in stead. Also doing some cleaning up in nsHTMLStyleSheet.cpp. r=dbaron@fas.harvard.edu, sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107237 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 08:13:48 +00:00
hewitt%netscape.com
23dec3a3a9 putting back flex on textbox that blake seems to have 'accidentally' removed
git-svn-id: svn://10.0.0.236/trunk@107236 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 07:35:43 +00:00
sspitzer%netscape.com
0759dc2c43 remove bogus line (from a CVS conflict) that was causing compose to not work.
also, fix a js strict warning.  rs=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107235 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 07:11:29 +00:00
hyatt%netscape.com
f908dd5b01 Fix for 18502, Christian Biesinger's BMP decoder and my ICO decoder. r/sr=pavlov,jband
git-svn-id: svn://10.0.0.236/trunk@107234 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 07:10:51 +00:00
hewitt%netscape.com
aa8fab1820 63728 - Per-platform behavior of Enter key when a button is focused in a dialog, r=ben, sr=blake
git-svn-id: svn://10.0.0.236/trunk@107233 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 07:10:48 +00:00
jst%netscape.com
6807abf7cc Checking in real fix for bug 108175. Don't loose values in text inputs. Patch by jkeiser@iname.com, r=rpotts@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107232 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 06:52:55 +00:00
seawood%netscape.com
f1dd2317bd Define _BSD_SOURCE for Linux so that linuxppc's libc can find ftruncate.
git-svn-id: svn://10.0.0.236/trunk@107231 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 06:28:49 +00:00
dbaron%fas.harvard.edu
732f1cd8e9 Ensure that text inputs, checkboxes and radios paint over inline element backgrounds that are behind them. Fix a few build warnings. b=107244 r=rods sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107230 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 06:23:19 +00:00
mkaply%us.ibm.com
b1b93562c7 #103633
r=mkaply, sr=blizzard
Don't call BeginDocument twice - causes us to not print on some printers


git-svn-id: svn://10.0.0.236/trunk@107229 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 06:03:40 +00:00
seawood%netscape.com
ede6e9ac78 Tell BSD strip to just strip local & debug symbols rather than all symbols for darwin.
git-svn-id: svn://10.0.0.236/trunk@107228 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 06:01:31 +00:00
leaf%mozilla.org
60db504876 Automated update
git-svn-id: svn://10.0.0.236/trunk@107227 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:58:13 +00:00
seawood%netscape.com
313a11a974 Tell BSD strip to just strip local & debug symbols rather than all symbols.
git-svn-id: svn://10.0.0.236/trunk@107226 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:57:04 +00:00
bryner%netscape.com
1433be3df4 Removing obsolete native menu code. Not part of the build, r=jag.
git-svn-id: svn://10.0.0.236/trunk@107225 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:50:32 +00:00
bbaetz%cs.mcgill.ca
b2918e050d Bug 107718 - mass changes give all changed bugs the groupset of the first
bug in the list.

Do bit fiddling instead of adding groupsets from the first bug.

r=justdave, jake


git-svn-id: svn://10.0.0.236/trunk@107224 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:49:23 +00:00
jaggernaut%netscape.com
76b5b52fd6 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107223 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:46:51 +00:00
dbaron%fas.harvard.edu
1d7d2b1344 Remove unused stopwatch code. b=107510 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107222 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:46:18 +00:00
dbaron%fas.harvard.edu
a049f564c0 Remove unused logging code. b=107510 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107221 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:45:27 +00:00
dbaron%fas.harvard.edu
2073c31ffb Fix up stacktrace-on-crash debugging code in preparation for turning it on by default. b=14989 r=bryner sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107220 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:43:25 +00:00
sspitzer%netscape.com
11c4fd3174 add back a default pref. not sure why ducarroz removed it. sr=no one
git-svn-id: svn://10.0.0.236/trunk@107219 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:39:53 +00:00
bryner%netscape.com
df9d231bbe Removing obsolete native menu code. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107218 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:38:52 +00:00
dbaron%fas.harvard.edu
b91bf64133 Removing nsIStopwatch.idl, which was never really part of the build. b=107510 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107217 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:26:55 +00:00
seawood%netscape.com
a86440c24f Removing old beos build config files.
git-svn-id: svn://10.0.0.236/trunk@107216 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:19:46 +00:00
dbaron%fas.harvard.edu
e71e3821f0 Fix FMR/FMW caused by translating the space manager right after deleting it. r=jag sr=waterson b=108017
git-svn-id: svn://10.0.0.236/trunk@107215 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:18:39 +00:00
pchen%netscape.com
70eb93e919 Add xul window open test
git-svn-id: svn://10.0.0.236/trunk@107214 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:17:56 +00:00
pchen%netscape.com
bee6a53f1a Add test flag and timeout for xul window open test
git-svn-id: svn://10.0.0.236/trunk@107213 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:16:32 +00:00
mcafee%netscape.com
03cff05558 remove unused remove_build sub.
git-svn-id: svn://10.0.0.236/trunk@107212 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:14:10 +00:00
seawood%netscape.com
036b2ab480 Not sure why we're bothering to remove the prefs on a 'make clean' but we should at least use the right dir to remove them from.
Bug #68117


git-svn-id: svn://10.0.0.236/trunk@107211 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:12:57 +00:00
dbaron%fas.harvard.edu
2321e43703 Fix silly way to write an assertion. sr=jst
git-svn-id: svn://10.0.0.236/trunk@107210 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:11:36 +00:00
seawood%netscape.com
97c87547a6 Only output startup script *_PATH info if debugging.
Thanks to Dawn Endico <endico@mozilla.org> for the patch.
Bug #79039 r=cls


git-svn-id: svn://10.0.0.236/trunk@107209 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 05:05:47 +00:00
ducarroz%netscape.com
9e7bb13646 Fix for bug 104989: Allow the compose window to be recycled instead of closing it, that will save us precious time next time we need a new compose window. R=varada, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107208 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 04:44:43 +00:00
ducarroz%netscape.com
c7bbc9d9ba Fix for bug 104989: Allow the compose window to be recycled instead of closing it, that will save us precious time next time we need a new compose window. Also include fix for bug 108270: Remove ReleaseMessageServiceFromURI. R=varada, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107207 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 04:42:19 +00:00
blakeross%telocity.com
e17d83b612 Readding mistakenly removed line. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107206 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 04:36:26 +00:00
blakeross%telocity.com
83c5b8a557 107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
git-svn-id: svn://10.0.0.236/trunk@107205 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 04:17:02 +00:00
blakeross%telocity.com
1ec9c4480f 107642 - XUL syntax/cleanup landing. Fixes 94470, 96008, 96019, 76800, 102637, 80399, 108303, and removes over a thousand unnecessary or nonsensical attributes. Also fixes 108302, 102366, 102367, 105815. r=sspitzer,cmanske on appropriate parts sr=ben
git-svn-id: svn://10.0.0.236/trunk@107203 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 04:06:54 +00:00
seawood%netscape.com
c71e171653 Moved darwin section to proper platform location.
Added note about why -traditional-cpp is used for darwin.
Added Mac OSX linker options to be used in darwin builds.
Bug #106617


git-svn-id: svn://10.0.0.236/trunk@107202 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:57:36 +00:00
leaf%mozilla.org
f606f4f12d Automated update
git-svn-id: svn://10.0.0.236/trunk@107200 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:43:15 +00:00
seawood%netscape.com
76780820f4 Backing out fix for remote mach-o builds as it left mach-o builds fragile.
Add TK_CFLAGS back to default CFLAGS/CXXFLAGS.
Bug #107696


git-svn-id: svn://10.0.0.236/trunk@107199 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:29:05 +00:00
jst%netscape.com
d489aa86fc Fixing bug 108174. --disable-bidi build bustage. Patch from jkeiser@iname.com, r=sicking@bigfoot.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107198 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:25:29 +00:00
ducarroz%netscape.com
33c0102484 Fix Mac bustage (again)
git-svn-id: svn://10.0.0.236/trunk@107195 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:11:44 +00:00
rjesup%wgate.com
1c72d387b9 Bug 107600: mCachedIndex isn't initialized for nsContentSubtreeIterators.
Also fixes problems in two spots where the content tree changing could mess
up the iterator.  patch by jfrancis, r=rjesup, sr=waterson


git-svn-id: svn://10.0.0.236/trunk@107194 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 03:05:05 +00:00
rjesup%wgate.com
ac6f3c6b18 Bug 107341: Xlib/xprint xcleanup. New file was missed on first checkin.
r=biesi, r=pocemit, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107193 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:46:45 +00:00
rjesup%wgate.com
b40dd6ee1d Bug 107341: Xlib/xprint xcleanup. New file was missed on first checkin.
r=biesi, r=pocemit, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107192 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:39:12 +00:00
sspitzer%netscape.com
bed0909b4d fix for #72458. don't use 'menu class="push"' r=hwaara, sr=sspitzer
fix by neil@parkwaycc.co.uk


git-svn-id: svn://10.0.0.236/trunk@107190 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:36:02 +00:00
waterson%netscape.com
3e3e226985 Remove unused variable (no bug). r=dbaron, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107189 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:23:20 +00:00
pchen%netscape.com
8e4ab1ac6c bug 68329, r=jag, sr=sfraser, resurrected an old patch from sfraser which
cleans up a lot of the string stuff, had help from jag to clean string
stuff even more


git-svn-id: svn://10.0.0.236/trunk@107188 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:22:40 +00:00
bryner%netscape.com
d9f89d04a6 Removing obsolete/unused native menu code. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107187 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:22:33 +00:00
leaf%mozilla.org
cf0d1e09c0 Automated update
git-svn-id: svn://10.0.0.236/trunk@107186 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:13:09 +00:00
tor%cs.brown.edu
f9724fd972 Update tree copy of libmng to 1.0.3. rs=blizzard
git-svn-id: svn://10.0.0.236/trunk@107185 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:11:26 +00:00
bryner%netscape.com
e83254e15e Removing obsolete remoteControl component. r=sspitzer, blizzard. (also adding new filepicker makefiles to allmakefiles.sh, this is not turned on yet).
git-svn-id: svn://10.0.0.236/trunk@107183 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:10:10 +00:00
mcafee%netscape.com
e8398c149a Adding multi-line support.
git-svn-id: svn://10.0.0.236/trunk@107182 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:10:05 +00:00
ducarroz%netscape.com
6f5f359e34 Fix Mac bustage. Sorry for the mistake!
git-svn-id: svn://10.0.0.236/trunk@107181 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:08:06 +00:00
jst%netscape.com
ab9c4205b6 Fixing leaks in the exception service. Bug 108213. r=dbradley@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107180 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:07:20 +00:00
justdave%syndicomm.com
4aaa66afe8 Fix for bug 105773: Email addresses in the CC list are now sorted case-insensitively
Patch by Adam Kennedy <bugzilla@ali.as>
r= justdave x2


git-svn-id: svn://10.0.0.236/trunk@107178 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:05:43 +00:00
tor%cs.brown.edu
319437ece8 Bug 108005 - need to clear bits in alpha mirror for interlaced PNGs
and MNG.  r=rjesup, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107177 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 02:03:51 +00:00
sspitzer%netscape.com
0994c4a250 fix for regression #108256 cancelling the auto-sub confirm dialog then running the same url again fails silently
fix for regression bug #108251 don't get the "remove group" dialog when there's msg window.
r=hwaara, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107176 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:56:19 +00:00
mitesh%netscape.com
6afb223e31 reverting back the mapi changes. Including mapi again. Checking in for kkhandrika@netspcae.com
git-svn-id: svn://10.0.0.236/trunk@107174 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:45:54 +00:00
rjesup%wgate.com
7d996ba297 Bug 107341: xlib/xprint xcleanup. Checking in for gisburn.
r=biesi, r=pocemit, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107173 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:39:11 +00:00
hewitt%netscape.com
8ee5216dc9 bug 51314. classic skin has blue directory icons. images by shuehan liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107172 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:33:41 +00:00
sspitzer%netscape.com
fa78a71418 bulletproofing fix for #105183 to help us prevent the crash
and track this down.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107171 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:32:30 +00:00
rjesup%wgate.com
c61dfd44d2 Bug 100069: XPrint infrastructure for dialog. Checkin for gisburn.
r=rjesup, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@107170 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:31:23 +00:00
hewitt%netscape.com
055960ef35 bug 53558. windows classic theme should not use threedface for borders. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107169 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:29:26 +00:00
hewitt%netscape.com
1a6c5ae97f bug 29828. addmore space between menuitem text and keybinding hint. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107168 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:25:22 +00:00
rjesup%wgate.com
1a798c2278 Bug 104260: Font LRU cache confused as to direction of the head. r=rbs,
sr=waterson (converted from r=waterson)


git-svn-id: svn://10.0.0.236/trunk@107167 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:23:28 +00:00
hewitt%netscape.com
67f9c6929b bug 67452. modern: server icon out of alignment with twisty. images by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107166 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:22:46 +00:00
mcafee%netscape.com
1b3bef0ad9 cut&paste bug
git-svn-id: svn://10.0.0.236/trunk@107165 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:18:39 +00:00
bryner%netscape.com
e2fdbd9b59 Removing unused native menu code. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107164 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:11:22 +00:00
hewitt%netscape.com
625ead88b9 bug 54821. sidebar grippy too thick when collapsed. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107163 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:04:33 +00:00
rangansen%netscape.com
08ac4958c4 r=ssaux ; sr = blizzard ; bug# 83392 ; Handling page info properly, in case of exceptions
git-svn-id: svn://10.0.0.236/trunk@107162 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:04:08 +00:00
hewitt%netscape.com
e0c245de1d bug 54821. sidebar grippy too thick when collapsed. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewittcommunicator/sidebar/win/sidebar.css
git-svn-id: svn://10.0.0.236/trunk@107161 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 01:02:23 +00:00
hewitt%netscape.com
949fedacde bug 67768. composer: active edit mode tab should not use hardcoded white. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107160 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:59:23 +00:00
rangansen%netscape.com
318758bc6a r=javi ; sr = hewitt ; bug# 89827 ; adding serial number col to cert manager window
git-svn-id: svn://10.0.0.236/trunk@107159 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:56:20 +00:00
mscott%netscape.com
fb007dc1e8 packaging changes for the mac for smime
git-svn-id: svn://10.0.0.236/trunk@107158 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:54:00 +00:00
hewitt%netscape.com
42a66a2d26 bug 88523. autocomplete urls in classic shouldn't have titles in italics. patch by shuehan liang<shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107157 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:52:06 +00:00
ducarroz%netscape.com
b2973b1b34 fix for bug 107708. Look at the attachment real name to determine if possible the content-type before looking at the url. R=varada, SR=sspitzer
git-svn-id: svn://10.0.0.236/trunk@107156 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:51:53 +00:00
hewitt%netscape.com
c5fb21320f bug 99631. preview icon in composer tab (ship steering wheel) not entirely transparent. image by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107155 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:50:15 +00:00
mcafee%netscape.com
61b1f01bc3 Adding basic scrape functionality. Pick off TinderboxPrint: token and print the argument in the corresponding build box. Currently limited to one line, multi-line change coming next.
git-svn-id: svn://10.0.0.236/trunk@107154 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:50:13 +00:00
rangansen%netscape.com
8598aceb0b r=javi ; sr = hewitt ; bug# 89827 ; adding serial number col to cert manager window
git-svn-id: svn://10.0.0.236/trunk@107153 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:49:35 +00:00
mitesh%netscape.com
ba35aa810c Removing mapi from the normal build. Preparing simple MAPI to land on the trunk (bug 104672). Checking in for kkhandrika@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107152 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:46:49 +00:00
ssu%netscape.com
a8c88e225f forgot to disable the creation of the mail shortcut in the quicklaunch bar as part of the fix to bug 28172
git-svn-id: svn://10.0.0.236/trunk@107151 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:45:41 +00:00
kaie%netscape.com
4dd6a65a89 Bug #106507 --> if BUILD_SMIME is defined in the build environment (which it isn't), build the smime extensions directory to add smime support
git-svn-id: svn://10.0.0.236/trunk@107150 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:42:03 +00:00
gordon%netscape.com
c79f4e05cd Fix bug 86474 "nsFileTransports won't truncate files", extends fix to other unix platforms besides linux. Checking in for lidl@pix.net, r=gordon, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@107149 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:39:14 +00:00
mscott%netscape.com
1f3a527255 Bug #106507 --> add new files to the packaging lists for linux and windows.
git-svn-id: svn://10.0.0.236/trunk@107148 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:39:05 +00:00
javi%netscape.com
bf479f147c Part of Bug 106507. add the ability to build S/MIME as part of the client. Leaving off as default for now. But can be turned on with the build preferences.
git-svn-id: svn://10.0.0.236/trunk@107147 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:37:07 +00:00
ssu%netscape.com
2f006a401a fixing bug 28172 - Add shortcut to launch bar. r=sgehani, sr=mscott
git-svn-id: svn://10.0.0.236/trunk@107146 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:34:17 +00:00
javi%netscape.com
5966735e03 Part of 106507 Land the mime project changes so the S/MIME compose can be built. Not turned on it official build though.
git-svn-id: svn://10.0.0.236/trunk@107145 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:34:13 +00:00
pchen%netscape.com
748331065e Not part of build. Update output of test to jive with new tinderbox test
stuff mcafee is doing.


git-svn-id: svn://10.0.0.236/trunk@107144 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:33:56 +00:00
ducarroz%netscape.com
ebfabe30ba Fix for bug 107660. Put back the bracket in front of Fwd: which has been removed by accident. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@107143 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:33:55 +00:00
mscott%netscape.com
368d1d900e build the extensions directory.
git-svn-id: svn://10.0.0.236/trunk@107142 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:33:28 +00:00
mscott%netscape.com
0dc1ed91df Bug #106507 --> if BUILD_SMIME is defined in the build environment (which it isn't), build
the smime extensions directory to add smime support

This code was contributed by mscott and ddrinan@netscape.com
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@107141 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:32:44 +00:00
mscott%netscape.com
91794d36d7 Bug #106507 --> if BUILD_SMIME is defined in the build environment then don't build the smime
stub dll.

The mime changes have been contributed by ddrinan@netscape.com
r=ducarroz
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@107140 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:31:45 +00:00
mscott%netscape.com
a0c8ea554b Bug #106507 --> if BUILD_SMIME is defined in the build environment (which it isn't), build the new smime
files.

The mime changes have been contributed by ddrinan@netscape.com
r=ducarroz
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@107139 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:31:15 +00:00
hewitt%netscape.com
3fe59f450a bug 95385. classic: text on top of box border in debug preferences. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107138 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:31:06 +00:00
hewitt%netscape.com
c485002a73 bug 68768. failure to fully specify colors in themes. patch by shuehan liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107137 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:28:15 +00:00
sspitzer%netscape.com
1a4a8ffbca fix for #35691. addressing widget problems (no To: field) if the
user his new msg when on a news server, and they've got a reply to
address.  r=varada, sr=bienvenu,sspitzer

thanks to neil@parkwaycc.co.uk  for the fix


git-svn-id: svn://10.0.0.236/trunk@107136 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:25:02 +00:00
hewitt%netscape.com
0a98799487 bug 92019. modern mark button has extra arrow visible. patch by shuehan liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107135 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:23:07 +00:00
aaronl%netscape.com
7cc86dcab7 Bug 107858. Active Accessibility: Radio button and checkbox statechange events not working. r=timeless, sr=scc
git-svn-id: svn://10.0.0.236/trunk@107134 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:16:42 +00:00
alecf%netscape.com
ea0c37bf8f REQUIRES cleanup
git-svn-id: svn://10.0.0.236/trunk@107133 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:16:29 +00:00
javi%netscape.com
0d9a3fe6aa NOT PART OF BUILD.
Previous project file was corrupt.  Replace with one on tip of
OTIS_TEST_BRANCH

NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@107132 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:15:45 +00:00
rginda%netscape.com
db72e1cb29 bug 108257, "source notes broken for functions compiled via JS_CompileUCFunctionForPrincipals", sr=brendan, r=shaver
no need to emit the function body after calling FunctionBody


git-svn-id: svn://10.0.0.236/trunk@107131 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:10:47 +00:00
yokoyama%netscape.com
9e2820f301 Bug 105113
Read DefaultCharSet from nsPref
when DocumentViewerImpl::mDefaultCharacterSet is
not assigned
/r=bstell and /sr=alecf


git-svn-id: svn://10.0.0.236/trunk@107130 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:06:51 +00:00
mscott%netscape.com
9a2a443bb4 NOT PART OF THE BUILD
Make the security options menu match the spec --> add access keys, make the selection a radio
widget.
r/sr=sspitzer
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@107129 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:06:32 +00:00
dbradley%netscape.com
e924214090 Bug 94650 - Added warning for scriptable interfaces that inherit from non-scriptable interfaces. r=jst, sr=jband
git-svn-id: svn://10.0.0.236/trunk@107128 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:05:57 +00:00
dbradley%netscape.com
a8eb4888d7 Bug 33193 - Sanity check for typelib truncation. r=jst, sr=jband
git-svn-id: svn://10.0.0.236/trunk@107127 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-03 00:02:56 +00:00
bryner%netscape.com
c2f43529f5 libcmt.so is from psm1 and no longer exists, removing it. r=dveditz.
git-svn-id: svn://10.0.0.236/trunk@107126 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 23:58:10 +00:00
sonja.mirtitsch%sun.com
7a21403394 next try to gat all of the HP problems...
git-svn-id: svn://10.0.0.236/trunk@107125 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 23:47:47 +00:00
jst%netscape.com
c8d98665ac Checking in workaround for bug 108175, temporarily disable framestate storage on frame destruction. r=jkeiser@iname.com, sr=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107124 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 23:36:58 +00:00
mcafee%netscape.com
aaf1e15e02 Adding scrape.dat
git-svn-id: svn://10.0.0.236/trunk@107123 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 22:55:09 +00:00
mcafee%netscape.com
e8fea3931a Switching to TinderboxPrint:aaa,bbb,ccc format. r=pchen
git-svn-id: svn://10.0.0.236/trunk@107122 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 22:41:40 +00:00
ben%netscape.com
53ee2db3ec fix blocker 107568, add back accidentally removed function. I am a dumbass.
sr=spitzer,sfraser


git-svn-id: svn://10.0.0.236/trunk@107121 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 22:35:13 +00:00
relyea%netscape.com
1407e64cce Build OID hash table using PL_Hash rather then the dbm hash code.
git-svn-id: svn://10.0.0.236/trunk@107120 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 21:50:09 +00:00
pchen%netscape.com
c76be4ff30 Not part of build. Added jrgm's window open test files to tree to make
available to tinderboxen


git-svn-id: svn://10.0.0.236/trunk@107118 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 20:37:44 +00:00
darin%netscape.com
e61d7118d7 a=leaf, bustage fix!
git-svn-id: svn://10.0.0.236/trunk@107117 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 20:17:18 +00:00
sspitzer%netscape.com
d82ca4aee7 initial work for #73868. convert addressbook results pane to outliner.
NOT PART OF THE BUILD.


git-svn-id: svn://10.0.0.236/trunk@107116 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 20:17:14 +00:00
justdave%syndicomm.com
a0a44f7175 Fix for bug 95615: cosmetic change to clarify error message when trying to use too many votes
Patch by Adam Kennedy <bugzilla@ali.as>
r= justdave x2


git-svn-id: svn://10.0.0.236/trunk@107115 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 20:05:13 +00:00
dinglis%qnx.com
eb6d97c8d6 Not part of build
fixed lib deps.
change repeating precise timers to repeating slack for debug builds - make debuging easier


git-svn-id: svn://10.0.0.236/trunk@107114 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 19:12:36 +00:00
sonja.mirtitsch%sun.com
23fff4e9fa put a workaround in place, so client ands server will not write at the
same time
(to avoid lines like: ...Unable to find the certificate
authenticatfailedion...)


git-svn-id: svn://10.0.0.236/trunk@107113 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 19:09:11 +00:00
mscott%netscape.com
d051432049 NOT PART OF THE BUILD
Mac specific cpp files.
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@107112 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 19:06:30 +00:00
blizzard%redhat.com
1e43da8c6b add the js-debugger package. not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107111 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 18:47:04 +00:00
bryner%netscape.com
a582ad6211 Removing some native widget cruft. rs=blizzard. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107110 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 18:21:50 +00:00
loadrunner%betak.net
69ac321f4d bug 64146, Delay nsCharsetMenu initialization to avoid consuming ~2% of startup time, r=dp, sr=brendan, alecf
these files didn't make it the other day and caused this blocker:
bug 107786 - The subsets of Character coding menus are not working


git-svn-id: svn://10.0.0.236/trunk@107108 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 17:30:58 +00:00
ccarlen%netscape.com
e28da6febd Bug 105440 - directory service needs new keys and be able to support lists of directories. r=valeski/sr=jband
git-svn-id: svn://10.0.0.236/trunk@107106 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 15:29:57 +00:00
kin%netscape.com
9ec5334640 Fix for bug #99517: Text migrates past H. Line, loses formatting when converted to list
Modified WillMakeList() to clear prevListItem after adding a block
to a list item so that any inline nodes after the block are put
in a new list item.

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


git-svn-id: svn://10.0.0.236/trunk@107105 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 14:47:10 +00:00
jdunn%netscape.com
209ae4db09 HP-UX only
Only export NSGetModule for components.  This is
similar to what OS/2 & Linux are doing
r=cls@seawood.org
# 105324


git-svn-id: svn://10.0.0.236/trunk@107104 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 14:24:34 +00:00
jst%netscape.com
474e0aed63 Fix problem in the formrewrite changes, the new code ends up doing a flush on the document from within DemoteContainer() in the sink which ends up notifying the document about some peices of content more than once. This causes duplicated content on some pages. r=jkeiser@iname.com. sr=myself.
git-svn-id: svn://10.0.0.236/trunk@107100 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 11:28:20 +00:00
peterv%netscape.com
b295e6eab3 Add build option for the JS profiler on Mac. r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@107099 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 10:29:25 +00:00
peterv%netscape.com
625023cc1d Add build option for the JS profiler on Mac. a=dbradley. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107098 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 10:27:52 +00:00
peterv%netscape.com
7248b4eb16 Fix for bug 106844 (XSLT stylesheet of type text/xml not recognized; type text/xsl is recognized). r=heikki, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@107097 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 10:13:05 +00:00
mcafee%netscape.com
414b31f322 Adding scrape scan.
git-svn-id: svn://10.0.0.236/trunk@107096 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 09:43:12 +00:00
mcafee%netscape.com
3c078a1233 Tinderbox,aaa,bbb,ccc,ddd format.
git-svn-id: svn://10.0.0.236/trunk@107095 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 09:37:35 +00:00
hyatt%netscape.com
f5c44e45af Fix whitespace handling in XBL. Bad regression. r=bryner, sr=jst
git-svn-id: svn://10.0.0.236/trunk@107094 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 09:29:33 +00:00
beard%netscape.com
9a1fddd6a3 [not part of build] Added MRJSession.java, removed MRJConsole.java. Added ProxyClassLoaderFactory.java.
git-svn-id: svn://10.0.0.236/trunk@107092 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:22:58 +00:00
beard%netscape.com
51310b2c8b [not part of build] configuration files for MRJPluginCarbon.
git-svn-id: svn://10.0.0.236/trunk@107091 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:18:52 +00:00
beard%netscape.com
32129d5816 [Not part of build] Bumped versions to 1.0d4.
git-svn-id: svn://10.0.0.236/trunk@107090 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:15:57 +00:00
beard%netscape.com
a4ff0a9ef0 [not part of build] Now reads in MRJPlugin.properties, sets up MRJPlugin.policy, and creates applet security manager.
git-svn-id: svn://10.0.0.236/trunk@107089 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:15:33 +00:00
beard%netscape.com
76a8627b94 [not part of build] Now defining system property, netscape.oji.plugin.home, so that classes in MRJPlugin.jar can find other files, such as MRJPlugin.properties & MRJPlugin.policy.
git-svn-id: svn://10.0.0.236/trunk@107088 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:13:46 +00:00
beard%netscape.com
e778011fc3 [not part of build] Added pending exception support, to deal with problem of not being able to enter monitors with a pending exception in the JNIEnv.
git-svn-id: svn://10.0.0.236/trunk@107087 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:11:37 +00:00
beard%netscape.com
2bb63018ed [not part of build] Added getSystemVersion() to ensure plugin only loads on Mac OS X 10.1 and later.
git-svn-id: svn://10.0.0.236/trunk@107086 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:07:31 +00:00
beard%netscape.com
a6c5c9d78e [not part of build] Make class uninstantiable except from native code.
git-svn-id: svn://10.0.0.236/trunk@107085 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 08:01:40 +00:00
jst%netscape.com
acafb94f92 added files: mozilla/content/html/content/src/nsFormSubmitter.cpp
git-svn-id: svn://10.0.0.236/trunk@107084 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 07:40:23 +00:00
jst%netscape.com
81bf1f1956 Checking in John Keiser's <jkeiser@iname.com> fix for *tons* of form submission and <select> related bugs, see tracking bug 34297 for details. r=rods@netscape.com, sr=jst@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107083 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 07:40:01 +00:00
hewitt%netscape.com
cae7f892f5 Bug 96081. no picture/icons for 'align text to image' on modern. Patch, images by Shuehan Liang <shliang@netscape.com> r=sspitzer, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107082 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:57:15 +00:00
seawood%netscape.com
39fc8231a4 Fix the problem with using cygwin perl for REQUIRES path resolution.
Thanks to Daniel Nunes <leaf@mozilla.org> for the patch.
Bug #103460


git-svn-id: svn://10.0.0.236/trunk@107081 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:54:02 +00:00
seawood%netscape.com
12f471a465 Fix warnings by only defining _UINT16 & _UINT32 if they aren't already defined.
Thanks to Josh Soref <timeless@mac.com> for the patch.
Bug #107599


git-svn-id: svn://10.0.0.236/trunk@107080 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:50:12 +00:00
nicolson%netscape.com
2e6648b1e7 get test scripts working, add license.
git-svn-id: svn://10.0.0.236/trunk@107079 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:41:44 +00:00
jaggernaut%netscape.com
2bfaed0498 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@107078 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:39:49 +00:00
nicolson%netscape.com
16c77d7089 Add a test target and some classes and scripts.
Now we can test with "gmake test".


git-svn-id: svn://10.0.0.236/trunk@107077 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:33:21 +00:00
alecf%netscape.com
86a7f7d224 REQUIRES cleanup
git-svn-id: svn://10.0.0.236/trunk@107076 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 06:30:34 +00:00
stephend%netscape.com
8119f139ba Bug 71843. Classic:mail compose:spell button is lower than other buttons. Images by Shuehan Liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107075 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:35:05 +00:00
stephend%netscape.com
eeddbc5faa Bug 99514. arrow-right.gif vs. arrow-rit.gif. Patch by Shuehan Liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107074 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:29:37 +00:00
stephend%netscape.com
46d7d77177 Bug 52888. Classic skin: scrollbar should be at right edge of window. Patch by Shuehan Liang <shliang@netscape.com> r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107073 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:23:45 +00:00
mcafee%netscape.com
d313966c17 General purpose version of bloat.pl
git-svn-id: svn://10.0.0.236/trunk@107072 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:22:00 +00:00
mcafee%netscape.com
7a00491cb4 no warn.pl anymore
git-svn-id: svn://10.0.0.236/trunk@107071 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:20:25 +00:00
waterson%netscape.com
15276fbb6a More types. Remove JS stuff so we can account for it better.
git-svn-id: svn://10.0.0.236/trunk@107070 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 05:17:28 +00:00
dp%netscape.com
5fbbc564cf bug# 105509 inlining nsHashKey::nsHashKey
r=dougt, sr=jband


git-svn-id: svn://10.0.0.236/trunk@107069 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:58:30 +00:00
hewitt%netscape.com
d0fcf2295f Bug 96817. Menu item spacing is larger for bookmarks menu. Patch by Shuehan Liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107068 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:53:43 +00:00
jst%netscape.com
09b081e767 Fixing bug 52120. Make mozilla pass the expected arguments to window.onerror. r=jkeiser@iname.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107067 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:49:07 +00:00
hewitt%netscape.com
9fb8da35ea Bug 90846. Navigation toolbar is one pixel thicker with Print button. Patch by Shuehan Liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107066 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:41:44 +00:00
jband%netscape.com
7357d5cf7c part of fix to bug 108045. gracefully handle the case where we can't get info about an interface. r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107065 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:41:37 +00:00
jband%netscape.com
81edd25932 fix bug 108045. Don't crash on case where an xpt file is missing an interface info that was there when the manifest got built. Insead, fail gracefully and force the subsequent run to re-autoreg. r=jst sr=brendan
git-svn-id: svn://10.0.0.236/trunk@107064 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:40:13 +00:00
hewitt%netscape.com
475900baf5 Bug 95632. Account Central doesn't use system colors. Patch by Shuehan Liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107063 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:38:49 +00:00
hewitt%netscape.com
55b64b0b98 Bug 80349. Classic skin links in What's Related have dark highlighting. Patch by Shuehan Liang <shliang@netscape.com> r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107062 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:36:29 +00:00
hewitt%netscape.com
40aa2a4a86 Bug 76171. Need minimum height/width for certain cases in classic theme. Patch by Shuehan Liang <shliang@netscape.com>. r=andreww, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@107061 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:33:00 +00:00
nelsonb%netscape.com
b91f3120f1 Reimplement SSL_GetChannelInfo. Add new function SSL_GetCipherSuiteInfo().
Also, implement new ciphersuite preference order.  Bug 78959.


git-svn-id: svn://10.0.0.236/trunk@107060 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:24:28 +00:00
dbaron%fas.harvard.edu
6a5015b10c Ensure that we don't re-resolve placeholders to the style context that should be on their out-of-flow frame. Fixes autocomplete popup. b=107744 r=waterson sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@107059 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:14:58 +00:00
nelsonb%netscape.com
5b7036cc69 Put better comments by the table of preconfigured policies.
git-svn-id: svn://10.0.0.236/trunk@107058 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 04:00:27 +00:00
kmcclusk%netscape.com
b2b179a8ba fix crash by removing DisplayZTreeNode's from the mMapPlaceholderViewToZTreeNode hashtable in DestroyZTreeNode. bug 78661. r=roc+moz sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107057 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:59:28 +00:00
kmcclusk%netscape.com
c06f67e167 Wrap nsViewManager::ShowDisplayList in DEBUG #ifdef to reduce footprint a bit. bug 78661. r=karnaze sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@107056 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:53:22 +00:00
jpierre%netscape.com
01b9542be6 One more fix for 105271
git-svn-id: svn://10.0.0.236/trunk@107054 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:37:41 +00:00
loadrunner%betak.net
83765274c8 bug 103941, Unable to change utf-8 charset on the NS pb page, r=yokoyama, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@107053 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:32:23 +00:00
loadrunner%betak.net
e8e956c67e bug 64146, Delay nsCharsetMenu initialization to avoid consuming ~2% of startup time, r=dp, sr=brendan, alecf
git-svn-id: svn://10.0.0.236/trunk@107052 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:29:30 +00:00
jpierre%netscape.com
8fbd37b3c5 Partial fix for 105271
git-svn-id: svn://10.0.0.236/trunk@107051 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:11:32 +00:00
jpierre%netscape.com
4ce6e3777c Fix for OS/2 build
git-svn-id: svn://10.0.0.236/trunk@107050 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:10:29 +00:00
cavin%netscape.com
d3c128006e Bug #101480: In ParseListOfMessageIds(), set 'm_fetchPartsOnDemand'
to true if we're asking for body only. r=sspitzer, sr=mscott.


git-svn-id: svn://10.0.0.236/trunk@107049 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 03:09:38 +00:00
pchen%netscape.com
e878fec99a 81762, r=jag, sr=sfraser, remove uses of nsCRT::strlen() with testing for null and non-empty string, also use IsEmpty() for nsXPIDLCStrings
git-svn-id: svn://10.0.0.236/trunk@107048 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:55:59 +00:00
pchen%netscape.com
28643e60a9 81762, r=jag, sr=sfraser, remove uses of PL_strlen with testing for null and non-empty string, also change const char* to static const char[] so that we can use sizeof-1 instead of PL_strlen
git-svn-id: svn://10.0.0.236/trunk@107047 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:55:56 +00:00
pchen%netscape.com
72681d9d8a 81762, r=jag, sr=sfraser, remove uses of PL_strlen with testing for null and non-empty string
git-svn-id: svn://10.0.0.236/trunk@107046 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:55:51 +00:00
jpierre%netscape.com
d04d25f44d Enable debug info in ASM code on OS/2
git-svn-id: svn://10.0.0.236/trunk@107045 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:41:33 +00:00
javi%netscape.com
de750414ad NOT PART OF BUILD
The project file that was previously checked in was somehow corrupted.
Updating to version on tip of OTIS_TEST_BRANCH

NOT PART OF BUILD


git-svn-id: svn://10.0.0.236/trunk@107044 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:22:04 +00:00
bzbarsky%mit.edu
357b320b0b Add a pref (layout.frames.force_resizability) to force frames to be
resizable.  Bug 105797, r=hyatt, sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@107043 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:19:49 +00:00
pschwartau%netscape.com
8bb6615f5a Improving readability.
git-svn-id: svn://10.0.0.236/trunk@107042 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:17:57 +00:00
nhotta%netscape.com
3bce18c334 Fixed a problem of a charset attribute for Script element is ignored,
request->mElement->GetCharset(charset) succeeded but the returned value 'charset' was ignored, fixed that problem,
bug 106360, r=ftang, sr=jst.


git-svn-id: svn://10.0.0.236/trunk@107041 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:07:08 +00:00
pschwartau%netscape.com
2e2a0c6b28 Initial add. Regression test for bug 107771.
git-svn-id: svn://10.0.0.236/trunk@107040 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:06:54 +00:00
jj%netscape.com
9df3922f7f fix for bug #106566: updated 'vers' 2 resource to 0.9.5+ (installer)
git-svn-id: svn://10.0.0.236/trunk@107039 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 02:00:16 +00:00
mscott%netscape.com
9ef7753eb0 NOT PART OF THE BUILD
new files for 106507

NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@107038 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:59:55 +00:00
av%netscape.com
db71e9c87f Bug 96245 -- xp'zation of dir separator symbol in the spy plugin, not part of the build
git-svn-id: svn://10.0.0.236/trunk@107037 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:58:46 +00:00
jst%netscape.com
3aa44affb3 Fixing bug 35294. Speeding up insertion of (specifically appending) document fragments to an element. r=rjesup@wgate.com, sicking@bigfoot.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107036 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:55:49 +00:00
hyatt%netscape.com
01ac323a9f added files: mozilla/content/xbl/src/nsXBLContentSink.cpp, mozilla/content/xbl/src/nsXBLDocumentInfo.cpp
git-svn-id: svn://10.0.0.236/trunk@107035 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:54:58 +00:00
hyatt%netscape.com
0c09d8b4ed added files: mozilla/content/shared/src/nsXBLAtoms.cpp
git-svn-id: svn://10.0.0.236/trunk@107034 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:54:06 +00:00
hyatt%netscape.com
3646e122c1 Fix for 106153, avoid building a content model for XBL event handlers, r=bryner, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@107033 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:53:13 +00:00
waterson%netscape.com
95c15b741f Changes for the page loader test. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@107032 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:35:13 +00:00
alecf%netscape.com
3179e52fd7 fix - why doesn't outlook build on my machine?
git-svn-id: svn://10.0.0.236/trunk@107031 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 01:03:07 +00:00
rangansen%netscape.com
0fc1cdbf40 Bug# 101760 ; r=javi ; sr = hewitt ; fixing window sizing issue
git-svn-id: svn://10.0.0.236/trunk@107030 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:34:15 +00:00
ddrinan%netscape.com
d7d2ef3a82 Bug 107375 - update localVersion to 0.9.6. r=jbetak, sr=dveditz
git-svn-id: svn://10.0.0.236/trunk@107029 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:27:05 +00:00
rangansen%netscape.com
155f4be4c1 Bug# 94203 ; r=javi ; sr = hewitt disabling backup all button when there is no cert
git-svn-id: svn://10.0.0.236/trunk@107028 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:25:02 +00:00
alecf%netscape.com
144ea77c58 argh, this was left over cruft from my tree
git-svn-id: svn://10.0.0.236/trunk@107027 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:17:29 +00:00
sspitzer%netscape.com
e53b3e1168 "Ingore Thread" mnemonic is "I", not "K". r/sr=bienvenu
git-svn-id: svn://10.0.0.236/trunk@107026 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:16:07 +00:00
ddrinan%netscape.com
ed895f9c12 Fix for decoding sequences. This was encountered when decoding the recipient info of a CMS strucure. Only the first recipient info was decoded, the others were not. Checkin approved by relyea
git-svn-id: svn://10.0.0.236/trunk@107025 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:10:55 +00:00
ddrinan%netscape.com
3f65823aa2 Allocate memory when setting digest vale. Checkin approved by relyea
git-svn-id: svn://10.0.0.236/trunk@107024 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:03:32 +00:00
blizzard%redhat.com
d5a6fdc729 Update patches to keep up with the trunk. Add patch for Red Hat 7.2 that will get postscript printing working with CJK locales. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107023 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-02 00:00:36 +00:00
alecf%netscape.com
a7f0e54b8f *sigh* - I keep forgetting to pre-land these files. Someone shoot me. I'm sorry!
move to NS_LITERAL_STRING


git-svn-id: svn://10.0.0.236/trunk@107022 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:55:56 +00:00
despotdaemon%netscape.com
f53d62528c Pseudo-automatic update of changes made by bhart00@yahoo.com.
git-svn-id: svn://10.0.0.236/trunk@107021 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:55:07 +00:00
mkaply%us.ibm.com
628682adfe #102457
r=pedemont, sr=blizzard
Bulletproof OS Uconv code and default to 932 for Japanese rendering


git-svn-id: svn://10.0.0.236/trunk@107020 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:51:15 +00:00
dougt%netscape.com
6fa08f8d4d removing appshell from xpcom. 96524. r=valeski@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@107019 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:45:04 +00:00
sspitzer%netscape.com
f75352bafa fix for performance bug #108038, suppressing / skipping command updating when possible in the compose window.
fix for performance bug #98657, we don't need the composerSaveMenuItems command set (which get overlay from editor)
we do our own save foo.
r=varada, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107018 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:41:22 +00:00
alecf%netscape.com
9dcee8fc46 yank a bunch of junk from tests
r=jag, sr=scc


git-svn-id: svn://10.0.0.236/trunk@107017 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:40:10 +00:00
sonja.mirtitsch%sun.com
9e9cbbb7df removed killing of leftover selfservers, since multiple QAs need to
peacefully coexist... will file enhancement request against myself


git-svn-id: svn://10.0.0.236/trunk@107015 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:37:36 +00:00
javi%netscape.com
c88a37da60 Fix objdir builds.
NOT PART OF BUILD.


git-svn-id: svn://10.0.0.236/trunk@107014 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:18:36 +00:00
alecf%netscape.com
9cd6323563 fix unix bustage.. I can't keep up... :(
git-svn-id: svn://10.0.0.236/trunk@107013 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:15:15 +00:00
blakeross%telocity.com
aef3534707 update ui appropriately for helper apps (96939). r=hewitt sr=ben
git-svn-id: svn://10.0.0.236/trunk@107012 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 23:03:37 +00:00
leaf%mozilla.org
b9be88e724 Automated update
git-svn-id: svn://10.0.0.236/trunk@107011 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:58:12 +00:00
seawood%netscape.com
f8190d03e6 Do not set either of the logrefcnt defines unless given a specific --enable-logrefcnt option.
Bug #108044


git-svn-id: svn://10.0.0.236/trunk@107010 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:55:43 +00:00
alecf%netscape.com
c27b9240de bug 76944 - lazy loading of string bundles.
While I'm there, do massive cleanup of string usage to avoid excess copying
also remove ns*AcceptLang on recommendation of tao
r=tao, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@107009 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:46:39 +00:00
hwaara%chello.se
7a97207ee0 #40033, Pressing on a "news:" link should ask to add to newsgroup.
r=sspitzer, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@107008 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:44:40 +00:00
sonja.mirtitsch%sun.com
e47248081b removed the "missing list" for tinderbox QA
git-svn-id: svn://10.0.0.236/trunk@107007 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:43:55 +00:00
leaf%mozilla.org
82e224d915 Automated update
git-svn-id: svn://10.0.0.236/trunk@107006 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:43:15 +00:00
alecf%netscape.com
6dd21662ef fix for bug 76944 - cleanup as a result of string bundle cleanup
r=tao, sr=dveditz


git-svn-id: svn://10.0.0.236/trunk@107005 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:42:28 +00:00
alecf%netscape.com
32ae7fff08 remove all unicharutil dependencies from xpcom (finally!)
bug 100214, r=jag, sr=scc


git-svn-id: svn://10.0.0.236/trunk@107004 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:40:03 +00:00
sonja.mirtitsch%sun.com
448889f5fc added -p port argument, so multiple tinderboxes can run on the same machine
git-svn-id: svn://10.0.0.236/trunk@107003 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:36:03 +00:00
bryner%netscape.com
baca245de6 Bug 107823 -- rename nsIFile lastModificationDate to lastModificationTime. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@107002 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:35:59 +00:00
mscott%netscape.com
b0a1ab6042 NOT PART OF THE BUILD
Adding new smime extension files.
NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@107001 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:35:58 +00:00
wtc%netscape.com
a57b634175 Bugzilla bug 99072: fixed the bug that CPU_ARCH was always set to x86.
The patch was submitted by taya@netbsd.org (Shin'ichiro TAYA), edited
by wtc, and reviewed by cls.


git-svn-id: svn://10.0.0.236/trunk@107000 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:35:48 +00:00
akkana%netscape.com
11ad61a35d 106111: heed --enable-plaintext-editor-only for editor build.
r=cls sr=kin


git-svn-id: svn://10.0.0.236/trunk@106998 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:29:13 +00:00
seawood%netscape.com
ae70b73a4e Removing obsolete xslt makefile
git-svn-id: svn://10.0.0.236/trunk@106997 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:24:35 +00:00
bryner%netscape.com
f77980de82 Correcting the description of the third argument to NS_QuickSort. r=dbaron.
git-svn-id: svn://10.0.0.236/trunk@106996 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:21:34 +00:00
radha%netscape.com
adc5d6c010 Fix for bug # 103850. DocShell sets wrong cache key while loading pages with postdata. r=adamlock sr=darin
CVS: ----------------------------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@106995 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:21:31 +00:00
dougt%netscape.com
dd64c90d92 conditionally create nsIChromeRegistry. b=107346. r=dp@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106993 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:18:22 +00:00
yokoyama%netscape.com
6d0ee0a53f Bug 104305
Convert the cmdline Profile name from
platform charset to Unicode instead of calling
AssignWithConversion()
/r=ccarlen, /sr=brendan


git-svn-id: svn://10.0.0.236/trunk@106992 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:17:10 +00:00
dougt%netscape.com
6b0afcb82a Fix for 104962. Using faster win api SHGetSpecialFolderPath. r=dveditz@netscape.com, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106991 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:16:56 +00:00
locka%iol.ie
1b28bb88de NOT PART OF BUILD. Add code to _OpenURL() to turn relative links into absolute ones for correct loading, using the base address of the browser. Patch provided by mirko@czesla.de. Thanks Mirko!
git-svn-id: svn://10.0.0.236/trunk@106990 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:15:34 +00:00
mscott%netscape.com
4c100f311c NOT PART OF THE BUILD.
Adding the new extensions/smime directory. Bug #106507

NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@106989 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 22:14:28 +00:00
bryner%netscape.com
f92d11ff55 Fixing out param on QueryElementAt to be casted to (void**). Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@106983 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 20:28:20 +00:00
bryner%netscape.com
c92903067f Fixing several problems/optimizations that jag pointed out. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@106982 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 20:21:22 +00:00
harishd%netscape.com
887aaf1681 107994 - Backing out rpotts change ( bug 102737 ) to fix the smoketest blocker.
git-svn-id: svn://10.0.0.236/trunk@106981 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 19:40:48 +00:00
locka%iol.ie
2c64cf7242 Missing backslash causing build bustage on some ports platforms. r=brade@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106977 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 17:23:22 +00:00
brade%netscape.com
efde90d683 fix build bustage from #104883; r=adamlock/jag
git-svn-id: svn://10.0.0.236/trunk@106975 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 17:00:41 +00:00
karnaze%netscape.com
5d4ad94e7c fix crash in display reflow debugging.
git-svn-id: svn://10.0.0.236/trunk@106973 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:53:57 +00:00
dbradley%netscape.com
636bf8b5b0 Bug 83426 - Remove DOM exception hack. r=jst, r=dbradley, sr=jband
git-svn-id: svn://10.0.0.236/trunk@106972 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:52:53 +00:00
brade%netscape.com
3fd06aabc5 (not yet part of the build); add nsICODecoder.cpp for hyatt/biesi (bug #18502)
git-svn-id: svn://10.0.0.236/trunk@106970 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:46:10 +00:00
rjesup%wgate.com
ba5d380603 Bug 106509: SaveSelection() doesn't delete entries from range correctly;
the test was backwards and never executed.  r=jfrancis, sr=kin


git-svn-id: svn://10.0.0.236/trunk@106969 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:44:26 +00:00
ccarlen%netscape.com
c11a56bbb0 Bug 89465 - Infinite loop in PL_HashTableEnumerateEntries. Added code to use PL_HashTableLookupConst when enumerating the hash table. r=bnesse/sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@106968 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:41:53 +00:00
karnaze%netscape.com
b1771999ca bug 105166 - split images (except for image contro frames), round pixels down for printing. sr=attinasi,kin r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@106966 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:31:13 +00:00
brade%netscape.com
74f5fa0887 nsIFile->nsIURI in nsIDiskDocument; fix SaveDocument api (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106965 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:27:38 +00:00
brade%netscape.com
9b3010eb38 nsIFile->nsIURI in SaveDocument api (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106964 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:34 +00:00
brade%netscape.com
a56a9f16b8 factoring of SaveDocument and nsIFile->nsIURI (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106963 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:33 +00:00
brade%netscape.com
642c74ee59 nsIFile->nsIURI for SaveDocument; factoring of SaveDocument (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106962 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:28 +00:00
brade%netscape.com
1d3d0625bd remove fileSpec, remove tabs, and change api to use nsIURI instead of nsIFile (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106961 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:27 +00:00
brade%netscape.com
791621834d change mFileSpec to mDocumentURI (nsIURI) for bug #104883
git-svn-id: svn://10.0.0.236/trunk@106960 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:19 +00:00
brade%netscape.com
84c23e017d remove InitDiskDocument since it's no longer part of nsIDiskDocument.idl, change from nsIFile to nsIURI for SaveFile method (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106959 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:26:16 +00:00
brade%netscape.com
1a487c66d6 nsIFile->nsIURI in nsIDiskDocument r=adamlock (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106958 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:25:53 +00:00
brade%netscape.com
18ad0f0e55 nsIFile->nsIURI in nsIDiskDocument shows missing #include; now added (bug #104883)
git-svn-id: svn://10.0.0.236/trunk@106957 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:22:10 +00:00
brade%netscape.com
f7cc2deb3c add necko requires (makefile.win already has this); bug #104883
git-svn-id: svn://10.0.0.236/trunk@106956 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:09:56 +00:00
locka%iol.ie
23873585f0 Move webbrowserpersist code to components/ directory. b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106955 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 15:02:13 +00:00
locka%iol.ie
7e5625d2eb Mac changes to move webbrowserpersist object to components/ b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106954 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 14:41:02 +00:00
locka%iol.ie
78757538a1 Unix makefile changes to move webbrowserpersist to components/ b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106953 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 14:39:53 +00:00
locka%iol.ie
43ef9be61e Move webbrowserpersist code to components/ directory. b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106952 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 14:39:26 +00:00
sicking%bigfoot.com
a6127eabfa Move document-order logic from DOMHelper to the Nodes. Kill the DOMHelper class since it's no longer needed.
Also fix an off-by-one error in the documentorder sorting routine.

r=Pike, peterv sr=jst


git-svn-id: svn://10.0.0.236/trunk@106951 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 14:32:14 +00:00
brade%netscape.com
8540d3e788 remove DOMHelper.cpp for sicking (bug #94471)
git-svn-id: svn://10.0.0.236/trunk@106950 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 14:31:46 +00:00
locka%iol.ie
ccd6837018 Move webbrowserpersist code to components/ directory. b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106949 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 11:51:20 +00:00
locka%iol.ie
ffcd4bea83 Move webbrowserpersist code to components/ directory. b=106554 r=brade@netscape.com sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106948 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 11:47:05 +00:00
sspitzer%netscape.com
d8d7ed4835 fix for #105835, move rules for empty tree twisties into tree.css, like in modern.
clean up and optimize the address book css. remove obsolete files
sr=hewitt, r/sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@106947 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 09:10:45 +00:00
jaggernaut%netscape.com
640c7f02ab Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106946 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 09:09:57 +00:00
jaggernaut%netscape.com
4adbb712fc Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106945 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 08:47:44 +00:00
sspitzer%netscape.com
c8682236ef supplimental fix for #106507. we should not fail to send if the S/MIME extension is not
available.  r/sr=mscott


git-svn-id: svn://10.0.0.236/trunk@106944 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 08:36:23 +00:00
hyatt%netscape.com
edd388a429 Remove the wasteful undetermined mode from the browser progress meter. r=jag, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106943 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 08:25:31 +00:00
sspitzer%netscape.com
ba0670094f fix for correctness bug #107865. location showing up in label column in search results.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106942 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 08:18:32 +00:00
bryner%netscape.com
d59f059853 Adding new files for C++ rewrite of filepicker. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@106941 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 07:54:40 +00:00
sspitzer%netscape.com
d88afa5206 fix for crasher bug #107797. my old stand by when I can reproduce a bug:
bullet proof (to prevent the crash) and assert (so if it happens again to
someone with a debug build), we can debug it.
r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106940 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 07:45:59 +00:00
seawood%netscape.com
0542162dad Removing obsolete MOZ_MONOLITHIC_TOOLKIT code.
git-svn-id: svn://10.0.0.236/trunk@106939 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 07:31:42 +00:00
aaronl%netscape.com
539f2b6e44 Bug 107703. Fixes some of the crashes in DOM inspector. r=timeless, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106938 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 07:28:10 +00:00
sspitzer%netscape.com
28e8bb7bd5 checkin for mscott.
git-svn-id: svn://10.0.0.236/trunk@106937 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 07:01:22 +00:00
mscott%netscape.com
db645d2bf6 Backing out a corrupt mac project i think i checked in.
git-svn-id: svn://10.0.0.236/trunk@106936 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 06:58:37 +00:00
mscott%netscape.com
add14a798a Bug #106507 --> add an abstract interface for crypto modules to hook into the sending
of a message.Store an opaque nsISupports reference on nsIMsgComposefields which can be used by
extensions to mailnews to store security information for a send transaction.
r=ducarroz
sr=sspitzer

DAMM MISSed a file


git-svn-id: svn://10.0.0.236/trunk@106935 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 06:49:44 +00:00
wtc%netscape.com
a9af03654b Bugzilla bug 78978: removed obsolete files .cshrc and .profile.
git-svn-id: svn://10.0.0.236/trunk@106934 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 06:40:05 +00:00
mscott%netscape.com
a7804050ac Bug #106507 --> add an abstract interface for crypto modules to hook into the sending
of a message.Store an opaque nsISupports reference on nsIMsgComposefields which can be used by
extensions to mailnews to store security information for a send transaction.
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106933 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 06:30:43 +00:00
mscott%netscape.com
c69463cb38 Bug #106507 --> add an abstract interface for crypto modules to hook into the sending
of a message.
r=ducarroz
sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106932 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 06:27:04 +00:00
mkaply%us.ibm.com
a5c93a02d6 #88100
r=simon@softel.co.il, sr=blizzard
Hookup Bidi preferences


git-svn-id: svn://10.0.0.236/trunk@106931 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:49:45 +00:00
mkaply%us.ibm.com
9c733170f9 #88100
r=simon@softel.co.il, sr=blizzard
Hookup Bidi preferences


git-svn-id: svn://10.0.0.236/trunk@106930 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:40:35 +00:00
mkaply%us.ibm.com
3ded5a8fee #95860
r=timeless, sr=blizzard
Add x-mac-hebrew and x-mac-arabic to charset lists so they actually work


git-svn-id: svn://10.0.0.236/trunk@106929 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:25:43 +00:00
wtc%netscape.com
d6e75ebac0 Bugzilla bug 103933: loader.c should not be compiled with -xchip=ultra2.
r=nelsonb.


git-svn-id: svn://10.0.0.236/trunk@106928 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:25:31 +00:00
jband%netscape.com
3b3d9f5aaf fixing warnings from recent landing and uncommenting test cases I did not mean to comment out for the checkin
git-svn-id: svn://10.0.0.236/trunk@106926 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:18:35 +00:00
darin%netscape.com
ebd4cb4576 fixes Darwin mach-o bustage (r=jband)
git-svn-id: svn://10.0.0.236/trunk@106925 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:06:41 +00:00
dbradley%netscape.com
acb500fb15 Bug 101696 - interface with no uuid shouldn't parse. Patch adds a warning, does not prohibit it, and cleans up interfaces that are missing id's r=rginda, sr=jband
git-svn-id: svn://10.0.0.236/trunk@106924 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 05:04:35 +00:00
cmanske%netscape.com
6c571e4756 Fixed error message when empty row or col input in Table Properties dialog, b=99306, r=akkana, sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@106923 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:59:34 +00:00
jst%netscape.com
8360b93aa5 Fixing bug 103904. Don't let pref change callbacks run wild on documents that are partially torn down already. r=bzbarsky@mit.edu, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106922 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:42:57 +00:00
jband%netscape.com
e65e0f6378 file had no newline at EOF. rs=jband
git-svn-id: svn://10.0.0.236/trunk@106921 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:42:19 +00:00
sspitzer%netscape.com
0492db1f5f supplimental fix for #102180. when closing the stand alone message window, we were
not unregistering the folder listener from the mail session, because the unload handler
was failing.  it was failing because GetSearchSession() has a js error, because
for the stand alone msg window, gSearchSession is undefined.  r/sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106920 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:41:45 +00:00
karnaze%netscape.com
c0b185a870 bug 106158 - changed outer table fix up of nested inner table's computed width to consider if the min width fits.
removed tree specific code. sr=waterson, r=alexsavulov.


git-svn-id: svn://10.0.0.236/trunk@106919 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:17:30 +00:00
sspitzer%netscape.com
82db581e68 fix for performance bug #107481 (reduce mail-toolbar command updating)
fix for bug #102180 (close std alone msg window on delete if no more messages
in the folder).  also, fix spelling mistake, "supress" -> "suppress"
r=cavin, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@106918 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 04:05:41 +00:00
tao%netscape.com
2a916db5f1 107375: localeVersion 0.9.5 -> 0.9.6 (one more to go..)
git-svn-id: svn://10.0.0.236/trunk@106917 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 03:32:11 +00:00
brendan%mozilla.org
bd7ff6eb3b Fix nul-termination assumption hidden in lastIndexOf, broken by dependent strings fix for bug 56940 (107771, r=jag, sr=waterson).
git-svn-id: svn://10.0.0.236/trunk@106916 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 03:19:54 +00:00
jband%netscape.com
958b4e78e0 fix Mac bustage. I can't believe the Mac can't do this conversion without a cast!
git-svn-id: svn://10.0.0.236/trunk@106914 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 02:36:19 +00:00
mcafee%netscape.com
6675939165 Adding --start-module=module functionality. Grouped some code into functions. Moved main to the bottom. TrueType for linux comment.
git-svn-id: svn://10.0.0.236/trunk@106912 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 02:14:08 +00:00
jband%netscape.com
90b4a66a35 added files: mozilla/xpcom/ds/nsIPropertyBag.idl
git-svn-id: svn://10.0.0.236/trunk@106911 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 02:10:24 +00:00
jband%netscape.com
837a2c44eb ack! forgot one .idl file. Fix Mac bustage
git-svn-id: svn://10.0.0.236/trunk@106910 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 02:08:41 +00:00
jband%netscape.com
1c7f2a930e the HP compiler says that anonymous unions can't even have structs. So the union must be named. Fixing that bustage
git-svn-id: svn://10.0.0.236/trunk@106909 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 01:45:48 +00:00
jband%netscape.com
4246348236 fix Mac bustage (I hope). I think these names conflicted with other names
git-svn-id: svn://10.0.0.236/trunk@106908 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 01:15:53 +00:00
tao%netscape.com
9e7dcf2046 107375: localeVesion update: 0.9.4 -> 0.9.6 in the trunk.
(r=jbetak,sr=dveditz)


git-svn-id: svn://10.0.0.236/trunk@106907 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 01:11:57 +00:00
jst%netscape.com
639d748f26 Fixing bustage, this was lost in a patch...
git-svn-id: svn://10.0.0.236/trunk@106906 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:58:28 +00:00
leaf%mozilla.org
b8c8c7e3ad Automated update
git-svn-id: svn://10.0.0.236/trunk@106905 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:58:17 +00:00
seawood%netscape.com
acaf3004b5 Since '-framework Carbon' causes binaries to require console access to run, do not link using that flag by default. Otherwise, remote builds & non-console tinderboxes will break. Mac OSX Mach-O only.
Bug #107696 r=mozbot


git-svn-id: svn://10.0.0.236/trunk@106904 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:54:48 +00:00
jband%netscape.com
08cbbc76c9 fix bustage on compilers that don't like anonymouse structs in unions. who knew? sr=jst
git-svn-id: svn://10.0.0.236/trunk@106899 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:34:29 +00:00
sfraser%netscape.com
e8b50626a8 Adding strtok.c per bug 106372
git-svn-id: svn://10.0.0.236/trunk@106896 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:28:57 +00:00
bienvenu%netscape.com
8596b9672b better fix for problem reading imap messages with inline images 107436 r=jag, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106895 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:21:24 +00:00
bstell%netscape.com
50eb9d5753 checkin for fcrozat@mandrakesoft.com
bug 102516 recognize @euro locales
r=bstell@netscape.com, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@106894 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:21:01 +00:00
tor%cs.brown.edu
36289df1e0 Update to libmng 1.0.3. rs=blizzard
git-svn-id: svn://10.0.0.236/trunk@106893 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:19:53 +00:00
bienvenu%netscape.com
dbfea3bd03 fix toolbar flashing on deleting messages r=cavin, sr=sspitzer 100802
git-svn-id: svn://10.0.0.236/trunk@106892 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:19:46 +00:00
tor%cs.brown.edu
b82b10fcfc Update to tip. Not in build.
git-svn-id: svn://10.0.0.236/trunk@106891 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:18:39 +00:00
tor%cs.brown.edu
e1162335c3 Bug 64188 - don't round-trip the server for each tile when tiling an
8-bit alpha image.  r=rjesup, sr=blizzard


git-svn-id: svn://10.0.0.236/trunk@106890 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:15:46 +00:00
morse%netscape.com
6a0f7f2d85 bug 92398, minor wording changes, c=gemal, r=morse, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@106888 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:14:00 +00:00
pete%alphanumerica.com
3c4492f3e0 b=107823, r=ccarlen, sr=brendan
--pete


git-svn-id: svn://10.0.0.236/trunk@106886 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:11:15 +00:00
bnesse%netscape.com
63115dde46 Fix for bug 107798. Misc source cleanup and JS strict warning removal. r=sgehani, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@106885 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:07:06 +00:00
pavlov%netscape.com
6d74812810 fixing bug 107106 r=valeski sr=jst
git-svn-id: svn://10.0.0.236/trunk@106884 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:05:19 +00:00
wtc%netscape.com
81300aad37 Use PL_strcmp instead of strcmp to avoid having to include <string.h>.
git-svn-id: svn://10.0.0.236/trunk@106880 18797224-902f-48f8-a5cc-f745e15eee43
2001-11-01 00:02:16 +00:00
jst%netscape.com
8d2569a64b Fixing topembed bug 106105. Clear our document.body cache when resetting a document, and make sure the right things are flushed when position and size related properties are accessed. r=heikki@netscape.com, sr=vidur@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106875 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:52:52 +00:00
gagan%netscape.com
86e1f7ce7b Fix for bug 100595. Resetting cursor after buffer has been prepended with the boundary string. r/sr=darin/dougt
git-svn-id: svn://10.0.0.236/trunk@106874 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:51:38 +00:00
wtc%netscape.com
8e384b8dbf Added lib/tests/Makefile to the list of makefiles to be generated by
configure.
Modified files: configure configure.in
Bugzilla bug 106372: added new function PL_strtok_r.  The function was
implemented by Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>.
Modified files: lib/libc/include/plstr.h lib/libc/src/Makefile.in
    lib/tests/string.c
Added file: lib/libc/src/strtok.c


git-svn-id: svn://10.0.0.236/trunk@106872 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:49:52 +00:00
alecf%netscape.com
1115fa5f28 bug 100113, r=jag, sr=blizzard - remove some dumb dependencies on dom and gfx
git-svn-id: svn://10.0.0.236/trunk@106871 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:43:27 +00:00
jband%netscape.com
e9cb6fa375 added files: mozilla/js/src/xpconnect/src/xpcvariant.cpp
git-svn-id: svn://10.0.0.236/trunk@106869 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:36:34 +00:00
jband%netscape.com
2b7d2882d3 added files: mozilla/xpcom/ds/nsVariant.cpp
git-svn-id: svn://10.0.0.236/trunk@106868 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:36:08 +00:00
jband%netscape.com
57fc23094c add support for nsIVariant and nsIPropertyBag. bug 44675 and bug 98209. sr=vidur r=dbradley
git-svn-id: svn://10.0.0.236/trunk@106867 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:35:07 +00:00
rginda%netscape.com
01b5c4e4c1 venkman only
expose interface to the initAtStartup setting


git-svn-id: svn://10.0.0.236/trunk@106866 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:33:41 +00:00
sonja.mirtitsch%sun.com
71b3ea6dee removing the starting : fo`rom the SHLIB_PATH to avoid HP coredumps
git-svn-id: svn://10.0.0.236/trunk@106865 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:31:58 +00:00
racham%netscape.com
e0a2a7f645 Fixing bug 107779. This is a regression. Make messagepane link context menu items to work by using the global context menu var. r=ssu,ben sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106864 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:29:53 +00:00
rginda%netscape.com
b8a26a402b venkman only
freeze stack outliner before restoring state


git-svn-id: svn://10.0.0.236/trunk@106863 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:29:20 +00:00
timeless%mac.com
2626790b7e Bug 102155 - javascript error in contentAreaUtils.js
whitespace fixes only
patch by caillon@returnzero.com r=stephend@netscape.com sr=alecf


git-svn-id: svn://10.0.0.236/trunk@106862 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:29:05 +00:00
bbaetz%cs.mcgill.ca
c3fe6e0f41 Bug 100843 - Add an explicit output filename option (-e) to xpidl
Patch by aegis@aegisknight.org, r=dbradley, sr=scc


git-svn-id: svn://10.0.0.236/trunk@106861 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:28:36 +00:00
jband%netscape.com
28d45091af added files: mozilla/xpcom/ds/nsIVariant.idl
git-svn-id: svn://10.0.0.236/trunk@106860 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:20:27 +00:00
timeless%mac.com
64073fe805 Bug 86217 - javascript strict warnings in sendProgress.js
patch by caillon@returnzero.com r=hwaara,varada sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106859 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:17:44 +00:00
rginda%netscape.com
a1b245255f Bug 104168, "xpcom-autoregistration notification never fires"
r=dougt, sr=brendan
notify category observers when xpcom registration occurs


git-svn-id: svn://10.0.0.236/trunk@106858 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:17:30 +00:00
rpotts%netscape.com
36740b6e82 bug #102737 (r=harishd@netscape.com, sr=jst@netscape.com) do not emit <html> ... </html> for empty text/plain documents.
git-svn-id: svn://10.0.0.236/trunk@106857 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:15:57 +00:00
nhotta%netscape.com
f5793e8c32 Changed MimeMultipart_parse_line for retrieving a charset of the original message,
added a special handling for "multipart/related",
also changed to check number of children first to avoid calling MimeObjectChildIsMessageBody if not needed.
bug 92957, r=ducarrroz, sr=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@106856 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:14:09 +00:00
nhotta%netscape.com
14ce83238c Moved the hard coded reply header strings to pref so they can be editable, bug 70842, r=ducarroz, sr=sspitzer.
git-svn-id: svn://10.0.0.236/trunk@106855 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:13:35 +00:00
rginda%netscape.com
4e00b5d217 bug 99601, don't install xpconnect debugger keyword handler if one is already there, r=jband, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@106854 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 23:13:17 +00:00
rginda%netscape.com
bd4d815147 bug 107421, "--disable-mailnews build broken", r=andreww sr=smfr
comment out reference to chrome://messenger/content/mailOverlay.xul


git-svn-id: svn://10.0.0.236/trunk@106840 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 21:12:08 +00:00
jst%netscape.com
611fab96b0 Fixing blocker bug 107627. Put back the embed elements attribute mapping code that was lost when the embed element was combined with nsHTMLSharedLeafElement.cpp. r=bzbarsky@mit.edu, sr=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106839 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 21:03:31 +00:00
relyea%netscape.com
6e5fb40196 Don't crash on SSL2 failures.
git-svn-id: svn://10.0.0.236/trunk@106837 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 20:03:29 +00:00
leaf%mozilla.org
91a693f37f Automated update
git-svn-id: svn://10.0.0.236/trunk@106836 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 19:28:13 +00:00
seawood%netscape.com
ecc465d95d Fixing IRIX bustage cause by grid2 landing (Removing hack from tinderbox)
git-svn-id: svn://10.0.0.236/trunk@106835 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 19:16:30 +00:00
kin%netscape.com
9673ca95ec Backout glazman's fix for bug 107567, pending investigation
on why it causes the tinderbox Leak count to go up.

a=beard@netscape.com,jj@netscape.com


git-svn-id: svn://10.0.0.236/trunk@106834 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 19:03:46 +00:00
glazman%netscape.com
8c9c7abf8d Remove useless mSheetMap table from nsCSSLoader; b=107567, r=peterv,rjesup@wgate.com; sr=kin
git-svn-id: svn://10.0.0.236/trunk@106832 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 15:53:25 +00:00
glazman%netscape.com
833d6a353e call to GetNodesForOperation() in GetAlignment() missed a parameter indicating it should not modify the tree; b=107372, r=brade, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106831 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 15:30:49 +00:00
kin%netscape.com
0faffae415 Fix for bug 103539: Find does not always find strings containing spaces.
and bug 98730: Find/Replace not finding a string with more than one space

  - Reworked the whitespace ignoring code in FindInString() so that it actually
    ignores trailing whitespace and made that code conditional so that it can be
    toggled on and off in the future when the context of the text we are looking
    at is available.

  - We now treat &nbsp; as a space.

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


git-svn-id: svn://10.0.0.236/trunk@106830 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 15:19:47 +00:00
mkaply%us.ibm.com
f6af291238 #104874
r=rods, sr=watersin
Patch from simon montagu - cleanup combobox code in Bidi case


git-svn-id: svn://10.0.0.236/trunk@106828 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 14:49:15 +00:00
karnaze%netscape.com
b82075b237 bug 107403 - shannond's patch to cast debug code before deleting to satisfy HP-UX. r=karnaze
git-svn-id: svn://10.0.0.236/trunk@106827 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 14:45:12 +00:00
seawood%netscape.com
ac1a58893c Link libunicharutil_s before xpcom. Blind attempt to fix hpux bustage
git-svn-id: svn://10.0.0.236/trunk@106826 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 10:03:34 +00:00
jst%netscape.com
02e8ea3ff2 Fixing bug 90765. Hold a strong reference to the global object's wrapper to avoid users of that wrapper to cause rooting and unrooting of the global object every time the global object wrapper is addreffed. r=dbaron@fas.harvard.edu, sr=jband@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106824 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 08:39:09 +00:00
brendan%mozilla.org
b27e4fa386 Store FastLoad dependency mtimes, and invalidate if any changes (106021, r=dveditz, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@106823 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 08:29:25 +00:00
seawood%netscape.com
273df67dca Attempt to fix AIX bustage by linking in smime
git-svn-id: svn://10.0.0.236/trunk@106822 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 08:27:27 +00:00
naving%netscape.com
a054be7f55 107393 r/sr=bienvenu. make minor change to last checkin
git-svn-id: svn://10.0.0.236/trunk@106821 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:51:20 +00:00
seawood%netscape.com
9574b14a69 I don't know how this was missed but add nsMacUnicodeFontInfo.cpp to the build.
Should fix OSX macho tinderbox bustage


git-svn-id: svn://10.0.0.236/trunk@106820 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:32:04 +00:00
naving%netscape.com
27beaa6be8 107393. r/sr=bienvenu. Make the flag changes in QS view show up when you go back to folder
view.


git-svn-id: svn://10.0.0.236/trunk@106819 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:31:33 +00:00
darin%netscape.com
c7306462ea fixes bug 70519 "Select All (+ Copy) does not clobber the X primary selection"
patch=jwbaker@acm.org r=akkana sr=kin


git-svn-id: svn://10.0.0.236/trunk@106818 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:14:11 +00:00
aaronl%netscape.com
0c69b5d30d Bug 106533. Active Accessibility: Assert on startup in timer code. r=evaughan, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106817 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:12:39 +00:00
aaronl%netscape.com
7b79d91de9 Bug 107196. Leave empty HTML text nodes and nameless XUL images out of accessible tree. r=evaughan, sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106816 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 06:10:44 +00:00
mkaply%us.ibm.com
e954f26d24 #104792
r=rods, sr==attinasi
patch from simon montagu - hebrew comboboxes go haywire


git-svn-id: svn://10.0.0.236/trunk@106815 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:17:34 +00:00
bryner%netscape.com
58bf936788 When creating the root view's widget, don't show it. This prevents full-page Invalidates during page load caused by showing and then hiding the widget. Bug 97895, r=blizzard, sr=hyatt.
git-svn-id: svn://10.0.0.236/trunk@106814 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:06:31 +00:00
bryner%netscape.com
d8f860b71e Bug 107500 -- clean up cruft in nsGtkEventHandler. r=jag,pavlov, sr=blizzard.
git-svn-id: svn://10.0.0.236/trunk@106813 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:00:17 +00:00
mkaply%us.ibm.com
7b37218070 #97235
r=mkaply,r=maha sr=blizzard
Code from Roozbeh Pournader - get extended Arabic letters to join so Persian works


git-svn-id: svn://10.0.0.236/trunk@106812 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 05:00:06 +00:00
leaf%mozilla.org
1b2e3f3045 Automated update
git-svn-id: svn://10.0.0.236/trunk@106811 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:58:14 +00:00
seawood%netscape.com
1def44681a Removing --disable-idlc option. It's a no-op.
Bug #107156


git-svn-id: svn://10.0.0.236/trunk@106810 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:55:30 +00:00
bryner%netscape.com
9f640c7836 Debug-only change to print out the img src when the frame tree is dumped. r=pavlov, sr=waterson.
git-svn-id: svn://10.0.0.236/trunk@106808 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:43:48 +00:00
tara%tequilarista.org
b0fdab4aac Checking in fix for bug #86920, fix from jake@acutex.net
git-svn-id: svn://10.0.0.236/trunk@106807 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:30:33 +00:00
tara%tequilarista.org
20acc203a8 Checking in patch for bug #44641, patch from Ian Wells
git-svn-id: svn://10.0.0.236/trunk@106806 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:20:28 +00:00
tara%tequilarista.org
fcdc069ec0 Checking in patch for bug#36597, patch from miri@punknet.cz
git-svn-id: svn://10.0.0.236/trunk@106805 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 04:07:25 +00:00
bienvenu%netscape.com
780270ed60 fix for empty local trash when you've not opened the trash or deleted a message in the session, r=naving, sr=sspitzer 107187
git-svn-id: svn://10.0.0.236/trunk@106804 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:56:15 +00:00
mscott%netscape.com
dcde2c8b00 Bug #107608 --> allow generic extensions to account manager,
nsIMsgIdentity and nsIMsgIncomingServer. checking in for Seth.
r=bhuvan
sr=mscott


git-svn-id: svn://10.0.0.236/trunk@106803 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:45:24 +00:00
dbaron%fas.harvard.edu
bf5d4ab91a Remove references to nsISimpleEnumerator.h from Makefile.in and MANIFEST as well. b=99136
git-svn-id: svn://10.0.0.236/trunk@106802 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:33:12 +00:00
jake%acutex.net
066f569e09 Fixing tinderbox bustage (removing <Tab>s and adding a "use vars" line)
git-svn-id: svn://10.0.0.236/trunk@106800 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:31:00 +00:00
javi%netscape.com
ed08a63afb Add the smime source files to the Mac project.
git-svn-id: svn://10.0.0.236/trunk@106799 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:24:32 +00:00
mkaply%us.ibm.com
87aa6ece0a #99136
r=dbaron
OS/2 bustage - removing H file that is now generated by IDL


git-svn-id: svn://10.0.0.236/trunk@106797 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:17:59 +00:00
brendan%mozilla.org
7c84ad604a Don't try to correct = to == if strict, do it only if downrev (106244, r=jband, sr=shaver).
git-svn-id: svn://10.0.0.236/trunk@106796 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:17:00 +00:00
despotdaemon%netscape.com
c7fd19df20 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@106795 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:09:28 +00:00
peterv%netscape.com
e5aa9b9c9a Sigh, commit failed. Bustage fix.
git-svn-id: svn://10.0.0.236/trunk@106794 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 03:09:00 +00:00
dbaron%fas.harvard.edu
851c51369f Additional cleanup after bug 56117: prevent :first-letter from leading to style resolution on text nodes and stop all style resolution for placeholder frames (formerly :placeholder-frame pseudo-element) and for text following a :first-line pseudo-element (formerly :-moz-letter-frame pseudo-element). b=107534 r=waterson, attinasi sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@106793 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:53:47 +00:00
dbaron%fas.harvard.edu
7115335ed6 Clean up un-needed string copying. r=jag sr=hyatt b=106108
git-svn-id: svn://10.0.0.236/trunk@106789 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:46:21 +00:00
pschwartau%netscape.com
974182fbf4 Initial add. Regression test for bug 94257.
git-svn-id: svn://10.0.0.236/trunk@106785 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:32:38 +00:00
mkaply%us.ibm.com
8c6d33b3ad HPUX bustage
git-svn-id: svn://10.0.0.236/trunk@106784 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:18:43 +00:00
endico%mozilla.org
fa65440ec2 initial checkin
git-svn-id: svn://10.0.0.236/trunk@106783 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:08:13 +00:00
sspitzer%netscape.com
3b9c2af032 fix for performance #107481. our FocusRingUpdate_Mail command set updates on
focus changes.  a blur from A to B does this:  sets focused element to null,
sets focused element to B.  by listening to focus, and not dropping null, our js would
update the mail-toolbar twice on a focus change.  now we do it once.

thanks to cavin for finding the problem.

r=cavin, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106782 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:05:40 +00:00
javi%netscape.com
903bd07e6c Adding new files to the mac project file. Should fix tbox bustage.
git-svn-id: svn://10.0.0.236/trunk@106781 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 02:01:40 +00:00
javi%netscape.com
6acdc56714 Back out ddrinan for now.
git-svn-id: svn://10.0.0.236/trunk@106780 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 01:58:54 +00:00
seawood%netscape.com
b22d1d092d Adding support for obj-c++ (.mm) files.
Thanks to Mike Pinkerton <pinkerton@netscape.com> for the patch.
Bug #107633 r=cls, sr=leaf


git-svn-id: svn://10.0.0.236/trunk@106776 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 01:20:39 +00:00
rbs%maths.uq.edu.au
73446bf2b6 bug 102088 - Cleanup transitory font APIs that were used as a bridge in bug 99010, r=waterson, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@106775 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 01:15:50 +00:00
zach%zachlipton.com
a96de0e001 Have the tests test .pm files as well, yes this creates bustage, this is
intentional!

No review needed for tests at this time.


git-svn-id: svn://10.0.0.236/trunk@106772 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 01:06:31 +00:00
racham%netscape.com
3eddfd72db Fixing addressbook bug 104468. Getting rid of goEditCardDialog routine in the process of fixing context menu items for sidebar addressbook panel. This routine is now placed under abCommon.js. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106768 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:47:58 +00:00
racham%netscape.com
63b589ecd9 Fixing addressbook bugs 102767, 102846, 104468. Fixing the name order problem in the addresbook results pane, making mobile the formal word in place of cellular and add context menu items for sidebar addressbook panel. r=ducarroz, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106765 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:42:55 +00:00
myk%mozilla.org
b5c6611091 Fix test bustage by removing tabs.
git-svn-id: svn://10.0.0.236/trunk@106762 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:21:28 +00:00
leaf%mozilla.org
b0a02e9d68 Automated update
git-svn-id: svn://10.0.0.236/trunk@106759 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:13:13 +00:00
bnesse%netscape.com
70427bb367 Fix for bug 106159. Force getComplexValue calls to return string values. r=sgehani, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@106758 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:13:06 +00:00
shanjian%netscape.com
cd89da1f32 #107084 View Character Coding for message display broken
r=nhotta, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106757 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:12:38 +00:00
peterv%netscape.com
803c74667f Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@106756 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:11:57 +00:00
shanjian%netscape.com
4fad3e3ab2 #107514 Regression in the support of Symbol fonts
r=rbs sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@106755 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:08:21 +00:00
seawood%netscape.com
f442cf9747 Do not set MOZ_REORDER when giving --enable-reorder if not using GNU ld. The ldscript appears to only work with GNU ld.
Bug #107440


git-svn-id: svn://10.0.0.236/trunk@106752 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-31 00:00:41 +00:00
seawood%netscape.com
90ed8ea567 Replacing File::Basename with custom hack.
Thanks to Joe Hewitt <hewitt@netscape.com> for the patch.
Bug #107474 r=cls


git-svn-id: svn://10.0.0.236/trunk@106750 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:57:14 +00:00
nhotta%netscape.com
3351684d08 For unicode conversion, changed to proceed for decoder errors instead of stop the process, bug 103954, r=ftang, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@106749 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:53:52 +00:00
ddrinan%netscape.com
bc18e5bd3c Bug 105526 - Initial landing of PSM S/MIME. Mailnews will land separately. See bug 106507 for that. r=javi, sr=blizzard
git-svn-id: svn://10.0.0.236/trunk@106745 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:52:01 +00:00
cmanske%netscape.com
c55ae1b15e Remove unused nsNewEditorCommand, b=106728, r=hewitt, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106744 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:49:33 +00:00
peterv%netscape.com
4cff2665ad Fix for bug 105808 (We need atomtables for all xslt elements and attributes). r=Pike, sicking, sr=jst.
git-svn-id: svn://10.0.0.236/trunk@106743 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:48:37 +00:00
cmanske%netscape.com
ea302ed58d Enable/disable 'Advanced Edit' button the same as 'Ok' button in dialogs. b=102046, r=hewitt, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106741 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:46:25 +00:00
myk%mozilla.org
dc4c583cd4 Fix for bug 98602: re-implementation of "create attachment" page.
Patch by Myk Melez <myk@mozilla.org>.
r=gerv@mozilla.org,jake@acutex.net


git-svn-id: svn://10.0.0.236/trunk@106739 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:42:22 +00:00
evaughan%netscape.com
6c95010e5f fixes bug#107638
-r jag -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@106738 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:41:30 +00:00
cmanske%netscape.com
ac836839de Fixed '% of cell' label in menulist, b=97826; also part of fix to disable Advanced Edit button along with Ok, b=102046; r=hewitt, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106737 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:40:02 +00:00
ducarroz%netscape.com
2a09c41059 Fix for bug 86398. Display a different message when we cannot fetch an attachment depending if we are saving or sending the message. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@106735 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:28:51 +00:00
cmanske%netscape.com
6f8a23045c Fixed setting all attributes on an inserted link, b=97455, r=jfrancis, sr=kin
git-svn-id: svn://10.0.0.236/trunk@106733 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:24:44 +00:00
dougt%netscape.com
b3c5359358 107630 Removing C++ cruft from nsIWeakReference.idl. Adding nsIWeakReferenceUtils.h. r=alecf@netscape.com, sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@106731 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:18:51 +00:00
locka%iol.ie
ca8a7aea9f NOT PART OF BUILD. Fix for memory leak in simple array
git-svn-id: svn://10.0.0.236/trunk@106730 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 23:06:50 +00:00
bnesse%netscape.com
73ff098797 Fix for bug 106941. Convert nsProfile from nsIPref to nsIPrefService/nsIPrefBranch. Checking in for chipc. r=bnesse, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@106729 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:59:12 +00:00
rbs%maths.uq.edu.au
410c9e51f2 bug 102088 - Cleanup transitory font APIs that were used as a bridge in bug 99010, r=waterson, sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@106728 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:58:00 +00:00
bnesse%netscape.com
1f6755259d Fix for bug 177585. Don't request the observer service when shutting down. r=dougt, sr=alecf.
git-svn-id: svn://10.0.0.236/trunk@106727 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:57:44 +00:00
sspitzer%netscape.com
ac0c89244d fix for perf bug #103010. don't persist the "open" state of news servers.
(revert to 4.x behaviour).  persisting the open state of news servers
causes us to update the unread count on news servers if they are "open"
on startup, slowing us down.  r=ssu,varada sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106726 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:57:12 +00:00
ducarroz%netscape.com
31deeb0fff Fix for bug 84081. We need to mark an attachment we cannot fetch as bogus in order to avoid generating an empty part. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@106725 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:49:50 +00:00
ducarroz%netscape.com
7933420766 Fix for bug 83752. Need to close the progress window is an error occurs during the send. R=varada, SR=bienvenu
git-svn-id: svn://10.0.0.236/trunk@106724 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:45:31 +00:00
ducarroz%netscape.com
54f06f2fa6 Fix for bug 83549. Add a new send mode in order to be able to display correct message when an error occurs while sending unsent messages. R=varada, SR=mscott
git-svn-id: svn://10.0.0.236/trunk@106723 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:36:57 +00:00
locka%iol.ie
081f664139 NOT PART OF BUILD. First working version of CAB file packaging and signing script, install file and docs.
git-svn-id: svn://10.0.0.236/trunk@106722 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:32:27 +00:00
andreas.otte%primus-online.de
24dbd2c12a fix bug 104876 [c:foo wrongly considered valid URL] this fixes a bug
in caching protocol handlers, scheme "c" was mixed up with scheme
"chrome" for example, c=darin@netscape.com, r=rjesup@wgate.com,
sr=dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@106721 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:20:06 +00:00
dougt%netscape.com
8e551369e9 ugh. I did not mean to commit these changes. Backing out
git-svn-id: svn://10.0.0.236/trunk@106720 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:19:32 +00:00
alecf%netscape.com
e17afbe404 add initial files for bug 102043 - not part of build, to be reviewed for that bug
git-svn-id: svn://10.0.0.236/trunk@106719 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:17:39 +00:00
colin%theblakes.com
2bb2cc48a5 Turn Java back on by default. b=91271. sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106718 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:14:02 +00:00
ian.mcgreer%sun.com
99366f469d patch to fix behavior on AIX's optimizing compiler. Shoul also improve performance on all platforms.
git-svn-id: svn://10.0.0.236/trunk@106717 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:11:49 +00:00
dougt%netscape.com
956ec6e34b Moving nsISimpleEnumerator interface to new idl file. 99136, r=alecf@netscape.com sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106716 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:07:28 +00:00
dougt%netscape.com
3e064cf384 Moving nsISimpleEnumeratory interface into a seperate idl file. bug 99136. r=alecf@netscape.com, sr=rpotts@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106715 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 22:03:05 +00:00
ftang%netscape.com
fad8f3eb7f fix bug 90804. add nsMacUnicodeFontInfo.cpp into the mac sectoin and the nsCompressedCCmap.cpp to the src sectoin r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@106714 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:59:57 +00:00
dougt%netscape.com
55e2803f98 Adding nsISimpleEnumerator.idl to project. 99136. r=alecf, sr=rpotts
git-svn-id: svn://10.0.0.236/trunk@106713 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:59:51 +00:00
ftang%netscape.com
5611f75355 fix 90804. enable more char by using atsui. r=pinkerton sr=sfraser
git-svn-id: svn://10.0.0.236/trunk@106710 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:50:52 +00:00
ftang%netscape.com
39df769b40 fix bug 90804. r=pinkerton sr=sfraser. enable rendering of more characters by using atsui.
git-svn-id: svn://10.0.0.236/trunk@106709 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:50:07 +00:00
morse%netscape.com
ee49d0c6a1 bug 106570, prompt for master password when opening context menu, r=sgehani, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@106708 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:48:08 +00:00
mcafee%netscape.com
1a2e1cf413 unhardcoding hostname
git-svn-id: svn://10.0.0.236/trunk@106707 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:31:00 +00:00
nelsonb%netscape.com
845d4b22d8 Fix bug 107619. The new DHE_ ciphersuites were enabled by default.
Now they are disabled by default, for compatibility with NSS 2.0.


git-svn-id: svn://10.0.0.236/trunk@106706 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:09:47 +00:00
nicolson%netscape.com
35b7fde379 Fix 101609: JSS OSF fails, on the trunk this time.
git-svn-id: svn://10.0.0.236/trunk@106705 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 21:07:51 +00:00
despotdaemon%netscape.com
42a480d172 Pseudo-automatic update of changes made by smeredith@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@106704 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 19:32:58 +00:00
sspitzer%netscape.com
549449ba49 backing out a jag's change. mLength on returnString is not correct, so doing returnString.Length()
cause problems, but strlen() works.  bienvenu's looking into why our string foo is doing that to mLength,
but this gets the tree open. sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106699 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 18:32:31 +00:00
mkaply%us.ibm.com
611a66c1c4 Stupid OS/2 breakage - bug has been opened with compiler folk
git-svn-id: svn://10.0.0.236/trunk@106697 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 17:39:31 +00:00
ian.mcgreer%sun.com
dce8a3b4fd fixes for testing word alignment
git-svn-id: svn://10.0.0.236/trunk@106696 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 16:03:43 +00:00
bzbarsky%mit.edu
a8a1992e09 Fix strict JS warnings in addressbook. Bug 107538, patch from James
Green <jg@cyberstorm.demon.co.uk>, r=hwaara, sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@106695 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:54:04 +00:00
ducarroz%netscape.com
38011f6783 Fix for bug 86089. Replace attachments string in message compose fields by an array of nsIMsgAttachment objects. This architecture change allow us to dissocie the attachment name from the attachment url. We can also now carry over extra information like the attachment content type or Mac file type. This check in contains also fix for related bug 52428, bug 80895, bug 87765 and bug 89090.
R=varada, SR=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106694 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:42:41 +00:00
rginda%netscape.com
157fee654b bug 99601, add filter support to js/jsd, r=jband sr=brendan
Use the new filtering api to allow users to safely debug with initAtStartup enabled.  Also adds highlighting to source view, saves stack view state, fixes selection problems in the outliners, cleans up some strict mode issues, and refactors menu and script tags out of venkman.xul


git-svn-id: svn://10.0.0.236/trunk@106693 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:27:10 +00:00
hwaara%chello.se
aeee16f55d #107094, "Error: mBlank is not defined".
Patch by Andrews <simm0@ii.net>

r=jag, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@106692 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:24:58 +00:00
nboyd%atg.com
8f7d722e97 Fix bug with test case:
var testArray = new Array(6);
testArray[1+1]+=2;


git-svn-id: svn://10.0.0.236/trunk@106691 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 14:06:58 +00:00
nboyd%atg.com
8d20f58b4f Hello Norris
The following test case case leads to a compilation error in Rhino. In this
script alert is an user defined
function in the global object and it shows the value of the specified
parameter in a popup window. Save the script as a html file and run it under
Netscape and IE. The output via their JS engines is that alert(1)
executes but the execution of line fails as blks variable is undefined. The
Fix bug:

Rhino engine fails at compilation time itself and cannot excute the script.
It doesn't like the syntax of line.


Steven


/// ****************  test case **************    ///
<script>
alert(1);
  blks[ 10 << 2 ] |= true;
  alert(2);
</script>


/// **********************  Error Message ************************** ////
evaluating script: null
java.lang.NullPointerException
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICode(Compiled Code)
  at org.mozilla.javascript.Interpreter.generateICodeFromTree(Compiled Code)
  at
org.mozilla.javascript.Interpreter.generateScriptICode(Interpreter.java)
  at org.mozilla.javascript.Interpreter.compile(Interpreter.java)
  at org.mozilla.javascript.Context.compile(Context.java)
  at org.mozilla.javascript.Context.compile(Context.java)


git-svn-id: svn://10.0.0.236/trunk@106690 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 13:55:26 +00:00
rginda%netscape.com
9dffd404bd bug 99601, add filter support to js/jsd, r=jband sr=brendan
large addition to the jsd_xpc component allows arbitrary filtering of debug hooks by url pattern, line range, and global object.  also adds ability to begin instrumenting jsscripts at app startup.


git-svn-id: svn://10.0.0.236/trunk@106689 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 13:41:32 +00:00
nboyd%atg.com
487a8a8072 Patch from Igor:
I must admit this is very subtitle, but still...

Here are the lines from
    public void defineProperty(String propertyName, Object delegateTo,
                               Method getter, Method setter, int attributes)


        GetterSlot slot = (GetterSlot)getSlotToSet(propertyName,
                                                   propertyName.hashCode(),
                                                   true);
        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 = (byte)flags;

Now suppose that after the new slot is added, another thread is accessing it. Then it would see not yet ready slot with all nasty consequences! For example,  SMP computer can re-arrange writes so the new value of slot.flags would be visible before slot.getter then another thread would generate null pointer exception.

race2_fix.diff fixes that by using the explicit Slot argument to addSlot instead of boolean flag so the new slot can be fully initialized and then inserted under synchronization to the table. I also call addSlot directly because it is supposed to be used with not-yet existed properties and split addSlot to addSlot and addSlotImpl so in case of table growth there is no need to re-enter already synchronized monitor.

This changes also allows to explicitly throw RuntimeException if defineProperty is called for the property that is already exists instead of either throwing cast exception in "GetterSlot slot = (GetterSlot)getSlotToSet(propertyName," or worth yet re-initializing already existed slot.

Regards, Igor


git-svn-id: svn://10.0.0.236/trunk@106688 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 13:07:00 +00:00
nboyd%atg.com
8d0d15ef9e Print either line or file name if either is present.
git-svn-id: svn://10.0.0.236/trunk@106687 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 12:59:30 +00:00
mkaply%us.ibm.com
cdde11a97a More reordering crap
git-svn-id: svn://10.0.0.236/trunk@106686 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 12:59:00 +00:00
ben%netscape.com
d51417dc21 add licenses. (not part of build)
git-svn-id: svn://10.0.0.236/trunk@106685 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 11:03:44 +00:00
ben%netscape.com
241c7e48ba 102477 - Download Manager
adding initial XUL & js files for window, basic listview/toolbar UI,
controllers etc.
NOT PART OF BUILD!


git-svn-id: svn://10.0.0.236/trunk@106684 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 11:02:56 +00:00
jst%netscape.com
e605f7d9da Fixing linux build bustage.
git-svn-id: svn://10.0.0.236/trunk@106683 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 10:24:55 +00:00
jst%netscape.com
76aa8c7050 added files: mozilla/content/html/content/src/nsHTMLSharedLeafElement.cpp, removed files: mozilla/content/html/content/src/nsHTMLBaseElement.cpp, mozilla/content/html/content/src/nsHTMLEmbedElement.cpp, mozilla/content/html/content/src/nsHTMLIsIndexElement.cpp, mozilla/content/html/content/src/nsHTMLParamElement.cpp, mozilla/content/html/content/src/nsHTMLSpacerElement.cpp, mozilla/content/html/content/src/nsHTMLTableColGroupElement.cpp, mozilla/content/html/content/src/nsHTMLWBRElement.cpp
git-svn-id: svn://10.0.0.236/trunk@106682 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 10:15:21 +00:00
jst%netscape.com
ac8fa2d5a5 Fixing part of bug 107453. Combine rarely used leaf element classes into one class to cut down on the amount of code we have for implementing all those dom interfaces. This makes using the combined elements (base, embed, isindex, param, spacer, colgroup, and wbr) a bit more expensive but since they're hardly ever used it's ok for them to take up a bit more heap space when used. r=dbaron@netscape.com, sr=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@106681 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 10:14:06 +00:00
jst%netscape.com
4aad4d442d Make the signature of nsHTMLDocument::FlushPendingNotifications() match nsIDocument::FlushPendingNotifications() so that callers of the interface method actually call the correct method. No bug. r=peterv@netscape.com, sr=rpotts@netscape.com. Problem found by jkeiser@iname.com
git-svn-id: svn://10.0.0.236/trunk@106680 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 09:58:07 +00:00
alecf%netscape.com
1467e1e8bc bump max string bundles in cache up to 16 from 10, since thats how many are created on startup
git-svn-id: svn://10.0.0.236/trunk@106678 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 08:48:49 +00:00
dbaron%fas.harvard.edu
b572449775 Fix HP bustage, I hope, by adding -L$(DIST)/lib.
git-svn-id: svn://10.0.0.236/trunk@106677 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 08:46:43 +00:00
dbaron%fas.harvard.edu
5eb9b7f619 Fix BeOS bustage by doing what bryner meant to. b=106208.
git-svn-id: svn://10.0.0.236/trunk@106676 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 08:36:21 +00:00
alecf%netscape.com
a0092293be oops this should be getService not createInstance
git-svn-id: svn://10.0.0.236/trunk@106673 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 08:03:08 +00:00
dbaron%fas.harvard.edu
32b4e50cec Fixing double parens.
git-svn-id: svn://10.0.0.236/trunk@106672 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 08:01:14 +00:00
dbaron%fas.harvard.edu
ae08cf8dcb ... and fixing one other typo.
git-svn-id: svn://10.0.0.236/trunk@106671 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 07:59:16 +00:00
dbaron%fas.harvard.edu
8b7ef70268 ... and converting to double-parens.
git-svn-id: svn://10.0.0.236/trunk@106670 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 07:58:02 +00:00
dbaron%fas.harvard.edu
1f80feae7f Fixing bustage by converting this to use PR-logging. I should've done a Windows build...
git-svn-id: svn://10.0.0.236/trunk@106669 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 07:40:57 +00:00
mcafee%netscape.com
07d49c6343 Adding support startup logging to server. r=jrgm
git-svn-id: svn://10.0.0.236/trunk@106668 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 07:34:34 +00:00
dbaron%fas.harvard.edu
fb67053a26 Removing remnants of warren's s/printf/PRINTF/ landing from the tree. b=94480 r=pavlov sr=darin
git-svn-id: svn://10.0.0.236/trunk@106666 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:57:09 +00:00
dbaron%fas.harvard.edu
a191239181 Remove nsLogging.cpp and nsILoggingService.cpp from the build.
git-svn-id: svn://10.0.0.236/trunk@106665 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:50:57 +00:00
dbaron%fas.harvard.edu
8497468430 Removing remnants of warren's s/printf/PRINTF/ landing from the tree. b=94480 r=pavlov sr=darin
git-svn-id: svn://10.0.0.236/trunk@106664 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:49:37 +00:00
dp%netscape.com
88fbbf69b9 bug 105935 Caching of canUnload to get mac plugin bundles to
work. r=peterlubczynski sr=waterson


git-svn-id: svn://10.0.0.236/trunk@106663 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:46:40 +00:00
ben%netscape.com
699644c468 107311 - Add new overlay/js files to jar manifest
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106662 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:46:36 +00:00
ben%netscape.com
572c599966 107311 - Add new overlay for adding editor items to mail, split js into separate file to share between editor/navigator overlays.
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106661 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:46:14 +00:00
ben%netscape.com
dcb37f0029 107311 - Add mail overlay information to contents.rdf
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106660 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:45:41 +00:00
ben%netscape.com
2910d55d13 107311 - rename global variable for consistency & interoperability with other context menu clients.
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106659 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:45:17 +00:00
ben%netscape.com
0df8e4a2a8 107311 - insert accidentally removed <![CDATA[ and add a null check just in case
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106658 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:44:24 +00:00
ben%netscape.com
4cdbd0af0c 107311 - make Mail Message Pane context window code not rely on menuitem visibility specified via style attribute, since this is now specified with the hidden attribute. Also remove unused parameter to fillMessagePaneContextMenu
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106657 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:43:56 +00:00
ben%netscape.com
c35f184eac 107311 - add null check
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106656 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:42:41 +00:00
ben%netscape.com
3b6e234339 107311 - add separator to context menu for apps to hook in relative to
r=jst, sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106655 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:42:21 +00:00
dbaron%fas.harvard.edu
e3cadbb4ce Avoid attempting to do CSS selector matching on text nodes, comments, or processing instructions by adding a 'NonElement' style resolution method that assumes that no rules match (temporarily, until we don't have style contexts for text nodes) and by cleaning code that was using textPseudo (the usual case) or passing the text node directly (only a few unusual cases). b=56117 r=hyatt sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@106650 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:36:06 +00:00
dbaron%fas.harvard.edu
aeb1ab18e4 Removing remnants of warren's s/printf/PRINTF/ landing from the tree. b=94480 r=pavlov sr=darin
git-svn-id: svn://10.0.0.236/trunk@106647 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:33:52 +00:00
dbaron%fas.harvard.edu
9029efb2b0 Replace static constructor of EmptyEnumeratorImpl with new/delete. b=68092 r=jag sr=waterson
git-svn-id: svn://10.0.0.236/trunk@106644 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:10:21 +00:00
bryner%netscape.com
582656069e Bug 106208 - don't build nsBaseFilePicker on platforms where we don't have a native filepicker implementation. Also, don't build the XUL filepicker on platforms where we _do_ use a native filepicker implementation. r=cls.
git-svn-id: svn://10.0.0.236/trunk@106643 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:10:01 +00:00
dbaron%fas.harvard.edu
069522c79e Prevent unreable text with light-on-dark system colors by using hardcoded black foreground color when on top of a background image that is light. b=103498 r=jag sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106642 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:05:58 +00:00
dbaron%fas.harvard.edu
39b72d7392 Make sure normal/bold weight distinction in thread pane works correctly when system fonts are bold. b=101981 r=jag sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106641 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:04:18 +00:00
dbaron%fas.harvard.edu
9b135c4afe Avoid attempting to do CSS selector matching on text nodes, comments, or processing instructions by adding a 'NonElement' style resolution method that assumes that no rules match (temporarily, until we don't have style contexts for text nodes) and by cleaning code that was using textPseudo (the usual case) or passing the text node directly (only a few unusual cases). b=56117 r=hyatt sr=attinasi
git-svn-id: svn://10.0.0.236/trunk@106640 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 06:02:05 +00:00
bryner%netscape.com
82f18832e5 Removing dead native filepicker implementation. r=pavlov, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@106639 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 05:49:23 +00:00
sspitzer%netscape.com
6f7b555a51 fix for #106917. strict js warnings from msgHdrViewOverlay.js r/sr=mscott
git-svn-id: svn://10.0.0.236/trunk@106638 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 05:47:25 +00:00
alecf%netscape.com
6ebb917688 Back out my backout, now that mac seems to be fixed
git-svn-id: svn://10.0.0.236/trunk@106633 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:39:18 +00:00
timeless%mac.com
f09c6040bb QNX port; adding requires to make it work.
git-svn-id: svn://10.0.0.236/trunk@106632 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:31:00 +00:00
timeless%mac.com
73a6aca77d Bugzilla Bug 99627 Freeze nsIURIContentListener
caused bustage for the QNX Port.


git-svn-id: svn://10.0.0.236/trunk@106631 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:28:59 +00:00
pschwartau%netscape.com
92afc7b20b Adding reference to another Bugzilla bug this testcase covers.
git-svn-id: svn://10.0.0.236/trunk@106630 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:28:15 +00:00
alecf%netscape.com
921a7bcf81 added unicharutilsstatic*.o to build for bug 100214
git-svn-id: svn://10.0.0.236/trunk@106629 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 03:17:12 +00:00
alecf%netscape.com
d764923a0d Back out my checkin because !(*@3 PSM is screwed.
git-svn-id: svn://10.0.0.236/trunk@106627 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 02:41:48 +00:00
brendan%mozilla.org
4b80be2931 Ensure atom strings are immutable -- duh! (107138, r=jag, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@106626 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 02:33:41 +00:00
dougt%netscape.com
cb69e3b965 not part of build
git-svn-id: svn://10.0.0.236/trunk@106625 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 02:11:57 +00:00
despotdaemon%netscape.com
3e40b31fcf Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@106613 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 01:14:45 +00:00
cls%seawood.org
8158d5c759 Removing xpcom dependency upon unicharutil.
Fixing tinderbox bustage.
Bug #100214 r=alecf


git-svn-id: svn://10.0.0.236/trunk@106611 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 01:11:04 +00:00
sspitzer%netscape.com
21e4531927 fix for #98559. implement sorting on about:config results, add color to about:config results,
clean up about:config xul and js.  r=chipc,sr=ben

wasting time on about:config is not a total waste, since it's an
implementation of nsIOutlinerView in js, and it's useful for QA (when debugging.)


git-svn-id: svn://10.0.0.236/trunk@106609 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 01:00:12 +00:00
despotdaemon%netscape.com
7df1016993 Pseudo-automatic update of changes made by curt@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@106606 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:38:04 +00:00
pschwartau%netscape.com
9d661386b7 Initial add. Regression test for bug 107138.
git-svn-id: svn://10.0.0.236/trunk@106604 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:20:03 +00:00
bienvenu%netscape.com
cd78059f57 check for null db folder info 107457 rs=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106602 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:09:35 +00:00
jst%netscape.com
914be99eef Call into baseclass if there's nothing to be done for a given tag. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@106600 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:07:56 +00:00
hyatt%netscape.com
cd68d72f41 SetParent in nsIFrame should not be inlined. r=evaughan, sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106598 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:01:39 +00:00
hwaara%chello.se
f714992ade #106739, make Quick Search look better integrated into 3pane
Initial fix by Ben Ruppel <slate@gwu.edu>.

r=andreww, sr=hewitt


git-svn-id: svn://10.0.0.236/trunk@106597 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-30 00:00:02 +00:00
alecf%netscape.com
345e7b6e33 bug 100214 - Remove string dependency on XPCOM routines that depend on unicharutil, r=jag sr=scc
git-svn-id: svn://10.0.0.236/trunk@106596 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:16:23 +00:00
alecf%netscape.com
7beecfbd9e more straggelers from bug 100214 - just adding #includes
git-svn-id: svn://10.0.0.236/trunk@106595 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:14:05 +00:00
morse%netscape.com
d30f76d8f6 bug 106866, unable to close password manager dialog by pressing OK, r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@106594 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:10:50 +00:00
morse%netscape.com
de8d7471d5 bug 106914, unable to close cookie/image manager dialog by pressing OK, r=jag, sr=alecf
git-svn-id: svn://10.0.0.236/trunk@106593 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 23:09:13 +00:00
seawood%netscape.com
579efebb0d Fixing internal MOZ_TWO_STRINGS_TEST macro so that it doesn't always use enableval to test option arguments
Bug #107055 r=jesup


git-svn-id: svn://10.0.0.236/trunk@106592 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:59:31 +00:00
gerv%gerv.net
476d18633b Change default license type. a=rginda. (Not part of the build.)
git-svn-id: svn://10.0.0.236/trunk@106591 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:48:07 +00:00
gerv%gerv.net
26caeefdf5 Removing deprecated license types. a=rginda. (Not part of the build.)
git-svn-id: svn://10.0.0.236/trunk@106590 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:46:46 +00:00
gerv%gerv.net
7c86934ac9 Add tri-license license type. a=rginda. (Not part of the build.)
git-svn-id: svn://10.0.0.236/trunk@106589 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:46:01 +00:00
bbaetz%cs.mcgill.ca
edb5d02fe0 Bug 107355 - fix crash when leaving root directory of an ftp server after
accessing another dir.
r=dougt, sr=scc.


git-svn-id: svn://10.0.0.236/trunk@106588 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:42:13 +00:00
jpierre%netscape.com
5a2f0d5fcb Fix for 105271
git-svn-id: svn://10.0.0.236/trunk@106587 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:42:12 +00:00
despotdaemon%netscape.com
63e8ac83b5 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@106586 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:23:35 +00:00
despotdaemon%netscape.com
298aaa42c6 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@106585 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:21:39 +00:00
dbradley%netscape.com
553ea0ca40 Bug 106671 - PLDHashTableEnumeratorImpl::IsDone will never return true, patch makes mCurrent == mCount the done condition. r=dougt, sr=jband
git-svn-id: svn://10.0.0.236/trunk@106584 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 22:08:42 +00:00
jpierre%netscape.com
d83e0ecde0 Fix for 105271 - rules.mk change for OS/2 build
git-svn-id: svn://10.0.0.236/trunk@106583 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 21:34:20 +00:00
colin%theblakes.com
5b956c24c7 This comment really goes with the last checkin whose comment I fat-fingered.
Add an initialiser to ImportCharSet::m_Ascii so that it becomes a strong
symbol and therefore visible to the OpenVMS linker.
b=90666  r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106574 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 21:14:11 +00:00
evaughan%netscape.com
001d863331 turning on grid
-r bryner -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@106570 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 20:20:36 +00:00
evaughan%netscape.com
d204280000 Turning on new grid code
-r bryner -sr hyatt


git-svn-id: svn://10.0.0.236/trunk@106568 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 20:12:07 +00:00
colin%theblakes.com
8cd2779009 ImportCharSet::m_AsciiImportCharSet.cpp
git-svn-id: svn://10.0.0.236/trunk@106566 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 20:07:56 +00:00
locka%iol.ie
61fa21541f NOT PART OF BUILD. New test pages
git-svn-id: svn://10.0.0.236/trunk@106565 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 20:03:03 +00:00
locka%iol.ie
b511a68a02 NOT PART OF BUILD. Stop a crash when no content type is specified at all
git-svn-id: svn://10.0.0.236/trunk@106564 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 20:02:01 +00:00
locka%iol.ie
e2dc152e07 NOT PART OF BUILD. More updates to get a working CAB file packaging and signing working for control for hosting plugins
git-svn-id: svn://10.0.0.236/trunk@106563 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:50:36 +00:00
bernd.mielke%snafu.de
010f750f2f bug 97630 cut line-height inheritance for tables in quirks mode
r=hixie,karnaze sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@106562 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:44:05 +00:00
depstein%netscape.com
25e89b0967 per bugzilla 106523, set PR_TRUE in observerService->AddObserver() for initializing profiles
git-svn-id: svn://10.0.0.236/trunk@106561 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:43:32 +00:00
brendan%mozilla.org
bc470f1b6b Consolidate property cache flush under JS_ClearScope (107265, r=shaver, sr=jband).
git-svn-id: svn://10.0.0.236/trunk@106560 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:30:03 +00:00
locka%iol.ie
39bbba1dc0 NOT PART OF BUILD. More updates to get a working CAB file packaging and signing working for control for hosting plugins
git-svn-id: svn://10.0.0.236/trunk@106559 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:22:19 +00:00
bernd.mielke%snafu.de
8e23bfe8f8 bug 107103 enable regression output for table printing tests
r=karnaze sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@106558 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 19:19:06 +00:00
mkaply%us.ibm.com
8f4261a45d OS/2 TB bustage - accidentally checked in wrong version
git-svn-id: svn://10.0.0.236/trunk@106557 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 17:57:08 +00:00
sspitzer%netscape.com
b9cd88e27a fix blocker bug #107334. undefined entity causes mailnews to crash.
working on the broken contenxt menus next, but the tree could open with that.
sr=shaver.


git-svn-id: svn://10.0.0.236/trunk@106556 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 17:38:57 +00:00
despotdaemon%netscape.com
4a90db0573 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@106554 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 16:30:13 +00:00
kaie%netscape.com
083f50ec8e b=106794 r=kaie,javi sr=blizzard
Fix to make "delete certificate" work again.


git-svn-id: svn://10.0.0.236/trunk@106553 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 15:43:20 +00:00
leaf%mozilla.org
1304681475 Automated update
git-svn-id: svn://10.0.0.236/trunk@106552 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 15:43:11 +00:00
dinglis%qnx.com
ed7cdb8957 QNX6 configure update
r=cls


git-svn-id: svn://10.0.0.236/trunk@106551 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 15:35:44 +00:00
rods%netscape.com
9681a58c7e Make sure default printing for FrameSets is "AsIs" when printing silently
Bug 106015 r=kmcclusk sr=attinasi


git-svn-id: svn://10.0.0.236/trunk@106550 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 15:28:45 +00:00
dinglis%qnx.com
c58eac94f2 fixed lib deps.
git-svn-id: svn://10.0.0.236/trunk@106549 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 15:17:44 +00:00
mkaply%us.ibm.com
b435496262 #107261
r=mkaply, sr=blizzard (Totally OS/2 only change)
OS/2 only - If creating the Unicode locale fails, just use en_US - this always works
Also fix a possible failure case only leak


git-svn-id: svn://10.0.0.236/trunk@106548 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 14:40:41 +00:00
mkaply%us.ibm.com
9591f00f2c #107261
r=mkaply, sr=blizzard
If creating the Unicode locale fails, just use en_US - this always works


git-svn-id: svn://10.0.0.236/trunk@106547 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 14:38:48 +00:00
mkaply%us.ibm.com
fa20cbc9e0 #107296
r=cls
Use SHARED_LIBRARY_LIBS so that dependent building works correctly


git-svn-id: svn://10.0.0.236/trunk@106546 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 14:31:33 +00:00
dinglis%qnx.com
17e3ef8259 Not part of build
Photon embedding update


git-svn-id: svn://10.0.0.236/trunk@106544 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 14:17:16 +00:00
ben%netscape.com
5c0e5bb51d 103064 - add Send Page/Link to browser context menu. Shifting XUL into this file
& parameterizing functions a little better so that they can be re-used more
efficiently. r=pchen, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@106541 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:15:18 +00:00
ben%netscape.com
e0bf4a1f56 103064 - hook up new dynamic overlay via contents.rdf r=pchen, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@106540 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:11:14 +00:00
ben%netscape.com
43b63d102d 103064 - add new dynamic overlay & string file to jar manifest. r=pchen, sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@106539 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:10:47 +00:00
ben%netscape.com
76c01e7ced 103064 - add "Edit Page/Link" to Navigator context menu via new editor dynamic overlay. This is
the string file for the dynamic overlay. r=pchen, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@106538 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:10:12 +00:00
ben%netscape.com
c6c35465b4 103064 - add "Edit Page/Link" to Navigator context menu via dynamic overlay (this file is
the new editor dynamic overlay for adding UI to Navigator).
from Navigator. r=pchen, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@106537 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:09:41 +00:00
ben%netscape.com
18b4464e5f 103064 - add "Edit Page/Link" and "Send Page/Link" to Navigator context menu.
Also includes some code tidy up, simplify show/hide code, removing editor UI dependencies
from Navigator. r=pchen, sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@106536 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 10:08:26 +00:00
jaggernaut%netscape.com
a1a8efe1c8 Bug 101896: check in "fix" for weird WS6 (static build) bustage. patch by gisburn <Roland.Mainz@informatik.med.uni-giessen.de>, r=jag
git-svn-id: svn://10.0.0.236/trunk@106535 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 09:32:03 +00:00
jaggernaut%netscape.com
e4b4c0231a Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106534 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 09:27:57 +00:00
jaggernaut%netscape.com
20333c98e2 Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106533 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 09:12:39 +00:00
leaf%mozilla.org
a1a1fd2080 Automated update
git-svn-id: svn://10.0.0.236/trunk@106531 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 07:43:12 +00:00
seawood%netscape.com
2f420d8afd Putting darwin platform section in proper place
git-svn-id: svn://10.0.0.236/trunk@106530 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 07:28:45 +00:00
seawood%netscape.com
d304c093d0 split xpidl into seperate module
git-svn-id: svn://10.0.0.236/trunk@106529 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 06:32:18 +00:00
rpotts%netscape.com
5befed23d6 bug #107097 - back/foward do not work!
git-svn-id: svn://10.0.0.236/trunk@106528 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 06:03:27 +00:00
gerv%gerv.net
87fff34258 Fix Hypertext -> HyperText. Bug 91077. Patch by evilbeaver@tekscode.com , r=gerv,dean_tessman. sr=brendan (string-only changes.)
git-svn-id: svn://10.0.0.236/trunk@106527 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 05:25:03 +00:00
seawood%netscape.com
f7364a1682 Do an exact match
git-svn-id: svn://10.0.0.236/trunk@106526 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 04:48:55 +00:00
bryner%netscape.com
73d57b769c Removing dead/obsolete file. r=pavlov, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@106525 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 04:43:12 +00:00
karnaze%netscape.com
4ff0e5cecb bug 103925 - general reflow debugging capability. sr=attinasi, r=alexsavulov
git-svn-id: svn://10.0.0.236/trunk@106524 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-29 01:43:59 +00:00
bbaetz%cs.mcgill.ca
05fc5ed6d6 bug 92892. Remove DOM Viewer from the debug menu, since its confusing
people, and isn't even in the tree any more.
r=bz, sr=darin


git-svn-id: svn://10.0.0.236/trunk@106523 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 23:46:17 +00:00
brendan%mozilla.org
f5e80ade8f Followup to bug 56940's big patch, tighten GC-mark case analysis, assume atom strings are immutable.
git-svn-id: svn://10.0.0.236/trunk@106522 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 22:37:25 +00:00
bryner%netscape.com
2b8302efc9 Fixing uninitialized variable. Bug 107262, r=bbaetz, sr=darin.
git-svn-id: svn://10.0.0.236/trunk@106521 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 22:30:30 +00:00
mkaply%us.ibm.com
fe491e5e88 More crap
git-svn-id: svn://10.0.0.236/trunk@106520 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 21:59:04 +00:00
mkaply%us.ibm.com
ca87d182ff Man I feel silly checking this crap in. Breaks on my machine, not the TB. Same problem
git-svn-id: svn://10.0.0.236/trunk@106519 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 21:55:32 +00:00
mkaply%us.ibm.com
88a869aeaf I don't know why this isn't breaking the tb. more reordering
git-svn-id: svn://10.0.0.236/trunk@106518 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 21:25:46 +00:00
dbaron%fas.harvard.edu
98e23443a4 Fix -O2 optimization crash with gcc 2.96 or 3.0.{1,2} by not inlining |#ifdef __GNUC__|. b=106891 r=pavlov sr=brendan
git-svn-id: svn://10.0.0.236/trunk@106517 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 21:02:05 +00:00
brendan%mozilla.org
8dc3d47fd7 Ensure proper pointer alignment in oversized arena footers (105726, r/sr=jband,shaver).
git-svn-id: svn://10.0.0.236/trunk@106516 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 20:41:53 +00:00
bienvenu%netscape.com
91836d1e86 add support for sorting by label r=bhuvan, sr=sspitzer 106717
git-svn-id: svn://10.0.0.236/trunk@106515 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 20:26:59 +00:00
bienvenu%netscape.com
35f98f686b fix for topcrash in morkRowObject::closerow r=naving, sr=sspitzer
git-svn-id: svn://10.0.0.236/trunk@106514 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 20:25:12 +00:00
mkaply%us.ibm.com
cb63f542c1 Strange - this one builds on the TB but fails locally, one more ugly link order change
git-svn-id: svn://10.0.0.236/trunk@106513 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 16:16:38 +00:00
locka%iol.ie
a44ab92537 NOT PART OF BUILD. First cut packaging script for creating a control for hosting plugins IE CAB file.
git-svn-id: svn://10.0.0.236/trunk@106512 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 15:50:09 +00:00
locka%iol.ie
52a165425a NOT PART OF BUILD. First cut packaging script for creating a control for hosting plugins IE CAB file.
git-svn-id: svn://10.0.0.236/trunk@106511 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 15:40:45 +00:00
beard%netscape.com
95bf572e60 Fixing Carbon bustage: peterv's fix wasn't correct, seawood's checkin shouldn't have turned off opening the resource fork on TARGET_CARBON, only on XP_MACOSX.
git-svn-id: svn://10.0.0.236/trunk@106510 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 15:15:32 +00:00
jaggernaut%netscape.com
14b3d540ed Bug 106622: create profile wizard's first page is blank. Some stuff was accidentily removed recently, putting it back in. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106509 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 10:38:28 +00:00
sspitzer%netscape.com
a784f63b5d fix for #75611. the Message | Mark menu item is supposed to have a seperator between it and the
"Ignore Thread" menu item when reading a news message.
fix by andreas.premstaller@uibk.ac.at, r/sr=sspitzer


git-svn-id: svn://10.0.0.236/trunk@106508 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 10:00:56 +00:00
andreas.otte%primus-online.de
2bff3cee38 fix bug 84242 [FTP URL parsing broken] and bug 95277 [ftp: URL w/o path
should redirect to home dir] This will change the way we parse ftp
urls, a ftp url like ftp://user@host/path will go to path under
the users home directory not the root directory. With most anonymous
ftp servers there is no change since root is the home, but if you want
to access /path from a users directory you have to use
ftp://user@host//path instead. This will bring us closer to the ftp
urls outlined in rfc 1738. r=bbaetzcs.@mcgill.ca,
sr=darin@netscape.com


git-svn-id: svn://10.0.0.236/trunk@106507 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 08:58:18 +00:00
jaggernaut%netscape.com
ff4abec1dd Bug 53057: Fixing up users of implicit |CharT*| conversion operators for nsCString to use |.get()| instead, rr=dbaron, rs=scc
git-svn-id: svn://10.0.0.236/trunk@106506 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 08:33:51 +00:00
jaggernaut%netscape.com
fbfa1c9edc Bug 70083: add nsASingleFragmentString to hierarchy. r=dbaron, sr=scc
git-svn-id: svn://10.0.0.236/trunk@106505 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 08:24:55 +00:00
jaggernaut%netscape.com
4e12eb6e14 Fix spelling of "isContentPrefered" parameter. sr=hewitt
git-svn-id: svn://10.0.0.236/trunk@106504 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 07:36:09 +00:00
beard%netscape.com
5a7716207f fix mach-o bustage: to cope with header skew between Mac OS X headers and Universal headers, use explicit cast to AEEventHandlerProcPtr.
git-svn-id: svn://10.0.0.236/trunk@106503 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 04:30:35 +00:00
sspitzer%netscape.com
35cdb5ca19 fix for #57756. when clicking on a link in the addressbook card page, it should
open up a new window, or use and existing browser window.
also, the links should look and act like links.
initial patch by jessica blanco (jblanco@us.ibm.com), r=racham, sr=sspitzer,bienvenu


git-svn-id: svn://10.0.0.236/trunk@106502 18797224-902f-48f8-a5cc-f745e15eee43
2001-10-28 04:21:46 +00:00
23812 changed files with 5458704 additions and 106011 deletions

43
mozilla/LEGAL Normal file
View File

@@ -0,0 +1,43 @@
Please be apprised of the following Legal Notices:
A) The U.S. District Court for the Eastern District of Virginia has
ruled that the Netscape Navigator code does not infringe Wang's U.S.
Patent No. 4,751,669 ("the '669 Patent") because: 1) HTML is not
Videotex as defined by the '669 patent; 2) web servers are not central
suppliers; and 3) Navigator does not "connect," as defined by the '669
Patent, to web servers on the Internet. Wang may appeal this decision to
the Federal Circuit. Wang contended that its Patent disclosing a
"Videotext" system, is infringed by the following functionality in the
Netscape Navigator code: 1) the animated logo and status line indicators
--See Claims 1,8 and 9; 2) the "File Save As" function --See Claims
23-27; 3) Bookmarks and Rename Bookmarks in the Properties window --See
Claims 20-22; 4) storing HTML, GIF, and JPEG files and adding filename
extensions --See Claim 38
B) Intermind owns pending U.S. patent applications on communications
systems which employ metadata ("channel objects") to define a control
structure for information transfer. The Netscape code does not infringe
as released; however, modifications which utilize channel objects as
described by Intermind should be considered carefully. The following is
a statement from Intermind: "Intermind's claims fundamentally involve
the use of a control structure to automate communications. ...The
essence of Intermind's top claim is that two devices sender and
receiver have persistent storage, communicate over a network,
and exchange a control structure including metadata which describes: 1)
what information is to be updated, 2) when to update this information,
and 3) how to transfer the updated information. In addition, at least
the receiving device must be able to process the metadata in order to
perform the update determination and transfer. Any digital
communications system which incorporates all of these elements will be
covered by Intermind's patents." See Intermind.com.
C) Stac, Inc., and its licensing agent Hi/fn, own several patents which
disclose data compression methods implementing an LZS compression
algorithm, including U.S. Patent Nos. 4,701,745 and 5,016, 009 ("the
Stac Patents"). The Netscape Communicator code does not perform
compression. If you modify the Netscape source code to perform
compression, please take notice of the Stac Patents.
D) Netscape Communications Corporation ("Netscape") does not guarantee
that any source code or executable code available from the mozilla.org
domain is Year 2000 compliant.

567
mozilla/LICENSE Normal file
View File

@@ -0,0 +1,567 @@
MOZILLA PUBLIC LICENSE
Version 1.1
---------------
1. Definitions.
1.0.1. "Commercial Use" means distribution or otherwise making the
Covered Code available to a third party.
1.1. "Contributor" means each entity that creates or contributes to
the creation of Modifications.
1.2. "Contributor Version" means the combination of the Original
Code, prior Modifications used by a Contributor, and the Modifications
made by that particular Contributor.
1.3. "Covered Code" means the Original Code or Modifications or the
combination of the Original Code and Modifications, in each case
including portions thereof.
1.4. "Electronic Distribution Mechanism" means a mechanism generally
accepted in the software development community for the electronic
transfer of data.
1.5. "Executable" means Covered Code in any form other than Source
Code.
1.6. "Initial Developer" means the individual or entity identified
as the Initial Developer in the Source Code notice required by Exhibit
A.
1.7. "Larger Work" means a work which combines Covered Code or
portions thereof with code not governed by the terms of this License.
1.8. "License" means this document.
1.8.1. "Licensable" means having the right to grant, to the maximum
extent possible, whether at the time of the initial grant or
subsequently acquired, any and all of the rights conveyed herein.
1.9. "Modifications" means any addition to or deletion from the
substance or structure of either the Original Code or any previous
Modifications. When Covered Code is released as a series of files, a
Modification is:
A. Any addition to or deletion from the contents of a file
containing Original Code or previous Modifications.
B. Any new file that contains any part of the Original Code or
previous Modifications.
1.10. "Original Code" means Source Code of computer software code
which is described in the Source Code notice required by Exhibit A as
Original Code, and which, at the time of its release under this
License is not already Covered Code governed by this License.
1.10.1. "Patent Claims" means any patent claim(s), now owned or
hereafter acquired, including without limitation, method, process,
and apparatus claims, in any patent Licensable by grantor.
1.11. "Source Code" means the preferred form of the Covered Code for
making modifications to it, including all modules it contains, plus
any associated interface definition files, scripts used to control
compilation and installation of an Executable, or source code
differential comparisons against either the Original Code or another
well known, available Covered Code of the Contributor's choice. The
Source Code can be in a compressed or archival form, provided the
appropriate decompression or de-archiving software is widely available
for no charge.
1.12. "You" (or "Your") means an individual or a legal entity
exercising rights under, and complying with all of the terms of, this
License or a future version of this License issued under Section 6.1.
For legal entities, "You" includes any entity which controls, is
controlled by, or is under common control with You. For purposes of
this definition, "control" means (a) the power, direct or indirect,
to cause the direction or management of such entity, whether by
contract or otherwise, or (b) ownership of more than fifty percent
(50%) of the outstanding shares or beneficial ownership of such
entity.
2. Source Code License.
2.1. The Initial Developer Grant.
The Initial Developer hereby grants You a world-wide, royalty-free,
non-exclusive license, subject to third party intellectual property
claims:
(a) under intellectual property rights (other than patent or
trademark) Licensable by Initial Developer to use, reproduce,
modify, display, perform, sublicense and distribute the Original
Code (or portions thereof) with or without Modifications, and/or
as part of a Larger Work; and
(b) under Patents Claims infringed by the making, using or
selling of Original Code, to make, have made, use, practice,
sell, and offer for sale, and/or otherwise dispose of the
Original Code (or portions thereof).
(c) the licenses granted in this Section 2.1(a) and (b) are
effective on the date Initial Developer first distributes
Original Code under the terms of this License.
(d) Notwithstanding Section 2.1(b) above, no patent license is
granted: 1) for code that You delete from the Original Code; 2)
separate from the Original Code; or 3) for infringements caused
by: i) the modification of the Original Code or ii) the
combination of the Original Code with other software or devices.
2.2. Contributor Grant.
Subject to third party intellectual property claims, each Contributor
hereby grants You a world-wide, royalty-free, non-exclusive license
(a) under intellectual property rights (other than patent or
trademark) Licensable by Contributor, to use, reproduce, modify,
display, perform, sublicense and distribute the Modifications
created by such Contributor (or portions thereof) either on an
unmodified basis, with other Modifications, as Covered Code
and/or as part of a Larger Work; and
(b) under Patent Claims infringed by the making, using, or
selling of Modifications made by that Contributor either alone
and/or in combination with its Contributor Version (or portions
of such combination), to make, use, sell, offer for sale, have
made, and/or otherwise dispose of: 1) Modifications made by that
Contributor (or portions thereof); and 2) the combination of
Modifications made by that Contributor with its Contributor
Version (or portions of such combination).
(c) the licenses granted in Sections 2.2(a) and 2.2(b) are
effective on the date Contributor first makes Commercial Use of
the Covered Code.
(d) Notwithstanding Section 2.2(b) above, no patent license is
granted: 1) for any code that Contributor has deleted from the
Contributor Version; 2) separate from the Contributor Version;
3) for infringements caused by: i) third party modifications of
Contributor Version or ii) the combination of Modifications made
by that Contributor with other software (except as part of the
Contributor Version) or other devices; or 4) under Patent Claims
infringed by Covered Code in the absence of Modifications made by
that Contributor.
3. Distribution Obligations.
3.1. Application of License.
The Modifications which You create or to which You contribute are
governed by the terms of this License, including without limitation
Section 2.2. The Source Code version of Covered Code may be
distributed only under the terms of this License or a future version
of this License released under Section 6.1, and You must include a
copy of this License with every copy of the Source Code You
distribute. You may not offer or impose any terms on any Source Code
version that alters or restricts the applicable version of this
License or the recipients' rights hereunder. However, You may include
an additional document offering the additional rights described in
Section 3.5.
3.2. Availability of Source Code.
Any Modification which You create or to which You contribute must be
made available in Source Code form under the terms of this License
either on the same media as an Executable version or via an accepted
Electronic Distribution Mechanism to anyone to whom you made an
Executable version available; and if made available via Electronic
Distribution Mechanism, must remain available for at least twelve (12)
months after the date it initially became available, or at least six
(6) months after a subsequent version of that particular Modification
has been made available to such recipients. You are responsible for
ensuring that the Source Code version remains available even if the
Electronic Distribution Mechanism is maintained by a third party.
3.3. Description of Modifications.
You must cause all Covered Code to which You contribute to contain a
file documenting the changes You made to create that Covered Code and
the date of any change. You must include a prominent statement that
the Modification is derived, directly or indirectly, from Original
Code provided by the Initial Developer and including the name of the
Initial Developer in (a) the Source Code, and (b) in any notice in an
Executable version or related documentation in which You describe the
origin or ownership of the Covered Code.
3.4. Intellectual Property Matters
(a) Third Party Claims.
If Contributor has knowledge that a license under a third party's
intellectual property rights is required to exercise the rights
granted by such Contributor under Sections 2.1 or 2.2,
Contributor must include a text file with the Source Code
distribution titled "LEGAL" which describes the claim and the
party making the claim in sufficient detail that a recipient will
know whom to contact. If Contributor obtains such knowledge after
the Modification is made available as described in Section 3.2,
Contributor shall promptly modify the LEGAL file in all copies
Contributor makes available thereafter and shall take other steps
(such as notifying appropriate mailing lists or newsgroups)
reasonably calculated to inform those who received the Covered
Code that new knowledge has been obtained.
(b) Contributor APIs.
If Contributor's Modifications include an application programming
interface and Contributor has knowledge of patent licenses which
are reasonably necessary to implement that API, Contributor must
also include this information in the LEGAL file.
(c) Representations.
Contributor represents that, except as disclosed pursuant to
Section 3.4(a) above, Contributor believes that Contributor's
Modifications are Contributor's original creation(s) and/or
Contributor has sufficient rights to grant the rights conveyed by
this License.
3.5. Required Notices.
You must duplicate the notice in Exhibit A in each file of the Source
Code. If it is not possible to put such notice in a particular Source
Code file due to its structure, then You must include such notice in a
location (such as a relevant directory) where a user would be likely
to look for such a notice. If You created one or more Modification(s)
You may add your name as a Contributor to the notice described in
Exhibit A. You must also duplicate this License in any documentation
for the Source Code where You describe recipients' rights or ownership
rights relating to Covered Code. You may choose to offer, and to
charge a fee for, warranty, support, indemnity or liability
obligations to one or more recipients of Covered Code. However, You
may do so only on Your own behalf, and not on behalf of the Initial
Developer or any Contributor. You must make it absolutely clear than
any such warranty, support, indemnity or liability obligation is
offered by You alone, and You hereby agree to indemnify the Initial
Developer and every Contributor for any liability incurred by the
Initial Developer or such Contributor as a result of warranty,
support, indemnity or liability terms You offer.
3.6. Distribution of Executable Versions.
You may distribute Covered Code in Executable form only if the
requirements of Section 3.1-3.5 have been met for that Covered Code,
and if You include a notice stating that the Source Code version of
the Covered Code is available under the terms of this License,
including a description of how and where You have fulfilled the
obligations of Section 3.2. The notice must be conspicuously included
in any notice in an Executable version, related documentation or
collateral in which You describe recipients' rights relating to the
Covered Code. You may distribute the Executable version of Covered
Code or ownership rights under a license of Your choice, which may
contain terms different from this License, provided that You are in
compliance with the terms of this License and that the license for the
Executable version does not attempt to limit or alter the recipient's
rights in the Source Code version from the rights set forth in this
License. If You distribute the Executable version under a different
license You must make it absolutely clear that any terms which differ
from this License are offered by You alone, not by the Initial
Developer or any Contributor. You hereby agree to indemnify the
Initial Developer and every Contributor for any liability incurred by
the Initial Developer or such Contributor as a result of any such
terms You offer.
3.7. Larger Works.
You may create a Larger Work by combining Covered Code with other code
not governed by the terms of this License and distribute the Larger
Work as a single product. In such a case, You must make sure the
requirements of this License are fulfilled for the Covered Code.
4. Inability to Comply Due to Statute or Regulation.
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Code due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description
must be included in the LEGAL file described in Section 3.4 and must
be included with all distributions of the Source Code. Except to the
extent prohibited by statute or regulation, such description must be
sufficiently detailed for a recipient of ordinary skill to be able to
understand it.
5. Application of this License.
This License applies to code to which the Initial Developer has
attached the notice in Exhibit A and to related Covered Code.
6. Versions of the License.
6.1. New Versions.
Netscape Communications Corporation ("Netscape") may publish revised
and/or new versions of the License from time to time. Each version
will be given a distinguishing version number.
6.2. Effect of New Versions.
Once Covered Code has been published under a particular version of the
License, You may always continue to use it under the terms of that
version. You may also choose to use such Covered Code under the terms
of any subsequent version of the License published by Netscape. No one
other than Netscape has the right to modify the terms applicable to
Covered Code created under this License.
6.3. Derivative Works.
If You create or use a modified version of this License (which you may
only do in order to apply it to code which is not already Covered Code
governed by this License), You must (a) rename Your license so that
the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape",
"MPL", "NPL" or any confusingly similar phrase do not appear in your
license (except to note that your license differs from this License)
and (b) otherwise make it clear that Your version of the license
contains terms which differ from the Mozilla Public License and
Netscape Public License. (Filling in the name of the Initial
Developer, Original Code or Contributor in the notice described in
Exhibit A shall not of themselves be deemed to be modifications of
this License.)
7. DISCLAIMER OF WARRANTY.
COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF
DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING.
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE
IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT,
YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE
COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER
OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF
ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER.
8. TERMINATION.
8.1. This License and the rights granted hereunder will terminate
automatically if You fail to comply with terms herein and fail to cure
such breach within 30 days of becoming aware of the breach. All
sublicenses to the Covered Code which are properly granted shall
survive any termination of this License. Provisions which, by their
nature, must remain in effect beyond the termination of this License
shall survive.
8.2. If You initiate litigation by asserting a patent infringement
claim (excluding declatory judgment actions) against Initial Developer
or a Contributor (the Initial Developer or Contributor against whom
You file such action is referred to as "Participant") alleging that:
(a) such Participant's Contributor Version directly or indirectly
infringes any patent, then any and all rights granted by such
Participant to You under Sections 2.1 and/or 2.2 of this License
shall, upon 60 days notice from Participant terminate prospectively,
unless if within 60 days after receipt of notice You either: (i)
agree in writing to pay Participant a mutually agreeable reasonable
royalty for Your past and future use of Modifications made by such
Participant, or (ii) withdraw Your litigation claim with respect to
the Contributor Version against such Participant. If within 60 days
of notice, a reasonable royalty and payment arrangement are not
mutually agreed upon in writing by the parties or the litigation claim
is not withdrawn, the rights granted by Participant to You under
Sections 2.1 and/or 2.2 automatically terminate at the expiration of
the 60 day notice period specified above.
(b) any software, hardware, or device, other than such Participant's
Contributor Version, directly or indirectly infringes any patent, then
any rights granted to You by such Participant under Sections 2.1(b)
and 2.2(b) are revoked effective as of the date You first made, used,
sold, distributed, or had made, Modifications made by that
Participant.
8.3. If You assert a patent infringement claim against Participant
alleging that such Participant's Contributor Version directly or
indirectly infringes any patent where such claim is resolved (such as
by license or settlement) prior to the initiation of patent
infringement litigation, then the reasonable value of the licenses
granted by such Participant under Sections 2.1 or 2.2 shall be taken
into account in determining the amount or value of any payment or
license.
8.4. In the event of termination under Sections 8.1 or 8.2 above,
all end user license agreements (excluding distributors and resellers)
which have been validly granted by You or any distributor hereunder
prior to termination shall survive termination.
9. LIMITATION OF LIABILITY.
UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT
(INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL
DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE,
OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR
ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY
CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL,
WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER
COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN
INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF
LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY
RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW
PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE
EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO
THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU.
10. U.S. GOVERNMENT END USERS.
The Covered Code is a "commercial item," as that term is defined in
48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer
software" and "commercial computer software documentation," as such
terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48
C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995),
all U.S. Government End Users acquire Covered Code with only those
rights set forth herein.
11. MISCELLANEOUS.
This License represents the complete agreement concerning subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. This License shall be governed by
California law provisions (except to the extent applicable law, if
any, provides otherwise), excluding its conflict-of-law provisions.
With respect to disputes in which at least one party is a citizen of,
or an entity chartered or registered to do business in the United
States of America, any litigation relating to this License shall be
subject to the jurisdiction of the Federal Courts of the Northern
District of California, with venue lying in Santa Clara County,
California, with the losing party responsible for costs, including
without limitation, court costs and reasonable attorneys' fees and
expenses. The application of the United Nations Convention on
Contracts for the International Sale of Goods is expressly excluded.
Any law or regulation which provides that the language of a contract
shall be construed against the drafter shall not apply to this
License.
12. RESPONSIBILITY FOR CLAIMS.
As between Initial Developer and the Contributors, each party is
responsible for claims and damages arising, directly or indirectly,
out of its utilization of rights under this License and You agree to
work with Initial Developer and Contributors to distribute such
responsibility on an equitable basis. Nothing herein is intended or
shall be deemed to constitute any admission of liability.
13. MULTIPLE-LICENSED CODE.
Initial Developer may designate portions of the Covered Code as
"Multiple-Licensed". "Multiple-Licensed" means that the Initial
Developer permits you to utilize portions of the Covered Code under
Your choice of the NPL or the alternative licenses, if any, specified
by the Initial Developer in the file described in Exhibit A.
EXHIBIT A -Mozilla Public License.
``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 Initial Developer of the Original Code is ________________________.
Portions created by ______________________ are Copyright (C) ______
_______________________. All Rights Reserved.
Contributor(s): ______________________________________.
Alternatively, the contents of this file may be used under the terms
of the _____ license (the "[___] License"), in which case the
provisions of [______] License are applicable instead of those
above. If you wish to allow use of your version of this file only
under the terms of the [____] License and not to allow others to use
your version of this file under the MPL, indicate your decision by
deleting the provisions above and replace them with the notice and
other provisions required by the [___] License. If you do not delete
the provisions above, a recipient may use your version of this file
under either the MPL or the [___] License."
[NOTE: The text of this Exhibit A may differ slightly from the text of
the notices in the Source Code files of the Original Code. You should
use the text of this Exhibit A rather than the text found in the
Original Code Source Code for Your Modifications.]
----------------------------------------------------------------------
AMENDMENTS
The Netscape Public License Version 1.1 ("NPL") consists of the
Mozilla Public License Version 1.1 with the following Amendments,
including Exhibit A-Netscape Public License. Files identified with
"Exhibit A-Netscape Public License" are governed by the Netscape
Public License Version 1.1.
Additional Terms applicable to the Netscape Public License.
I. Effect.
These additional terms described in this Netscape Public
License -- Amendments shall apply to the Mozilla Communicator
client code and to all Covered Code under this License.
II. "Netscape's Branded Code" means Covered Code that Netscape
distributes and/or permits others to distribute under one or more
trademark(s) which are controlled by Netscape but which are not
licensed for use under this License.
III. Netscape and logo.
This License does not grant any rights to use the trademarks
"Netscape", the "Netscape N and horizon" logo or the "Netscape
lighthouse" logo, "Netcenter", "Gecko", "Java" or "JavaScript",
"Smart Browsing" even if such marks are included in the Original
Code or Modifications.
IV. Inability to Comply Due to Contractual Obligation.
Prior to licensing the Original Code under this License, Netscape
has licensed third party code for use in Netscape's Branded Code.
To the extent that Netscape is limited contractually from making
such third party code available under this License, Netscape may
choose to reintegrate such code into Covered Code without being
required to distribute such code in Source Code form, even if
such code would otherwise be considered "Modifications" under
this License.
V. Use of Modifications and Covered Code by Initial Developer.
V.1. In General.
The obligations of Section 3 apply to Netscape, except to
the extent specified in this Amendment, Section V.2 and V.3.
V.2. Other Products.
Netscape may include Covered Code in products other than the
Netscape's Branded Code which are released by Netscape
during the two (2) years following the release date of the
Original Code, without such additional products becoming
subject to the terms of this License, and may license such
additional products on different terms from those contained
in this License.
V.3. Alternative Licensing.
Netscape may license the Source Code of Netscape's Branded
Code, including Modifications incorporated therein, without
such Netscape Branded Code becoming subject to the terms of
this License, and may license such Netscape Branded Code on
different terms from those contained in this License.
VI. Litigation.
Notwithstanding the limitations of Section 11 above, the
provisions regarding litigation in Section 11(a), (b) and (c) of
the License shall apply to all disputes relating to this License.
EXHIBIT A-Netscape Public License.
"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 Communicator client code, released
March 31, 1998.
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): ______________________________________.
Alternatively, the contents of this file may be used under the
terms of the _____ license (the "[___] License"), in which case
the provisions of [______] License are applicable instead of
those above. If you wish to allow use of your version of this
file only under the terms of the [____] License 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 [___]
License. If you do not delete the provisions above, a recipient
may use your version of this file under either the NPL or the
[___] License."

276
mozilla/Makefile.in Normal file
View File

@@ -0,0 +1,276 @@
#
# 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)/build/unix/modules.mk
ifneq ($(BUILD_MODULES),all)
DIRS = $(BUILD_MODULE_DIRS)
EXPORT_DIRS = $(BUILD_MODULE_DEP_DIRS)
else
#
# And now for something completely different...
# Divide the default build into tiers.
# Tiers must be defined on module boundaries
#
default: $(SUBMAKEFILES)
$(MAKE) nspr
$(MAKE) tier_0
ifdef MOZ_LDAP_XPCOM
# Call each of ldap's stages individually since
# its default target isn't -j safe
$(MAKE) -C directory/c-sdk/ldap export
$(MAKE) -C directory/c-sdk/ldap install
endif
$(MAKE) tier_1
$(MAKE) tier_9
# Make sure that the existing rulesets work
DIRS = $(NSPRPUB_DIR) $(tier_0_dirs) $(tier_1_dirs) $(tier_9_dirs)
ifdef MOZ_LDAP_XPCOM
DIRS += directory/c-sdk/ldap
endif
#
# tier 0 - base build config dirs
#
tier_0_dirs = \
config \
build \
include \
$(NULL)
#
# tier 1 - base libraries
#
tier_1_dirs = js
# MacOSX needs to build lib for MoreFiles before xpcom
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
tier_1_dirs += lib/mac/MoreFiles
endif
# intl should not be in here - it's just temporary until
# xpconnect's dependency on intl is repaired - see bug 106130
tier_9_dirs += \
modules/libreg \
string \
xpcom \
intl \
$(NULL)
ifndef MOZ_NATIVE_ZLIB
tier_9_dirs += modules/zlib
endif
# Linux and Solaris installer needs standalone libjar, hence standalone zlib
ifneq (,$(filter Linux SunOS,$(OS_ARCH)))
tier_9_dirs += modules/zlib/standalone
endif
tier_9_dirs += \
modules/libjar \
$(NULL)
#
# tier 9 - mozilla application
#
ifdef MOZ_JAVA_SUPPLEMENT
tier_9_dirs += \
java/util \
java/webclient \
$(NULL)
endif
ifndef MOZ_NATIVE_JPEG
tier_9_dirs += jpeg
endif
tier_9_dirs += dbm js/src/xpconnect
ifdef MOZ_OJI
tier_9_dirs += js/src/liveconnect
endif
ifdef MOZ_JSDEBUGGER
tier_9_dirs += js/jsd
endif
ifdef MOZ_ENABLE_XLIB
tier_9_dirs += gfx/src/xlibrgb widget/src/xlibxtbin
endif
ifdef MOZ_ENABLE_GTK
tier_9_dirs += widget/src/gtksuperwin widget/src/gtkxtbin
endif
tier_9_dirs += \
widget/timer \
modules/libutil \
netwerk \
modules/mpfilelocprovider \
uriloader \
modules/libpref \
modules/libimg \
modules/oji \
caps \
rdf \
expat \
htmlparser \
gfx \
gfx2 \
modules/libpr0n \
modules/plugin \
dom \
view \
widget \
content \
layout \
db \
docshell \
webshell \
embedding \
editor \
sun-java \
profile \
themes \
$(NULL)
ifdef ACCESSIBILITY
tier_9_dirs += accessible
endif
# This must preceed xpfe
ifdef MOZ_JPROF
tier_9_dirs += tools/jprof
endif
tier_9_dirs += xpfe xpinstall
ifdef MOZ_PSM
tier_9_dirs += security/manager
endif
ifdef MOZ_LDAP_XPCOM
tier_9_dirs += directory/xpcom
endif
ifdef MOZ_EXTENSIONS
tier_9_dirs += extensions
endif
ifdef MOZ_MAIL_NEWS
tier_9_dirs += mailnews
endif
ifdef MOZ_CALENDAR
tier_9_dirs += calendar
endif
ifdef MOZ_LEAKY
tier_9_dirs += tools/leaky
endif
ifdef ENABLE_TESTS
tier_9_dirs += xpcom/tests
endif
ifdef NS_TRACE_MALLOC
tier_9_dirs += tools/trace-malloc
endif
tier_9_dirs += l10n
ifneq (,$(MOZ_STATIC_COMPONENTS)$(MOZ_META_COMPONENTS))
tier_9_dirs += modules/staticmod
endif
tier_9_dirs += xpfe/bootstrap
endif # BUILD_MODULES == all
STATIC_MAKEFILES := $(NSPRPUB_DIR) directory/c-sdk/ldap
ifdef MOZ_PSM
STATIC_MAKEFILES += security/nss
endif
GARBAGE_DIRS += dist
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
unallmakefiles \
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
include $(topsrcdir)/config/rules.mk
tier_%:
@echo "$@: $($@_dirs)"
@$(EXIT_ON_ERROR) \
for d in $($@_dirs); do $(UPDATE_TITLE) \
$(MAKE) -C $$d export; \
done ; \
$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include ;\
for d in $($@_dirs); do $(UPDATE_TITLE) \
$(MAKE) -C $$d libs; \
done
#
# Individual modules
#
boehm:
ifdef GC_LEAK_DETECTOR
$(MAKE) -C gc/boehm
endif
nspr: boehm
ifdef NSPRPUB_DIR
$(MAKE) -C $(NSPRPUB_DIR)
endif
# Ugly OS/2 gmake hack - create myconfig.mk and myrules.mk if they aren't there
ifeq ($(OS_ARCH),OS2)
export::
if test ! -f config/myrules.mk; then
touch config/myrules.mk
fi
if test ! -f config/myconfig.mk; then
touch config/myconfig.mk
fi
endif
# For modules.mk standalone build
export::
+$(LOOP_OVER_EXPORT_DIRS)
export::
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include
distclean::
cat unallmakefiles | $(XARGS) rm -f
rm -f unallmakefiles $(DIST_GARBAGE)

View File

@@ -0,0 +1,2 @@
Pursuant to section 3.3 of the MPL, this file will contain a list of the files
that have been modified by IBM Corporation.

View File

@@ -0,0 +1,3 @@
For mozilla-the-client build instructions, please read:
http://www.mozilla.org/build/

View File

@@ -0,0 +1,32 @@
#
# 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 build
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,190 @@
<html>
<head>
<title>
How the Accessible Module works
</title>
</head>
<body>
<h1>How the Accessible module (accessibility.dll) works</h1>
<ul>
<p>
See also:
<a href="http://www.mozilla.org/projects/ui/accessibility/vendors-win.html">Gecko Info for Windows Accessibility Vendors</a>, a primer for vendors of 3rd party accessibility software, on how to use our MSAA and other relevant API's.
</p>
<p>
The <a href="http://lxr.mozilla.org/seamonkey/source/accessible/">Accessible module</a> is where we implement support for the <a href="http://www.microsoft.com/enable/msaa/">Microsoft Active Accessibility (MSAA) API</a>
(<a href="http://bugzilla.mozilla.org/show_bug.cgi?id=12952">bug 12952</a>).
Support for Sun's <a href="http://www.sun.com/access/gnome/">Gnome Accessibility API</a> is part of our future plans as well.
</p>
</ul>
<h2>What is MSAA?</h2>
<ul>
<p>
A 3rd part accessibility aid, such as a screen reader, wants to track what's happening inside Mozilla. It needs to know about
focus changes and other events, and it needs to know whtat data nodes there are in the layout tree.
Using this information,
the screen reader will speak out loud important changes to the document or UI, and allow the user to track
where they navigate. Some screen readers also magnify text and images in the currently focused area, and others
show information on a <a href="http://www.audiodata.de/e/produkte/pc/lapbraille/">refreshable braille display</a>.
</p>
<p>
In Windows, accesibility aids acquires the necessary information to do this using hacks and MSAA. MSAA is supposed
to be the "right way" for accessibility aids to get information, but sometimes the hacks are more effective.
For example, screen readers look for screen draws of a vertical blinking line, to determine the location of the caret.
Without doing this, screen readers would not be able to let the user know where there caret has moved to in most programs,
because so many applications do not use the system caret (ours is an example). This is so commonly done, that
no one even bothers to support the MSAA caret, because the hack works.
</p>
<p>
MSAA provides information in two different ways:
<ol>
<li>a COM interface (IAccessible) that allows applications to expose the tree of data nodes that make up
each window in the user interface currently being interacted with and</li>
<li> a set of system messages
that confer accessibility-related events such as focus changes, changes to document content and alerts.</li>
</ol>
</p>
<p>
To really learn about MSAA, you need to download
the entire <a href="http://www.microsoft.com/enable/msaa/download.htm">MSAA SDK</a>.
Without downloading the SDK, you won't get the complete documentation.
The SDK also contains some very useful tools, such as the Accessible Event Watcher, which shows what accessible
events are being generated by a given piece of software. The Accessible Explorer and Inspect Object tools
show the tree of data nodes the Accessible object is exposing through COM.
</p>
</ul>
<h2>IAccessible Interface</h2>
<ul>
<p>
The IAccessible interface is used in a tree of IAccessible's, each one representing a data node, similar to a DOM.
</p>
<p>
Here are the methods supported in IAccessible:
<ul>
<li>get_accParent: Get the parent of an IAccessible.</li>
<li>get_accChildCount: Get the number of children of an IAccesible.</li>
<li>get_accChild: Get the child of an Iaccessible.</li>
<li>get_accName: Get the "name" of the IAccessible, for example the name of a button, checkbox or menuitem.</li>
<li>get_accValue: Get the "value" of the IAccessible, for example a number in a slider, a URL for a link, the text a user entered in a field.</li>
<li>get_accDescription: Get a long description of the current IAccessible. This is not really too useful.</li>
<li>get_accRole: Get an enumerated value representing what this IAccessible is used for, for example.</li>
is it a link, static text, editable text, a checkbox, or a table cell, etc.</li>
<li>get_accState: a 32 bit field representing possible on/off states, such as focused, fousable, selected, selectable, visible, protected (for passwords),
checked, etc. </li>
<li>get_accHelp: Get context sensitive help for the IAccessible.</li>
<li>get_accHelpTopic: We don't use this, it's only if the Windows help system is used.</li>
<li>get_accKeyboardShortcut: What is the keyboard shortcut for this IAccessible.</li>
<li>get_accFocus: Which child is focused?</li>
<li>get_accSelection: Which children of this item are selected?</li>
<li>get_accDefaultAction: Get a description or name of the default action for this component, such as "jump" for links.</li>
<li>accSelect: Select the item associated with this IAccessible.</li>
<li>accLocation: Get the x,y coordinates, and the height and width of this IAccessible node.</li>
<li>accNavigate: Navigate up, down, left or right from this IAccessible.</li>
<li>accHitTest: Find out what IAccessible exists and a specific coordinate.</li>
<li>accDoDefaultAction: Perform the action described by get_accDefaultAction.</li>
<li>put_accName: Change the name.</li>
<li>put_accValue: Change the value.</li>
</ul>
</p>
</ul>
<h2>The Basics</h2>
<ul>
<p>
Rather than directly implement IAccessible with an Accessible class, we have chosen to proxy to our own cross-platform interface,
called nsIAccessible, which is more robust. It has the capability of supporting other new accessibility API's such
as Sun's Gnome Accessiblity API. The nsIAccessible interface is implemented by a variety of classes for each of the
various objects in HTML. Each class is tailored to the specific abilities and properties of the HTML objects it applies to.
</p>
<p>
The first thing that happens when an accessibility aid wants to watch our application is calls the Windows API function
AccessibleObjectFromWindow(). This in turns sends the window in question
a <a href="http://lxr.mozilla.org/seamonkey/search?string=WM_GETOBJECT">WM_GETOBJECT</a> message requesting an IAccessible for the window.
In our case, this event is received in mozilla/widget/src/windows/nsWindow.cpp.
We send back an IAccessible interface that represents that root window. The accessibility aid will use
that first IAccessible to reach rest of the IAccessible hierarchy, by asking for it's children IAccessibles, asking the children for the
grandchildren IAccessibles, and so on. Until this WM_GETOBJECT message is processed, the accessibility.dll is not loaded,
so there is almost zero overhead for accessibility in Mozilla.
</p>
</ul>
<h2>How the IAccessible's are Created</h2>
<ul>
<p>
To create the root IAccessible for a window the first time it gets the <a href="http://lxr.mozilla.org/seamonkey/search?string=WM_GETOBJECT">WM_GETOBJECT</a> message in,
nsWindow.cpp first generates an internal event
called <a href="http://lxr.mozilla.org/seamonkey/search?string=NS_GETACCESSIBLE">NS_GETACCESSIBLE</a>,
which is handled in nsFrame.cpp via the creation of an nsRootAccessible implementation of the nsIAccessible interface.
The first IAccessible is then created by instantiating a RootAccessible class. This RootAccessible is also cached by
the nsWindow it's for, so that any additional WM_GETOBJECT messages use the same RootAccessible.
The RootAccessible class used to implement IAccessible here is slightly different from the normal Accessible class
that's used, in that it keeps track of event data.
RootAccessible and Accessible are both implemented
in <a href="http://lxr.mozilla.org/seamonkey/source/widget/source/windows/Accessible.cpp">
mozilla/widget/src/windows/Accessible.cpp</a>).
</P>
</ul>
<h2>The Real Power Behind IAccessible's</h2>
<ul>
<p>The implementations of IAccessible (Accessible and RootAccessible), don't know anything about Mozilla
objects. They merely proxy to our cross platform accessibility classes, which all have an nsIAccessible interface.
</h2>
<p>
The base implementation for nsIAccessible is called nsAccessible. It has default implementations for all the
nsIAccessible methods. It also knows how
to walk Mozilla's content DOM and frame tree, exposing only the objects that are needed for accessibility.
Essentially, nsAccessible knows what it needs to expose by asking each DOM node's primary frame for
an nsIAccessible, using the GetAccessible() method. If it gets one, it's considered an accessible object.
A frame that wishes to return
an nsIAccessible GetAccessible() is called, creates one of the correct type on the fly using
nsIAccessibilityService methods built for that purpose.
</p>
<p>
The specific implementations
of nsIAccessible for each widget or content type inherit from nsAccessible.
Each implementation then overrides those methods
it wishes to implement, and does nothing for those methods it wants the default behavior for.
For example, the default behavior for nsIAccessible::getAccFirstChild is to
instantial a nsDOMTreeWalker, and ask it for the first child. However, nsImageAccessible overrides getAccFirstChild,
returning the first area of an image map if there is one, otherwise nsnull.
</p>
</ul>
<h2>MSAA Events</h2>
<ul>
<p>
When an accessibility-related event occurs within an application such as Mozilla, it must use NotifyWinEvent from
the Win32 API. NotifyWinEvent is passed arguments for the window the event occured in, and the number of the child
within that window. Accessibility aids use the Win32 call SetWinEventHook() to register as a listener for these events.
</p>
<p>
The accessibility aid is choose which events it is interested in learning more about by using the Win32 API call
AccessibleObjectFromEvent, requesting the IAccessible to the node corresponding to the
child number that had been indicated from NotifyWinEvent(). This ends up asking our RootAccessible for the child
IAccessible that matches the window handle and child id we indicated through NotofyWinEvent().
</p>
<p>
In Mozilla, this creates a problem. We cannot
keep track of a child number for every important accessible node in a document. We deal with this by generating fake
child IDs for the most recent accessibile events that we have generated, in a circular array.
</p>
<p>
Since there is a RootAccessible for each top level window that might generate MSAA events, that's where we do the bookkeeping
for these events and their nsIAccessible's. Whenever NotifyWinEvent() is called, a new fake ID is generated (We use
negative numbers for the fake IDs). When the callback comes to request the IAccessible for that child number,
we check the circular array for that ID, and voila, we have the corresponding nsIAccessible to proxy.
</p>
<p>
Every RootAccessible has an nsRootAccessible which is an nsIAccessibleEventReceiver. The RootAccessible
uses this to register itself as an nsIAccessibleEventListener. In the end, nsRootAccessible registers itself as a listener
of Mozilla's internal and DOM events. It's HandleEvent routine translates these events into MSAA events, and passes them along to
with an nsIAccessible to the original RootAccessible::HandleEvent
which turns that nsIAccessible into a NotifyWinEvent call, complete with a fake child ID.
</p>
<p>
Most MSAA events aren't utilized by accessibility aids. Therefore we implement only the handful that matter.
The most important event is the focus event, followed by name, state and value change events.
</p>
</ul>
</body>
</html>

View File

@@ -0,0 +1,64 @@
#
# 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): John Gaunt (jgaunt@netscape.com)
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = accessibility
LIBRARY_NAME = accessibility
EXPORT_LIBRARY = 1
SHORT_LIBNAME = access
IS_COMPONENT = 1
MODULE_NAME = nsAccessibilityModule
REQUIRES = \
xpcom \
string \
dom \
$(NULL)
CPPSRCS = nsAccessibilityFactory.cpp
LOCAL_INCLUDES = -I$(srcdir)/../src
SHARED_LIBRARY_LIBS = \
$(DIST)/lib/libaccessibility_base_s.$(LIB_SUFFIX) \
$(DIST)/lib/libaccessibility_html_s.$(LIB_SUFFIX) \
$(DIST)/lib/libaccessibility_xul_s.$(LIB_SUFFIX) \
$(NULL)
EXTRA_DSO_LIBS = \
gkconshared_s \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(MOZ_COMPONENT_LIBS) \
-L$(DIST)/lib \
$(EXTRA_DSO_LIBS) \
-lgkgfx \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,54 @@
#!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 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): John Gaunt (jgaunt@netscape.com)
DEPTH=..\..
MODULE=accessibility
REQUIRES = \
xpcom \
string \
dom \
$(NULL)
LIBRARY_NAME=accessibility
MODULE_NAME=nsAccessibilityModule
include <$(DEPTH)\config\config.mak>
CPP_OBJS=\
.\$(OBJDIR)\nsAccessibilityFactory.obj \
$(NULL)
LINCS = $(LINCS) -I..\src # for implementation headers
SUB_LIBRARIES=\
$(DIST)\lib\accessibility_base_s.lib \
$(DIST)\lib\accessibility_html_s.lib \
$(DIST)\lib\accessibility_xul_s.lib \
$(NULL)
LLIBS=\
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\timer_s.lib \
$(DIST)\lib\gkgfx.lib \
$(DIST)\lib\contentshared_s.lib \
$(LIBNSPR) \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,76 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsIServiceManager.h"
#include "nsIComponentManager.h"
#include "nsIAccessibilityService.h"
#include "nscore.h"
static NS_IMETHODIMP
NS_ConstructAccessibilityService(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
NS_ASSERTION(aOuter == nsnull, "no aggregation");
nsIAccessibilityService* accessibility;
rv = NS_NewAccessibilityService(&accessibility);
if (NS_FAILED(rv)) {
NS_ERROR("Unable to construct chrome registry");
return rv;
}
rv = accessibility->QueryInterface(aIID, aResult);
NS_ASSERTION(NS_SUCCEEDED(rv), "unable to find correct interface");
NS_RELEASE(accessibility);
return rv;
}
// The list of components we register
static nsModuleComponentInfo components[] =
{
{ "AccessibilityService",
NS_ACCESSIBILITY_SERVICE_CID,
"@mozilla.org/accessibilityService;1",
NS_ConstructAccessibilityService
},
};
NS_IMPL_NSGETMODULE(nsAccessibilityModule, components);

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,26 @@
#!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 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= public src build
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,2 @@
nsIAccessibilityService.idl
nsIAccessible.idl

View File

@@ -0,0 +1,46 @@
#
# 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
MODULE = accessibility
XPIDL_MODULE= accessibility
XPIDLSRCS = \
nsIAccessibilityService.idl \
nsIAccessible.idl \
nsIAccessibleDocument.idl \
nsIAccessibleEventReceiver.idl \
nsIAccessibleEventListener.idl \
nsIAccessibleSelectable.idl \
nsIAccessibleProvider.idl \
$(NULL)
EXPORTS = \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,39 @@
#!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 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=..\..
MODULE=accessibility
XPIDL_MODULE=accessibility
XPIDLSRCS = \
.\nsIAccessibilityService.idl \
.\nsIAccessible.idl \
.\nsIAccessibleDocument.idl \
.\nsIAccessibleEventReceiver.idl \
.\nsIAccessibleEventListener.idl \
.\nsIAccessibleSelectable.idl \
.\nsIAccessibleProvider.idl \
$(NULL)
EXPORTS = \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,79 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "domstubs.idl"
#include "nsIAtom.idl"
#include "domstubs.idl"
#include "nsIAccessible.idl"
interface nsIWeakReference;
[scriptable, uuid(68D9720A-0984-42b6-A3F5-8237ED925727)]
interface nsIAccessibilityService : nsISupports
{
nsIAccessible createRootAccessible(in nsISupports aPresContext, in nsISupports aFrame);
nsIAccessible createHTMLComboboxAccessible(in nsIDOMNode aNode, in nsISupports aPresShell);
nsIAccessible createHTMLListboxAccessible(in nsIDOMNode aNode, in nsISupports aPresShell);
nsIAccessible createHTMLSelectOptionAccessible(in nsIDOMNode aNode, in nsIAccessible aAccParent, in nsISupports aPresShell);
nsIAccessible createHTMLCheckboxAccessible(in nsISupports aFrame);
nsIAccessible createHTMLRadioButtonAccessible(in nsISupports aFrame);
nsIAccessible createHTMLButtonAccessible(in nsISupports aFrame);
nsIAccessible createHTML4ButtonAccessible(in nsISupports aFrame);
nsIAccessible createHTMLTextAccessible(in nsISupports aFrame);
nsIAccessible createHTMLImageAccessible(in nsISupports aFrame);
nsIAccessible createHTMLAreaAccessible(in nsIWeakReference aPresShell, in nsIDOMNode aDOMNode, in nsIAccessible aAccParent);
nsIAccessible createHTMLTableAccessible(in nsISupports aFrame);
nsIAccessible createHTMLTableCellAccessible(in nsISupports aFrame);
nsIAccessible createHTMLTextFieldAccessible(in nsISupports aFrame);
nsIAccessible createIFrameAccessible(in nsIDOMNode aNode);
nsIAccessible createHTMLBlockAccessible(in nsIDOMNode aNode, in nsISupports aDocument);
nsIAccessible createXULButtonAccessible(in nsIDOMNode aNode);
nsIAccessible createXULCheckboxAccessible(in nsIDOMNode aNode);
nsIAccessible createXULColorPickerAccessible(in nsIDOMNode aNode);
nsIAccessible createXULColorPickerTileAccessible(in nsIDOMNode aNode);
nsIAccessible createXULGroupboxAccessible(in nsIDOMNode aNode);
nsIAccessible createXULImageAccessible(in nsIDOMNode aNode);
nsIAccessible createXULTextAccessible(in nsIDOMNode aNode);
nsIAccessible createXULMenubarAccessible(in nsIDOMNode aNode);
nsIAccessible createXULMenupopupAccessible(in nsIDOMNode aNode);
nsIAccessible createXULMenuitemAccessible(in nsIDOMNode aNode);
nsIAccessible createXULProgressMeterAccessible(in nsIDOMNode aNode);
nsIAccessible createXULMenuSeparatorAccessible(in nsIDOMNode aNode);
nsIAccessible createAccessible(in nsIDOMNode aNode, in nsISupports aDocument);
nsIAccessible getAccessibleFor(in nsIDOMNode aNode);
};
%{ C++
// for component registration
// {DE401C37-9A7F-4278-A6F8-3DE2833989EF}
#define NS_ACCESSIBILITY_SERVICE_CID \
{ 0xde401c37, 0x9a7f, 0x4278, { 0xa6, 0xf8, 0x3d, 0xe2, 0x83, 0x39, 0x89, 0xef } }
extern nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult);
%}

View File

@@ -0,0 +1,193 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
* Aaron Leventhal
* John Gaunt
*/
#include "nsISupports.idl"
#include "nsIDOMNode.idl"
#include "domstubs.idl"
[scriptable, uuid(B26FBE47-9A5F-42a1-822B-082461AE4D6D)]
interface nsIAccessible : nsISupports
{
readonly attribute nsIAccessible accParent;
readonly attribute nsIAccessible accNextSibling;
readonly attribute nsIAccessible accPreviousSibling;
readonly attribute nsIAccessible accFirstChild;
readonly attribute nsIAccessible accLastChild;
readonly attribute long accChildCount;
attribute DOMString accName;
readonly attribute DOMString accValue;
readonly attribute DOMString accDescription;
readonly attribute unsigned long accRole;
readonly attribute unsigned long accState;
readonly attribute unsigned long accExtState;
readonly attribute DOMString accHelp;
readonly attribute nsIAccessible accFocused;
nsIAccessible accGetAt(in long x, in long y);
nsIAccessible accNavigateRight();
nsIAccessible accNavigateLeft();
nsIAccessible accNavigateUp();
nsIAccessible accNavigateDown();
void accGetBounds(out long x,
out long y,
out long width,
out long height);
void accAddSelection();
void accRemoveSelection();
void accExtendSelection();
void accTakeSelection();
void accTakeFocus();
readonly attribute PRUint8 accNumActions;
DOMString getAccActionName(in PRUint8 index);
void accDoAction(in PRUint8 index); // Action number 0 is the default action
nsIDOMNode accGetDOMNode();
// Used by Accessible implementation to save data and speed up accessibility tree walking
[noscript] void CacheOptimizations(in nsIAccessible aParent, in PRInt32 aSiblingIndex, in nsIDOMNodeList aSiblingList);
// MSAA State flags - used for bitfield. More than 1 allowed.
const unsigned long STATE_UNAVAILABLE = 0x00000001; // Disabled, maps to opposite of Java ENABLED, Gnome/ATK SENSITIVE?
const unsigned long STATE_SELECTED = 0x00000002;
const unsigned long STATE_FOCUSED = 0x00000004;
const unsigned long STATE_PRESSED = 0x00000008;
const unsigned long STATE_CHECKED = 0x00000010;
const unsigned long STATE_MIXED = 0x00000020; // 3-state checkbox or toolbar button
const unsigned long STATE_READONLY = 0x00000040; // Maps to opposite of Java/Gnome/ATK EDITABLE state
const unsigned long STATE_HOTTRACKED = 0x00000080;
const unsigned long STATE_DEFAULT = 0x00000100;
const unsigned long STATE_EXPANDED = 0x00000200;
const unsigned long STATE_COLLAPSED = 0x00000400;
const unsigned long STATE_BUSY = 0x00000800;
const unsigned long STATE_FLOATING = 0x00001000; // Children "owned" not "contained" by parent
const unsigned long STATE_MARQUEED = 0x00002000;
const unsigned long STATE_ANIMATED = 0x00004000;
const unsigned long STATE_INVISIBLE = 0x00008000;
const unsigned long STATE_OFFSCREEN = 0x00010000;
const unsigned long STATE_SIZEABLE = 0x00020000;
const unsigned long STATE_MOVEABLE = 0x00040000;
const unsigned long STATE_SELFVOICING = 0x00080000;
const unsigned long STATE_FOCUSABLE = 0x00100000;
const unsigned long STATE_SELECTABLE = 0x00200000;
const unsigned long STATE_LINKED = 0x00400000;
const unsigned long STATE_TRAVERSED = 0x00800000;
const unsigned long STATE_MULTISELECTABLE = 0x01000000; // Supports multiple selection
const unsigned long STATE_EXTSELECTABLE = 0x02000000; // Supports extended selection
const unsigned long STATE_ALERT_LOW = 0x04000000; // This information is of low priority
const unsigned long STATE_ALERT_MEDIUM = 0x08000000; // This information is of medium priority
const unsigned long STATE_ALERT_HIGH = 0x10000000; // This information is of high priority
const unsigned long STATE_PROTECTED = 0x20000000; // Maps to Gnome's *Role* ATK_ROLE_PASSWD_TEXT, nothing for Java?
const unsigned long STATE_HASPOPUP = 0x40000000; // New in MSAA 2.0
// Extended state flags (for now non-MSAA, for Java and Gnome/ATK support)
// This is only the states that there isn't already a mapping for in MSAA
// See www.accessmozilla.org/article.php?sid=11 for information on the mappings between accessibility API states
const unsigned long STATE_INVALID = 0x00200000; // No explanation given
const unsigned long STATE_ACTIVE = 0x00400000; // This window is currently the active window
const unsigned long STATE_EXPANDABLE = 0x00800000; // An item that can be expanded, such as a tree item with children
const unsigned long STATE_MODAL = 0x01000000; // Must do something with control before leaving it
const unsigned long STATE_MULTI_LINE = 0x02000000; // Edit control that can take multiple lines
const unsigned long STATE_SENSITIVE = 0x04000000; // No explanation given
const unsigned long STATE_RESIZABLE = 0x08000000; // Object can be resized
const unsigned long STATE_SHOWING = 0x10000000; // This object and all of it's ancestors are visible
const unsigned long STATE_SINGLE_LINE = 0x20000000; // This text object can only contain 1 line of text
const unsigned long STATE_TRANSIENT = 0x40000000; // Tells accessibility aid "Don't add event listener - this object doesn't generate any". For example, could be used with higher level containers.
const unsigned long STATE_VERTICAL = 0x80000000; // Especially used for sliders and scrollbars
// MSAA Roles - only one per nsIAccessible or IAccessible
const unsigned long ROLE_TITLEBAR = 0x00000001;
const unsigned long ROLE_MENUBAR = 0x00000002;
const unsigned long ROLE_SCROLLBAR = 0x00000003;
const unsigned long ROLE_GRIP = 0x00000004;
const unsigned long ROLE_SOUND = 0x00000005;
const unsigned long ROLE_CURSOR = 0x00000006;
const unsigned long ROLE_CARET = 0x00000007;
const unsigned long ROLE_ALERT = 0x00000008;
const unsigned long ROLE_WINDOW = 0x00000009;
const unsigned long ROLE_CLIENT = 0x0000000A;
const unsigned long ROLE_MENUPOPUP = 0x0000000B;
const unsigned long ROLE_MENUITEM = 0x0000000C;
const unsigned long ROLE_TOOLTIP = 0x0000000D;
const unsigned long ROLE_APPLICATION = 0x0000000E;
const unsigned long ROLE_DOCUMENT = 0x0000000F;
const unsigned long ROLE_PANE = 0x00000010;
const unsigned long ROLE_CHART = 0x00000011;
const unsigned long ROLE_DIALOG = 0x00000012;
const unsigned long ROLE_BORDER = 0x00000013;
const unsigned long ROLE_GROUPING = 0x00000014;
const unsigned long ROLE_SEPARATOR = 0x00000015;
const unsigned long ROLE_TOOLBAR = 0x00000016;
const unsigned long ROLE_STATUSBAR = 0x00000017;
const unsigned long ROLE_TABLE = 0x00000018;
const unsigned long ROLE_COLUMNHEADER = 0x00000019;
const unsigned long ROLE_ROWHEADER = 0x0000001A;
const unsigned long ROLE_COLUMN = 0x0000001B;
const unsigned long ROLE_ROW = 0x0000001C;
const unsigned long ROLE_CELL = 0x0000001D;
const unsigned long ROLE_LINK = 0x0000001E;
const unsigned long ROLE_HELPBALLOON = 0x0000001F;
const unsigned long ROLE_CHARACTER = 0x00000020;
const unsigned long ROLE_LIST = 0x00000021;
const unsigned long ROLE_LISTITEM = 0x00000022;
const unsigned long ROLE_OUTLINE = 0x00000023;
const unsigned long ROLE_OUTLINEITEM = 0x00000024;
const unsigned long ROLE_PAGETAB = 0x00000025;
const unsigned long ROLE_PROPERTYPAGE = 0x00000026;
const unsigned long ROLE_INDICATOR = 0x00000027;
const unsigned long ROLE_GRAPHIC = 0x00000028;
const unsigned long ROLE_STATICTEXT = 0x00000029;
const unsigned long ROLE_TEXT = 0x0000002A; // Editable, selectable, etc.
const unsigned long ROLE_PUSHBUTTON = 0x0000002B;
const unsigned long ROLE_CHECKBUTTON = 0x0000002C;
const unsigned long ROLE_RADIOBUTTON = 0x0000002D;
const unsigned long ROLE_COMBOBOX = 0x0000002E;
const unsigned long ROLE_DROPLIST = 0x0000002F;
const unsigned long ROLE_PROGRESSBAR = 0x00000030;
const unsigned long ROLE_DIAL = 0x00000031;
const unsigned long ROLE_HOTKEYFIELD = 0x00000032;
const unsigned long ROLE_SLIDER = 0x00000033;
const unsigned long ROLE_SPINBUTTON = 0x00000034;
const unsigned long ROLE_DIAGRAM = 0x00000035;
const unsigned long ROLE_ANIMATION = 0x00000036;
const unsigned long ROLE_EQUATION = 0x00000037;
const unsigned long ROLE_BUTTONDROPDOWN = 0x00000038;
const unsigned long ROLE_BUTTONMENU = 0x00000039;
const unsigned long ROLE_BUTTONDROPDOWNGRID = 0x0000003A;
const unsigned long ROLE_WHITESPACE = 0x0000003B;
const unsigned long ROLE_PAGETABLIST = 0x0000003C;
const unsigned long ROLE_CLOCK = 0x0000003D;
const unsigned long ROLE_SPLITBUTTON = 0x0000003E; // New in MSAA 2.0
const unsigned long ROLE_IPADDRESS = 0x0000003F; // New in MSAA 2.0
const unsigned long ROLE_NOTHING = 0xffffffff;
};

View File

@@ -0,0 +1,41 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: Aaron Leventhal
*
* Contributor(s):
* John Gaunt
*/
#include "nsISupports.idl"
#include "nsIAccessible.idl"
#include "domstubs.idl"
interface nsIDocument;
[scriptable, uuid(8781FC88-355F-4439-881F-6504A0A1CEB6)]
interface nsIAccessibleDocument : nsISupports
{
readonly attribute DOMString URL;
readonly attribute DOMString title;
readonly attribute DOMString mimeType;
readonly attribute DOMString docType;
DOMString getNameSpaceURIForID(in short nameSpaceID);
[noscript] nsIDocument getDocument();
};

View File

@@ -0,0 +1,45 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIAccessible.idl"
[scriptable, uuid(BEE49E7D-9D06-49bf-8984-1694C697D74F)]
interface nsIAccessibleEventListener : nsISupports
{
// these are set to the values given by MSAA
const unsigned long EVENT_FOCUS = 0x8005;
const unsigned long EVENT_STATE_CHANGE = 0x800A;
const unsigned long EVENT_NAME_CHANGE = 0x800C;
const unsigned long EVENT_SELECTION = 0x8006;
const unsigned long EVENT_SELECTION_ADD = 0x8007;
const unsigned long EVENT_SELECTION_REMOVE = 0x8008;
const unsigned long EVENT_SELECTION_WITHIN = 0x8009;
const unsigned long EVENT_MENUSTART = 0x0004;
const unsigned long EVENT_MENUEND = 0x0005;
const unsigned long EVENT_MENUPOPUPSTART = 0x0006;
const unsigned long EVENT_MENUPOPUPEND = 0x0007;
void handleEvent(in unsigned long aEvent, in nsIAccessible aTarget);
};

View File

@@ -0,0 +1,32 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: Eric D Vaughan (evaughan@netscape.com)
*
* Contributor(s):
*/
#include "nsIAccessibleEventListener.idl"
[scriptable, uuid(AB331E47-4FAA-4a12-9480-9B480DD78B39)]
interface nsIAccessibleEventReceiver : nsISupports
{
void addAccessibleEventListener(in nsIAccessibleEventListener aListener);
void removeAccessibleEventListener();
};

View File

@@ -0,0 +1,33 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: John Gaunt (jgaunt@netscape.com)
*
* Contributor(s):
* John Gaunt
*/
#include "nsISupports.idl"
#include "nsIAccessible.idl"
[scriptable, uuid(3f0e3eb0-1dd2-11b2-9605-be5b8e76cf4b)]
interface nsIAccessibleProvider : nsISupports
{
readonly attribute nsIAccessible accessible;
};

View File

@@ -0,0 +1,34 @@
/* -*- 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 the Mozilla browser.
*
* 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.
*
* Original Author: John Gaunt (jgaunt@netscape.com)
*
* Contributor(s):
* John Gaunt
*/
#include "nsISupports.idl"
#include "nsIAccessible.idl"
#include "nsISupportsArray.idl"
[scriptable, uuid(34d268d6-1dd2-11b2-9d63-83a5e0ada290)]
interface nsIAccessibleSelectable : nsISupports
{
nsISupportsArray GetSelectedChildren();
};

View File

@@ -0,0 +1 @@
accessible.properties

View File

@@ -0,0 +1,37 @@
#
# 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): John Gaunt (jgaunt@netscape.com)
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = \
base \
html \
xul \
$(null)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,5 @@
jump = Jump
press = Press
check = Check
uncheck = Uncheck
select = Select

View File

@@ -0,0 +1 @@
accessible.properties

View File

@@ -0,0 +1,77 @@
#
# 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): John Gaunt (jgaunt@netscape.com)
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = accessibility
LIBRARY_NAME = accessibility_base_s
REQUIRES = \
content \
content_xul \
docshell \
dom \
gfx \
gfx2 \
htmlparser \
imglib2 \
intl \
layout \
locale \
necko \
string \
timer \
uriloader \
view \
webshell \
widget \
xpcom \
xuldoc \
$(NULL)
CPPSRCS = \
nsAccessibilityService.cpp \
nsAccessible.cpp \
nsBaseWidgetAccessible.cpp \
nsFormControlAccessible.cpp \
nsGenericAccessible.cpp \
nsRootAccessible.cpp \
nsSelectAccessible.cpp \
$(NULL)
EXPORTS = \
nsRootAccessible.h \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
LOCAL_INCLUDES += \
-I$(srcdir) \
-I$(srcdir)/../html \
-I$(srcdir)/../xul \
$(NULL)

View File

@@ -0,0 +1,5 @@
jump = Jump
press = Press
check = Check
uncheck = Uncheck
select = Select

View File

@@ -0,0 +1,3 @@
en-US.jar:
locale/en-US/global/accessible.properties

View File

@@ -0,0 +1,81 @@
#!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 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): John Gaunt (jgaunt@netscape.com)
DEPTH = ..\..\..
MODULE = accessibility
LIBRARY_NAME = accessibility_base_s
REQUIRES = \
content \
content_xul \
docshell \
dom \
gfx \
gfx2 \
htmlparser \
imglib2 \
intl \
layout \
locale \
necko \
string \
timer \
uriloader \
view \
webshell \
widget \
xpcom \
$(NULL)
CPP_OBJS = \
.\$(OBJDIR)\nsAccessibilityService.obj \
.\$(OBJDIR)\nsAccessible.obj \
.\$(OBJDIR)\nsBaseWidgetAccessible.obj \
.\$(OBJDIR)\nsFormControlAccessible.obj \
.\$(OBJDIR)\nsGenericAccessible.obj \
.\$(OBJDIR)\nsRootAccessible.obj \
.\$(OBJDIR)\nsSelectAccessible.obj \
$(NULL)
EXPORTS = \
.\nsRootAccessible.h \
$(NULL)
LINCS = \
-I..\html \
-I..\xul \
-I..\..\..\layout\html\forms\public \
-I..\..\..\layout\html\forms\src \
-I..\..\..\layout\html\base\src \
$(NULL)
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,924 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIAccessibilityService.h"
#include "nsAccessibilityService.h"
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsLayoutAtoms.h"
#include "nsIDOMNode.h"
#include "nsHTMLTextAccessible.h"
#include "nsITextContent.h"
#include "nsTextFragment.h"
#include "nsHTMLTableAccessible.h"
#include "nsHTMLImageAccessible.h"
#include "nsHTMLAreaAccessible.h"
#include "nsHTMLLinkAccessible.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIDOMHTMLAreaElement.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsIAccessibleProvider.h"
#include "nsILink.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDOMDocument.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsXULFormControlAccessible.h"
#include "nsXULColorPickerAccessible.h"
#include "nsXULTextAccessible.h"
#include "nsXULMenuAccessible.h"
#include "nsString.h"
// IFrame
#include "nsIDocShell.h"
#include "nsHTMLIFrameRootAccessible.h"
/**
* nsAccessibility Service
*/
nsAccessibilityService::nsAccessibilityService()
{
NS_INIT_REFCNT();
}
nsAccessibilityService::~nsAccessibilityService()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsAccessibilityService, nsIAccessibilityService);
////////////////////////////////////////////////////////////////////////////////
// nsIAccessibilityService methods:
NS_IMETHODIMP
nsAccessibilityService::CreateRootAccessible(nsISupports* aPresContext, nsISupports* aFrame, nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
NS_ASSERTION(presShell,"Error no presshell!!");
nsCOMPtr<nsISupports> pcContainer;
presContext->GetContainer(getter_AddRefs(pcContainer));
NS_ASSERTION(pcContainer,"Error no container for pres context!!!");
nsCOMPtr<nsIDocShellTreeItem> treeItem(do_QueryInterface(pcContainer));
NS_ASSERTION(treeItem,"Error no tree item for pres context container!!!");
nsCOMPtr<nsIDocShellTreeItem> treeItemParent;
treeItem->GetParent(getter_AddRefs(treeItemParent));
if (treeItemParent) {
// We only create root accessibles for the true root, othewise create an iframe/iframeroot accessible
nsCOMPtr<nsIDocument> document;
nsCOMPtr<nsIContent> rootContent;
presShell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMNode> rootNode(do_QueryInterface(document));
if (rootNode)
GetAccessibleFor(rootNode, _retval);
}
else {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(presShell));
*_retval = new nsRootAccessible(weakShell);
NS_IF_ADDREF(*_retval);
}
if (! *_retval)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLComboboxAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLListboxAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLSelectOptionAccessible(nsIDOMNode* aDOMNode, nsIAccessible *aAccParent, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLSelectOptionAccessible(aAccParent, aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLCheckboxAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLCheckboxAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULCheckboxAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULCheckboxAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULColorPickerAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULColorPickerAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULColorPickerTileAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULColorPickerTileAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMRadioButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLRadioButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLRadioButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTML4ButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTML4ButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTML4ButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULButtonAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULButtonAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenubarAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenubarAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenupopupAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenupopupAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenuitemAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenuitemAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenuSeparatorAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenuSeparatorAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTextAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = nsnull;
nsCOMPtr<nsITextContent> textContent(do_QueryInterface(node));
if (textContent) {
// If empty text string, don't include in accessible tree
// Items with length 0 are already gone, we just need to check for single NBSP's
PRInt32 textLength = 0;
textContent->GetTextLength(&textLength);
if (textLength == 1) {
const PRUnichar NBSP = 160;
const nsTextFragment *textFrag;
nsresult rv = textContent->GetText(&textFrag);
PRUnichar theChar = textFrag->CharAt(0);
if (theChar == NBSP)
return NS_ERROR_FAILURE;
}
}
*_retval = new nsHTMLTextAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULTextAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULTextAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTableAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTableAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTableAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTableCellAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTableCellAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTableCellAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULGroupboxAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULGroupboxAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULProgressMeterAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULProgressMeterAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULImageAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
// Don't include nameless images in accessible tree
*_retval = nsnull;
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(aNode));
if (NS_WARN_IF_FALSE(elt, "No DOM element or node!"))
return NS_ERROR_FAILURE;
PRBool hasTextEquivalent;
elt->HasAttribute(NS_LITERAL_STRING("tooltiptext"), &hasTextEquivalent); // Prefer value over tooltiptext
if (!hasTextEquivalent) {
return NS_OK;
}
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsHTMLImageAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLImageAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLImageAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLImageAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLAreaAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLAreaAccessible(nsIWeakReference *aShell, nsIDOMNode *aDOMNode, nsIAccessible *aAccParent,
nsIAccessible **_retval)
{
*_retval = new nsHTMLAreaAccessible(aDOMNode, aAccParent, aShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTextFieldAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextFieldAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTextFieldAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::GetShellFromNode(nsIDOMNode *aNode, nsIWeakReference **aWeakShell)
{
nsCOMPtr<nsIDOMDocument> domDoc;
aNode->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc(do_QueryInterface(domDoc));
if (!doc)
return NS_ERROR_INVALID_ARG;
// ---- Get the pres shell ----
nsCOMPtr<nsIPresShell> shell;
doc->GetShellAt(0, getter_AddRefs(shell));
if (!shell)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIWeakReference> weakRef(do_GetWeakReference(shell));
*aWeakShell = weakRef;
NS_IF_ADDREF(*aWeakShell);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIWeakReference** aShell, nsIDOMNode** aNode)
{
NS_ASSERTION(aFrame,"Error -- 1st argument (aFrame) is null!!");
*aRealFrame = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIContent> content;
(*aRealFrame)->GetContent(getter_AddRefs(content));
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(content));
if (!content || !node)
return NS_ERROR_FAILURE;
*aNode = node;
NS_IF_ADDREF(*aNode);
nsCOMPtr<nsIDocument> document;
content->GetDocument(*getter_AddRefs(document));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
// do_GetWR only works into a |nsCOMPtr| :-(
nsCOMPtr<nsIPresShell> tempShell;
nsCOMPtr<nsIWeakReference> weakShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
weakShell = do_GetWeakReference(tempShell);
NS_IF_ADDREF(*aShell = weakShell);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateAccessible(nsIDOMNode* aDOMNode, nsISupports* aDocument, nsIAccessible **_retval)
{
nsCOMPtr<nsIDocument> document (do_QueryInterface(aDocument));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
nsCOMPtr<nsIPresShell> tempShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(tempShell);
*_retval = new nsAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLBlockAccessible(nsIDOMNode* aDOMNode, nsISupports* aDocument, nsIAccessible **_retval)
{
nsCOMPtr<nsIDocument> document (do_QueryInterface(aDocument));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
nsCOMPtr<nsIPresShell> tempShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(tempShell);
*_retval = new nsAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateIFrameAccessible(nsIDOMNode* aDOMNode, nsIAccessible **_retval)
{
NS_ENSURE_ARG_POINTER(aDOMNode);
*_retval = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(aDOMNode));
if (!content)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIWeakReference> outerWeakShell;
GetShellFromNode(aDOMNode, getter_AddRefs(outerWeakShell));
nsCOMPtr<nsIPresShell> outerPresShell(do_QueryReferent(outerWeakShell));
if (NS_WARN_IF_FALSE(outerPresShell,
"No outer pres shell in CreateHTMLIFrameAccessible!")) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> outerPresContext;
outerPresShell->GetPresContext(getter_AddRefs(outerPresContext));
if (NS_WARN_IF_FALSE(outerPresContext,
"No outer pres context in CreateHTMLIFrameAccessible!")) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIDocument> doc;
if (NS_SUCCEEDED(content->GetDocument(*getter_AddRefs(doc))) && doc) {
if (outerPresShell) {
nsCOMPtr<nsISupports> supps;
outerPresShell->GetSubShellFor(content, getter_AddRefs(supps));
if (supps) {
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(supps));
if (docShell) {
nsCOMPtr<nsIPresShell> innerPresShell;
docShell->GetPresShell(getter_AddRefs(innerPresShell));
if (innerPresShell) {
nsCOMPtr<nsIWeakReference> innerWeakShell(do_GetWeakReference(innerPresShell));
nsCOMPtr<nsIDocument> innerDoc;
innerPresShell->GetDocument(getter_AddRefs(innerDoc));
if (innerDoc) {
nsCOMPtr<nsIAccessible> innerRootAccessible(new nsHTMLIFrameRootAccessible(aDOMNode, innerWeakShell));
if (innerRootAccessible) {
nsHTMLIFrameAccessible* outerRootAccessible = new nsHTMLIFrameAccessible(aDOMNode, innerRootAccessible, outerWeakShell, innerDoc);
if (outerRootAccessible) {
*_retval = NS_STATIC_CAST(nsIAccessible*, outerRootAccessible);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
}
}
}
}
}
}
}
}
}
return NS_ERROR_FAILURE;
}
void nsAccessibilityService::GetOwnerFor(nsIPresShell *aPresShell, nsIPresShell **aOwnerShell, nsIContent **aOwnerContent)
{
nsCOMPtr<nsIPresContext> presContext;
aPresShell->GetPresContext(getter_AddRefs(presContext));
if (!presContext)
return;
nsCOMPtr<nsISupports> pcContainer;
presContext->GetContainer(getter_AddRefs(pcContainer));
if (!pcContainer)
return;
nsCOMPtr<nsISupports> docShellSupports(do_QueryInterface(pcContainer));
nsCOMPtr<nsIDocShellTreeItem> treeItem(do_QueryInterface(pcContainer));
if (!treeItem)
return;
// Get Parent Doc
nsCOMPtr<nsIDocShellTreeItem> treeItemParent;
treeItem->GetParent(getter_AddRefs(treeItemParent));
if (!treeItemParent)
return;
nsCOMPtr<nsIDocShell> parentDS(do_QueryInterface(treeItemParent));
if (!parentDS)
return;
nsCOMPtr<nsIPresShell> parentPresShell;
parentDS->GetPresShell(getter_AddRefs(parentPresShell));
if (!parentPresShell)
return;
nsCOMPtr<nsIDocument> parentDoc;
parentPresShell->GetDocument(getter_AddRefs(parentDoc));
if (!parentDoc)
return;
nsCOMPtr<nsIContent> rootContent;
parentDoc->GetRootContent(getter_AddRefs(rootContent));
nsCOMPtr<nsIContent> tempContent;
parentPresShell->FindContentForShell(docShellSupports, getter_AddRefs(tempContent));
if (tempContent) {
*aOwnerContent = tempContent;
*aOwnerShell = parentPresShell;
NS_ADDREF(*aOwnerShell);
NS_ADDREF(*aOwnerContent);
}
}
/**
* GetAccessibleFor - get an nsIAccessible from a DOM node
*/
NS_IMETHODIMP nsAccessibilityService::GetAccessibleFor(nsIDOMNode *aNode,
nsIAccessible **_retval)
{
*_retval = nsnull;
NS_ASSERTION(aNode, "GetAccessibleFor() called with no node.");
nsCOMPtr<nsIAccessible> newAcc;
nsCOMPtr<nsIDOMXULElement> xulElement(do_QueryInterface(aNode));
if (xulElement) {
#ifdef DEBUG_aaronl
// Please leave this in for now, it's a convenient debugging method
nsAutoString name;
aNode->GetLocalName(name);
if (name.Equals(NS_LITERAL_STRING("browser")))
printf("## aaronl debugging\n");
#endif
nsCOMPtr<nsIAccessibleProvider> accProv(do_QueryInterface(aNode));
if (accProv) {
accProv->GetAccessible(_retval);
if (*_retval)
return NS_OK;
}
return NS_ERROR_FAILURE;
}
// ---- Get the document for this node ----
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIDocument> nodeIsDoc(do_QueryInterface(aNode));
if (nodeIsDoc)
doc = nodeIsDoc;
else {
nsCOMPtr<nsIDOMDocument> domDoc;
aNode->GetOwnerDocument(getter_AddRefs(domDoc));
if (!domDoc)
return NS_ERROR_INVALID_ARG;
doc = do_QueryInterface(domDoc);
}
if (!doc)
return NS_ERROR_INVALID_ARG;
// ---- Get the pres shell ----
nsCOMPtr<nsIPresShell> shell;
doc->GetShellAt(0, getter_AddRefs(shell));
if (!shell)
return NS_ERROR_FAILURE;
// ---- Check if area node ----
nsCOMPtr<nsIDOMHTMLAreaElement> areaContent(do_QueryInterface(aNode));
if (areaContent) // Area elements are implemented in nsHTMLImageAccessible as children of the image
return NS_ERROR_FAILURE; // Return, otherwise the image frame looks like an accessible object in the wrong place
// ---- Check if we need outer owning doc ----
nsCOMPtr<nsIContent> content(do_QueryInterface(aNode));
if (!content && nodeIsDoc) {
// This happens when we're on the document node, which will not QI to an nsIContent,
// When that happens, we try to get the outer, parent document node that contains the document
// For example, a <browser> or <iframe> element
nsCOMPtr<nsIPresShell> ownerShell;
nsCOMPtr<nsIContent> ownerContent;
GetOwnerFor(shell, getter_AddRefs(ownerShell), getter_AddRefs(ownerContent));
if (ownerContent) {
shell = ownerShell;
content = ownerContent;
}
else {
// Nothing above us, return the root accessible
doc->GetRootContent(getter_AddRefs(content));
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
return CreateRootAccessible(presContext, frame, _retval);
}
}
NS_ASSERTION(content, "GetAccessibleFor() called with no content.");
// ---- Try using frame to get IAccessible ----
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_ERROR_FAILURE;
frame->GetAccessible(getter_AddRefs(newAcc));
// ---- If link, create link accessible ----
if (!newAcc) {
// is it a link?
nsCOMPtr<nsILink> link(do_QueryInterface(aNode));
if (link) {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(shell));
newAcc = new nsHTMLLinkAccessible(aNode, weakShell);
}
}
// ---- If <select> option, create select option accessible
if (!newAcc) {
nsCOMPtr<nsIDOMHTMLOptionElement> optionElement(do_QueryInterface(aNode));
if (optionElement) {
// nsHTMLSelectionOptionAccessible's must be created via the parent
nsCOMPtr<nsIDOMNode> parentNode;
aNode->GetParentNode(getter_AddRefs(parentNode));
if (parentNode) {
nsCOMPtr<nsIAccessible> parentAccessible;
GetAccessibleFor(parentNode, getter_AddRefs(parentAccessible));
if (parentAccessible) {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(shell));
newAcc = new nsHTMLSelectOptionAccessible(parentAccessible, aNode, weakShell);
}
}
}
}
if (!newAcc)
return NS_ERROR_FAILURE;
*_retval = newAcc;
NS_ADDREF(*_retval);
return NS_OK;
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult)
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
nsAccessibilityService* accService = new nsAccessibilityService();
if (!accService)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(accService);
*aResult = accService;
return NS_OK;
}

View File

@@ -0,0 +1,73 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsAccessibilityService_h__
#define __nsAccessibilityService_h__
#include "nsIAccessibilityService.h"
#include "nsIContent.h"
#include "nsIPresShell.h"
#include "nsIDocShell.h"
class nsIFrame;
class nsIWeakReference;
class nsIDOMNode;
class nsAccessibilityService : public nsIAccessibilityService
{
public:
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBILITYSERVICE
// nsAccessibilityService methods:
nsAccessibilityService();
virtual ~nsAccessibilityService();
public:
private:
NS_IMETHOD GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIWeakReference** aShell, nsIDOMNode** aContent);
NS_IMETHOD GetShellFromNode(nsIDOMNode *aNode, nsIWeakReference **weakShell);
void GetOwnerFor(nsIPresShell *aPresShell, nsIPresShell **aOwnerShell, nsIContent **aOwnerContent);
nsIContent* FindContentForDocShell(nsIPresShell* aPresShell, nsIContent* aContent, nsIDocShell* aDocShell);
};
#endif /* __nsIAccessibilityService_h__ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,167 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsAccessible_H_
#define _nsAccessible_H_
#include "nsCOMPtr.h"
#include "nsGenericAccessible.h"
#include "nsIAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIDOMNode.h"
#include "nsIFocusController.h"
#include "nsIPresContext.h"
#include "nsIPresShell.h"
#include "nsPoint.h"
#include "nsRect.h"
#include "nsWeakReference.h"
#include "nsIDOMNodeList.h"
#include "nsIBindingManager.h"
#define ACCESSIBLE_BUNDLE_URL "chrome://global/locale/accessible.properties"
class nsIContent;
class nsIDocShell;
class nsIFrame;
class nsIWebShell;
enum { eSiblingsUninitialized = -1, eSiblingsWalkNormalDOM = -2}; // Used in sibling index field as flags
class nsAccessible : public nsGenericAccessible
{
public:
// to eliminate the confusion of "magic numbers" -- if ( 0 ){ foo; }
enum { eAction_Switch=0, eAction_Jump=0, eAction_Click=0 };
// how many actions
enum { eNo_Action=0, eSingle_Action=1 };
nsAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
virtual ~nsAccessible();
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccFocused(nsIAccessible **_retval);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
NS_IMETHOD AccRemoveSelection(void);
NS_IMETHOD AccTakeSelection(void);
NS_IMETHOD AccTakeFocus(void);
NS_IMETHOD AccGetDOMNode(nsIDOMNode **_retval);
protected:
virtual nsIFrame* GetFrame();
virtual nsIFrame* GetBoundsFrame();
virtual void GetBounds(nsRect& aRect, nsIFrame** aRelativeFrame);
virtual void GetPresContext(nsCOMPtr<nsIPresContext>& aContext);
PRBool IsEntirelyVisible();
NS_IMETHOD AppendLabelText(nsIDOMNode *aLabelNode, nsAWritableString& _retval);
NS_IMETHOD AppendLabelFor(nsIContent *aLookNode, nsAReadableString *aId, nsAWritableString *aLabel);
NS_IMETHOD GetHTMLAccName(nsAWritableString& _retval);
NS_IMETHOD GetXULAccName(nsAWritableString& _retval);
NS_IMETHOD AppendFlatStringFromSubtree(nsIContent *aContent, nsAWritableString *aFlatString);
NS_IMETHOD AppendFlatStringFromContentNode(nsIContent *aContent, nsAWritableString *aFlatString);
NS_IMETHOD AppendStringWithSpaces(nsAWritableString *aFlatString, nsAReadableString& textEquivalent);
NS_IMETHOD GetFocusedElement(nsIDOMElement **aFocusedElement);
NS_IMETHOD CacheOptimizations(nsIAccessible *aParent, PRInt32 aSiblingIndex, nsIDOMNodeList *aSiblingList);
// helper method to verify frames
static PRBool IsCorrectFrameType(nsIFrame* aFrame, nsIAtom* aAtom);
static nsresult GetTranslatedString(PRUnichar *aKey, nsAWritableString *aStringOut);
void GetScreenOrigin(nsIPresContext *aPresContext, nsIFrame *aFrame, nsRect *aRect);
// Data Members
nsCOMPtr<nsIDOMNode> mDOMNode;
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIDOMNodeList> mSiblingList; // If some of our computed siblings are anonymous content nodes, cache node list
PRInt32 mSiblingIndex; // Cache where we are in list of kids that we got from nsIBindingManager::GetContentList(parentContent)
};
/** This class is used to walk the DOM tree. It skips
* everything but nodes that either implement nsIAccessible
* or have primary frames that implement "GetAccessible"
*/
struct WalkState {
nsCOMPtr<nsIAccessible> accessible;
nsCOMPtr<nsIDOMNode> domNode;
nsCOMPtr<nsIDOMNodeList> siblingList;
PRInt32 siblingIndex; // Holds a state flag or an index into the siblingList
WalkState *prevState;
};
class nsAccessibleTreeWalker {
public:
nsAccessibleTreeWalker(nsIWeakReference* aShell, nsIDOMNode* aContent,
PRInt32 aCachedSiblingIndex, nsIDOMNodeList *aCachedSiblingList, PRBool mWalkAnonymousContent);
~nsAccessibleTreeWalker();
NS_IMETHOD GetNextSibling();
NS_IMETHOD GetPreviousSibling();
NS_IMETHOD GetParent();
NS_IMETHOD GetFirstChild();
NS_IMETHOD GetLastChild();
PRInt32 GetChildCount();
WalkState mState;
protected:
NS_IMETHOD GetChildBefore(nsIDOMNode* aParent, nsIDOMNode* aChild);
PRBool IsHidden();
PRBool GetAccessible();
NS_IMETHOD GetFullTreeParentNode(nsIDOMNode *aChildNode, nsIDOMNode **aParentNodeOut);
void GetSiblings(nsIDOMNode *aOneOfTheSiblings);
void GetKids(nsIDOMNode *aParent);
void ClearState();
NS_IMETHOD PushState();
NS_IMETHOD PopState();
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessibilityService> mAccService;
nsCOMPtr<nsIBindingManager> mBindingManager;
};
#endif

View File

@@ -0,0 +1,410 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
#include "nsCOMPtr.h"
#include "nsGUIEvent.h"
#include "nsIContent.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsIFrame.h"
#include "nsILink.h"
#include "nsIPresContext.h"
#include "nsIPresShell.h"
#include "nsISelection.h"
#include "nsISelectionController.h"
// ------------
// nsBlockAccessible
// ------------
nsBlockAccessible::nsBlockAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):nsAccessible(aNode, aShell)
{
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsBlockAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
// We're going to find the child that contains coordinates (tx,ty)
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h); // Get bounds for this accessible
if (tx >= x && tx < x + w && ty >= y && ty < y + h)
{
// It's within this nsIAccessible, let's drill down
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> smallestChild;
PRInt32 smallestArea = -1;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch; // Child bounds
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
// ok if there are multiple frames the contain the point
// and they overlap then pick the smallest. We need to do this
// for text frames.
// For example, A point that's in block #2 is also in block #1, but we want to return #2:
//
// [[block #1 is long wrapped text that continues to
// another line]] [[here is a shorter block #2]]
if (tx >= cx && tx < cx + cw && ty >= cy && ty < cy + ch)
{
if (smallestArea == -1 || cw*ch < smallestArea) {
smallestArea = cw*ch;
smallestChild = child;
}
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
if (smallestChild != nsnull)
{
*_retval = smallestChild;
NS_ADDREF(*_retval);
return NS_OK;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}
/**
* nsContainerAccessible
*/
nsContainerAccessible::nsContainerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eNo_Action;
return NS_OK;
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
return NS_OK;
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::AccDoAction(PRUint8 index)
{
return NS_OK;
}
/** no state -- normal */
NS_IMETHODIMP nsContainerAccessible::GetAccState(PRUint32 *_retval)
{
*_retval = 0;
return NS_OK;
}
/** no value */
NS_IMETHODIMP nsContainerAccessible::GetAccValue(nsAWritableString& _retval)
{
return NS_OK;
}
/** no name*/
NS_IMETHODIMP nsContainerAccessible::GetAccName(nsAWritableString& _retval)
{
return NS_OK;
}
//-------------
// nsLeafFrameAccessible
//-------------
nsLeafAccessible::nsLeafAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsLeafAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsLeafAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsLeafAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
//----------------
// nsLinkableAccessible
//----------------
nsLinkableAccessible::nsLinkableAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell), mIsALinkCached(PR_FALSE), mLinkContent(nsnull), mIsLinkVisited(PR_FALSE)
{
}
/* long GetAccState (); */
NS_IMETHODIMP nsLinkableAccessible::GetAccState(PRUint32 *_retval)
{
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_SELECTABLE;
if (IsALink()) {
*_retval |= STATE_LINKED;
if (mIsLinkVisited)
*_retval |= STATE_TRAVERSED;
}
// Get current selection and find out if current node is in it
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsIFrame *frame;
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame))) {
nsCOMPtr<nsISelectionController> selCon;
frame->GetSelectionController(context,getter_AddRefs(selCon));
if (selCon) {
nsCOMPtr<nsISelection> domSel;
selCon->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(domSel));
if (domSel) {
PRBool isSelected = PR_FALSE, isCollapsed = PR_TRUE;
domSel->ContainsNode(mDOMNode, PR_TRUE, &isSelected);
domSel->GetIsCollapsed(&isCollapsed);
if (isSelected && !isCollapsed)
*_retval |=STATE_SELECTED;
}
}
}
// Focused? Do we implement that here or up the chain?
return NS_OK;
}
NS_IMETHODIMP nsLinkableAccessible::GetAccValue(nsAWritableString& _retval)
{
if (IsALink()) {
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mLinkContent));
if (elt)
return elt->GetAttribute(NS_LITERAL_STRING("href"), _retval);
}
return NS_ERROR_FAILURE;
}
/* PRUint8 getAccNumActions (); */
NS_IMETHODIMP nsLinkableAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/* wstring getAccActionName (in PRUint8 index); */
NS_IMETHODIMP nsLinkableAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
// Action 0 (default action): Jump to link
if (index == eAction_Jump) {
if (IsALink()) {
_retval = NS_LITERAL_STRING("jump");
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}
/* void accDoAction (in PRUint8 index); */
NS_IMETHODIMP nsLinkableAccessible::AccDoAction(PRUint8 index)
{
// Action 0 (default action): Jump to link
if (index == 0) {
if (IsALink()) {
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
if (presContext) {
nsMouseEvent linkClickEvent;
linkClickEvent.eventStructType = NS_EVENT;
linkClickEvent.message = NS_MOUSE_LEFT_CLICK;
linkClickEvent.isShift = PR_FALSE;
linkClickEvent.isControl = PR_FALSE;
linkClickEvent.isAlt = PR_FALSE;
linkClickEvent.isMeta = PR_FALSE;
linkClickEvent.clickCount = 0;
linkClickEvent.widget = nsnull;
nsEventStatus eventStatus = nsEventStatus_eIgnore;
mLinkContent->HandleDOMEvent(presContext,
&linkClickEvent,
nsnull,
NS_EVENT_FLAG_INIT,
&eventStatus);
return NS_OK;
}
}
}
return NS_ERROR_FAILURE;
}
PRBool nsLinkableAccessible::IsALink()
{
if (mIsALinkCached) // Cached answer?
return mLinkContent? PR_TRUE: PR_FALSE;
nsCOMPtr<nsIContent> walkUpContent(do_QueryInterface(mDOMNode));
if (walkUpContent) {
nsCOMPtr<nsIContent> tempContent = walkUpContent;
while (walkUpContent) {
nsCOMPtr<nsILink> link(do_QueryInterface(walkUpContent));
if (link) {
mLinkContent = tempContent;
mIsALinkCached = PR_TRUE;
nsLinkState linkState;
link->GetLinkState(linkState);
if (linkState == eLinkState_Visited)
mIsLinkVisited = PR_TRUE;
return PR_TRUE;
}
walkUpContent->GetParent(*getter_AddRefs(tempContent));
walkUpContent = tempContent;
}
}
mIsALinkCached = PR_TRUE; // Cached that there is no link
return PR_FALSE;
}
// ------------
// nsMenuListenerAccessible
// ------------
NS_IMPL_ISUPPORTS_INHERITED1(nsMenuListenerAccessible, nsAccessible, nsIDOMXULListener)
nsMenuListenerAccessible::nsMenuListenerAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
nsMenuListenerAccessible::~nsMenuListenerAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsMenuListenerAccessible::PopupShowing(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsMenuListenerAccessible::PopupHiding(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsMenuListenerAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
void
nsMenuListenerAccessible::SetupMenuListener()
{
// if not already one, register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (!eventReceiver) {
return;
}
nsresult rv = eventReceiver->AddEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
if (NS_FAILED(rv)) {
return;
}
mRegistered = PR_TRUE;
}
}

View File

@@ -0,0 +1,148 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsBaseWidgetAccessible_H_
#define _nsBaseWidgetAccessible_H_
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIDOMXULListener.h"
/**
* This file contains a number of classes that are used as base
* classes for the different accessibility implementations of
* the HTML and XUL widget sets. --jgaunt
*/
/**
* Special Accessible that knows how to handle hit detection for flowing text
*/
class nsBlockAccessible : public nsAccessible
{
public:
nsBlockAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
};
/**
* Special Accessible that just contains other accessible objects
* no actions, no name, no state, no value
*/
class nsContainerAccessible : public nsAccessible
{
public:
nsContainerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
};
/**
* Leaf version of DOM Accessible -- has no children
*/
class nsLeafAccessible : public nsAccessible
{
public:
nsLeafAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
/**
* A type of accessible for DOM nodes containing an href="" attribute.
* It knows how to report the state of the link ( traveled or not )
* and can activate ( click ) the link programmatically.
*/
class nsLinkableAccessible : public nsAccessible
{
public:
nsLinkableAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
protected:
PRBool IsALink();
PRBool mIsALinkCached; // -1 = unknown, 0 = not a link, 1 = is a link
nsCOMPtr<nsIContent> mLinkContent;
PRBool mIsLinkVisited;
};
/*
* A base class that can listen to menu events. Its used by selects so the
* button and the window accessibles can change their name and role
* depending on whether the drop down list is dropped down on not
*/
class nsMenuListenerAccessible : public nsAccessible, public nsIDOMXULListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsMenuListenerAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsMenuListenerAccessible();
// popup listener
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
virtual void SetupMenuListener();
PRBool mRegistered;
PRBool mOpen;
};
#endif

View File

@@ -0,0 +1,226 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
* Aaron Leventhal (aaronl@netscape.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsFormControlAccessible.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLLabelElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULButtonElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMXULElement.h"
#include "nsIDOMXULLabelElement.h"
#include "nsIDOMXULSelectCntrlEl.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsReadableUtils.h"
#include "nsString.h"
/**
* nsFormControlAccessible
*/
nsFormControlAccessible::nsFormControlAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/**
* XUL states: focused, unavailable(disabled), focusable, ?protected?
* HTML states: focused, unabailable(disabled), focusable, protected
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccState(PRUint32 *_retval)
{
// Get the focused state from the nsAccessible
nsAccessible::GetAccState(_retval);
PRBool disabled = PR_FALSE;
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMHTMLInputElement> htmlFormElement(do_QueryInterface(mDOMNode, &rv));
if (NS_SUCCEEDED(rv) && htmlFormElement) {
htmlFormElement->GetDisabled(&disabled);
nsAutoString typeString;
htmlFormElement->GetType(typeString);
if (typeString.EqualsIgnoreCase("password"))
*_retval |= STATE_PROTECTED;
}
else {
nsCOMPtr<nsIDOMXULControlElement> xulFormElement(do_QueryInterface(mDOMNode, &rv));
if (NS_SUCCEEDED(rv) && xulFormElement) {
xulFormElement->GetDisabled(&disabled);
/* XXX jgaunt do XUL elements support password fields? */
}
}
if (disabled)
*_retval |= STATE_UNAVAILABLE;
else
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
/**
* Will be called by both HTML and XUL elements, this method
* merely checks who is calling and then calls the appropriate
* protected method for the XUL or HTML element.
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMXULElement> xulFormElement(do_QueryInterface(mDOMNode));
if (xulFormElement)
return GetXULAccName(_retval);
else
return GetHTMLAccName(_retval);
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
// ------------
// Radio button
// ------------
nsRadioButtonAccessible::nsRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("select");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_RADIOBUTTON;
return NS_OK;
}
// ------------
// Text Accessibles
// ------------
nsTextAccessible::nsTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell)
{
}
/**
* We are text
*/
NS_IMETHODIMP nsTextAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TEXT;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}

View File

@@ -0,0 +1,93 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsFormControlAccessible_H_
#define _nsFormControlAccessible_H_
#include "nsBaseWidgetAccessible.h"
/**
* This supports name and state information for both XUL and HTML
* widgets. Designed to be a base class for the impls of XUL
* and HTML form widget Accessibles
*/
class nsFormControlAccessible : public nsAccessible
{
public:
nsFormControlAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
/**
*
*/
class nsRadioButtonAccessible : public nsFormControlAccessible
{
public:
nsRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
};
/**
* Text nodes have no children, but since double inheritance
* no-worky we have to re-impl the LeafAccessiblity blocks
* this way.
*/
class nsTextAccessible : public nsLinkableAccessible
{
public:
nsTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
#endif

View File

@@ -0,0 +1,243 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsIFrame.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
#include "nsReadableUtils.h"
#include "nsIContent.h"
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsGenericAccessible, nsIAccessible)
nsGenericAccessible::nsGenericAccessible()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
nsGenericAccessible::~nsGenericAccessible()
{
/* destructor code */
}
/* nsIAccessible getAccParent (); */
NS_IMETHODIMP nsGenericAccessible::GetAccParent(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsGenericAccessible::GetAccChildCount(PRInt32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsGenericAccessible::GetAccName(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsGenericAccessible::GetAccValue(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccName (in wstring name); */
NS_IMETHODIMP nsGenericAccessible::SetAccName(const nsAReadableString& name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDescription(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsGenericAccessible::GetAccRole(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* PRUint8 getAccNumActions (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNumActions(PRUint8 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccActionName (in PRUint8 index); */
NS_IMETHODIMP nsGenericAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accDoAction (in PRUint8 index); */
NS_IMETHODIMP nsGenericAccessible::AccDoAction(PRUint8 index)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFocused(); */
NS_IMETHODIMP nsGenericAccessible::GetAccFocused(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccHelp (); */
NS_IMETHODIMP nsGenericAccessible::GetAccHelp(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsGenericAccessible::AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateRight (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateRight(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateLeft (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateLeft(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateUp (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateUp(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateDown (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateDown(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsGenericAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accAddSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccAddSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccRemoveSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accExtendSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccExtendSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeFocus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccExtState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccExtState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsGenericAccessible::AccGetDOMNode(nsIDOMNode **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsGenericAccessible::CacheOptimizations(nsIAccessible *aParent, PRInt32 aSiblingIndex, nsIDOMNodeList *aSiblingList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsGenericAccessible_H_
#define _nsGenericAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
/**
* Basic implementation
* supports nothing
*/
class nsGenericAccessible : public nsIAccessible
{
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLE
public:
nsGenericAccessible();
virtual ~nsGenericAccessible();
};
#endif

View File

@@ -0,0 +1,632 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIAccessible.h"
#include "nsRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMEventListener.h"
#include "nsReadableUtils.h"
#include "nsILink.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsHTMLLinkAccessible.h"
#include "nsIURI.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIWebNavigation.h"
#include "nsIXULDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMDocumentType.h"
#include "nsINameSpaceManager.h"
#include "nsIDOMNSHTMLSelectElement.h"
#include "nsIAccessibleSelectable.h"
#include "nsLayoutAtoms.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsCURILoader.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIScriptGlobalObject.h"
NS_INTERFACE_MAP_BEGIN(nsRootAccessible)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleDocument)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_ENTRY(nsIDOMFocusListener)
NS_INTERFACE_MAP_ENTRY(nsIDOMFormListener)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
NS_INTERFACE_MAP_ENTRY(nsIWebProgressListener)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMFormListener)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsIDOMEventListener, nsIDOMFormListener)
NS_INTERFACE_MAP_END_INHERITING(nsAccessible)
NS_IMPL_ADDREF_INHERITED(nsRootAccessible, nsAccessible);
NS_IMPL_RELEASE_INHERITED(nsRootAccessible, nsAccessible);
nsIDOMNode * nsRootAccessible::gLastFocusedNode = 0; // Strong reference
PRUint32 nsRootAccessible::gInstanceCount = 0;
//#define DEBUG_LEAKS 1 // aaronl debug
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsRootAccessible::nsRootAccessible(nsIWeakReference* aShell):nsAccessible(nsnull,aShell),
nsDocAccessibleMixin(aShell), mAccService(do_GetService("@mozilla.org/accessibilityService;1")),
mBusy(eBusyStateUninitialized)
{
mListener = nsnull;
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (shell) {
shell->GetDocument(getter_AddRefs(mDocument));
mDOMNode = do_QueryInterface(mDocument);
}
nsLayoutAtoms::AddRefAtoms();
++gInstanceCount;
#ifdef DEBUG_LEAKS
printf("=====> %d nsRootAccessible's %x\n", gInstanceCount, (PRUint32)this);
#endif
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsRootAccessible::~nsRootAccessible()
{
if (--gInstanceCount == 0)
NS_IF_RELEASE(gLastFocusedNode);
#ifdef DEBUG_LEAKS
printf("======> %d nsRootAccessible's %x\n", gInstanceCount, (PRUint32)this);
#endif
nsLayoutAtoms::ReleaseAtoms();
RemoveAccessibleEventListener();
}
/* attribute wstring accName; */
NS_IMETHODIMP nsRootAccessible::GetAccName(nsAWritableString& aAccName)
{
return GetTitle(aAccName);
}
// helpers
nsIFrame* nsRootAccessible::GetFrame()
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
nsIFrame* root = nsnull;
if (shell)
shell->GetRootFrame(&root);
return root;
}
void nsRootAccessible::GetBounds(nsRect& aBounds, nsIFrame** aRelativeFrame)
{
*aRelativeFrame = GetFrame();
if (*aRelativeFrame)
(*aRelativeFrame)->GetRect(aBounds);
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsRootAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute unsigned long accRole; */
NS_IMETHODIMP nsRootAccessible::GetAccRole(PRUint32 *aAccRole)
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
*aAccRole = 0;
return NS_ERROR_FAILURE;
}
/*
// Commenting this out for now.
// It was requested that we always use MSAA ROLE_PANE objects instead of client objects.
// However, it might be asked that we put client objects back.
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsISupports> container;
context->GetContainer(getter_AddRefs(container));
if (container) {
nsCOMPtr<nsIDocShellTreeItem> parentTreeItem, docTreeItem(do_QueryInterface(container));
if (docTreeItem) {
docTreeItem->GetSameTypeParent(getter_AddRefs(parentTreeItem));
// Basically, if this docshell has a parent of the same type, it's a frame
if (parentTreeItem) {
*aAccRole = ROLE_PANE;
return NS_OK;
}
}
}
*aAccRole = ROLE_CLIENT;
*/
*aAccRole = ROLE_PANE;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetAccState(PRUint32 *aAccState)
{
*aAccState = STATE_FOCUSABLE;
if (mBusy == eBusyStateLoading)
*aAccState |= STATE_BUSY;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetAccValue(nsAWritableString& aAccValue)
{
return GetURL(aAccValue);
}
void nsRootAccessible::Notify(nsITimer *timer)
{
// Short timer is finished
if (mBusy != eBusyStateDone) {
mBusy = eBusyStateDone;
if (mListener)
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, this);
}
}
void nsRootAccessible::StartDocReadyTimer()
{
if (!mTimer) {
nsresult rv;
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (NS_SUCCEEDED(rv)) {
const PRUint32 kUpdateTimerDelay = 1;
mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
}
}
}
/* void addAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::AddAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
NS_ASSERTION(aListener, "Trying to add a null listener!");
if (mListener)
return NS_OK;
mListener = aListener;
// use AddEventListener from the nsIDOMEventTarget interface
nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(mDocument));
if (target) {
// capture DOM focus events
nsresult rv = target->AddEventListener(NS_LITERAL_STRING("focus"), NS_STATIC_CAST(nsIDOMFocusListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// capture Form change events
rv = target->AddEventListener(NS_LITERAL_STRING("change"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// add ourself as a CheckboxStateChange listener (custom event fired in nsHTMLInputElement.cpp)
rv = target->AddEventListener(NS_LITERAL_STRING("CheckboxStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// add ourself as a RadiobuttonStateChange listener (custom event fired in nsHTMLInputElement.cpp)
rv = target->AddEventListener(NS_LITERAL_STRING("RadiobuttonStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("popupshowing"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("popuphiding"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("DOMMenuItemActive"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// Extremely short timer, after which we announce that page is finished loading
// By waiting until after this short time, we know that the 3rd party accessibility software
// has received it's accessible, and can handle events on it.
StartDocReadyTimer();
// Set up web progress listener - we need to know when page loading is finished
// That way we can send the STATE_CHANGE events for the MSAA root "pane" object (ROLE_PANE),
// and change the STATE_BUSY bit flag
nsCOMPtr<nsIPresShell> presShell(do_QueryReferent(mPresShell));
if (presShell) {
nsCOMPtr<nsIPresContext> context;
presShell->GetPresContext(getter_AddRefs(context));
if (context) {
nsCOMPtr<nsISupports> container; context->GetContainer(getter_AddRefs(container));
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(container));
if (docShell) {
mWebProgress = do_GetInterface(docShell);
mWebProgress->AddProgressListener(this);
}
}
}
NS_ASSERTION(mWebProgress, "Could not get nsIWebProgress for nsRootAccessible");
mWebProgress->AddProgressListener(this);
}
return NS_OK;
}
/* void removeAccessibleEventListener (); */
NS_IMETHODIMP nsRootAccessible::RemoveAccessibleEventListener()
{
if (mListener) {
nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(mDocument));
if (target) {
target->RemoveEventListener(NS_LITERAL_STRING("focus"), NS_STATIC_CAST(nsIDOMFocusListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("change"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("CheckboxStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("RadiobuttonStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("popuphiding"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("DOMMenuItemActive"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
}
if (mTimer) {
mTimer->Cancel();
mTimer = nsnull;
}
if (mWebProgress) {
mWebProgress->RemoveProgressListener(this);
mWebProgress = nsnull;
}
mListener = nsnull;
}
return NS_OK;
}
void nsRootAccessible::FireAccessibleFocusEvent(nsIAccessible *focusAccessible, nsIDOMNode *focusNode)
{
if (focusNode && gLastFocusedNode != focusNode) {
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_FOCUS, focusAccessible);
NS_IF_RELEASE(gLastFocusedNode);
gLastFocusedNode = focusNode;
NS_ADDREF(gLastFocusedNode);
}
}
// --------------- nsIDOMEventListener Methods (3) ------------------------
NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
{
if (mListener) {
// optionTargetNode is set to current option for HTML selects
nsCOMPtr<nsIDOMNode> targetNode, optionTargetNode;
nsresult rv = GetTargetNode(aEvent, targetNode);
if (NS_FAILED(rv))
return rv;
// Check to see if it's a select element. If so, need the currently focused option
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement(do_QueryInterface(targetNode));
if (selectElement) // ----- Target Node is an HTML <select> element ------
nsHTMLSelectOptionAccessible::GetFocusedOptionNode(mPresShell, targetNode, optionTargetNode);
nsAutoString eventType;
aEvent->GetType(eventType);
nsCOMPtr<nsIAccessible> accessible;
if (NS_SUCCEEDED(mAccService->GetAccessibleFor(targetNode, getter_AddRefs(accessible)))) {
if (eventType.EqualsIgnoreCase("focus") || eventType.EqualsIgnoreCase("DOMMenuItemActive"))
FireAccessibleFocusEvent(accessible, targetNode);
else if (eventType.EqualsIgnoreCase("change")) {
if (optionTargetNode) { // Set to current option only for HTML selects
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_SELECTION, accessible);
if (NS_SUCCEEDED(mAccService->GetAccessibleFor(optionTargetNode, getter_AddRefs(accessible))))
FireAccessibleFocusEvent(accessible, optionTargetNode);
}
else
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, accessible);
}
else if (eventType.EqualsIgnoreCase("CheckboxStateChange") ||
eventType.EqualsIgnoreCase("RadiobuttonStateChange"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, accessible);
else if (eventType.EqualsIgnoreCase("popupshowing"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_MENUPOPUPSTART, accessible);
else if (eventType.EqualsIgnoreCase("popuphiding"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_MENUPOPUPEND, accessible);
}
}
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetTargetNode(nsIDOMEvent *aEvent, nsCOMPtr<nsIDOMNode>& aTargetNode)
{
nsCOMPtr<nsIDOMEventTarget> domEventTarget;
aEvent->GetOriginalTarget(getter_AddRefs(domEventTarget));
nsresult rv;
aTargetNode = do_QueryInterface(domEventTarget, &rv);
return rv;
}
// ------- nsIDOMFocusListener Methods (1) -------------
NS_IMETHODIMP nsRootAccessible::Focus(nsIDOMEvent* aEvent)
{
return HandleEvent(aEvent);
}
NS_IMETHODIMP nsRootAccessible::Blur(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIDOMFormListener Methods (5) -------------
NS_IMETHODIMP nsRootAccessible::Submit(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Reset(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Change(nsIDOMEvent* aEvent)
{
// get change events when the form elements changes its state, checked->not,
// deleted text, new text, change in selection for list/combo boxes
// this may be the event that we have the individual Accessible objects
// handle themselves -- have list/combos figure out the change in selection
// have textareas and inputs fire a change of state etc...
return HandleEvent(aEvent);
}
// gets Select events when text is selected in a textarea or input
NS_IMETHODIMP nsRootAccessible::Select(nsIDOMEvent* aEvent) { return NS_OK; }
// gets Input events when text is entered or deleted in a textarea or input
NS_IMETHODIMP nsRootAccessible::Input(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIDOMXULListener Methods (8) ---------------
NS_IMETHODIMP nsRootAccessible::PopupShowing(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupHiding(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Close(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIAccessibleDocument Methods (5) ---------------
NS_IMETHODIMP nsRootAccessible::GetURL(nsAWritableString& aURL)
{
return nsDocAccessibleMixin::GetURL(aURL);
}
NS_IMETHODIMP nsRootAccessible::GetTitle(nsAWritableString& aTitle)
{
return nsDocAccessibleMixin::GetTitle(aTitle);
}
NS_IMETHODIMP nsRootAccessible::GetMimeType(nsAWritableString& aMimeType)
{
return nsDocAccessibleMixin::GetMimeType(aMimeType);
}
NS_IMETHODIMP nsRootAccessible::GetDocType(nsAWritableString& aDocType)
{
return nsDocAccessibleMixin::GetDocType(aDocType);
}
NS_IMETHODIMP nsRootAccessible::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
return nsDocAccessibleMixin::GetNameSpaceURIForID(aNameSpaceID, aNameSpaceURI);
}
NS_IMETHODIMP nsRootAccessible::GetDocument(nsIDocument **doc)
{
return nsDocAccessibleMixin::GetDocument(doc);
}
NS_IMETHODIMP nsRootAccessible::OnStateChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 aStateFlags, PRUint32 aStatus)
{
return NS_OK;
}
/* void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress); */
NS_IMETHODIMP nsRootAccessible::OnProgressChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress,
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
return NS_OK;
}
/* void onLocationChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI location); */
NS_IMETHODIMP nsRootAccessible::OnLocationChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, nsIURI *location)
{
// Load has been verified, it will occur, about to commence
if (mListener && mBusy != eBusyStateLoading) {
mBusy = eBusyStateLoading;
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, this);
StartDocReadyTimer();
}
return NS_OK;
}
/* void onStatusChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage); */
NS_IMETHODIMP nsRootAccessible::OnStatusChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, nsresult aStatus, const PRUnichar *aMessage)
{
return NS_OK;
}
/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */
NS_IMETHODIMP nsRootAccessible::OnSecurityChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 state)
{
return NS_OK;
}
nsDocAccessibleMixin::nsDocAccessibleMixin(nsIDocument *aDoc):mDocument(aDoc)
{
}
nsDocAccessibleMixin::nsDocAccessibleMixin(nsIWeakReference *aPresShell)
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(aPresShell));
if (shell)
shell->GetDocument(getter_AddRefs(mDocument));
}
nsDocAccessibleMixin::~nsDocAccessibleMixin()
{
}
NS_IMETHODIMP nsDocAccessibleMixin::GetURL(nsAWritableString& aURL)
{
nsCOMPtr<nsIPresShell> presShell;
mDocument->GetShellAt(0, getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDocShell> docShell;
GetDocShellFromPS(presShell, getter_AddRefs(docShell));
nsCOMPtr<nsIWebNavigation> webNav(do_GetInterface(docShell));
nsXPIDLCString theURL;
if (webNav) {
nsCOMPtr<nsIURI> pURI;
webNav->GetCurrentURI(getter_AddRefs(pURI));
if (pURI)
pURI->GetSpec(getter_Copies(theURL));
}
//XXXaaronl Need to use CopyUTF8toUCS2(nsDependentCString(theURL), aURL); when it's written
aURL.Assign(NS_ConvertUTF8toUCS2(theURL).get());
return NS_OK;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetTitle(nsAWritableString& aTitle)
{
// This doesn't leak - we don't own the const pointer that's returned
aTitle = *(mDocument->GetDocumentTitle());
return NS_OK;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetMimeType(nsAWritableString& aMimeType)
{
nsCOMPtr<nsIDOMNSDocument> domnsDocument(do_QueryInterface(mDocument));
if (domnsDocument) {
return domnsDocument->GetContentType(aMimeType);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocType(nsAWritableString& aDocType)
{
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
nsCOMPtr<nsIDOMDocument> domDoc(do_QueryInterface(mDocument));
nsCOMPtr<nsIDOMDocumentType> docType;
if (xulDoc) {
aDocType = NS_LITERAL_STRING("window"); // doctype not implemented for XUL at time of writing - causes assertion
return NS_OK;
}
else if (domDoc && NS_SUCCEEDED(domDoc->GetDoctype(getter_AddRefs(docType))) && docType) {
return docType->GetName(aDocType);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
if (mDocument) {
nsCOMPtr<nsINameSpaceManager> nameSpaceManager;
if (NS_SUCCEEDED(mDocument->GetNameSpaceManager(*getter_AddRefs(nameSpaceManager))))
return nameSpaceManager->GetNameSpaceURI(aNameSpaceID, aNameSpaceURI);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocument(nsIDocument **doc)
{
*doc = mDocument;
if (mDocument) {
NS_IF_ADDREF(*doc);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocShellFromPS(nsIPresShell* aPresShell, nsIDocShell** aDocShell)
{
*aDocShell = nsnull;
if (aPresShell) {
nsCOMPtr<nsIDocument> doc;
aPresShell->GetDocument(getter_AddRefs(doc));
if (doc) {
nsCOMPtr<nsIScriptGlobalObject> scriptObj;
doc->GetScriptGlobalObject(getter_AddRefs(scriptObj));
if (scriptObj) {
scriptObj->GetDocShell(aDocShell);
if (*aDocShell)
return NS_OK;
}
}
}
return NS_ERROR_FAILURE;
}

View File

@@ -0,0 +1,156 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsRootAccessible_H_
#define _nsRootAccessible_H_
#include "nsAccessible.h"
#include "nsIAccessibleEventReceiver.h"
#include "nsIAccessibleEventListener.h"
#include "nsIAccessibleDocument.h"
#include "nsIDOMFormListener.h"
#include "nsIDOMXULListener.h"
#include "nsIDOMFocusListener.h"
#include "nsIDocument.h"
#include "nsIAccessibilityService.h"
#include "nsIWebProgressListener.h"
#include "nsIWeakReference.h"
#include "nsITimer.h"
#include "nsITimerCallback.h"
#include "nsIWebProgress.h"
class nsDocAccessibleMixin
{
public:
nsDocAccessibleMixin(nsIDocument *doc);
nsDocAccessibleMixin(nsIWeakReference *aShell);
virtual ~nsDocAccessibleMixin();
NS_DECL_NSIACCESSIBLEDOCUMENT
protected:
NS_IMETHOD GetDocShellFromPS(nsIPresShell* aPresShell, nsIDocShell** aDocShell);
nsCOMPtr<nsIDocument> mDocument;
};
class nsRootAccessible : public nsAccessible,
public nsDocAccessibleMixin,
public nsIAccessibleDocument,
public nsIAccessibleEventReceiver,
public nsIDOMFocusListener,
public nsIDOMFormListener,
public nsIDOMXULListener,
public nsIWebProgressListener,
public nsITimerCallback,
public nsSupportsWeakReference
{
NS_DECL_ISUPPORTS_INHERITED
public:
enum EBusyState {eBusyStateUninitialized, eBusyStateLoading, eBusyStateDone};
nsRootAccessible(nsIWeakReference* aShell);
virtual ~nsRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccName(nsAWritableString& aAccName);
NS_IMETHOD GetAccValue(nsAWritableString& aAccValue);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccRole(PRUint32 *aAccRole);
NS_IMETHOD GetAccState(PRUint32 *aAccState);
// ----- nsIAccessibleEventReceiver -------------------
NS_IMETHOD AddAccessibleEventListener(nsIAccessibleEventListener *aListener);
NS_IMETHOD RemoveAccessibleEventListener();
// ----- nsIDOMEventListener --------------------------
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
// ----- nsIDOMFocusListener --------------------------
NS_IMETHOD Focus(nsIDOMEvent* aEvent);
NS_IMETHOD Blur(nsIDOMEvent* aEvent);
// ----- nsIDOMFormListener ---------------------------
NS_IMETHOD Submit(nsIDOMEvent* aEvent);
NS_IMETHOD Reset(nsIDOMEvent* aEvent);
NS_IMETHOD Change(nsIDOMEvent* aEvent);
NS_IMETHOD Select(nsIDOMEvent* aEvent);
NS_IMETHOD Input(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent);
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent);
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent);
NS_IMETHOD_(void) Notify(nsITimer *timer);
NS_DECL_NSIACCESSIBLEDOCUMENT
NS_DECL_NSIWEBPROGRESSLISTENER
protected:
NS_IMETHOD GetTargetNode(nsIDOMEvent *aEvent, nsCOMPtr<nsIDOMNode>& aTargetNode);
virtual void GetBounds(nsRect& aRect, nsIFrame** aRelativeFrame);
virtual nsIFrame* GetFrame();
void FireAccessibleFocusEvent(nsIAccessible *focusAccessible, nsIDOMNode *focusNode);
void StartDocReadyTimer();
static PRUint32 gInstanceCount;
// mListener is not a com pointer. We don't own the listener
// it is the callers responsibility to remove the listener
// otherwise we will get into circular referencing problems
// We don't need a weak reference, because we're owned by this listener
nsIAccessibleEventListener *mListener;
static nsIDOMNode * gLastFocusedNode; // we do our own refcounting for this
nsCOMPtr<nsITimer> mTimer;
nsCOMPtr<nsIWebProgress> mWebProgress;
nsCOMPtr<nsIAccessibilityService> mAccService;
EBusyState mBusy;
};
#endif

View File

@@ -0,0 +1,680 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s): John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsFormControlAccessible.h"
#include "nsIAtom.h"
#include "nsIComboboxControlFrame.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsIFrame.h"
#include "nsIListControlFrame.h"
#include "nsISelectControlFrame.h"
#include "nsLayoutAtoms.h"
#include "nsRootAccessible.h"
#include "nsSelectAccessible.h"
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/** Constructor -- cache our parent */
nsSelectListAccessible::nsSelectListAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell)
:nsAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** Return our parents bounds */
NS_IMETHODIMP nsSelectListAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return mParent->AccGetBounds(x,y,width,height);
}
/** Return our cached parent */
NS_IMETHODIMP nsSelectListAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_ADDREF(*_retval);
return NS_OK;
}
/** We are a list */
NS_IMETHODIMP nsSelectListAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LIST;
return NS_OK;
}
/** We are an only child */
NS_IMETHODIMP nsSelectListAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/** We are an only child */
NS_IMETHODIMP nsSelectListAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* nsSelectOptionAccessible
*/
/** Constructor -- cache our parent */
nsSelectOptionAccessible::nsSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** We are a ListItem */
NS_IMETHODIMP nsSelectOptionAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LISTITEM;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsSelectOptionAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* Get our Name from our Content's subtree
*/
NS_IMETHODIMP nsSelectOptionAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIContent> content (do_QueryInterface(mDOMNode));
if (!content) {
return NS_ERROR_FAILURE;
}
nsAutoString option;
nsresult rv = AppendFlatStringFromSubtree(content, &option);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
option.CompressWhitespace();
_retval.Assign(option);
}
return rv;
}
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/** ----- nsListboxAccessible ----- */
/** Constructor */
nsListboxAccessible::nsListboxAccessible(nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
}
/** We are a window, as far as MSAA is concerned */
NS_IMETHODIMP nsListboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_WINDOW;
return NS_OK;
}
/**
* We always have 1 child: a subclass of nsSelectListAccessible.
*/
NS_IMETHODIMP nsListboxAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/**
* As a nsHTMLListboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsListboxAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/** ----- nsComboboxAccessible ----- */
/**
* Constructor -- set initial state - closed, register ourself
*/
nsComboboxAccessible::nsComboboxAccessible(nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
SetupMenuListener();
}
/**
* Destructor -- If we are registered, remove ourselves as a listener.
*/
nsComboboxAccessible::~nsComboboxAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
}
}
/**
* Inherit the ISupports impl from nsAccessible,
* handle nsIDOMXULListener and nsIAccessibleSelectable ourself
*/
NS_IMPL_ISUPPORTS_INHERITED2(nsComboboxAccessible, nsAccessible, nsIDOMXULListener, nsIAccessibleSelectable)
/**
* If we aren't already registered, register ourselves as a
* listener to "popupshowing" events on our DOM node. Set our
* state to registered, but don't notify MSAA as they
* don't need to know about this state.
*/
void
nsComboboxAccessible::SetupMenuListener()
{
// if not already registered as a popup listener, register ourself
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver && NS_SUCCEEDED(eventReceiver->AddEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE)))
mRegistered = PR_TRUE;
}
}
/** We are a combobox */
NS_IMETHODIMP nsComboboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_COMBOBOX;
return NS_OK;
}
/**
* We always have 3 children: TextField, Button, Window. In that order
*/
NS_IMETHODIMP nsComboboxAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 3;
return NS_OK;
}
/**
* nsIAccessibleSelectable method. No-op because our selection is returned through
* GetValue(). This _may_ change just to provide additional info for the vendors
* and another option for them to get at stuff. Despite the fact that we are
* single selection only.
*/
NS_IMETHODIMP nsComboboxAccessible::GetSelectedChildren(nsISupportsArray **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* As a nsComboboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
* STATE_HASPOPUP
* STATE_EXPANDED
* STATE_COLLAPSED
*/
NS_IMETHODIMP nsComboboxAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
if (mOpen)
*_retval |= STATE_EXPANDED;
else
*_retval |= STATE_COLLAPSED;
*_retval |= STATE_HASPOPUP | STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/**
* Set our state to open and (TBD) fire an event to MSAA saying our state
* has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::PopupShowing(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
/* TBD send state change event */
return NS_OK;
}
/**
* Set our state to not open and (TDB) fire an event to MSAA saying
* our state has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::PopupHiding(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
/**
* Set our state to not open and (TDB) fire an event to MSAA saying
* our state has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
/** ----- nsComboboxTextFieldAccessible ----- */
/** Constructor */
nsComboboxTextFieldAccessible::nsComboboxTextFieldAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/**
* Currently gets the text from the first option, needs to check for selection
* and then return that text.
* Walks the Frame tree and checks for proper frames.
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccValue(nsAWritableString& _retval)
{
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!frame || !context)
return NS_ERROR_FAILURE;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return NS_ERROR_FAILURE;
#endif
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::textFrame))
return NS_ERROR_FAILURE;
#endif
nsCOMPtr<nsIContent> content;
frame->GetContent(getter_AddRefs(content));
if (!content)
return NS_ERROR_FAILURE;
AppendFlatStringFromSubtree(content, &_retval);
return NS_OK;
}
/**
* Gets the bounds for the BlockFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxTextFieldAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our first child's frame
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!frame || !context)
return;
frame->FirstChild(context, nsnull, aBoundingFrame);
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetRect(aBounds);
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* We are the first child of our parent, no previous sibling
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* Our role is currently only static text, but we should be able to have
* editable text here and we need to check that case.
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_STATICTEXT;
return NS_OK;
}
/**
* As a nsComboboxTextFieldAccessible we can have the following states:
* STATE_READONLY
* STATE_FOCUSED
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/** -----ComboboxButtonAccessible ----- */
/** Constructor -- cache our parent */
nsComboboxButtonAccessible::nsComboboxButtonAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** Just one action ( click ). */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/**
* Gets the bounds for the gfxButtonControlFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxButtonAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our second child's frame
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!context)
return;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetNextSibling(aBoundingFrame);
frame->GetNextSibling(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::gfxButtonControlFrame))
return;
#endif
frame->GetRect(aBounds);
}
/** We are a button. */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* Gets the name from GetAccActionName()
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccName(nsAWritableString& _retval)
{
return GetAccActionName(eAction_Click, _retval);
}
/**
* Our action name is the reverse of our state:
* if we are closed -> open is our name.
* if we are open -> closed is our name.
* Uses the frame to get the state, updated on every click
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (isOpen)
_retval = NS_LITERAL_STRING("Close");
else
_retval = NS_LITERAL_STRING("Open");
return NS_OK;
}
/**
* As a nsComboboxButtonAccessible we can have the following states:
* STATE_PRESSED
* STATE_FOCUSED
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
// we are open or closed --> pressed or not
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (isOpen)
*_retval |= STATE_PRESSED;
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
/** ----- nsComboboxWindowAccessible ----- */
/**
* Constructor -- cache our parent
*/
nsComboboxWindowAccessible::nsComboboxWindowAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/**
* As a nsComboboxWindowAccessible we can have the following states:
* STATE_FOCUSED
* STATE_FOCUSABLE
* STATE_INVISIBLE
* STATE_FLOATING
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
// we are open or closed
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame = nsnull;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (! isOpen)
*_retval |= STATE_INVISIBLE;
*_retval |= STATE_FOCUSABLE | STATE_FLOATING;
return NS_OK;
}
/** We are a window */
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_WINDOW;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* We are the last sibling of our parent.
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/**
* Gets the bounds for the areaFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxWindowAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our first option
nsCOMPtr<nsIDOMNode> child;
mDOMNode->GetFirstChild(getter_AddRefs(child));
// now get its frame
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
*aBoundingFrame = nsnull;
return;
}
nsIFrame* frame = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(child));
shell->GetPrimaryFrameFor(content, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetParent(aBoundingFrame);
frame->GetParent(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::areaFrame))
return;
#endif
frame->GetRect(aBounds);
}

View File

@@ -0,0 +1,237 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s): John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsSelectAccessible_h__
#define __nsSelectAccessible_h__
#include "nsBaseWidgetAccessible.h"
#include "nsIAccessibleSelectable.h"
#include "nsIDOMXULListener.h"
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/**
* The list that contains all the options in the select.
*/
class nsSelectListAccessible : public nsAccessible
{
public:
nsSelectListAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsSelectListAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* Options inside the select, contained within the list
*/
class nsSelectOptionAccessible : public nsLeafAccessible
{
public:
nsSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsSelectOptionAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/**
* A class that represents the Listbox widget.
*/
class nsListboxAccessible : public nsAccessible
{
public:
nsListboxAccessible (nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsListboxAccessible () {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/**
* A class the represents the HTML Combobox widget.
*/
class nsComboboxAccessible : public nsAccessible,
public nsIAccessibleSelectable,
public nsIDOMXULListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLESELECTABLE
nsComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxAccessible();
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
/* ----- nsIDOMXULListener ----- */
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
virtual void SetupMenuListener();
protected:
PRBool mRegistered;
PRBool mOpen;
};
/**
* A class the represents the text field in the Combobox to the left
* of the drop down button
*/
class nsComboboxTextFieldAccessible : public nsLeafAccessible
{
public:
nsComboboxTextFieldAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxTextFieldAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* A class that represents the button inside the Select to the
* right of the text field
*/
class nsComboboxButtonAccessible : public nsLeafAccessible
{
public:
nsComboboxButtonAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxButtonAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* A class that represents the window that lives to the right
* of the drop down button inside the Select. This is the window
* that is made visible when the button is pressed.
*/
class nsComboboxWindowAccessible : public nsAccessible
{
public:
nsComboboxWindowAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxWindowAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
#endif

View File

@@ -0,0 +1,71 @@
#
# 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): John Gaunt (jgaunt@netscape.com)
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = accessibility
LIBRARY_NAME = accessibility_html_s
REQUIRES = \
content \
content_xul \
docshell \
dom \
gfx \
gfx2 \
htmlparser \
imglib2 \
intl \
layout \
locale \
necko \
string \
timer \
uriloader \
view \
webshell \
widget \
xpcom \
$(NULL)
CPPSRCS = \
nsHTMLAreaAccessible.cpp \
nsHTMLFormControlAccessible.cpp \
nsHTMLIFrameRootAccessible.cpp \
nsHTMLImageAccessible.cpp \
nsHTMLLinkAccessible.cpp \
nsHTMLSelectAccessible.cpp \
nsHTMLTableAccessible.cpp \
nsHTMLTextAccessible.cpp \
$(NULL)
# we don't want the shared lib, but we want to force the creation of a static lib.
FORCE_STATIC_LIB = 1
include $(topsrcdir)/config/rules.mk
LOCAL_INCLUDES = \
-I$(srcdir)/../base \
$(NULL)

View File

@@ -0,0 +1,79 @@
#!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 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): John Gaunt (jgaunt@netscape.com)
DEPTH = ..\..\..
MODULE = accessibility
LIBRARY_NAME = accessibility_html_s
REQUIRES = \
content \
content_xul \
docshell \
dom \
gfx \
gfx2 \
htmlparser \
imglib2 \
intl \
layout \
locale \
necko \
string \
timer \
uriloader \
view \
webshell \
widget \
xpcom \
$(NULL)
CPP_OBJS = \
.\$(OBJDIR)\nsHTMLAreaAccessible.obj \
.\$(OBJDIR)\nsHTMLFormControlAccessible.obj \
.\$(OBJDIR)\nsHTMLIFrameRootAccessible.obj \
.\$(OBJDIR)\nsHTMLImageAccessible.obj \
.\$(OBJDIR)\nsHTMLLinkAccessible.obj \
.\$(OBJDIR)\nsHTMLSelectAccessible.obj \
.\$(OBJDIR)\nsHTMLTableAccessible.obj \
.\$(OBJDIR)\nsHTMLTextAccessible.obj \
$(NULL)
EXPORTS = \
$(NULL)
LINCS = \
-I..\base \
-I..\..\..\layout\html\forms\public \
-I..\..\..\layout\html\forms\src \
-I..\..\..\layout\html\base\src \
$(NULL)
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,169 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsHTMLAreaAccessible.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "nsIDOMElement.h"
#include "nsIDOMHTMLAreaElement.h"
// --- area -----
nsHTMLAreaAccessible::nsHTMLAreaAccessible(nsIDOMNode *aDomNode, nsIAccessible *aAccParent, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell), mAccParent(aAccParent)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccName(nsAWritableString & _retval)
{
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
if (elt) {
nsAutoString hrefString;
elt->GetAttribute(NS_LITERAL_STRING("title"), _retval);
}
return NS_OK;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LINK;
return NS_OK;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
if (elt)
elt->GetAttribute(NS_LITERAL_STRING("href"), _retval);
return NS_OK;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccDescription(nsAWritableString& _retval)
{
// Still to do - follow IE's standard here
nsCOMPtr<nsIDOMHTMLAreaElement> area(do_QueryInterface(mDOMNode));
if (area)
area->GetShape(_retval);
return NS_OK;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = mAccParent;
NS_IF_ADDREF(*aAccParent);
return NS_OK;
}
nsIAccessible *nsHTMLAreaAccessible::CreateAreaAccessible(nsIDOMNode *aDOMNode)
{
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
if (accService) {
nsIAccessible* acc = nsnull;
accService->CreateHTMLAreaAccessible(mPresShell, aDOMNode, mAccParent, &acc);
return acc;
}
return nsnull;
}
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccNextSibling(nsIAccessible * *aAccNextSibling)
{
*aAccNextSibling = nsnull;
nsCOMPtr<nsIDOMNode> nextNode;
mDOMNode->GetNextSibling(getter_AddRefs(nextNode));
if (nextNode)
*aAccNextSibling = CreateAreaAccessible(nextNode);
return NS_OK;
}
/* readonly attribute nsIAccessible accPreviousSibling; */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccPreviousSibling(nsIAccessible * *aAccPrevSibling)
{
*aAccPrevSibling = nsnull;
nsCOMPtr<nsIDOMNode> prevNode;
mDOMNode->GetPreviousSibling(getter_AddRefs(prevNode));
if (prevNode)
*aAccPrevSibling = CreateAreaAccessible(prevNode);
return NS_OK;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsHTMLAreaAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
//nsIFrame *frame;
// Do a better job on this later - need to use GetRect on mAreas of nsImageMap from nsImageFrame
//return mAccParent->nsAccessible::AccGetBounds(x,y,width,height);
*x = *y = *width = *height = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,71 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLAreaAccessible_H_
#define _nsHTMLAreaAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsAccessible.h"
/* Accessible for image map areas - must be child of image
*/
class nsHTMLAreaAccessible : public nsLinkableAccessible
{
public:
nsHTMLAreaAccessible(nsIDOMNode *domNode, nsIAccessible *accParent, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString & _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccNextSibling(nsIAccessible * *aAccNextSibling);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible * *aAccPreviousSibling);
NS_IMETHOD GetAccDescription(nsAWritableString& _retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
protected:
nsIAccessible *CreateAreaAccessible(nsIDOMNode *aDOMNode);
nsCOMPtr<nsIAccessible> mAccParent;
};
#endif

View File

@@ -0,0 +1,376 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsAccessible.h"
#include "nsFormControlAccessible.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLLabelElement.h"
#include "nsIDOMHTMLTextAreaElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsIDOMXULButtonElement.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsIDOMXULSelectCntrlEl.h"
#include "nsINameSpaceManager.h"
#include "nsIFrame.h"
#include "nsISelectionController.h"
#include "nsReadableUtils.h"
#include "nsWeakReference.h"
// --- checkbox -----
nsHTMLCheckboxAccessible::nsHTMLCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_CHECKBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) { // 0 is the magic value for default action
// check or uncheck
PRUint32 state;
GetAccState(&state);
if (state & STATE_CHECKED)
_retval = NS_LITERAL_STRING("uncheck");
else
_retval = NS_LITERAL_STRING("check");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) { // 0 is the magic value for default action
nsCOMPtr<nsIDOMHTMLInputElement> htmlCheckboxElement(do_QueryInterface(mDOMNode));
PRBool checked = PR_FALSE;
if (htmlCheckboxElement) {
htmlCheckboxElement->GetChecked(&checked);
htmlCheckboxElement->SetChecked(!checked);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccState(PRUint32 *_retval)
{
nsFormControlAccessible::GetAccState(_retval);
PRBool checked = PR_FALSE; // Radio buttons and check boxes can be checked
nsCOMPtr<nsIDOMHTMLInputElement> htmlCheckboxElement(do_QueryInterface(mDOMNode));
if (htmlCheckboxElement)
htmlCheckboxElement->GetChecked(&checked);
if (checked)
*_retval |= STATE_CHECKED;
return NS_OK;
}
//------ Radio button -------
nsHTMLRadioButtonAccessible::nsHTMLRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsRadioButtonAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == eAction_Click) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(mDOMNode));
element->Click();
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccState(PRUint32 *_retval)
{
nsFormControlAccessible::GetAccState(_retval);
PRBool checked = PR_FALSE; // Radio buttons and check boxes can be checked
nsCOMPtr<nsIDOMHTMLInputElement> htmlRadioElement(do_QueryInterface(mDOMNode));
if (htmlRadioElement)
htmlRadioElement->GetChecked(&checked);
if (checked)
*_retval |= STATE_CHECKED;
return NS_OK;
}
// ----- Button -----
nsHTMLButtonAccessible::nsHTMLButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("press");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(mDOMNode));
element->Click();
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLInputElement> button(do_QueryInterface(mDOMNode));
if (!button)
return NS_ERROR_FAILURE;
nsAutoString name;
button->GetValue(name);
name.CompressWhitespace();
_retval.Assign(name);
return NS_OK;
}
// ----- HTML 4 Button: can contain arbitrary HTML content -----
nsHTML4ButtonAccessible::nsHTML4ButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsBlockAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("press");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) {
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
if ( inputElement )
{
inputElement->Click();
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccState(PRUint32 *_retval)
{
nsAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccName(nsAWritableString& _retval)
{
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsAutoString name;
if (content)
rv = AppendFlatStringFromSubtree(content, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
return rv;
}
// --- textfield -----
nsHTMLTextFieldAccessible::nsHTMLTextFieldAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TEXT;
return NS_OK;
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccValue(nsAWritableString& _retval)
{
PRUint32 state;
GetAccState(&state);
if (state & STATE_PROTECTED) // Don't return password text!
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea(do_QueryInterface(mDOMNode));
if (textArea) {
textArea->GetValue(_retval);
return NS_OK;
}
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
if (inputElement) {
inputElement->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccState(PRUint32 *_retval)
{
// can be
// focusable, focused, protected. readonly, unavailable, selected
nsAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
PRBool isReadOnly = PR_FALSE;
elt->HasAttribute(NS_LITERAL_STRING("readonly"), &isReadOnly);
if (isReadOnly)
*_retval |= STATE_READONLY;
// Get current selection and find out if current node is in it
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsIFrame *frame;
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame))) {
nsCOMPtr<nsISelectionController> selCon;
frame->GetSelectionController(context,getter_AddRefs(selCon));
if (selCon) {
nsCOMPtr<nsISelection> domSel;
selCon->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(domSel));
if (domSel) {
PRBool isCollapsed = PR_TRUE;
domSel->GetIsCollapsed(&isCollapsed);
if (!isCollapsed)
*_retval |=STATE_SELECTED;
}
}
}
if (!textArea) {
if (inputElement) {
/////// ====== Must be a password field, so it uses nsIDOMHTMLFormControl ==== ///////
PRUint32 moreStates = 0;
nsresult rv = nsFormControlAccessible::GetAccState(&moreStates);
*_retval |= moreStates;
return rv;
}
return NS_ERROR_FAILURE;
}
PRBool disabled = PR_FALSE;
textArea->GetDisabled(&disabled);
if (disabled)
*_retval |= STATE_UNAVAILABLE;
return NS_OK;
}

View File

@@ -0,0 +1,103 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLFormControlAccessible_H_
#define _nsHTMLFormControlAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsFormControlAccessible.h"
class nsICheckboxControlFrame;
class nsHTMLCheckboxAccessible : public nsFormControlAccessible
{
public:
nsHTMLCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLRadioButtonAccessible : public nsRadioButtonAccessible
{
public:
nsHTMLRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLButtonAccessible : public nsFormControlAccessible
{
public:
nsHTMLButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
class nsHTML4ButtonAccessible : public nsBlockAccessible
{
public:
nsHTML4ButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
class nsHTMLTextFieldAccessible : public nsFormControlAccessible
{
public:
nsHTMLTextFieldAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,205 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLIFrameRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMDocument.h"
#include "nsReadableUtils.h"
NS_INTERFACE_MAP_BEGIN(nsHTMLIFrameRootAccessible)
NS_INTERFACE_MAP_END_INHERITING(nsRootAccessible)
NS_IMPL_ADDREF_INHERITED(nsHTMLIFrameRootAccessible, nsRootAccessible);
NS_IMPL_RELEASE_INHERITED(nsHTMLIFrameRootAccessible, nsRootAccessible);
NS_IMPL_ADDREF_INHERITED(nsHTMLIFrameAccessible, nsBlockAccessible);
NS_IMPL_RELEASE_INHERITED(nsHTMLIFrameAccessible, nsBlockAccessible);
NS_IMETHODIMP
nsHTMLIFrameAccessible::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
NS_ASSERTION(aInstancePtr, "QueryInterface requires a non-NULL destination!");
if ( !aInstancePtr )
return NS_ERROR_NULL_POINTER;
if (aIID.Equals(NS_GET_IID(nsIAccessibleDocument))) {
*aInstancePtr = (void*)(nsIAccessibleDocument*) this;
NS_IF_ADDREF(this);
return NS_OK;
}
return nsBlockAccessible::QueryInterface(aIID, aInstancePtr);
}
nsHTMLIFrameAccessible::nsHTMLIFrameAccessible(nsIDOMNode* aNode, nsIAccessible* aRoot, nsIWeakReference* aShell, nsIDocument *aDoc):
nsBlockAccessible(aNode, aShell), mRootAccessible(aRoot), nsDocAccessibleMixin(aDoc)
{
}
/* attribute wstring accName; */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccName(nsAWritableString& aAccName)
{
return GetTitle(aAccName);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccValue(nsAWritableString& aAccValue)
{
return GetURL(aAccValue);
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return mRootAccessible->GetAccFirstChild(_retval);
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return mRootAccessible->GetAccLastChild(_retval);
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccChildCount(PRInt32 *_retval)
{
return mRootAccessible->GetAccChildCount(_retval);
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PANE;
return NS_OK;
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccState(PRUint32 *aAccState)
{
return nsAccessible::GetAccState(aAccState);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetURL(nsAWritableString& aURL)
{
return nsDocAccessibleMixin::GetURL(aURL);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetTitle(nsAWritableString& aTitle)
{
return nsDocAccessibleMixin::GetTitle(aTitle);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetMimeType(nsAWritableString& aMimeType)
{
return nsDocAccessibleMixin::GetMimeType(aMimeType);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetDocType(nsAWritableString& aDocType)
{
return nsDocAccessibleMixin::GetDocType(aDocType);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
return nsDocAccessibleMixin::GetNameSpaceURIForID(aNameSpaceID, aNameSpaceURI);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetDocument(nsIDocument **doc)
{
return nsDocAccessibleMixin::GetDocument(doc);
}
//=============================//
// nsHTMLIFrameRootAccessible //
//=============================//
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsHTMLIFrameRootAccessible::nsHTMLIFrameRootAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
mOuterNode(aNode), nsRootAccessible(aShell)
{
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsHTMLIFrameRootAccessible::~nsHTMLIFrameRootAccessible()
{
}
void nsHTMLIFrameRootAccessible::Init()
{
if (!mOuterAccessible) {
nsCOMPtr<nsIDOMDocument> domDoc;
mOuterNode->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc(do_QueryInterface(domDoc));
if (doc) {
nsCOMPtr<nsIPresShell> parentShell;
doc->GetShellAt(0, getter_AddRefs(parentShell));
if (parentShell) {
nsCOMPtr<nsIContent> content(do_QueryInterface(mOuterNode));
nsIFrame* frame = nsnull;
parentShell->GetPrimaryFrameFor(content, &frame);
NS_ASSERTION(frame, "No outer frame.");
frame->GetAccessible(getter_AddRefs(mOuterAccessible));
NS_ASSERTION(mOuterAccessible, "Something's wrong - there's no accessible for the outer parent of this frame.");
}
}
}
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccParent(nsIAccessible * *_retval)
{
Init();
return mOuterAccessible->GetAccParent(_retval);
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
Init();
return mOuterAccessible->GetAccNextSibling(_retval);
}
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
Init();
return mOuterAccessible->GetAccPreviousSibling(_retval);
}

View File

@@ -0,0 +1,101 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsIFrameRootAccessible_H_
#define _nsIFrameRootAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsRootAccessible.h"
#include "nsAccessible.h"
#include "nsIAccessibleDocument.h"
class nsIWebShell;
class nsIWeakReference;
class nsHTMLIFrameAccessible : public nsBlockAccessible,
public nsIAccessibleDocument,
public nsDocAccessibleMixin
{
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLEDOCUMENT
public:
nsHTMLIFrameAccessible(nsIDOMNode* aNode, nsIAccessible* aRoot, nsIWeakReference* aShell, nsIDocument *doc);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& aAccName);
NS_IMETHOD GetAccValue(nsAWritableString& AccValue);
NS_IMETHOD GetAccRole(PRUint32 *aAccRole);
NS_IMETHOD GetAccState(PRUint32 *aAccState);
protected:
nsCOMPtr<nsIAccessible> mRootAccessible;
};
class nsHTMLIFrameRootAccessible : public nsRootAccessible
{
NS_DECL_ISUPPORTS_INHERITED
public:
nsHTMLIFrameRootAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
virtual ~nsHTMLIFrameRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
/* nsIAccessible getAccNextSibling (); */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
protected:
void Init();
// In these variable names, "outer" relates to the nsHTMLIFrameAccessible, as opposed to the
// nsHTMLIFrameRootAccessible which is "inner".
// The outer node is a <browser> or <iframe> tag, whereas the inner node corresponds to the inner document root.
nsCOMPtr<nsIDOMNode> mOuterNode;
nsCOMPtr<nsIAccessible> mOuterAccessible;
};
#endif

View File

@@ -0,0 +1,205 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsHTMLImageAccessible.h"
#include "nsReadableUtils.h"
#include "nsAccessible.h"
#include "nsIHTMLDocument.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "imgIRequest.h"
#include "imgIContainer.h"
#include "nsIImageFrame.h"
// --- image -----
nsHTMLImageAccessible::nsHTMLImageAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDOMNode, aShell)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(aDOMNode));
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell)
return;
shell->GetDocument(getter_AddRefs(doc));
nsAutoString mapElementName;
if (doc && element) {
nsCOMPtr<nsIHTMLDocument> htmlDoc(do_QueryInterface(doc));
element->GetAttribute(NS_LITERAL_STRING("usemap"),mapElementName);
if (htmlDoc && !mapElementName.IsEmpty()) {
if (mapElementName.CharAt(0) == '#')
mapElementName.Cut(0,1);
htmlDoc->GetImageMap(mapElementName, getter_AddRefs(mMapElement));
}
}
}
NS_IMETHODIMP nsHTMLImageAccessible::GetAccState(PRUint32 *_retval)
{
// The state is a bitfield, get our inherited state, then logically OR it with STATE_ANIMATED if this
// is an animated image.
nsLinkableAccessible::GetAccState(_retval);
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
nsIFrame *frame = nsnull;
if (content && shell)
shell->GetPrimaryFrameFor(content, &frame);
nsCOMPtr<nsIImageFrame> imageFrame(do_QueryInterface(frame));
nsCOMPtr<imgIRequest> imageRequest;
if (imageFrame)
imageFrame->GetImageRequest(getter_AddRefs(imageRequest));
nsCOMPtr<imgIContainer> imgContainer;
if (imageRequest)
imageRequest->GetImage(getter_AddRefs(imgContainer));
if (imgContainer) {
PRUint32 numFrames;
imgContainer->GetNumFrames(&numFrames);
if (numFrames > 1)
*_retval |= STATE_ANIMATED;
}
return NS_OK;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccName(nsAWritableString& _retval)
{
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIContent> imageContent(do_QueryInterface(mDOMNode));
if (imageContent) {
nsAutoString name;
rv = AppendFlatStringFromContentNode(imageContent, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
}
return rv;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_GRAPHIC;
return NS_OK;
}
nsIAccessible *nsHTMLImageAccessible::CreateAreaAccessible(PRUint32 areaNum)
{
if (!mMapElement)
return nsnull;
if (areaNum == -1) {
PRInt32 numAreaMaps;
GetAccChildCount(&numAreaMaps);
if (numAreaMaps<=0)
return nsnull;
areaNum = NS_STATIC_CAST(PRUint32,numAreaMaps-1);
}
nsIDOMHTMLCollection *mapAreas;
mMapElement->GetAreas(&mapAreas);
if (!mapAreas)
return nsnull;
nsIDOMNode *domNode = nsnull;
mapAreas->Item(areaNum,&domNode);
if (!domNode)
return nsnull;
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
if (!accService)
return nsnull;
if (accService) {
nsIAccessible* acc = nsnull;
accService->CreateHTMLAreaAccessible(mPresShell, domNode, this, &acc);
return acc;
}
return nsnull;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = CreateAreaAccessible(0);
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = CreateAreaAccessible(-1);
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
if (mMapElement) {
nsIDOMHTMLCollection *mapAreas;
mMapElement->GetAreas(&mapAreas);
if (mapAreas) {
PRUint32 length;
mapAreas->GetLength(&length);
*_retval = NS_STATIC_CAST(PRInt32, length);
}
}
return NS_OK;
}

View File

@@ -0,0 +1,71 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLImageAccessible_H_
#define _nsHTMLImageAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
#include "nsIFrame.h"
#include "nsIImageFrame.h"
#include "nsIDOMHTMLMapElement.h"
/* Accessible for supporting images
* supports:
* - gets name, role
* - support basic state
*/
class nsHTMLImageAccessible : public nsLinkableAccessible
{
public:
nsHTMLImageAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
protected:
nsIAccessible *CreateAreaAccessible(PRUint32 areaNum);
nsCOMPtr<nsIDOMHTMLMapElement> mMapElement;
};
#endif

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLLinkAccessible.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
#include "nsILink.h"
#include "nsILinkHandler.h"
#include "nsISelection.h"
#include "nsISelectionController.h"
#include "nsIPresContext.h"
#include "nsReadableUtils.h"
#include "nsIDOMElement.h"
nsHTMLLinkAccessible::nsHTMLLinkAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccName(nsAWritableString& _retval)
{
if (!IsALink()) // Also initializes private data members
return NS_ERROR_FAILURE;
nsAutoString name;
nsresult rv = AppendFlatStringFromSubtree(mLinkContent, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
return rv;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LINK;
return NS_OK;
}

View File

@@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLLinkAccessible_H_
#define _nsHTMLLinkAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
class nsHTMLLinkAccessible : public nsLinkableAccessible
{
public:
nsHTMLLinkAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,589 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIFrame.h"
#include "nsIComboboxControlFrame.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsIListControlFrame.h"
#include "nsIServiceManager.h"
#include "nsLayoutAtoms.h"
/**
* Selects, Listboxes and Comboboxes, are made up of a number of different
* widgets, some of which are shared between the two. This file contains
* all of the widgets for both of the Selects, for HTML only. Some of them
* extend classes from nsSelectAccessible.cpp, which contains base classes
* that are also extended by the XUL Select Accessibility support.
*
* Listbox:
* - nsHTMLListboxAccessible
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*
* Comboboxes:
* - nsHTMLComboboxAccessilbe
* - nsHTMLComboboxTextFieldAccessible
* - nsHTMLComboboxButtonAccessible
* - nsHTMLComboboxWindowAccessilbe
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*/
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/** ----- nsHTMLSelectListAccessible ----- */
/** Default Constructor */
nsHTMLSelectListAccessible::nsHTMLSelectListAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell)
:nsSelectListAccessible(aParent, aDOMNode, aShell)
{
}
/**
* As a nsHTMLSelectListAccessible we can have the following states:
* STATE_MULTISELECTABLE
* STATE_EXTSELECTABLE
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccState(PRUint32 *_retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if ( select ) {
PRBool multiple;
select->GetMultiple(&multiple);
if ( multiple )
*_retval |= STATE_MULTISELECTABLE | STATE_EXTSELECTABLE;
}
return NS_OK;
}
/**
* Gets the last child of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccLastChild(nsIAccessible **_retval)
{
nsCOMPtr<nsIDOMNode> last;
mDOMNode->GetLastChild(getter_AddRefs(last));
*_retval = new nsHTMLSelectOptionAccessible(this, last, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Gets the First child of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
nsCOMPtr<nsIDOMNode> first;
mDOMNode->GetFirstChild(getter_AddRefs(first));
*_retval = new nsHTMLSelectOptionAccessible(this, first, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** ----- nsHTMLSelectOptionAccessible ----- */
/** Default Constructor */
nsHTMLSelectOptionAccessible::nsHTMLSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsSelectOptionAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Gets the next sibling of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMNode> next;
mDOMNode->GetNextSibling(getter_AddRefs(next));
if (next) {
*_retval = new nsHTMLSelectOptionAccessible(mParent, next, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
}
return NS_OK;
}
/**
* Gets the previous sibling of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMNode> prev;
mDOMNode->GetPreviousSibling(getter_AddRefs(prev));
if (prev) {
*_retval = new nsHTMLSelectOptionAccessible(mParent, prev, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
}
return NS_OK;
}
/**
* As a nsHTMLSelectOptionAccessible we can have the following states:
* STATE_SELECTABLE
* STATE_SELECTED
* STATE_FOCUSED
* STATE_FOCUSABLE
* STATE_INVISIBLE -- not implemented yet
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccState(PRUint32 *_retval)
{
*_retval = 0;
nsCOMPtr<nsIDOMNode> focusedOptionNode, parentNode;
mParent->AccGetDOMNode(getter_AddRefs(parentNode));
// find out if we are the focused node
GetFocusedOptionNode(mPresShell, parentNode, focusedOptionNode);
if (focusedOptionNode == mDOMNode)
*_retval |= STATE_FOCUSED;
// Are we selected?
nsCOMPtr<nsIDOMHTMLOptionElement> option (do_QueryInterface(mDOMNode));
if ( option ) {
PRBool isSelected = PR_FALSE;
option->GetSelected(&isSelected);
if ( isSelected )
*_retval |= STATE_SELECTED;
}
*_retval |= STATE_SELECTABLE | STATE_FOCUSABLE;
return NS_OK;
}
/**
* Helper method for getting the focused DOM Node from our parent(list) node. We
* need to use the frame to get the focused option because for some reason we
* weren't getting the proper notification when the focus changed using the DOM
*/
nsresult nsHTMLSelectOptionAccessible::GetFocusedOptionNode(nsIWeakReference *aPresShell,
nsIDOMNode *aListNode,
nsCOMPtr<nsIDOMNode>& aFocusedOptionNode)
{
NS_ASSERTION(aListNode, "Called GetFocusedOptionNode without a valid list node");
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(aPresShell));
if (!shell)
return NS_ERROR_FAILURE;
nsIFrame *frame = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(aListNode));
shell->GetPrimaryFrameFor(content, &frame);
nsresult rv;
nsCOMPtr<nsIListControlFrame> listFrame(do_QueryInterface(frame, &rv));
if (NS_FAILED(rv))
return rv; // How can list content not have a list frame?
NS_ASSERTION(listFrame, "We don't have a list frame, but rv returned a success code.");
// Get what's focused by asking frame for "selected item".
PRInt32 focusedOptionIndex = 0;
rv = listFrame->GetSelectedIndex(&focusedOptionIndex);
nsCOMPtr<nsIDOMHTMLCollection> options;
// Get options
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement(do_QueryInterface(aListNode));
NS_ASSERTION(selectElement, "No select element where it should be");
rv = selectElement->GetOptions(getter_AddRefs(options));
}
// Either use options and focused index, or default to list node itself
if (NS_SUCCEEDED(rv) && options && focusedOptionIndex >= 0) // Something is focused
rv = options->Item(focusedOptionIndex, getter_AddRefs(aFocusedOptionNode));
else { // If no options in list or focusedOptionIndex <0, then we are not focused on an item
aFocusedOptionNode = aListNode; // return normal target content
rv = NS_OK;
}
return rv;
}
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/** ----- nsHTMLListboxAccessible ----- */
/** Constructor */
nsHTMLListboxAccessible::nsHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsListboxAccessible(aDOMNode, aShell)
{
}
/** Inherit the ISupports impl from nsAccessible, we handle nsIAccessibleSelectable */
NS_IMPL_ISUPPORTS_INHERITED1(nsHTMLListboxAccessible, nsListboxAccessible, nsIAccessibleSelectable)
/**
* Our last (and only) child is an nsHTMLSelectListAccessible object
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our first (and only) child is an nsHTMLSelectListAccessible object
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our value is the value of our ( first ) selected child. nsIDOMHTMLSelectElement
* returns this by default with GetValue().
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if ( select ) {
select->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
/**
* nsIAccessibleSelectable method.
* - gets from the Select DOMNode the list of all Select Options
* - iterates through all of the options looking for selected Options
* - creates IAccessible objects for selected Options
* - Returns the IAccessibles for selectd Options in the nsISupportsArray
*
* retval will be nsnull if:
* - there are no Options in the Select Element
* - there are Options but none are selected
* - the DOMNode is not a nsIDOMHTMLSelectElement ( shouldn't happen )
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetSelectedChildren(nsISupportsArray **_retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select(do_QueryInterface(mDOMNode));
if(select) {
nsCOMPtr<nsIDOMHTMLCollection> options;
// get all the options in the select
select->GetOptions(getter_AddRefs(options));
if (options) {
// set up variables we need to get the selected options and to get their nsIAccessile objects
PRUint32 length;
options->GetLength(&length);
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
nsCOMPtr<nsISupportsArray> selectedAccessibles;
NS_NewISupportsArray(getter_AddRefs(selectedAccessibles));
if (!selectedAccessibles || !accService)
return NS_ERROR_FAILURE;
// find the selected options and get the accessible objects;
PRBool isSelected = PR_FALSE;
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
for (PRUint32 i = 0 ; i < length ; i++) {
nsCOMPtr<nsIDOMNode> tempNode;
options->Item(i,getter_AddRefs(tempNode));
if (tempNode) {
nsCOMPtr<nsIDOMHTMLOptionElement> tempOption(do_QueryInterface(tempNode));
if (tempOption)
tempOption->GetSelected(&isSelected);
if (isSelected) {
nsCOMPtr<nsIAccessible> tempAccess;
accService->CreateHTMLSelectOptionAccessible(tempOption, this, context, getter_AddRefs(tempAccess));
if ( tempAccess )
selectedAccessibles->AppendElement(tempAccess);
isSelected = PR_FALSE;
}
}
}
selectedAccessibles->Count(&length); // reusing length
if ( length != 0 ) { // length of nsISupportsArray containing selected options
*_retval = selectedAccessibles;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
}
}
// no options, not a select or none of the options are selected
*_retval = nsnull;
return NS_OK;
}
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/** ----- nsHTMLComboboxAccessible ----- */
/** Constructor */
nsHTMLComboboxAccessible::nsHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsComboboxAccessible(aDOMNode, aShell)
{
}
/**
* Our last child is an nsHTMLComboboxWindowAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLComboboxWindowAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our last child is an nsHTMLComboboxTextFieldAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLComboboxTextFieldAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our value is the value of our ( first ) selected child. nsIDOMHTMLSelectElement
* returns this by default with GetValue().
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if (select) {
select->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
/** ----- nsHTMLComboboxTextFieldAccessible ----- */
/** Constructor */
nsHTMLComboboxTextFieldAccessible::nsHTMLComboboxTextFieldAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxTextFieldAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Our next sibling is an nsHTMLComboboxButtonAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxTextFieldAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxButtonAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** -----ComboboxButtonAccessible ----- */
/** Constructor -- cache our parent */
nsHTMLComboboxButtonAccessible::nsHTMLComboboxButtonAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxButtonAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Programmaticaly click on the button, causing either the display or
* the hiding of the drop down box ( window ).
* Walks the Frame tree and checks for proper frames.
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::AccDoAction(PRUint8 index)
{
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!context)
return NS_ERROR_FAILURE;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return NS_ERROR_FAILURE;
#endif
frame->GetNextSibling(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::gfxButtonControlFrame))
return NS_ERROR_FAILURE;
#endif
nsCOMPtr<nsIContent> content;
frame->GetContent(getter_AddRefs(content));
// We only have one action, click. Any other index is meaningless(wrong)
if (index == eAction_Click) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(content));
if (element)
{
element->Click();
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
/**
* Our next sibling is an nsHTMLComboboxWindowAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxWindowAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our next sibling is an nsHTMLComboboxTextFieldAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxTextFieldAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** ----- nsHTMLComboboxWindowAccessible ----- */
/**
* Constructor -- cache our parent
*/
nsHTMLComboboxWindowAccessible::nsHTMLComboboxWindowAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxWindowAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Our previous sibling is a nsHTMLComboboxButtonAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxButtonAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}

View File

@@ -0,0 +1,209 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsHTMLSelectAccessible_h__
#define __nsHTMLSelectAccessible_h__
#include "nsCOMPtr.h"
#include "nsIAccessibleSelectable.h"
#include "nsIDOMNode.h"
#include "nsIWeakReference.h"
#include "nsSelectAccessible.h"
/**
* Selects, Listboxes and Comboboxes, are made up of a number of different
* widgets, some of which are shared between the two. This file contains
* all of the widgets for both of the Selects, for HTML only. Some of them
* extend classes from nsSelectAccessible.cpp, which contains base classes
* that are also extended by the XUL Select Accessibility support.
*
* Listbox:
* - nsHTMLListboxAccessible
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*
* Comboboxes:
* - nsHTMLComboboxAccessilbe
* - nsHTMLComboboxTextFieldAccessible
* - nsHTMLComboboxButtonAccessible
* - nsHTMLComboboxWindowAccessilbe
* - nsHTMLSelectListAccessible
* - nsHTMLSelectOptionAccessible(s)
*/
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/*
* The list that contains all the options in the select.
*/
class nsHTMLSelectListAccessible : public nsSelectListAccessible
{
public:
nsHTMLSelectListAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLSelectListAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
};
/*
* Options inside the select, contained within the list
*/
class nsHTMLSelectOptionAccessible : public nsSelectOptionAccessible
{
public:
nsHTMLSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLSelectOptionAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
static nsresult GetFocusedOptionNode(nsIWeakReference *aPresShell, nsIDOMNode *aListNode, nsCOMPtr<nsIDOMNode>& aFocusedOptionNode);
};
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/*
* A class the represents the HTML Listbox widget.
*/
class nsHTMLListboxAccessible : public nsListboxAccessible,
public nsIAccessibleSelectable
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLESELECTABLE
nsHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLListboxAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
};
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/*
* A class the represents the HTML Combobox widget.
*/
class nsHTMLComboboxAccessible : public nsComboboxAccessible
{
public:
nsHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
};
/*
* A class the represents the text field in the Select to the left
* of the drop down button
*/
class nsHTMLComboboxTextFieldAccessible : public nsComboboxTextFieldAccessible
{
public:
nsHTMLComboboxTextFieldAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxTextFieldAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
};
/**
* A class that represents the button inside the Select to the
* right of the text field
*/
class nsHTMLComboboxButtonAccessible : public nsComboboxButtonAccessible
{
public:
nsHTMLComboboxButtonAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxButtonAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
/*
* A class that represents the window that lives to the right
* of the drop down button inside the Select. This is the window
* that is made visible when the button is pressed.
*/
class nsHTMLComboboxWindowAccessible : public nsComboboxWindowAccessible
{
public:
nsHTMLComboboxWindowAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxWindowAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
};
#endif

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLTableAccessible.h"
#include "nsWeakReference.h"
#include "nsReadableUtils.h"
nsHTMLTableCellAccessible::nsHTMLTableCellAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsBlockAccessible(aDomNode, aShell)
{
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLTableCellAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_CELL;
return NS_OK;
}
nsHTMLTableAccessible::nsHTMLTableAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsBlockAccessible(aDomNode, aShell)
{
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLTableAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TABLE;
return NS_OK;
}

View File

@@ -0,0 +1,61 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLTableAccessible_H_
#define _nsHTMLTableAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
class nsHTMLTableCellAccessible : public nsBlockAccessible
{
public:
nsHTMLTableCellAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
class nsHTMLTableAccessible : public nsBlockAccessible
{
public:
nsHTMLTableAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLTextAccessible.h"
nsHTMLTextAccessible::nsHTMLTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsTextAccessible(aDomNode, aShell)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccName(nsAWritableString& _retval)
{
return mDOMNode->GetNodeValue(_retval);
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLTextAccessible_H_
#define _nsHTMLTextAccessible_H_
#include "nsFormControlAccessible.h"
class nsIWeakReference;
class nsHTMLTextAccessible : public nsTextAccessible
{
public:
nsHTMLTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
};
#endif

View File

@@ -0,0 +1,3 @@
en-US.jar:
locale/en-US/global/accessible.properties

View File

@@ -0,0 +1,32 @@
#!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 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): John Gaunt (jgaunt@netscape.com)
DEPTH = ..\..
include <$(DEPTH)\config\config.mak>
DIRS = \
base \
html \
xul \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,924 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIAccessibilityService.h"
#include "nsAccessibilityService.h"
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsRootAccessible.h"
#include "nsINameSpaceManager.h"
#include "nsLayoutAtoms.h"
#include "nsIDOMNode.h"
#include "nsHTMLTextAccessible.h"
#include "nsITextContent.h"
#include "nsTextFragment.h"
#include "nsHTMLTableAccessible.h"
#include "nsHTMLImageAccessible.h"
#include "nsHTMLAreaAccessible.h"
#include "nsHTMLLinkAccessible.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIDOMHTMLAreaElement.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsIAccessibleProvider.h"
#include "nsILink.h"
#include "nsIDocShellTreeItem.h"
#include "nsIDOMDocument.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsXULFormControlAccessible.h"
#include "nsXULColorPickerAccessible.h"
#include "nsXULTextAccessible.h"
#include "nsXULMenuAccessible.h"
#include "nsString.h"
// IFrame
#include "nsIDocShell.h"
#include "nsHTMLIFrameRootAccessible.h"
/**
* nsAccessibility Service
*/
nsAccessibilityService::nsAccessibilityService()
{
NS_INIT_REFCNT();
}
nsAccessibilityService::~nsAccessibilityService()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsAccessibilityService, nsIAccessibilityService);
////////////////////////////////////////////////////////////////////////////////
// nsIAccessibilityService methods:
NS_IMETHODIMP
nsAccessibilityService::CreateRootAccessible(nsISupports* aPresContext, nsISupports* aFrame, nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
NS_ASSERTION(presShell,"Error no presshell!!");
nsCOMPtr<nsISupports> pcContainer;
presContext->GetContainer(getter_AddRefs(pcContainer));
NS_ASSERTION(pcContainer,"Error no container for pres context!!!");
nsCOMPtr<nsIDocShellTreeItem> treeItem(do_QueryInterface(pcContainer));
NS_ASSERTION(treeItem,"Error no tree item for pres context container!!!");
nsCOMPtr<nsIDocShellTreeItem> treeItemParent;
treeItem->GetParent(getter_AddRefs(treeItemParent));
if (treeItemParent) {
// We only create root accessibles for the true root, othewise create an iframe/iframeroot accessible
nsCOMPtr<nsIDocument> document;
nsCOMPtr<nsIContent> rootContent;
presShell->GetDocument(getter_AddRefs(document));
nsCOMPtr<nsIDOMNode> rootNode(do_QueryInterface(document));
if (rootNode)
GetAccessibleFor(rootNode, _retval);
}
else {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(presShell));
*_retval = new nsRootAccessible(weakShell);
NS_IF_ADDREF(*_retval);
}
if (! *_retval)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLComboboxAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLListboxAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLSelectOptionAccessible(nsIDOMNode* aDOMNode, nsIAccessible *aAccParent, nsISupports* aPresContext, nsIAccessible **_retval)
{
nsCOMPtr<nsIPresContext> presContext(do_QueryInterface(aPresContext));
NS_ASSERTION(presContext,"Error non prescontext passed to accessible factory!!!");
nsCOMPtr<nsIPresShell> presShell;
presContext->GetShell(getter_AddRefs(presShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(presShell);
*_retval = new nsHTMLSelectOptionAccessible(aAccParent, aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLCheckboxAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLCheckboxAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLCheckboxAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULCheckboxAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULCheckboxAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULColorPickerAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULColorPickerAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULColorPickerTileAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULColorPickerTileAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMRadioButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLRadioButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLRadioButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTML4ButtonAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTML4ButtonAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTML4ButtonAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULButtonAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULButtonAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenubarAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenubarAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenupopupAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenupopupAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenuitemAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenuitemAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULMenuSeparatorAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULMenuSeparatorAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTextAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = nsnull;
nsCOMPtr<nsITextContent> textContent(do_QueryInterface(node));
if (textContent) {
// If empty text string, don't include in accessible tree
// Items with length 0 are already gone, we just need to check for single NBSP's
PRInt32 textLength = 0;
textContent->GetTextLength(&textLength);
if (textLength == 1) {
const PRUnichar NBSP = 160;
const nsTextFragment *textFrag;
nsresult rv = textContent->GetText(&textFrag);
PRUnichar theChar = textFrag->CharAt(0);
if (theChar == NBSP)
return NS_ERROR_FAILURE;
}
}
*_retval = new nsHTMLTextAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULTextAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
// reusing the HTML accessible widget and enhancing for XUL
*_retval = new nsXULTextAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTableAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTableAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTableAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTableCellAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTableCellAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTableCellAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULGroupboxAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULGroupboxAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULProgressMeterAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsXULProgressMeterAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::CreateXULImageAccessible(nsIDOMNode *aNode, nsIAccessible **_retval)
{
// Don't include nameless images in accessible tree
*_retval = nsnull;
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(aNode));
if (NS_WARN_IF_FALSE(elt, "No DOM element or node!"))
return NS_ERROR_FAILURE;
PRBool hasTextEquivalent;
elt->HasAttribute(NS_LITERAL_STRING("tooltiptext"), &hasTextEquivalent); // Prefer value over tooltiptext
if (!hasTextEquivalent) {
return NS_OK;
}
nsCOMPtr<nsIWeakReference> weakShell;
GetShellFromNode(aNode, getter_AddRefs(weakShell));
*_retval = new nsHTMLImageAccessible(aNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLImageAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLImageAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLImageAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLAreaAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLAreaAccessible(nsIWeakReference *aShell, nsIDOMNode *aDOMNode, nsIAccessible *aAccParent,
nsIAccessible **_retval)
{
*_retval = new nsHTMLAreaAccessible(aDOMNode, aAccParent, aShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/* nsIAccessible createHTMLTextFieldAccessible (in nsISupports aPresShell, in nsISupports aFrame); */
NS_IMETHODIMP nsAccessibilityService::CreateHTMLTextFieldAccessible(nsISupports *aFrame, nsIAccessible **_retval)
{
nsIFrame* frame;
nsCOMPtr<nsIDOMNode> node;
nsCOMPtr<nsIWeakReference> weakShell;
nsresult rv = GetInfo(aFrame, &frame, getter_AddRefs(weakShell), getter_AddRefs(node));
if (NS_FAILED(rv))
return rv;
*_retval = new nsHTMLTextFieldAccessible(node, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::GetShellFromNode(nsIDOMNode *aNode, nsIWeakReference **aWeakShell)
{
nsCOMPtr<nsIDOMDocument> domDoc;
aNode->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc(do_QueryInterface(domDoc));
if (!doc)
return NS_ERROR_INVALID_ARG;
// ---- Get the pres shell ----
nsCOMPtr<nsIPresShell> shell;
doc->GetShellAt(0, getter_AddRefs(shell));
if (!shell)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIWeakReference> weakRef(do_GetWeakReference(shell));
*aWeakShell = weakRef;
NS_IF_ADDREF(*aWeakShell);
return NS_OK;
}
NS_IMETHODIMP nsAccessibilityService::GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIWeakReference** aShell, nsIDOMNode** aNode)
{
NS_ASSERTION(aFrame,"Error -- 1st argument (aFrame) is null!!");
*aRealFrame = NS_STATIC_CAST(nsIFrame*, aFrame);
nsCOMPtr<nsIContent> content;
(*aRealFrame)->GetContent(getter_AddRefs(content));
nsCOMPtr<nsIDOMNode> node(do_QueryInterface(content));
if (!content || !node)
return NS_ERROR_FAILURE;
*aNode = node;
NS_IF_ADDREF(*aNode);
nsCOMPtr<nsIDocument> document;
content->GetDocument(*getter_AddRefs(document));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
// do_GetWR only works into a |nsCOMPtr| :-(
nsCOMPtr<nsIPresShell> tempShell;
nsCOMPtr<nsIWeakReference> weakShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
weakShell = do_GetWeakReference(tempShell);
NS_IF_ADDREF(*aShell = weakShell);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateAccessible(nsIDOMNode* aDOMNode, nsISupports* aDocument, nsIAccessible **_retval)
{
nsCOMPtr<nsIDocument> document (do_QueryInterface(aDocument));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
nsCOMPtr<nsIPresShell> tempShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(tempShell);
*_retval = new nsAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateHTMLBlockAccessible(nsIDOMNode* aDOMNode, nsISupports* aDocument, nsIAccessible **_retval)
{
nsCOMPtr<nsIDocument> document (do_QueryInterface(aDocument));
if (!document)
return NS_ERROR_FAILURE;
#ifdef DEBUG
PRInt32 shells = document->GetNumberOfShells();
NS_ASSERTION(shells > 0,"Error no shells!");
#endif
nsCOMPtr<nsIPresShell> tempShell;
document->GetShellAt(0, getter_AddRefs(tempShell));
nsCOMPtr<nsIWeakReference> weakShell = do_GetWeakReference(tempShell);
*_retval = new nsAccessible(aDOMNode, weakShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
NS_IMETHODIMP
nsAccessibilityService::CreateIFrameAccessible(nsIDOMNode* aDOMNode, nsIAccessible **_retval)
{
NS_ENSURE_ARG_POINTER(aDOMNode);
*_retval = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(aDOMNode));
if (!content)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIWeakReference> outerWeakShell;
GetShellFromNode(aDOMNode, getter_AddRefs(outerWeakShell));
nsCOMPtr<nsIPresShell> outerPresShell(do_QueryReferent(outerWeakShell));
if (NS_WARN_IF_FALSE(outerPresShell,
"No outer pres shell in CreateHTMLIFrameAccessible!")) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> outerPresContext;
outerPresShell->GetPresContext(getter_AddRefs(outerPresContext));
if (NS_WARN_IF_FALSE(outerPresContext,
"No outer pres context in CreateHTMLIFrameAccessible!")) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIDocument> doc;
if (NS_SUCCEEDED(content->GetDocument(*getter_AddRefs(doc))) && doc) {
if (outerPresShell) {
nsCOMPtr<nsISupports> supps;
outerPresShell->GetSubShellFor(content, getter_AddRefs(supps));
if (supps) {
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(supps));
if (docShell) {
nsCOMPtr<nsIPresShell> innerPresShell;
docShell->GetPresShell(getter_AddRefs(innerPresShell));
if (innerPresShell) {
nsCOMPtr<nsIWeakReference> innerWeakShell(do_GetWeakReference(innerPresShell));
nsCOMPtr<nsIDocument> innerDoc;
innerPresShell->GetDocument(getter_AddRefs(innerDoc));
if (innerDoc) {
nsCOMPtr<nsIAccessible> innerRootAccessible(new nsHTMLIFrameRootAccessible(aDOMNode, innerWeakShell));
if (innerRootAccessible) {
nsHTMLIFrameAccessible* outerRootAccessible = new nsHTMLIFrameAccessible(aDOMNode, innerRootAccessible, outerWeakShell, innerDoc);
if (outerRootAccessible) {
*_retval = NS_STATIC_CAST(nsIAccessible*, outerRootAccessible);
if (*_retval) {
NS_ADDREF(*_retval);
return NS_OK;
}
}
}
}
}
}
}
}
}
return NS_ERROR_FAILURE;
}
void nsAccessibilityService::GetOwnerFor(nsIPresShell *aPresShell, nsIPresShell **aOwnerShell, nsIContent **aOwnerContent)
{
nsCOMPtr<nsIPresContext> presContext;
aPresShell->GetPresContext(getter_AddRefs(presContext));
if (!presContext)
return;
nsCOMPtr<nsISupports> pcContainer;
presContext->GetContainer(getter_AddRefs(pcContainer));
if (!pcContainer)
return;
nsCOMPtr<nsISupports> docShellSupports(do_QueryInterface(pcContainer));
nsCOMPtr<nsIDocShellTreeItem> treeItem(do_QueryInterface(pcContainer));
if (!treeItem)
return;
// Get Parent Doc
nsCOMPtr<nsIDocShellTreeItem> treeItemParent;
treeItem->GetParent(getter_AddRefs(treeItemParent));
if (!treeItemParent)
return;
nsCOMPtr<nsIDocShell> parentDS(do_QueryInterface(treeItemParent));
if (!parentDS)
return;
nsCOMPtr<nsIPresShell> parentPresShell;
parentDS->GetPresShell(getter_AddRefs(parentPresShell));
if (!parentPresShell)
return;
nsCOMPtr<nsIDocument> parentDoc;
parentPresShell->GetDocument(getter_AddRefs(parentDoc));
if (!parentDoc)
return;
nsCOMPtr<nsIContent> rootContent;
parentDoc->GetRootContent(getter_AddRefs(rootContent));
nsCOMPtr<nsIContent> tempContent;
parentPresShell->FindContentForShell(docShellSupports, getter_AddRefs(tempContent));
if (tempContent) {
*aOwnerContent = tempContent;
*aOwnerShell = parentPresShell;
NS_ADDREF(*aOwnerShell);
NS_ADDREF(*aOwnerContent);
}
}
/**
* GetAccessibleFor - get an nsIAccessible from a DOM node
*/
NS_IMETHODIMP nsAccessibilityService::GetAccessibleFor(nsIDOMNode *aNode,
nsIAccessible **_retval)
{
*_retval = nsnull;
NS_ASSERTION(aNode, "GetAccessibleFor() called with no node.");
nsCOMPtr<nsIAccessible> newAcc;
nsCOMPtr<nsIDOMXULElement> xulElement(do_QueryInterface(aNode));
if (xulElement) {
#ifdef DEBUG_aaronl
// Please leave this in for now, it's a convenient debugging method
nsAutoString name;
aNode->GetLocalName(name);
if (name.Equals(NS_LITERAL_STRING("browser")))
printf("## aaronl debugging\n");
#endif
nsCOMPtr<nsIAccessibleProvider> accProv(do_QueryInterface(aNode));
if (accProv) {
accProv->GetAccessible(_retval);
if (*_retval)
return NS_OK;
}
return NS_ERROR_FAILURE;
}
// ---- Get the document for this node ----
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIDocument> nodeIsDoc(do_QueryInterface(aNode));
if (nodeIsDoc)
doc = nodeIsDoc;
else {
nsCOMPtr<nsIDOMDocument> domDoc;
aNode->GetOwnerDocument(getter_AddRefs(domDoc));
if (!domDoc)
return NS_ERROR_INVALID_ARG;
doc = do_QueryInterface(domDoc);
}
if (!doc)
return NS_ERROR_INVALID_ARG;
// ---- Get the pres shell ----
nsCOMPtr<nsIPresShell> shell;
doc->GetShellAt(0, getter_AddRefs(shell));
if (!shell)
return NS_ERROR_FAILURE;
// ---- Check if area node ----
nsCOMPtr<nsIDOMHTMLAreaElement> areaContent(do_QueryInterface(aNode));
if (areaContent) // Area elements are implemented in nsHTMLImageAccessible as children of the image
return NS_ERROR_FAILURE; // Return, otherwise the image frame looks like an accessible object in the wrong place
// ---- Check if we need outer owning doc ----
nsCOMPtr<nsIContent> content(do_QueryInterface(aNode));
if (!content && nodeIsDoc) {
// This happens when we're on the document node, which will not QI to an nsIContent,
// When that happens, we try to get the outer, parent document node that contains the document
// For example, a <browser> or <iframe> element
nsCOMPtr<nsIPresShell> ownerShell;
nsCOMPtr<nsIContent> ownerContent;
GetOwnerFor(shell, getter_AddRefs(ownerShell), getter_AddRefs(ownerContent));
if (ownerContent) {
shell = ownerShell;
content = ownerContent;
}
else {
// Nothing above us, return the root accessible
doc->GetRootContent(getter_AddRefs(content));
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
return CreateRootAccessible(presContext, frame, _retval);
}
}
NS_ASSERTION(content, "GetAccessibleFor() called with no content.");
// ---- Try using frame to get IAccessible ----
nsIFrame* frame = nsnull;
shell->GetPrimaryFrameFor(content, &frame);
if (!frame)
return NS_ERROR_FAILURE;
frame->GetAccessible(getter_AddRefs(newAcc));
// ---- If link, create link accessible ----
if (!newAcc) {
// is it a link?
nsCOMPtr<nsILink> link(do_QueryInterface(aNode));
if (link) {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(shell));
newAcc = new nsHTMLLinkAccessible(aNode, weakShell);
}
}
// ---- If <select> option, create select option accessible
if (!newAcc) {
nsCOMPtr<nsIDOMHTMLOptionElement> optionElement(do_QueryInterface(aNode));
if (optionElement) {
// nsHTMLSelectionOptionAccessible's must be created via the parent
nsCOMPtr<nsIDOMNode> parentNode;
aNode->GetParentNode(getter_AddRefs(parentNode));
if (parentNode) {
nsCOMPtr<nsIAccessible> parentAccessible;
GetAccessibleFor(parentNode, getter_AddRefs(parentAccessible));
if (parentAccessible) {
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(shell));
newAcc = new nsHTMLSelectOptionAccessible(parentAccessible, aNode, weakShell);
}
}
}
}
if (!newAcc)
return NS_ERROR_FAILURE;
*_retval = newAcc;
NS_ADDREF(*_retval);
return NS_OK;
}
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
nsresult
NS_NewAccessibilityService(nsIAccessibilityService** aResult)
{
NS_PRECONDITION(aResult != nsnull, "null ptr");
if (! aResult)
return NS_ERROR_NULL_POINTER;
nsAccessibilityService* accService = new nsAccessibilityService();
if (!accService)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(accService);
*aResult = accService;
return NS_OK;
}

View File

@@ -0,0 +1,73 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: David W. Hyatt (hyatt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsAccessibilityService_h__
#define __nsAccessibilityService_h__
#include "nsIAccessibilityService.h"
#include "nsIContent.h"
#include "nsIPresShell.h"
#include "nsIDocShell.h"
class nsIFrame;
class nsIWeakReference;
class nsIDOMNode;
class nsAccessibilityService : public nsIAccessibilityService
{
public:
NS_DECL_ISUPPORTS
// nsIAccessibilityService methods:
NS_DECL_NSIACCESSIBILITYSERVICE
// nsAccessibilityService methods:
nsAccessibilityService();
virtual ~nsAccessibilityService();
public:
private:
NS_IMETHOD GetInfo(nsISupports* aFrame, nsIFrame** aRealFrame, nsIWeakReference** aShell, nsIDOMNode** aContent);
NS_IMETHOD GetShellFromNode(nsIDOMNode *aNode, nsIWeakReference **weakShell);
void GetOwnerFor(nsIPresShell *aPresShell, nsIPresShell **aOwnerShell, nsIContent **aOwnerContent);
nsIContent* FindContentForDocShell(nsIPresShell* aPresShell, nsIContent* aContent, nsIDocShell* aDocShell);
};
#endif /* __nsIAccessibilityService_h__ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,167 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsAccessible_H_
#define _nsAccessible_H_
#include "nsCOMPtr.h"
#include "nsGenericAccessible.h"
#include "nsIAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIDOMNode.h"
#include "nsIFocusController.h"
#include "nsIPresContext.h"
#include "nsIPresShell.h"
#include "nsPoint.h"
#include "nsRect.h"
#include "nsWeakReference.h"
#include "nsIDOMNodeList.h"
#include "nsIBindingManager.h"
#define ACCESSIBLE_BUNDLE_URL "chrome://global/locale/accessible.properties"
class nsIContent;
class nsIDocShell;
class nsIFrame;
class nsIWebShell;
enum { eSiblingsUninitialized = -1, eSiblingsWalkNormalDOM = -2}; // Used in sibling index field as flags
class nsAccessible : public nsGenericAccessible
{
public:
// to eliminate the confusion of "magic numbers" -- if ( 0 ){ foo; }
enum { eAction_Switch=0, eAction_Jump=0, eAction_Click=0 };
// how many actions
enum { eNo_Action=0, eSingle_Action=1 };
nsAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
virtual ~nsAccessible();
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccFocused(nsIAccessible **_retval);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
NS_IMETHOD AccRemoveSelection(void);
NS_IMETHOD AccTakeSelection(void);
NS_IMETHOD AccTakeFocus(void);
NS_IMETHOD AccGetDOMNode(nsIDOMNode **_retval);
protected:
virtual nsIFrame* GetFrame();
virtual nsIFrame* GetBoundsFrame();
virtual void GetBounds(nsRect& aRect, nsIFrame** aRelativeFrame);
virtual void GetPresContext(nsCOMPtr<nsIPresContext>& aContext);
PRBool IsEntirelyVisible();
NS_IMETHOD AppendLabelText(nsIDOMNode *aLabelNode, nsAWritableString& _retval);
NS_IMETHOD AppendLabelFor(nsIContent *aLookNode, nsAReadableString *aId, nsAWritableString *aLabel);
NS_IMETHOD GetHTMLAccName(nsAWritableString& _retval);
NS_IMETHOD GetXULAccName(nsAWritableString& _retval);
NS_IMETHOD AppendFlatStringFromSubtree(nsIContent *aContent, nsAWritableString *aFlatString);
NS_IMETHOD AppendFlatStringFromContentNode(nsIContent *aContent, nsAWritableString *aFlatString);
NS_IMETHOD AppendStringWithSpaces(nsAWritableString *aFlatString, nsAReadableString& textEquivalent);
NS_IMETHOD GetFocusedElement(nsIDOMElement **aFocusedElement);
NS_IMETHOD CacheOptimizations(nsIAccessible *aParent, PRInt32 aSiblingIndex, nsIDOMNodeList *aSiblingList);
// helper method to verify frames
static PRBool IsCorrectFrameType(nsIFrame* aFrame, nsIAtom* aAtom);
static nsresult GetTranslatedString(PRUnichar *aKey, nsAWritableString *aStringOut);
void GetScreenOrigin(nsIPresContext *aPresContext, nsIFrame *aFrame, nsRect *aRect);
// Data Members
nsCOMPtr<nsIDOMNode> mDOMNode;
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessible> mParent;
nsCOMPtr<nsIDOMNodeList> mSiblingList; // If some of our computed siblings are anonymous content nodes, cache node list
PRInt32 mSiblingIndex; // Cache where we are in list of kids that we got from nsIBindingManager::GetContentList(parentContent)
};
/** This class is used to walk the DOM tree. It skips
* everything but nodes that either implement nsIAccessible
* or have primary frames that implement "GetAccessible"
*/
struct WalkState {
nsCOMPtr<nsIAccessible> accessible;
nsCOMPtr<nsIDOMNode> domNode;
nsCOMPtr<nsIDOMNodeList> siblingList;
PRInt32 siblingIndex; // Holds a state flag or an index into the siblingList
WalkState *prevState;
};
class nsAccessibleTreeWalker {
public:
nsAccessibleTreeWalker(nsIWeakReference* aShell, nsIDOMNode* aContent,
PRInt32 aCachedSiblingIndex, nsIDOMNodeList *aCachedSiblingList, PRBool mWalkAnonymousContent);
~nsAccessibleTreeWalker();
NS_IMETHOD GetNextSibling();
NS_IMETHOD GetPreviousSibling();
NS_IMETHOD GetParent();
NS_IMETHOD GetFirstChild();
NS_IMETHOD GetLastChild();
PRInt32 GetChildCount();
WalkState mState;
protected:
NS_IMETHOD GetChildBefore(nsIDOMNode* aParent, nsIDOMNode* aChild);
PRBool IsHidden();
PRBool GetAccessible();
NS_IMETHOD GetFullTreeParentNode(nsIDOMNode *aChildNode, nsIDOMNode **aParentNodeOut);
void GetSiblings(nsIDOMNode *aOneOfTheSiblings);
void GetKids(nsIDOMNode *aParent);
void ClearState();
NS_IMETHOD PushState();
NS_IMETHOD PopState();
nsCOMPtr<nsIWeakReference> mPresShell;
nsCOMPtr<nsIAccessibilityService> mAccService;
nsCOMPtr<nsIBindingManager> mBindingManager;
};
#endif

View File

@@ -0,0 +1,410 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
#include "nsCOMPtr.h"
#include "nsGUIEvent.h"
#include "nsIContent.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsIFrame.h"
#include "nsILink.h"
#include "nsIPresContext.h"
#include "nsIPresShell.h"
#include "nsISelection.h"
#include "nsISelectionController.h"
// ------------
// nsBlockAccessible
// ------------
nsBlockAccessible::nsBlockAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):nsAccessible(aNode, aShell)
{
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsBlockAccessible::AccGetAt(PRInt32 tx, PRInt32 ty, nsIAccessible **_retval)
{
// We're going to find the child that contains coordinates (tx,ty)
PRInt32 x,y,w,h;
AccGetBounds(&x,&y,&w,&h); // Get bounds for this accessible
if (tx >= x && tx < x + w && ty >= y && ty < y + h)
{
// It's within this nsIAccessible, let's drill down
nsCOMPtr<nsIAccessible> child;
nsCOMPtr<nsIAccessible> smallestChild;
PRInt32 smallestArea = -1;
nsCOMPtr<nsIAccessible> next;
GetAccFirstChild(getter_AddRefs(child));
PRInt32 cx,cy,cw,ch; // Child bounds
while(child) {
child->AccGetBounds(&cx,&cy,&cw,&ch);
// ok if there are multiple frames the contain the point
// and they overlap then pick the smallest. We need to do this
// for text frames.
// For example, A point that's in block #2 is also in block #1, but we want to return #2:
//
// [[block #1 is long wrapped text that continues to
// another line]] [[here is a shorter block #2]]
if (tx >= cx && tx < cx + cw && ty >= cy && ty < cy + ch)
{
if (smallestArea == -1 || cw*ch < smallestArea) {
smallestArea = cw*ch;
smallestChild = child;
}
}
child->GetAccNextSibling(getter_AddRefs(next));
child = next;
}
if (smallestChild != nsnull)
{
*_retval = smallestChild;
NS_ADDREF(*_retval);
return NS_OK;
}
*_retval = this;
NS_ADDREF(this);
return NS_OK;
}
*_retval = nsnull;
return NS_OK;
}
/**
* nsContainerAccessible
*/
nsContainerAccessible::nsContainerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eNo_Action;
return NS_OK;
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
return NS_OK;
}
/** no actions */
NS_IMETHODIMP nsContainerAccessible::AccDoAction(PRUint8 index)
{
return NS_OK;
}
/** no state -- normal */
NS_IMETHODIMP nsContainerAccessible::GetAccState(PRUint32 *_retval)
{
*_retval = 0;
return NS_OK;
}
/** no value */
NS_IMETHODIMP nsContainerAccessible::GetAccValue(nsAWritableString& _retval)
{
return NS_OK;
}
/** no name*/
NS_IMETHODIMP nsContainerAccessible::GetAccName(nsAWritableString& _retval)
{
return NS_OK;
}
//-------------
// nsLeafFrameAccessible
//-------------
nsLeafAccessible::nsLeafAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsLeafAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsLeafAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsLeafAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
//----------------
// nsLinkableAccessible
//----------------
nsLinkableAccessible::nsLinkableAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell), mIsALinkCached(PR_FALSE), mLinkContent(nsnull), mIsLinkVisited(PR_FALSE)
{
}
/* long GetAccState (); */
NS_IMETHODIMP nsLinkableAccessible::GetAccState(PRUint32 *_retval)
{
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_SELECTABLE;
if (IsALink()) {
*_retval |= STATE_LINKED;
if (mIsLinkVisited)
*_retval |= STATE_TRAVERSED;
}
// Get current selection and find out if current node is in it
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsIFrame *frame;
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame))) {
nsCOMPtr<nsISelectionController> selCon;
frame->GetSelectionController(context,getter_AddRefs(selCon));
if (selCon) {
nsCOMPtr<nsISelection> domSel;
selCon->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(domSel));
if (domSel) {
PRBool isSelected = PR_FALSE, isCollapsed = PR_TRUE;
domSel->ContainsNode(mDOMNode, PR_TRUE, &isSelected);
domSel->GetIsCollapsed(&isCollapsed);
if (isSelected && !isCollapsed)
*_retval |=STATE_SELECTED;
}
}
}
// Focused? Do we implement that here or up the chain?
return NS_OK;
}
NS_IMETHODIMP nsLinkableAccessible::GetAccValue(nsAWritableString& _retval)
{
if (IsALink()) {
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mLinkContent));
if (elt)
return elt->GetAttribute(NS_LITERAL_STRING("href"), _retval);
}
return NS_ERROR_FAILURE;
}
/* PRUint8 getAccNumActions (); */
NS_IMETHODIMP nsLinkableAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/* wstring getAccActionName (in PRUint8 index); */
NS_IMETHODIMP nsLinkableAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
// Action 0 (default action): Jump to link
if (index == eAction_Jump) {
if (IsALink()) {
_retval = NS_LITERAL_STRING("jump");
return NS_OK;
}
}
return NS_ERROR_FAILURE;
}
/* void accDoAction (in PRUint8 index); */
NS_IMETHODIMP nsLinkableAccessible::AccDoAction(PRUint8 index)
{
// Action 0 (default action): Jump to link
if (index == 0) {
if (IsALink()) {
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> presContext;
shell->GetPresContext(getter_AddRefs(presContext));
if (presContext) {
nsMouseEvent linkClickEvent;
linkClickEvent.eventStructType = NS_EVENT;
linkClickEvent.message = NS_MOUSE_LEFT_CLICK;
linkClickEvent.isShift = PR_FALSE;
linkClickEvent.isControl = PR_FALSE;
linkClickEvent.isAlt = PR_FALSE;
linkClickEvent.isMeta = PR_FALSE;
linkClickEvent.clickCount = 0;
linkClickEvent.widget = nsnull;
nsEventStatus eventStatus = nsEventStatus_eIgnore;
mLinkContent->HandleDOMEvent(presContext,
&linkClickEvent,
nsnull,
NS_EVENT_FLAG_INIT,
&eventStatus);
return NS_OK;
}
}
}
return NS_ERROR_FAILURE;
}
PRBool nsLinkableAccessible::IsALink()
{
if (mIsALinkCached) // Cached answer?
return mLinkContent? PR_TRUE: PR_FALSE;
nsCOMPtr<nsIContent> walkUpContent(do_QueryInterface(mDOMNode));
if (walkUpContent) {
nsCOMPtr<nsIContent> tempContent = walkUpContent;
while (walkUpContent) {
nsCOMPtr<nsILink> link(do_QueryInterface(walkUpContent));
if (link) {
mLinkContent = tempContent;
mIsALinkCached = PR_TRUE;
nsLinkState linkState;
link->GetLinkState(linkState);
if (linkState == eLinkState_Visited)
mIsLinkVisited = PR_TRUE;
return PR_TRUE;
}
walkUpContent->GetParent(*getter_AddRefs(tempContent));
walkUpContent = tempContent;
}
}
mIsALinkCached = PR_TRUE; // Cached that there is no link
return PR_FALSE;
}
// ------------
// nsMenuListenerAccessible
// ------------
NS_IMPL_ISUPPORTS_INHERITED1(nsMenuListenerAccessible, nsAccessible, nsIDOMXULListener)
nsMenuListenerAccessible::nsMenuListenerAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
}
nsMenuListenerAccessible::~nsMenuListenerAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
}
}
NS_IMETHODIMP nsMenuListenerAccessible::PopupShowing(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsMenuListenerAccessible::PopupHiding(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
NS_IMETHODIMP nsMenuListenerAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
void
nsMenuListenerAccessible::SetupMenuListener()
{
// if not already one, register ourselves as a popup listener
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (!eventReceiver) {
return;
}
nsresult rv = eventReceiver->AddEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
if (NS_FAILED(rv)) {
return;
}
mRegistered = PR_TRUE;
}
}

View File

@@ -0,0 +1,148 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsBaseWidgetAccessible_H_
#define _nsBaseWidgetAccessible_H_
#include "nsAccessible.h"
#include "nsCOMPtr.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIDOMXULListener.h"
/**
* This file contains a number of classes that are used as base
* classes for the different accessibility implementations of
* the HTML and XUL widget sets. --jgaunt
*/
/**
* Special Accessible that knows how to handle hit detection for flowing text
*/
class nsBlockAccessible : public nsAccessible
{
public:
nsBlockAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval);
};
/**
* Special Accessible that just contains other accessible objects
* no actions, no name, no state, no value
*/
class nsContainerAccessible : public nsAccessible
{
public:
nsContainerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
};
/**
* Leaf version of DOM Accessible -- has no children
*/
class nsLeafAccessible : public nsAccessible
{
public:
nsLeafAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
/**
* A type of accessible for DOM nodes containing an href="" attribute.
* It knows how to report the state of the link ( traveled or not )
* and can activate ( click ) the link programmatically.
*/
class nsLinkableAccessible : public nsAccessible
{
public:
nsLinkableAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
protected:
PRBool IsALink();
PRBool mIsALinkCached; // -1 = unknown, 0 = not a link, 1 = is a link
nsCOMPtr<nsIContent> mLinkContent;
PRBool mIsLinkVisited;
};
/*
* A base class that can listen to menu events. Its used by selects so the
* button and the window accessibles can change their name and role
* depending on whether the drop down list is dropped down on not
*/
class nsMenuListenerAccessible : public nsAccessible, public nsIDOMXULListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
nsMenuListenerAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsMenuListenerAccessible();
// popup listener
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
virtual void SetupMenuListener();
PRBool mRegistered;
PRBool mOpen;
};
#endif

View File

@@ -0,0 +1,226 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* John Gaunt (jgaunt@netscape.com)
* Aaron Leventhal (aaronl@netscape.com)
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsFormControlAccessible.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLLabelElement.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULButtonElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMXULElement.h"
#include "nsIDOMXULLabelElement.h"
#include "nsIDOMXULSelectCntrlEl.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsReadableUtils.h"
#include "nsString.h"
/**
* nsFormControlAccessible
*/
nsFormControlAccessible::nsFormControlAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
/**
* XUL states: focused, unavailable(disabled), focusable, ?protected?
* HTML states: focused, unabailable(disabled), focusable, protected
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccState(PRUint32 *_retval)
{
// Get the focused state from the nsAccessible
nsAccessible::GetAccState(_retval);
PRBool disabled = PR_FALSE;
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMHTMLInputElement> htmlFormElement(do_QueryInterface(mDOMNode, &rv));
if (NS_SUCCEEDED(rv) && htmlFormElement) {
htmlFormElement->GetDisabled(&disabled);
nsAutoString typeString;
htmlFormElement->GetType(typeString);
if (typeString.EqualsIgnoreCase("password"))
*_retval |= STATE_PROTECTED;
}
else {
nsCOMPtr<nsIDOMXULControlElement> xulFormElement(do_QueryInterface(mDOMNode, &rv));
if (NS_SUCCEEDED(rv) && xulFormElement) {
xulFormElement->GetDisabled(&disabled);
/* XXX jgaunt do XUL elements support password fields? */
}
}
if (disabled)
*_retval |= STATE_UNAVAILABLE;
else
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
/**
* Will be called by both HTML and XUL elements, this method
* merely checks who is calling and then calls the appropriate
* protected method for the XUL or HTML element.
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMXULElement> xulFormElement(do_QueryInterface(mDOMNode));
if (xulFormElement)
return GetXULAccName(_retval);
else
return GetHTMLAccName(_retval);
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsFormControlAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
// ------------
// Radio button
// ------------
nsRadioButtonAccessible::nsRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("select");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
/**
*
*/
NS_IMETHODIMP nsRadioButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_RADIOBUTTON;
return NS_OK;
}
// ------------
// Text Accessibles
// ------------
nsTextAccessible::nsTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell)
{
}
/**
* We are text
*/
NS_IMETHODIMP nsTextAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TEXT;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* No Children
*/
NS_IMETHODIMP nsTextAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}

View File

@@ -0,0 +1,93 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsFormControlAccessible_H_
#define _nsFormControlAccessible_H_
#include "nsBaseWidgetAccessible.h"
/**
* This supports name and state information for both XUL and HTML
* widgets. Designed to be a base class for the impls of XUL
* and HTML form widget Accessibles
*/
class nsFormControlAccessible : public nsAccessible
{
public:
nsFormControlAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
/**
*
*/
class nsRadioButtonAccessible : public nsFormControlAccessible
{
public:
nsRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
};
/**
* Text nodes have no children, but since double inheritance
* no-worky we have to re-impl the LeafAccessiblity blocks
* this way.
*/
class nsTextAccessible : public nsLinkableAccessible
{
public:
nsTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
};
#endif

View File

@@ -0,0 +1,243 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsIFrame.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
#include "nsReadableUtils.h"
#include "nsIContent.h"
/* Implementation file */
NS_IMPL_ISUPPORTS1(nsGenericAccessible, nsIAccessible)
nsGenericAccessible::nsGenericAccessible()
{
NS_INIT_ISUPPORTS();
/* member initializers and constructor code */
}
nsGenericAccessible::~nsGenericAccessible()
{
/* destructor code */
}
/* nsIAccessible getAccParent (); */
NS_IMETHODIMP nsGenericAccessible::GetAccParent(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHODIMP nsGenericAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsGenericAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsGenericAccessible::GetAccChildCount(PRInt32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsGenericAccessible::GetAccName(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsGenericAccessible::GetAccValue(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void setAccName (in wstring name); */
NS_IMETHODIMP nsGenericAccessible::SetAccName(const nsAReadableString& name)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsGenericAccessible::GetAccDescription(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsGenericAccessible::GetAccRole(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* PRUint8 getAccNumActions (); */
NS_IMETHODIMP nsGenericAccessible::GetAccNumActions(PRUint8 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccActionName (in PRUint8 index); */
NS_IMETHODIMP nsGenericAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accDoAction (in PRUint8 index); */
NS_IMETHODIMP nsGenericAccessible::AccDoAction(PRUint8 index)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible getAccFocused(); */
NS_IMETHODIMP nsGenericAccessible::GetAccFocused(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* wstring getAccHelp (); */
NS_IMETHODIMP nsGenericAccessible::GetAccHelp(nsAWritableString& _retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accGetAt (in long x, in long y); */
NS_IMETHODIMP nsGenericAccessible::AccGetAt(PRInt32 x, PRInt32 y, nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateRight (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateRight(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateLeft (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateLeft(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateUp (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateUp(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* nsIAccessible accNavigateDown (); */
NS_IMETHODIMP nsGenericAccessible::AccNavigateDown(nsIAccessible **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsGenericAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accAddSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccAddSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accRemoveSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccRemoveSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accExtendSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccExtendSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeSelection (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeSelection()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* void accTakeFocus (); */
NS_IMETHODIMP nsGenericAccessible::AccTakeFocus()
{
return NS_ERROR_NOT_IMPLEMENTED;
}
/* unsigned long getAccExtState (); */
NS_IMETHODIMP nsGenericAccessible::GetAccExtState(PRUint32 *_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsGenericAccessible::AccGetDOMNode(nsIDOMNode **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP nsGenericAccessible::CacheOptimizations(nsIAccessible *aParent, PRInt32 aSiblingIndex, nsIDOMNodeList *aSiblingList)
{
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsGenericAccessible_H_
#define _nsGenericAccessible_H_
#include "nsISupports.h"
#include "nsIAccessible.h"
#include "nsIContent.h"
#include "nsIDOMNode.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsCOMPtr.h"
#include "nsIWeakReference.h"
/**
* Basic implementation
* supports nothing
*/
class nsGenericAccessible : public nsIAccessible
{
NS_DECL_ISUPPORTS
NS_DECL_NSIACCESSIBLE
public:
nsGenericAccessible();
virtual ~nsGenericAccessible();
};
#endif

View File

@@ -0,0 +1,169 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsHTMLAreaAccessible.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "nsIDOMElement.h"
#include "nsIDOMHTMLAreaElement.h"
// --- area -----
nsHTMLAreaAccessible::nsHTMLAreaAccessible(nsIDOMNode *aDomNode, nsIAccessible *aAccParent, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell), mAccParent(aAccParent)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccName(nsAWritableString & _retval)
{
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
if (elt) {
nsAutoString hrefString;
elt->GetAttribute(NS_LITERAL_STRING("title"), _retval);
}
return NS_OK;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LINK;
return NS_OK;
}
/* wstring getAccValue (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
if (elt)
elt->GetAttribute(NS_LITERAL_STRING("href"), _retval);
return NS_OK;
}
/* wstring getAccDescription (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccDescription(nsAWritableString& _retval)
{
// Still to do - follow IE's standard here
nsCOMPtr<nsIDOMHTMLAreaElement> area(do_QueryInterface(mDOMNode));
if (area)
area->GetShape(_retval);
return NS_OK;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
return NS_OK;
}
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = mAccParent;
NS_IF_ADDREF(*aAccParent);
return NS_OK;
}
nsIAccessible *nsHTMLAreaAccessible::CreateAreaAccessible(nsIDOMNode *aDOMNode)
{
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
if (accService) {
nsIAccessible* acc = nsnull;
accService->CreateHTMLAreaAccessible(mPresShell, aDOMNode, mAccParent, &acc);
return acc;
}
return nsnull;
}
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccNextSibling(nsIAccessible * *aAccNextSibling)
{
*aAccNextSibling = nsnull;
nsCOMPtr<nsIDOMNode> nextNode;
mDOMNode->GetNextSibling(getter_AddRefs(nextNode));
if (nextNode)
*aAccNextSibling = CreateAreaAccessible(nextNode);
return NS_OK;
}
/* readonly attribute nsIAccessible accPreviousSibling; */
NS_IMETHODIMP nsHTMLAreaAccessible::GetAccPreviousSibling(nsIAccessible * *aAccPrevSibling)
{
*aAccPrevSibling = nsnull;
nsCOMPtr<nsIDOMNode> prevNode;
mDOMNode->GetPreviousSibling(getter_AddRefs(prevNode));
if (prevNode)
*aAccPrevSibling = CreateAreaAccessible(prevNode);
return NS_OK;
}
/* void accGetBounds (out long x, out long y, out long width, out long height); */
NS_IMETHODIMP nsHTMLAreaAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
//nsIFrame *frame;
// Do a better job on this later - need to use GetRect on mAreas of nsImageMap from nsImageFrame
//return mAccParent->nsAccessible::AccGetBounds(x,y,width,height);
*x = *y = *width = *height = 0;
return NS_ERROR_NOT_IMPLEMENTED;
}

View File

@@ -0,0 +1,71 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLAreaAccessible_H_
#define _nsHTMLAreaAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsAccessible.h"
/* Accessible for image map areas - must be child of image
*/
class nsHTMLAreaAccessible : public nsLinkableAccessible
{
public:
nsHTMLAreaAccessible(nsIDOMNode *domNode, nsIAccessible *accParent, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString & _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccNextSibling(nsIAccessible * *aAccNextSibling);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible * *aAccPreviousSibling);
NS_IMETHOD GetAccDescription(nsAWritableString& _retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
protected:
nsIAccessible *CreateAreaAccessible(nsIDOMNode *aDOMNode);
nsCOMPtr<nsIAccessible> mAccParent;
};
#endif

View File

@@ -0,0 +1,376 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsAccessible.h"
#include "nsFormControlAccessible.h"
#include "nsHTMLAtoms.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsIDOMHTMLButtonElement.h"
#include "nsIDOMHTMLFormElement.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLLabelElement.h"
#include "nsIDOMHTMLTextAreaElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsIDOMXULButtonElement.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsIDOMXULSelectCntrlEl.h"
#include "nsINameSpaceManager.h"
#include "nsIFrame.h"
#include "nsISelectionController.h"
#include "nsReadableUtils.h"
#include "nsWeakReference.h"
// --- checkbox -----
nsHTMLCheckboxAccessible::nsHTMLCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_CHECKBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) { // 0 is the magic value for default action
// check or uncheck
PRUint32 state;
GetAccState(&state);
if (state & STATE_CHECKED)
_retval = NS_LITERAL_STRING("uncheck");
else
_retval = NS_LITERAL_STRING("check");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) { // 0 is the magic value for default action
nsCOMPtr<nsIDOMHTMLInputElement> htmlCheckboxElement(do_QueryInterface(mDOMNode));
PRBool checked = PR_FALSE;
if (htmlCheckboxElement) {
htmlCheckboxElement->GetChecked(&checked);
htmlCheckboxElement->SetChecked(!checked);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLCheckboxAccessible::GetAccState(PRUint32 *_retval)
{
nsFormControlAccessible::GetAccState(_retval);
PRBool checked = PR_FALSE; // Radio buttons and check boxes can be checked
nsCOMPtr<nsIDOMHTMLInputElement> htmlCheckboxElement(do_QueryInterface(mDOMNode));
if (htmlCheckboxElement)
htmlCheckboxElement->GetChecked(&checked);
if (checked)
*_retval |= STATE_CHECKED;
return NS_OK;
}
//------ Radio button -------
nsHTMLRadioButtonAccessible::nsHTMLRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsRadioButtonAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == eAction_Click) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(mDOMNode));
element->Click();
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLRadioButtonAccessible::GetAccState(PRUint32 *_retval)
{
nsFormControlAccessible::GetAccState(_retval);
PRBool checked = PR_FALSE; // Radio buttons and check boxes can be checked
nsCOMPtr<nsIDOMHTMLInputElement> htmlRadioElement(do_QueryInterface(mDOMNode));
if (htmlRadioElement)
htmlRadioElement->GetChecked(&checked);
if (checked)
*_retval |= STATE_CHECKED;
return NS_OK;
}
// ----- Button -----
nsHTMLButtonAccessible::nsHTMLButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("press");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(mDOMNode));
element->Click();
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTMLButtonAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLInputElement> button(do_QueryInterface(mDOMNode));
if (!button)
return NS_ERROR_FAILURE;
nsAutoString name;
button->GetValue(name);
name.CompressWhitespace();
_retval.Assign(name);
return NS_OK;
}
// ----- HTML 4 Button: can contain arbitrary HTML content -----
nsHTML4ButtonAccessible::nsHTML4ButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsBlockAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("press");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) {
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
if ( inputElement )
{
inputElement->Click();
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccState(PRUint32 *_retval)
{
nsAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
NS_IMETHODIMP nsHTML4ButtonAccessible::GetAccName(nsAWritableString& _retval)
{
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsAutoString name;
if (content)
rv = AppendFlatStringFromSubtree(content, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
return rv;
}
// --- textfield -----
nsHTMLTextFieldAccessible::nsHTMLTextFieldAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TEXT;
return NS_OK;
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccValue(nsAWritableString& _retval)
{
PRUint32 state;
GetAccState(&state);
if (state & STATE_PROTECTED) // Don't return password text!
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea(do_QueryInterface(mDOMNode));
if (textArea) {
textArea->GetValue(_retval);
return NS_OK;
}
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
if (inputElement) {
inputElement->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsHTMLTextFieldAccessible::GetAccState(PRUint32 *_retval)
{
// can be
// focusable, focused, protected. readonly, unavailable, selected
nsAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
nsCOMPtr<nsIDOMHTMLTextAreaElement> textArea(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIDOMHTMLInputElement> inputElement(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIDOMElement> elt(do_QueryInterface(mDOMNode));
PRBool isReadOnly = PR_FALSE;
elt->HasAttribute(NS_LITERAL_STRING("readonly"), &isReadOnly);
if (isReadOnly)
*_retval |= STATE_READONLY;
// Get current selection and find out if current node is in it
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
return NS_ERROR_FAILURE;
}
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsIFrame *frame;
if (content && NS_SUCCEEDED(shell->GetPrimaryFrameFor(content, &frame))) {
nsCOMPtr<nsISelectionController> selCon;
frame->GetSelectionController(context,getter_AddRefs(selCon));
if (selCon) {
nsCOMPtr<nsISelection> domSel;
selCon->GetSelection(nsISelectionController::SELECTION_NORMAL, getter_AddRefs(domSel));
if (domSel) {
PRBool isCollapsed = PR_TRUE;
domSel->GetIsCollapsed(&isCollapsed);
if (!isCollapsed)
*_retval |=STATE_SELECTED;
}
}
}
if (!textArea) {
if (inputElement) {
/////// ====== Must be a password field, so it uses nsIDOMHTMLFormControl ==== ///////
PRUint32 moreStates = 0;
nsresult rv = nsFormControlAccessible::GetAccState(&moreStates);
*_retval |= moreStates;
return rv;
}
return NS_ERROR_FAILURE;
}
PRBool disabled = PR_FALSE;
textArea->GetDisabled(&disabled);
if (disabled)
*_retval |= STATE_UNAVAILABLE;
return NS_OK;
}

View File

@@ -0,0 +1,103 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric D Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLFormControlAccessible_H_
#define _nsHTMLFormControlAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsFormControlAccessible.h"
class nsICheckboxControlFrame;
class nsHTMLCheckboxAccessible : public nsFormControlAccessible
{
public:
nsHTMLCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLRadioButtonAccessible : public nsRadioButtonAccessible
{
public:
nsHTMLRadioButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsHTMLButtonAccessible : public nsFormControlAccessible
{
public:
nsHTMLButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
class nsHTML4ButtonAccessible : public nsBlockAccessible
{
public:
nsHTML4ButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
class nsHTMLTextFieldAccessible : public nsFormControlAccessible
{
public:
nsHTMLTextFieldAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,205 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLIFrameRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIPresShell.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMDocument.h"
#include "nsReadableUtils.h"
NS_INTERFACE_MAP_BEGIN(nsHTMLIFrameRootAccessible)
NS_INTERFACE_MAP_END_INHERITING(nsRootAccessible)
NS_IMPL_ADDREF_INHERITED(nsHTMLIFrameRootAccessible, nsRootAccessible);
NS_IMPL_RELEASE_INHERITED(nsHTMLIFrameRootAccessible, nsRootAccessible);
NS_IMPL_ADDREF_INHERITED(nsHTMLIFrameAccessible, nsBlockAccessible);
NS_IMPL_RELEASE_INHERITED(nsHTMLIFrameAccessible, nsBlockAccessible);
NS_IMETHODIMP
nsHTMLIFrameAccessible::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
NS_ASSERTION(aInstancePtr, "QueryInterface requires a non-NULL destination!");
if ( !aInstancePtr )
return NS_ERROR_NULL_POINTER;
if (aIID.Equals(NS_GET_IID(nsIAccessibleDocument))) {
*aInstancePtr = (void*)(nsIAccessibleDocument*) this;
NS_IF_ADDREF(this);
return NS_OK;
}
return nsBlockAccessible::QueryInterface(aIID, aInstancePtr);
}
nsHTMLIFrameAccessible::nsHTMLIFrameAccessible(nsIDOMNode* aNode, nsIAccessible* aRoot, nsIWeakReference* aShell, nsIDocument *aDoc):
nsBlockAccessible(aNode, aShell), mRootAccessible(aRoot), nsDocAccessibleMixin(aDoc)
{
}
/* attribute wstring accName; */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccName(nsAWritableString& aAccName)
{
return GetTitle(aAccName);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccValue(nsAWritableString& aAccValue)
{
return GetURL(aAccValue);
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
return mRootAccessible->GetAccFirstChild(_retval);
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccLastChild(nsIAccessible **_retval)
{
return mRootAccessible->GetAccLastChild(_retval);
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccChildCount(PRInt32 *_retval)
{
return mRootAccessible->GetAccChildCount(_retval);
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PANE;
return NS_OK;
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetAccState(PRUint32 *aAccState)
{
return nsAccessible::GetAccState(aAccState);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetURL(nsAWritableString& aURL)
{
return nsDocAccessibleMixin::GetURL(aURL);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetTitle(nsAWritableString& aTitle)
{
return nsDocAccessibleMixin::GetTitle(aTitle);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetMimeType(nsAWritableString& aMimeType)
{
return nsDocAccessibleMixin::GetMimeType(aMimeType);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetDocType(nsAWritableString& aDocType)
{
return nsDocAccessibleMixin::GetDocType(aDocType);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
return nsDocAccessibleMixin::GetNameSpaceURIForID(aNameSpaceID, aNameSpaceURI);
}
NS_IMETHODIMP nsHTMLIFrameAccessible::GetDocument(nsIDocument **doc)
{
return nsDocAccessibleMixin::GetDocument(doc);
}
//=============================//
// nsHTMLIFrameRootAccessible //
//=============================//
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsHTMLIFrameRootAccessible::nsHTMLIFrameRootAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
mOuterNode(aNode), nsRootAccessible(aShell)
{
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsHTMLIFrameRootAccessible::~nsHTMLIFrameRootAccessible()
{
}
void nsHTMLIFrameRootAccessible::Init()
{
if (!mOuterAccessible) {
nsCOMPtr<nsIDOMDocument> domDoc;
mOuterNode->GetOwnerDocument(getter_AddRefs(domDoc));
nsCOMPtr<nsIDocument> doc(do_QueryInterface(domDoc));
if (doc) {
nsCOMPtr<nsIPresShell> parentShell;
doc->GetShellAt(0, getter_AddRefs(parentShell));
if (parentShell) {
nsCOMPtr<nsIContent> content(do_QueryInterface(mOuterNode));
nsIFrame* frame = nsnull;
parentShell->GetPrimaryFrameFor(content, &frame);
NS_ASSERTION(frame, "No outer frame.");
frame->GetAccessible(getter_AddRefs(mOuterAccessible));
NS_ASSERTION(mOuterAccessible, "Something's wrong - there's no accessible for the outer parent of this frame.");
}
}
}
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccParent(nsIAccessible * *_retval)
{
Init();
return mOuterAccessible->GetAccParent(_retval);
}
/* nsIAccessible getAccNextSibling (); */
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
Init();
return mOuterAccessible->GetAccNextSibling(_retval);
}
NS_IMETHODIMP nsHTMLIFrameRootAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
Init();
return mOuterAccessible->GetAccPreviousSibling(_retval);
}

View File

@@ -0,0 +1,101 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsIFrameRootAccessible_H_
#define _nsIFrameRootAccessible_H_
#include "nsBaseWidgetAccessible.h"
#include "nsRootAccessible.h"
#include "nsAccessible.h"
#include "nsIAccessibleDocument.h"
class nsIWebShell;
class nsIWeakReference;
class nsHTMLIFrameAccessible : public nsBlockAccessible,
public nsIAccessibleDocument,
public nsDocAccessibleMixin
{
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLEDOCUMENT
public:
nsHTMLIFrameAccessible(nsIDOMNode* aNode, nsIAccessible* aRoot, nsIWeakReference* aShell, nsIDocument *doc);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& aAccName);
NS_IMETHOD GetAccValue(nsAWritableString& AccValue);
NS_IMETHOD GetAccRole(PRUint32 *aAccRole);
NS_IMETHOD GetAccState(PRUint32 *aAccState);
protected:
nsCOMPtr<nsIAccessible> mRootAccessible;
};
class nsHTMLIFrameRootAccessible : public nsRootAccessible
{
NS_DECL_ISUPPORTS_INHERITED
public:
nsHTMLIFrameRootAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
virtual ~nsHTMLIFrameRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
/* nsIAccessible getAccNextSibling (); */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
/* nsIAccessible getAccPreviousSibling (); */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
protected:
void Init();
// In these variable names, "outer" relates to the nsHTMLIFrameAccessible, as opposed to the
// nsHTMLIFrameRootAccessible which is "inner".
// The outer node is a <browser> or <iframe> tag, whereas the inner node corresponds to the inner document root.
nsCOMPtr<nsIDOMNode> mOuterNode;
nsCOMPtr<nsIAccessible> mOuterAccessible;
};
#endif

View File

@@ -0,0 +1,205 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsGenericAccessible.h"
#include "nsHTMLImageAccessible.h"
#include "nsReadableUtils.h"
#include "nsAccessible.h"
#include "nsIHTMLDocument.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "imgIRequest.h"
#include "imgIContainer.h"
#include "nsIImageFrame.h"
// --- image -----
nsHTMLImageAccessible::nsHTMLImageAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDOMNode, aShell)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(aDOMNode));
nsCOMPtr<nsIDocument> doc;
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell)
return;
shell->GetDocument(getter_AddRefs(doc));
nsAutoString mapElementName;
if (doc && element) {
nsCOMPtr<nsIHTMLDocument> htmlDoc(do_QueryInterface(doc));
element->GetAttribute(NS_LITERAL_STRING("usemap"),mapElementName);
if (htmlDoc && !mapElementName.IsEmpty()) {
if (mapElementName.CharAt(0) == '#')
mapElementName.Cut(0,1);
htmlDoc->GetImageMap(mapElementName, getter_AddRefs(mMapElement));
}
}
}
NS_IMETHODIMP nsHTMLImageAccessible::GetAccState(PRUint32 *_retval)
{
// The state is a bitfield, get our inherited state, then logically OR it with STATE_ANIMATED if this
// is an animated image.
nsLinkableAccessible::GetAccState(_retval);
nsCOMPtr<nsIContent> content(do_QueryInterface(mDOMNode));
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
nsIFrame *frame = nsnull;
if (content && shell)
shell->GetPrimaryFrameFor(content, &frame);
nsCOMPtr<nsIImageFrame> imageFrame(do_QueryInterface(frame));
nsCOMPtr<imgIRequest> imageRequest;
if (imageFrame)
imageFrame->GetImageRequest(getter_AddRefs(imageRequest));
nsCOMPtr<imgIContainer> imgContainer;
if (imageRequest)
imageRequest->GetImage(getter_AddRefs(imgContainer));
if (imgContainer) {
PRUint32 numFrames;
imgContainer->GetNumFrames(&numFrames);
if (numFrames > 1)
*_retval |= STATE_ANIMATED;
}
return NS_OK;
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccName(nsAWritableString& _retval)
{
nsresult rv = NS_ERROR_FAILURE;
nsCOMPtr<nsIContent> imageContent(do_QueryInterface(mDOMNode));
if (imageContent) {
nsAutoString name;
rv = AppendFlatStringFromContentNode(imageContent, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
}
return rv;
}
/* wstring getAccRole (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_GRAPHIC;
return NS_OK;
}
nsIAccessible *nsHTMLImageAccessible::CreateAreaAccessible(PRUint32 areaNum)
{
if (!mMapElement)
return nsnull;
if (areaNum == -1) {
PRInt32 numAreaMaps;
GetAccChildCount(&numAreaMaps);
if (numAreaMaps<=0)
return nsnull;
areaNum = NS_STATIC_CAST(PRUint32,numAreaMaps-1);
}
nsIDOMHTMLCollection *mapAreas;
mMapElement->GetAreas(&mapAreas);
if (!mapAreas)
return nsnull;
nsIDOMNode *domNode = nsnull;
mapAreas->Item(areaNum,&domNode);
if (!domNode)
return nsnull;
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
if (!accService)
return nsnull;
if (accService) {
nsIAccessible* acc = nsnull;
accService->CreateHTMLAreaAccessible(mPresShell, domNode, this, &acc);
return acc;
}
return nsnull;
}
/* nsIAccessible getAccFirstChild (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = CreateAreaAccessible(0);
return NS_OK;
}
/* nsIAccessible getAccLastChild (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = CreateAreaAccessible(-1);
return NS_OK;
}
/* long getAccChildCount (); */
NS_IMETHODIMP nsHTMLImageAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 0;
if (mMapElement) {
nsIDOMHTMLCollection *mapAreas;
mMapElement->GetAreas(&mapAreas);
if (mapAreas) {
PRUint32 length;
mapAreas->GetLength(&length);
*_retval = NS_STATIC_CAST(PRInt32, length);
}
}
return NS_OK;
}

View File

@@ -0,0 +1,71 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLImageAccessible_H_
#define _nsHTMLImageAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
#include "nsIFrame.h"
#include "nsIImageFrame.h"
#include "nsIDOMHTMLMapElement.h"
/* Accessible for supporting images
* supports:
* - gets name, role
* - support basic state
*/
class nsHTMLImageAccessible : public nsLinkableAccessible
{
public:
nsHTMLImageAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
protected:
nsIAccessible *CreateAreaAccessible(PRUint32 areaNum);
nsCOMPtr<nsIDOMHTMLMapElement> mMapElement;
};
#endif

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLLinkAccessible.h"
#include "nsWeakReference.h"
#include "nsIFrame.h"
#include "nsILink.h"
#include "nsILinkHandler.h"
#include "nsISelection.h"
#include "nsISelectionController.h"
#include "nsIPresContext.h"
#include "nsReadableUtils.h"
#include "nsIDOMElement.h"
nsHTMLLinkAccessible::nsHTMLLinkAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsLinkableAccessible(aDomNode, aShell)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccName(nsAWritableString& _retval)
{
if (!IsALink()) // Also initializes private data members
return NS_ERROR_FAILURE;
nsAutoString name;
nsresult rv = AppendFlatStringFromSubtree(mLinkContent, &name);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
name.CompressWhitespace();
_retval.Assign(name);
}
return rv;
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLLinkAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LINK;
return NS_OK;
}

View File

@@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLLinkAccessible_H_
#define _nsHTMLLinkAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
class nsHTMLLinkAccessible : public nsLinkableAccessible
{
public:
nsHTMLLinkAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,589 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIAccessibilityService.h"
#include "nsIFrame.h"
#include "nsIComboboxControlFrame.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIDOMHTMLInputElement.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsIListControlFrame.h"
#include "nsIServiceManager.h"
#include "nsLayoutAtoms.h"
/**
* Selects, Listboxes and Comboboxes, are made up of a number of different
* widgets, some of which are shared between the two. This file contains
* all of the widgets for both of the Selects, for HTML only. Some of them
* extend classes from nsSelectAccessible.cpp, which contains base classes
* that are also extended by the XUL Select Accessibility support.
*
* Listbox:
* - nsHTMLListboxAccessible
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*
* Comboboxes:
* - nsHTMLComboboxAccessilbe
* - nsHTMLComboboxTextFieldAccessible
* - nsHTMLComboboxButtonAccessible
* - nsHTMLComboboxWindowAccessilbe
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*/
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/** ----- nsHTMLSelectListAccessible ----- */
/** Default Constructor */
nsHTMLSelectListAccessible::nsHTMLSelectListAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell)
:nsSelectListAccessible(aParent, aDOMNode, aShell)
{
}
/**
* As a nsHTMLSelectListAccessible we can have the following states:
* STATE_MULTISELECTABLE
* STATE_EXTSELECTABLE
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccState(PRUint32 *_retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if ( select ) {
PRBool multiple;
select->GetMultiple(&multiple);
if ( multiple )
*_retval |= STATE_MULTISELECTABLE | STATE_EXTSELECTABLE;
}
return NS_OK;
}
/**
* Gets the last child of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccLastChild(nsIAccessible **_retval)
{
nsCOMPtr<nsIDOMNode> last;
mDOMNode->GetLastChild(getter_AddRefs(last));
*_retval = new nsHTMLSelectOptionAccessible(this, last, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Gets the First child of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectListAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
nsCOMPtr<nsIDOMNode> first;
mDOMNode->GetFirstChild(getter_AddRefs(first));
*_retval = new nsHTMLSelectOptionAccessible(this, first, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** ----- nsHTMLSelectOptionAccessible ----- */
/** Default Constructor */
nsHTMLSelectOptionAccessible::nsHTMLSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsSelectOptionAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Gets the next sibling of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMNode> next;
mDOMNode->GetNextSibling(getter_AddRefs(next));
if (next) {
*_retval = new nsHTMLSelectOptionAccessible(mParent, next, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
}
return NS_OK;
}
/**
* Gets the previous sibling of the DOM node and creates and returns
* a nsHTMLSelectOptionAccessible.
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
nsCOMPtr<nsIDOMNode> prev;
mDOMNode->GetPreviousSibling(getter_AddRefs(prev));
if (prev) {
*_retval = new nsHTMLSelectOptionAccessible(mParent, prev, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
}
return NS_OK;
}
/**
* As a nsHTMLSelectOptionAccessible we can have the following states:
* STATE_SELECTABLE
* STATE_SELECTED
* STATE_FOCUSED
* STATE_FOCUSABLE
* STATE_INVISIBLE -- not implemented yet
*/
NS_IMETHODIMP nsHTMLSelectOptionAccessible::GetAccState(PRUint32 *_retval)
{
*_retval = 0;
nsCOMPtr<nsIDOMNode> focusedOptionNode, parentNode;
mParent->AccGetDOMNode(getter_AddRefs(parentNode));
// find out if we are the focused node
GetFocusedOptionNode(mPresShell, parentNode, focusedOptionNode);
if (focusedOptionNode == mDOMNode)
*_retval |= STATE_FOCUSED;
// Are we selected?
nsCOMPtr<nsIDOMHTMLOptionElement> option (do_QueryInterface(mDOMNode));
if ( option ) {
PRBool isSelected = PR_FALSE;
option->GetSelected(&isSelected);
if ( isSelected )
*_retval |= STATE_SELECTED;
}
*_retval |= STATE_SELECTABLE | STATE_FOCUSABLE;
return NS_OK;
}
/**
* Helper method for getting the focused DOM Node from our parent(list) node. We
* need to use the frame to get the focused option because for some reason we
* weren't getting the proper notification when the focus changed using the DOM
*/
nsresult nsHTMLSelectOptionAccessible::GetFocusedOptionNode(nsIWeakReference *aPresShell,
nsIDOMNode *aListNode,
nsCOMPtr<nsIDOMNode>& aFocusedOptionNode)
{
NS_ASSERTION(aListNode, "Called GetFocusedOptionNode without a valid list node");
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(aPresShell));
if (!shell)
return NS_ERROR_FAILURE;
nsIFrame *frame = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(aListNode));
shell->GetPrimaryFrameFor(content, &frame);
nsresult rv;
nsCOMPtr<nsIListControlFrame> listFrame(do_QueryInterface(frame, &rv));
if (NS_FAILED(rv))
return rv; // How can list content not have a list frame?
NS_ASSERTION(listFrame, "We don't have a list frame, but rv returned a success code.");
// Get what's focused by asking frame for "selected item".
PRInt32 focusedOptionIndex = 0;
rv = listFrame->GetSelectedIndex(&focusedOptionIndex);
nsCOMPtr<nsIDOMHTMLCollection> options;
// Get options
if (NS_SUCCEEDED(rv)) {
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement(do_QueryInterface(aListNode));
NS_ASSERTION(selectElement, "No select element where it should be");
rv = selectElement->GetOptions(getter_AddRefs(options));
}
// Either use options and focused index, or default to list node itself
if (NS_SUCCEEDED(rv) && options && focusedOptionIndex >= 0) // Something is focused
rv = options->Item(focusedOptionIndex, getter_AddRefs(aFocusedOptionNode));
else { // If no options in list or focusedOptionIndex <0, then we are not focused on an item
aFocusedOptionNode = aListNode; // return normal target content
rv = NS_OK;
}
return rv;
}
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/** ----- nsHTMLListboxAccessible ----- */
/** Constructor */
nsHTMLListboxAccessible::nsHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsListboxAccessible(aDOMNode, aShell)
{
}
/** Inherit the ISupports impl from nsAccessible, we handle nsIAccessibleSelectable */
NS_IMPL_ISUPPORTS_INHERITED1(nsHTMLListboxAccessible, nsListboxAccessible, nsIAccessibleSelectable)
/**
* Our last (and only) child is an nsHTMLSelectListAccessible object
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our first (and only) child is an nsHTMLSelectListAccessible object
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if ( ! *_retval )
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our value is the value of our ( first ) selected child. nsIDOMHTMLSelectElement
* returns this by default with GetValue().
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if ( select ) {
select->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
/**
* nsIAccessibleSelectable method.
* - gets from the Select DOMNode the list of all Select Options
* - iterates through all of the options looking for selected Options
* - creates IAccessible objects for selected Options
* - Returns the IAccessibles for selectd Options in the nsISupportsArray
*
* retval will be nsnull if:
* - there are no Options in the Select Element
* - there are Options but none are selected
* - the DOMNode is not a nsIDOMHTMLSelectElement ( shouldn't happen )
*/
NS_IMETHODIMP nsHTMLListboxAccessible::GetSelectedChildren(nsISupportsArray **_retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select(do_QueryInterface(mDOMNode));
if(select) {
nsCOMPtr<nsIDOMHTMLCollection> options;
// get all the options in the select
select->GetOptions(getter_AddRefs(options));
if (options) {
// set up variables we need to get the selected options and to get their nsIAccessile objects
PRUint32 length;
options->GetLength(&length);
nsCOMPtr<nsIAccessibilityService> accService(do_GetService("@mozilla.org/accessibilityService;1"));
nsCOMPtr<nsISupportsArray> selectedAccessibles;
NS_NewISupportsArray(getter_AddRefs(selectedAccessibles));
if (!selectedAccessibles || !accService)
return NS_ERROR_FAILURE;
// find the selected options and get the accessible objects;
PRBool isSelected = PR_FALSE;
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
for (PRUint32 i = 0 ; i < length ; i++) {
nsCOMPtr<nsIDOMNode> tempNode;
options->Item(i,getter_AddRefs(tempNode));
if (tempNode) {
nsCOMPtr<nsIDOMHTMLOptionElement> tempOption(do_QueryInterface(tempNode));
if (tempOption)
tempOption->GetSelected(&isSelected);
if (isSelected) {
nsCOMPtr<nsIAccessible> tempAccess;
accService->CreateHTMLSelectOptionAccessible(tempOption, this, context, getter_AddRefs(tempAccess));
if ( tempAccess )
selectedAccessibles->AppendElement(tempAccess);
isSelected = PR_FALSE;
}
}
}
selectedAccessibles->Count(&length); // reusing length
if ( length != 0 ) { // length of nsISupportsArray containing selected options
*_retval = selectedAccessibles;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
}
}
// no options, not a select or none of the options are selected
*_retval = nsnull;
return NS_OK;
}
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/** ----- nsHTMLComboboxAccessible ----- */
/** Constructor */
nsHTMLComboboxAccessible::nsHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsComboboxAccessible(aDOMNode, aShell)
{
}
/**
* Our last child is an nsHTMLComboboxWindowAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLComboboxWindowAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our last child is an nsHTMLComboboxTextFieldAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLComboboxTextFieldAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our value is the value of our ( first ) selected child. nsIDOMHTMLSelectElement
* returns this by default with GetValue().
*/
NS_IMETHODIMP nsHTMLComboboxAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMHTMLSelectElement> select (do_QueryInterface(mDOMNode));
if (select) {
select->GetValue(_retval);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
/** ----- nsHTMLComboboxTextFieldAccessible ----- */
/** Constructor */
nsHTMLComboboxTextFieldAccessible::nsHTMLComboboxTextFieldAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxTextFieldAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Our next sibling is an nsHTMLComboboxButtonAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxTextFieldAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxButtonAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** -----ComboboxButtonAccessible ----- */
/** Constructor -- cache our parent */
nsHTMLComboboxButtonAccessible::nsHTMLComboboxButtonAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxButtonAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Programmaticaly click on the button, causing either the display or
* the hiding of the drop down box ( window ).
* Walks the Frame tree and checks for proper frames.
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::AccDoAction(PRUint8 index)
{
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!context)
return NS_ERROR_FAILURE;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return NS_ERROR_FAILURE;
#endif
frame->GetNextSibling(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::gfxButtonControlFrame))
return NS_ERROR_FAILURE;
#endif
nsCOMPtr<nsIContent> content;
frame->GetContent(getter_AddRefs(content));
// We only have one action, click. Any other index is meaningless(wrong)
if (index == eAction_Click) {
nsCOMPtr<nsIDOMHTMLInputElement> element(do_QueryInterface(content));
if (element)
{
element->Click();
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
/**
* Our next sibling is an nsHTMLComboboxWindowAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxWindowAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* Our next sibling is an nsHTMLComboboxTextFieldAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxButtonAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxTextFieldAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/** ----- nsHTMLComboboxWindowAccessible ----- */
/**
* Constructor -- cache our parent
*/
nsHTMLComboboxWindowAccessible::nsHTMLComboboxWindowAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsComboboxWindowAccessible(aParent, aDOMNode, aShell)
{
}
/**
* Our previous sibling is a nsHTMLComboboxButtonAccessible object
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
nsCOMPtr<nsIAccessible> parent;
GetAccParent(getter_AddRefs(parent));
*_retval = new nsHTMLComboboxButtonAccessible(parent, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccLastChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsHTMLComboboxWindowAccessible::GetAccFirstChild(nsIAccessible **_retval)
{
*_retval = new nsHTMLSelectListAccessible(this, mDOMNode, mPresShell);
if (! *_retval)
return NS_ERROR_FAILURE;
NS_ADDREF(*_retval);
return NS_OK;
}

View File

@@ -0,0 +1,209 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsHTMLSelectAccessible_h__
#define __nsHTMLSelectAccessible_h__
#include "nsCOMPtr.h"
#include "nsIAccessibleSelectable.h"
#include "nsIDOMNode.h"
#include "nsIWeakReference.h"
#include "nsSelectAccessible.h"
/**
* Selects, Listboxes and Comboboxes, are made up of a number of different
* widgets, some of which are shared between the two. This file contains
* all of the widgets for both of the Selects, for HTML only. Some of them
* extend classes from nsSelectAccessible.cpp, which contains base classes
* that are also extended by the XUL Select Accessibility support.
*
* Listbox:
* - nsHTMLListboxAccessible
* - nsHTMLSelctListAccessible
* - nsHTMLSelectOptionAccessible
*
* Comboboxes:
* - nsHTMLComboboxAccessilbe
* - nsHTMLComboboxTextFieldAccessible
* - nsHTMLComboboxButtonAccessible
* - nsHTMLComboboxWindowAccessilbe
* - nsHTMLSelectListAccessible
* - nsHTMLSelectOptionAccessible(s)
*/
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/*
* The list that contains all the options in the select.
*/
class nsHTMLSelectListAccessible : public nsSelectListAccessible
{
public:
nsHTMLSelectListAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLSelectListAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
};
/*
* Options inside the select, contained within the list
*/
class nsHTMLSelectOptionAccessible : public nsSelectOptionAccessible
{
public:
nsHTMLSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLSelectOptionAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
static nsresult GetFocusedOptionNode(nsIWeakReference *aPresShell, nsIDOMNode *aListNode, nsCOMPtr<nsIDOMNode>& aFocusedOptionNode);
};
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/*
* A class the represents the HTML Listbox widget.
*/
class nsHTMLListboxAccessible : public nsListboxAccessible,
public nsIAccessibleSelectable
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLESELECTABLE
nsHTMLListboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLListboxAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
};
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/*
* A class the represents the HTML Combobox widget.
*/
class nsHTMLComboboxAccessible : public nsComboboxAccessible
{
public:
nsHTMLComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
};
/*
* A class the represents the text field in the Select to the left
* of the drop down button
*/
class nsHTMLComboboxTextFieldAccessible : public nsComboboxTextFieldAccessible
{
public:
nsHTMLComboboxTextFieldAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxTextFieldAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
};
/**
* A class that represents the button inside the Select to the
* right of the text field
*/
class nsHTMLComboboxButtonAccessible : public nsComboboxButtonAccessible
{
public:
nsHTMLComboboxButtonAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxButtonAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
/*
* A class that represents the window that lives to the right
* of the drop down button inside the Select. This is the window
* that is made visible when the button is pressed.
*/
class nsHTMLComboboxWindowAccessible : public nsComboboxWindowAccessible
{
public:
nsHTMLComboboxWindowAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsHTMLComboboxWindowAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccLastChild(nsIAccessible **_retval);
NS_IMETHOD GetAccFirstChild(nsIAccessible **_retval);
};
#endif

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLTableAccessible.h"
#include "nsWeakReference.h"
#include "nsReadableUtils.h"
nsHTMLTableCellAccessible::nsHTMLTableCellAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsBlockAccessible(aDomNode, aShell)
{
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLTableCellAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_CELL;
return NS_OK;
}
nsHTMLTableAccessible::nsHTMLTableAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsBlockAccessible(aDomNode, aShell)
{
}
/* unsigned long getAccRole (); */
NS_IMETHODIMP nsHTMLTableAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_TABLE;
return NS_OK;
}

View File

@@ -0,0 +1,61 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLTableAccessible_H_
#define _nsHTMLTableAccessible_H_
#include "nsAccessible.h"
#include "nsBaseWidgetAccessible.h"
class nsHTMLTableCellAccessible : public nsBlockAccessible
{
public:
nsHTMLTableCellAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
class nsHTMLTableAccessible : public nsBlockAccessible
{
public:
nsHTMLTableAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Eric Vaughan (evaughan@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsHTMLTextAccessible.h"
nsHTMLTextAccessible::nsHTMLTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell):
nsTextAccessible(aDomNode, aShell)
{
}
/* wstring getAccName (); */
NS_IMETHODIMP nsHTMLTextAccessible::GetAccName(nsAWritableString& _retval)
{
return mDOMNode->GetNodeValue(_retval);
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsHTMLTextAccessible_H_
#define _nsHTMLTextAccessible_H_
#include "nsFormControlAccessible.h"
class nsIWeakReference;
class nsHTMLTextAccessible : public nsTextAccessible
{
public:
nsHTMLTextAccessible(nsIDOMNode* aDomNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
};
#endif

View File

@@ -0,0 +1,632 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsIAccessible.h"
#include "nsRootAccessible.h"
#include "nsCOMPtr.h"
#include "nsIDocument.h"
#include "nsIDOMNSDocument.h"
#include "nsIPresShell.h"
#include "nsIPresContext.h"
#include "nsIContent.h"
#include "nsIFrame.h"
#include "nsIDOMEventTarget.h"
#include "nsIDOMElement.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMEventListener.h"
#include "nsReadableUtils.h"
#include "nsILink.h"
#include "nsHTMLFormControlAccessible.h"
#include "nsHTMLLinkAccessible.h"
#include "nsIURI.h"
#include "nsIDocShell.h"
#include "nsIDocShellTreeItem.h"
#include "nsIWebNavigation.h"
#include "nsIXULDocument.h"
#include "nsIDOMDocument.h"
#include "nsIDOMDocumentType.h"
#include "nsINameSpaceManager.h"
#include "nsIDOMNSHTMLSelectElement.h"
#include "nsIAccessibleSelectable.h"
#include "nsLayoutAtoms.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "nsIAccessibilityService.h"
#include "nsIServiceManager.h"
#include "nsHTMLSelectAccessible.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsCURILoader.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIScriptGlobalObject.h"
NS_INTERFACE_MAP_BEGIN(nsRootAccessible)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleDocument)
NS_INTERFACE_MAP_ENTRY(nsIAccessibleEventReceiver)
NS_INTERFACE_MAP_ENTRY(nsIDOMFocusListener)
NS_INTERFACE_MAP_ENTRY(nsIDOMFormListener)
NS_INTERFACE_MAP_ENTRY(nsISupportsWeakReference)
NS_INTERFACE_MAP_ENTRY(nsITimerCallback)
NS_INTERFACE_MAP_ENTRY(nsIWebProgressListener)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, nsIDOMFormListener)
NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsIDOMEventListener, nsIDOMFormListener)
NS_INTERFACE_MAP_END_INHERITING(nsAccessible)
NS_IMPL_ADDREF_INHERITED(nsRootAccessible, nsAccessible);
NS_IMPL_RELEASE_INHERITED(nsRootAccessible, nsAccessible);
nsIDOMNode * nsRootAccessible::gLastFocusedNode = 0; // Strong reference
PRUint32 nsRootAccessible::gInstanceCount = 0;
//#define DEBUG_LEAKS 1 // aaronl debug
//-----------------------------------------------------
// construction
//-----------------------------------------------------
nsRootAccessible::nsRootAccessible(nsIWeakReference* aShell):nsAccessible(nsnull,aShell),
nsDocAccessibleMixin(aShell), mAccService(do_GetService("@mozilla.org/accessibilityService;1")),
mBusy(eBusyStateUninitialized)
{
mListener = nsnull;
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (shell) {
shell->GetDocument(getter_AddRefs(mDocument));
mDOMNode = do_QueryInterface(mDocument);
}
nsLayoutAtoms::AddRefAtoms();
++gInstanceCount;
#ifdef DEBUG_LEAKS
printf("=====> %d nsRootAccessible's %x\n", gInstanceCount, (PRUint32)this);
#endif
}
//-----------------------------------------------------
// destruction
//-----------------------------------------------------
nsRootAccessible::~nsRootAccessible()
{
if (--gInstanceCount == 0)
NS_IF_RELEASE(gLastFocusedNode);
#ifdef DEBUG_LEAKS
printf("======> %d nsRootAccessible's %x\n", gInstanceCount, (PRUint32)this);
#endif
nsLayoutAtoms::ReleaseAtoms();
RemoveAccessibleEventListener();
}
/* attribute wstring accName; */
NS_IMETHODIMP nsRootAccessible::GetAccName(nsAWritableString& aAccName)
{
return GetTitle(aAccName);
}
// helpers
nsIFrame* nsRootAccessible::GetFrame()
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
nsIFrame* root = nsnull;
if (shell)
shell->GetRootFrame(&root);
return root;
}
void nsRootAccessible::GetBounds(nsRect& aBounds, nsIFrame** aRelativeFrame)
{
*aRelativeFrame = GetFrame();
if (*aRelativeFrame)
(*aRelativeFrame)->GetRect(aBounds);
}
/* readonly attribute nsIAccessible accParent; */
NS_IMETHODIMP nsRootAccessible::GetAccParent(nsIAccessible * *aAccParent)
{
*aAccParent = nsnull;
return NS_OK;
}
/* readonly attribute unsigned long accRole; */
NS_IMETHODIMP nsRootAccessible::GetAccRole(PRUint32 *aAccRole)
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
*aAccRole = 0;
return NS_ERROR_FAILURE;
}
/*
// Commenting this out for now.
// It was requested that we always use MSAA ROLE_PANE objects instead of client objects.
// However, it might be asked that we put client objects back.
nsCOMPtr<nsIPresContext> context;
shell->GetPresContext(getter_AddRefs(context));
nsCOMPtr<nsISupports> container;
context->GetContainer(getter_AddRefs(container));
if (container) {
nsCOMPtr<nsIDocShellTreeItem> parentTreeItem, docTreeItem(do_QueryInterface(container));
if (docTreeItem) {
docTreeItem->GetSameTypeParent(getter_AddRefs(parentTreeItem));
// Basically, if this docshell has a parent of the same type, it's a frame
if (parentTreeItem) {
*aAccRole = ROLE_PANE;
return NS_OK;
}
}
}
*aAccRole = ROLE_CLIENT;
*/
*aAccRole = ROLE_PANE;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetAccState(PRUint32 *aAccState)
{
*aAccState = STATE_FOCUSABLE;
if (mBusy == eBusyStateLoading)
*aAccState |= STATE_BUSY;
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetAccValue(nsAWritableString& aAccValue)
{
return GetURL(aAccValue);
}
void nsRootAccessible::Notify(nsITimer *timer)
{
// Short timer is finished
if (mBusy != eBusyStateDone) {
mBusy = eBusyStateDone;
if (mListener)
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, this);
}
}
void nsRootAccessible::StartDocReadyTimer()
{
if (!mTimer) {
nsresult rv;
mTimer = do_CreateInstance("@mozilla.org/timer;1", &rv);
if (NS_SUCCEEDED(rv)) {
const PRUint32 kUpdateTimerDelay = 1;
mTimer->Init(NS_STATIC_CAST(nsITimerCallback*, this), kUpdateTimerDelay);
}
}
}
/* void addAccessibleEventListener (in nsIAccessibleEventListener aListener); */
NS_IMETHODIMP nsRootAccessible::AddAccessibleEventListener(nsIAccessibleEventListener *aListener)
{
NS_ASSERTION(aListener, "Trying to add a null listener!");
if (mListener)
return NS_OK;
mListener = aListener;
// use AddEventListener from the nsIDOMEventTarget interface
nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(mDocument));
if (target) {
// capture DOM focus events
nsresult rv = target->AddEventListener(NS_LITERAL_STRING("focus"), NS_STATIC_CAST(nsIDOMFocusListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// capture Form change events
rv = target->AddEventListener(NS_LITERAL_STRING("change"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// add ourself as a CheckboxStateChange listener (custom event fired in nsHTMLInputElement.cpp)
rv = target->AddEventListener(NS_LITERAL_STRING("CheckboxStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// add ourself as a RadiobuttonStateChange listener (custom event fired in nsHTMLInputElement.cpp)
rv = target->AddEventListener(NS_LITERAL_STRING("RadiobuttonStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("popupshowing"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("popuphiding"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
rv = target->AddEventListener(NS_LITERAL_STRING("DOMMenuItemActive"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
NS_ASSERTION(NS_SUCCEEDED(rv), "failed to register listener");
// Extremely short timer, after which we announce that page is finished loading
// By waiting until after this short time, we know that the 3rd party accessibility software
// has received it's accessible, and can handle events on it.
StartDocReadyTimer();
// Set up web progress listener - we need to know when page loading is finished
// That way we can send the STATE_CHANGE events for the MSAA root "pane" object (ROLE_PANE),
// and change the STATE_BUSY bit flag
nsCOMPtr<nsIPresShell> presShell(do_QueryReferent(mPresShell));
if (presShell) {
nsCOMPtr<nsIPresContext> context;
presShell->GetPresContext(getter_AddRefs(context));
if (context) {
nsCOMPtr<nsISupports> container; context->GetContainer(getter_AddRefs(container));
nsCOMPtr<nsIDocShell> docShell(do_QueryInterface(container));
if (docShell) {
mWebProgress = do_GetInterface(docShell);
mWebProgress->AddProgressListener(this);
}
}
}
NS_ASSERTION(mWebProgress, "Could not get nsIWebProgress for nsRootAccessible");
mWebProgress->AddProgressListener(this);
}
return NS_OK;
}
/* void removeAccessibleEventListener (); */
NS_IMETHODIMP nsRootAccessible::RemoveAccessibleEventListener()
{
if (mListener) {
nsCOMPtr<nsIDOMEventTarget> target(do_QueryInterface(mDocument));
if (target) {
target->RemoveEventListener(NS_LITERAL_STRING("focus"), NS_STATIC_CAST(nsIDOMFocusListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("change"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("CheckboxStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("RadiobuttonStateChange"), NS_STATIC_CAST(nsIDOMFormListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("popuphiding"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
target->RemoveEventListener(NS_LITERAL_STRING("DOMMenuItemActive"), NS_STATIC_CAST(nsIDOMXULListener*, this), PR_TRUE);
}
if (mTimer) {
mTimer->Cancel();
mTimer = nsnull;
}
if (mWebProgress) {
mWebProgress->RemoveProgressListener(this);
mWebProgress = nsnull;
}
mListener = nsnull;
}
return NS_OK;
}
void nsRootAccessible::FireAccessibleFocusEvent(nsIAccessible *focusAccessible, nsIDOMNode *focusNode)
{
if (focusNode && gLastFocusedNode != focusNode) {
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_FOCUS, focusAccessible);
NS_IF_RELEASE(gLastFocusedNode);
gLastFocusedNode = focusNode;
NS_ADDREF(gLastFocusedNode);
}
}
// --------------- nsIDOMEventListener Methods (3) ------------------------
NS_IMETHODIMP nsRootAccessible::HandleEvent(nsIDOMEvent* aEvent)
{
if (mListener) {
// optionTargetNode is set to current option for HTML selects
nsCOMPtr<nsIDOMNode> targetNode, optionTargetNode;
nsresult rv = GetTargetNode(aEvent, targetNode);
if (NS_FAILED(rv))
return rv;
// Check to see if it's a select element. If so, need the currently focused option
nsCOMPtr<nsIDOMHTMLSelectElement> selectElement(do_QueryInterface(targetNode));
if (selectElement) // ----- Target Node is an HTML <select> element ------
nsHTMLSelectOptionAccessible::GetFocusedOptionNode(mPresShell, targetNode, optionTargetNode);
nsAutoString eventType;
aEvent->GetType(eventType);
nsCOMPtr<nsIAccessible> accessible;
if (NS_SUCCEEDED(mAccService->GetAccessibleFor(targetNode, getter_AddRefs(accessible)))) {
if (eventType.EqualsIgnoreCase("focus") || eventType.EqualsIgnoreCase("DOMMenuItemActive"))
FireAccessibleFocusEvent(accessible, targetNode);
else if (eventType.EqualsIgnoreCase("change")) {
if (optionTargetNode) { // Set to current option only for HTML selects
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_SELECTION, accessible);
if (NS_SUCCEEDED(mAccService->GetAccessibleFor(optionTargetNode, getter_AddRefs(accessible))))
FireAccessibleFocusEvent(accessible, optionTargetNode);
}
else
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, accessible);
}
else if (eventType.EqualsIgnoreCase("CheckboxStateChange") ||
eventType.EqualsIgnoreCase("RadiobuttonStateChange"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, accessible);
else if (eventType.EqualsIgnoreCase("popupshowing"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_MENUPOPUPSTART, accessible);
else if (eventType.EqualsIgnoreCase("popuphiding"))
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_MENUPOPUPEND, accessible);
}
}
return NS_OK;
}
NS_IMETHODIMP nsRootAccessible::GetTargetNode(nsIDOMEvent *aEvent, nsCOMPtr<nsIDOMNode>& aTargetNode)
{
nsCOMPtr<nsIDOMEventTarget> domEventTarget;
aEvent->GetOriginalTarget(getter_AddRefs(domEventTarget));
nsresult rv;
aTargetNode = do_QueryInterface(domEventTarget, &rv);
return rv;
}
// ------- nsIDOMFocusListener Methods (1) -------------
NS_IMETHODIMP nsRootAccessible::Focus(nsIDOMEvent* aEvent)
{
return HandleEvent(aEvent);
}
NS_IMETHODIMP nsRootAccessible::Blur(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIDOMFormListener Methods (5) -------------
NS_IMETHODIMP nsRootAccessible::Submit(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Reset(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Change(nsIDOMEvent* aEvent)
{
// get change events when the form elements changes its state, checked->not,
// deleted text, new text, change in selection for list/combo boxes
// this may be the event that we have the individual Accessible objects
// handle themselves -- have list/combos figure out the change in selection
// have textareas and inputs fire a change of state etc...
return HandleEvent(aEvent);
}
// gets Select events when text is selected in a textarea or input
NS_IMETHODIMP nsRootAccessible::Select(nsIDOMEvent* aEvent) { return NS_OK; }
// gets Input events when text is entered or deleted in a textarea or input
NS_IMETHODIMP nsRootAccessible::Input(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIDOMXULListener Methods (8) ---------------
NS_IMETHODIMP nsRootAccessible::PopupShowing(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupHiding(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Close(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHODIMP nsRootAccessible::CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
// ------- nsIAccessibleDocument Methods (5) ---------------
NS_IMETHODIMP nsRootAccessible::GetURL(nsAWritableString& aURL)
{
return nsDocAccessibleMixin::GetURL(aURL);
}
NS_IMETHODIMP nsRootAccessible::GetTitle(nsAWritableString& aTitle)
{
return nsDocAccessibleMixin::GetTitle(aTitle);
}
NS_IMETHODIMP nsRootAccessible::GetMimeType(nsAWritableString& aMimeType)
{
return nsDocAccessibleMixin::GetMimeType(aMimeType);
}
NS_IMETHODIMP nsRootAccessible::GetDocType(nsAWritableString& aDocType)
{
return nsDocAccessibleMixin::GetDocType(aDocType);
}
NS_IMETHODIMP nsRootAccessible::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
return nsDocAccessibleMixin::GetNameSpaceURIForID(aNameSpaceID, aNameSpaceURI);
}
NS_IMETHODIMP nsRootAccessible::GetDocument(nsIDocument **doc)
{
return nsDocAccessibleMixin::GetDocument(doc);
}
NS_IMETHODIMP nsRootAccessible::OnStateChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 aStateFlags, PRUint32 aStatus)
{
return NS_OK;
}
/* void onProgressChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long aCurSelfProgress, in long aMaxSelfProgress, in long aCurTotalProgress, in long aMaxTotalProgress); */
NS_IMETHODIMP nsRootAccessible::OnProgressChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 aCurSelfProgress, PRInt32 aMaxSelfProgress,
PRInt32 aCurTotalProgress, PRInt32 aMaxTotalProgress)
{
return NS_OK;
}
/* void onLocationChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsIURI location); */
NS_IMETHODIMP nsRootAccessible::OnLocationChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, nsIURI *location)
{
// Load has been verified, it will occur, about to commence
if (mListener && mBusy != eBusyStateLoading) {
mBusy = eBusyStateLoading;
mListener->HandleEvent(nsIAccessibleEventListener::EVENT_STATE_CHANGE, this);
StartDocReadyTimer();
}
return NS_OK;
}
/* void onStatusChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in nsresult aStatus, in wstring aMessage); */
NS_IMETHODIMP nsRootAccessible::OnStatusChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, nsresult aStatus, const PRUnichar *aMessage)
{
return NS_OK;
}
/* void onSecurityChange (in nsIWebProgress aWebProgress, in nsIRequest aRequest, in long state); */
NS_IMETHODIMP nsRootAccessible::OnSecurityChange(nsIWebProgress *aWebProgress,
nsIRequest *aRequest, PRInt32 state)
{
return NS_OK;
}
nsDocAccessibleMixin::nsDocAccessibleMixin(nsIDocument *aDoc):mDocument(aDoc)
{
}
nsDocAccessibleMixin::nsDocAccessibleMixin(nsIWeakReference *aPresShell)
{
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(aPresShell));
if (shell)
shell->GetDocument(getter_AddRefs(mDocument));
}
nsDocAccessibleMixin::~nsDocAccessibleMixin()
{
}
NS_IMETHODIMP nsDocAccessibleMixin::GetURL(nsAWritableString& aURL)
{
nsCOMPtr<nsIPresShell> presShell;
mDocument->GetShellAt(0, getter_AddRefs(presShell));
if (!presShell)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDocShell> docShell;
GetDocShellFromPS(presShell, getter_AddRefs(docShell));
nsCOMPtr<nsIWebNavigation> webNav(do_GetInterface(docShell));
nsXPIDLCString theURL;
if (webNav) {
nsCOMPtr<nsIURI> pURI;
webNav->GetCurrentURI(getter_AddRefs(pURI));
if (pURI)
pURI->GetSpec(getter_Copies(theURL));
}
//XXXaaronl Need to use CopyUTF8toUCS2(nsDependentCString(theURL), aURL); when it's written
aURL.Assign(NS_ConvertUTF8toUCS2(theURL).get());
return NS_OK;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetTitle(nsAWritableString& aTitle)
{
// This doesn't leak - we don't own the const pointer that's returned
aTitle = *(mDocument->GetDocumentTitle());
return NS_OK;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetMimeType(nsAWritableString& aMimeType)
{
nsCOMPtr<nsIDOMNSDocument> domnsDocument(do_QueryInterface(mDocument));
if (domnsDocument) {
return domnsDocument->GetContentType(aMimeType);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocType(nsAWritableString& aDocType)
{
nsCOMPtr<nsIXULDocument> xulDoc(do_QueryInterface(mDocument));
nsCOMPtr<nsIDOMDocument> domDoc(do_QueryInterface(mDocument));
nsCOMPtr<nsIDOMDocumentType> docType;
if (xulDoc) {
aDocType = NS_LITERAL_STRING("window"); // doctype not implemented for XUL at time of writing - causes assertion
return NS_OK;
}
else if (domDoc && NS_SUCCEEDED(domDoc->GetDoctype(getter_AddRefs(docType))) && docType) {
return docType->GetName(aDocType);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetNameSpaceURIForID(PRInt16 aNameSpaceID, nsAWritableString& aNameSpaceURI)
{
if (mDocument) {
nsCOMPtr<nsINameSpaceManager> nameSpaceManager;
if (NS_SUCCEEDED(mDocument->GetNameSpaceManager(*getter_AddRefs(nameSpaceManager))))
return nameSpaceManager->GetNameSpaceURI(aNameSpaceID, aNameSpaceURI);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocument(nsIDocument **doc)
{
*doc = mDocument;
if (mDocument) {
NS_IF_ADDREF(*doc);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsDocAccessibleMixin::GetDocShellFromPS(nsIPresShell* aPresShell, nsIDocShell** aDocShell)
{
*aDocShell = nsnull;
if (aPresShell) {
nsCOMPtr<nsIDocument> doc;
aPresShell->GetDocument(getter_AddRefs(doc));
if (doc) {
nsCOMPtr<nsIScriptGlobalObject> scriptObj;
doc->GetScriptGlobalObject(getter_AddRefs(scriptObj));
if (scriptObj) {
scriptObj->GetDocShell(aDocShell);
if (*aDocShell)
return NS_OK;
}
}
}
return NS_ERROR_FAILURE;
}

View File

@@ -0,0 +1,156 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsRootAccessible_H_
#define _nsRootAccessible_H_
#include "nsAccessible.h"
#include "nsIAccessibleEventReceiver.h"
#include "nsIAccessibleEventListener.h"
#include "nsIAccessibleDocument.h"
#include "nsIDOMFormListener.h"
#include "nsIDOMXULListener.h"
#include "nsIDOMFocusListener.h"
#include "nsIDocument.h"
#include "nsIAccessibilityService.h"
#include "nsIWebProgressListener.h"
#include "nsIWeakReference.h"
#include "nsITimer.h"
#include "nsITimerCallback.h"
#include "nsIWebProgress.h"
class nsDocAccessibleMixin
{
public:
nsDocAccessibleMixin(nsIDocument *doc);
nsDocAccessibleMixin(nsIWeakReference *aShell);
virtual ~nsDocAccessibleMixin();
NS_DECL_NSIACCESSIBLEDOCUMENT
protected:
NS_IMETHOD GetDocShellFromPS(nsIPresShell* aPresShell, nsIDocShell** aDocShell);
nsCOMPtr<nsIDocument> mDocument;
};
class nsRootAccessible : public nsAccessible,
public nsDocAccessibleMixin,
public nsIAccessibleDocument,
public nsIAccessibleEventReceiver,
public nsIDOMFocusListener,
public nsIDOMFormListener,
public nsIDOMXULListener,
public nsIWebProgressListener,
public nsITimerCallback,
public nsSupportsWeakReference
{
NS_DECL_ISUPPORTS_INHERITED
public:
enum EBusyState {eBusyStateUninitialized, eBusyStateLoading, eBusyStateDone};
nsRootAccessible(nsIWeakReference* aShell);
virtual ~nsRootAccessible();
/* attribute wstring accName; */
NS_IMETHOD GetAccName(nsAWritableString& aAccName);
NS_IMETHOD GetAccValue(nsAWritableString& aAccValue);
NS_IMETHOD GetAccParent(nsIAccessible * *aAccParent);
NS_IMETHOD GetAccRole(PRUint32 *aAccRole);
NS_IMETHOD GetAccState(PRUint32 *aAccState);
// ----- nsIAccessibleEventReceiver -------------------
NS_IMETHOD AddAccessibleEventListener(nsIAccessibleEventListener *aListener);
NS_IMETHOD RemoveAccessibleEventListener();
// ----- nsIDOMEventListener --------------------------
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
// ----- nsIDOMFocusListener --------------------------
NS_IMETHOD Focus(nsIDOMEvent* aEvent);
NS_IMETHOD Blur(nsIDOMEvent* aEvent);
// ----- nsIDOMFormListener ---------------------------
NS_IMETHOD Submit(nsIDOMEvent* aEvent);
NS_IMETHOD Reset(nsIDOMEvent* aEvent);
NS_IMETHOD Change(nsIDOMEvent* aEvent);
NS_IMETHOD Select(nsIDOMEvent* aEvent);
NS_IMETHOD Input(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent);
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent);
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent);
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent);
NS_IMETHOD_(void) Notify(nsITimer *timer);
NS_DECL_NSIACCESSIBLEDOCUMENT
NS_DECL_NSIWEBPROGRESSLISTENER
protected:
NS_IMETHOD GetTargetNode(nsIDOMEvent *aEvent, nsCOMPtr<nsIDOMNode>& aTargetNode);
virtual void GetBounds(nsRect& aRect, nsIFrame** aRelativeFrame);
virtual nsIFrame* GetFrame();
void FireAccessibleFocusEvent(nsIAccessible *focusAccessible, nsIDOMNode *focusNode);
void StartDocReadyTimer();
static PRUint32 gInstanceCount;
// mListener is not a com pointer. We don't own the listener
// it is the callers responsibility to remove the listener
// otherwise we will get into circular referencing problems
// We don't need a weak reference, because we're owned by this listener
nsIAccessibleEventListener *mListener;
static nsIDOMNode * gLastFocusedNode; // we do our own refcounting for this
nsCOMPtr<nsITimer> mTimer;
nsCOMPtr<nsIWebProgress> mWebProgress;
nsCOMPtr<nsIAccessibilityService> mAccService;
EBusyState mBusy;
};
#endif

View File

@@ -0,0 +1,680 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s): John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsCOMPtr.h"
#include "nsFormControlAccessible.h"
#include "nsIAtom.h"
#include "nsIComboboxControlFrame.h"
#include "nsIDOMEventReceiver.h"
#include "nsIDOMHTMLCollection.h"
#include "nsIDOMHTMLOptionElement.h"
#include "nsIDOMHTMLSelectElement.h"
#include "nsIFrame.h"
#include "nsIListControlFrame.h"
#include "nsISelectControlFrame.h"
#include "nsLayoutAtoms.h"
#include "nsRootAccessible.h"
#include "nsSelectAccessible.h"
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/** Constructor -- cache our parent */
nsSelectListAccessible::nsSelectListAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell)
:nsAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** Return our parents bounds */
NS_IMETHODIMP nsSelectListAccessible::AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height)
{
return mParent->AccGetBounds(x,y,width,height);
}
/** Return our cached parent */
NS_IMETHODIMP nsSelectListAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_ADDREF(*_retval);
return NS_OK;
}
/** We are a list */
NS_IMETHODIMP nsSelectListAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LIST;
return NS_OK;
}
/** We are an only child */
NS_IMETHODIMP nsSelectListAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/** We are an only child */
NS_IMETHODIMP nsSelectListAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* nsSelectOptionAccessible
*/
/** Constructor -- cache our parent */
nsSelectOptionAccessible::nsSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** We are a ListItem */
NS_IMETHODIMP nsSelectOptionAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_LISTITEM;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsSelectOptionAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* Get our Name from our Content's subtree
*/
NS_IMETHODIMP nsSelectOptionAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIContent> content (do_QueryInterface(mDOMNode));
if (!content) {
return NS_ERROR_FAILURE;
}
nsAutoString option;
nsresult rv = AppendFlatStringFromSubtree(content, &option);
if (NS_SUCCEEDED(rv)) {
// Temp var needed until CompressWhitespace built for nsAWritableString
option.CompressWhitespace();
_retval.Assign(option);
}
return rv;
}
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/** ----- nsListboxAccessible ----- */
/** Constructor */
nsListboxAccessible::nsListboxAccessible(nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
}
/** We are a window, as far as MSAA is concerned */
NS_IMETHODIMP nsListboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_WINDOW;
return NS_OK;
}
/**
* We always have 1 child: a subclass of nsSelectListAccessible.
*/
NS_IMETHODIMP nsListboxAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/**
* As a nsHTMLListboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsListboxAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/** ----- nsComboboxAccessible ----- */
/**
* Constructor -- set initial state - closed, register ourself
*/
nsComboboxAccessible::nsComboboxAccessible(nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mRegistered = PR_FALSE;
mOpen = PR_FALSE;
SetupMenuListener();
}
/**
* Destructor -- If we are registered, remove ourselves as a listener.
*/
nsComboboxAccessible::~nsComboboxAccessible()
{
if (mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver)
eventReceiver->RemoveEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE);
}
}
/**
* Inherit the ISupports impl from nsAccessible,
* handle nsIDOMXULListener and nsIAccessibleSelectable ourself
*/
NS_IMPL_ISUPPORTS_INHERITED2(nsComboboxAccessible, nsAccessible, nsIDOMXULListener, nsIAccessibleSelectable)
/**
* If we aren't already registered, register ourselves as a
* listener to "popupshowing" events on our DOM node. Set our
* state to registered, but don't notify MSAA as they
* don't need to know about this state.
*/
void
nsComboboxAccessible::SetupMenuListener()
{
// if not already registered as a popup listener, register ourself
if (!mRegistered) {
nsCOMPtr<nsIDOMEventReceiver> eventReceiver(do_QueryInterface(mDOMNode));
if (eventReceiver && NS_SUCCEEDED(eventReceiver->AddEventListener(NS_LITERAL_STRING("popupshowing"), this, PR_TRUE)))
mRegistered = PR_TRUE;
}
}
/** We are a combobox */
NS_IMETHODIMP nsComboboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_COMBOBOX;
return NS_OK;
}
/**
* We always have 3 children: TextField, Button, Window. In that order
*/
NS_IMETHODIMP nsComboboxAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 3;
return NS_OK;
}
/**
* nsIAccessibleSelectable method. No-op because our selection is returned through
* GetValue(). This _may_ change just to provide additional info for the vendors
* and another option for them to get at stuff. Despite the fact that we are
* single selection only.
*/
NS_IMETHODIMP nsComboboxAccessible::GetSelectedChildren(nsISupportsArray **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* As a nsComboboxAccessible we can have the following states:
* STATE_FOCUSED
* STATE_READONLY
* STATE_FOCUSABLE
* STATE_HASPOPUP
* STATE_EXPANDED
* STATE_COLLAPSED
*/
NS_IMETHODIMP nsComboboxAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
if (mOpen)
*_retval |= STATE_EXPANDED;
else
*_retval |= STATE_COLLAPSED;
*_retval |= STATE_HASPOPUP | STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/**
* Set our state to open and (TBD) fire an event to MSAA saying our state
* has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::PopupShowing(nsIDOMEvent* aEvent)
{
mOpen = PR_TRUE;
/* TBD send state change event */
return NS_OK;
}
/**
* Set our state to not open and (TDB) fire an event to MSAA saying
* our state has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::PopupHiding(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
/**
* Set our state to not open and (TDB) fire an event to MSAA saying
* our state has changed.
*/
NS_IMETHODIMP nsComboboxAccessible::Close(nsIDOMEvent* aEvent)
{
mOpen = PR_FALSE;
/* TBD send state change event */
return NS_OK;
}
/** ----- nsComboboxTextFieldAccessible ----- */
/** Constructor */
nsComboboxTextFieldAccessible::nsComboboxTextFieldAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/**
* Currently gets the text from the first option, needs to check for selection
* and then return that text.
* Walks the Frame tree and checks for proper frames.
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccValue(nsAWritableString& _retval)
{
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!frame || !context)
return NS_ERROR_FAILURE;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return NS_ERROR_FAILURE;
#endif
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::textFrame))
return NS_ERROR_FAILURE;
#endif
nsCOMPtr<nsIContent> content;
frame->GetContent(getter_AddRefs(content));
if (!content)
return NS_ERROR_FAILURE;
AppendFlatStringFromSubtree(content, &_retval);
return NS_OK;
}
/**
* Gets the bounds for the BlockFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxTextFieldAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our first child's frame
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!frame || !context)
return;
frame->FirstChild(context, nsnull, aBoundingFrame);
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetRect(aBounds);
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* We are the first child of our parent, no previous sibling
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccPreviousSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* Our role is currently only static text, but we should be able to have
* editable text here and we need to check that case.
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_STATICTEXT;
return NS_OK;
}
/**
* As a nsComboboxTextFieldAccessible we can have the following states:
* STATE_READONLY
* STATE_FOCUSED
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsComboboxTextFieldAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
*_retval |= STATE_READONLY | STATE_FOCUSABLE;
return NS_OK;
}
/** -----ComboboxButtonAccessible ----- */
/** Constructor -- cache our parent */
nsComboboxButtonAccessible::nsComboboxButtonAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsLeafAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/** Just one action ( click ). */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/**
* Gets the bounds for the gfxButtonControlFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxButtonAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our second child's frame
nsIFrame* frame = nsAccessible::GetBoundsFrame();
nsCOMPtr<nsIPresContext> context;
GetPresContext(context);
if (!context)
return;
frame->FirstChild(context, nsnull, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetNextSibling(aBoundingFrame);
frame->GetNextSibling(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::gfxButtonControlFrame))
return;
#endif
frame->GetRect(aBounds);
}
/** We are a button. */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* Gets the name from GetAccActionName()
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccName(nsAWritableString& _retval)
{
return GetAccActionName(eAction_Click, _retval);
}
/**
* Our action name is the reverse of our state:
* if we are closed -> open is our name.
* if we are open -> closed is our name.
* Uses the frame to get the state, updated on every click
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (isOpen)
_retval = NS_LITERAL_STRING("Close");
else
_retval = NS_LITERAL_STRING("Open");
return NS_OK;
}
/**
* As a nsComboboxButtonAccessible we can have the following states:
* STATE_PRESSED
* STATE_FOCUSED
* STATE_FOCUSABLE
*/
NS_IMETHODIMP nsComboboxButtonAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
// we are open or closed --> pressed or not
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (isOpen)
*_retval |= STATE_PRESSED;
*_retval |= STATE_FOCUSABLE;
return NS_OK;
}
/** ----- nsComboboxWindowAccessible ----- */
/**
* Constructor -- cache our parent
*/
nsComboboxWindowAccessible::nsComboboxWindowAccessible(nsIAccessible* aParent,
nsIDOMNode* aDOMNode,
nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
mParent = aParent;
}
/**
* As a nsComboboxWindowAccessible we can have the following states:
* STATE_FOCUSED
* STATE_FOCUSABLE
* STATE_INVISIBLE
* STATE_FLOATING
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus status from base class
nsAccessible::GetAccState(_retval);
// we are open or closed
PRBool isOpen = PR_FALSE;
nsIFrame *boundsFrame = GetBoundsFrame();
nsIComboboxControlFrame* comboFrame = nsnull;
boundsFrame->QueryInterface(NS_GET_IID(nsIComboboxControlFrame), (void**)&comboFrame);
if (!comboFrame)
return NS_ERROR_FAILURE;
comboFrame->IsDroppedDown(&isOpen);
if (! isOpen)
*_retval |= STATE_INVISIBLE;
*_retval |= STATE_FOCUSABLE | STATE_FLOATING;
return NS_OK;
}
/** We are a window */
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_WINDOW;
return NS_OK;
}
/** Return our cached parent */
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccParent(nsIAccessible **_retval)
{
*_retval = mParent;
NS_IF_ADDREF(*_retval);
return NS_OK;
}
/**
* We are the last sibling of our parent.
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccNextSibling(nsIAccessible **_retval)
{
*_retval = nsnull;
return NS_OK;
}
/**
* We only have one child, a list
*/
NS_IMETHODIMP nsComboboxWindowAccessible::GetAccChildCount(PRInt32 *_retval)
{
*_retval = 1;
return NS_OK;
}
/**
* Gets the bounds for the areaFrame.
* Walks the Frame tree and checks for proper frames.
*/
void nsComboboxWindowAccessible::GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame)
{
// get our first option
nsCOMPtr<nsIDOMNode> child;
mDOMNode->GetFirstChild(getter_AddRefs(child));
// now get its frame
nsCOMPtr<nsIPresShell> shell(do_QueryReferent(mPresShell));
if (!shell) {
*aBoundingFrame = nsnull;
return;
}
nsIFrame* frame = nsnull;
nsCOMPtr<nsIContent> content(do_QueryInterface(child));
shell->GetPrimaryFrameFor(content, &frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::blockFrame))
return;
#endif
frame->GetParent(aBoundingFrame);
frame->GetParent(&frame);
#ifdef DEBUG
if (! nsAccessible::IsCorrectFrameType(frame, nsLayoutAtoms::areaFrame))
return;
#endif
frame->GetRect(aBounds);
}

View File

@@ -0,0 +1,237 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Original Author: Eric Vaughan (evaughan@netscape.com)
* Contributor(s): John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef __nsSelectAccessible_h__
#define __nsSelectAccessible_h__
#include "nsBaseWidgetAccessible.h"
#include "nsIAccessibleSelectable.h"
#include "nsIDOMXULListener.h"
/** ------------------------------------------------------ */
/** First, the common widgets */
/** ------------------------------------------------------ */
/**
* The list that contains all the options in the select.
*/
class nsSelectListAccessible : public nsAccessible
{
public:
nsSelectListAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsSelectListAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD AccGetBounds(PRInt32 *x, PRInt32 *y, PRInt32 *width, PRInt32 *height);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* Options inside the select, contained within the list
*/
class nsSelectOptionAccessible : public nsLeafAccessible
{
public:
nsSelectOptionAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsSelectOptionAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/** ------------------------------------------------------ */
/** Secondly, the Listbox widget */
/** ------------------------------------------------------ */
/**
* A class that represents the Listbox widget.
*/
class nsListboxAccessible : public nsAccessible
{
public:
nsListboxAccessible (nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsListboxAccessible () {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
/** ------------------------------------------------------ */
/** Finally, the Combobox widgets */
/** ------------------------------------------------------ */
/**
* A class the represents the HTML Combobox widget.
*/
class nsComboboxAccessible : public nsAccessible,
public nsIAccessibleSelectable,
public nsIDOMXULListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIACCESSIBLESELECTABLE
nsComboboxAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxAccessible();
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
/* ----- nsIDOMXULListener ----- */
NS_IMETHOD PopupShowing(nsIDOMEvent* aEvent);
NS_IMETHOD PopupShown(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD PopupHiding(nsIDOMEvent* aEvent);
NS_IMETHOD PopupHidden(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Close(nsIDOMEvent* aEvent);
NS_IMETHOD Command(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD Broadcast(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD CommandUpdate(nsIDOMEvent* aEvent) { return NS_OK; }
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) { return NS_OK; }
virtual void SetupMenuListener();
protected:
PRBool mRegistered;
PRBool mOpen;
};
/**
* A class the represents the text field in the Combobox to the left
* of the drop down button
*/
class nsComboboxTextFieldAccessible : public nsLeafAccessible
{
public:
nsComboboxTextFieldAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxTextFieldAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccPreviousSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* A class that represents the button inside the Select to the
* right of the text field
*/
class nsComboboxButtonAccessible : public nsLeafAccessible
{
public:
nsComboboxButtonAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxButtonAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
/**
* A class that represents the window that lives to the right
* of the drop down button inside the Select. This is the window
* that is made visible when the button is pressed.
*/
class nsComboboxWindowAccessible : public nsAccessible
{
public:
nsComboboxWindowAccessible(nsIAccessible* aParent, nsIDOMNode* aDOMNode, nsIWeakReference* aShell);
virtual ~nsComboboxWindowAccessible() {}
/* ----- nsIAccessible ----- */
NS_IMETHOD GetAccParent(nsIAccessible **_retval);
NS_IMETHOD GetAccNextSibling(nsIAccessible **_retval);
NS_IMETHOD GetAccChildCount(PRInt32 *_retval);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
virtual void GetBounds(nsRect& aBounds, nsIFrame** aBoundingFrame);
protected:
nsCOMPtr<nsIAccessible> mParent;
};
#endif

View File

@@ -0,0 +1,130 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsXULColorPickerAccessible.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsXULFormControlAccessible.h"
#include "nsIDOMElement.h"
/**
* XUL Color Picker Tile
*/
/**
* Default Constructor
*/
nsXULColorPickerTileAccessible::nsXULColorPickerTileAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsXULButtonAccessible(aNode, aShell)
{
}
/**
* We are a pushbutton
*/
NS_IMETHODIMP nsXULColorPickerTileAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
/**
* Possible states: focused, focusable, selected
*/
NS_IMETHODIMP nsXULColorPickerTileAccessible::GetAccState(PRUint32 *_retval)
{
// get focus and disable status from base class
nsFormControlAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
// Focused?
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No XUL Element for colorpicker");
PRBool isFocused = PR_FALSE;
element->HasAttribute(NS_LITERAL_STRING("hover"), &isFocused);
if (isFocused)
*_retval |= STATE_FOCUSED;
PRBool isSelected = PR_FALSE;
element->HasAttribute(NS_LITERAL_STRING("selected"), &isSelected);
if (isFocused)
*_retval |= STATE_SELECTED;
return NS_OK;
}
NS_IMETHODIMP nsXULColorPickerTileAccessible::GetAccName(nsAWritableString& _retval)
{
_retval.Assign(NS_LITERAL_STRING(""));
return NS_OK;
}
NS_IMETHODIMP nsXULColorPickerTileAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No XUL Element for colorpicker");
return element->GetAttribute(NS_LITERAL_STRING("color"), _retval);
}
/**
* XUL Color Picker
*/
/**
* Default Constructor
*/
nsXULColorPickerAccessible::nsXULColorPickerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsXULColorPickerTileAccessible(aNode, aShell)
{
}
/**
* Possible states: focused, focusable, unavailable(disabled)
*/
NS_IMETHODIMP nsXULColorPickerAccessible::GetAccState(PRUint32 *_retval)
{
// get focus and disable status from base class
nsFormControlAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE | STATE_HASPOPUP;
return NS_OK;
}

View File

@@ -0,0 +1,63 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsXULColorPickerAccessible_H_
#define _nsXULColorPickerAccessible_H_
// NOTE: alphabetically ordered
#include "nsXULFormControlAccessible.h"
class nsXULColorPickerTileAccessible : public nsXULButtonAccessible
{
public:
nsXULColorPickerTileAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
NS_IMETHOD GetAccValue(nsAWritableString& _retval);
};
class nsXULColorPickerAccessible : public nsXULColorPickerTileAccessible
{
public:
nsXULColorPickerAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
#endif

View File

@@ -0,0 +1,307 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
// NOTE: alphabetically ordered
#include "nsIDocument.h"
#include "nsIDOMNodeList.h"
#include "nsIDOMXULButtonElement.h"
#include "nsIDOMXULCheckboxElement.h"
#include "nsIDOMXULDescriptionElement.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMXULLabelElement.h"
#include "nsIDOMXULSelectCntrlEl.h"
#include "nsIDOMXULSelectCntrlItemEl.h"
#include "nsReadableUtils.h"
#include "nsString.h"
#include "nsXULFormControlAccessible.h"
/**
* XUL Button: can contain arbitrary HTML content
*/
/**
* Default Constructor
*/
nsXULButtonAccessible::nsXULButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
/**
* Only one actions available
*/
NS_IMETHODIMP nsXULButtonAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;;
}
/**
* Return the name of our only action
*/
NS_IMETHODIMP nsXULButtonAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
_retval = NS_LITERAL_STRING("press");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
/**
* Tell the button to do it's action
*/
NS_IMETHODIMP nsXULButtonAccessible::AccDoAction(PRUint8 index)
{
if (index == 0) {
nsCOMPtr<nsIDOMXULButtonElement> buttonElement(do_QueryInterface(mDOMNode));
if ( buttonElement )
{
buttonElement->DoCommand();
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
/**
* We are a pushbutton
*/
NS_IMETHODIMP nsXULButtonAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PUSHBUTTON;
return NS_OK;
}
/**
* Possible states: focused, focusable, unavailable(disabled)
*/
NS_IMETHODIMP nsXULButtonAccessible::GetAccState(PRUint32 *_retval)
{
// get focus and disable status from base class
nsFormControlAccessible::GetAccState(_retval);
*_retval |= STATE_FOCUSABLE;
// Buttons can be checked -- they simply appear pressed in rather than checked
nsCOMPtr<nsIDOMXULButtonElement> xulButtonElement(do_QueryInterface(mDOMNode));
if (xulButtonElement) {
PRBool checked = PR_FALSE;
PRInt32 checkState = 0;
xulButtonElement->GetChecked(&checked);
if (checked) {
*_retval |= STATE_PRESSED;
xulButtonElement->GetCheckState(&checkState);
if (checkState == nsIDOMXULButtonElement::CHECKSTATE_MIXED)
*_retval |= STATE_MIXED;
}
}
return NS_OK;
}
/**
* XUL checkbox
*/
/**
* Default Constructor
*/
nsXULCheckboxAccessible::nsXULCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsFormControlAccessible(aNode, aShell)
{
}
/**
* We are a CheckButton
*/
NS_IMETHODIMP nsXULCheckboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_CHECKBUTTON;
return NS_OK;
}
/**
* Only one action available
*/
NS_IMETHODIMP nsXULCheckboxAccessible::GetAccNumActions(PRUint8 *_retval)
{
*_retval = eSingle_Action;
return NS_OK;
}
/**
* Return the name of our only action
*/
NS_IMETHODIMP nsXULCheckboxAccessible::GetAccActionName(PRUint8 index, nsAWritableString& _retval)
{
if (index == eAction_Click) {
// check or uncheck
PRUint32 state;
GetAccState(&state);
if (state & STATE_CHECKED)
_retval = NS_LITERAL_STRING("uncheck");
else
_retval = NS_LITERAL_STRING("check");
return NS_OK;
}
return NS_ERROR_INVALID_ARG;
}
/**
* Tell the checkbox to do its only action -- check( or uncheck) itself
*/
NS_IMETHODIMP nsXULCheckboxAccessible::AccDoAction(PRUint8 index)
{
if (index == eAction_Click) {
PRBool checked = PR_FALSE;
nsCOMPtr<nsIDOMXULCheckboxElement> xulCheckboxElement(do_QueryInterface(mDOMNode));
if (xulCheckboxElement) {
xulCheckboxElement->GetChecked(&checked);
xulCheckboxElement->SetChecked(!checked);
return NS_OK;
}
return NS_ERROR_FAILURE;
}
return NS_ERROR_INVALID_ARG;
}
/**
* Possible states: focused, focusable, unavailable(disabled), checked
*/
NS_IMETHODIMP nsXULCheckboxAccessible::GetAccState(PRUint32 *_retval)
{
// Get focus and disable status from base class
nsFormControlAccessible::GetAccState(_retval);
// Determine Checked state
nsCOMPtr<nsIDOMXULCheckboxElement> xulCheckboxElement(do_QueryInterface(mDOMNode));
if (xulCheckboxElement) {
PRBool checked = PR_FALSE;
xulCheckboxElement->GetChecked(&checked);
if (checked) {
*_retval |= STATE_CHECKED;
PRInt32 checkState = 0;
xulCheckboxElement->GetCheckState(&checkState);
if (checkState == nsIDOMXULCheckboxElement::CHECKSTATE_MIXED)
*_retval |= STATE_MIXED;
}
}
return NS_OK;
}
/**
* XUL groupbox
*/
nsXULGroupboxAccessible::nsXULGroupboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsXULGroupboxAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_GROUPING;
return NS_OK;
}
NS_IMETHODIMP nsXULGroupboxAccessible::GetAccState(PRUint32 *_retval)
{
// Groupbox doesn't support any states!
*_retval = 0;
return NS_OK;
}
NS_IMETHODIMP nsXULGroupboxAccessible::GetAccName(nsAWritableString& _retval)
{
_retval.Assign(NS_LITERAL_STRING("")); // Default name is blank
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
if (element) {
nsCOMPtr<nsIDOMNodeList> captions;
element->GetElementsByTagName(NS_LITERAL_STRING("caption"), getter_AddRefs(captions));
if (captions) {
nsCOMPtr<nsIDOMNode> captionNode;
captions->Item(0, getter_AddRefs(captionNode));
if (captionNode) {
element = do_QueryInterface(captionNode);
NS_ASSERTION(element, "No nsIDOMElement for caption node!");
element->GetAttribute(NS_LITERAL_STRING("label"), _retval) ;
}
}
}
return NS_OK;
}
/**
* progressmeter
*/
nsXULProgressMeterAccessible::nsXULProgressMeterAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell):
nsAccessible(aNode, aShell)
{
}
NS_IMETHODIMP nsXULProgressMeterAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_PROGRESSBAR;
return NS_OK;
}
/**
* No states supported for progressmeter
*/
NS_IMETHODIMP nsXULProgressMeterAccessible::GetAccState(PRUint32 *_retval)
{
*_retval =0;
return NS_OK;
}
NS_IMETHODIMP nsXULProgressMeterAccessible::GetAccValue(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No element for DOM node!");
element->GetAttribute(NS_LITERAL_STRING("value"), _retval);
_retval.Append(NS_LITERAL_STRING("%"));
return NS_OK;
}

View File

@@ -0,0 +1,89 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: John Gaunt (jgaunt@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#ifndef _nsXULFormControlAccessible_H_
#define _nsXULFormControlAccessible_H_
// NOTE: alphabetically ordered
#include "nsBaseWidgetAccessible.h"
#include "nsFormControlAccessible.h"
#include "nsHTMLFormControlAccessible.h"
class nsXULButtonAccessible : public nsFormControlAccessible
{
public:
nsXULButtonAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
};
class nsXULCheckboxAccessible : public nsFormControlAccessible
{
public:
nsXULCheckboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccNumActions(PRUint8 *_retval);
NS_IMETHOD GetAccActionName(PRUint8 index, nsAWritableString& _retval);
NS_IMETHOD AccDoAction(PRUint8 index);
NS_IMETHOD GetAccState(PRUint32 *_retval);
};
class nsXULGroupboxAccessible : public nsAccessible
{
public:
nsXULGroupboxAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccName(nsAWritableString& _retval);
};
class nsXULProgressMeterAccessible : public nsAccessible
{
public:
nsXULProgressMeterAccessible(nsIDOMNode* aNode, nsIWeakReference* aShell);
NS_IMETHOD GetAccRole(PRUint32 *_retval);
NS_IMETHOD GetAccState(PRUint32 *_retval);
NS_IMETHOD GetAccValue(nsAWritableString &_retval);
};
#endif

View File

@@ -0,0 +1,264 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: NPL 1.1/GPL 2.0/LGPL 2.1
*
* 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 the Initial Developer are Copyright (C) 1998
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Author: Aaron Leventhal (aaronl@netscape.com)
*
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the NPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the NPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
#include "nsXULMenuAccessible.h"
#include "nsAccessible.h"
#include "nsIAccessible.h"
#include "nsIDOMElement.h"
#include "nsIDOMXULPopupElement.h"
// ------------------------ Menu Item -----------------------------
nsXULMenuitemAccessible::nsXULMenuitemAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsAccessible(aDOMNode, aShell)
{
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccState(PRUint32 *_retval)
{
nsAccessible::GetAccState(_retval);
// Focused?
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No DOM element for menu node!");
PRBool isFocused = PR_FALSE;
element->HasAttribute(NS_LITERAL_STRING("menuactive"), &isFocused);
if (isFocused)
*_retval |= STATE_FOCUSED;
// Has Popup?
nsAutoString tagName;
element->GetLocalName(tagName);
if (tagName.EqualsWithConversion("menu"))
*_retval |= STATE_HASPOPUP;
nsAutoString menuItemType;
element->GetAttribute(NS_LITERAL_STRING("type"), menuItemType);
if (!menuItemType.IsEmpty()) {
// Selectable?
if (menuItemType.EqualsWithConversion("radio"))
*_retval |= STATE_SELECTABLE;
// Checked?
PRBool isChecked = PR_FALSE;
element->HasAttribute(NS_LITERAL_STRING("checked"), &isChecked);
if (isChecked) {
if (*_retval & STATE_SELECTABLE)
*_retval |= STATE_SELECTED; // Use STATE_SELECTED for radio buttons
else *_retval |= STATE_CHECKED;
}
}
// Offscreen?
// If parent or grandparent menuitem is offscreen, then we're offscreen too
// We get it by replacing the current offscreen bit with the parent's
PRUint32 parentState = 0;
nsCOMPtr<nsIAccessible> parentAccessible;
GetAccParent(getter_AddRefs(parentAccessible));
parentAccessible->GetAccState(&parentState);
*_retval &= ~STATE_OFFSCREEN; // clear the old OFFSCREEN bit
*_retval |= (parentState & STATE_OFFSCREEN); // or it with the parent's offscreen bit
return NS_OK;
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No DOM element for menu node!");
element->GetAttribute(NS_LITERAL_STRING("label"), _retval);
return NS_OK;
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_MENUITEM;
return NS_OK;
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccFirstChild(nsIAccessible **aAccFirstChild)
{
*aAccFirstChild = nsnull;
// Last argument of PR_FALSE indicates we don't walk anonymous children for menuitems
nsAccessibleTreeWalker walker(mPresShell, mDOMNode, mSiblingIndex, mSiblingList, PR_FALSE);
if (NS_SUCCEEDED(walker.GetFirstChild())) {
*aAccFirstChild = walker.mState.accessible;
NS_ADDREF(*aAccFirstChild);
}
return NS_OK;
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccLastChild(nsIAccessible **aAccLastChild)
{
*aAccLastChild = nsnull;
// Last argument of PR_FALSE indicates we don't walk anonymous children for menuitems
nsAccessibleTreeWalker walker(mPresShell, mDOMNode, mSiblingIndex, mSiblingList, PR_FALSE);
if (NS_SUCCEEDED(walker.GetLastChild())) {
*aAccLastChild = walker.mState.accessible;
NS_ADDREF(*aAccLastChild);
}
return NS_OK;
}
NS_IMETHODIMP nsXULMenuitemAccessible::GetAccChildCount(PRInt32 *aAccChildCount)
{
// Last argument of PR_FALSE indicates we don't walk anonymous children for menuitems
nsAccessibleTreeWalker walker(mPresShell, mDOMNode, mSiblingIndex, mSiblingList, PR_FALSE);
*aAccChildCount = walker.GetChildCount();
return NS_OK;
}
// ------------------------ Menu Separator ----------------------------
nsXULMenuSeparatorAccessible::nsXULMenuSeparatorAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell):
nsXULMenuitemAccessible(aDOMNode, aShell)
{
}
NS_IMETHODIMP nsXULMenuSeparatorAccessible::GetAccState(PRUint32 *_retval)
{
// Isn't focusable, but can be offscreen
nsXULMenuitemAccessible::GetAccState(_retval);
*_retval &= STATE_OFFSCREEN;
return NS_OK;
}
NS_IMETHODIMP nsXULMenuSeparatorAccessible::GetAccName(nsAWritableString& _retval)
{
_retval.Assign(NS_LITERAL_STRING(""));
return NS_OK;
}
NS_IMETHODIMP nsXULMenuSeparatorAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_SEPARATOR;
return NS_OK;
}
// ------------------------ Menu Popup -----------------------------
nsXULMenupopupAccessible::nsXULMenupopupAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell): nsAccessible(aDOMNode, aShell)
{
}
NS_IMETHODIMP nsXULMenupopupAccessible::GetAccState(PRUint32 *_retval)
{
// We are onscreen if our parent is active
*_retval = 0;
PRBool isActive = PR_FALSE;
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
element->HasAttribute(NS_LITERAL_STRING("menuactive"), &isActive);
if (!isActive) {
nsCOMPtr<nsIAccessible> parentAccessible;
nsCOMPtr<nsIDOMNode> parentNode;
GetAccParent(getter_AddRefs(parentAccessible));
if (parentAccessible)
parentAccessible->AccGetDOMNode(getter_AddRefs(parentNode));
element = do_QueryInterface(parentNode);
if (element)
element->HasAttribute(NS_LITERAL_STRING("open"), &isActive);
}
if (!isActive)
*_retval |= STATE_OFFSCREEN;
return NS_OK;
}
NS_IMETHODIMP nsXULMenupopupAccessible::GetAccName(nsAWritableString& _retval)
{
nsCOMPtr<nsIDOMElement> element(do_QueryInterface(mDOMNode));
NS_ASSERTION(element, "No element for popup node!");
while (element) {
element->GetAttribute(NS_LITERAL_STRING("label"), _retval);
if (!_retval.IsEmpty())
return NS_OK;
nsCOMPtr<nsIDOMNode> parentNode, node(do_QueryInterface(element));
if (!node)
return NS_ERROR_FAILURE;
node->GetParentNode(getter_AddRefs(parentNode));
element = do_QueryInterface(parentNode);
}
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP nsXULMenupopupAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_MENUPOPUP;
return NS_OK;
}
// ------------------------ Menu Bar -----------------------------
nsXULMenubarAccessible::nsXULMenubarAccessible(nsIDOMNode* aDOMNode, nsIWeakReference* aShell): nsAccessible(aDOMNode, aShell)
{
}
NS_IMETHODIMP nsXULMenubarAccessible::GetAccState(PRUint32 *_retval)
{
return nsAccessible::GetAccState(_retval);
}
NS_IMETHODIMP nsXULMenubarAccessible::GetAccName(nsAWritableString& _retval)
{
_retval = NS_LITERAL_STRING("menubar");
return NS_OK;
}
NS_IMETHODIMP nsXULMenubarAccessible::GetAccRole(PRUint32 *_retval)
{
*_retval = ROLE_MENUBAR;
return NS_OK;
}

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