Compare commits

..

4574 Commits

Author SHA1 Message Date
blizzard%redhat.com
2ca39b9b17 merge from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53740 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 03:57:27 +00:00
blizzard%redhat.com
fe94a6ca17 merges from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53737 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 03:27:47 +00:00
blizzard%redhat.com
dbd81545d5 remove these files from the branch, they are elsewhere in head now...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53733 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-17 03:14:54 +00:00
blizzard%redhat.com
eae64955ac merge modal changes from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53660 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 16:15:13 +00:00
blizzard%redhat.com
ac2b83c0f5 merge IM fixes from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53656 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 16:08:54 +00:00
blizzard%redhat.com
4de4b9b262 merges from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53653 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 15:56:04 +00:00
(no author)
585367a7b8 This commit was manufactured by cvs2svn to create branch 'SUPERWIN'.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53594 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-16 01:52:21 +00:00
blizzard%redhat.com
8226158ae4 focus changes from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53447 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-14 04:34:41 +00:00
blizzard%redhat.com
9cb5b0bd0f don't clear the xlate queue for ConfigureEvents on shell windows since the xlate queue has nothing to do with that shell window...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53425 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 15:10:10 +00:00
blizzard%redhat.com
ac24bf46fe merges from head
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53408 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-13 04:55:21 +00:00
blizzard%redhat.com
feb3b49669 work around for lame NS_SIZE event problems...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53361 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 20:24:19 +00:00
blizzard%redhat.com
e4d84ceca8 use the external gtksuperwin library
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53360 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 20:14:52 +00:00
blizzard%redhat.com
63e9105b5f add gtksuperwin to the build list
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53359 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 20:13:40 +00:00
blizzard%redhat.com
21904a64db patch from claudius@netscape.com to make this build on platforms with picky c++ compilers
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53355 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 18:10:02 +00:00
blizzard%redhat.com
6d8df6d4e7 add a -lgtksuperwin for the viewer since it embeds a native widget into the layout
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53354 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 17:29:47 +00:00
blizzard%redhat.com
8f49d292ca merge in some of pav's IM changes...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53281 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-12 00:04:56 +00:00
pavlov%netscape.com
e1431cd937 fix loop in debugging code
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53251 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 22:03:47 +00:00
blizzard%redhat.com
d8ee1acce8 make sure that we do a gtk_style_attach() in the realize method so the style doesn't get destroyed early...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53241 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-11 21:39:27 +00:00
blizzard%redhat.com
db224b8d6e merge in clipboard changes. remove some more debugging spew.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53089 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 21:29:44 +00:00
blizzard%redhat.com
37106d7fc3 remove more debugging spew
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53088 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 21:05:38 +00:00
blizzard%redhat.com
0c074d2a55 remove debugging spew
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53086 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 19:35:01 +00:00
blizzard%redhat.com
7d47d3aace make sure to send focus in and focus out events properly when giving focus to a superwin.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53085 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-10 19:31:50 +00:00
blizzard%redhat.com
4d1a2e8639 merge the license whackage
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53020 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 23:06:12 +00:00
blizzard%redhat.com
8b6d035f17 add focus support
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53016 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 22:53:26 +00:00
blizzard%redhat.com
4d22490af1 fix warnings due to passing bad data to the debug code
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@53008 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 19:48:03 +00:00
blizzard%redhat.com
4a1d8f7401 fix bogus warnings for gtk_signal_emit_stop_by_name
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52997 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 17:20:22 +00:00
blizzard%redhat.com
3ed82d86a0 add nsWindow::SetCursor
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52996 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 17:10:22 +00:00
blizzard%redhat.com
e763644046 fix background colors on windows
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52995 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-09 17:03:43 +00:00
blizzard%redhat.com
e94c0535d1 add hacks for superwin
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52971 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 22:56:27 +00:00
blizzard%redhat.com
201eebe4ec add mozbox code
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52965 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 22:34:41 +00:00
blizzard%redhat.com
91802fc4cb add superwin code for mozbox
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52964 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 22:34:22 +00:00
pavlov%netscape.com
68a592d45f fix debugging stuff like flashing, etc
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52963 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 22:32:36 +00:00
blizzard%redhat.com
60c89eba4b export our gtk header files. we'll need them for embedding.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52953 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 21:52:35 +00:00
blizzard%redhat.com
ceecd95095 make sure that the child window uses the same destroy as the nsWindow class
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52950 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 21:40:54 +00:00
blizzard%redhat.com
220151a643 assert if we get passed bad data. this is for testing.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52944 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-08 16:11:10 +00:00
blizzard%redhat.com
35d00c2c83 only send resize events on windows that are toplevel or have been created with a native parent
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52930 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-07 19:31:15 +00:00
blizzard%redhat.com
dfccc12330 add nsWindow::SetBackgroundColor, fix a warning
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52923 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 20:39:28 +00:00
(no author)
3c0a628da5 This commit was manufactured by cvs2svn to create branch 'SUPERWIN'.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52913 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 03:43:57 +00:00
blizzard%redhat.com
e67e916ea6 turn off the backing store for now
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52889 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-06 00:30:53 +00:00
blizzard%redhat.com
2312b5fc11 fix problems with using nsWindow::WidgetToScreen with toplevel windows
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52863 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 21:37:52 +00:00
blizzard%redhat.com
fcb064c579 turn on backing store for the bin_window
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52856 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 16:39:20 +00:00
blizzard%redhat.com
72255234ea add expose event compression
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52854 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 15:58:56 +00:00
blizzard%redhat.com
2cff6771cb never assign a mozarea to mMozArea unless you own it.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52853 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 15:49:31 +00:00
pavlov%netscape.com
f16eb3c3d2 fix WidgetToScreen
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52850 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 06:05:37 +00:00
pavlov%netscape.com
cc5f4699b6 remove #ifdef GTK_FIXED crap. make USE_SUPERWIN default, and fix native system color stuff (to be in head soon)
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52845 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-05 05:45:52 +00:00
blizzard%redhat.com
8dbfb05c9f fix some refcounting problems with the superwin and mozarea
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52821 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 23:12:20 +00:00
blizzard%redhat.com
4f6c078a40 make sure to destroy the superwin when the object goes out of scope
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52806 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 21:51:50 +00:00
blizzard%redhat.com
f303b7b880 add queued drawing
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52803 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 21:16:21 +00:00
blizzard%redhat.com
d5d532bbdf make rollup events work.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52801 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 20:33:34 +00:00
blizzard%redhat.com
1e9545d94e scrolling added
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52797 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 20:06:53 +00:00
blizzard%redhat.com
bbaf2a8966 implement nsWindow::Resize and nsWindow::Move methods
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52772 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-04 03:25:04 +00:00
blizzard%redhat.com
4979b2734e first pass at getting superwin code to build. it will run now but doesn't have nsWindow::Move and nsWindow::Resize implemented...
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52747 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 23:07:52 +00:00
blizzard%redhat.com
0ba4ab32b2 fix some indenting issues
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52724 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 20:10:28 +00:00
blizzard%redhat.com
53df453f1a add gdk event handler
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52722 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 19:47:14 +00:00
blizzard%redhat.com
db90d4ddcf start adding glue code for events for the superwin and mozbox code. also, add the box and superwin as class members.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52721 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 18:58:37 +00:00
blizzard%redhat.com
24a4aec113 change all of the debugging calls to use GtkObject or GtkWidget
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52718 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 16:38:21 +00:00
blizzard%redhat.com
74599c2956 change all of the CreateNative calls to use GtkObject instead of GtkWidget
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52717 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 16:09:35 +00:00
(no author)
9b52dc355f This commit was manufactured by cvs2svn to create branch 'SUPERWIN'.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52698 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-03 07:34:51 +00:00
blizzard%redhat.com
1792ff0e46 start on the branch to get the superwin code to build.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52591 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 22:21:47 +00:00
(no author)
fb08d16e05 This commit was manufactured by cvs2svn to create branch 'SUPERWIN'.
git-svn-id: svn://10.0.0.236/branches/SUPERWIN@52461 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:25:01 +00:00
pavlov%netscape.com
268235e424 break in the switch, don't fall through *doh* r=duncan@be.com
git-svn-id: svn://10.0.0.236/trunk@52460 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:25:00 +00:00
cls%seawood.org
6533b90ce6 Added detection for alphaev6. Submitted by Matt Wilson <msw@redhat.com>.
git-svn-id: svn://10.0.0.236/trunk@52459 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:24:16 +00:00
nhotta%netscape.com
a468c6983c Fixed a typo in the entity definition, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@52458 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:19:19 +00:00
tbogard%aol.net
0154b52329 Second phase of changing NS_ENSURE() to NS_ENSURE_TRUE() and NS_ENSURE_NOT() to NS_ENSURE_FALSE(). r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52457 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:18:52 +00:00
nisheeth%netscape.com
add2edbda0 r=pollmann. Check local DTD directory for dtd files and, if found, load them from there.
git-svn-id: svn://10.0.0.236/trunk@52456 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:16:37 +00:00
pavlov%netscape.com
59b22727bd added .cvsignore file r=slamm
git-svn-id: svn://10.0.0.236/trunk@52455 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:16:09 +00:00
waterson%netscape.com
410ac67f93 Add 'miscellaneous' debug prefs to house 'disable XUL cache' pref UI.
git-svn-id: svn://10.0.0.236/trunk@52454 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:14:50 +00:00
waterson%netscape.com
9ba00de102 Bug 15146. Brutal sharing, Phase III. Turn on protoype, script, and style sheet caching. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52453 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:14:07 +00:00
alecf%netscape.com
54bfc70eea cleanup NS_IMPL_MODULE and friends
- define new nsModuleComponentInfo and use it instead of components_t
- use size_t instead of unsigned int
- add some docs
- allow user to define own module name


git-svn-id: svn://10.0.0.236/trunk@52452 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:12:32 +00:00
danm%netscape.com
44d6b4c7e5 removing implementation of nsIShutdownListener. it was redundant, anyway. r:dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52451 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:10:35 +00:00
tbogard%aol.net
c98bf7e9a6 **Not hooked up to build** Implemented Repaint. Changed document to be a readonly attribute. Added a SetDocument that takes a contentType. Implemented this. Changed all the idl methods to be lower-case.
git-svn-id: svn://10.0.0.236/trunk@52450 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:04:25 +00:00
rogerl%netscape.com
81ef7e0434 Needed string parameter in order to pass type comparison correctly.
Added missing TITLE declaration.


git-svn-id: svn://10.0.0.236/trunk@52449 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:03:52 +00:00
rogerl%netscape.com
dff3a32176 Moved nested function out - new ECMA definition.
git-svn-id: svn://10.0.0.236/trunk@52448 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:02:55 +00:00
rogerl%netscape.com
ceaebd4804 Put test case in eval statement to catch error.
git-svn-id: svn://10.0.0.236/trunk@52447 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:02:03 +00:00
rogerl%netscape.com
a027094b30 Added missing TITLE declaration
git-svn-id: svn://10.0.0.236/trunk@52446 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 01:01:34 +00:00
troy%netscape.com
aa355b810b See if the Mac is any happier with this
git-svn-id: svn://10.0.0.236/trunk@52445 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-02 00:21:47 +00:00
varada%netscape.com
cc411daf35 removing unix line endings
git-svn-id: svn://10.0.0.236/trunk@52444 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:47:43 +00:00
dmose%mozilla.org
03ec794132 updated license boilerplate
git-svn-id: svn://10.0.0.236/trunk@52443 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:33:56 +00:00
varada%netscape.com
9efe8d599f fix for bug#9097
git-svn-id: svn://10.0.0.236/trunk@52442 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:33:13 +00:00
valeski%netscape.com
9862db5a48 not in build. updating keyword protocol handler to use new api.
git-svn-id: svn://10.0.0.236/trunk@52441 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:33:05 +00:00
troy%netscape.com
c1c6ae68cd Changed GetFrameName() calls to use nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52440 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:29:27 +00:00
kipp%netscape.com
824e50d549 Fixed compilation bustage by using nsIFrameDebug to invoke list and regression data methods
git-svn-id: svn://10.0.0.236/trunk@52439 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:29:05 +00:00
troy%netscape.com
af506bd6c9 Temporary change
git-svn-id: svn://10.0.0.236/trunk@52438 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:21:20 +00:00
rogerl%netscape.com
5df87dc67e Belay that, the tests were fine, the code HAS changed.
git-svn-id: svn://10.0.0.236/trunk@52437 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:16:00 +00:00
troy%netscape.com
cf64589783 Fixed problem with GetFrameName() being defines in non-debug build
git-svn-id: svn://10.0.0.236/trunk@52436 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 23:12:32 +00:00
larryh%netscape.com
d3f1c46ba5 BugZilla 17558. Add PR_Open() PR_EXCL flag
git-svn-id: svn://10.0.0.236/trunk@52435 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:59:27 +00:00
kipp%netscape.com
d8d82e0637 r=rods; bug=17518; I updated the html.css file to select on 'a[href]' instead of 'a' so that the focus properties and related style properties would only apply to anchors with href's
git-svn-id: svn://10.0.0.236/trunk@52434 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:54:14 +00:00
tbogard%aol.net
94697e0452 Changed NS_ENSURE_NOT() to use NS_ENSURE_FALSE() per API change.
git-svn-id: svn://10.0.0.236/trunk@52433 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:54:06 +00:00
kipp%netscape.com
f8fb68c673 r=troy; fixed compiliation issue for debug builds
git-svn-id: svn://10.0.0.236/trunk@52432 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:45:20 +00:00
leaf%mozilla.org
368f25d7ee adding mozilla/uriloader for mscott
git-svn-id: svn://10.0.0.236/trunk@52431 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:43:22 +00:00
kipp%netscape.com
7ae532db2a r=troy; fixed bug 14982 - the problem was that empty continuations of an inline non-replaced element (e.g. 'span') were impact line-height calculations when they should effectively disappear
git-svn-id: svn://10.0.0.236/trunk@52430 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:38:17 +00:00
kipp%netscape.com
a98ac534c3 latest and greatest tests for block dom functions
git-svn-id: svn://10.0.0.236/trunk@52429 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:36:42 +00:00
akkana%netscape.com
1824e7ce91 Fix Sun build bustage: older gcc can't do nsCOMPtr on a forward type
git-svn-id: svn://10.0.0.236/trunk@52428 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:16:15 +00:00
troy%netscape.com
3513334988 Moved a bunch of stuff out to a nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52427 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 22:12:45 +00:00
dp%netscape.com
8a02a9884b Removing extra release happening on a service. NS_WITH_SERVICE() will
take care of this release.


git-svn-id: svn://10.0.0.236/trunk@52426 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:57:14 +00:00
akkana%netscape.com
0df1ff715c Formatting whitespace changes only
git-svn-id: svn://10.0.0.236/trunk@52425 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:53:50 +00:00
putterman%netscape.com
897d9e027c Release mNativeDragTarget to fix leaks. no bug. reviewed by rods.
git-svn-id: svn://10.0.0.236/trunk@52424 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:53:06 +00:00
sspitzer%netscape.com
07d441b61a fix for #16119. this variable is not defined out of the scope of the loop, so
it was undefined.


git-svn-id: svn://10.0.0.236/trunk@52423 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:51:16 +00:00
mscott%netscape.com
5492a19059 Don't build new uri idl interfaces in netwerk.
they've been moved to uriloader.


git-svn-id: svn://10.0.0.236/trunk@52422 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:49:55 +00:00
radha%netscape.com
d0a23025d8 Remove the extra AddRef to nsHistoryLayoutState. r=pollmann, bug #16496
git-svn-id: svn://10.0.0.236/trunk@52421 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:47:54 +00:00
mscott%netscape.com
e1c9192da5 remove these uri dispatching interfaces from netwerk.
they live in uriloader now.


git-svn-id: svn://10.0.0.236/trunk@52420 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:47:26 +00:00
alecf%netscape.com
a15001ef11 fix twisties in the thread pane and account manager by responding to GetTarget() along the child arcs like #child and #MessageChild bug #13551
r=scottip


git-svn-id: svn://10.0.0.236/trunk@52419 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:46:07 +00:00
mscott%netscape.com
099420f43e none of these interfaces were being used yet.
they've been moved into mozilla\uriloader.


git-svn-id: svn://10.0.0.236/trunk@52418 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:45:29 +00:00
tbogard%aol.net
ae3cd9e2ce Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52417 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:43:56 +00:00
dveditz%netscape.com
5ed2cd7fa7 taking a crack at some ports bustage. r=pnunn
git-svn-id: svn://10.0.0.236/trunk@52416 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:35:50 +00:00
akkana%netscape.com
9dd7ffd0ef 17275, 16285, 15204: Switch to using nsISaveAsCharset for both charset and entity conversion. r=nhotta
git-svn-id: svn://10.0.0.236/trunk@52415 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:34:44 +00:00
tbogard%aol.net
46a7117699 Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52414 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:27:09 +00:00
tbogard%aol.net
8d4c0ac47e Changed NS_ENSURE_NOT to NS_ENSURE_FALSE to reflect API change.
git-svn-id: svn://10.0.0.236/trunk@52413 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:25:52 +00:00
tbogard%aol.net
87358978bd Changed NS_ASSERTION to use NS_WARN_IF_FALSE. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52412 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:24:24 +00:00
dp%netscape.com
ff9db70a07 Removing release on a service as this would be taken care by the
NS_WITH_SERVICE() macro. r=danm


git-svn-id: svn://10.0.0.236/trunk@52411 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 21:16:24 +00:00
Jerry.Kirk%Nexwarecorp.com
2bc6161677 Remove call to nsIThread::SetMainThread() and clean up things a bit.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@52410 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:52:52 +00:00
warren%netscape.com
933e7aa1a8 Minor cleanup
git-svn-id: svn://10.0.0.236/trunk@52409 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:50:04 +00:00
warren%netscape.com
793d674760 Eliminating netwerk/util
git-svn-id: svn://10.0.0.236/trunk@52408 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:48:12 +00:00
valeski%netscape.com
42d0478ba8 removing early xpcom proxy release change from earlier in the weekend.
git-svn-id: svn://10.0.0.236/trunk@52407 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:37:13 +00:00
varada%netscape.com
bd12ec528f fix for bug #6568 - showing summary in the first page
git-svn-id: svn://10.0.0.236/trunk@52406 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:13:16 +00:00
idk%eng.sun.com
307fe1df58 fix for 17454
changed strncmp to PL_strncasecmp


git-svn-id: svn://10.0.0.236/trunk@52405 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 20:04:57 +00:00
tbogard%aol.net
e885439545 Changed some m_* to m*.
git-svn-id: svn://10.0.0.236/trunk@52404 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:57:15 +00:00
mscott%netscape.com
2a86ddb6f8 (not part of the seamonkey build)
top level Makefile for uriloader


git-svn-id: svn://10.0.0.236/trunk@52403 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:56:25 +00:00
mscott%netscape.com
cc0ac6a407 not part of the seamonkey build
add makefile for the uriloader\build directory.


git-svn-id: svn://10.0.0.236/trunk@52402 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:52:49 +00:00
mscott%netscape.com
4f15b3e7bd not part of the seamonkey build
add CID header file and uri loader module class.


git-svn-id: svn://10.0.0.236/trunk@52401 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:52:25 +00:00
mscott%netscape.com
9cbec3ba42 not part of the seamonkey build.
add top level makefile.win for uriloader.


git-svn-id: svn://10.0.0.236/trunk@52400 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:51:45 +00:00
mscott%netscape.com
604569330e not part of the seamonkey build
remove class id and progid from the interface


git-svn-id: svn://10.0.0.236/trunk@52399 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:51:05 +00:00
mscott%netscape.com
82bbc3b0eb (not part of the seamonkey build!)
export nsURIDispatcher.h


git-svn-id: svn://10.0.0.236/trunk@52398 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:49:09 +00:00
idk%eng.sun.com
b338802f73 fix for 17449
added checkings for NULL


git-svn-id: svn://10.0.0.236/trunk@52397 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:39:26 +00:00
varada%netscape.com
13b7afe705 fixes to bug 5434
git-svn-id: svn://10.0.0.236/trunk@52396 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 19:14:29 +00:00
varada%netscape.com
56c344a8d0 cleanup code for customizationlist
git-svn-id: svn://10.0.0.236/trunk@52395 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 18:10:26 +00:00
varada%netscape.com
fb8cb373a0 cleanup code for checklist
git-svn-id: svn://10.0.0.236/trunk@52394 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 18:09:31 +00:00
briano%netscape.com
e2c9ed766a Automated update
git-svn-id: svn://10.0.0.236/trunk@52393 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:45:17 +00:00
rods%netscape.com
23778b8c16 Check to see if the option being added has the "selected" property, if it
does then the list needs to be reinitialized.
r=dcone, bug #17519


git-svn-id: svn://10.0.0.236/trunk@52392 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:41:17 +00:00
kipp%netscape.com
bac454b0b5 Added address information to the dump content diagnostic code
git-svn-id: svn://10.0.0.236/trunk@52391 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:38:05 +00:00
kipp%netscape.com
c6c74d8fe2 r=ftang (someday); fixed bug 17130 - the problem was that nbsp's were being mapped into spaces by the text-transformer which is normally good, but for the purposes of line-breaking look-ahead was bad. I added code to revert the post-transformed spaces into nbsp's before using the line-breaker
git-svn-id: svn://10.0.0.236/trunk@52390 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:36:02 +00:00
kipp%netscape.com
283a28a5d4 r=ftang (someday); fixed 17559 regression - there were a few cases where characters > 127 were leaking out without setting the mHasMultibyte flag that were triggering painting bugs on macs...
git-svn-id: svn://10.0.0.236/trunk@52389 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:32:37 +00:00
cls%seawood.org
9981b6e5e7 Tested various build options, marked some broken, unmarked others that have been fixed. Removed obsolete options.
git-svn-id: svn://10.0.0.236/trunk@52388 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:32:02 +00:00
kipp%netscape.com
2cabf1bf40 Disabled debug noise I accidently checked in (whoops!)
git-svn-id: svn://10.0.0.236/trunk@52387 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:31:04 +00:00
cls%seawood.org
aabaf48158 Remove the extra -D_XXX_SOURCE_ flags for Linux builds.
git-svn-id: svn://10.0.0.236/trunk@52386 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:29:31 +00:00
kipp%netscape.com
63ae90acca r=troy; reworked the way that blocks inside of inline elements are handled. It's all in the frame construction code now (bugs 15999, 16737)
git-svn-id: svn://10.0.0.236/trunk@52385 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:24:57 +00:00
kipp%netscape.com
333bf3d48a Added address information to the dump content diagnostic code
git-svn-id: svn://10.0.0.236/trunk@52384 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:23:06 +00:00
kipp%netscape.com
e5672a7cbf Added another frame property
git-svn-id: svn://10.0.0.236/trunk@52383 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:22:25 +00:00
jfrancis%netscape.com
8ad4c60be3 fix for bugs: 16724, 16855; r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52382 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:15:56 +00:00
jfrancis%netscape.com
53c8075ee8 fixes for bugs: 16361,12253,15696,15734; r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52381 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 15:15:35 +00:00
dp%netscape.com
a1cbbe03aa Removing double check for failure. Checking for nsresult is sufficient.
git-svn-id: svn://10.0.0.236/trunk@52380 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 08:54:06 +00:00
tbogard%aol.net
188cbf9d0b Added some checks to verify calling of the nsIDocShellFile and nsIDocShellEdit functions.
git-svn-id: svn://10.0.0.236/trunk@52379 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 07:53:24 +00:00
tbogard%aol.net
1b8869ef46 Changed NS_ENSURE to be NS_ENSURE_TRUE.
git-svn-id: svn://10.0.0.236/trunk@52378 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 07:45:38 +00:00
tbogard%aol.net
e1325fa173 Changed NS_ENSURE and NS_ENSURE_NOT occurences to be NS_ENSURE_TRUE and NS_ENSURE_FALSE respectively.
git-svn-id: svn://10.0.0.236/trunk@52377 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 07:40:19 +00:00
tbogard%aol.net
e3a1567dcc Changed NS_ENSURE to be NS_ENSURE_TRUE. Also changed NS_ENSURE_NOT to be NS_ENSURE_FALSE. Left NS_ENSURE and NS_ENSURE_NOT, but they will soon be going away.
git-svn-id: svn://10.0.0.236/trunk@52376 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 06:59:16 +00:00
rpotts%netscape.com
6a0e6b0b2d bug #16418 (r=warren,gagan). When redirecting a URL only copy the Ref to the new URL (not the Param and Query).
git-svn-id: svn://10.0.0.236/trunk@52375 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 06:00:55 +00:00
dougt%netscape.com
908f338b00 Adding a set accessor to the permissions functions. Needed by the xpinstall
folks.


git-svn-id: svn://10.0.0.236/trunk@52374 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 04:44:56 +00:00
tbogard%aol.net
fe0b504eac Added comment around frame stuff to explain lack of ref-counting.
git-svn-id: svn://10.0.0.236/trunk@52373 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 04:03:03 +00:00
tbogard%aol.net
2766610a72 Implemented GetZoom and SetZoom. Removed some left over comment code.
git-svn-id: svn://10.0.0.236/trunk@52372 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 04:02:24 +00:00
troy%netscape.com
5143eb0b1d Added nsIFrameDebug interface
git-svn-id: svn://10.0.0.236/trunk@52371 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 03:34:43 +00:00
bienvenu%netscape.com
0828780018 fix updating of folders after imap/moves r=mscott bug 12491
git-svn-id: svn://10.0.0.236/trunk@52370 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 01:10:08 +00:00
bienvenu%netscape.com
b3ee9d6099 add support for pending counts for imap folders r=mscott
git-svn-id: svn://10.0.0.236/trunk@52369 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 01:06:29 +00:00
mscott%netscape.com
059b0b18ff remove shut down listener stuff.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@52368 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 00:57:49 +00:00
mscott%netscape.com
c3e35b09e6 remove shutdown listener stuff.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@52367 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 00:56:19 +00:00
mscott%netscape.com
3c8f842dd1 remove shutdown listener code.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@52366 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 00:55:06 +00:00
tonyr%fbdesigns.com
f0bafa3901 Added Outlook mail and address book import functionality
git-svn-id: svn://10.0.0.236/trunk@52365 18797224-902f-48f8-a5cc-f745e15eee43
1999-11-01 00:46:18 +00:00
bienvenu%netscape.com
90413c1803 add method to find out if folder is in open window r=putterman
git-svn-id: svn://10.0.0.236/trunk@52364 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 22:21:55 +00:00
tbogard%aol.net
86bf83a5cb Changed NS_IMETHOD to NS_IMETHODIMP on implemented function.
git-svn-id: svn://10.0.0.236/trunk@52363 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 07:38:44 +00:00
beard%netscape.com
46857947de made more robust with partial output.
git-svn-id: svn://10.0.0.236/trunk@52362 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 06:05:09 +00:00
dp%netscape.com
76860bfac3 Removing use of nsIShutdownListener r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52361 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 05:02:55 +00:00
troy%netscape.com
3300906c1f b=15742. Changed Reflow() to invalidate the child's bounds if we're forced
to do a second reflow because we didn't correctly predict whether the vertical
scrollbar was needed. Because the second reflow changes the display width we
need to repaint


git-svn-id: svn://10.0.0.236/trunk@52360 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 04:04:32 +00:00
troy%netscape.com
c53de3fb2f b=17507. Changed Reflow() to use "available height" instead of "computed
height" when reflowing child frames. What was happening was that the child
table frame didn't fit and was trying to split. That should only happen when
we're paginated


git-svn-id: svn://10.0.0.236/trunk@52359 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 03:39:24 +00:00
troy%netscape.com
248afe72e1 b=17573. Changed mRowIndex to be signed integer (was unsigned integer) but
field. This allows it be negative, which some of the table code is depending
on


git-svn-id: svn://10.0.0.236/trunk@52358 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 03:15:52 +00:00
brendan%mozilla.org
9c83cbc655 Gross workaround for VC5 bug.
git-svn-id: svn://10.0.0.236/trunk@52357 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 03:04:02 +00:00
jband%netscape.com
9a6507c902 fix typo that was causing bustage on some compilers
git-svn-id: svn://10.0.0.236/trunk@52356 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 03:02:43 +00:00
dmose%mozilla.org
5c49b2dcfa removing qtfe files from the tip, since qtfe is only ever destined to build on the MozillaClassic branch; approved=arnt@troll.no
git-svn-id: svn://10.0.0.236/trunk@52355 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:29:26 +00:00
beard%netscape.com
fdd0b24390 changed the CID for "component://netscape/gfx/region" to use new NS_SCRIPTABLEREGION_CID. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52354 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:28:32 +00:00
beard%netscape.com
f871d649af switched to NS_IMPL_ISUPPORTS1, no longer supports QI to nsIRegion. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52353 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:26:10 +00:00
beard%netscape.com
8070950a1a removed scriptable region hackery, switched to NS_IMPLE_ISUPPORTS1. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52352 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:26:06 +00:00
beard%netscape.com
2f5831d91f cleaned up factory to use nsCOMPtrs, modern NS_IMPL* macros, support for creating scriptable regions. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52351 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:26:03 +00:00
beard%netscape.com
48e85583a8 added NS_SCRIPTABLE_REGION_CID. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52350 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:25:59 +00:00
tbogard%aol.net
74d906dbdf Fixed changes to use the GetPresShell rather than using the now removed member variable.
git-svn-id: svn://10.0.0.236/trunk@52348 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 02:05:21 +00:00
brendan%mozilla.org
f980be0221 (13163, r=alecf, scc, waterson, others; names available on request)
- Fix most of bug 13163 (see TODO for rest).  This entails adding a version-string argument to nsIScriptContext::EvaluateString and passing it around lots of places in content sinks. 

- Fix leaks and confusion about mSecurityManager and mNameSpaceManager in nsJSEnvironment.cpp.  These still need to move from nsJSContext to nsGlobalWindow or thereabouts, jband and vidur are looking at that. 

- Added comments and expanded tabs in nsJSEnvironment.cpp, esp. to EvaluateString.  Also changed various nsresult vars to be named rv.  Also restored brace/style conformity to nsJSProtocolHandler.cpp. 

- Factored CompileFunction from AddScriptEventListener to pave the way for brutal sharing of compiled JS event handlers via JS_CloneFunctionObject. 

- Lots of nsCOMPtr uses added.  I'm using one for mNameSpaceManager.  Hold mSecurityManager as a service explicitly, on the other hand (awaiting scc's fix to allow comptrs for services), and release in nsJSContext's dtor (fixing a leak).  These two managers should be moved to the window object -- TODO item below. 

- Hold JSRuntimeService along with JSRuntime for live of nsJSEnvironment, fix for shaver. 

- Fix window.setTimeout etc. so the filename and line number of the timeout expr is propagated.  This meant factoring nsJSUtils.cpp code. 

- Fix all content sinks to use the same, and up-to-date JavaScript version parsing (whether for script type or for old language attribute); also fix SplitMimeType clones to strip whitespace. 

- With waterson, fix bug in brutal-sharing version of XUL content sink: script src= should not evaluate the inline content of its tag.


git-svn-id: svn://10.0.0.236/trunk@52347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:43:30 +00:00
scc%netscape.com
65b7cd0c03 changed the mechanism underlying |do_QueryInterface| to decouple |nsCOMPtr| from services, |nsIWeakReference|, etc. This change fixes bug #17364, and paves the way for making |nsCOMPtr| cooperate with services. r=valeski (additional builds done by dmose and syd)
git-svn-id: svn://10.0.0.236/trunk@52346 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:35:48 +00:00
scc%netscape.com
3872148e22 removed incorrect use of private class name in favor of |do_QueryInterface|, part of the fix for bug #17364, r=valeski (additional builds done by dmose, and syd)
git-svn-id: svn://10.0.0.236/trunk@52345 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:32:15 +00:00
syd%netscape.com
dc0e84da8f Add xpcom.dll to link line so test will link with scc changes make about this time. r=scc
git-svn-id: svn://10.0.0.236/trunk@52344 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:22:53 +00:00
pavlov%netscape.com
e4422a7744 better fix for twips rounding problems patch_from=dbaron@fas.harvard.edu r=me
git-svn-id: svn://10.0.0.236/trunk@52343 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-31 00:09:52 +00:00
sgehani%netscape.com
1a10f1bfca Turning on Mac Install Wizard. [r=ssu]
git-svn-id: svn://10.0.0.236/trunk@52342 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 23:04:41 +00:00
sgehani%netscape.com
42a5d3afe8 *** NOT PART OF BUILD ***
Added "About..." box.


git-svn-id: svn://10.0.0.236/trunk@52341 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:29:26 +00:00
sgehani%netscape.com
2eefd82de8 Changes to accomodate ASEncoder for bug 17096 (new interfaces: GUI and AppleScript to accept folders to decode and encode). [r=dveditz]
git-svn-id: svn://10.0.0.236/trunk@52340 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:24:09 +00:00
sgehani%netscape.com
c148d9293b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@52339 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:21:38 +00:00
sgehani%netscape.com
1d98e513a5 *** NOT PART OF BUILD ***
Fixes for bug 17096. New interfaces (GUI and AppleScript) that accept folders to encode and decode.


git-svn-id: svn://10.0.0.236/trunk@52338 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:21:28 +00:00
sgehani%netscape.com
9318031900 Fixing static targets to be usable by MIW once again: removed new nsJARInputStream from the static targets. For real this time...
git-svn-id: svn://10.0.0.236/trunk@52337 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:18:31 +00:00
sgehani%netscape.com
66089af9ca Backed out change temporarily.
git-svn-id: svn://10.0.0.236/trunk@52336 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 22:03:46 +00:00
sgehani%netscape.com
43165f999b Fixing static targets to be usable by MIW once again: removed new nsJARInputStream from the statis targets.
git-svn-id: svn://10.0.0.236/trunk@52335 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 21:56:51 +00:00
beard%netscape.com
95ab15987f MLK: fix device context leak, bug=15380, r=scc
git-svn-id: svn://10.0.0.236/trunk@52334 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 20:18:31 +00:00
beard%netscape.com
7eff69da6d MLK: fixed nsICSSDeclaration leak, bug=15380, r=kipp
git-svn-id: svn://10.0.0.236/trunk@52333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 20:17:40 +00:00
dp%netscape.com
ab8b41ac6e Fixing viewer starup assert on SetMainThread() happening twice.
git-svn-id: svn://10.0.0.236/trunk@52332 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 17:17:12 +00:00
troy%netscape.com
bf93831e8b Removed call to SetMainThread() because it was triggering an assert. Turns
out NS_InitXPCOM() does it so we don't need to do it twice


git-svn-id: svn://10.0.0.236/trunk@52331 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:44:04 +00:00
buster%netscape.com
33e56d70f4 huge performance work for text controls
we now display the content of a single line text control using a child pseudo frame
until the text control first gets focus.  at that time, a webshell and editor are created on the fly.
fixed bug bug 14727
r=rods


git-svn-id: svn://10.0.0.236/trunk@52330 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:33:00 +00:00
buster%netscape.com
12d91fc204 added pseudo style for single line text controls
bug 14727
r=rods


git-svn-id: svn://10.0.0.236/trunk@52329 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:31:11 +00:00
buster%netscape.com
2da450442d added DOM notification up to frame system for text control value changes
part of  bug 14727
r=rods


git-svn-id: svn://10.0.0.236/trunk@52328 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:30:33 +00:00
buster%netscape.com
2669825bf4 added pseudo-style for single line text controls. bug 14727
git-svn-id: svn://10.0.0.236/trunk@52327 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:29:32 +00:00
troy%netscape.com
23e130e01b Added nsHTMLReflowState.h
git-svn-id: svn://10.0.0.236/trunk@52326 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 16:16:45 +00:00
alecf%netscape.com
78d06b8fcf make buttons class="push"
only a test, not part of product


git-svn-id: svn://10.0.0.236/trunk@52325 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 07:39:07 +00:00
alecf%netscape.com
225dbf24eb update debug menu to reflect new DOMViewer location
(debug only not part of product)


git-svn-id: svn://10.0.0.236/trunk@52324 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 07:38:12 +00:00
alecf%netscape.com
20afa40ad0 fix a warning
r=pavlov


git-svn-id: svn://10.0.0.236/trunk@52323 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 07:32:23 +00:00
alecf%netscape.com
4eaeb0af68 move DOM viewer into chrome so that DOM security doesn't f us up again
only a test, not part of the product


git-svn-id: svn://10.0.0.236/trunk@52322 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 07:23:07 +00:00
alecf%netscape.com
4c4a69c07f more tweaks for boehm to catch up with the nsILeakDetector work
git-svn-id: svn://10.0.0.236/trunk@52321 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 07:06:26 +00:00
dp%netscape.com
0b96f92229 Removing shutdown listener. Releasing gCaseConv on XPCOM Shutdown r=kipp
git-svn-id: svn://10.0.0.236/trunk@52320 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 06:45:45 +00:00
beard%netscape.com
015fa0cad4 fixed up -blame option to use line marking.
git-svn-id: svn://10.0.0.236/trunk@52319 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 05:59:02 +00:00
alecf%netscape.com
1cd1d3967c more adding of class="dialog" to dialogs
git-svn-id: svn://10.0.0.236/trunk@52318 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 05:55:15 +00:00
beard%netscape.com
2300c27a4f fix nsIInterfaceInfoManager leak. bug=15380, r=jband
git-svn-id: svn://10.0.0.236/trunk@52317 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 05:48:07 +00:00
alecf%netscape.com
2dd3c4eacc add class="dialog" to mailnews prefs panes
this and last checkin r=rgoodger@ihug.co.nz


git-svn-id: svn://10.0.0.236/trunk@52316 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 05:46:04 +00:00
alecf%netscape.com
75c3ca9e17 add class="dialog" to all pref window dialogs
enable languages pane and fix XUL
disable smart_browsing pane (because it was crashing)


git-svn-id: svn://10.0.0.236/trunk@52315 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 05:44:23 +00:00
beard%netscape.com
ceb9cf186d changed gInstanceClassName from char[256] to const char* to save space. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52314 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 04:02:54 +00:00
beard%netscape.com
9a3ae339ee changed gInstanceClassName from char[256] to const char* to save space. added NS_IF_RELEASE(mFontMetrics) to destructor to fix memory leak. bug=15380, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52313 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 04:02:50 +00:00
danm%netscape.com
cd569b141a insert cast necessary on one of the "other" platforms
git-svn-id: svn://10.0.0.236/trunk@52312 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 03:13:55 +00:00
troy%netscape.com
6210745a33 Updated to not export nsIFrameReflow.h
git-svn-id: svn://10.0.0.236/trunk@52311 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:53:36 +00:00
troy%netscape.com
19db355c46 Changed to not export nsIFrameReflow.h
git-svn-id: svn://10.0.0.236/trunk@52310 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:52:43 +00:00
troy%netscape.com
88c4d96e2c Folded reflow functions into nsIFrame and eliminated nsIFrameReflow and
nsIHTMLReflow. This saves 4 bytes per frame and cleans things up


git-svn-id: svn://10.0.0.236/trunk@52309 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:52:11 +00:00
tbogard%aol.net
f5d99c2cec Removed mPresShell and mPresContext from the base class. Added internal getter function GetPresShell to retrieve presShell objects. Added a pointer to mContentViewer. Changed LoadURI* to take a presContext. Changed SetDocument to take a presContext. Changed the attribute presContext to be read only.
git-svn-id: svn://10.0.0.236/trunk@52308 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:30:13 +00:00
akhil.arora%sun.com
4e94fff191 r=akhil.arora@sun.com, fix by Denis Sharypov <sdv@sparc.spb.su>
13271: the wrong method was being called in ProcessingInstructionImpl.cpp
13338: handle null input arguments gracefully without crashing


git-svn-id: svn://10.0.0.236/trunk@52307 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 02:14:28 +00:00
beard%netscape.com
85fd5baad4 moved call to nsIThread::SetMainThread() to NS_InitXPCOM. r=warren
git-svn-id: svn://10.0.0.236/trunk@52306 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:53:03 +00:00
beard%netscape.com
7cf4142599 added call to nsIThread::SetMainThread(), to ensure users of XPCOM get a main thread mapped. r=warren
git-svn-id: svn://10.0.0.236/trunk@52305 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:52:55 +00:00
nisheeth%netscape.com
2d10931ddb Fix for bug 17540. Uncommented the call to nsFrameManager::CantRenderReplacedElement().
git-svn-id: svn://10.0.0.236/trunk@52303 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:31:49 +00:00
beard%netscape.com
15bc1a40b1 Removed statically constructed nsAutoString LinkCommand, moved inside nsWebShell::LoadURL(). This prevents calling printf before main runs on MacOS, which messes up the console window. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52302 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:23:01 +00:00
waterson%netscape.com
89a8c47740 '#if 0' DOM crawling code in toolbar frame to avoid over-eager generation of content model from RDF. GetElementsByTagName() is evil! r=pinkerton,hyatt
git-svn-id: svn://10.0.0.236/trunk@52301 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:21:44 +00:00
beard%netscape.com
20f6524e69 Fix proxied objects leak. r=sfraser, bug=15380
git-svn-id: svn://10.0.0.236/trunk@52300 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 01:17:24 +00:00
tbogard%aol.net
7b140eafb2 Removed zoom now that it has been moved out of the nsIGenericWindow interface.
git-svn-id: svn://10.0.0.236/trunk@52299 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 00:53:41 +00:00
tbogard%aol.net
069e0c0ab7 Moved zoom attribute from nsIGenericWindow to nsIDocShell. Updated zoom documentation.
git-svn-id: svn://10.0.0.236/trunk@52298 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 00:52:57 +00:00
hangas%netscape.com
bd127b8712 Fixed OK/Cancel button appearance by using globalOverlay.xul r=mscott
git-svn-id: svn://10.0.0.236/trunk@52297 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 00:14:52 +00:00
hangas%netscape.com
273c3a1673 Image transparency problem fixed by Andrew Niese.
git-svn-id: svn://10.0.0.236/trunk@52296 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 00:07:21 +00:00
tbogard%aol.net
945c6841ea Removed mDocument in favor of the preferred way of getting the document from the content viewer.
git-svn-id: svn://10.0.0.236/trunk@52295 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-30 00:02:38 +00:00
tbogard%aol.net
bc6a15f81a Changed a call to QueryInterface to use CallQueryInterface which helps with type checking.
git-svn-id: svn://10.0.0.236/trunk@52294 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:59:20 +00:00
valeski%netscape.com
0e08363c68 warning fixes, again :(
git-svn-id: svn://10.0.0.236/trunk@52293 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:35:06 +00:00
evaughan%netscape.com
1f41bc5a41 Fixed bug in example. -r hyatt
git-svn-id: svn://10.0.0.236/trunk@52292 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:27:26 +00:00
Jerry.Kirk%Nexwarecorp.com
95ed3035d3 Fixing FillPolygon code in nsRenderingPh.cpp
Adding debug code in nsDrawingSurfacePh  to find the crash.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@52291 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:18:16 +00:00
Jerry.Kirk%Nexwarecorp.com
7d754fa3e8 Changing mClipSibling to False in preparation to popup change
Pavlov is working on/thinking about... I'm sure he will see it my
way eventually...
r=kedl


git-svn-id: svn://10.0.0.236/trunk@52290 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:16:57 +00:00
mjudge%netscape.com
c750a7c32d reviewed by hyatt bug of someone elses but in my code. dont know number. simple check for null
git-svn-id: svn://10.0.0.236/trunk@52289 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:12:44 +00:00
mjudge%netscape.com
2dee462ae3 i cannot find the bug# it is for selecting inside forms. we need to turn off selection in certain frames based on the style. this sets up it to work once we figure out the style rule to set.
git-svn-id: svn://10.0.0.236/trunk@52288 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:07:07 +00:00
colin%theblakes.com
a3feb440b1 Only define MDCPUCFG if HOST_NSPR_MDCPUCFG is defined. r=cls
git-svn-id: svn://10.0.0.236/trunk@52287 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:03:15 +00:00
rogerl%netscape.com
b817d51d4b I changed the exepcted value for object.toString() calls on the empty
object - There's no clear documentation of the result, but the source
code unambiguously calls 'js_obj_toSource', which inserts the extra '()'
under the version1_2 flag, so I believe this is the correct result.


git-svn-id: svn://10.0.0.236/trunk@52286 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:02:17 +00:00
valeski%netscape.com
2eefe93ceb 17521, r = mscott. FTP authentication dialogs we're looping if canceled. I also changed a bunch of string getter routines to take XPIDLCStrings. there was speculation during the reveiw that there might be some casting problems on other platforms. if this is the case either case the XPIDLCString to (const char *) or call me and I'll do it.
git-svn-id: svn://10.0.0.236/trunk@52285 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 23:00:52 +00:00
edburns%acm.org
31ca3266f1 r=marklin
#17358
approver=edburns
author=edburns

This fix enables webclient to work with the latest mozilla.  For now.


git-svn-id: svn://10.0.0.236/trunk@52284 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:51:06 +00:00
rogerl%netscape.com
b16f4bc0c7 Changed to account for latest ECMA spec on back-references vs. octal
git-svn-id: svn://10.0.0.236/trunk@52283 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:50:43 +00:00
rogerl%netscape.com
fa193f41c1 New ECMA spec for no argument calls to max & min - should return +/- Inf
git-svn-id: svn://10.0.0.236/trunk@52282 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:48:33 +00:00
brendan%mozilla.org
ba803ea225 Add JS_VersionToString and JS_StringToVersion, updated Impl. Version (13163, r=shaver@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@52281 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:44:35 +00:00
akkana%netscape.com
d167106925 Remove one GDK_question. Trivial one-line fix
git-svn-id: svn://10.0.0.236/trunk@52280 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:37:18 +00:00
cmanske%netscape.com
1095535469 Fixed Composer UI to adjust to latest global CSS changes. Mostly needed to add appropriate class to titled buttons. Change editorshell to stop throbber animation even if editor fails to initialize. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52279 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:33:34 +00:00
jefft%netscape.com
01d415eebe fixed bug 12131 -- message counts not updated after a move/copy; call UpdateFolder() after move/copy is done; r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@52278 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:28:55 +00:00
rogerl%netscape.com
8760c5b5e8 r=norris
Change for ECMA spec. - String.charCodeAt, etc call ToInteger on index.
Ditto - String.match(re) was constructing /undefined/ instead of empty
regexp.


git-svn-id: svn://10.0.0.236/trunk@52277 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:27:33 +00:00
rogerl%netscape.com
853e43bd31 r=norris
Opinion was that Script.exec() should execute in global scope, not caller.


git-svn-id: svn://10.0.0.236/trunk@52276 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:25:25 +00:00
rogerl%netscape.com
dcacacf7d7 r=norris
Fixed accidental eating of exceptions (match loop didn't terminate on
failure). New ECMA definition (again) of back reference format.


git-svn-id: svn://10.0.0.236/trunk@52275 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:23:36 +00:00
rogerl%netscape.com
e8f1c05ca6 r=norris
New ECMA behaviour for max & min.


git-svn-id: svn://10.0.0.236/trunk@52274 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:21:54 +00:00
rogerl%netscape.com
2ed88ba80b r=norris
Upgrading to new ECMA - conversionError subsumed by TypeError.


git-svn-id: svn://10.0.0.236/trunk@52273 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:20:23 +00:00
rogerl%netscape.com
69933e9f74 r=norris, Bug#16984
New error message for function.apply arguments.


git-svn-id: svn://10.0.0.236/trunk@52272 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:19:04 +00:00
rpotts%netscape.com
021f44ae53 Fixed crash during error condition in END_WRITE... (r=warren)
git-svn-id: svn://10.0.0.236/trunk@52271 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:14:52 +00:00
evaughan%netscape.com
0fa061c765 Made tabs us visibility instead of shrinking their children to 0,0.
Made it possible to change the look for the selected tab.


git-svn-id: svn://10.0.0.236/trunk@52270 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:13:57 +00:00
waterson%netscape.com
0d6ebd6b12 Pull script object and event listener list out of slots and into delegate to avoid faulting a heavyweight element. Fix EnsureSlots() to _not_ do a bunch of extra work that is already being done when we create an element from its prototype. Use nsCOMPtr's in nsXULAttributes to avoid leak of nsIStyleRule. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52269 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 22:09:20 +00:00
varada%netscape.com
b1f24224b8 fix for bug #14012 viewfile function to open the files and open url to open html
git-svn-id: svn://10.0.0.236/trunk@52268 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:57:00 +00:00
rchen%netscape.com
604931010d Add Localization Notes
git-svn-id: svn://10.0.0.236/trunk@52267 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:53:20 +00:00
mscott%netscape.com
29d7ee003b first created.
git-svn-id: svn://10.0.0.236/trunk@52266 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:49:19 +00:00
mscott%netscape.com
6ad3ce8ee3 Moving URI dispatching code into its new home in mozilla\uriloader. I'll be removing
the existing files that I put in netwerk very soon.


git-svn-id: svn://10.0.0.236/trunk@52265 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:46:18 +00:00
rchen%netscape.com
6be0ffb4ca Add localization notes
git-svn-id: svn://10.0.0.236/trunk@52264 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:40:07 +00:00
rchen%netscape.com
89f810c614 Add Localization Notes
git-svn-id: svn://10.0.0.236/trunk@52263 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:37:43 +00:00
bienvenu%netscape.com
fa7e1e0f1e fix body filters, r=sspitzer 17058
git-svn-id: svn://10.0.0.236/trunk@52262 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:33:44 +00:00
rchen%netscape.com
beb892e3f0 Add Localization notes
git-svn-id: svn://10.0.0.236/trunk@52261 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:27:41 +00:00
rogerl%netscape.com
338c55ea1d New, spawned from AIX4.2.mk.
git-svn-id: svn://10.0.0.236/trunk@52260 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:14:31 +00:00
rchen%netscape.com
394244ab39 Add Localization notes
git-svn-id: svn://10.0.0.236/trunk@52259 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:12:26 +00:00
alecf%netscape.com
ea62024583 fix a broken class= r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52258 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:11:06 +00:00
alecf%netscape.com
ee5415192d add class="dialog push" to the profile wizard UI r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52257 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:10:53 +00:00
alecf%netscape.com
928787debd add class="dialog push" to all pref windows r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52256 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 21:01:41 +00:00
rchen%netscape.com
e6e52fc833 Add localization notes
git-svn-id: svn://10.0.0.236/trunk@52255 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:58:42 +00:00
rchen%netscape.com
280221ed46 Add Localization notes
git-svn-id: svn://10.0.0.236/trunk@52254 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:52:42 +00:00
alecf%netscape.com
52ddc97b98 fix titledbutton class to "dialog push"
r=shaver


git-svn-id: svn://10.0.0.236/trunk@52253 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:51:41 +00:00
valeski%netscape.com
7559ac64c5 15590 - build warnings prompted some variable name changes. Also replaced nsVoidArray usage w/ nsCStringArrays. Added some null checks. converted some raw ptrs to com ptrs.
16968 - bugzilla wasn't progress through bug lists via "next" "prev" links. we now set cookie headers from within x-multi-mixed-replace data.


git-svn-id: svn://10.0.0.236/trunk@52252 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:50:06 +00:00
karnaze%netscape.com
7868fc24c7 new regression test
git-svn-id: svn://10.0.0.236/trunk@52251 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:47:33 +00:00
valeski%netscape.com
85c426971e 15590, r=kipp. added a nsCStringArray class so the cool string array functionality could be used for CStrings too. this checkin is *part* of a fix to the bug
git-svn-id: svn://10.0.0.236/trunk@52250 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:47:17 +00:00
putterman%netscape.com
9c5e4137a1 Fix for 17556. Reviewed by alecf. Newsgroups show abbreviated name in folder pane.
git-svn-id: svn://10.0.0.236/trunk@52249 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:46:15 +00:00
cata%netscape.com
324e2f56a7 Fix for bug #17018, r=cata, checkin for momoi.
git-svn-id: svn://10.0.0.236/trunk@52248 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:41:21 +00:00
despotdaemon%netscape.com
e9ccfad854 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@52247 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:41:01 +00:00
cata%netscape.com
eb0df2c879 Fix for bug #16186 build warnings; eliminating unused var.
git-svn-id: svn://10.0.0.236/trunk@52246 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:32:00 +00:00
cata%netscape.com
b855e5dd72 Fix for bug #15706; r=nhotta
git-svn-id: svn://10.0.0.236/trunk@52245 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:29:40 +00:00
rchen%netscape.com
bca34cf5da Add Localization Notes
git-svn-id: svn://10.0.0.236/trunk@52244 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:28:18 +00:00
karnaze%netscape.com
b2c6378cf2 bug 17375 - better checks and casting before calling DidAppendRow
git-svn-id: svn://10.0.0.236/trunk@52243 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:25:13 +00:00
rchen%netscape.com
a74e27b3f5 Add localization notes
git-svn-id: svn://10.0.0.236/trunk@52242 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 20:24:48 +00:00
harishd%netscape.com
bb63ac5e3f Fix fof bug 15674 - Putting back char* buffer.
r=akkana


git-svn-id: svn://10.0.0.236/trunk@52241 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:59:09 +00:00
akkana%netscape.com
1645b0ed7a Only output the xif.xif debug file if DEBUG_XIF is defined. Requested by sfraser
git-svn-id: svn://10.0.0.236/trunk@52240 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:36:30 +00:00
akkana%netscape.com
e367bbd2be 17305: Add ? to the list of fakie-shifted keycodes. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:33:57 +00:00
morse%netscape.com
e3e9faf88f fix bug 14932, mozilla asserts if client-wallet is disabled, r=neeti
git-svn-id: svn://10.0.0.236/trunk@52238 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:31:30 +00:00
jefft%netscape.com
5b125a705f partial fix for bug 17034; decode encoded words prior setting to the composition fields; r=nhotta,rhp
git-svn-id: svn://10.0.0.236/trunk@52237 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:23:29 +00:00
slamm%netscape.com
3b0382f6c1 Use tb_find_build_record() instead of find_build_record().
git-svn-id: svn://10.0.0.236/trunk@52236 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:20:53 +00:00
slamm%netscape.com
3fd6cb1d50 Fix 17347. Initialize the 'View | Sidebar' menu to the correct state. r=mozbot.
git-svn-id: svn://10.0.0.236/trunk@52235 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:17:22 +00:00
slamm%netscape.com
45e93dc267 Get min heights correct so that the sidebar will collapse. r=evaughan.
git-svn-id: svn://10.0.0.236/trunk@52234 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:16:38 +00:00
slamm%netscape.com
8769efefd3 Add license.
git-svn-id: svn://10.0.0.236/trunk@52233 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:13:42 +00:00
vidur%netscape.com
a595e9b30a Fix for double frame creation for scripts that document.write content that causes sink context creation. Fix that allows the last children of a body to be flushed. R=harishd
git-svn-id: svn://10.0.0.236/trunk@52232 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:07:24 +00:00
slamm%netscape.com
0e1f052c66 Spit and polish. Take 2. Do not put 'undef' in 'my' list.
git-svn-id: svn://10.0.0.236/trunk@52231 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 19:01:14 +00:00
slamm%netscape.com
4c48633d37 Somethings not working. Backup
git-svn-id: svn://10.0.0.236/trunk@52230 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:54:32 +00:00
pnunn%netscape.com
66c14dd8b7 part of fix for bug#15817. r: akkana. strong suggestion by kipp. Do the right
thing in image container destructor.


git-svn-id: svn://10.0.0.236/trunk@52229 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:53:03 +00:00
slamm%netscape.com
731c45ad0c Clean up global names. Spit and polish. Fix '-w' warnings.
git-svn-id: svn://10.0.0.236/trunk@52228 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:52:04 +00:00
pnunn%netscape.com
f742f7e4fd fix for bug#17076. r: akkana. Puts data stream mime check before component
loading instead of after a component load failure.


git-svn-id: svn://10.0.0.236/trunk@52227 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:51:09 +00:00
ducarroz%netscape.com
e83ba4c213 Fix for bug 17493, We need to cleanup any GCI commands from the URI when generating a file name. R=rhp
git-svn-id: svn://10.0.0.236/trunk@52226 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:50:05 +00:00
warren%netscape.com
dfe868a09a Fixed round-off error computing bloat total.
git-svn-id: svn://10.0.0.236/trunk@52225 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:48:37 +00:00
varada%netscape.com
3e9b7b7fb2 fix for bug #17459 by adding another depend function onnext
git-svn-id: svn://10.0.0.236/trunk@52224 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:36:52 +00:00
varada%netscape.com
4f3ab7cb05 fix for bug #17459 as well as some clean up
git-svn-id: svn://10.0.0.236/trunk@52223 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:35:58 +00:00
sspitzer%netscape.com
db726a6afc fix for #17555. get all the default files, including panels.rdf
git-svn-id: svn://10.0.0.236/trunk@52222 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:29:07 +00:00
buster%netscape.com
3fe2b88255 more implementation
some nits to conform more to seamonkey coding conventions.


git-svn-id: svn://10.0.0.236/trunk@52221 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:25:57 +00:00
warren%netscape.com
7e5a7e1258 Fixed parsing of bloat log when value was nan, or class contained ::.
git-svn-id: svn://10.0.0.236/trunk@52220 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 18:05:09 +00:00
warren%netscape.com
a237edb9e7 Made the leak/bloat baseline only be the min over the last 5 entries.
git-svn-id: svn://10.0.0.236/trunk@52219 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 17:19:54 +00:00
kipp%netscape.com
363a93452d Fixed solaris build bustage
git-svn-id: svn://10.0.0.236/trunk@52218 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 15:20:20 +00:00
troy%netscape.com
de2a95b57c Space reduction. We now save 8 bytes per row frame by eliminating the max
top/bottom margin data members which are no longer needed


git-svn-id: svn://10.0.0.236/trunk@52217 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:40:58 +00:00
kipp%netscape.com
aaabce0894 r=troy; bugs 12958 and 12760; reworked the way that first-letter frames are created and updated. We now support incremental content changes even when first-letter style applies.
git-svn-id: svn://10.0.0.236/trunk@52216 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:39:48 +00:00
kipp%netscape.com
96da767847 r=troy; fixed a crash bug in the debug logic found while fixing 12958
git-svn-id: svn://10.0.0.236/trunk@52215 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:36:00 +00:00
kipp%netscape.com
5f8b23824a r=troy; api changes for 12958, 12760 and preperations for 17377
git-svn-id: svn://10.0.0.236/trunk@52214 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:35:36 +00:00
kipp%netscape.com
f35516791b r=troy; cleaned up resize reflow optimization logic and prepared it for fixing bug #17737 (not yet fixed!)
git-svn-id: svn://10.0.0.236/trunk@52213 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:34:53 +00:00
kipp%netscape.com
5a0f716ef3 r=troy; fixed letter frame logic to use the line layout to flow frames so that white-space trimming, for example, would work right
git-svn-id: svn://10.0.0.236/trunk@52212 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:34:01 +00:00
kipp%netscape.com
b3ecfed51c r=troy; updated api slightly to support fixes to bug 12760, 12958 and some resize-reflow optimization bugs
git-svn-id: svn://10.0.0.236/trunk@52211 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:33:26 +00:00
kipp%netscape.com
a2f8cba30c r=troy; use new line-layout api to help with some resize-reflow optimization bugs
git-svn-id: svn://10.0.0.236/trunk@52210 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 14:32:11 +00:00
rods%netscape.com
c01e8f06c0 Allows radiobuttons to remove themselves from the named radio group
when deleted factored the code
r=kmcclusk, bug 17418


git-svn-id: svn://10.0.0.236/trunk@52209 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 13:56:30 +00:00
rods%netscape.com
24bb2c855d removes itself from the radio group when it is destructed
r=kmcclusk, bug 17418


git-svn-id: svn://10.0.0.236/trunk@52208 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 13:54:58 +00:00
rods%netscape.com
38a193d9b4 clears the the checked item on removal
r=kmcclusk,bug 17418


git-svn-id: svn://10.0.0.236/trunk@52207 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 13:53:50 +00:00
kin%netscape.com
5fae6982e3 Fix for bug #16176: [DOGFOOD] need to annotate line frames with whitespace trim
layout/base/src/nsCaret.cpp
        - Modified DrawCaretWithContext so that we only
          adjust the caret position if we are within the
          frame's bounds.

    layout/html/base/src/nsTextFrame.cpp
        - Modified GetPointFromOffset() to add the width
          of a space if the offset is after a trailing space
          and it was trimmed off the frame.

r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@52206 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 13:43:11 +00:00
Jerry.Kirk%Nexwarecorp.com
e08673c042 Fixes for drawing the new Chrome. Had to explicitly call PgFlush
to flush the draw stream from the memory context into the off screen
buffer. I think this is a bug in Photon, but for now this is the fix.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@52205 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 12:53:58 +00:00
pavlov%netscape.com
f24c85975a remove some tabs and add a check for null (bug 17252) r=syd
git-svn-id: svn://10.0.0.236/trunk@52204 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 09:03:53 +00:00
pavlov%netscape.com
385f05a7b1 fix for bugs 17234,17416 r=tor,bruce
git-svn-id: svn://10.0.0.236/trunk@52203 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 08:36:47 +00:00
pavlov%netscape.com
594fc96d9f fix for 15942 and some performance tests/code r=syd
git-svn-id: svn://10.0.0.236/trunk@52202 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 08:24:09 +00:00
danm%netscape.com
8dd72754a2 treat the return key, like enter, as if the default dialog button had been pressed. part of fix for bug 17529. r:saari@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52201 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 06:17:07 +00:00
danm%netscape.com
12fd34f1ce dialog now uses okCancelButtons overlay. partial fix for bug 17529 r:hangas@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52200 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 06:12:26 +00:00
cmanske%netscape.com
d779af105f Changed hover style for FormatToolbar for consistency with new UI
git-svn-id: svn://10.0.0.236/trunk@52199 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 06:04:48 +00:00
beard%netscape.com
73ee8b0ee5 added transitive closure size computation.
git-svn-id: svn://10.0.0.236/trunk@52198 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 06:04:01 +00:00
jband%netscape.com
d8b2fc8146 r=shaver@mozilla.org
- Fix for bug 13419 - xpconnect calls wrapped JS objects on wrong JSContext.
Added code to use the nsThreadJSContextStack in order to call wrapped
JS object on the JSContext that is current for the running thread.

We've made the rule that xpconnect only supports one JSRuntime. We
partially enforce that here by enforcing that the JSContext on which
we will run code hails from the same JSRuntime as the JSContext on
which the wrapper for the JS code was built.

Because it is perfectly legal for the nsThreadJSContextStack to be empty
if a wrapped JS object is being called from code other than a DOM event,
this system will lazily create a JSContext for the current thread and
maintain it in TLS. This JSContext is used as necessary. If it uses such
a JSContext that was not already on the nsThreadJSContextStack then the
system will temporarily push that JSContext onto the nsThreadJSContextStack
during the course of the function call being performed. This is all managed
my a new auto class: AutoPushCompatibleJSContext. This is used in the two
places where wrapped JS code is called from native code.

[the two places where this system is invoked are currently disabled due to
the fact that the DOM code makes bad assumptions about the JSContext on
which DOM objects can be accessed. We are working to fix that and then this
code will be enabled.]

- Add #ifdef XPC_DETECT_LEADING_UPPERCASE_ACCESS_ERRORS code that will help
users when we do things like fix bug 14460. As soon as we make more of the
idl declarations of methods leadingLowercase then we will have
LeadingUppercase calls from JS breaking at runtime. It is expected that this
will especially be a problem for coders working with the same interfaces
from both C++ and JS (since from C++ an interface has LeadingUpper methods and
the *same* interface seen from JS has leadingLowecase names). This code
(as suggested by shaver) will print out an informative error message when
it detects the misuse. This is currently enabled for DEBUG builds only.

- Copy code from xpcshell to TestXPC to use the JSRuntimeSerivce.

r=norris@netscape.com
- Check to see if a wrapped JS object has a QueryInterface property before
trying to call that method. This is a speed optimization. It also and makes
norris happy because his perrenial breakpoint in jsReportErrorNumber is not
getting hit (even though the old code was safe).


git-svn-id: svn://10.0.0.236/trunk@52197 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 05:42:41 +00:00
mcafee%netscape.com
b3a2df9860 Updating legend to match new output format.
git-svn-id: svn://10.0.0.236/trunk@52196 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 05:02:00 +00:00
troy%netscape.com
58248e0de3 Fix for bug #16649. Didn't actually change anything. Just restored some
code that was clobbered by revision 3.153


git-svn-id: svn://10.0.0.236/trunk@52195 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:57:02 +00:00
morse%netscape.com
4f5d2bc5d5 get ready for integration with http/ftp authentication, r=davidm
git-svn-id: svn://10.0.0.236/trunk@52194 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:51:27 +00:00
sspitzer%netscape.com
1bb663bbef fix for #8717. performance is good enough to bump this back to 500.
still more work to be done, as this is a per-server pref now, I think.


git-svn-id: svn://10.0.0.236/trunk@52193 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:49:41 +00:00
mcafee%netscape.com
dbd1674956 No spaces so units don't go on next line.
git-svn-id: svn://10.0.0.236/trunk@52192 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:45:52 +00:00
sspitzer%netscape.com
e36c5874dc fix it so that if you have something selected, and you hit enter, it starts with that profile.
git-svn-id: svn://10.0.0.236/trunk@52191 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:40:20 +00:00
bienvenu%netscape.com
9187011a29 changes to use nsIMsgWindow r=putterman
git-svn-id: svn://10.0.0.236/trunk@52190 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:39:06 +00:00
mcafee%netscape.com
d977243f6d oops left out b units
git-svn-id: svn://10.0.0.236/trunk@52189 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:36:17 +00:00
mcafee%netscape.com
d2807b6f90 Better units, r=brendan
git-svn-id: svn://10.0.0.236/trunk@52188 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:30:56 +00:00
morse%netscape.com
6bc4bb23b5 provide compatibility with single signon, r=davidm
git-svn-id: svn://10.0.0.236/trunk@52187 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:30:38 +00:00
cmanske%netscape.com
55b30027eb Reduced size of Named Anchor proxy icon used in editor page to minimize layout disturbance when present. Changed colors.
git-svn-id: svn://10.0.0.236/trunk@52186 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:23:36 +00:00
sspitzer%netscape.com
3441bfea68 fix for #16231, r=mscott. make the file locator know about panels.rdf.
if <profile>/panels.rdf doesn't exist, copy the default to that location.


git-svn-id: svn://10.0.0.236/trunk@52185 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:02:25 +00:00
sspitzer%netscape.com
61aed8f307 fix for #16231, r=mscott. use the file locator (which caches the profile directory) instead of going through the profile service.
git-svn-id: svn://10.0.0.236/trunk@52184 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:02:20 +00:00
sspitzer%netscape.com
fc22d0aa61 remove the GetCurrentProfileDirFromJS() method from the nsIProfile interface. the only one using it was the sidebar js, but now that uses the fileLocator. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@52183 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 04:01:22 +00:00
rginda%ndcico.com
0da4aac936 ** NOT PART OF THE SEAMONKEY DEFAULT BUILD **
* xul/tests/index.html
Content update.

* xul/tests/test3-output-loud.css
Added ugly style.

* Makefile.in, makefile.win
Updated to install new style.


git-svn-id: svn://10.0.0.236/trunk@52182 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 03:33:01 +00:00
warren%netscape.com
74b069723b Moved purify stuff into xpcom/base for the benefit of all.
git-svn-id: svn://10.0.0.236/trunk@52181 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 03:28:22 +00:00
warren%netscape.com
1fae170c08 Adding pure.h pure_api.c to the build. bug#16695
git-svn-id: svn://10.0.0.236/trunk@52180 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 03:26:50 +00:00
warren%netscape.com
3e59dc9845 Took out bogus error message.
git-svn-id: svn://10.0.0.236/trunk@52179 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 03:19:11 +00:00
waterson%netscape.com
4c9f59d49c Fix SizeOf() operation.
git-svn-id: svn://10.0.0.236/trunk@52178 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 03:07:38 +00:00
cmanske%netscape.com
941b2da9d7 Style adjustment for Composer DisplayMode toolbar
git-svn-id: svn://10.0.0.236/trunk@52177 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:58:37 +00:00
cmanske%netscape.com
f320760ce4 Color adjustment for Composer DisplayMode toolbar
git-svn-id: svn://10.0.0.236/trunk@52176 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:47:47 +00:00
warren%netscape.com
d4cac369ff Printed out TOTAL line for showbuilds.cgi
git-svn-id: svn://10.0.0.236/trunk@52175 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:39:10 +00:00
cathleen%netscape.com
7754b4e90e update unix packaging list for missing chrome and res files (editor, xpinstall... )
git-svn-id: svn://10.0.0.236/trunk@52174 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:37:27 +00:00
cmanske%netscape.com
aa538bb21b Added 'Throbber' to Composer - more UI adjustments for new skin. Tweaked new toolbar images. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52173 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:33:51 +00:00
kipp%netscape.com
877bf64923 Implement the LIBMALLOC_NOFREE flag; add in support for memory fill count which increases the malloc by N and fills it with a pattern to help detect overruns and random memory corruptions
git-svn-id: svn://10.0.0.236/trunk@52172 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:19:25 +00:00
kipp%netscape.com
71e57e9bc0 Disabled some of my own debugging noise
git-svn-id: svn://10.0.0.236/trunk@52171 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:17:55 +00:00
rhp%netscape.com
aa26800137 Fix for message display - Bug #17481 - r: jefft
git-svn-id: svn://10.0.0.236/trunk@52170 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:17:10 +00:00
ssu%netscape.com
a9a91fcc7c fixing bugs #16935 and #11581. r=dvedtiz.
The first fix reverses the way xpinstall aborts/cleans up itself.  The
correct way is to undo the commands it ran in backwards order.

The second fixes problem with a install.js script not having called
finalizeInstall() yet still installing files.


git-svn-id: svn://10.0.0.236/trunk@52169 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:15:56 +00:00
kipp%netscape.com
87ff88fc08 nuked another silly warning because I got tired of seeing it
git-svn-id: svn://10.0.0.236/trunk@52168 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:06:33 +00:00
kipp%netscape.com
f748008a0b I added logic to the viewers browser window to disable javascript initiated popups during web crawling; I also fixed the web crawler to only initiate a new load after a previous document ends not a subdocument (again!)
git-svn-id: svn://10.0.0.236/trunk@52167 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:06:09 +00:00
kipp%netscape.com
20e3748d92 I added logic to the viewers browser window to disable javascript initiated popups during web crawling
git-svn-id: svn://10.0.0.236/trunk@52166 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 02:05:16 +00:00
gagan%netscape.com
213f166414 Fixed bug 17393. We were firing an OnStopRequest for redirect's response completion. That messes up imagelib which starts to reset/abort streams. r=waterson
git-svn-id: svn://10.0.0.236/trunk@52165 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:55:58 +00:00
kipp%netscape.com
0f8e430077 r=troy; fixed code to properly remove reflowc ommands when cancelling
git-svn-id: svn://10.0.0.236/trunk@52164 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:53:56 +00:00
wtc%netscape.com
407de78336 Need to set the reuseaddr socket option before PR_Bind, now that
PR_Bind no longer sets that option automatically (see Bugzilla #17184).


git-svn-id: svn://10.0.0.236/trunk@52163 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:41:34 +00:00
wtc%netscape.com
4adfa873d2 Bugzilla bug #15858: fixed compiler warnings.
git-svn-id: svn://10.0.0.236/trunk@52162 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:33:54 +00:00
jj%netscape.com
0410c9f36b added [xpiengine] module and rename 'ChromeRegistry' to 'ChomeRegistry' to be consistent with this typo across the tree.
git-svn-id: svn://10.0.0.236/trunk@52161 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:25:51 +00:00
waterson%netscape.com
6d0e00cdd4 Bug 15146. Brutal content model sharing, Phase II. XUL content sink now constructs prototype documents; 'real' content model constructed from walking prototype. Landed XUL_SHARING_19991027_BRANCH (derived from XUL_SHARING_19991022_BRANCH). See branch comments for details. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@52160 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:21:15 +00:00
mcafee%netscape.com
19573259fb typo, r=slamm
git-svn-id: svn://10.0.0.236/trunk@52159 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:21:06 +00:00
waterson%netscape.com
5a02e1350c Bug 15146. Remove usage of nsIXUL[Child|Parent]Document, nsIXULDocumentInfo. Now obsolete with brutal sharing. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@52158 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:19:20 +00:00
dougt%netscape.com
72ec0f3079 adding license.
git-svn-id: svn://10.0.0.236/trunk@52157 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 01:10:00 +00:00
kipp%netscape.com
e8cc21c4c3 New tests (not part of any build)
git-svn-id: svn://10.0.0.236/trunk@52156 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 00:59:41 +00:00
warren%netscape.com
e6e16569fb Added 1k fudge factor.
git-svn-id: svn://10.0.0.236/trunk@52155 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 00:40:04 +00:00
sspitzer%netscape.com
695d6778d8 don't specify the height and width, let it size to content. otherwise, the buttons on the bottom don't show up.
git-svn-id: svn://10.0.0.236/trunk@52154 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 00:26:43 +00:00
mccabe%netscape.com
5124ea8599 adding comments
git-svn-id: svn://10.0.0.236/trunk@52153 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 00:26:19 +00:00
sspitzer%netscape.com
e8194ccfb1 cleaning up comments
git-svn-id: svn://10.0.0.236/trunk@52152 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-29 00:09:27 +00:00
mcafee%netscape.com
af1c129e99 Reverted to mozilla.org url because of problems with loading resource:
git-svn-id: svn://10.0.0.236/trunk@52151 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:32:13 +00:00
nhotta%netscape.com
978eb5faf1 Adding entity property files to packages, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@52150 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:31:30 +00:00
putterman%netscape.com
2df3525f9d More work on 17376. reviewed by bienvenu. Store open folder and keep array of msgWindows.
git-svn-id: svn://10.0.0.236/trunk@52149 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:27:21 +00:00
harishd%netscape.com
3d1723b618 Fix for bugs
1312   - Mapped all  HTML 4.0x FPIs to NOQUIRKS mode.
2749   - Tweaked strict comment handling code. -> r=rickg
17148 - Making sure that BeginContext() is ended only by EndContext()
17113, 1262 - Made AddLeaf(), in DTD,  to be cautious in handling text tokens.

Using bit-wise search  for IsContainer() instead of looping. ( nsElementTable )

Fixed warnings.

r=pollmann


git-svn-id: svn://10.0.0.236/trunk@52148 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:25:59 +00:00
mcafee%netscape.com
a6b5e55d70 Fixed extra my's that break in some versions of perl
git-svn-id: svn://10.0.0.236/trunk@52147 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:24:39 +00:00
sspitzer%netscape.com
a19b0a701f only show profiles that haven't been migrated in the Profile Selection dialog.
git-svn-id: svn://10.0.0.236/trunk@52146 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:24:05 +00:00
sspitzer%netscape.com
139ca8b52d adding "Mozilla Select Profile" (aka -SelectProfile) for the mac.
git-svn-id: svn://10.0.0.236/trunk@52145 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:19:02 +00:00
mcafee%netscape.com
14b918a812 Adding bloat formatting, baseline mechanism. warren/mcafee
git-svn-id: svn://10.0.0.236/trunk@52144 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:18:50 +00:00
sspitzer%netscape.com
9b563bc4a7 adding -SelectProfile for the mac.
git-svn-id: svn://10.0.0.236/trunk@52143 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:17:44 +00:00
sspitzer%netscape.com
761883462c checking in ben goodger's (rgoodger@ihug.co.nz) profile selection UI.
r=sspitzer

I made changes so that:

1)  exit quits the app, and doesn't start up app with the last current profile
2)  fix a spelling error (personalisation -> personalization), this is en-US, not en-UK
3)  fix it so start actually starts the selected profile.
4)  -SelectProfile launches this new dialog
5)  if the user starts with no command line, and they have more than one profile, they get -SelectProfile, and not -installer.


git-svn-id: svn://10.0.0.236/trunk@52142 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:08:46 +00:00
mcafee%netscape.com
cb42bc5347 switching to static pages.
git-svn-id: svn://10.0.0.236/trunk@52141 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:02:49 +00:00
mcafee%netscape.com
5d276fc49d fixing log rename problem. code=warren
git-svn-id: svn://10.0.0.236/trunk@52140 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 23:02:10 +00:00
sspitzer%netscape.com
39084ddb75 add support for SelectProfile
git-svn-id: svn://10.0.0.236/trunk@52139 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:56:00 +00:00
ftang%netscape.com
725ca86a3c fix bustage.
git-svn-id: svn://10.0.0.236/trunk@52138 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:38:58 +00:00
warren%netscape.com
25f7059c43 Fixed the fact that all pdb files get called default.pdb (which made it hard to debug when there was more than one test file in a directory). r=cyeh
git-svn-id: svn://10.0.0.236/trunk@52137 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:36:22 +00:00
rbs%maths.uq.edu.au
cdfb86c649 Catching up with recent changes of the nsIFrame API
git-svn-id: svn://10.0.0.236/trunk@52136 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:30:28 +00:00
waterson%netscape.com
ed6d691c92 Remove unused references to nsIXULChildDocument and nsIXULParentDocument.
git-svn-id: svn://10.0.0.236/trunk@52135 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:18:21 +00:00
pepper%netscape.com
856f1ee86f Added a newline to the end of file so that AIX and HP compilers are happy.
r=mgleeson


git-svn-id: svn://10.0.0.236/trunk@52134 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:17:43 +00:00
rbs%maths.uq.edu.au
4ea4c2ba26 Adding Dave Fiddes' patch for a MOZ_MATHML CFLAGS
git-svn-id: svn://10.0.0.236/trunk@52133 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:17:13 +00:00
waterson%netscape.com
c13911024a Remove redundant registration of well-formed DTD. r=rickg
git-svn-id: svn://10.0.0.236/trunk@52132 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:15:18 +00:00
waterson%netscape.com
0509ac6c24 Put column headers back in to folder pane. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@52131 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:14:14 +00:00
mccabe%netscape.com
c568cf9bed Add an API entry point for building JS Date objects from millisecond values.
Patches courtesy Chris Houck.  r=mccabe.


git-svn-id: svn://10.0.0.236/trunk@52130 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:11:41 +00:00
rhp%netscape.com
b3f1a34e11 Fix for sending plain text as binary files - Bug #16393 - r: mscott
git-svn-id: svn://10.0.0.236/trunk@52129 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:09:27 +00:00
norris%netscape.com
a825f1738a work on bug 7270.
r=mstoltz.
Implement netscape.security.PrivilegeManager callbacks.


git-svn-id: svn://10.0.0.236/trunk@52128 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:09:03 +00:00
mscott%netscape.com
58da4d1cc2 part of url dispatching framework.
build nsURLDispatcher.cpp


git-svn-id: svn://10.0.0.236/trunk@52127 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:08:57 +00:00
ftang%netscape.com
949f26b1d9 remove nsIDOMTextRange.h nsIDOMTextRangeList.h. fix bug 12756. r=tague
git-svn-id: svn://10.0.0.236/trunk@52126 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:05:42 +00:00
wtc%netscape.com
2989da583b Bugzilla bug #17486: need parentheses around a & operator in an expression
git-svn-id: svn://10.0.0.236/trunk@52125 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 22:03:08 +00:00
srinivas%netscape.com
894660c683 Export version descriptor. Bugzilla 4742
git-svn-id: svn://10.0.0.236/trunk@52123 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:28:46 +00:00
bienvenu%netscape.com
7a179cfe09 fix mac build bustage
git-svn-id: svn://10.0.0.236/trunk@52122 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:20:40 +00:00
mcafee%netscape.com
4a058b42d1 Ignore tree directories.
git-svn-id: svn://10.0.0.236/trunk@52120 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:16:44 +00:00
dmose%mozilla.org
0d77d490d6 script to update license boilerplate in source files
git-svn-id: svn://10.0.0.236/trunk@52119 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:16:29 +00:00
rpotts%netscape.com
4626597396 cleanup - removed unnecessary code checking that mRequest != nsnull. Now the mRequest is allocated at channel construction and the channel is deleted if the request allocation fails...
git-svn-id: svn://10.0.0.236/trunk@52118 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:15:56 +00:00
ssu%netscape.com
cc23cb4fd5 added new resource string. This is related to bug #17391. r=dbragg.
Affects only windows platforms.


git-svn-id: svn://10.0.0.236/trunk@52117 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:13:28 +00:00
alecf%netscape.com
32ed46c795 fix casting problem on solaris
git-svn-id: svn://10.0.0.236/trunk@52116 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:13:06 +00:00
ssu%netscape.com
da07ac32b1 fixing bug #17391. r=dbragg.
Fixes problem with calculating available disk space under
Win95/win98.  Affects only windows platforms.


git-svn-id: svn://10.0.0.236/trunk@52115 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:12:24 +00:00
warren%netscape.com
052c27feff Fixed thing that chops off final digit.
git-svn-id: svn://10.0.0.236/trunk@52114 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:06:36 +00:00
racham%netscape.com
8f6655fb4a r=gayatrib. Fix for Bug 16414. If the profile dir is deleted it always gets rebuilt based on the path it gets from registry
git-svn-id: svn://10.0.0.236/trunk@52113 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 21:05:26 +00:00
dp%netscape.com
f2caaa1890 Converting to module. r=kipp
git-svn-id: svn://10.0.0.236/trunk@52112 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:59:49 +00:00
dp%netscape.com
b3499577af Convering to nsIModule. r=kipp
git-svn-id: svn://10.0.0.236/trunk@52111 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:57:29 +00:00
dp%netscape.com
da7c33e34c Remove delete on nsISupports. r=kipp
git-svn-id: svn://10.0.0.236/trunk@52110 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:44:45 +00:00
nhotta%netscape.com
b6d38ed4f7 Check input for the null pointer and empty string, bug 17287, r=ducarroz,jefft.
git-svn-id: svn://10.0.0.236/trunk@52109 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:41:45 +00:00
nisheeth%netscape.com
ce3c186894 r=nisheeth. Fix for bug 17237 from Rick Gessner (rickg@netscape.com). Thanks, Rick.
git-svn-id: svn://10.0.0.236/trunk@52108 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:40:08 +00:00
mscott%netscape.com
33fe7bdd57 Build new uri dispatching interfaces on the Mac.
git-svn-id: svn://10.0.0.236/trunk@52107 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:38:16 +00:00
mscott%netscape.com
1e3a7c2073 export uri dispatching interfaces.
git-svn-id: svn://10.0.0.236/trunk@52106 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:37:58 +00:00
despotdaemon%netscape.com
a82717bab8 Pseudo-automatic update of changes made by yueheng.xu@intel.com.
git-svn-id: svn://10.0.0.236/trunk@52105 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:34:51 +00:00
rods%netscape.com
189a26e941 Listboxes now obey CSS specifed sizes
r=kmcclusk,related to bug 16317


git-svn-id: svn://10.0.0.236/trunk@52104 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:31:23 +00:00
radha%netscape.com
ca4f530508 Fix for form values not maintained while going forward. bug # 16377. r=law
git-svn-id: svn://10.0.0.236/trunk@52103 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:29:43 +00:00
akhil.arora%sun.com
1aa54f66ab updated list of things todo, removing stuff that has been done
git-svn-id: svn://10.0.0.236/trunk@52102 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:28:20 +00:00
akhil.arora%sun.com
d6ca20f368 r=akhil.arora@sun.com By Igor Nekrestyanov <nis@sparc.spb.su>
Minor changes to handle unicode strings properly


git-svn-id: svn://10.0.0.236/trunk@52101 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:26:27 +00:00
sspitzer%netscape.com
3a3c45b57c fix warnings. r=valeski
git-svn-id: svn://10.0.0.236/trunk@52100 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:25:43 +00:00
kmcclusk%netscape.com
89bd3d196e Removed stray semi-colon after NS_DECL_ISUPPORTS bug=17235 r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52099 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:24:19 +00:00
alecf%netscape.com
5ecb0c11b3 prepare to consolidate server URI creation - create a new property of incoming servers, the local store type, and construct the URL from there.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@52098 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:22:06 +00:00
alecf%netscape.com
2e274875d3 more cleanup work - now retrieve the server at URI creation time, so that GetServer() is really fast, and just forward calls to GetUsername and GetPassword() to the server. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@52097 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:19:57 +00:00
terry%mozilla.org
7d80bedb81 Back out last change -- specific to mozilla.org, not to general consumers of bugzilla.
git-svn-id: svn://10.0.0.236/trunk@52096 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:18:03 +00:00
bienvenu%netscape.com
f488902f5d work on body filters and search r=mscott
git-svn-id: svn://10.0.0.236/trunk@52095 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:13:22 +00:00
valeski%netscape.com
b853096819 16968, r=gagan. Changed the way HTTP header notification occurs. now the channel does the notification. Also added SetREsponseHeaders() to the nsIHTTPChannel iface which allows outside users to add response headers (such as nsMultiMIMEConv/bugzilla) and have the new headers perculate to observers. also fixed HTTP handler leak, r=dp on that one.
git-svn-id: svn://10.0.0.236/trunk@52094 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:12:59 +00:00
endico%mozilla.org
9b799b1100 Try to herd netscape communicator users away from bugzilla. "if your browser has a blue N logo go report the bug to netscape". This wording may be wrong later on but it works for now.
git-svn-id: svn://10.0.0.236/trunk@52093 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 20:12:52 +00:00
mcafee%netscape.com
296f21777f Updating legend for C, bloaty stats.
git-svn-id: svn://10.0.0.236/trunk@52092 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 19:47:47 +00:00
varada%netscape.com
b921af7d24 fix for bug #12715 import feature for nci files
git-svn-id: svn://10.0.0.236/trunk@52091 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 19:26:35 +00:00
varada%netscape.com
7a333b1d09 fix for change in copydir function
git-svn-id: svn://10.0.0.236/trunk@52090 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 19:25:56 +00:00
warren%netscape.com
16156488f8 Enhanced delta report. Breakdown by what's new, what's changed, etc.
git-svn-id: svn://10.0.0.236/trunk@52089 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 18:57:37 +00:00
despotdaemon%netscape.com
04b5eac48c Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@52088 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 17:59:13 +00:00
norris%netscape.com
0d74bb8fa4 Fix spelling of contributor's name.
git-svn-id: svn://10.0.0.236/trunk@52087 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 17:43:43 +00:00
troy%netscape.com
aa66ccecfa Elimninated compiler warning
git-svn-id: svn://10.0.0.236/trunk@52086 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:46:41 +00:00
ftang%netscape.com
bd4b9fbaf5 fix two comment after brade review and point out my error in prev checkin. r=brade
git-svn-id: svn://10.0.0.236/trunk@52085 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:46:37 +00:00
troy%netscape.com
3cb8f38164 Eliminated compiler warning
git-svn-id: svn://10.0.0.236/trunk@52084 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:46:06 +00:00
troy%netscape.com
5149a61f62 Added more diagnostic code
git-svn-id: svn://10.0.0.236/trunk@52083 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:38:14 +00:00
kipp%netscape.com
1786d79429 bug=17320; Fixed a purify warning
git-svn-id: svn://10.0.0.236/trunk@52082 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:33:34 +00:00
ftang%netscape.com
85c96d612c move all end of line # comment to the previous line. Remove all end of line tab and whitespace. Need this to fix Trad Chinese IME. Somehow our property file reader do not treat # as start of comment in a key value pair line. r=brade
git-svn-id: svn://10.0.0.236/trunk@52081 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:28:22 +00:00
vidur%netscape.com
1173466bfc Added a version of window.close, which when alled from script that defers actual closure if it is invoked from the script context of the window itself. Fixes bug 15261. R=joki.
git-svn-id: svn://10.0.0.236/trunk@52080 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 14:12:56 +00:00
ftang%netscape.com
c3b0a312fc remove unnecessary #ifdef USE_XIM. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52079 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 13:16:07 +00:00
Jerry.Kirk%Nexwarecorp.com
4385e8d68e Call PtAppAddFd instead of PtAppAddFdPri because of redraw bugs it
was causing.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@52078 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 12:43:46 +00:00
dp%netscape.com
f06f488185 Removing use of mRefCnt directly. Also, removed all use of refcounted
variable as creations were always refcounted. r=kipp


git-svn-id: svn://10.0.0.236/trunk@52077 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 11:42:15 +00:00
srinivas%netscape.com
a6569800ce Include system files for BeOS; checkin for <duncan@be.com>.
git-svn-id: svn://10.0.0.236/trunk@52076 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 11:40:33 +00:00
rickg%netscape.com
7d94513269 fixed bug17387 (pre-constructing DTD's). r=warren
git-svn-id: svn://10.0.0.236/trunk@52075 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 09:26:19 +00:00
cmanske%netscape.com
450e220228 More changes to Composer for new skin (mostly new images).
git-svn-id: svn://10.0.0.236/trunk@52073 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 08:42:30 +00:00
warren%netscape.com
afff9da3ba Fixed bug in calculating leak total.
git-svn-id: svn://10.0.0.236/trunk@52072 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 08:35:53 +00:00
warren%netscape.com
4677dd631f Changed file transport to facilitate jar: protocol -- parameterized by nsIFileSystem. Bug#12579 r=gagan,gayatrib
git-svn-id: svn://10.0.0.236/trunk@52070 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 08:02:07 +00:00
rickg%netscape.com
b14a509c76 fixed bug17388, dtd leak; r=mscott
git-svn-id: svn://10.0.0.236/trunk@52069 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 07:53:21 +00:00
tbogard%aol.net
cd2764bb20 Changes made to reflect changes in nsIGenericWindow and nsIScrollable.
git-svn-id: svn://10.0.0.236/trunk@52068 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 07:52:08 +00:00
tbogard%aol.net
8e4af380cc Removed RemoveFocus() from nsIGenericWindow. Moved SizeToContent() to nsIHTMLDocShell. Added setCurScrollPosEx and setScrollRangeEx to nsIScrollable. Moved a bunch of code from nsHTMLDocShell into the base class. Commented out some stuff. Everything should compile now.
git-svn-id: svn://10.0.0.236/trunk@52067 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 07:51:10 +00:00
mscott%netscape.com
3587a59aa7 build mime before compose so we can make sure nsIMimeStreamConverter.idl has been exported
before compose IDL files try to use it.


git-svn-id: svn://10.0.0.236/trunk@52066 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 07:23:20 +00:00
dougt%netscape.com
32412a1f03 Fix for this mornings crasher (17352) r=pavlov, mscott
git-svn-id: svn://10.0.0.236/trunk@52065 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 06:44:36 +00:00
ducarroz%netscape.com
a282d4acf9 another Mac bustage fix. Caught before it appears
git-svn-id: svn://10.0.0.236/trunk@52064 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 06:01:43 +00:00
ducarroz%netscape.com
d4df792c85 Fix Mac bustage for mscott.
Add build instruction for mozilla:mailnews:mime:public:MANIFEST_IDL.


git-svn-id: svn://10.0.0.236/trunk@52063 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 05:45:22 +00:00
mscott%netscape.com
1bac65d756 Remove incorrect export of nsIMimeStreamConverter.idl
git-svn-id: svn://10.0.0.236/trunk@52062 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 05:42:15 +00:00
mscott%netscape.com
1b39aa1dd7 more work to try to fix the mac build.
git-svn-id: svn://10.0.0.236/trunk@52061 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 05:39:14 +00:00
ducarroz%netscape.com
eaa801e49e Fix for bug 17405. We need to skip entry that aren't valid during the search. R=mscott (he has also approved the fact I checking despite a red tree)
git-svn-id: svn://10.0.0.236/trunk@52060 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 05:34:07 +00:00
mscott%netscape.com
dbf6bce997 Fix windows build breakage. Try to build mime before compose so the IDL files
get exported first.


git-svn-id: svn://10.0.0.236/trunk@52058 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 05:08:36 +00:00
mscott%netscape.com
5c68fcaafc fix mac build by exporting nsIMimeStreamConverter.idl
git-svn-id: svn://10.0.0.236/trunk@52057 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:56:12 +00:00
waterson%netscape.com
31deb6a74d Unix filenames are case-sensitive.
git-svn-id: svn://10.0.0.236/trunk@52056 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:36:04 +00:00
mscott%netscape.com
888899af25 Bug #16927 --> when quoting a message, don't try to force a message URI into a protcol url. Convert the rdf uri
into a url and use that instead. For quoting the msg, use NS_NewChannel and AsyncOpen. some cleanup to fix
some ref counting stuff including supporting a new interface. Using the component manager
to create the quote listener instead of using new.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@52055 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:22:08 +00:00
mscott%netscape.com
1bc43aaac4 Use nsCOMPtr. Add nsIMsgQuoteListener support, remove some extra member variables that we didn't need.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@52054 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:21:30 +00:00
mscott%netscape.com
5daada9f2c Bug #16927 add nsIMsgQuoteListener interface
r=rhp


git-svn-id: svn://10.0.0.236/trunk@52053 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:21:02 +00:00
mscott%netscape.com
08f1d9c5a8 Bug #16927 --> add msg quote listener to module.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@52052 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:20:41 +00:00
mscott%netscape.com
3b5d377a59 Bug #16927 --> add class id for msg quote listener
r=rhp


git-svn-id: svn://10.0.0.236/trunk@52051 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:19:59 +00:00
karnaze%netscape.com
15d92465ad simplified caching of column frames. split out collapsing border processing into nsBorderCollapser (checked in previously). r=troy
git-svn-id: svn://10.0.0.236/trunk@52050 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:09:39 +00:00
karnaze%netscape.com
0ddb8bf0bc added files: mozilla/layout/html/table/src/nsTableBorderCollapser.cpp
git-svn-id: svn://10.0.0.236/trunk@52049 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 04:06:36 +00:00
karnaze%netscape.com
b363aea0eb new class for collapsing borders, extracted from nsTableFrame, r=troy
git-svn-id: svn://10.0.0.236/trunk@52045 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 03:51:55 +00:00
braddr%puremagic.com
d8fb5871d7 Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE in anticipation of nixing NS_COMFALSE in the near future.
r=scc


git-svn-id: svn://10.0.0.236/trunk@52044 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 03:16:48 +00:00
brendan%mozilla.org
da68e2dcd8 Fix bogus assertion (r=shaver@mozilla.org) found by chouck@geocast.com.
git-svn-id: svn://10.0.0.236/trunk@52043 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:50:15 +00:00
fur%netscape.com
50f46042f0 Removed unused variable declaration to eliminate warning
git-svn-id: svn://10.0.0.236/trunk@52042 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:48:32 +00:00
srinivas%netscape.com
bc406e3e1e Add PR_Block/Unblock_Interrupt functions. Bugzilla 17055
git-svn-id: svn://10.0.0.236/trunk@52041 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:48:01 +00:00
fur%netscape.com
dbcd581b59 Eliminated references to long-dead jsaddr.[ch].
Note: These files only used in standalone JS, not SeaMonkey build.


git-svn-id: svn://10.0.0.236/trunk@52040 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:45:01 +00:00
fur%netscape.com
e969fa7f4f Removed unused files - they have been dead for years
git-svn-id: svn://10.0.0.236/trunk@52039 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:42:49 +00:00
tbogard%aol.net
d9cd4dc3b8 Pushed many of the method implementations done by buster from nsHTMLDocShell into the base class.
git-svn-id: svn://10.0.0.236/trunk@52038 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:20:44 +00:00
mscott%netscape.com
5bfc03c26e part of url dispatching.
export the uri dispatching interfaces.
no reviewer for this makefile change.


git-svn-id: svn://10.0.0.236/trunk@52037 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 02:05:12 +00:00
danm%netscape.com
d5cb9410ae moving initial content focus from OnEndDocumentLoad to Show. Reinstating SetSizeFromXUL. reduces new window flashing and allows gtk windows to size from JS. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52036 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:52:49 +00:00
mscott%netscape.com
df0cb24c86 Checking this in for hangas. Fixes the grey menus in the compose window.
r=mscott


git-svn-id: svn://10.0.0.236/trunk@52035 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:52:13 +00:00
cmanske%netscape.com
c0c0bb47c7 Fixed bugs 16690, 16991. Also made UI changes to adjust for new 'skin' r=sfraser
git-svn-id: svn://10.0.0.236/trunk@52034 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:51:07 +00:00
nisheeth%netscape.com
151090fbb2 r=nisheeth. Fix for bug 9781 submitted by Johnny Stenbeck (jst@citec.fi). Thanks Johnny.
git-svn-id: svn://10.0.0.236/trunk@52033 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:50:37 +00:00
hangas%netscape.com
9c4609c831 Fixed throbber id, bug 17271. r=german
git-svn-id: svn://10.0.0.236/trunk@52032 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:44:29 +00:00
law%netscape.com
85c96d1199 Bug #14999; remove last vestiges of app core usage; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52031 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:41:16 +00:00
law%netscape.com
41c8a495f1 Bug #14999, removing last vestiges of app core usage; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52030 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:39:33 +00:00
nisheeth%netscape.com
f341433a7c r=dp. Fix for bug 17411. Commenting out the call to nsFrameManager::CantRenderReplacedElement for now. This should let us open up the tree while dp and pnunn figure out the right fix.
git-svn-id: svn://10.0.0.236/trunk@52029 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 01:20:34 +00:00
tbogard%aol.net
f996be0ecd Changed nativeWindow* parentNativeWindow back to nativeWindow parentNativeWindow.
git-svn-id: svn://10.0.0.236/trunk@52028 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 00:45:13 +00:00
despotdaemon%netscape.com
20ec29f713 Pseudo-automatic update of changes made by andreww@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@52027 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-28 00:11:01 +00:00
hoa.nguyen%intel.com
a56d99d249 Initialize cookie manager. Allows cgi scripts to set and retrieve cookies through viewer. r=edburns@acm.org
git-svn-id: svn://10.0.0.236/trunk@52026 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:58:49 +00:00
buster%netscape.com
1f5101db18 added a bunch of initial implementation. does not compile yet, but that's ok because docshell isn't part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@52025 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:50:19 +00:00
jfrancis%netscape.com
f4bfa77ae5 fix for 17056: making a list in empty doc didnt work; also making a new list item didn't work. r=floppy moose
git-svn-id: svn://10.0.0.236/trunk@52024 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:44:33 +00:00
sfraser%netscape.com
3b974396c6 Add the various menu-related arrow gifs. fixes bug 17368. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@52023 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:40:51 +00:00
jj%netscape.com
adfe3c048e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@52022 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:39:46 +00:00
putterman%netscape.com
7e1db2ef27 This should stop build bustage for clobber builds.
git-svn-id: svn://10.0.0.236/trunk@52021 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:39:15 +00:00
locka%iol.ie
74ff2dc2f4 Fixed some bugs in the copy to clipboard operation.
Control now calls NS_ShutdownXPCOM during destruction


git-svn-id: svn://10.0.0.236/trunk@52020 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:19:27 +00:00
locka%iol.ie
7eff36db02 Added a menu to the dialog.
Implemented tests for cut, copy, paste, select all


git-svn-id: svn://10.0.0.236/trunk@52019 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:17:51 +00:00
cata%netscape.com
1bb10c65f4 I'm checking in for momoi, r=cata, bug #17018, Charset Menu usability workaround.
git-svn-id: svn://10.0.0.236/trunk@52018 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:10:51 +00:00
ftang%netscape.com
657f0d5580 fix the delete last IME text problem. bug13494 . There are another fix in nsHTMLEditRules.cpp related this but I forget to put the bug # there. r=tague
git-svn-id: svn://10.0.0.236/trunk@52017 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:05:24 +00:00
troy%netscape.com
c96591767e b=6674, r=karnaze@netscape.com
Changed Paint() to set the clip rect only when the collapse offset isn't
(0, 0)


git-svn-id: svn://10.0.0.236/trunk@52016 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:01:21 +00:00
kipp%netscape.com
3a2fe236a8 r=troy; fixed bug #17346 - the nsTextFormatter self test code found a bug in the nsTextFragment ctor code...
git-svn-id: svn://10.0.0.236/trunk@52015 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:01:16 +00:00
hangas%netscape.com
5fb3a93517 Cleaned up bad style rules in global.css - should result in noticable performance improvement. Converted <titledbutton> rules to all use a class, this way we can be specific about how each type of button should look. Added line between columns in tree headers. Indented treecell contents. Cleaned up mail and AB toolbars. Fixed reflow and other drawing issues with toolbar buttons on new skins. Fixed problems in results tree on AB window. Other misc visual changes. Fixed bug 16530, changing the word Messenger to Mail. r=german/hyatt
git-svn-id: svn://10.0.0.236/trunk@52014 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 23:01:09 +00:00
cathleen%netscape.com
c249ccc29e adding missing editor chrome file to mac packaging list
git-svn-id: svn://10.0.0.236/trunk@52013 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:59:04 +00:00
ftang%netscape.com
c31d69ed3f add debugging code. fix remove last uncomited IMEText. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@52012 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:56:36 +00:00
akkana%netscape.com
018a1629cf 17305: Fix ? handling. Also add myself to a debug ifdef. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@52011 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:53:52 +00:00
tague%netscape.com
282a0d9dcf Fixed bug #16463 - can't create profile with Danish version of Mozilla. I modified the locale mapping code to correct a bug where DA was getting mapped to LANG_DUTCH. r=nhotta@netscape.com
git-svn-id: svn://10.0.0.236/trunk@52010 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:52:56 +00:00
bienvenu%netscape.com
d6e604a886 turn on date filters, r=mscott 10416
git-svn-id: svn://10.0.0.236/trunk@52009 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:45:18 +00:00
nisheeth%netscape.com
fa55e685cc r=pollmann, troy. Fix for bug 10564. Added some error checking code to prevent crashes reported on low memory configurations.
git-svn-id: svn://10.0.0.236/trunk@52008 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:45:05 +00:00
sdagley%netscape.com
41a1603c9d __MD_GetEnv now calls standard C's getenv if environment variable not in NSPR's table. r=beard
git-svn-id: svn://10.0.0.236/trunk@52007 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:44:48 +00:00
sspitzer%netscape.com
637de3c1b6 fix for #17285 and #17397. r=mscott.
properly migrate pop and nntp servers from 4.x that were not on the default ports (110 and 119, respectively).
also, set the default port pref to be -1, so that if we don't set the port, it gets set to -1.


git-svn-id: svn://10.0.0.236/trunk@52006 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:44:34 +00:00
morse%netscape.com
af16ae652b bug 17339, document.cookie throwing exception, r=neeti
git-svn-id: svn://10.0.0.236/trunk@52005 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:43:49 +00:00
rginda%ndcico.com
dece5d007f **NOT PART OF THE SEAMONKEY DEFAULT BUILD**
* xul/tests/test3-output-loud.css
Added css for "loud" style.

* xul/tests/blue_rock.gif
Added pic for new default style, from Eterm background collection.

* makefile.win, Makefile.in
Add blue_rock.gif to install files.

* js/lib/irc.js
Strip \r characters from input.

* xul/tests/index.html
Updated content.

* xul/tests/test3-handlers.js
Create userlist object onJoin if it isnt already there.

* xul/tests/test3-output-default.css
New default style.

* xul/tests/test3-static.js
Added irc.freei.net server to top of EFNet network.  This server does not
require the ident service, which is blocked by the NS firewall.

* xul/tests/test3.xul
Added "loud" style to menu (old default style.)


git-svn-id: svn://10.0.0.236/trunk@52004 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:42:47 +00:00
morse%netscape.com
cfdf03bc1a bug 17120, can't startup if cookie dll missing, r=valeski
git-svn-id: svn://10.0.0.236/trunk@52003 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:41:36 +00:00
putterman%netscape.com
32be2053bd Added nsIMsgWindow.idl and nsIMsgRDFDataSource.idl
git-svn-id: svn://10.0.0.236/trunk@52002 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:40:34 +00:00
putterman%netscape.com
dd42c6ee85 Added nsMsgWindow.cpp
git-svn-id: svn://10.0.0.236/trunk@52001 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:39:37 +00:00
morse%netscape.com
0eb9ff94e0 part of bug 8227, dereferencing problems, r=rickg
git-svn-id: svn://10.0.0.236/trunk@52000 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:38:48 +00:00
putterman%netscape.com
ff9a018c1e Started work on 17376. reviewed by bienvenu. create an object that knows about
mailnews window data and pass it through backend.


git-svn-id: svn://10.0.0.236/trunk@51999 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:38:47 +00:00
cathleen%netscape.com
59a2f543c7 adding missing editor chrome files
git-svn-id: svn://10.0.0.236/trunk@51998 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:35:37 +00:00
matt%netscape.com
e180142807 fix for bug 15169 r-morse
git-svn-id: svn://10.0.0.236/trunk@51997 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:33:35 +00:00
matt%netscape.com
5077a5368d 17218 r-mcafee
git-svn-id: svn://10.0.0.236/trunk@51996 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:31:58 +00:00
rogerl%netscape.com
2bfa05205d Changed commandline option for classpath to 'classpath' instead of 'cp'
git-svn-id: svn://10.0.0.236/trunk@51995 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:22:56 +00:00
bienvenu%netscape.com
f3513af6e6 fix a couple ref-counting problems on news dbs, reviewed last week by sspitzer
git-svn-id: svn://10.0.0.236/trunk@51994 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:19:42 +00:00
bienvenu%netscape.com
6b1312845e fix off by one error computing display name from naked email address
git-svn-id: svn://10.0.0.236/trunk@51993 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:18:12 +00:00
rogerl%netscape.com
f891c9ebb9 Error message for apply argument type
git-svn-id: svn://10.0.0.236/trunk@51992 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:17:44 +00:00
rogerl%netscape.com
f3ae1fcf7a ECMA handling of undefined args for call & apply.
git-svn-id: svn://10.0.0.236/trunk@51991 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:17:05 +00:00
rogerl%netscape.com
7a5d5c9ad9 Handle LINE & SOURCEFILE in dumpIcode
Fix bug in multiple try/catch clauses after a catch - the tryStackTop was
being decremented twice.


git-svn-id: svn://10.0.0.236/trunk@51990 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:16:15 +00:00
rogerl%netscape.com
a8627f0cf6 Handle missing arg in match_or_replace
git-svn-id: svn://10.0.0.236/trunk@51989 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:14:46 +00:00
bienvenu%netscape.com
6b7fd317c4 turn on history ab collection for msg sending r=jefft, bug 14447
git-svn-id: svn://10.0.0.236/trunk@51988 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:14:37 +00:00
rhp%netscape.com
e735146e7c Fix for Unicode quoting to plain text compose - Bug: 15465 r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@51987 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:11:51 +00:00
rogerl%netscape.com
89da4b6f9b ECMA specified handling of NaN inputs for max & min
git-svn-id: svn://10.0.0.236/trunk@51986 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:11:43 +00:00
rogerl%netscape.com
800a7e2800 Subsumed ConversionError into TypeError
git-svn-id: svn://10.0.0.236/trunk@51985 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:10:36 +00:00
mscott%netscape.com
e2730e12e8 Bug #17352 --> temporarily hide this crasher by inserting an extra
ref count of the event queue. this is horrible since we are introducing
a leak. we need to examine the ownership model of event queues for the app
shell. I'm going to get pavlov to help me look at fixing this bug for real.
r=dougt
a=gramps,granrose


git-svn-id: svn://10.0.0.236/trunk@51984 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 22:00:54 +00:00
dmose%mozilla.org
1710bfc387 updating license boilerplate in all files; checkin approved by leif@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51980 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 21:02:40 +00:00
braddr%puremagic.com
1dde1a4f56 Ooops.. tree closed, better back these out for now. Sorry.
git-svn-id: svn://10.0.0.236/trunk@51979 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 21:01:37 +00:00
larryh%netscape.com
dfb30043a3 BugZilla 17374. Add PROffset types
git-svn-id: svn://10.0.0.236/trunk@51978 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 20:29:22 +00:00
braddr%puremagic.com
7767d9393b Move all nsIEnumerator usage over to NS_ENUMERATOR_FALSE from NS_COMFALSE
in anticipation of nixing NS_COMFALSE in the near future.
r=scc (please contact him should there be any build issues)


git-svn-id: svn://10.0.0.236/trunk@51977 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 20:24:21 +00:00
bienvenu%netscape.com
642710bf52 fix race condition opening imap folder r=mscott, build stopper
git-svn-id: svn://10.0.0.236/trunk@51976 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 19:15:20 +00:00
kipp%netscape.com
0637f2c48a Backed out chris's accidental checkin (don't ask)
git-svn-id: svn://10.0.0.236/trunk@51973 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 15:57:35 +00:00
karnaze%netscape.com
03e8200f99 hello
git-svn-id: svn://10.0.0.236/trunk@51972 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 15:55:31 +00:00
vidur%netscape.com
48577bac14 Update mNumFlushed counts when we do a synchronous notification (in scripts, for example). This is so that a call to FlushTags while we're executing a script sees the context stack in an updated state. Fixes bug 14042. R=joki.
git-svn-id: svn://10.0.0.236/trunk@51971 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 14:03:15 +00:00
Jerry.Kirk%Nexwarecorp.com
a4c99c7c93 Finished implementing ListenToEventQueue.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@51970 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 11:36:21 +00:00
idk%eng.sun.com
3b03dc263a bugId 17329
Added PlugletSecurityContext class.
Set ProxyJNI security context to PlugletSecurityContext
(see 15902)


git-svn-id: svn://10.0.0.236/trunk@51969 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 09:33:06 +00:00
hyatt%netscape.com
a036d65c5c working on theme switching r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51966 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 09:24:23 +00:00
idk%eng.sun.com
ab0a4a932c bugId 17316
Added 4 demo pluglets
a = laa@sparc.spb.su
r = idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@51965 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 09:10:36 +00:00
nisheeth%netscape.com
cd137af4d4 Fix for bug 15633. Fixing build warning with the patch submitted by James Clark (jjc@jclark.com). r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@51964 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 07:39:57 +00:00
briano%netscape.com
3387e5dd13 Automated update
git-svn-id: svn://10.0.0.236/trunk@51962 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 07:15:10 +00:00
nisheeth%netscape.com
74d8a9e437 Added --enable-detec-webshell-leaks autoconf flag.
git-svn-id: svn://10.0.0.236/trunk@51961 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 07:14:42 +00:00
nisheeth%netscape.com
0ca61f6f5c Added --enable-detect-webshell-leaks autoconf flag.
git-svn-id: svn://10.0.0.236/trunk@51960 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 07:13:48 +00:00
mcafee%netscape.com
dc2ef44aa6 switching to absolute leak/bloat numbers.
git-svn-id: svn://10.0.0.236/trunk@51959 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 07:02:25 +00:00
rpotts%netscape.com
d54c2a54d9 bug #13054. r=mscott,warren. Reworked how data is written to the network. I consolidated the writing of nsIBufferInputStreams and nsIInputStreams and limited the amount of data being wrtten at once to MAX_IO_TRANSFER_SIZE...
git-svn-id: svn://10.0.0.236/trunk@51957 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:51:12 +00:00
mscott%netscape.com
26a5e7abea Bug #14928 --> url dispatching. Adding initial scaffolding for the uri dispatcher service.
(not part of the build yet)


git-svn-id: svn://10.0.0.236/trunk@51956 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:49:42 +00:00
rpotts%netscape.com
207123458e bug #16897. Consolidated the firing of OnStopRequest into the nsHTTPChannel. This is also called if a transport fails to be created...
git-svn-id: svn://10.0.0.236/trunk@51955 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:48:53 +00:00
sfraser%netscape.com
e025da23ff Ooops, maybe we do need one of those paths after all. r=floppy
git-svn-id: svn://10.0.0.236/trunk@51954 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:48:35 +00:00
mscott%netscape.com
c438ffca68 added a url dispatching comment.
git-svn-id: svn://10.0.0.236/trunk@51953 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:48:19 +00:00
sfraser%netscape.com
5258fa6070 Another teeny project fix -- remove obsolete lib/xp paths in the two static targets (which are not built anyway). r=moose
git-svn-id: svn://10.0.0.236/trunk@51952 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:44:44 +00:00
sfraser%netscape.com
f825fcb394 Fix the output file (RDF.header -> chrome.headers) so that .h file generation dependencies work properly. Fixes the red tree. r=mscott
git-svn-id: svn://10.0.0.236/trunk@51951 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:42:07 +00:00
rpotts%netscape.com
072f7a0e0b These are pollmanns changes for bug #8209 and other related POSTing bugs r=rpotts
git-svn-id: svn://10.0.0.236/trunk@51950 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:35:03 +00:00
mcafee%netscape.com
f3b4ca8e81 switching to absolute leak/bloat numbers.
git-svn-id: svn://10.0.0.236/trunk@51949 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:34:28 +00:00
sfraser%netscape.com
e48c7f6f32 Really change to using the NSComponent library. the opt target still had NSStartup. r=moose.
git-svn-id: svn://10.0.0.236/trunk@51948 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 06:31:40 +00:00
pavlov%netscape.com
30d2acfd1b check for null r=alecf
git-svn-id: svn://10.0.0.236/trunk@51944 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 05:51:05 +00:00
putterman%netscape.com
6263816942 Fix for 17277. reviewed by mscott. Delete selects next message instead of previous.
git-svn-id: svn://10.0.0.236/trunk@51942 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 04:46:12 +00:00
bienvenu%netscape.com
226d2a5c5f add accessor for load group on doc loader r=rpotts
git-svn-id: svn://10.0.0.236/trunk@51941 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 04:44:42 +00:00
troy%netscape.com
fd1d6fc2a3 Changed view to be stored as a frame property instead of a member data
of nsFrame


git-svn-id: svn://10.0.0.236/trunk@51940 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 03:56:14 +00:00
mccabe%netscape.com
f192186834 Undo overly-hasty backout. This reinstates part of my recent checkin.
git-svn-id: svn://10.0.0.236/trunk@51939 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 03:44:38 +00:00
saari%netscape.com
a9ec68967c Making popups not steal activation on MacOS. r: pinkerton, no bug number that I'm aware of
git-svn-id: svn://10.0.0.236/trunk@51938 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 03:32:35 +00:00
tbogard%aol.net
1d0ea94a3d Create an initialization structure to hold data until window created. Added a lot of implementation for many of the accessors. Filled in a lot of other first cut implementation.
git-svn-id: svn://10.0.0.236/trunk@51936 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:45:49 +00:00
tbogard%aol.net
144854adac For some reason to get an nsRect implementation you have to link with gfx. Yeah, that's componentized!
git-svn-id: svn://10.0.0.236/trunk@51935 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:44:49 +00:00
beard%netscape.com
98fb6ecb62 make warnings not terminate build. fix bustage, r=mccabe
git-svn-id: svn://10.0.0.236/trunk@51934 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:44:34 +00:00
tbogard%aol.net
d23ee135fa Boundary checking.
git-svn-id: svn://10.0.0.236/trunk@51933 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:44:01 +00:00
tbogard%aol.net
7c66962d85 A little more documentation.
git-svn-id: svn://10.0.0.236/trunk@51932 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:43:37 +00:00
hyatt%netscape.com
4639154a7f making the chrome registry work with dynamic overlays r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51931 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 02:21:05 +00:00
mccabe%netscape.com
8522d5db78 Debust mac-specific \r-related tree breakage.
git-svn-id: svn://10.0.0.236/trunk@51927 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 01:28:59 +00:00
troy%netscape.com
c04dab44f6 Change to some assertions in debug mode
git-svn-id: svn://10.0.0.236/trunk@51925 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:53:15 +00:00
mccabe%netscape.com
cde9269c1b Various fixes to xpidl. Note that this checkin will cause a rebuild of everything that depends on nsISupports.h. Fixes courtesy Mike Shaver, with small tweaks by McCabe. r=shaver, r=mccabe.
- Fix to bug 17013; have xpidl produce an error when encountering a native declaration without an associated (c++-name).

- remove many DEBUG_shaver lines.

- provide xpidl_tree_warning as a fallback for libIDL versions for which IDL_tree warning is bad, and NULL-proof our message callback function.  Also remove a 1k buffer limit from the message callback function.

- make enum in IDL files an error.  We don't support it, and love consts instead.

- Fix to 12684; don't allow [retval] parameter + return or multiple [retval] parameters.

- Fix to 13390; make non-{short,long} const a fatal error.


git-svn-id: svn://10.0.0.236/trunk@51924 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:37:39 +00:00
hangas%netscape.com
825694f714 Fixed the order of the stop and reload buttons on the browser. r=german
git-svn-id: svn://10.0.0.236/trunk@51923 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:17:16 +00:00
ftang%netscape.com
94bc1e8092 add debugging code. change code so we won't call MapDBCSAttributeArrayToUnicodeOffsets when we are not composition. Sent length == 0 TextEvent if we got nothhing in IME_COMPOSITION. This is needed to delete the last unconverted text in IME. r=tague
git-svn-id: svn://10.0.0.236/trunk@51922 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:14:46 +00:00
ftang%netscape.com
1a8b9b5ddb implement input method highlight. r=tague
git-svn-id: svn://10.0.0.236/trunk@51921 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:10:03 +00:00
jj%netscape.com
e14a41074a workaround to accept wildcards on Mac -- granrose. r=jj
git-svn-id: svn://10.0.0.236/trunk@51918 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-27 00:03:54 +00:00
rods%netscape.com
beb6aa3e8b At kipp's suggestion I added a EnterReflowLock before and a ExitReflowLock
after my AppendReflowCommand. The reflow command gets "kicked off"
and it is now fixed. r=kipp, b=14771


git-svn-id: svn://10.0.0.236/trunk@51916 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:34:46 +00:00
sspitzer%netscape.com
71d282e592 fix for #17212, r=mscott.
migrate imap servers that have the port in the name (like nsmail-2:143)


git-svn-id: svn://10.0.0.236/trunk@51915 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:34:30 +00:00
rods%netscape.com
d8ca5cd972 removed an unused variable and an extra decl and call to remove two warnings
r=none


git-svn-id: svn://10.0.0.236/trunk@51914 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:28:51 +00:00
mccabe%netscape.com
2cdb9d67e3 Fix IDL to use native <idl-name>(<C++-name>); instead of just native <idl-name>; This is prep to make the tree compile with a new error mode landing in xpidl shortly.
Preperatory to a fix to 17013; I'm doing this as a separate checkin to avoid any checkin-skew danger.

r=shaver.


git-svn-id: svn://10.0.0.236/trunk@51913 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:26:28 +00:00
rods%netscape.com
bdb148b62f changed param in the initializer to aContent instead of nsnull
r=kmcclusk,b=17015


git-svn-id: svn://10.0.0.236/trunk@51912 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:21:14 +00:00
gagan%netscape.com
22e24a8da0 Fixed bugs 11677 (perf) 13837 (spaces) 14380 (leading spaces) 14707 (-1) 15069 (file://) r=valeski
git-svn-id: svn://10.0.0.236/trunk@51911 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:16:34 +00:00
cmanske%netscape.com
3054ed7de9 Fixed bugs 6278, 9758, 17014, 17071, 17160. r=sfraser,mjudge
git-svn-id: svn://10.0.0.236/trunk@51910 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:13:00 +00:00
mcafee%netscape.com
214b95844f Clear alarm from AliveTest, this was causing alternating green/orange status. Thanks to alecf/slamm for debugging help.
git-svn-id: svn://10.0.0.236/trunk@51909 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:10:35 +00:00
cmanske%netscape.com
f92e65e679 Part of fix for 17160, remove TextEditor from Tasks menu. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@51908 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:07:41 +00:00
rhp%netscape.com
013f4b1591 Cleaning up some comments.
git-svn-id: svn://10.0.0.236/trunk@51907 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 23:06:27 +00:00
tbogard%aol.net
bb01dd252a Implemented the Destroy() method.... Which basically boils down to us returning out that we don't support the method. :)
git-svn-id: svn://10.0.0.236/trunk@51905 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:59:33 +00:00
wtc%netscape.com
f6437b73b9 Bugzilla bug #17188: NSPR should not automatically set the SO_KEEPALIVE
socket option on a new TCP socket. The HAVE_SOCKET_KEEPALIVE macro is
obsolete. r=srinivas@netscape.com.
Modified files: _beos.h, _os2.h, _unixos.h, _win16.h, _win95.h, _winnt.h,
prsocket.c, and ptio.c.


git-svn-id: svn://10.0.0.236/trunk@51902 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:58:55 +00:00
tbogard%aol.net
9e1e7d7a18 Implemented a number of methods for the doc shell attributes. Setup and Init structure which is used to accept the settings of attributes until Create() is called.
git-svn-id: svn://10.0.0.236/trunk@51900 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:56:59 +00:00
rhp%netscape.com
428cbd6498 Update changes for Mac project...again
git-svn-id: svn://10.0.0.236/trunk@51898 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:56:18 +00:00
tbogard%aol.net
0701f384c9 Updated some of the documentation.
git-svn-id: svn://10.0.0.236/trunk@51895 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:54:26 +00:00
rhp%netscape.com
3aa41ccbdf Update changes for Mac project
git-svn-id: svn://10.0.0.236/trunk@51894 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:47:55 +00:00
norris%netscape.com
0949cbb8b9 Fix 16836 "Security error accessing DOM elements inside an IFrame"
r=vidur@netscape.com
Also, bug 16536 "Security disallows opening resource URL" no longer occurs after this fix.


git-svn-id: svn://10.0.0.236/trunk@51893 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:45:32 +00:00
rhp%netscape.com
0d96648b4a Changes for better text display and format flowed - Bug #16507 - r: rhp since this is externally contributed
git-svn-id: svn://10.0.0.236/trunk@51892 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:43:25 +00:00
pinkerton%netscape.com
ae7c4c1605 File Removed.
git-svn-id: svn://10.0.0.236/trunk@51891 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:38:54 +00:00
pinkerton%netscape.com
884c5020ad use new chrome idl project instead of generated header file (r=hyatt).
git-svn-id: svn://10.0.0.236/trunk@51890 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:38:40 +00:00
pinkerton%netscape.com
3ef9a724a2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51889 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:37:45 +00:00
slamm%netscape.com
50be5003d6 Add entity for bookmarks menu on personal toolbar
git-svn-id: svn://10.0.0.236/trunk@51888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:10:15 +00:00
varada%netscape.com
2c49380653 fixes for bug #8977 9097
git-svn-id: svn://10.0.0.236/trunk@51887 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:07:57 +00:00
valeski%netscape.com
89e72a3976 fixing bustage
git-svn-id: svn://10.0.0.236/trunk@51886 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 22:07:50 +00:00
jj%netscape.com
699e8eca27 File Removed.
git-svn-id: svn://10.0.0.236/trunk@51885 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:53:43 +00:00
dougt%netscape.com
d11e61e41f People will not like to see my debugging info about object retention. Remov
ing #define.


git-svn-id: svn://10.0.0.236/trunk@51884 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:44:02 +00:00
brade%netscape.com
f6a4506783 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51883 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:27:05 +00:00
terry%mozilla.org
02502d0c41 Fixed perl warning.
git-svn-id: svn://10.0.0.236/trunk@51882 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:14:01 +00:00
varada%netscape.com
abe68f9fc4 fixing string.ini for online help from show example
git-svn-id: svn://10.0.0.236/trunk@51881 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:13:16 +00:00
varada%netscape.com
c1d12e4258 fixing checklist.ini for online help
git-svn-id: svn://10.0.0.236/trunk@51880 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:12:56 +00:00
varada%netscape.com
ff6e49dbb9 fix for bug#10810 if Help=Online;url is included in the ini file then the online help is launched with that url
git-svn-id: svn://10.0.0.236/trunk@51879 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 21:10:39 +00:00
valeski%netscape.com
f94df2ee59 17270, r=dougt@netscape.com. These changes move FTP from interface pointers to COMptrs. There is also a variable name change, mUrl -> mURL. Also some extraneous pipe code has been removed.
git-svn-id: svn://10.0.0.236/trunk@51878 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:55:50 +00:00
mstoltz%netscape.com
c48a5396a0 Fixed Windows breakage from converting const nsZIpItem* to nsZipItem*. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@51877 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:45:21 +00:00
mscott%netscape.com
a29d572364 Bug #14928 -- > url dispatching. Change DoContent to return a stream listener instead of
a nsIContentViewer.
r=travis


git-svn-id: svn://10.0.0.236/trunk@51876 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:35:21 +00:00
rogerl%netscape.com
1aa494ee2b Changed from pic to PIC for Solaris build per Vishy.
git-svn-id: svn://10.0.0.236/trunk@51875 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:34:55 +00:00
pinkerton%netscape.com
9cbdc1b888 add case for unicode flavor, which i guess was forgotten before. now apps that request unicode get unicode. bug# 16267 r=hyatt/pav. thanks to VYV03354@nifty.ne.jp for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@51874 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:33:30 +00:00
pinkerton%netscape.com
3490b579c3 Cleaned up the code and fixed a bug where data was not being null terminated on winNT.
partial fix for bug #16267 (r=hyatt/pav).


git-svn-id: svn://10.0.0.236/trunk@51873 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:31:54 +00:00
ftang%netscape.com
4c6ccd7e59 change #ifdef DEBUG_tague to #if defined(DEBUG_tague) || defined(DEBUG_ftang)
git-svn-id: svn://10.0.0.236/trunk@51872 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:17:36 +00:00
nhotta%netscape.com
643eb34912 Unicode encoder related change for unmapped characters.
If unicode encoder cannot map a character to the target encoding, it returns used unicode length including the unmapped character.
That is true for all encoder except ISO-2022-JP (bug #15706). Changed the callers to match the encoder behavior. bug 8865, r=cata.


git-svn-id: svn://10.0.0.236/trunk@51871 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:16:11 +00:00
ftang%netscape.com
a72076d654 fix IME assertion problem . r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@51870 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 20:04:47 +00:00
putterman%netscape.com
8189fffdfb No bug. reviewed by bienvenu. OnKeyDeleted wasn't sending the correct parent
thread value because the message was being deleted before we saved off the parent.


git-svn-id: svn://10.0.0.236/trunk@51869 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:52:20 +00:00
slamm%netscape.com
861592dd89 Tweak sidebar styles. r=german.
git-svn-id: svn://10.0.0.236/trunk@51868 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:45:25 +00:00
dougt%netscape.com
f769dc5560 merging FILESEP and DIRECTORY_SEPARATOR. they both do the same thing.
git-svn-id: svn://10.0.0.236/trunk@51867 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:45:18 +00:00
slamm%netscape.com
595ab124a0 Use real separator on personal toolbar menus. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51866 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:44:22 +00:00
slamm%netscape.com
7d6ce80686 Add bookmarks button (bug #14502) to personal toolbar. Fix spacing of buttons on personal toolbar. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51865 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:43:32 +00:00
mstoltz%netscape.com
ea05167e43 Added GetInputStream function to nsJAR in order to extract files into memory rather than to disk. Created nsJARInputStream to carry this data. Most of the code for this change went into nsZipArchive, which now handles either file output or output to memory. bug=16077 r=dveditz
git-svn-id: svn://10.0.0.236/trunk@51864 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:43:26 +00:00
dougt%netscape.com
94bbe207a4 Cleanup.
Removing convertTo* routines

Not hooked up to build yet.


git-svn-id: svn://10.0.0.236/trunk@51863 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:34:56 +00:00
dougt%netscape.com
c10be2aa21 1) Change ownership model internally. (17009)
2) Fixed IMAP password dialog problems by adding a PR_SLEEP() in
   nested event loop.
3) Now using a pushed event loop.

r=valeski, mscott.


git-svn-id: svn://10.0.0.236/trunk@51862 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:30:50 +00:00
valeski%netscape.com
6f9e12e047 17144. api change to nsIIOService.idl made last night missed the javascript caller in here
git-svn-id: svn://10.0.0.236/trunk@51861 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:08:10 +00:00
nhotta%netscape.com
b6cdf6cb47 Added charset propertiy files so the charset conversion to work properly (for win and mac, unix didn't have the problem), 17254, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@51860 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 19:06:41 +00:00
jfrancis%netscape.com
bb138b3c5c reworking editor IME supoprt; r=kin; bugs: 13576, 11878, 11994, 13494, 16432
git-svn-id: svn://10.0.0.236/trunk@51859 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 18:54:47 +00:00
rhp%netscape.com
b4e2e646cf Just adding new files...NOT PART OF THE BUILD!
git-svn-id: svn://10.0.0.236/trunk@51858 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 18:50:08 +00:00
despotdaemon%netscape.com
cceb1924b6 Pseudo-automatic update of changes made by mcs@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@51857 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 17:55:28 +00:00
norris%netscape.com
e544596aa2 Remove method duplication in NativeGlobal.
Add javadoc comments to EcmaError.


git-svn-id: svn://10.0.0.236/trunk@51856 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 17:22:23 +00:00
norris%netscape.com
9be2ae4e35 Get filename and line number into uncaught exception reports.
git-svn-id: svn://10.0.0.236/trunk@51855 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 17:06:12 +00:00
slamm%netscape.com
0f3c71a001 Need path to gunzip. This should be configured.
git-svn-id: svn://10.0.0.236/trunk@51854 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 16:56:00 +00:00
terry%mozilla.org
4f2f6dae6d Update version to 1.3 (which means unstable, tip-of-CVS version).
git-svn-id: svn://10.0.0.236/trunk@51853 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 15:49:58 +00:00
terry%mozilla.org
8f7faa2f78 Fixed perl error caused by previous change.
git-svn-id: svn://10.0.0.236/trunk@51852 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 15:48:25 +00:00
terry%mozilla.org
abfa77727b Make version number be 1.2, we will be spinning a tarball.
git-svn-id: svn://10.0.0.236/trunk@51850 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 15:37:12 +00:00
vidur%netscape.com
1291c59ad4 Replaced delete operator calls with Recycle(). R=joki
git-svn-id: svn://10.0.0.236/trunk@51849 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:56:41 +00:00
vidur%netscape.com
252d9255a6 Switched HTML content sink to be more incremental in content creation. Fixes bugs 11141, 854, et. al. R=kipp
git-svn-id: svn://10.0.0.236/trunk@51848 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:55:51 +00:00
dcone%netscape.com
73c37400ce Added a clip for the borders and fixed how they are rendered. r=karnaze
bugs:10311,8737,14566


git-svn-id: svn://10.0.0.236/trunk@51847 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:34:17 +00:00
rods%netscape.com
e181f8b3fa addedmore tests
git-svn-id: svn://10.0.0.236/trunk@51846 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:16:15 +00:00
rods%netscape.com
6c5ee72d6b initial add
git-svn-id: svn://10.0.0.236/trunk@51845 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:15:51 +00:00
rods%netscape.com
aaced0b882 The button "active" state needed one more pixel width in the border
r=dcone,b=17154


git-svn-id: svn://10.0.0.236/trunk@51844 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 14:05:49 +00:00
warren%netscape.com
7230bc55ee Fixed NewChannel to pass null for new originalURL argument.
git-svn-id: svn://10.0.0.236/trunk@51843 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 10:37:37 +00:00
hyatt%netscape.com
2d7de08a49 more stubbing out of dynamic overlays r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51842 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 10:03:13 +00:00
tbogard%aol.net
ca83b4534f Added a CanHandleContentType to identify if a given instantiated docShell can handle the requested document type.
git-svn-id: svn://10.0.0.236/trunk@51841 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 09:51:36 +00:00
warren%netscape.com
b9f22ce6f8 Fixed missed change to NewInputStreamChannel
git-svn-id: svn://10.0.0.236/trunk@51840 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 09:51:01 +00:00
warren%netscape.com
fe1c294273 Added nsIChannel::GetOriginalURI so that we can get back to the original chrome file (bug#17144). r=rpotts,mscott
git-svn-id: svn://10.0.0.236/trunk@51839 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 09:16:24 +00:00
endico%mozilla.org
7ecb2f45fd make the grep for server error not so noisy 2>&1
git-svn-id: svn://10.0.0.236/trunk@51838 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 08:37:07 +00:00
hyatt%netscape.com
1ca2484933 change from strings to URIs r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51837 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 08:21:32 +00:00
hyatt%netscape.com
f54d64efad stubbing out dynamic overlay loading and converting chrome registry to IDL r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51836 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 08:13:25 +00:00
mscott%netscape.com
2e56fd5c66 Bug #14928 --> url dispatching. convert nsIContentHandler.idl, nsIURIDispatcher.idl and nsIContentListener.idl
into .h files.
no reviewer yet. the code review for url dispatching will come later.


git-svn-id: svn://10.0.0.236/trunk@51835 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 07:11:44 +00:00
mscott%netscape.com
bd9b666efc Bug #14928 --> first pass at several key interfaces for url dispatching.
Not part of the build and no reviewer yet. The review will come later on when we review url dispatching


git-svn-id: svn://10.0.0.236/trunk@51834 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 07:10:27 +00:00
slamm%netscape.com
a174cc125d New sidebar ui. One panel open at a time. No bug (yet...). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51832 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 05:46:00 +00:00
ramiro%fateware.com
2f58cc8fd3 Fix the invocation of regxpcom.
git-svn-id: svn://10.0.0.236/trunk@51831 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 05:42:33 +00:00
rpotts%netscape.com
58b6be1d08 Cleanup - changed setter/getter methods to an attribute.
git-svn-id: svn://10.0.0.236/trunk@51830 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:49:56 +00:00
rpotts%netscape.com
4c6919a678 Added CancelPendingChannel(...) which allows a nsHTTPChannel to remove itself from the list of pending requests if it is cancelled... This was causing a leak :-(
git-svn-id: svn://10.0.0.236/trunk@51829 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:49:23 +00:00
rpotts%netscape.com
1d93a7a7ae Cleanup - Moved the PostData stream from the nsHTTPChannel to the nsHTTPRequest... The PostStream is now released once the request has been sent to the server since it is no longer useful. Fixed up Cancel to remove the channel from the list of pending requests if necessary.
git-svn-id: svn://10.0.0.236/trunk@51828 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:48:26 +00:00
rpotts%netscape.com
dc04d4b53b Cleanup - Removed NSPIPE2 ifdefs. Fixed up the nsHTTPResponse constructor which no longer takes a nsIInputStream.
git-svn-id: svn://10.0.0.236/trunk@51827 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:45:03 +00:00
troy%netscape.com
bd46e7911f Changed SetView/GetView to take an additional argument which is the
pres context


git-svn-id: svn://10.0.0.236/trunk@51822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:44:41 +00:00
rpotts%netscape.com
a3b472c211 Cleanup - Removed unused methods and members. Changed char* member to nsCString
git-svn-id: svn://10.0.0.236/trunk@51821 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:43:19 +00:00
rods%netscape.com
3c48aa841c minor changes to previous checkin to handle css sizing like NavQuirks
b=6695,r=none


git-svn-id: svn://10.0.0.236/trunk@51820 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:29:20 +00:00
mcafee%netscape.com
3b76676f40 Moved process killing stuff into killproc(), added alarm timeout for bloattest. code=alecf, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@51819 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 04:07:03 +00:00
rods%netscape.com
8aef13e868 Completely rewrote the the Reflow for gfx text controls, factored out separate
reflow paths for NavQuirks and Standard mode. Also, Standard mode reflow now obeys
cols rows etc. Although there may be a little code bloat, this will make maintaining
the input text and textarea much much easier.
r=kmcclusk, b=6695,7461


git-svn-id: svn://10.0.0.236/trunk@51818 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 03:46:18 +00:00
pollmann%netscape.com
052a729260 Bug 17079: URL encoding of form element values should convert + to %2B and / as needed: r=nisheeth
git-svn-id: svn://10.0.0.236/trunk@51817 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 03:08:17 +00:00
morse%netscape.com
4b5a4b8e5d code cleanup, r=rickg
git-svn-id: svn://10.0.0.236/trunk@51816 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:46:34 +00:00
nisheeth%netscape.com
aea3ade8fe Follow-up to fix for bug 10456. I made the earlier changes to the non-Necko part of the code! Making the same changes to the ifdef NECKO part.
git-svn-id: svn://10.0.0.236/trunk@51815 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:42:23 +00:00
tbogard%aol.net
2e96f47e2e Changed nsIProgress::addListener and nsIWebBrowser::addListener to be addProgressListener and addWebBrowserListener respectively. This is to avoid confusing name conflicts. Implemented nsIWebBrowser::GetDocument() and nsIWebBrowser::GetDocShell().
git-svn-id: svn://10.0.0.236/trunk@51814 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:37:14 +00:00
tbogard%aol.net
254fe24a86 Removed nsIWebBrowserListener in favor of the new more generic nsIInterfaceRequestor. Added some interface boundary parameter validation. Added implementation for add and remove listener.
git-svn-id: svn://10.0.0.236/trunk@51813 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:26:57 +00:00
tbogard%aol.net
566e36cc10 Added some documentation.
git-svn-id: svn://10.0.0.236/trunk@51812 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:23:38 +00:00
sgehani%netscape.com
499a258aa7 Fixes bug 11209: we now detect free space larger than 2^32 bytes in the Install Wizard. [r=cathleen]
git-svn-id: svn://10.0.0.236/trunk@51811 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:12:00 +00:00
sgehani%netscape.com
95d88cbf7b Fixes bug 17190: extract only core_*/* files to obtain the XPInstall engine run by the Install Wizard. [r=cathleen]
git-svn-id: svn://10.0.0.236/trunk@51810 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:08:56 +00:00
wtc%netscape.com
f8f5eb822d Added missing function declarations to eliminate compiler warnings.
Checked in on behalf of Colin Blakes <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@51809 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 02:01:38 +00:00
nisheeth%netscape.com
aef9243c78 Bugs 10456, 15027, 11948. r=harishd. We no longer try to load up external DTD files unless those DTD files are referred to via a chrome url.
git-svn-id: svn://10.0.0.236/trunk@51808 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:58:41 +00:00
wtc%netscape.com
be5e5badd8 Bugzilla bug #17184: PR_Bind should not set the SO_REUSEADDR socket
option.  The HAVE_SOCKET_REUSEADDR macro is now obsolete.  Tests
that depended on the old PR_Bind behavior needs to call PR_SetSocketOption
before PR_Bind.
Modified files: _beos.h, _os2.h, _unixos.h, _win16.h, _win95.h, _winnt.h,
prsocket.c, ptio.c, accept.c, acceptread.c, sel_spd.c, servr_kk.c,
servr_ku.c, servr_uk.c, and servr_uu.c.


git-svn-id: svn://10.0.0.236/trunk@51807 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:58:10 +00:00
pavlov%netscape.com
bca7914d4c merge some changes that got dropped somehow during the landing r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51806 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:54:39 +00:00
tbogard%aol.net
67f77212c6 Updated to use new nsDocShellBase class. Removed a bunch of code from this level so it instead can be pulled from the base class.
git-svn-id: svn://10.0.0.236/trunk@51802 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:46:22 +00:00
tbogard%aol.net
2541c54b1d Added basedocshell library to the list of bound libraries.
git-svn-id: svn://10.0.0.236/trunk@51801 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:45:11 +00:00
tbogard%aol.net
97c0df855a Created a base class library that will provide the shared docShell implmentation.
git-svn-id: svn://10.0.0.236/trunk@51800 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:44:00 +00:00
slamm%netscape.com
10813277ec Fix typo.
git-svn-id: svn://10.0.0.236/trunk@51799 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:40:23 +00:00
tbogard%aol.net
04e0ba7204 added files: mozilla/xpcom/base/nsIInterfaceRequestor.idl
git-svn-id: svn://10.0.0.236/trunk@51798 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:37:45 +00:00
tbogard%aol.net
67b737d3e4 Adding nsIInterfaceRequestor.idl to the list of built IDL files.
git-svn-id: svn://10.0.0.236/trunk@51797 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:37:29 +00:00
waqar%netscape.com
17e91e8ab8 # 15904
r vidur
d fixes a problem where first character of the comment was being destroyed.


git-svn-id: svn://10.0.0.236/trunk@51796 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:30:55 +00:00
edburns%acm.org
4dcff0c574 r=edburns@acm.org
author=idk@eng.sun.com
#16149
approver=edburns@acm.org


git-svn-id: svn://10.0.0.236/trunk@51795 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:29:09 +00:00
mccabe%netscape.com
0683dd99f5 Initial checkin of mozbot code-reviewing functionality.
git-svn-id: svn://10.0.0.236/trunk@51794 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:22:00 +00:00
Jerry.Kirk%Nexwarecorp.com
d6610d45df Trying to fix complex clipping to reduce redraws in apprunner.
Also fixed key handling for CTRL-keys.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@51793 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 01:13:20 +00:00
scc%netscape.com
6f74b3fb2f Don't |delete| interface pointers. Use |AddRef()| and |Release()| instead. Bug #16762, r=pinkerton.
git-svn-id: svn://10.0.0.236/trunk@51792 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:49:33 +00:00
Jerry.Kirk%Nexwarecorp.com
18c97ff34d Fixing problem with &nbsp; being put into empty text fields
This is relly more of a hack, not a fix.
Bug 16886	r=kedl


git-svn-id: svn://10.0.0.236/trunk@51791 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:45:24 +00:00
Jerry.Kirk%Nexwarecorp.com
b7f540b9f2 Pulling out changes that made nsAppShell inherit from nsIObserver
that danm thought I should make cause he changed his mind.
r=kedl


git-svn-id: svn://10.0.0.236/trunk@51790 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:42:08 +00:00
hangas%netscape.com
08883ca9a8 new ui. r=pavlov,german,hyatt
git-svn-id: svn://10.0.0.236/trunk@51789 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:39:19 +00:00
sgehani%netscape.com
7eccb655b3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51788 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:35:41 +00:00
sgehani%netscape.com
bf1287cb0c *** NOT PART OF BUILD ***
Added ASEncoder tool -- AppleSingle encoder and decoder -- with two interfaces: 

1> Menu and file selector based GUI
2> AppleScript interface (or callable from any OSA compliant scriptable component)

Fixes bug: 16947.


git-svn-id: svn://10.0.0.236/trunk@51787 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:34:40 +00:00
pinkerton%netscape.com
a5ef534d81 fix leak of grippy structs when toolbox went away. (r=bienvenu).
git-svn-id: svn://10.0.0.236/trunk@51786 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:22:48 +00:00
ducarroz%netscape.com
6d43e18270 Checking it again as for reason, the file I've checked in last time is corrupted.
git-svn-id: svn://10.0.0.236/trunk@51785 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:16:33 +00:00
jefft%netscape.com
002757422d fixed bug 17176 -- [DOGFOOD] [Reqression] Can't save attachment; we are not generating message uri correctly; r=mscott
git-svn-id: svn://10.0.0.236/trunk@51784 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-26 00:07:27 +00:00
bienvenu%netscape.com
b361c28994 turn off meteors and spinning barber pole for now r=mscott
git-svn-id: svn://10.0.0.236/trunk@51783 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:45:19 +00:00
ssu%netscape.com
719cf747d3 updated/added/removed install error values to accomodate the fileop
routines checked in over the weekend. r=sgehani.


git-svn-id: svn://10.0.0.236/trunk@51782 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:44:09 +00:00
ducarroz%netscape.com
e45bf9a654 Fix build bustage for nhotta
git-svn-id: svn://10.0.0.236/trunk@51781 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:29:24 +00:00
nhotta%netscape.com
bcc540225b Changed unicode conversion for mail send.
Added a fallback for unmapped characters, moved entity conversion after the unicode conversion as the fallback, avoided to convert twice for text/html case, part of bug fix 15475, r=rhp.


git-svn-id: svn://10.0.0.236/trunk@51780 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:21:30 +00:00
ssu%netscape.com
879c9f145f fixed parameter problem during compilation for sgehani. r=sgehani
git-svn-id: svn://10.0.0.236/trunk@51779 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:16:46 +00:00
kipp%netscape.com
3cbf0c252a Added missing resources
git-svn-id: svn://10.0.0.236/trunk@51778 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:06:05 +00:00
sgehani%netscape.com
32a0978c7e Fix for bug 17137: added complete and abort routines for mac alias creation XPInstall API. [r=ssu]
git-svn-id: svn://10.0.0.236/trunk@51777 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:05:44 +00:00
kipp%netscape.com
60ea075c3f Reduce the number of cases that trigger noisy debug noise
git-svn-id: svn://10.0.0.236/trunk@51776 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:05:31 +00:00
kipp%netscape.com
dfe78df5d9 Turned off some more debug noise
git-svn-id: svn://10.0.0.236/trunk@51775 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:05:15 +00:00
kipp%netscape.com
4bb755ead2 r=ftang,brade, bug=16886,9101 - the text transformer was letting some nbsp's through in a few special cases; the text transformer also squelches shy characters now (9101)
git-svn-id: svn://10.0.0.236/trunk@51774 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:04:51 +00:00
kipp%netscape.com
ae6b64e566 r=troy, bug=10497; we now support min/max width/height for image elements
git-svn-id: svn://10.0.0.236/trunk@51773 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:03:50 +00:00
kipp%netscape.com
df248f10b1 Quieted down some debug noise and added a missing newline to a printf
git-svn-id: svn://10.0.0.236/trunk@51772 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:02:43 +00:00
law%netscape.com
6f73e6604a Bug #14999; last holdout that was using toolkit app core - changed to use OpenDialog; r=davidm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51771 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 23:02:05 +00:00
dougt%netscape.com
11d905c2a9 ack! what was I thinking.
#ifdef'ing not including!!


git-svn-id: svn://10.0.0.236/trunk@51770 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:57:40 +00:00
morse%netscape.com
8bd629f104 fix bug 17172 -- wrong cookie is displayed, r=goodsger
git-svn-id: svn://10.0.0.236/trunk@51769 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:56:24 +00:00
kmcclusk%netscape.com
9bb05775e0 Register nsFormProcessor service to exercise nsIFormProcessor interface.
bug 17060. r=karnaze@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51768 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:54:12 +00:00
karnaze%netscape.com
f98a03f3ac bug 16284, 14159 nested auto table with percent cells was not growing auto table. nested coord or percent table was only getting min size.
git-svn-id: svn://10.0.0.236/trunk@51767 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:49:51 +00:00
dougt%netscape.com
bb554f06d2 adding nsIFile to nsXPComInit. Currently it is #ifdef'ed off.
bug 13320


git-svn-id: svn://10.0.0.236/trunk@51766 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:48:44 +00:00
kmcclusk%netscape.com
2f7a2a20da Call nsIFormProcessor service if it has been registered for each value submitted.
bug=17060 r=karnaze@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51765 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:48:43 +00:00
dougt%netscape.com
49cd195acc changed license.
git-svn-id: svn://10.0.0.236/trunk@51764 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:45:56 +00:00
dougt%netscape.com
ea0c601803 Initial checkin of nsIFile test. bug 13320. r=dougt
Not hooked up to build, yet.


git-svn-id: svn://10.0.0.236/trunk@51763 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:45:12 +00:00
dougt%netscape.com
a2ec5f969a Initial checkin of nsIFile windows implementation. bug 13320. r=dougt
Not hooked up to build, yet.


git-svn-id: svn://10.0.0.236/trunk@51762 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:44:42 +00:00
akhil.arora%sun.com
bb01f7852c 15579 r=akhil.arora@sun.com Checkin by Igor Nekrestyanov <nis@sparc.spb.su>
Implementation of DOM Events from the W3c DOM Level 2 current working draft


git-svn-id: svn://10.0.0.236/trunk@51761 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:42:40 +00:00
dougt%netscape.com
6c8ce03672 adding a progID and className. r=me.
NOT PART OF THE BUILD, YET


git-svn-id: svn://10.0.0.236/trunk@51760 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:33:55 +00:00
dougt%netscape.com
6839959ccf Change net module notification to make proxies lazy. r=dveditz, mozbot.
This reduces memory overhead.


git-svn-id: svn://10.0.0.236/trunk@51759 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:31:59 +00:00
tbogard%aol.net
ae51cb2bce Added new nsIInterfaceRequestor interface. r=dp
git-svn-id: svn://10.0.0.236/trunk@51758 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:31:40 +00:00
law%netscape.com
168d68ed9c Bug #14999; use OpenDialog instead of toolkit app core; r=radha@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51757 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:30:40 +00:00
kmcclusk%netscape.com
64e09df2b9 Export nsIFormProcessor.h on Mac. bug=17060; r=karnaze@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51756 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:29:22 +00:00
norris%netscape.com
a6a5735f6c Fix 11963 Need security controls on javascript: urls
r=mstoltz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51755 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:23:25 +00:00
norris%netscape.com
68023d9210 Use NS_GET_IID, remove dead code, clean up error conditions for XPConnect security calls.
r=jband


git-svn-id: svn://10.0.0.236/trunk@51754 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:22:16 +00:00
norris%netscape.com
2c73987122 Expose referrer from web shell.
r=travis
needed for bug 11963.


git-svn-id: svn://10.0.0.236/trunk@51753 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:20:10 +00:00
ftang%netscape.com
80f773ac31 fix not enough gap between IME selection problem. r=erik
git-svn-id: svn://10.0.0.236/trunk@51752 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:18:41 +00:00
ftang%netscape.com
13ed9a026b delete nsTextRange array after dispatch the text event. fix wrong array indexing. Fix platform to NS attribute mapping problem. r=tague
git-svn-id: svn://10.0.0.236/trunk@51751 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:17:09 +00:00
rods%netscape.com
2c0b3223a2 Export nsIFormProcessor.h on Linux. bug=17060 r=karnaze@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51750 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:14:21 +00:00
rhp%netscape.com
a2e9eb0c8e Fix for extra conversion - r: nhotta
git-svn-id: svn://10.0.0.236/trunk@51749 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:13:39 +00:00
akkana%netscape.com
b3f6f6906c 15463: Re-enable XIM code, add keycode mappings for shifted characters
git-svn-id: svn://10.0.0.236/trunk@51748 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:11:23 +00:00
putterman%netscape.com
2a9fdcf10a Fixes 12894. Messages show up bold again if they are unread. reviewed by bienvenu.
git-svn-id: svn://10.0.0.236/trunk@51747 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:10:32 +00:00
alecf%netscape.com
6436fc3afa fix for #17187 - return NS_RDF_NO_VALUE when any particular GetTarget() calls fail
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@51746 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:09:07 +00:00
kmcclusk%netscape.com
cee3171b28 Removed build warning caused by overloaded GetDesiredSize. bug=15575. r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51745 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:06:41 +00:00
nhotta%netscape.com
58f8c6d8d9 Added MsgUtil.lib and MsgUtilDebug.lib to the project, part of bug fix 15475.
git-svn-id: svn://10.0.0.236/trunk@51744 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:04:23 +00:00
nhotta%netscape.com
b5fc1e2670 Changed MIME header encoder in unicode conversion. Instead of skipping unmapped characters,
call the fallback funcion (puts a question mark for an unmapped char), part of bug fix 15475, r=rhp.


git-svn-id: svn://10.0.0.236/trunk@51743 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:03:09 +00:00
putterman%netscape.com
c473237102 Fix 17107. A bunch of view navigation bugs. Reviewed by bienvenu. It fixes:
1.  Next message with no selection finds the next message
2.  It no longer redisplays current message if Next Message finds no next message.
3.  Next/Previous message works if last/first message is selected.


git-svn-id: svn://10.0.0.236/trunk@51742 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:02:58 +00:00
kmcclusk%netscape.com
3a21a346ef Export nsIFormProcessor.h. bug=17060. r=karnaze@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51741 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 22:01:19 +00:00
kmcclusk%netscape.com
389e1be499 First time checked in. Used to provide data during form submission. bug 17060. r=karnaze@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51740 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 21:59:39 +00:00
brade%netscape.com
b77f113bda fix plain text editor (r=cmanske@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@51739 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 21:57:11 +00:00
brade%netscape.com
56be896120 fix plain text editor (r=cmanske@netscape.com, jfrancis@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@51738 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 21:56:37 +00:00
nisheeth%netscape.com
427d3f559c Ongoing work to get macros for timing modules up and running. Not part of the build.
git-svn-id: svn://10.0.0.236/trunk@51737 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 20:59:35 +00:00
jefft%netscape.com
86ba1460c9 fixed bug 17179 -- [dogfood] [BLOCKER] Sending a message does not work; escape the recipient list fixes the problem; r=mscott, a=granrose
git-svn-id: svn://10.0.0.236/trunk@51735 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 20:17:01 +00:00
brendan%mozilla.org
b3a1017637 - Chouck's changes to grow a JSIdArray if necessary in JS_Enumerate, with my
code review and fixes (r=chouck@geocast.com).  He needs this cuz he has no
  knowledge of exact number of properties before new-style enumerating them.
- Patch up jsdbgapi.c a bit -- it needs to use OBJ_GET_ATTRIBUTES and new APIs
  to do a better job describing properties to a debugger.
- Add JSMSG_CANT_DESCRIBE_PROPS for bogus non-native error case in jsdbgapi.c.
- Fix "Inappropriate" => "invalid" in JSMSG_BAD_ARRAY_LENGTH message.


git-svn-id: svn://10.0.0.236/trunk@51734 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 19:24:03 +00:00
wtc%netscape.com
50b0c89090 Bugzilla bug #17093: made plevent.c independent of any internal NSPR
headers (primpl.h in particular).  Tested on Linux, Solaris, Win32,
and Mac. r=srinivas@netscape.com
Modified files: lib/ds/Makefile, lib/ds/Makefile.in, lib/ds/plevent.c


git-svn-id: svn://10.0.0.236/trunk@51733 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 19:20:58 +00:00
rhp%netscape.com
b8a92b1146 Fix for composition quoting and cleanup for dogfood - Bug# 16703 16907 7518 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@51732 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 19:04:56 +00:00
rhp%netscape.com
2624eb5719 Fix for attachments not visible and display crashers - Bug #: 16367 16786 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@51731 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 19:02:39 +00:00
slamm%netscape.com
3ea969fa03 Need double quotes instead of single quotes to get variable values (fix bloat.pl).
git-svn-id: svn://10.0.0.236/trunk@51730 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 18:02:06 +00:00
norris%netscape.com
10dca74c3e Add contributors.
git-svn-id: svn://10.0.0.236/trunk@51729 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 17:52:48 +00:00
norris%netscape.com
32c0c98b21 Add license text.
git-svn-id: svn://10.0.0.236/trunk@51728 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 17:41:49 +00:00
norris%netscape.com
0034cf42f1 Add license boilerplate.
git-svn-id: svn://10.0.0.236/trunk@51727 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 17:36:20 +00:00
slamm%netscape.com
c6ce018a7f Need to 'require' treedata.pl to get warnings and bloat pattern strings.
git-svn-id: svn://10.0.0.236/trunk@51726 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 17:31:39 +00:00
norris%netscape.com
72dc3d0896 Should get ReferenceError exception for name not found.
git-svn-id: svn://10.0.0.236/trunk@51723 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 16:41:24 +00:00
norris%netscape.com
f8261501a4 Add contributors.
git-svn-id: svn://10.0.0.236/trunk@51722 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 16:40:30 +00:00
pavlov%netscape.com
36aeea55b5 don't install registry.rdf r=ramiro
git-svn-id: svn://10.0.0.236/trunk@51718 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 14:57:24 +00:00
pavlov%netscape.com
e70752a644 makefile changes for the Editor to editor.css change r=hyatt,ramiro
git-svn-id: svn://10.0.0.236/trunk@51717 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 14:56:35 +00:00
kin%netscape.com
d9ba7b42e8 Fix for bug #16701: Editor API Log playback of Insert HRule crashes in DOM code
and     bug #16848: DOM Crash
  - Removed extra NS_RELEASE(attrPrivate) call that was releasing
    attrPrivate one too many times, and causing nsDOMAttributeMap::SetNamedItem() to crash.
r=vidur@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51716 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 14:15:34 +00:00
morse%netscape.com
abe3c3c6c8 fixed typos, no code review
git-svn-id: svn://10.0.0.236/trunk@51715 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 13:13:48 +00:00
rods%netscape.com
8df8f94df3 added some more tests
git-svn-id: svn://10.0.0.236/trunk@51714 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 13:03:47 +00:00
duncan%be.com
5cabd411f1 Fix build under BeOS. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@51713 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 06:22:43 +00:00
nisheeth%netscape.com
341cd407a6 Macros for doing performance analysis of modules in Mozilla. This file is not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@51712 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 05:29:20 +00:00
varada%netscape.com
70051f68b3 clearing up some code
git-svn-id: svn://10.0.0.236/trunk@51711 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 05:14:12 +00:00
tbogard%aol.net
58ff9e6cc4 Added build directory to build a DLL for various docShells.
git-svn-id: svn://10.0.0.236/trunk@51710 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:53:13 +00:00
tbogard%aol.net
34c9d3fa3e Clarified some documentation.
git-svn-id: svn://10.0.0.236/trunk@51709 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:51:59 +00:00
tbogard%aol.net
4cab253cb0 Fixed a Caps problem.
git-svn-id: svn://10.0.0.236/trunk@51708 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:51:15 +00:00
tbogard%aol.net
14fc92dac1 Framed out the nsHTMLDocShell implementation. Setup to build a library.
git-svn-id: svn://10.0.0.236/trunk@51707 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:50:22 +00:00
tbogard%aol.net
671fe34afb Defined what nsCHTMLDocShell implements and included the appropriate header files.
git-svn-id: svn://10.0.0.236/trunk@51706 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:48:14 +00:00
karnaze%netscape.com
46cade08ac bug 5799 - considers percentage width of multiple cells when figuring width of auto table.
git-svn-id: svn://10.0.0.236/trunk@51705 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:34:28 +00:00
karnaze%netscape.com
18a5e00d6a new regression tests
git-svn-id: svn://10.0.0.236/trunk@51704 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 04:30:54 +00:00
tbogard%aol.net
9fa90714c2 Just added support for an NS_IMPL_ISUPPORTS 7 - 10.
git-svn-id: svn://10.0.0.236/trunk@51703 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 03:42:10 +00:00
varada%netscape.com
55871f81f5 fix for bug #17011 create copy (for config)invokes a window with text relevant to copy in it
git-svn-id: svn://10.0.0.236/trunk@51702 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 03:26:48 +00:00
gagan%netscape.com
e14999de24 Added profiling info for measuring performance when doing -all. Test case only.
git-svn-id: svn://10.0.0.236/trunk@51701 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 02:22:30 +00:00
varada%netscape.com
27f90cbea7 fix for bug 16977 - only edit fields showing up in the show summary button
git-svn-id: svn://10.0.0.236/trunk@51700 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 01:54:32 +00:00
dp%netscape.com
5871c388a1 bug# 15513 Removing dlldeps.cpp from RDF unix build. Patch from
waterson r=dp


git-svn-id: svn://10.0.0.236/trunk@51699 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 00:37:24 +00:00
sdagley%netscape.com
737d3b892e Pre-emptive fix for Mac (and possibly some ports) build bustage - if you're going to use a variable to contain a debug output file name it helps if the variable is declared on all platforms the code compiles for.
git-svn-id: svn://10.0.0.236/trunk@51698 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-25 00:29:15 +00:00
rickg%netscape.com
0aa148382a fixed FMM (in debug code); r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@51697 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 23:48:00 +00:00
mcafee%netscape.com
15b4b203b5 Adding XPCOM_MEM_BLOAT_LOG=1 for RunBloatTest.
git-svn-id: svn://10.0.0.236/trunk@51696 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 22:37:34 +00:00
gagan%netscape.com
bd175bcc62 Fixed bug 15963. Host: headers were not including port numbers. r=mozbot,a=self. (/msg mozbot do these diffs look ok to you? Should I continue with my checkin? <CR> mozbot: That is interesting. Please continue. )
git-svn-id: svn://10.0.0.236/trunk@51695 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 22:20:52 +00:00
warren%netscape.com
c9c3ab2262 Fixed up dll loading for Windows. It was silently failing.
git-svn-id: svn://10.0.0.236/trunk@51694 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 22:01:09 +00:00
dp%netscape.com
ccb30ad195 bug#16742 Fixing delete on nsISupports. Thanks for patch from
<heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing
operating on refcnt directly. r=troy r=dp


git-svn-id: svn://10.0.0.236/trunk@51693 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 16:19:42 +00:00
tonyr%fbdesigns.com
c9b397be49 Updated address book cls id names that changed
git-svn-id: svn://10.0.0.236/trunk@51692 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 16:09:21 +00:00
rods%netscape.com
5926a49df7 added more tests
git-svn-id: svn://10.0.0.236/trunk@51691 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 16:04:17 +00:00
rods%netscape.com
a16142db50 updated test
git-svn-id: svn://10.0.0.236/trunk@51690 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 15:07:41 +00:00
rods%netscape.com
26d3fe5556 added file
git-svn-id: svn://10.0.0.236/trunk@51689 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 15:07:25 +00:00
rods%netscape.com
6579bbdd80 added more tests
git-svn-id: svn://10.0.0.236/trunk@51688 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 14:05:44 +00:00
ramiro%fateware.com
b15a17bfcb Simplify the package list file.
git-svn-id: svn://10.0.0.236/trunk@51687 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 13:44:34 +00:00
pavlov%netscape.com
185c67ee12 remove registry.rdf r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51686 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 09:57:49 +00:00
pavlov%netscape.com
f346c3e821 fix build problems on linux r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51685 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 09:20:49 +00:00
warren%netscape.com
b9ca6db5fa Fixed logic for XPCOM_MEM_LOG_CLASSES case.
git-svn-id: svn://10.0.0.236/trunk@51684 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 09:13:52 +00:00
hyatt%netscape.com
68f0c59d3a chrome registry can now be dynamically built from RDF fragments t=pavlov
git-svn-id: svn://10.0.0.236/trunk@51683 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 09:00:41 +00:00
hyatt%netscape.com
e3d0859994 making chrome registry not be a single uber datasource anymore r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51682 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 07:27:12 +00:00
rpotts%netscape.com
c275b7fca5 Backing out the fix for bug #15560. This fixes the editor regression - bug #16937
git-svn-id: svn://10.0.0.236/trunk@51681 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 07:26:54 +00:00
pavlov%netscape.com
697deffc1d rename PrefsWindow.xul so that it can be better friends with the chrome registry r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51679 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 07:16:45 +00:00
pavlov%netscape.com
35c3e18a5e rename to be happy with the chrome registry r=hyatt
git-svn-id: svn://10.0.0.236/trunk@51678 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 07:07:04 +00:00
pavlov%netscape.com
17d1767696 renaming file to be consistant with chrome registry
git-svn-id: svn://10.0.0.236/trunk@51677 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 07:00:53 +00:00
hyatt%netscape.com
f44eb6e877 make registry work without needing an rdf datasource r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51676 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 06:59:30 +00:00
hyatt%netscape.com
dd85258734 renaming skin.css to global.css r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51675 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 06:58:38 +00:00
dp%netscape.com
5f7aa39be5 bug#16742 Fixing delete on nsISupports. Thanks for patch from <heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing operating on refcnt directly. r=dp
git-svn-id: svn://10.0.0.236/trunk@51674 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 04:41:17 +00:00
beard%netscape.com
b500a68477 changed GC_abort() to call ExitToShell() rather than abort(). bug=15906
git-svn-id: svn://10.0.0.236/trunk@51673 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 03:26:10 +00:00
rods%netscape.com
d0c68ca52f Simple changed from COLOR_DESKTOP to COLOR_APPWORKSPACE for appworkspace enum
for css 2 color setting
fixes bug 16853,r=none


git-svn-id: svn://10.0.0.236/trunk@51672 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 03:03:38 +00:00
beard%netscape.com
964164ffe9 removed obsolete access paths. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@51671 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 02:45:17 +00:00
varada%netscape.com
676eaa791f fix to bug #16981 changed Text field to editbox so that value can be enterred
git-svn-id: svn://10.0.0.236/trunk@51670 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 02:23:44 +00:00
varada%netscape.com
de47ad8dca fix to bug#16973 - nci file editor field is made dynamic text - can be changed only using file browsing
git-svn-id: svn://10.0.0.236/trunk@51669 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 02:18:17 +00:00
varada%netscape.com
66774f2d49 fix for bug #7850 - have to call function depend on the Next button on the ini file
git-svn-id: svn://10.0.0.236/trunk@51668 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 02:04:37 +00:00
ssu%netscape.com
2aa8ec93a3 fixes bugs #15394, #15603, part of #15644, and #15487. r=sgehani. The
xpinstall fileops functions have been updated to perform error detection
as much as it can prior to executing the command.


git-svn-id: svn://10.0.0.236/trunk@51667 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-24 01:07:45 +00:00
mscott%netscape.com
684b3cc1bb Bug #16927 add GetMessageUrlFromUri to nsIMsgMessageService
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51666 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 23:39:57 +00:00
mscott%netscape.com
0b058cd771 Bug #16927 implement GetMessageUrlFromUri
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51665 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 23:39:28 +00:00
troy%netscape.com
d79892b99d Changed nsTextFrame to be derived from nsFrame instead of nsSplittableFrame.
nsTextFrame now has only a next-in-flow pointer and no prev-in-flow pointer.
Subclass nsContinuingTextFrame is used for continuing text frames; it has a
prev-in-flow pointer. This saves 4 bytes


git-svn-id: svn://10.0.0.236/trunk@51664 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 23:19:14 +00:00
troy%netscape.com
5859acba05 Space reductions for nsTableRowFrame. Changed mInitializedChildren to be a
frame state bit, and changed mMinRowSpan and mRowIndex to be packed into
one 32-bit field. Total savings of 8 bytes per row frame


git-svn-id: svn://10.0.0.236/trunk@51663 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 23:08:30 +00:00
dp%netscape.com
1e5c5df64f bug#16742 Fixing delete on nsISupports. Thanks for patch from
<heikki@citec.fi> r=dp


git-svn-id: svn://10.0.0.236/trunk@51662 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 17:34:55 +00:00
dp%netscape.com
b534e205fe bug#16742 Fixing delete on nsISupports. Thanks for patch from <heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing operating on refcnt directly. r=dp
git-svn-id: svn://10.0.0.236/trunk@51661 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 17:33:29 +00:00
duncan%be.com
5ebdcee645 Make profile manager build under BeOS.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51660 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 17:13:55 +00:00
beard%netscape.com
8678f1bdd7 never consider code offsets greater than the offset of the instruction, which ensures that the returned file offset is always correct. bug=15906
git-svn-id: svn://10.0.0.236/trunk@51659 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 15:57:31 +00:00
tbogard%aol.net
ac565dc536 Framed out nsWebBrowser implementation. Basically just added all the interface functions. Code now has a place to live.
git-svn-id: svn://10.0.0.236/trunk@51658 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 07:56:27 +00:00
tbogard%aol.net
92612afa70 Added some includes of the interfaces that make up nsCWebBrowser
git-svn-id: svn://10.0.0.236/trunk@51657 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 07:55:39 +00:00
tbogard%aol.net
e9e6e9c241 Just changed some comments and function ordering.
git-svn-id: svn://10.0.0.236/trunk@51656 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 07:51:45 +00:00
jband%netscape.com
d7cf1d350b r=mccabe
Primarily fixes to properly handle nsIXPCSecurityManager vetos of
xpconnect activities.

- The code was not propagating security manager vetos of native wrapping up
through xpconnect internals. So, xpconnect was erroneously masking the
security exception with its own 'failed to convert param' exception.
This effects the signatures of nsXPCWrappedNative::GetNewOrUsedWrapper
and nsXPCWrappedJSClass::GetNewOrUsedClass.

- This propagation also helps with the problem that sometimes interfaces
are not set as [scriptable] and we did not make that clear as the source
of xpconnect's failure to convert a param in calling a method. Now this
specific class of exceptions is indicated in the JS exception object when
this happens.

- Added an explicit call to js_ForceGC on shutdown of xpcshell to aid in
avoiding 'false positives' in leak detection

- Return JS_FALSE rather than JS_TRUE when an exception is thrown in
xpcjsid to make the jsengine notices the exception.

- Move #includes that others added in xpcmodule.cpp to xpcprivate.h in
order to maintain the include conventions of this module.

- Avoid throwing an exception if it represents a security manager veto
and the security manager set an exception already.

- Replace uses of nsCOMTypeInfo<> added by scc with NS_GET_IID macros.

- Fixed a methodname misspelling because reviewers care about stuff
like that :)


git-svn-id: svn://10.0.0.236/trunk@51655 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 07:20:04 +00:00
tbogard%aol.net
398c14c4d0 Just added support for an NS_IMPL_ISUPPORTS6.
git-svn-id: svn://10.0.0.236/trunk@51654 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 06:55:45 +00:00
dp%netscape.com
40ee849701 bug# 16742 Fixing delete on nsISupports Thanks for patch from <heikki@citec.fi>. r=dp
git-svn-id: svn://10.0.0.236/trunk@51639 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 06:15:31 +00:00
dp%netscape.com
cc26158c98 bug#16742 Fixing delete on nsISupports. Thanks for patch from
<heikki@citec.fi> Plus using IMPL_ and DECL_ macros and removing
operating on refcnt directly. r=dp


git-svn-id: svn://10.0.0.236/trunk@51638 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 05:45:41 +00:00
dp%netscape.com
259487cdf7 bug#16762 Removing delete on a nsISupports. Thanks to
<heikki@citec.fi> Plus changes to use DECL_ and IMPL_ macros and not
hand define mrefcnt. r=dp


git-svn-id: svn://10.0.0.236/trunk@51637 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 05:31:46 +00:00
ducarroz%netscape.com
6a5732fdec Bug 14258, implement Send Page, R=alecf
git-svn-id: svn://10.0.0.236/trunk@51636 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 04:51:40 +00:00
dougt%netscape.com
9544338359 Modification based on design review.
(THIS IS NOT PART OF THE BUILD YET)


git-svn-id: svn://10.0.0.236/trunk@51635 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 04:51:35 +00:00
ducarroz%netscape.com
798afa71eb Bug 14258, implement Send Page. R=alecf
git-svn-id: svn://10.0.0.236/trunk@51634 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 04:50:20 +00:00
varada%netscape.com
35cf097c8a fix for bug #10806
git-svn-id: svn://10.0.0.236/trunk@51633 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:41:41 +00:00
varada%netscape.com
fd98dc9090 fix for bug #5987
git-svn-id: svn://10.0.0.236/trunk@51632 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:30:43 +00:00
warren%netscape.com
95063f0074 Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@51631 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:16:27 +00:00
warren%netscape.com
dc65f370b6 Extended docs to talk about new env vars, and how to read bloat logs.
git-svn-id: svn://10.0.0.236/trunk@51630 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:16:23 +00:00
warren%netscape.com
c8d6aed234 Cleaned up nsTraceRefcnt environment variables. r=kipp,beard
git-svn-id: svn://10.0.0.236/trunk@51629 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:16:19 +00:00
troy%netscape.com
c16f001bc8 Changed Run() to give priority to system messages when pumping
messsages. These are the same changes that I made to viewer's message
pump on 9/13/99


git-svn-id: svn://10.0.0.236/trunk@51628 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:09:30 +00:00
rickg%netscape.com
a553c7ea86 fixed infinite-loop bug 17045 by conditioning control loop. r=buster
git-svn-id: svn://10.0.0.236/trunk@51627 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:06:19 +00:00
troy%netscape.com
feca3d387f Changed Clear() to check for a shared node arena
git-svn-id: svn://10.0.0.236/trunk@51626 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 03:04:21 +00:00
troy%netscape.com
3972c8f69a Removed a comment
git-svn-id: svn://10.0.0.236/trunk@51624 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 02:27:07 +00:00
nisheeth%netscape.com
b6ce91bcb5 r=troy. Siblings of frames get traversed iteratively during capturing/restoring of state. Earlier they were traversed recursively which was causing the call stack to grow too large.
git-svn-id: svn://10.0.0.236/trunk@51623 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:43:49 +00:00
slamm%netscape.com
7c904e3aa8 Add bloat processing. Cleanup tacky code.
git-svn-id: svn://10.0.0.236/trunk@51622 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:43:28 +00:00
slamm%netscape.com
1cd3dc4f49 Take out debug statement.
git-svn-id: svn://10.0.0.236/trunk@51621 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:35:40 +00:00
beard%netscape.com
4d41f52154 added line hiliting in -blame mode.
git-svn-id: svn://10.0.0.236/trunk@51619 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:33:42 +00:00
sspitzer%netscape.com
cfadbaffa1 remove pref-select.html, it is obsolete.
git-svn-id: svn://10.0.0.236/trunk@51616 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:29:09 +00:00
sspitzer%netscape.com
992247191f remove PrefsWindow.html, it is obsolete.
git-svn-id: svn://10.0.0.236/trunk@51615 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:26:07 +00:00
slamm%netscape.com
e95f03bd55 Parse build logs for bloat data from warren@netscape.com's bloat tool.
git-svn-id: svn://10.0.0.236/trunk@51614 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:22:41 +00:00
selmer%netscape.com
2cee86d35e Include IB into the wizard
git-svn-id: svn://10.0.0.236/trunk@51613 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:21:09 +00:00
slamm%netscape.com
4d6f026b73 Load bloat data. Clean up load_who().
git-svn-id: svn://10.0.0.236/trunk@51612 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:18:25 +00:00
slamm%netscape.com
5b100726d8 Add bloat data to tree cells that have it.
git-svn-id: svn://10.0.0.236/trunk@51611 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:18:04 +00:00
pavlov%netscape.com
da0e9ca233 add ScrollRect method to nsIWidget -- implimented on linux and stubbed in nsBaseWidget for mac and windows. Added ifdef'd scrolling code that makes scrolling really fast on linux. Updated nsIWidget.idl (not built) to merge some changes from a branch and added ScrollRect. Added ifdefs for using gtk_fixed instead of gtk_layout as part of the new scrolling code.
git-svn-id: svn://10.0.0.236/trunk@51610 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:17:20 +00:00
bienvenu%netscape.com
b9244d6491 cleanup dbs at shutdown, r=mscott
git-svn-id: svn://10.0.0.236/trunk@51609 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:13:10 +00:00
morse%netscape.com
6045d43774 fix bug 16753, memory leak, r=rjc
git-svn-id: svn://10.0.0.236/trunk@51608 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 01:01:58 +00:00
gagan%netscape.com
e5e1218aae Post requests are now only read upto the specified amount. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@51607 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:47:24 +00:00
varada%netscape.com
91451df7a3 fixes to bug#14014
git-svn-id: svn://10.0.0.236/trunk@51606 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:38:51 +00:00
varada%netscape.com
5ea1cd0e4c fixes to bug #2794
git-svn-id: svn://10.0.0.236/trunk@51605 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:38:06 +00:00
beard%netscape.com
d7abad5a6c fixing breakage by #undef BlockAllocCat
git-svn-id: svn://10.0.0.236/trunk@51604 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:21:17 +00:00
ramiro%fateware.com
0816082384 Add lots of comments. Deal with %dir. Deal with duplicate entries.
Properly call regxpcom each time components get installed.
Not part of SeaMonkey.


git-svn-id: svn://10.0.0.236/trunk@51603 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:15:23 +00:00
selmer%netscape.com
17b7d985c2 Fixups to makefile system for globals dll
git-svn-id: svn://10.0.0.236/trunk@51602 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:12:13 +00:00
selmer%netscape.com
a1f6f3c1a3 Feeble first DLL for IB
git-svn-id: svn://10.0.0.236/trunk@51601 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:10:24 +00:00
pnunn%netscape.com
efe6dfa795 fix for mac bustage. pnunn.
git-svn-id: svn://10.0.0.236/trunk@51600 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-23 00:10:14 +00:00
selmer%netscape.com
52de2be8a7 adding globals
git-svn-id: svn://10.0.0.236/trunk@51598 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:46:35 +00:00
selmer%netscape.com
36e4eb89ff globalizing includes
git-svn-id: svn://10.0.0.236/trunk@51597 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:45:20 +00:00
dmose%mozilla.org
d924535fa1 cmd/winfe lives on in the MozillaClassic branch only. removing from the trunk. a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@51596 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:44:52 +00:00
selmer%netscape.com
5b578df427 globals into a dll
git-svn-id: svn://10.0.0.236/trunk@51595 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:42:02 +00:00
sspitzer%netscape.com
1668a389f4 make the xul look pretty by using html fieldsets and legends.
git-svn-id: svn://10.0.0.236/trunk@51593 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:31:05 +00:00
ramiro%fateware.com
295053baa2 Dont put the static rdfutil thing inside the FORCE_ALL block. r=alecf.
git-svn-id: svn://10.0.0.236/trunk@51592 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:28:30 +00:00
selmer%netscape.com
00ffb48018 Globals implementation
git-svn-id: svn://10.0.0.236/trunk@51591 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:28:27 +00:00
sspitzer%netscape.com
54b8cc865e changes for correctness and to make the pref ui look better.
git-svn-id: svn://10.0.0.236/trunk@51590 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:27:43 +00:00
sspitzer%netscape.com
aaff3bbf7e make the xul look pretty by using html fieldsets and legends.
fix #17078:  fix the xul so that pref-messages.xul stops asserting like mad or crashing.


git-svn-id: svn://10.0.0.236/trunk@51589 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:25:18 +00:00
sspitzer%netscape.com
17aab81855 make the xul look pretty by using html fieldsets and legends.
git-svn-id: svn://10.0.0.236/trunk@51588 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:22:52 +00:00
endico%mozilla.org
bb01bac34c improve error message mailed when cvs update dies
git-svn-id: svn://10.0.0.236/trunk@51587 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 23:07:44 +00:00
beard%netscape.com
f0acfa932d #include "xp_mcom.h" to fix link breakage.
git-svn-id: svn://10.0.0.236/trunk@51586 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:58:28 +00:00
radha%netscape.com
3139e13324 Turning off debug flag that got set in my previous checkin
git-svn-id: svn://10.0.0.236/trunk@51585 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:58:16 +00:00
beard%netscape.com
fb7e21676d MLK: Fixed implementations of QueryInterface, AddRef, and Release to perform correct reference counting. bug=15380, r=evaughan
git-svn-id: svn://10.0.0.236/trunk@51584 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:50:01 +00:00
pnunn%netscape.com
0ac69a866f To fix mac bustage. pnunn.
git-svn-id: svn://10.0.0.236/trunk@51583 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:48:04 +00:00
beard%netscape.com
2a64a10c92 synched.
git-svn-id: svn://10.0.0.236/trunk@51582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:39:51 +00:00
beard%netscape.com
5d5cc2a548 changed SharedGlobal.java to Global.java
git-svn-id: svn://10.0.0.236/trunk@51581 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:39:23 +00:00
norris%netscape.com
986ea91e68 Changes for improved errors-as-exceptions handling.
git-svn-id: svn://10.0.0.236/trunk@51578 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:02:58 +00:00
norris%netscape.com
92ab48d1d8 Use simpler, more widely applicable structure for global. Also avoids test failure for Function called as a function.
git-svn-id: svn://10.0.0.236/trunk@51577 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 22:00:21 +00:00
endico%mozilla.org
9b64c7df39 cvs error notification was busted
git-svn-id: svn://10.0.0.236/trunk@51576 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:59:10 +00:00
norris%netscape.com
a59a557d7d A NativeString object shouldn't be unwrapped to a primitive.
git-svn-id: svn://10.0.0.236/trunk@51575 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:58:54 +00:00
pnunn%netscape.com
4791c61ec9 bug#16785: forgot to checkin the include file change. Removing old, obsolete get image type call.
pnunn.


git-svn-id: svn://10.0.0.236/trunk@51574 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:46:56 +00:00
danm%netscape.com
abe94c118b set window title using multibyte. submitted by jamestoder@yahoo.com. r:ftang@netscape.com, by lack of timely objection.
git-svn-id: svn://10.0.0.236/trunk@51573 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:45:19 +00:00
sspitzer%netscape.com
35c39da3d2 fix typo. #17087.
"I think about the education that I missed.  but then my homework was never quite like this.  Got it bad, got it bad, got it bad..."


git-svn-id: svn://10.0.0.236/trunk@51572 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:41:13 +00:00
danm%netscape.com
0750508062 making GetACPString parameter const. part of submission from jamestoder@yahoo.com. r:me
git-svn-id: svn://10.0.0.236/trunk@51571 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:41:04 +00:00
akkana%netscape.com
e9db800eb8 Update a few of the standalone tests. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@51570 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:35:16 +00:00
gagan%netscape.com
78b44f58d8 a dummy post request file for testing post requests in HTTP. not in the build.
git-svn-id: svn://10.0.0.236/trunk@51569 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:27:38 +00:00
gagan%netscape.com
6955bb58c9 Added /post test as well. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@51568 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:24:57 +00:00
gagan%netscape.com
ce76e5ae7d Added stuff to the test server to handle post requests as well. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@51567 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:21:30 +00:00
ftang%netscape.com
59e649828f fix locale mapping for CLE. r=ftang
git-svn-id: svn://10.0.0.236/trunk@51566 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:11:50 +00:00
bienvenu%netscape.com
0ef6e9d38d one more news leak fix r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@51565 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:11:17 +00:00
alecf%netscape.com
31378ed4eb update status
git-svn-id: svn://10.0.0.236/trunk@51564 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:06:59 +00:00
pnunn%netscape.com
c4d7a55705 bug#16785. r:neeti@netscape.com. Clean up after changing mime handling in imglib.
git-svn-id: svn://10.0.0.236/trunk@51563 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:06:28 +00:00
alecf%netscape.com
ba7f0a4cb5 prefwindow is now a service thanks to nsIModule conversion
git-svn-id: svn://10.0.0.236/trunk@51562 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:06:26 +00:00
srinivas%netscape.com
2068a5408d OpenVMS updates by colin@theblakes.com
git-svn-id: svn://10.0.0.236/trunk@51561 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:06:08 +00:00
alecf%netscape.com
450ceda4e0 convert nsPrefWindow to a module
prefwindow was doing it's own singleton management, so changed it to use getService()


git-svn-id: svn://10.0.0.236/trunk@51560 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:05:31 +00:00
bienvenu%netscape.com
16ace9def7 one more addrbook memory leak fix r=mscott
git-svn-id: svn://10.0.0.236/trunk@51559 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:04:45 +00:00
pnunn%netscape.com
42f2519c84 bug#15585. r:neeti@netscape.com. Fix build warnings.
git-svn-id: svn://10.0.0.236/trunk@51558 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:04:28 +00:00
pnunn%netscape.com
4be52ad659 Bug#13505: r:neeti@netscape.com. Replace str()'s with nsCRT()'s & nspr()'s.
git-svn-id: svn://10.0.0.236/trunk@51556 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:03:52 +00:00
akkana%netscape.com
10a4fb8f22 16988: filter out BR type=_moz, which the editor inserts. r=syd
git-svn-id: svn://10.0.0.236/trunk@51555 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:03:29 +00:00
scc%netscape.com
866732108c File Removed.
git-svn-id: svn://10.0.0.236/trunk@51554 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:02:15 +00:00
srinivas%netscape.com
bf8979df4c PR_SetThreadPriority should set the priority unconditionally.
git-svn-id: svn://10.0.0.236/trunk@51553 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:01:51 +00:00
racham%netscape.com
3f91090fc5 r=sspitzer. Fix for bug 16209. This checkin fixes mozregistry entries to avoid crashes from M9 or builds prior to that
git-svn-id: svn://10.0.0.236/trunk@51552 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:00:53 +00:00
jefft%netscape.com
8f8c3afe28 fixed bug 11892 - [dogfood] When Name or Address of a recipient includes 8-bit characters address is incorrectly formed; not quoting name part of an email address; calling GetPath() instead of GetFileName() for all recipients; r=rhp, mscott
git-svn-id: svn://10.0.0.236/trunk@51551 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 21:00:07 +00:00
srinivas%netscape.com
d303858686 Fixed typo in debug statement.
git-svn-id: svn://10.0.0.236/trunk@51550 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:59:34 +00:00
srinivas%netscape.com
fe52fa5602 Defined _MD_PIPEAVAILABLE; checkin for "Duncan Wilcox" <duncan@be.com>.
git-svn-id: svn://10.0.0.236/trunk@51549 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:58:00 +00:00
srinivas%netscape.com
46e9b52597 Map the SO_BROADCAST option to invalid option, when not supported by the
system.


git-svn-id: svn://10.0.0.236/trunk@51548 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:56:25 +00:00
jband%netscape.com
d8c9cc6cae commiting patch from Duncan Wilcox <duncan@be.com> to get prototype right in prep for inline assembly call - some pick compilers didn't like unsigned int when it was really uint32. r=jband
git-svn-id: svn://10.0.0.236/trunk@51547 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:53:05 +00:00
jefft%netscape.com
5dd4804e4c fixed bug 17069 - Save As...File format list for saving a selected message shows a .hml for the HTML format; fix typo; r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@51546 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:52:56 +00:00
srinivas%netscape.com
1a74d3549b Add PR_SendFile to the PRIOMethods tables to enable use in layered FDs.
Bugzilla #17012.


git-svn-id: svn://10.0.0.236/trunk@51545 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:49:19 +00:00
radha%netscape.com
a285ab741e Clean up of Session History apis. Corresponding changes to the users of SH. r=mcafee. No bug #.
git-svn-id: svn://10.0.0.236/trunk@51544 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:48:07 +00:00
ducarroz%netscape.com
b21e040071 Fix for bug 15201. We need to convert back the result from UTF-8 to Unicode. R=mscott, bienvenu
git-svn-id: svn://10.0.0.236/trunk@51543 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:37:42 +00:00
bienvenu%netscape.com
8ce16092ef fix leaks in news/nntp r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@51542 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:33:04 +00:00
bienvenu%netscape.com
598ff07fea fix memory leaks in vcard and calendar factories r=rhp
git-svn-id: svn://10.0.0.236/trunk@51541 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:32:02 +00:00
mcafee%netscape.com
0f2352836a Fixing some mis-use error cases, adding comments. Added --testonly flag. code=slamm, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@51540 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 20:31:56 +00:00
slamm%netscape.com
085f841b9d Fix typo.
git-svn-id: svn://10.0.0.236/trunk@51539 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 19:16:40 +00:00
slamm%netscape.com
cb3e8e41cc Add some comments. Describe data structures. Tidy up a bit.
git-svn-id: svn://10.0.0.236/trunk@51538 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 18:53:56 +00:00
norris%netscape.com
ee5e7e9f37 Shouldn't test for equality against the message string, which is implementation independent.
git-svn-id: svn://10.0.0.236/trunk@51537 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 18:33:46 +00:00
slamm%netscape.com
5c43a70394 Add filter for long long constants. Make sure summary table includes everyone (fix off by one error).
git-svn-id: svn://10.0.0.236/trunk@51536 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 17:34:16 +00:00
norris%netscape.com
484a8455bd Don't print out control characters that break the driver.
git-svn-id: svn://10.0.0.236/trunk@51535 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 17:31:59 +00:00
norris%netscape.com
38e1413a00 Fix formatting.
git-svn-id: svn://10.0.0.236/trunk@51534 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 16:58:30 +00:00
norris%netscape.com
e763168909 Fix javadoc
git-svn-id: svn://10.0.0.236/trunk@51533 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 16:56:56 +00:00
jmas%softcatala.org
85ccdaf936 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@51532 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 15:53:29 +00:00
troy%netscape.com
d16381b6f3 Removed 5 convenience functions from nsIFrame
git-svn-id: svn://10.0.0.236/trunk@51531 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:53:52 +00:00
kipp%netscape.com
2ed3a3fc6a Removed some more warnings
git-svn-id: svn://10.0.0.236/trunk@51530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 14:51:41 +00:00
dcone%netscape.com
fd397214fb Fixed warning.
git-svn-id: svn://10.0.0.236/trunk@51529 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 13:29:06 +00:00
srinivas%netscape.com
be42687878 PL_ProcessPendingEvents() dispatches only those events currently on the
queue. Added a static helper function (_pl_GetEventCount) that locks the
monitor and counts the number of events in the queue. Checkin for troy.


git-svn-id: svn://10.0.0.236/trunk@51528 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 13:28:39 +00:00
dcone%netscape.com
d23e143664 Fixed the rounding on some transform math. r=kmkclusky
git-svn-id: svn://10.0.0.236/trunk@51527 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 13:28:22 +00:00
rods%netscape.com
285da5c5be adding test cases for form controls
git-svn-id: svn://10.0.0.236/trunk@51526 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 12:46:13 +00:00
braddr%puremagic.com
2e3aacd5dd Change NS_COMFALSE to NS_ERROR_INVALID_ARG. Every caller of LookupName
tests explicitly for NS_OK currently.
r=sleestack


git-svn-id: svn://10.0.0.236/trunk@51525 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 08:03:15 +00:00
briano%netscape.com
3e0f0a58b5 Automated update
git-svn-id: svn://10.0.0.236/trunk@51524 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 07:15:11 +00:00
ramiro%fateware.com
a5d3f6cc70 Removing the badly rotten MOZ_STRIP_NOT_EXPORTED hack. We now have a better
way to accomplish the same thing using linker version scripts.
r=cls@seawood.org


git-svn-id: svn://10.0.0.236/trunk@51521 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 07:11:43 +00:00
braddr%puremagic.com
5d7d8cded2 Change NS_COMFALSE to NS_ERROR_ABORT throughout the space manager.
r=smfr for these two files, and r=scc for the previous file


git-svn-id: svn://10.0.0.236/trunk@51520 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 06:49:50 +00:00
dp%netscape.com
7162f4cdbb bug# 9221 Fixing autoreg terminating on bad aliases. We now let it go
as far as possible ignoring errors. r=sfraser


git-svn-id: svn://10.0.0.236/trunk@51519 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 06:32:26 +00:00
rpotts%netscape.com
c6e185762b Fix build bustage on platforms that require full infor for nsCOMPtrs...
git-svn-id: svn://10.0.0.236/trunk@51518 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:56:19 +00:00
ramiro%fateware.com
4b4d193abc More rpm work in progress. Work around some bugs in rules.mk.
git-svn-id: svn://10.0.0.236/trunk@51517 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:55:29 +00:00
braddr%puremagic.com
ef38d2fd9c Change NS_COMFALSE instances to NS_ERROR_ABORT's
git-svn-id: svn://10.0.0.236/trunk@51516 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:32:31 +00:00
wtc%netscape.com
e83d506ed5 Removed temporary depend:clean hack.
git-svn-id: svn://10.0.0.236/trunk@51515 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:29:48 +00:00
rpotts%netscape.com
99e00aec99 bug #13054 (r=warren,gagan). Reworked the way requests are sent to the server. Now requests can be of an arbitrary size...
git-svn-id: svn://10.0.0.236/trunk@51514 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:13:01 +00:00
ramiro%fateware.com
dbec4b872f Link in raptorgfx dynamically to make the component properly loadable.
regxpcom was breaking on this one.  r=valeski


git-svn-id: svn://10.0.0.236/trunk@51513 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 05:06:39 +00:00
valeski%netscape.com
aedd1c1253 fixing build warning
git-svn-id: svn://10.0.0.236/trunk@51512 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:56:24 +00:00
valeski%netscape.com
3f594fbcb6 fixing build warning
git-svn-id: svn://10.0.0.236/trunk@51511 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:48:31 +00:00
dp%netscape.com
7da3eadc15 beautify...
git-svn-id: svn://10.0.0.236/trunk@51510 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:47:14 +00:00
valeski%netscape.com
5310cb0ddc removing last reference to nsFtpStreamListenerEvent.h. Actually it was a commented out line.
git-svn-id: svn://10.0.0.236/trunk@51508 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:33:19 +00:00
valeski%netscape.com
3d07f98f12 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@51507 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:32:18 +00:00
sfraser%netscape.com
f90deff3a6 Fixing Mac FTP projects for valeski
git-svn-id: svn://10.0.0.236/trunk@51506 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:24:08 +00:00
valeski%netscape.com
5f29d72129 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@51505 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:22:54 +00:00
valeski%netscape.com
d1271b7aa4 adding connection cache interface
git-svn-id: svn://10.0.0.236/trunk@51504 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:11:12 +00:00
valeski%netscape.com
455aa3e358 14659, r=dougt. FTP now uses xpcom proxies to send stream listener notifications back to the channel thread. it also uses them to access connections from the protocol handler cache.
git-svn-id: svn://10.0.0.236/trunk@51503 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:10:46 +00:00
valeski%netscape.com
77339b5eec 17039, r=dougt. Releasing QI'd proxy object was causing a crash. this is a temp work around.
git-svn-id: svn://10.0.0.236/trunk@51502 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:07:53 +00:00
troy%netscape.com
3a327d90e7 Fixed compiler warning about unused variable
git-svn-id: svn://10.0.0.236/trunk@51501 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 04:01:23 +00:00
rods%netscape.com
f690c63c37 Changed the parameter of the CalcNavQuirksSize to take the input spec instead of the length
not it properly calculates the number of cols and rows when in NavQuiks mode
r=kmcclusk, part of bug 7461


git-svn-id: svn://10.0.0.236/trunk@51498 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 03:14:03 +00:00
ramiro%fateware.com
21e92e4270 Made the spec file actually work. Not part of SeaMonkey.
git-svn-id: svn://10.0.0.236/trunk@51497 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:55:21 +00:00
ramiro%fateware.com
36b1b32126 Fixed the mozilla script. Not part of anything.
git-svn-id: svn://10.0.0.236/trunk@51496 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:54:23 +00:00
kipp%netscape.com
1a6f5307c4 r=pavlov; fixed up prioritization of the plevent queue so that it's lower than the normal priority; this fixes UI starvation on long document loads AND lets timers through so that painting works (bugs 7455, 6048, etc.)
git-svn-id: svn://10.0.0.236/trunk@51495 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:47:02 +00:00
tbogard%aol.net
e68aa79d1d Added building of the DLL.
git-svn-id: svn://10.0.0.236/trunk@51494 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:36:35 +00:00
tbogard%aol.net
1709ffcde6 Framed out nsWebBrowser. Added nsCWebBrowser definition. Setup to build library.
git-svn-id: svn://10.0.0.236/trunk@51493 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:35:18 +00:00
tbogard%aol.net
e598aadeba Fixed some syntax errors.
git-svn-id: svn://10.0.0.236/trunk@51492 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:32:28 +00:00
tbogard%aol.net
b577f2a1bc Framed out nsWebBrowserSetup. Added nsCWebBrowserSetup specification. Setup building of the library.
git-svn-id: svn://10.0.0.236/trunk@51491 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:30:51 +00:00
tbogard%aol.net
6408004f20 Fixed the naming.... Added some comments.
git-svn-id: svn://10.0.0.236/trunk@51490 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:29:29 +00:00
tbogard%aol.net
ee49ae552f Added nsCHTMLDocShell.
git-svn-id: svn://10.0.0.236/trunk@51489 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:27:42 +00:00
tbogard%aol.net
3dc8aba7a4 Added a C++ include of nsIPresContext.h
git-svn-id: svn://10.0.0.236/trunk@51488 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:26:35 +00:00
sspitzer%netscape.com
6eb15ceb38 add pref-mailnews.js, which has the necessary (but currently not working) JS for the color picker.
rewrite the xul so that the html select heeds the quote prefs.  (#15230)

use a color picker instead of an empty html select.


git-svn-id: svn://10.0.0.236/trunk@51487 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:10:49 +00:00
sspitzer%netscape.com
0cfb0a45bd make the PrefWindow work for html select dom elements, instead of just html input dom elements.
right now, it only works for int prefs.  fix #15230, heed and reflect the quoted style and quoted size prefs
in the html select widget in pref-mailnews.xul.

rewrite the html select elements in the pref xul, to work correctly.
remove unused, commented out xul to avoid confusion.

add new option for "yesterday" for the news offline download pref.
use nsCOMPtr. use PR_snprintf() to avoid potential buffer overruns.
use #defines to clean up the code.  use PR_sscanf instead of sscanf.

r=mscott


git-svn-id: svn://10.0.0.236/trunk@51486 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:09:18 +00:00
troy%netscape.com
54572af2e6 r=karnaze@netscape.com
Save 8 bytes per table cell frame by eliminating mCollapseOffset and
using a frame property instead.


git-svn-id: svn://10.0.0.236/trunk@51485 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 02:06:22 +00:00
bienvenu%netscape.com
de04e9ade9 always update folders when clicking on them r=putterman
git-svn-id: svn://10.0.0.236/trunk@51484 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:59:50 +00:00
amusil%netscape.com
d522c5e798 Changed FALSE to XP PR_FALSE
git-svn-id: svn://10.0.0.236/trunk@51483 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:54:36 +00:00
brendan%mozilla.org
9ef594d4bf Avoid gratuitous initialization and extra sets of ok (r=shaver@mozilla.org).
git-svn-id: svn://10.0.0.236/trunk@51482 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:44:47 +00:00
scc%netscape.com
ef634d5f6b remove nsIVariant.h and nsVariant.cpp as per bug #16987 and changes already in for Unix (thanks brad) and Mac, r=danm
git-svn-id: svn://10.0.0.236/trunk@51481 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:33:03 +00:00
endico%mozilla.org
49ce32b0ec oops forgot to add the newsbot directory to the path "../newsbot/newsbot.html",
git-svn-id: svn://10.0.0.236/trunk@51480 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:32:59 +00:00
alecf%netscape.com
11dd83ae66 update status
git-svn-id: svn://10.0.0.236/trunk@51479 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:27:08 +00:00
slamm%netscape.com
242640cfa1 Get the relative prefix for the static page correct.
git-svn-id: svn://10.0.0.236/trunk@51478 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:23:48 +00:00
amusil%netscape.com
547d0559fa Address book fix. DB file now gets closed in the destructor. Reviewed by bienvenu.
git-svn-id: svn://10.0.0.236/trunk@51477 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:18:42 +00:00
wtc%netscape.com
89df62c930 Bugsplat bug #366500: use the default, PRLock-based atomic stack
implementation on OSF1. r=larryh,srinivas@netscape.com.
Modified files: _osf1.h, osf1.c.


git-svn-id: svn://10.0.0.236/trunk@51476 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:10:00 +00:00
alecf%netscape.com
ab99f0ec36 nsIModulize mime emitters - porkjockey work, r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@51475 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:05:04 +00:00
dp%netscape.com
f7af54f40f bug# 15046 Preventing deletion of dll when getfactory fails. r=shaver,kipp
git-svn-id: svn://10.0.0.236/trunk@51474 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:04:16 +00:00
dp%netscape.com
51386ed041 Fixed warning of unused variable.
git-svn-id: svn://10.0.0.236/trunk@51473 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:02:29 +00:00
alecf%netscape.com
6b7dfaa5e0 start to consolidate URL and URI parsing into the base classes: remove a whole bunch of protocol-specific code in favor of generalization
basically, more fixes for #14437
r=scottip


git-svn-id: svn://10.0.0.236/trunk@51471 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 01:02:08 +00:00
dougt%netscape.com
a0ac058370 fix for bug 13894. Hooks up the notification from necko. r=cathleen.
git-svn-id: svn://10.0.0.236/trunk@51470 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:53:01 +00:00
endico%mozilla.org
596192f62c the names of the files to be wrapped must be given relative to the root of the tree. in this case: "../newsbot/newsbot.html"
git-svn-id: svn://10.0.0.236/trunk@51469 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:45:56 +00:00
evaughan%netscape.com
997f5f6291 Fixed bug 9442. reviewed by Hyatt.
git-svn-id: svn://10.0.0.236/trunk@51468 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:38:22 +00:00
mjudge%netscape.com
64c9150aab massive checkin for underlying implementation of key handling from javascript and home/end breakage and.. selecting around NON-text frames. like arrowing around an image for example. 16636,16655 and another i cannot find. r=kin r=hyatt a=me
git-svn-id: svn://10.0.0.236/trunk@51467 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:19:18 +00:00
endico%mozilla.org
6cb5db5eff escape quotes around ALIGN=\"right\"
git-svn-id: svn://10.0.0.236/trunk@51466 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:14:43 +00:00
kipp%netscape.com
845644f460 Alloc another iid
git-svn-id: svn://10.0.0.236/trunk@51465 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:12:31 +00:00
scc%netscape.com
9d0d4095c3 remove "nsVariant.cpp" from the project, and "nsIVariant.h" from the MANIFEST, as per bug #16987, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@51464 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:12:03 +00:00
kipp%netscape.com
b9ad416be8 Clean up other dirt
git-svn-id: svn://10.0.0.236/trunk@51463 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:11:54 +00:00
kipp%netscape.com
7944188008 Whoops, missed this during my checkin :-(
git-svn-id: svn://10.0.0.236/trunk@51462 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:11:31 +00:00
davidm%netscape.com
302f64fb59 2425 [PP] Mac: Apprunner doesn't gracefully quit at shutdown or r
r = sdagley


git-svn-id: svn://10.0.0.236/trunk@51461 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-22 00:01:45 +00:00
beard%netscape.com
56b367cb81 added parent links, so you can go to the objects referring to a given link.
git-svn-id: svn://10.0.0.236/trunk@51460 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:58:28 +00:00
beard%netscape.com
dfaa46c552 broke out from leaksoup.java so it can be used by tracesoup.
git-svn-id: svn://10.0.0.236/trunk@51459 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:55:25 +00:00
beard%netscape.com
f8e8fae5ce annotates refcount traces with blame/lxr URLs
git-svn-id: svn://10.0.0.236/trunk@51458 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:54:39 +00:00
endico%mozilla.org
62819eff8a align bottom row to the right. <TR ALIGN="right"> doesn't seem to work in mozilla
git-svn-id: svn://10.0.0.236/trunk@51457 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:52:41 +00:00
terry%mozilla.org
575dc47298 Make "checkins in last 7 days" link work better in worlds with
multiple repositories.


git-svn-id: svn://10.0.0.236/trunk@51454 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:42:39 +00:00
nisheeth%netscape.com
9888b796b2 Fixing Unix warnings. r=harishd
git-svn-id: svn://10.0.0.236/trunk@51452 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:27:02 +00:00
akkana%netscape.com
0ab9b94827 Fix a runtime error message -- r= (and suggested by) dp
git-svn-id: svn://10.0.0.236/trunk@51451 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 23:12:31 +00:00
karnaze%netscape.com
9ecfbb54e1 new regression tests
git-svn-id: svn://10.0.0.236/trunk@51450 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:52:00 +00:00
terry%mozilla.org
2df0186c7f Wasn't working right with multiple repositories.
git-svn-id: svn://10.0.0.236/trunk@51449 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:51:50 +00:00
wtc%netscape.com
096120daf6 Fixed a small mistake in the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@51448 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:51:06 +00:00
danm%netscape.com
4e8be85212 removing (unused) references to nsIWebShell.h. requested by buster@netscape.com, bug 16510, r:me
git-svn-id: svn://10.0.0.236/trunk@51447 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:47:50 +00:00
leaf%mozilla.org
b541cbb7e8 adding !endif to complete !if
git-svn-id: svn://10.0.0.236/trunk@51446 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:40:16 +00:00
endico%mozilla.org
a85345a59b get rid of the <DIV>s and <SPAN>s since we have the rdf file now. the <SPAN> around the article link was messing up the link because they were intertwined <SPAN><A></SPAN>text</A>
git-svn-id: svn://10.0.0.236/trunk@51445 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:38:21 +00:00
wtc%netscape.com
358dfee800 Bugsplat bug #365031: moved the definition of PRStack from pratom.h
to primpl.h so that it is not exported.
Bugsplat bug #364813: declare 'prstk_head' volatile, to prevent compiler
from optimizing away references in a loop.
r=larryh,srinivas@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51444 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:36:35 +00:00
karnaze%netscape.com
a2ae4b6656 bug 5799 - width of auto width table considers percentage cells when they are small relative to the rest of the table. r=dcone
git-svn-id: svn://10.0.0.236/trunk@51443 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:36:21 +00:00
karnaze%netscape.com
ed05316f46 bug 12012 - RemoveFrame was using stale style display. r=dcone
git-svn-id: svn://10.0.0.236/trunk@51442 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:33:30 +00:00
mscott%netscape.com
83fec44fd6 Bug #16538 --> FetchMessage takes a stream listener and we should try to create a necko channel for the url,
and call AsyncRead on the channel, passing in the stream listener instead of trying to run the imap url
through the normal means. This fixes the problem where the channel wasn't properly initialized when
copying a imap message to a local folder.
r=jefft,bienvenu


git-svn-id: svn://10.0.0.236/trunk@51441 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:33:24 +00:00
wtc%netscape.com
646d7cec23 Temporary depend:clean hack.
git-svn-id: svn://10.0.0.236/trunk@51440 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:32:14 +00:00
mscott%netscape.com
fb7a12a36e Bug #16538 --> we need to add nsIStreamObserver to the QI method for this class in order to avoid an assertion
with my fix to bug #16538. I also replaced the handle rolled QueryInterface method with macro.
r=jefft,bienvenu


git-svn-id: svn://10.0.0.236/trunk@51438 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:31:27 +00:00
wtc%netscape.com
c2f76119ac Bugzilla bug #16994: fixed compilation problems on platforms without
long longs. r=larryh@netscape.com.  Thanks to Chris Seawood
<cls@seawood.org> for the bug report.


git-svn-id: svn://10.0.0.236/trunk@51437 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:28:14 +00:00
cata%netscape.com
dd434afd5e bug #16754, r=erik, fixing memory leak
git-svn-id: svn://10.0.0.236/trunk@51436 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:25:44 +00:00
braddr%puremagic.com
8c0a2f84e7 Remove references to nsVariant.cpp and nsIVariant.h.
r=scc


git-svn-id: svn://10.0.0.236/trunk@51435 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:24:17 +00:00
bienvenu%netscape.com
f52e7bdb86 fix syncing of imap flags change to db r=mscott,16839
git-svn-id: svn://10.0.0.236/trunk@51434 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:23:25 +00:00
pnunn%netscape.com
62438f020b bug#13505. Replacing str functions with nsCRT functions, nspr functions.
pnunn@netscape.com  r:jfrancis@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51433 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:23:24 +00:00
rods%netscape.com
c33c65e90f changed the padding so it is adding in the correct left right instead of top bottom
r=kmcclusk, Bug #16936


git-svn-id: svn://10.0.0.236/trunk@51432 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:22:32 +00:00
bienvenu%netscape.com
612130b82a check for null when marking header read, r=mscott
git-svn-id: svn://10.0.0.236/trunk@51431 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:22:07 +00:00
jst%citec.fi
953ba7bb6a Make printing use only enabled stylesheets. No bug, r=kipp@netscape.com and dcone@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@51430 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:20:37 +00:00
rogerl%netscape.com
605c46e143 Loop from 1 instead of 0 since the test result parsing gets messed up by
the null strings not containing 'PASSED'. The 0 case isn't all that
important for upperCase testing.


git-svn-id: svn://10.0.0.236/trunk@51429 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:18:52 +00:00
terry%mozilla.org
3b70db325d Add some more debugging output.
git-svn-id: svn://10.0.0.236/trunk@51428 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:04:13 +00:00
ftang%netscape.com
908e81fe11 change the input method highligh code from 2 style to 4 styles. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@51427 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 22:01:18 +00:00
jevering%netscape.com
1e20da8f66 Enabling boehm leak detector, r=dp bug#15906
git-svn-id: svn://10.0.0.236/trunk@51426 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:59:15 +00:00
jevering%netscape.com
42df555a0b Enabling GC detector, r=dp, bug #15906
git-svn-id: svn://10.0.0.236/trunk@51425 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:56:47 +00:00
srinivas%netscape.com
52c617580c Invoke the native acknowledge notify routine only when queue is non-empty.
Checkin for kipp@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@51424 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:52:02 +00:00
akkana%netscape.com
e6c9a60dab 16706: Call the rules code to delete the bogus node before inserting html, to fix the new mail reply code. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@51423 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:51:47 +00:00
kipp%netscape.com
adc0fff019 Added two new tests
git-svn-id: svn://10.0.0.236/trunk@51422 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:46:52 +00:00
endico%mozilla.org
f535016cde oops use '&', not '%'
git-svn-id: svn://10.0.0.236/trunk@51421 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:44:39 +00:00
cata%netscape.com
6499857292 bug #15690, r=ftang, removing bogus rules which were affecting the menu template
git-svn-id: svn://10.0.0.236/trunk@51420 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:42:40 +00:00
danm%netscape.com
5ecf5615a7 observe EventQueue creation and deletion. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51419 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:36:25 +00:00
ramiro%fateware.com
1a2e9974f2 Use "(NSINSTALL) -D" instead of direct "mkdir" r=shaver.
git-svn-id: svn://10.0.0.236/trunk@51418 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:35:37 +00:00
danm%netscape.com
49ae6251f8 adding method ListenToEventQueue (moving EventQueue observation from appshells to appshellservice) r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51417 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:34:57 +00:00
dp%netscape.com
32ccfffb02 bug#14656 Circular release problem of component manager. Fixed by
adding shutdown() method that gets called before the last
release. Enabled only for dp & shaver until we resolve js coredump.


git-svn-id: svn://10.0.0.236/trunk@51416 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:34:39 +00:00
dp%netscape.com
a87080011d Making sample better by using COMPtr r=waterson
git-svn-id: svn://10.0.0.236/trunk@51415 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:32:17 +00:00
dp%netscape.com
480412f60c Addding xpcom init and shutdown. r=waterson
git-svn-id: svn://10.0.0.236/trunk@51414 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:31:53 +00:00
nisheeth%netscape.com
dd57891add Install util.lib to the dist directory in the libs phase rather than the install phase.
git-svn-id: svn://10.0.0.236/trunk@51413 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:31:26 +00:00
endico%mozilla.org
35cedcf521 html escape gt and lt symbols in the View Article url
git-svn-id: svn://10.0.0.236/trunk@51412 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:22:44 +00:00
rhp%netscape.com
7889a5e148 Fix for duplicate body text in Multipart related message - Bug #16992 - r: mscott
git-svn-id: svn://10.0.0.236/trunk@51411 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:18:54 +00:00
mcafee%netscape.com
220ec361b8 Fixing evaughan's last change. r=law
git-svn-id: svn://10.0.0.236/trunk@51410 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:14:59 +00:00
brade%netscape.com
1706386f49 add nsTextContentDataChange.cpp a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@51409 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:14:19 +00:00
ramiro%fateware.com
5244db774f More rpm packaging work in progress. Not part of anything.
git-svn-id: svn://10.0.0.236/trunk@51408 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:12:50 +00:00
edburns%acm.org
24e8fb82df Bug: 15606
r=shaver
approver=av

I would like to take the time to personally thank Mike Shaver for all the hard
work he has done to make this bugfix possible.


git-svn-id: svn://10.0.0.236/trunk@51407 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:09:21 +00:00
rickg%netscape.com
3e6139004b changed default font-size for viewsource; r=none;
git-svn-id: svn://10.0.0.236/trunk@51406 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:05:17 +00:00
mcafee%netscape.com
e9e6fdee20 Backing out evaughan's change which broke linux/solaris. a=mcafee
git-svn-id: svn://10.0.0.236/trunk@51405 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 21:05:02 +00:00
troy%netscape.com
46c5c77d91 Removed unused 4-byte "mMaxElementSize" member data
git-svn-id: svn://10.0.0.236/trunk@51404 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:51:04 +00:00
kipp%netscape.com
e4442e8177 r=troy; added nsTextContentChangeData to the build
git-svn-id: svn://10.0.0.236/trunk@51403 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:48:43 +00:00
kipp%netscape.com
1e9fb71c5d Support navigators built-in image types internal-gopher-*
git-svn-id: svn://10.0.0.236/trunk@51402 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:48:04 +00:00
kipp%netscape.com
e5f0e5328b Fixed percolation of nbsp's into the transformed buffer (bug 16886)
git-svn-id: svn://10.0.0.236/trunk@51401 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:47:36 +00:00
kipp%netscape.com
c54e23defe r=troy; Optimize append text reflows to only reflow the new part of the text
git-svn-id: svn://10.0.0.236/trunk@51400 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:46:05 +00:00
kipp%netscape.com
fee0551895 moved debug logic for dumping reflow commands so that we can dump them without requiring the incremental reflow verification logic to run
git-svn-id: svn://10.0.0.236/trunk@51399 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:45:39 +00:00
kipp%netscape.com
6b290bc673 r=troy; bug: 15153; fixed problem with style-change reflows not being propogated properly
git-svn-id: svn://10.0.0.236/trunk@51398 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:44:58 +00:00
kipp%netscape.com
57dac66f2e r=troy; bugs: 13196; fixed floating table reflow issues found in 13196 by storing floater max-element-size for later retrieval
git-svn-id: svn://10.0.0.236/trunk@51397 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:44:22 +00:00
locka%iol.ie
9ff1e618b5 Changed scope of some helper methods
git-svn-id: svn://10.0.0.236/trunk@51396 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:44:06 +00:00
kipp%netscape.com
88d3d6afe1 r=troy; bugs: 15153, 13196; fixed problem with style-change reflows not being propogated properly; also fixed floating table reflow issues found in 13196 by storing floater max-element-size for later retrieval
git-svn-id: svn://10.0.0.236/trunk@51395 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:43:48 +00:00
kipp%netscape.com
6156c0fb7a Export the gopher images
git-svn-id: svn://10.0.0.236/trunk@51394 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:42:18 +00:00
kipp%netscape.com
199585b860 Use nsTextContentChangeData to pass down to the reflow logic the effect on the text
git-svn-id: svn://10.0.0.236/trunk@51393 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:40:51 +00:00
kipp%netscape.com
6ef7b73278 new file for text reflow optimiziation
git-svn-id: svn://10.0.0.236/trunk@51392 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:40:25 +00:00
bienvenu%netscape.com
90299835ef fix addrbook mem leaks and mismatched delete r=mscott\
git-svn-id: svn://10.0.0.236/trunk@51391 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:36:02 +00:00
bienvenu%netscape.com
9b4f0c0032 fix msg compose and send mem leaks, ipw, and mismatched delete r=mscott
git-svn-id: svn://10.0.0.236/trunk@51390 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:35:26 +00:00
rickg%netscape.com
eb5f25dfe9 changed default font-size for viewsource; r=none;
git-svn-id: svn://10.0.0.236/trunk@51389 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:34:02 +00:00
locka%iol.ie
f4438b41e1 Added support for drag and drop of Internet Shortcut files
git-svn-id: svn://10.0.0.236/trunk@51388 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:32:52 +00:00
kipp%netscape.com
90d4423420 r=troy; Added a property for max-element-size storage for fixing bug 13196
git-svn-id: svn://10.0.0.236/trunk@51387 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:23:05 +00:00
kipp%netscape.com
4fe7cefb4a r=troy; Added nsITextContetChangeData to help optimize modifications of large text elements
git-svn-id: svn://10.0.0.236/trunk@51386 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:22:02 +00:00
evaughan%netscape.com
f1d7499417 Fixed some warnings: reviewed -hyatt
git-svn-id: svn://10.0.0.236/trunk@51385 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 20:17:51 +00:00
ramiro%fateware.com
0fed380744 Fix #ifdef DEBUG_ramiro build bustage.
git-svn-id: svn://10.0.0.236/trunk@51384 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 19:56:05 +00:00
matt%netscape.com
426f9c3ea3 Adding manual proxies -r by bill
git-svn-id: svn://10.0.0.236/trunk@51383 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 19:53:19 +00:00
ssu%netscape.com
f923fbd1b1 fixed bug #15309. r=dbragg. it now creates an empty Plugins directory within Seamonkey. Not part of tinderbox. would only affect windows.
git-svn-id: svn://10.0.0.236/trunk@51382 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 19:50:36 +00:00
ramiro%fateware.com
ced5d07b70 Fix #ifdef DEBUG_ramiro build bustage.
git-svn-id: svn://10.0.0.236/trunk@51381 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 19:30:29 +00:00
selmer%netscape.com
206cd25152 Fix enabling when last NCIfile is deleted
git-svn-id: svn://10.0.0.236/trunk@51379 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 18:39:26 +00:00
terry%mozilla.org
49666a52cb Fix perl warning.
git-svn-id: svn://10.0.0.236/trunk@51378 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 18:19:48 +00:00
kipp%netscape.com
da5a072040 new
git-svn-id: svn://10.0.0.236/trunk@51374 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 16:20:53 +00:00
briano%netscape.com
363f0cb92d Automated update
git-svn-id: svn://10.0.0.236/trunk@51373 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 15:00:22 +00:00
ramiro%fateware.com
a3613fc446 Work in progress to add reasonable rpm packaging support for the beast.
NOT PART OF THE SEAMONKEY BUILD.


git-svn-id: svn://10.0.0.236/trunk@51372 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 14:57:38 +00:00
ssu%netscape.com
d5686c3a21 fixing bug #16470. Not part of Tinderbox. Not part of seamonkey core code. r=pavlov. Would affect only windows.
git-svn-id: svn://10.0.0.236/trunk@51371 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 07:24:46 +00:00
tbogard%aol.net
8cf4ca3ed6 Added changes from buster.
git-svn-id: svn://10.0.0.236/trunk@51370 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 06:59:48 +00:00
ssu%netscape.com
ef19fe31d7 removing editor from install build process. Not part of Tinderbox. Not part of seamonkey code. Would affect only windows platforms.
git-svn-id: svn://10.0.0.236/trunk@51369 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 06:44:27 +00:00
tbogard%aol.net
2f9603aabc Added nsITextScroll.idl.
git-svn-id: svn://10.0.0.236/trunk@51368 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 06:41:03 +00:00
pierre%netscape.com
2123a4d227 Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@51367 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 06:40:00 +00:00
tbogard%aol.net
75207bcf9a More changes from buster.
git-svn-id: svn://10.0.0.236/trunk@51366 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:52:54 +00:00
pierre%netscape.com
6b7990dcc7 Enabled MOZ_PERF_METRICS in the Mac build:
- updated DefinesMozilla.h
- fixed stopwatch.cpp
- created libutilIDL.mcp
- added StopWatch exports to libutil.exp
- added xpcom.shlb to libutil.mcp
- added libutil.shlb to htmlparser.mcp, layout.mcp, webshell.mcp


git-svn-id: svn://10.0.0.236/trunk@51365 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:41:45 +00:00
sfraser%netscape.com
68467cb1bb File Removed.
git-svn-id: svn://10.0.0.236/trunk@51364 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:37:53 +00:00
sfraser%netscape.com
7bac435457 Removed nsEditorFactory.cpp and nsEditorShellFactory.cpp which are no longer needed. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@51363 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:37:04 +00:00
sfraser%netscape.com
a627d5676e Removal of calls to PR_MumbleMonitor, which were way too heavy-handed for the job. Replaced with PR_AtomicInc/Decrement. part of module sweep, r=morse, pavlov
git-svn-id: svn://10.0.0.236/trunk@51362 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:36:21 +00:00
pierre%netscape.com
1e94740a0f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51361 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:35:26 +00:00
mcafee%netscape.com
ca26c9bcab Moved to mozilla/tools/tinderbox (client-side script).
git-svn-id: svn://10.0.0.236/trunk@51360 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:20:02 +00:00
mcafee%netscape.com
f7f718532b Added bloat test. Also added --testonly to skip building process. Fixed bloatdiff to put its output to stdout. r=warren
git-svn-id: svn://10.0.0.236/trunk@51359 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:16:54 +00:00
troy%netscape.com
dced08401d r=kipp@netscape.com
Added API to get/set properties on frames. Also changed nsContainerFrame
to use a property to implement the frame overflow list. This saves 4 bytes
per container frames


git-svn-id: svn://10.0.0.236/trunk@51358 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 05:11:43 +00:00
waterson%netscape.com
41c3d0afa5 Fix solaris (and other unsupported platforms).
git-svn-id: svn://10.0.0.236/trunk@51357 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 04:28:07 +00:00
waterson%netscape.com
a8195254ae Change nsTraceRefCnt::WalkTheStack() to accept stream.
git-svn-id: svn://10.0.0.236/trunk@51355 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:45:38 +00:00
sfraser%netscape.com
aed61fd72a Removed an errant semicolon in a IID declaration. r=floppy moose
git-svn-id: svn://10.0.0.236/trunk@51354 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:45:20 +00:00
waterson%netscape.com
035b04b87b Change nsTraceRefcnt::WalkTheStack() to accept stream.
git-svn-id: svn://10.0.0.236/trunk@51353 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:45:12 +00:00
waterson%netscape.com
21abead461 Modify nsTraceRefcnt::WalkTheStack() to accept a stream. Other misc formatting fixup. work really done by beard, r=waterson.
git-svn-id: svn://10.0.0.236/trunk@51352 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:44:37 +00:00
tbogard%aol.net
ce03f0d9f0 More additions suggested by buster. Not all final, still working out the interfaces.
git-svn-id: svn://10.0.0.236/trunk@51351 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:23:31 +00:00
tbogard%aol.net
c8d824834b More changes to the interface. Merging in changes from buster.
git-svn-id: svn://10.0.0.236/trunk@51350 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:01:33 +00:00
tbogard%aol.net
619f3992f7 Added new nsIDocShellContainer.idl to the build list.
git-svn-id: svn://10.0.0.236/trunk@51349 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:01:10 +00:00
tbogard%aol.net
3b01cf0bec First Check-in.
git-svn-id: svn://10.0.0.236/trunk@51348 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 03:00:07 +00:00
nisheeth%netscape.com
205adceff6 Should not affect build. Include stopwatch object code if MOZ_PERF is defined.
git-svn-id: svn://10.0.0.236/trunk@51347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:47:56 +00:00
dveditz%netscape.com
7d2157e059 mac bustage
git-svn-id: svn://10.0.0.236/trunk@51346 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:46:21 +00:00
nisheeth%netscape.com
569e1a2fb1 Fixed warnings. Enabled code to build on UNIX. r=pollmann
git-svn-id: svn://10.0.0.236/trunk@51345 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:32:01 +00:00
endico%mozilla.org
8f060eb994 remove the full path names on newsbot.html and wrapped.html so wrap.pl doesn't add "../" to everything. communicator doesn't mind this but it breaks msie and probably mozilla
git-svn-id: svn://10.0.0.236/trunk@51344 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:30:21 +00:00
briano%netscape.com
4f1d9b3a36 Automated update
git-svn-id: svn://10.0.0.236/trunk@51343 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:15:10 +00:00
nisheeth%netscape.com
3871dd508d Will not affect build. Add support for --enable-perf-metrics autoconf flag that will switch on the reporting of timing information about gecko's layout processes.
git-svn-id: svn://10.0.0.236/trunk@51342 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 02:01:49 +00:00
varada%netscape.com
6475343232 changing all edit fields with browse buttons to non editable scripts
git-svn-id: svn://10.0.0.236/trunk@51341 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:56:54 +00:00
dveditz%netscape.com
92654b5840 Missed a test
git-svn-id: svn://10.0.0.236/trunk@51340 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:47:28 +00:00
selmer%netscape.com
bea6cdd46f Don't need -MDd in CFLAGS
git-svn-id: svn://10.0.0.236/trunk@51339 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:42:48 +00:00
bienvenu%netscape.com
4e7faff324 fix memory leaks and mismatched frees r=jefft
git-svn-id: svn://10.0.0.236/trunk@51338 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:42:00 +00:00
bienvenu%netscape.com
4392913cc3 fix mismatched free
git-svn-id: svn://10.0.0.236/trunk@51337 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:40:08 +00:00
bienvenu%netscape.com
10931ccb41 another memory leak fix for mime
git-svn-id: svn://10.0.0.236/trunk@51336 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:37:03 +00:00
beard%netscape.com
6bfc31a469 fix :: bustage.
git-svn-id: svn://10.0.0.236/trunk@51334 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 01:07:50 +00:00
dveditz%netscape.com
6b0912645b Changing nsFileSpec Copy and Move function names to match their
functionality, and also to free up the namespace for a *real* Copy
and Move that allow renaming the leaf name rather than just copying
into different directories (i.e. to make backup files). r=ssu


git-svn-id: svn://10.0.0.236/trunk@51333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:40:39 +00:00
hoa.nguyen%intel.com
ed3c26548f Optimized decoder. Removed warnings.
git-svn-id: svn://10.0.0.236/trunk@51332 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:17:48 +00:00
beard%netscape.com
a27e6a0c95 when GC_DEBUG is off, try to use GC_malloc_ignore_off_page for large blocks. Since GC_MALLOC always returns cleared blocks, don't bother clearning. r=gordon, bug=15906
git-svn-id: svn://10.0.0.236/trunk@51331 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:17:28 +00:00
dp%netscape.com
af64d101fa Fixed crash on -f file on quit by using async proxy post event as
opposed to calling quit directly. r=dougt


git-svn-id: svn://10.0.0.236/trunk@51330 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:15:30 +00:00
beard%netscape.com
72a36eba4b use nsILeakDetector service. r=gordon, bug=15906
git-svn-id: svn://10.0.0.236/trunk@51329 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:13:07 +00:00
karnaze%netscape.com
fb5466f5e4 bug 14915 - fix crash.
git-svn-id: svn://10.0.0.236/trunk@51328 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:11:55 +00:00
beard%netscape.com
b582d5259b added GC_address_to_source, MWUnmangle exports. r=gordon, bug=15906
git-svn-id: svn://10.0.0.236/trunk@51327 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:09:14 +00:00
beard%netscape.com
eb87b84391 added nsEnvironment.cpp. r=gordon, bug=15906
git-svn-id: svn://10.0.0.236/trunk@51326 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:08:13 +00:00
rods%netscape.com
3133a0f78a removed the PR_MAX forcing the y offset to be zero or greater. Not sure why it was doing this.
r=kmcclusk Bug #16152


git-svn-id: svn://10.0.0.236/trunk@51325 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:06:23 +00:00
beard%netscape.com
abf884842d added GC_address_to_source, MWUnmangle stubs. r=gordon, bug=15906
git-svn-id: svn://10.0.0.236/trunk@51324 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:06:13 +00:00
sspitzer%netscape.com
81245102fa fix for #15231, r=mscott. get the fixed_width pref to stick.
the problem was we had it as an int pref, when it was a bool pref.


git-svn-id: svn://10.0.0.236/trunk@51323 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:05:50 +00:00
hoa.nguyen%intel.com
4b7e9a7a5a Optimized decoder.
git-svn-id: svn://10.0.0.236/trunk@51322 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:05:16 +00:00
beard%netscape.com
b12276db98 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51321 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:05:05 +00:00
hoa.nguyen%intel.com
b52252a4aa Correctly check for the HZ converter engine state.
git-svn-id: svn://10.0.0.236/trunk@51320 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-21 00:03:52 +00:00
nhotta%netscape.com
dbcb2cc74d Fix a warning, it was assigning NULL to char type, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@51319 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:55:31 +00:00
nhotta%netscape.com
3e99f5b0b8 Adding a wrapper function for a new i18n interface, part of bug fix 15475, r=rhp.
git-svn-id: svn://10.0.0.236/trunk@51318 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:51:25 +00:00
cmanske%netscape.com
661bf267b9 Fixed bug 16923. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@51317 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:50:20 +00:00
rods%netscape.com
dd80c9dd09 added check for null frame. The child frame can be null when a comment node exists as
one of the children of the select. r=kmcclusk, Bug #16355


git-svn-id: svn://10.0.0.236/trunk@51316 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:35:38 +00:00
endico%mozilla.org
48d6ca301e clairify that the 'mozilla' module contains the entire 'current' repository, not everything including all the branches.
git-svn-id: svn://10.0.0.236/trunk@51315 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:30:50 +00:00
pierre%netscape.com
a7cee2ccb1 #15636 "Cleanup build warnings". Some compilers issued a "hidden virtual method" warning because only one of the two implementations of GetDesiredSize() was overridden. r=slamm.
git-svn-id: svn://10.0.0.236/trunk@51314 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:30:29 +00:00
hoa.nguyen%intel.com
cfe11b1fd4 Changed from char types to PRUint8.
git-svn-id: svn://10.0.0.236/trunk@51313 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:21:56 +00:00
wtc%netscape.com
e0c8d6770c Made comments match code.
git-svn-id: svn://10.0.0.236/trunk@51312 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:19:31 +00:00
harishd%netscape.com
6cd114ddff Fix for the bustage.
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@51311 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:14:50 +00:00
wtc%netscape.com
eacb3c22ae Bugsplat bug #366840: PR_StringToNetAddr needs to set the address family
field of the PRNetAddr structure. Added a new test str2addr.c for this
bug. r=larryh@netscape.com
Modified files: prnetdb.c, pr/tests/runtests.ksh, pr/tests/Makefile,
    pr/tests/Makefile.in
Added file: pr/tests/str2addr.c


git-svn-id: svn://10.0.0.236/trunk@51310 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 23:07:38 +00:00
mcafee%netscape.com
9fa424b571 Moving bloatdiff.pl from webtools/tinderbox (server) to here (client).
git-svn-id: svn://10.0.0.236/trunk@51309 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:35:48 +00:00
harishd%netscape.com
676f148787 Fixed Bug 16285 - Replaced char* with nsCAutoString for mBuffer.
This fixes the crash on doing Ctrl-c in editor.

r=akkana


git-svn-id: svn://10.0.0.236/trunk@51308 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:35:12 +00:00
harishd%netscape.com
8cccb6a457 Fixed Bug 16014 - Rectifed a glitch in illegal-content handling code.
r=pollmann


git-svn-id: svn://10.0.0.236/trunk@51307 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:32:10 +00:00
alecf%netscape.com
e0db5266e6 turn news into a nsIModule
r=sspitzer
(porkjockey work)


git-svn-id: svn://10.0.0.236/trunk@51306 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:30:02 +00:00
akkana%netscape.com
49f4e5d7aa 16726: don't print the doctype information in plaintext output. r=cmanske
git-svn-id: svn://10.0.0.236/trunk@51305 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:27:14 +00:00
edburns%acm.org
25735aa125 bug: 16842
reviewer: edburns
approver: edburns

Changed raptor to gk in makefile as appropriate.


git-svn-id: svn://10.0.0.236/trunk@51304 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 22:02:34 +00:00
rods%netscape.com
54bbcb0dfd added code to the destructor to make sure the list get rolled up.
r=kmcclusk bug 15912


git-svn-id: svn://10.0.0.236/trunk@51303 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:59:04 +00:00
alecf%netscape.com
8d5865d224 clean up nsIMsgFolder API in preparation for fixing a number of bugs, most importantly #14437
r=scottip


git-svn-id: svn://10.0.0.236/trunk@51302 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:58:21 +00:00
dmose%mozilla.org
9cdfa509fd macfe lives on in the MozillaClassic branch, but there's no longer a need for it on the trunk. a=smfr@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51301 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:53:27 +00:00
endico%mozilla.org
47e168172c add m10 tree for the Design Patterns contest
git-svn-id: svn://10.0.0.236/trunk@51300 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:52:08 +00:00
endico%mozilla.org
3d25df00ed merge old changes from when we moved to komodo
git-svn-id: svn://10.0.0.236/trunk@51299 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:48:49 +00:00
mscott%netscape.com
2faa0c76f6 optimize nsImapBuildMessageURI to use a nsCAutoString. This saves us an extra allocation of the string later on.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51298 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:41:18 +00:00
scc%netscape.com
a83d58083d Now InstallFromManifest "xpcom/components/MANIFEST_COMPONENTS" to get some javascript installed in the apps "Components" directory. This corresponds to work shaver has already done on the other platforms. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@51297 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:31:46 +00:00
srinivas%netscape.com
ecb0569df7 The "-mno-486" compiler option is no longer relevant and not supported
in new gcc compilers (v2.95). Bug #15975.


git-svn-id: svn://10.0.0.236/trunk@51296 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:19:53 +00:00
bienvenu%netscape.com
0169c2df6e more memory leak fixes, r=mscott
git-svn-id: svn://10.0.0.236/trunk@51295 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:18:25 +00:00
bienvenu%netscape.com
3d780d6859 fix rdf resource value leaks r=jefft
git-svn-id: svn://10.0.0.236/trunk@51294 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:12:00 +00:00
scc%netscape.com
b029ca73a2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51293 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:03:21 +00:00
mscott%netscape.com
899ebce13b Bug #16814 --> i found a problem which may be causing us to block in the imap protocol when downloading larger
attachments or images. Basically, the nsMsgLineStreamBuffer class had a fence post bug when determining
if it had enough room to read in more bytes. If the # of free bytes in the stream buffer was 1 byte and we
had just one byte of data left to read in from the incoming stream, we would fail to read in that one byte.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51292 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:01:58 +00:00
ftang%netscape.com
c683bbd987 do not do TypedText if the character code is 0. r=brade. Fix bug 16570 and 16811
git-svn-id: svn://10.0.0.236/trunk@51291 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:01:20 +00:00
bienvenu%netscape.com
d6cfea3e69 fix mime memory leaks, mostly strings, r=rhp
git-svn-id: svn://10.0.0.236/trunk@51290 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 21:00:02 +00:00
waldemar%netscape.com
28941388eb Changed bottom expressions to syntax error throws
git-svn-id: svn://10.0.0.236/trunk@51289 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:58:07 +00:00
waldemar%netscape.com
8a4ea2ca19 Added upper-case Greek letters
git-svn-id: svn://10.0.0.236/trunk@51288 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:57:37 +00:00
danm%netscape.com
fe06bcf74b no longer used
git-svn-id: svn://10.0.0.236/trunk@51287 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:51:16 +00:00
bienvenu%netscape.com
21c7cb6d78 fix memory leaks of uri's and a progress string r=mscott
git-svn-id: svn://10.0.0.236/trunk@51286 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:49:45 +00:00
briano%netscape.com
bd0b8a085b Automated update
git-svn-id: svn://10.0.0.236/trunk@51285 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:45:41 +00:00
bienvenu%netscape.com
004de2f422 fix memory leaks in address book r=mscott
git-svn-id: svn://10.0.0.236/trunk@51284 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:41:27 +00:00
mcafee%netscape.com
8d734dfcc2 Adding support for --enable-logrefcnt; off by default in optimized builds, we need this for tinderbox. code=dp, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@51283 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:40:01 +00:00
law%netscape.com
64d7ceb5a2 Fix for bug #9131; add dependent=yes feature on find dialog so it behaves properly; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51282 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:36:08 +00:00
bienvenu%netscape.com
f1140e8c6e fix memory leak of notification uri r=dougt
git-svn-id: svn://10.0.0.236/trunk@51281 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:30:42 +00:00
akkana%netscape.com
b05d4de40d 15777: Don't declare the same function-static symbol twice in the same file, because some versions of gcc can't deal with it. r=mcafee
git-svn-id: svn://10.0.0.236/trunk@51280 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:20:38 +00:00
mcafee%netscape.com
f097b7a2a4 Reviewing and applying pavlov's fix for extra row in color palette. (14315)
git-svn-id: svn://10.0.0.236/trunk@51279 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:14:13 +00:00
akkana%netscape.com
2a83eeebf7 16795: Make arrow keys work again.
The gtk event for arrow keys has length=0, but we still need to generate
KeyDown, KeyPress, etc. events for these keys.  r=pavlov


git-svn-id: svn://10.0.0.236/trunk@51277 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:04:40 +00:00
dougt%netscape.com
48fd2584d2 removing an extra release (16832)
Now doing a QI when getting a proxy so that the IID matches the |in| real
object.

r=jud


git-svn-id: svn://10.0.0.236/trunk@51276 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:04:20 +00:00
akkana%netscape.com
60d8465f63 16844: modifier key presses shouldn't insert anything into the editor. r=brade
git-svn-id: svn://10.0.0.236/trunk@51275 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 20:02:44 +00:00
varada%netscape.com
459ff2f953 fixes for bug #14014 changed EditBox types to Text in the widgets
git-svn-id: svn://10.0.0.236/trunk@51274 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 19:59:00 +00:00
putterman%netscape.com
3a0d0bf033 Fixes 15771 and 10603. Scrolling up in tree widget doesn't lose treeitems. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@51273 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 19:48:58 +00:00
bienvenu%netscape.com
6b88f85516 fix memory leak of literal string creating rdf node r=scottip
git-svn-id: svn://10.0.0.236/trunk@51272 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 19:06:53 +00:00
scc%netscape.com
0d129de64e eliminate warnings, r=shaver
git-svn-id: svn://10.0.0.236/trunk@51271 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:59:00 +00:00
waterson%netscape.com
95123cee1f Bug 15146. Factor nsXULElement's members into prototype and optional 'slots' for heavyweight elements. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@51270 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:55:32 +00:00
cmanske%netscape.com
353d58e800 Fixed bug 16868. r=brade
git-svn-id: svn://10.0.0.236/trunk@51269 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:43:56 +00:00
nisheeth%netscape.com
ddb8cb8f28 Changes should not affect build. Ongoing work to make the stopwatch code build on Unix.
git-svn-id: svn://10.0.0.236/trunk@51268 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:43:34 +00:00
bienvenu%netscape.com
b205486bc1 fix memory leak of default pref dir file spec r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@51267 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:42:30 +00:00
bienvenu%netscape.com
09d199c08a fix memory leaks with mime string bundles and v-cards r=rhp
git-svn-id: svn://10.0.0.236/trunk@51266 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:41:49 +00:00
sspitzer%netscape.com
ee0c7447a5 fix for #16820, #16821. r=alecf, a=leaf. fix the pre-select the compose "From" identity
based on the selection in the folder pane.  it broken when I removed the FindServerUsingURI()
method a few days ago.  all better now.


git-svn-id: svn://10.0.0.236/trunk@51265 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 18:31:26 +00:00
leila.garin%eng.sun.com
74762b6d76 Added BWTestThread.java in makefiles, removed print stmt. from TestLoader
git-svn-id: svn://10.0.0.236/trunk@51264 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 17:21:23 +00:00
terry%mozilla.org
3e3cacb732 Ignore the "shadow" and "temp" directories.
git-svn-id: svn://10.0.0.236/trunk@51263 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 16:26:04 +00:00
kipp%netscape.com
deab3a6af2 new
git-svn-id: svn://10.0.0.236/trunk@51262 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 15:31:51 +00:00
kipp%netscape.com
aecc167cc9 Use local images
git-svn-id: svn://10.0.0.236/trunk@51261 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 15:31:26 +00:00
kipp%netscape.com
d4e0127173 Made test run locally without a net
git-svn-id: svn://10.0.0.236/trunk@51260 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 15:31:11 +00:00
terry%mozilla.org
970e03fe63 Fix perl warning.
git-svn-id: svn://10.0.0.236/trunk@51259 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 15:17:37 +00:00
dcone%netscape.com
9abd146c48 Fixed the rounded border rendering code to obey solid, and none style types.
Also bumped all the rounded rects onto pixel boundaries before rendering.


git-svn-id: svn://10.0.0.236/trunk@51258 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:46:27 +00:00
law%netscape.com
df6e65595b Fix for bug #?????; Avoid false positive on check for -f cmd line option; r=warren@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51257 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:40:25 +00:00
karnaze%netscape.com
6418d90654 Remove caching cell spacing as margin on cells, reducing 16 bytes and avoiding potentially unique style contexts; simplified cell margin calculations; r=troy
git-svn-id: svn://10.0.0.236/trunk@51256 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:18:56 +00:00
cmanske%netscape.com
5e0a77611f Fixed bugs 12515, 16493,16494,16495,16692,16794,most of 9758. Replaced old 'target' icon with interim 'anchor' icon. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@51255 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:15:25 +00:00
terry%mozilla.org
bf28c3efd8 Fix perl warning.
git-svn-id: svn://10.0.0.236/trunk@51254 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 14:12:43 +00:00
mscott%netscape.com
2f8bc8e00f Bug #16843 and #16832 where we were crashing when dismissing dialogs. this may not be the final
fix but in an earlier change to this file today, this class stopped addreffing an event queue member variable.
But the dtor still released a reference to the event queue that it didn't have!
The eventual fix may be to put the addref back in there but I need to talk to dougt about this.

this is real danm's fix. i'm the reviewer.


git-svn-id: svn://10.0.0.236/trunk@51253 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 08:35:36 +00:00
danm%netscape.com
f98e5e2bc8 fixing obvious flaw in Unlink. r:waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51252 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 08:35:04 +00:00
tbogard%aol.net
501277d9f2 Integrated some changes made by buster. Still talking some them over, but here for now.
git-svn-id: svn://10.0.0.236/trunk@51251 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 07:37:37 +00:00
cls%seawood.org
47d0316267 Some compilers complain if you declare variables after a potential goto call so move the declarations to the top of the function. Should fix the linux libc5 SM-Ports tinderbox & gcc 2.95 builds.
a=mscott


git-svn-id: svn://10.0.0.236/trunk@51250 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 05:40:05 +00:00
cls%seawood.org
31fb034e97 Use PRBool instead of bool as some compilers do not understand bool. Should fix a couple of SM-Ports tinderboxen.
r=sfraser a=mscott


git-svn-id: svn://10.0.0.236/trunk@51249 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 05:37:18 +00:00
waldemar%netscape.com
e9e8df96c5 Removed types from bottom expressions
git-svn-id: svn://10.0.0.236/trunk@51245 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 02:27:53 +00:00
waldemar%netscape.com
ed5c56be64 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51244 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 02:27:34 +00:00
law%netscape.com
95fc4f832f Fixes for bug #16789; permit OpenDialog to work on hidden window even if document load has not completed yet; r=norris@netscape.com, r=danm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51243 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 01:25:41 +00:00
cmanske%netscape.com
a978b9e92b Changed a comment. This and last checkin were reviewed by mjudge
git-svn-id: svn://10.0.0.236/trunk@51241 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 01:06:05 +00:00
cmanske%netscape.com
22bf05aebd Adding menu item to start Composer from Browser debug menu as workaround for bug 16789 (can't start editor on command line). Also removed editor init page from code that's not even run?
git-svn-id: svn://10.0.0.236/trunk@51240 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 01:03:39 +00:00
edburns%acm.org
8af706c11b Added Swing webclient test code and windows makefile mods.
Author=Ann Sunhachawee
r=edburns@acm.org
Approver=edburns@acm.org
Bug=http://bugzilla.mozilla.org/show_bug.cgi?id=16842


git-svn-id: svn://10.0.0.236/trunk@51239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:49:28 +00:00
waldemar%netscape.com
cc0c52492a Changed syntax of getters and setters to "get name" and "set name". Relaxed grammar constraints on definitions. Changed over to colon syntax for types. Added local visibility and block modifiers.
git-svn-id: svn://10.0.0.236/trunk@51238 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:46:31 +00:00
evaughan%netscape.com
e5f071ac53 fixed numerous warnings. Reviewed by Hyatt.
git-svn-id: svn://10.0.0.236/trunk@51237 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:46:21 +00:00
waldemar%netscape.com
83bc932793 Removed octal escapes. Replaced bottom by throw of syntax error.
git-svn-id: svn://10.0.0.236/trunk@51236 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:43:58 +00:00
waldemar%netscape.com
db1c1b6e5e Removed octals. Removed rational-to-integer, which was replaced by semantic subtyping. Replaced bottom by throw of syntax error.
git-svn-id: svn://10.0.0.236/trunk@51235 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:43:22 +00:00
waldemar%netscape.com
11aeb1c87d Removed rational-to-integer and types in bottom calls, which were replaced by semantic subtyping
git-svn-id: svn://10.0.0.236/trunk@51234 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:42:17 +00:00
waldemar%netscape.com
f02f9a2f0c Removed rational-to-integer, which was replaced by semantic subtyping
git-svn-id: svn://10.0.0.236/trunk@51233 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:41:59 +00:00
waldemar%netscape.com
1234934b00 Added semantic subtyping, throw, and catch
git-svn-id: svn://10.0.0.236/trunk@51232 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:40:55 +00:00
waldemar%netscape.com
bc5b327059 Fixed bug that would sometimes emit a newline between a backslash and its following escaped character
git-svn-id: svn://10.0.0.236/trunk@51231 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:40:04 +00:00
terry%mozilla.org
60beb90ee5 Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51230 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:27:16 +00:00
alecf%netscape.com
30aa1d1d5c remove old gifs
git-svn-id: svn://10.0.0.236/trunk@51229 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:19:23 +00:00
alecf%netscape.com
ba963eb07e remove old gif
git-svn-id: svn://10.0.0.236/trunk@51228 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:18:32 +00:00
alecf%netscape.com
1bfdda92a8 remove unused images
git-svn-id: svn://10.0.0.236/trunk@51227 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:15:50 +00:00
mcafee%netscape.com
fcf9fe791f minor whitespace
git-svn-id: svn://10.0.0.236/trunk@51226 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:14:23 +00:00
larryh%netscape.com
2efaf6b409 BugSplat 367096
git-svn-id: svn://10.0.0.236/trunk@51225 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:12:37 +00:00
norris%netscape.com
b2e9644e2b Work on 1646 [DOGFOOD] javascript: URLs aren't working
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@51224 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:12:04 +00:00
alecf%netscape.com
59c413637f remove old gifs
git-svn-id: svn://10.0.0.236/trunk@51223 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:11:46 +00:00
larryh%netscape.com
eb823e8216 BugSplat 367096
git-svn-id: svn://10.0.0.236/trunk@51222 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:07:01 +00:00
terry%mozilla.org
11426df64d Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51221 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:06:41 +00:00
kipp%netscape.com
7903586ee4 Removed some silly warnings
git-svn-id: svn://10.0.0.236/trunk@51220 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-20 00:06:12 +00:00
despotdaemon%netscape.com
4f6f8b68b0 Pseudo-automatic update of changes made by jmas@softcatala.org.
git-svn-id: svn://10.0.0.236/trunk@51219 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:58:29 +00:00
kipp%netscape.com
32b2148862 Added new test
git-svn-id: svn://10.0.0.236/trunk@51218 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:53:31 +00:00
despotdaemon%netscape.com
fc8c4bd300 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@51217 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:51:38 +00:00
pollmann%netscape.com
e0757a21ca Bug 15729: Fall back to content when getting text value; r=vidur
git-svn-id: svn://10.0.0.236/trunk@51216 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:43:58 +00:00
selmer%netscape.com
b2360b9a85 fix for crash on cancel newconfig dialog
git-svn-id: svn://10.0.0.236/trunk@51215 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:43:13 +00:00
alecf%netscape.com
959275c4ac return null identity on null or empty key
no bug
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@51214 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:37:54 +00:00
dveditz%netscape.com
c097cd276c reenabling 6986-fix for the mac, r-dougt
git-svn-id: svn://10.0.0.236/trunk@51213 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:17:54 +00:00
despotdaemon%netscape.com
efa03bb824 Pseudo-automatic update of changes made by jmas@softcatala.org.
git-svn-id: svn://10.0.0.236/trunk@51212 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:13:07 +00:00
leaf%mozilla.org
843c7df9fb adding mozilla/embedding and mozilla/docshell to SeaMonkeyCore
git-svn-id: svn://10.0.0.236/trunk@51211 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:09:34 +00:00
kipp%netscape.com
3096ad4a52 r=ftang; fixed off by one error that made return value oPrev inconsistent
git-svn-id: svn://10.0.0.236/trunk@51210 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:06:27 +00:00
kipp%netscape.com
4befc8fe5e Added more tests
git-svn-id: svn://10.0.0.236/trunk@51209 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:04:55 +00:00
kipp%netscape.com
2d9044ac40 new
git-svn-id: svn://10.0.0.236/trunk@51208 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:04:33 +00:00
kipp%netscape.com
9c72c46de9 Fixed O(N^2) debug logic bug; speed up paint loop by avoiding painting too much now that we have combined-area (bug 7455, 12297)
git-svn-id: svn://10.0.0.236/trunk@51207 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:04:19 +00:00
kipp%netscape.com
bbbab95269 update to new nsTextTransformer api
git-svn-id: svn://10.0.0.236/trunk@51206 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:01:58 +00:00
kipp%netscape.com
6b051cc38a r=ftang; rewrite to fix 16656, parts of 7455
git-svn-id: svn://10.0.0.236/trunk@51205 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:01:45 +00:00
kipp%netscape.com
d6884c9b41 Init text-transformer during module setup to save cycles (bug 7455)
git-svn-id: svn://10.0.0.236/trunk@51204 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 23:01:23 +00:00
amusil%netscape.com
1d95656844 Fixed bug in editing anonymous attributes in database. Now all attributes get modified instead
of only the first.


git-svn-id: svn://10.0.0.236/trunk@51203 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:46:29 +00:00
tbogard%aol.net
c820ac974d More documentation and clean-up of the interfaces.
git-svn-id: svn://10.0.0.236/trunk@51202 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:40:28 +00:00
tbogard%aol.net
e5684d8a64 Added some documentation.
git-svn-id: svn://10.0.0.236/trunk@51201 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:39:57 +00:00
nisheeth%netscape.com
fedd700745 Checkin does not affect build. If MOZ_PERF is set to 1 define the compiler define MOZ_PERF_METRICS for the windows build.
git-svn-id: svn://10.0.0.236/trunk@51200 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:37:53 +00:00
valeski%netscape.com
cc447b7234 14659, r=gagan&warren&dougt
Misc. FTP changes:
*increased FTP buffer read/write size from 4k to 8k.
*removed un-needed (for now) SetPASV() for FTP connection thread
*string optimizations
*FTP Connection thread now uses the NS_IMPL_ISUPPORTS4 macro for addref, rel, and QI methods.
*connection cache key api consolidation (Get()/Remove() combo turned into Remove(key)).

Authentication dialog changes:
*Authentication dialog now includes host name the user is trying to connect to.

nsIRequest support:
*FTP Connection thread now maintains a member variable pointing to it's event queue. It also pumps the event queue in the main loop.
*FTP Connection thread now implemented the nsIRequest interface (never called directly; only via the nsFTPChannel api)
*FTP Channel now uses an xpcom proxy object to make the nsIRequest api calls on the FTP Connection thread.

FTP protocol interpretation changes:
*FTP now handles servers that send multi-line greetings in the first Read() (we blocked indefinately before)
*FTP now parses the parent working directory properly (used to always treat it as '/')


git-svn-id: svn://10.0.0.236/trunk@51199 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:37:47 +00:00
dougt%netscape.com
0377b9291c Fix for bug 16818. xpcom proxy does not handle classes with two or more
interfaces correctly.  What happens is the real object is addref
incorrectly and will never be deleted.

r=jud


git-svn-id: svn://10.0.0.236/trunk@51198 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:35:54 +00:00
dp%netscape.com
fabbeba48e Fixed warnings. r=pam nunn
git-svn-id: svn://10.0.0.236/trunk@51197 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:28:38 +00:00
nisheeth%netscape.com
b7fab4e31c Changes should not affect the build. Renaming the RAPTOR_PERF_METRICS ifdef to MOZ_PERF_METRICS.
git-svn-id: svn://10.0.0.236/trunk@51196 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:27:20 +00:00
dp%netscape.com
bf856b8053 Converting implementations of QueryInterface() to the std one. This
fixes bugs in the previous implementation that caused unbalanced
refcounts and premature releases. Thanks for rpotts for the heads
up. r=pam nunn


git-svn-id: svn://10.0.0.236/trunk@51195 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:27:08 +00:00
cathleen%netscape.com
1f3c5b3ef3 add txmgr.xpt to core list, like the rest of the editor files.
also removed a couple of obsolete files from the list


git-svn-id: svn://10.0.0.236/trunk@51194 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:03:29 +00:00
pnunn%netscape.com
c88ef4fe6e clean up associated with bug#15817, gif decoder. r: dp@netscape.com.
Removing obsolete file.


git-svn-id: svn://10.0.0.236/trunk@51193 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:02:49 +00:00
warren%netscape.com
077b0c94d4 Added 'PageCycler' code so that we can iterate through URL loads (by calling mozilla.exe -f <file-of-urls>). We need this for adding bloat/leaks info to tinderbox. r=law
git-svn-id: svn://10.0.0.236/trunk@51192 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:01:28 +00:00
danm%netscape.com
855118ba4a retire event queues even on Windows when they're no longer used. part of bug 15856. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51191 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 22:00:12 +00:00
rods%netscape.com
2a900deed8 The code that checked to see whether it should explicitly set focus on the gfx's containing widget
now uget the new focused content's frame instead of using the mCurrentTarget. The mCurrentTarget
is correct for a mouse down but incorrect for a "tab". This is because the mCurrentTarget points at
the currently focused content for a tab event, instead of the new content.
r=joki, bug 11162


git-svn-id: svn://10.0.0.236/trunk@51190 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:57:43 +00:00
pnunn%netscape.com
cc3d6490a5 bug# 16785. r: dp, valeski, neeti. Send mimetype info from channel to imglib.
If no decoder, sniff data stream for mime info.


git-svn-id: svn://10.0.0.236/trunk@51189 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:49:20 +00:00
alla%lysator.liu.se
cba2b194ce Update the GtkMozilla widget so it works. Also updated the streaming interface
so that it works with Necko. Small cleanups.
Fixes 16576 and 14975. r=shaver


git-svn-id: svn://10.0.0.236/trunk@51188 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:46:33 +00:00
norris%netscape.com
0b51721d30 Remove references to unsupported JVM_ calls. Needed for bug 16577.
r=shaver


git-svn-id: svn://10.0.0.236/trunk@51187 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:45:29 +00:00
dp%netscape.com
41b9a6b713 Removing prototype of NS_NewDocumentElementFrame. r=evaughan
git-svn-id: svn://10.0.0.236/trunk@51186 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:40:54 +00:00
locka%iol.ie
1e319234e1 Implemented ShowContextMenu so that CBrowse can display custom popup menus in response to right mouse clicks
git-svn-id: svn://10.0.0.236/trunk@51185 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:39:42 +00:00
tbogard%aol.net
ab0c88be9a Ooops, last night removing one warning uncovered another. r=gimpy
git-svn-id: svn://10.0.0.236/trunk@51184 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:34:21 +00:00
terry%mozilla.org
d1fca29577 Need to value_quote() things that go into VALUE attributes in HTML.
git-svn-id: svn://10.0.0.236/trunk@51183 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:27:41 +00:00
despotdaemon%netscape.com
a0b1fe8617 Pseudo-automatic update of changes made by paw@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@51182 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:26:55 +00:00
endico%mozilla.org
2e29901945 align "edit products" at the top so its not lost 3 screens down in the products list.
git-svn-id: svn://10.0.0.236/trunk@51181 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:26:39 +00:00
bienvenu%netscape.com
bad04c3403 fix nsImapProtocol leaks r=mscott, no bug #
git-svn-id: svn://10.0.0.236/trunk@51180 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:24:31 +00:00
pierre%netscape.com
9264bc9c89 added stopwatch.cpp to the mac build for nisheeth
git-svn-id: svn://10.0.0.236/trunk@51179 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:12:14 +00:00
slamm%netscape.com
4481922240 Handle clicks properly. Fix for 14857 and 11986. r=rjc
git-svn-id: svn://10.0.0.236/trunk@51178 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:11:39 +00:00
cathleen%netscape.com
2d960ed1c1 additional cleanup, and previous checked in added wallet chrome files, partial fix for bug 15220
git-svn-id: svn://10.0.0.236/trunk@51177 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:09:04 +00:00
rogerl%netscape.com
4e16b4e094 r=norris
Delayed functionDef from creating property until after the body parses
succesfully.


git-svn-id: svn://10.0.0.236/trunk@51176 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:07:45 +00:00
mscott%netscape.com
2fc150a6c8 no bug number. I found that we were making an extra copy of the message body before writing it to the stream.
I was able to fix this by using a nsCString instead of an nsString for the message body. Also, audited the file
to use nsCAutoString instead of nsString to save some extra copying. Used NS_WITH_SERVICE macros for componenet
mananager and register service. Added some com ptr useage too.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@51175 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:06:42 +00:00
rogerl%netscape.com
d0725e4d4e r=norris
Fixed bug #12951 - var if for..in statement should always be of type
string.


git-svn-id: svn://10.0.0.236/trunk@51174 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:06:03 +00:00
neeti%netscape.com
ee6aa2ffd0 updating status
git-svn-id: svn://10.0.0.236/trunk@51172 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:03:33 +00:00
cathleen%netscape.com
0fffda37f6 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@51170 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:02:43 +00:00
mscott%netscape.com
6823e8565b Bug #16538 --> pass the emitter into NS_NewPipe as a pipe observer.
r=jefft


git-svn-id: svn://10.0.0.236/trunk@51169 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:02:27 +00:00
mscott%netscape.com
7524389c82 Bug #16538 --> the emitter now supports nsIPipeObserver and we'll now flush our output stream when we are told
it is full. This fixes the problem where large attachements were truncated at 32K.
r=jefft


git-svn-id: svn://10.0.0.236/trunk@51168 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 21:01:54 +00:00
Jerry.Kirk%Nexwarecorp.com
c40a73a776 Fixes to correct lots of extra drawing because of incorrectly clipped regions
Bug #16698 r=kedl


git-svn-id: svn://10.0.0.236/trunk@51167 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 20:50:17 +00:00
selmer%netscape.com
2ff1cb0969 CheckListBox supports descriptions (bug #4884)
git-svn-id: svn://10.0.0.236/trunk@51166 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 20:30:18 +00:00
norris%netscape.com
d201925571 7261 Connect XPConnect visibility filter to query principals
Reviewed by mstoltz.


git-svn-id: svn://10.0.0.236/trunk@51165 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 20:28:24 +00:00
rods%netscape.com
15f62c11c2 cleaned up warning, result hidding another, r=kmcclusk, (no bug)
git-svn-id: svn://10.0.0.236/trunk@51164 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:59:06 +00:00
rods%netscape.com
959963c9b8 fixed several warning and fixed setting the wrap property enum to off r=kmcclusk, bug 16770
git-svn-id: svn://10.0.0.236/trunk@51163 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:58:07 +00:00
rods%netscape.com
88de486c18 removed comma after last enum, warning clean up, r=kmcclusk (no bug)
git-svn-id: svn://10.0.0.236/trunk@51162 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:56:35 +00:00
varada%netscape.com
0d2cedd9ae setting focus in edit boxes in dialog boxeson init
git-svn-id: svn://10.0.0.236/trunk@51161 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:53:40 +00:00
beard%netscape.com
45cf1dc448 for JBindery runner, added System.exit()
git-svn-id: svn://10.0.0.236/trunk@51160 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:43:31 +00:00
rpotts%netscape.com
0f75f32b71 bug #15560. Changed the LoadGroup to fire notifications via PLEvents to stop reenterency.
git-svn-id: svn://10.0.0.236/trunk@51159 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:42:55 +00:00
terry%mozilla.org
d49cc3e1d1 Fixed perl warning.
git-svn-id: svn://10.0.0.236/trunk@51158 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:42:49 +00:00
rpotts%netscape.com
cd23316388 bug #15560. Changed the LoadGroup to fire notifications via PLEvents to stop reenterency.
git-svn-id: svn://10.0.0.236/trunk@51157 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:36:07 +00:00
danm%netscape.com
88e77696a0 added CreateFromIThread. r:valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51156 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:18:27 +00:00
troy%netscape.com
36419b7094 b=16781, r=vidur@netscape.com
Re-ordered destructor to delete maps after destroying the frame hierarchy


git-svn-id: svn://10.0.0.236/trunk@51154 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:06:37 +00:00
locka%iol.ie
1468b5f4ac Updated to include new registry entries
git-svn-id: svn://10.0.0.236/trunk@51153 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:06:31 +00:00
selmer%netscape.com
3fd4887790 Removing Recede...
git-svn-id: svn://10.0.0.236/trunk@51152 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:06:29 +00:00
selmer%netscape.com
5bdff5a335 Putting button names back
git-svn-id: svn://10.0.0.236/trunk@51151 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:04:11 +00:00
shaver%netscape.com
2d88ea3522 corrected assembly, from Ulrich Drepper <drepper@cygnus.com> (16612, r=shaver)
git-svn-id: svn://10.0.0.236/trunk@51150 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:03:01 +00:00
pollmann%netscape.com
7c466fda74 Bug 16725: Enable align attribute for iframe; r=harishd
git-svn-id: svn://10.0.0.236/trunk@51149 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 19:01:49 +00:00
selmer%netscape.com
7dac51627e Interpret functions moved to interpret.cpp; memory allocations cleaned up
git-svn-id: svn://10.0.0.236/trunk@51148 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 18:58:38 +00:00
leila.garin%eng.sun.com
46abc39ebf New perl automated script.
git-svn-id: svn://10.0.0.236/trunk@51147 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 18:48:53 +00:00
despotdaemon%netscape.com
494eaeb121 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@51146 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 17:34:13 +00:00
despotdaemon%netscape.com
8b64d99548 Pseudo-automatic update of changes made by exv@randomc.com.
git-svn-id: svn://10.0.0.236/trunk@51145 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 17:20:25 +00:00
terry%mozilla.org
9195dc1900 Fixed perl warnings.
git-svn-id: svn://10.0.0.236/trunk@51144 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 16:41:40 +00:00
norris%netscape.com
bd1c7245f6 Fixed bug. We weren't loading classes in bottom-up dependency order.
Subject:
            Re: another getClassLoader exception
       Date:
            Mon, 18 Oct 1999 22:01:24 -0400
      From:
            Andrew Wason <aw@softcom.com>
        To:
            norris@netscape.com (Norris Boyd)
        CC:
            Howard Lin <howard@softcom.com>
 References:
            1 , 2




At 05:03 PM 10/18/99 -0700, Norris Boyd wrote:
>Are you still seeing this problem?


Yes.  I just did a CVS update to get the latest stuff and we still have
this problem.

I wrote a standalone sample program that duplicates the problem.  Run
JSSupport and you should get this exception:

defineClass org.mozilla.javascript.gen.c2
Exception in thread "main" java.lang.NoClassDefFoundError:
org/mozilla/javascript/gen/c1
         at java.lang.ClassLoader.resolveClass0(Native Method)
         at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
         at
JSSupport$MySecuritySupport$DataClassLoader.loadClass(JSSupport.java:89)
         at JSSupport$MySecuritySupport.defineClass(JSSupport.java:47)
         at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java,
Compiled Code)
         at org.mozilla.javascript.Context.compile(Context.java:1761)
         at org.mozilla.javascript.Context.compile(Context.java:1691)
         at org.mozilla.javascript.Context.compileReader(Context.java:810)
         at org.mozilla.javascript.Context.evaluateReader(Context.java:725)
         at org.mozilla.javascript.Context.evaluateString(Context.java:692)
         at JSSupport.<init>(JSSupport.java:20)
         at JSSupport.main(JSSupport.java:9)



Andrew



>--N
>
>Andrew Wason wrote:
>
> > At 04:54 PM 10/12/99 -0700, Norris Boyd wrote:
> > >I just checked in changes so that the class calling ScriptRuntime (c5
> in your
> > >case) will load the class itself using the normal Java classloading
> mechanism
> > >rather than an explicit call to the class loader. I pushed the bits up
> to the
> > >ftp site, but it takes a bit to propagate.
> >
> > I get this exception now (debugging statements are from my code):
> >
> > SecuritySupport.defineClass org.mozilla.javascript.gen.c5
> > DataClassLoader.loadClass org.mozilla.javascript.gen.c5
> > DataClassLoader.loadClass org.mozilla.javascript.gen.c4
> > using default loader com.softcom.realjava.PluginClassLoader@da9486a0
> > java.lang.NoClassDefFoundError: org/mozilla/javascript/gen/c4
> >          at java.lang.ClassLoader.resolveClass0(Native Method)
> >          at java.lang.ClassLoader.resolveClass(ClassLoader.java:545)
> >          at
> >
> com.softcom.realjava.plugins.RealJavaScript$RealJavaScriptSecuritySupport$Da
> > taClassLoader.loadClass(RealJavaScript.java:410)
> >          at
> >
> com.softcom.realjava.plugins.RealJavaScript$RealJavaScriptSecuritySupport.de
> > fineClass(RealJavaScript.java:352)
> >          at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java,
> > Compiled Code)
> >          at org.mozilla.javascript.Context.compile(Context.java:1761)
> >          at org.mozilla.javascript.Context.compile(Context.java:1691)
> >          at org.mozilla.javascript.Context.compileReader(Context.java:810)
> >
> > So when c5 is being loaded by my SecuritySupport, it also needs to load c4.
> > I decompiled org.mozilla.javascript.gen.c5 and it's constant pool
> > references CLASS org.mozilla.javascript.gen.c4, so c5 is dependent on c4
> > being loadable.  Is the problem that c5 is being loaded before the
> > optimizer has defined c4?
> >
> > I get the above exception for some classes and not others.  It seems
> > consistent that I always get it for classes with dependencies on other
> > optimizer classes that haven't been generated yet.
> >
> > Andrew
> >
> > --
> > Andrew Wason
> > SoftCom, Inc.
> > aw@softcom.com

--
Andrew Wason
SoftCom, Inc.
aw@softcom.com



   JSSupport.java

                  Name:
                         JSSupport.java
                   Type:
                         Java Source File (text/java)
                Encoding:
                         base64


git-svn-id: svn://10.0.0.236/trunk@51143 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 16:38:23 +00:00
terry%mozilla.org
c94f0dfbd5 Fixed perl warnings.
git-svn-id: svn://10.0.0.236/trunk@51142 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 16:33:06 +00:00
terry%mozilla.org
4d41190cf3 This was using complicated perl features I don't understand, so I simplified it and it works now...
git-svn-id: svn://10.0.0.236/trunk@51141 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 16:24:48 +00:00
terry%mozilla.org
fae1be4423 Fixed perl warning.
git-svn-id: svn://10.0.0.236/trunk@51140 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 15:07:27 +00:00
terry%mozilla.org
c51e515d06 Fix perl warnings.
git-svn-id: svn://10.0.0.236/trunk@51139 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 15:05:16 +00:00
brade%netscape.com
736ea51be4 add images from Dan Haddix (r=pavlov@pavlov.net)
git-svn-id: svn://10.0.0.236/trunk@51138 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 14:53:55 +00:00
bienvenu%netscape.com
22abb4e345 fix ref count logging on nsMimeImpl r=warren
git-svn-id: svn://10.0.0.236/trunk@51137 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 14:50:09 +00:00
brade%netscape.com
d885aed29d add images from Dan Haddix (r=rods@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@51136 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 14:44:01 +00:00
troy%netscape.com
0bdf9140d7 Changes to frame property API (code's not being used yet)
git-svn-id: svn://10.0.0.236/trunk@51135 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 14:41:55 +00:00
rods%netscape.com
186216cd35 changed font-family and margin settings for input text and textareas
r-kmcclusk, Bug #4072


git-svn-id: svn://10.0.0.236/trunk@51134 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 13:39:59 +00:00
brade%netscape.com
f27c8ca4ba function for image map editor added (contributed by Dan Haddix)
git-svn-id: svn://10.0.0.236/trunk@51133 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 13:34:34 +00:00
brade%netscape.com
156010fda2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@51132 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 13:32:22 +00:00
brade%netscape.com
2eaffc0b34 add images for Dan Haddix (image map editor)
git-svn-id: svn://10.0.0.236/trunk@51131 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 13:31:25 +00:00
rods%netscape.com
d3a58b07b8 Changed the sizing comparison for NavQuirks in debug mode to get the font family and size
for the input text  and textarea, I also changed the border calc for only when the
the size is explicitly set.
r=kmcclusk, Bug #3040,11285


git-svn-id: svn://10.0.0.236/trunk@51130 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:59:01 +00:00
rods%netscape.com
701a5f632f Moved GetWrapProperty to nsFormControlHelper
Changed add the added of scrollbar sizes for Standard mode
r=kmcclusk, Bug #3040,11285


git-svn-id: svn://10.0.0.236/trunk@51129 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:58:53 +00:00
rods%netscape.com
94117fe06b Added methods for getting a frame's current font and
for calculating the nsIFormControlFrame's NavQuirks size
Added two methods for getting the "wrap" property and andded a new enum
for for testing against instead of a string
Added a method for calculating the size when in NavQuirks modes, this currently
duplicates the algorithms for for input text and textareas
r=kmcclusk, Bug #3040,11285


git-svn-id: svn://10.0.0.236/trunk@51128 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:58:50 +00:00
rods%netscape.com
4df3a52095 Removed old commented out code and unused comments. r=kmcclusk, (no bug)
git-svn-id: svn://10.0.0.236/trunk@51127 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:35:17 +00:00
rods%netscape.com
7df83f9c8c Added a method in the debug build to return the Navigator size for a given
for control for a given font family and size. Used for NavQuirks testing only.
r=kmcclusk, Bugs #3040, 4072


git-svn-id: svn://10.0.0.236/trunk@51126 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 11:34:00 +00:00
rickg%netscape.com
6dafd0deac fixed bug 16584; CRCRLF not handled correctly. r=syd
git-svn-id: svn://10.0.0.236/trunk@51125 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 08:52:30 +00:00
tbogard%aol.net
b70777ae81 Removed the last of gimpy's warnings. r=gimpy.
git-svn-id: svn://10.0.0.236/trunk@51124 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 08:03:11 +00:00
jband%netscape.com
88ae89c00d trivial fix to get rid of warning from copy/paste error - was passing unused argument to printf
git-svn-id: svn://10.0.0.236/trunk@51123 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 08:00:29 +00:00
tbogard%aol.net
4d16c8e921 Another warning. r=gimpy.
git-svn-id: svn://10.0.0.236/trunk@51122 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 07:59:20 +00:00
tbogard%aol.net
b17c3685f5 Fixed a few more of gimpy's warnings..... Oh, we found a bug there. r=gimpy Total warnings now under 200!
git-svn-id: svn://10.0.0.236/trunk@51121 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 07:57:51 +00:00
tbogard%aol.net
8b7f08fbc0 Removing gimpy's warnings. r=gimpy. This brings us down to 200. :)
git-svn-id: svn://10.0.0.236/trunk@51120 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 07:50:55 +00:00
tbogard%aol.net
ceae1958d8 Removed border from the XUL browser, editor, and iframe tags. This allows content coming up in chromeless pop-up windows not be visually cluttered with a needless border. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@51119 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 07:40:44 +00:00
cls%seawood.org
beb3488154 Add newline at end of file for broken compilers.
git-svn-id: svn://10.0.0.236/trunk@51118 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 06:40:25 +00:00
beard%netscape.com
8af0179bfb changed NSLibraryStartup.o to NSComponentStartup.o, since it's really a component. r=jband
git-svn-id: svn://10.0.0.236/trunk@51117 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 06:31:49 +00:00
jband%netscape.com
defd5464f8 fixing brendan's copy/paste bug that broke gc. r=shaver
git-svn-id: svn://10.0.0.236/trunk@51116 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 05:58:07 +00:00
dp%netscape.com
ab76ab5c8c Fixing warning. Moved declaration into if 0 block.
git-svn-id: svn://10.0.0.236/trunk@51115 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 05:49:04 +00:00
cls%seawood.org
8644b9e14b Use PR_TRUE instead of c++ keyword "true" in case of broken/out-of-date compilers.
r=syd


git-svn-id: svn://10.0.0.236/trunk@51114 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 05:38:27 +00:00
cls%seawood.org
0d7e9393fb Syncing Makefile.ins with srinivas' previous checkin.
r=shaver


git-svn-id: svn://10.0.0.236/trunk@51113 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 05:30:36 +00:00
troy%netscape.com
85565b9667 Changed a comment
git-svn-id: svn://10.0.0.236/trunk@51112 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 05:00:30 +00:00
troy%netscape.com
670fa6c8d6 Change to code that's not currently being used. Before it gets used it
will get code reviewed


git-svn-id: svn://10.0.0.236/trunk@51111 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 04:52:33 +00:00
troy%netscape.com
a34fdc41e1 Didn't actually change anything. Just moved two functions up higher in the
file to make the Solaris compiler happy...


git-svn-id: svn://10.0.0.236/trunk@51110 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 04:50:34 +00:00
selmer%netscape.com
727f93afc4 Minor cleanup
git-svn-id: svn://10.0.0.236/trunk@51109 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:46:54 +00:00
alecf%netscape.com
5e8b124880 event targets for checkboxes now reflect reality
(just a test, not part of product)


git-svn-id: svn://10.0.0.236/trunk@51108 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:16:45 +00:00
jefft%netscape.com
668bbc4967 removed obsolete menubar xul tag; fixed bug 16145; r=rhp, ducarroz; a=dp
git-svn-id: svn://10.0.0.236/trunk@51107 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:08:43 +00:00
waterson%netscape.com
6a8fd22671 Obsolete.
git-svn-id: svn://10.0.0.236/trunk@51106 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:05:25 +00:00
beard%netscape.com
de43edf0b2 fixed histogram sorting.
git-svn-id: svn://10.0.0.236/trunk@51105 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:03:12 +00:00
pierre%netscape.com
bdfce7679a Fix build in Mac embedding apps after last week's changes in nsIWebShell.
git-svn-id: svn://10.0.0.236/trunk@51104 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:02:01 +00:00
pierre%netscape.com
f1aa92ba58 Fix a crash in Mac embedding apps: HasGfxScrollBars() checks for null pointer after calling GetPrefs().
git-svn-id: svn://10.0.0.236/trunk@51103 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 03:00:47 +00:00
alecf%netscape.com
de2e6cfb95 land new DOMViewer branch
no reviewer, not part of product, just a test


git-svn-id: svn://10.0.0.236/trunk@51102 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:46:45 +00:00
selmer%netscape.com
7f47a31e88 Fixes to make enable/disable work in checklist.ini
git-svn-id: svn://10.0.0.236/trunk@51100 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:41:48 +00:00
Jerry.Kirk%Nexwarecorp.com
9518fbd96c moving Push/PopThreadEventQueue to nsIEventQueueService.
This is required to get anythinbg to work now...
r=danm@netscape.com


git-svn-id: svn://10.0.0.236/trunk@51099 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:26:53 +00:00
endico%mozilla.org
b6decda29b search patterns are limited to 29 characters due to the -n option in glimpse
git-svn-id: svn://10.0.0.236/trunk@51098 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:14:09 +00:00
despotdaemon%netscape.com
77a9ed2910 Pseudo-automatic update of changes made by pfong@julian.uwo.ca.
git-svn-id: svn://10.0.0.236/trunk@51097 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:04:40 +00:00
alecf%netscape.com
6557db6b98 Start to land DOMViewer branch (extension - not part of product)
git-svn-id: svn://10.0.0.236/trunk@51096 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 02:01:40 +00:00
selmer%netscape.com
e654e9fdbb Changed interpretation & initialization to use onInit and onCommand INI file directives
git-svn-id: svn://10.0.0.236/trunk@51094 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:30:18 +00:00
slamm%netscape.com
0bbf0c1cfd Fix build bustage
git-svn-id: svn://10.0.0.236/trunk@51093 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:29:44 +00:00
sspitzer%netscape.com
ed6cbe944d other part of fix for #15235. fix send later. r=alecf
git-svn-id: svn://10.0.0.236/trunk@51092 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:24:25 +00:00
sspitzer%netscape.com
a8b4e077c5 part of fix for #15235. get send later to work again. r=alecf
git-svn-id: svn://10.0.0.236/trunk@51091 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:23:54 +00:00
despotdaemon%netscape.com
49bc011b9b Pseudo-automatic update of changes made by jfalzon@julian.uwo.ca.
git-svn-id: svn://10.0.0.236/trunk@51090 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:11:16 +00:00
dougt%netscape.com
fa7e2137bd Fix for bug 14784. Moved pref item up. r=cathleen.
git-svn-id: svn://10.0.0.236/trunk@51089 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 01:01:51 +00:00
despotdaemon%netscape.com
569c5aba2d Pseudo-automatic update of changes made by scosta@julian.uwo.ca.
git-svn-id: svn://10.0.0.236/trunk@51088 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:51:34 +00:00
srinivas%netscape.com
263860675d Update with post-3.5 fixes on the tip
git-svn-id: svn://10.0.0.236/trunk@51087 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:40:39 +00:00
pierre%netscape.com
51196f76b4 Fix #12737 "-moz-fixed should be compat mode only". Overwrites the fixed font family with the normal font family in navQuirks mode only. r=pollmann.
git-svn-id: svn://10.0.0.236/trunk@51086 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:31:45 +00:00
Jerry.Kirk%Nexwarecorp.com
3b650617aa Removed some hacks that were no longer necessary because of fixes made
on GFX side to fix nsRegion and the double buffer routines. Also
removed the DOUBLE_CLICK messages as directed by someone, I forget now who.
Bug 16698 r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@51085 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:29:33 +00:00
Jerry.Kirk%Nexwarecorp.com
03c368d1b3 Various fixes to correct bugs in nsRegionPh and to correct clipping
done by the double buffer routines.
Bug# 16698 r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@51084 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:27:56 +00:00
selmer%netscape.com
a711824bea Enable/Disable for Network builds
git-svn-id: svn://10.0.0.236/trunk@51083 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:27:21 +00:00
terry%mozilla.org
c4afb2ebc0 Fixed perl warning.
git-svn-id: svn://10.0.0.236/trunk@51082 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:25:42 +00:00
terry%mozilla.org
42d190d77d Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51081 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:20:52 +00:00
terry%mozilla.org
877a31dd8a Fix potential security hole (and I think some perl warnings.)
git-svn-id: svn://10.0.0.236/trunk@51080 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:17:54 +00:00
larryh%netscape.com
a6a41c799e BugZilla 16566
git-svn-id: svn://10.0.0.236/trunk@51079 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:15:05 +00:00
terry%mozilla.org
2249323ac8 Fixed perl warnings -- this module no longer defines its own "die" routine.
git-svn-id: svn://10.0.0.236/trunk@51078 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:07:23 +00:00
despotdaemon%netscape.com
4654177ca6 Pseudo-automatic update of changes made by jhuntley@julian.uwo.ca.
git-svn-id: svn://10.0.0.236/trunk@51077 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:05:52 +00:00
terry%mozilla.org
a4508fd4ea Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51076 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:04:59 +00:00
nhotta%netscape.com
a310c234a4 Fixing the linux build bustage.
git-svn-id: svn://10.0.0.236/trunk@51075 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:03:57 +00:00
edburns%acm.org
d2f14fa650 r=neeti@netscape.com
bug: 16679
approved by: neeti@netscape.com

Return NS_ERROR_FAILURE when a cookie is not found.


git-svn-id: svn://10.0.0.236/trunk@51074 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:03:33 +00:00
terry%mozilla.org
35043c37a6 Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51073 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-19 00:02:42 +00:00
terry%mozilla.org
282909ff22 Fixed stupid perl warnings.
git-svn-id: svn://10.0.0.236/trunk@51072 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:57:58 +00:00
despotdaemon%netscape.com
0f0eb4c9e6 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@51070 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:53:02 +00:00
srinivas%netscape.com
fcf52e9477 Initial version
git-svn-id: svn://10.0.0.236/trunk@51068 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:46:10 +00:00
jband%netscape.com
039dd4adee checking in code to fix bug 12768 submitted by Dan.Oscarsson@trab.se. Needed a 'const char*' tmp varible to work with a 'const char*' buffer that was passed in. The same problem is in both js.c and xpcshell.cpp. r=jband
git-svn-id: svn://10.0.0.236/trunk@51066 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:45:39 +00:00
terry%mozilla.org
f8f7d2f6fc Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51065 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:42:25 +00:00
terry%mozilla.org
565f556bd3 Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51064 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:35:57 +00:00
alecf%netscape.com
bd2182e45d add big comment describing how this dialog works
(no reviewer, no bug, just comments)


git-svn-id: svn://10.0.0.236/trunk@51063 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:35:53 +00:00
alecf%netscape.com
dd194c9fb7 fix for #15685
r=sspitzer
rdf: prefix on XML attributes was confusing the template


git-svn-id: svn://10.0.0.236/trunk@51062 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:35:22 +00:00
nhotta%netscape.com
fc73fd2088 Checking in a fix for the linux build bastage,
git-svn-id: svn://10.0.0.236/trunk@51061 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:32:45 +00:00
terry%mozilla.org
94c58cd2a0 Oops; fixed perl error.
git-svn-id: svn://10.0.0.236/trunk@51060 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:32:03 +00:00
terry%mozilla.org
6856a7ee21 Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51059 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:23:08 +00:00
jband%netscape.com
fb63cac2a5 checking in bug 16629 fix to cbegle's xpconnect tests submitted by green@FreeBSD.org. This fixes screwy longlong test methods. r=jband
git-svn-id: svn://10.0.0.236/trunk@51058 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:20:16 +00:00
alecf%netscape.com
88779549b8 fix typedef so this compiles with boehm's own makefile or mozilla's makefile.in
git-svn-id: svn://10.0.0.236/trunk@51057 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:17:02 +00:00
alecf%netscape.com
35edd9a187 we should actually be using generic threads so unhide this stuff
git-svn-id: svn://10.0.0.236/trunk@51056 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:15:44 +00:00
briano%netscape.com
2f40b34ffb Automated update
git-svn-id: svn://10.0.0.236/trunk@51055 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:15:10 +00:00
alecf%netscape.com
ad85636e7f build boehm when flag is used r=sspitzer
(last checkin also r=sspitzer)


git-svn-id: svn://10.0.0.236/trunk@51054 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:14:16 +00:00
alecf%netscape.com
a6598d4a1c add flag for boehm (doesn't quite work yet)
git-svn-id: svn://10.0.0.236/trunk@51053 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:13:47 +00:00
waterson%netscape.com
ffa36fb99e Move nsXULElement declaration into the header file.
git-svn-id: svn://10.0.0.236/trunk@51052 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:05:35 +00:00
terry%mozilla.org
8662f77243 Fixed stupid perl warning.
git-svn-id: svn://10.0.0.236/trunk@51051 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 23:04:40 +00:00
terry%mozilla.org
93cd29ad2b Massive spank to put "use strict" in all Bonsai code.
git-svn-id: svn://10.0.0.236/trunk@51050 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:55:01 +00:00
alecf%netscape.com
36d234884e remove makefiles that arent' part of the module anymore
git-svn-id: svn://10.0.0.236/trunk@51049 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:49:05 +00:00
rickg%netscape.com
217ed89f11 fixed bug16624; r=buster. Buffer used to translate unicode entities in forms wasn't being truncated.
git-svn-id: svn://10.0.0.236/trunk@51048 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:39:58 +00:00
ducarroz%netscape.com
4f836323d6 Fix for bug 15313 & 15536. .txt files are now interpreted as XML document. Therefore we need to load a .html file even if it content is purely plain text. R=rhp
git-svn-id: svn://10.0.0.236/trunk@51047 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:38:54 +00:00
sspitzer%netscape.com
01d0e55136 fix for #16259, r=alecf. use the right line endings on the mac. now, instead of putting the LINEBREAK in every string, and then
writing every string to the stream, we do the line ending when we write to the stream.


git-svn-id: svn://10.0.0.236/trunk@51046 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:38:53 +00:00
slamm%netscape.com
3981b8f2c8 Update checkout target. Add logging. Stop on conflicts. r=dougt
git-svn-id: svn://10.0.0.236/trunk@51045 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:33:32 +00:00
nhotta%netscape.com
25c87328ce Changed interface and implementation of nsIEntityConverter,
more entity support (before Latin1 only), added a string based interface. Bug fix 8865, r=ftang.


git-svn-id: svn://10.0.0.236/trunk@51044 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:33:14 +00:00
cata%netscape.com
76ebba554f Conversion to Module. Reviewed by dp. Bug #15589.
git-svn-id: svn://10.0.0.236/trunk@51043 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:23:28 +00:00
troy%netscape.com
c8965f4626 r=kipp@netscape.com Moved ownership of root frame (and frame hierarchy) over to
the frame manager


git-svn-id: svn://10.0.0.236/trunk@51042 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:20:37 +00:00
ftang%netscape.com
2476a575cf fix bug 16656, change the test condiction for NS_PRECONDICTION. also add some error checking code for null ptr. r=erik
git-svn-id: svn://10.0.0.236/trunk@51041 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:17:16 +00:00
waterson%netscape.com
911c570602 Remove nsRDFElement.cpp
git-svn-id: svn://10.0.0.236/trunk@51040 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:08:39 +00:00
waterson%netscape.com
7a9241890d Rename nsRDFElement to nsXULElement; rename nsXULElement to nsXULAggregateElement.
git-svn-id: svn://10.0.0.236/trunk@51039 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:08:15 +00:00
waterson%netscape.com
ce617a2441 Rename nsRDFElement to nsXULElement.
git-svn-id: svn://10.0.0.236/trunk@51038 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:07:36 +00:00
rhp%netscape.com
eff48efacc Change for separating inline attachments - Bug #16367 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@51037 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 22:07:02 +00:00
buster%netscape.com
a8ec8337df some extremely minor cleanup of bugs found by ftang. Thanks, frank.
git-svn-id: svn://10.0.0.236/trunk@51036 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:59:19 +00:00
akhil.arora%sun.com
b931259907 16427 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
Found some more instances where the DOM spec says that it is not an error
  to return a NULL. Do not throw exceptions in these cases.


git-svn-id: svn://10.0.0.236/trunk@51035 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:53:20 +00:00
pavlov%netscape.com
b8fadf3327 clean up wizard code a bit
git-svn-id: svn://10.0.0.236/trunk@51034 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:52:03 +00:00
rods%netscape.com
ef34fa6834 Links will now scroll into view when they get focus and anchors now respond
to the .focus call from script. r=kmcclusk, Bug #15198


git-svn-id: svn://10.0.0.236/trunk@51033 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:49:38 +00:00
rods%netscape.com
a1a74387d0 Move code to handle focus event into the correct switch statement
r=kmcclusk, bug 7133


git-svn-id: svn://10.0.0.236/trunk@51032 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:47:31 +00:00
akhil.arora%sun.com
479581e81f 16488 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
Copy/Paste error- createEntityReference was calling the wrong coreDOM method


git-svn-id: svn://10.0.0.236/trunk@51031 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:44:57 +00:00
pavlov%netscape.com
9bfe6151f6 new files
git-svn-id: svn://10.0.0.236/trunk@51030 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:44:15 +00:00
law%netscape.com
25e63cd81a Bug #14999; stop using toolkit app core; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51029 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:39:18 +00:00
law%netscape.com
45245a0e3f Bug #14999; stop using toolkit app core (added JavaScript[Debug].shlb to this project); r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51028 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:36:57 +00:00
norris%netscape.com
cb1dcdbdc6 Part of bug 7261 "Connect XPConnect visibility filter to query principals"
Reviewed by rhp@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@51027 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:35:52 +00:00
waterson%netscape.com
08c93a00f3 Bug 15558. Fix personal toolbar style rules (patch courtesy dbaron@fas.harvard.edu). r=matt
git-svn-id: svn://10.0.0.236/trunk@51026 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:35:28 +00:00
law%netscape.com
c4ca3de4e5 Bug #14999; stop using toolkit app core; r=davidm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51025 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:33:29 +00:00
pavlov%netscape.com
329e721fff update file list
git-svn-id: svn://10.0.0.236/trunk@51024 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:30:40 +00:00
law%netscape.com
1c3ac7d8fe Bug #14999; stop using toolkit app core; r=ducarroz@netscape.com
git-svn-id: svn://10.0.0.236/trunk@51023 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:29:54 +00:00
bienvenu%netscape.com
cf9daf3b34 change shutdown code to go through nsMessengerBootstrap instead of relying on service shutdown listener or destructors getting called r=alecf
git-svn-id: svn://10.0.0.236/trunk@51022 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:16:23 +00:00
ssu%netscape.com
ef93fdf802 fixing bug #16694. fixes crash bug in the select components dialog in the windows installer. r=sgehani. Affects only windows platform.
git-svn-id: svn://10.0.0.236/trunk@51021 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 21:15:09 +00:00
dp%netscape.com
068b895d74 Removing extra backslashes at the end of the install lines. Fixing
build.


git-svn-id: svn://10.0.0.236/trunk@51020 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:43:11 +00:00
sspitzer%netscape.com
80c75c7ae1 fix warnings. following alecf's recommendations, remove the FindServerUsingURI() method from the nsIMsgAccountManager, remove CreateFolderInDatasource() from nsIMsgFolder, change several methods in nsMsgCopy to return nsresult, and have nsIMsgFolder ** as an outparam, use GetResource() instead of CreateFolderInDatasource(). use NS_SUCCEEDED() instead of comparing against NS_OK directly.
git-svn-id: svn://10.0.0.236/trunk@51019 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:42:06 +00:00
brade%netscape.com
f24babcd8f make doEditor create an html editor rather than the plaintext editor. (bug #16681; r=sfraser@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@51018 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:27:14 +00:00
harishd%netscape.com
cd72403513 Fix for Bug 16126 -- Error message was not getting propagated
to the parser ( CNavDTD::AddLeaf() )
Related to bug 16578 - Throwing userdefined tags to the floor
( what we used to do before ). This will avoid people from being
blocked.   Will work on a fix later.

r=nisheeth


git-svn-id: svn://10.0.0.236/trunk@51017 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:23:27 +00:00
selmer%netscape.com
f641e35434 Enable BoldText type
git-svn-id: svn://10.0.0.236/trunk@51016 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:22:21 +00:00
troy%netscape.com
16faac45a3 Removed delete operators (they had no implementation, they were private so
they wern't accidently called), because HP compiler generated an error if
new operator was public but delete operator was private


git-svn-id: svn://10.0.0.236/trunk@51015 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:16:49 +00:00
nhotta%netscape.com
83699f202b Add new propertie files for html entity, part of bug fix 8865, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@51014 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 20:02:20 +00:00
tonyr%fbdesigns.com
b46af177f3 Added string bundles for the mailnews import tools
git-svn-id: svn://10.0.0.236/trunk@51013 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:58:07 +00:00
dougt%netscape.com
921610c409 Fix for 16700. Isolating CreateTransport into new function.
r=gagan.


git-svn-id: svn://10.0.0.236/trunk@51012 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:43:34 +00:00
warren%netscape.com
895b2679fc Made bloatdiff distinguish between no change in leaks, and infinite leakage (no leak before, but leak now).
git-svn-id: svn://10.0.0.236/trunk@51011 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:43:29 +00:00
selmer%netscape.com
ef18489b86 Corrected tab sort order
git-svn-id: svn://10.0.0.236/trunk@51010 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:39:42 +00:00
Jerry.Kirk%Nexwarecorp.com
614348b081 Installed our own PtMainLoop() function that can be exited to allow
the Create Profile Manager to display a dialog, then exit the GUI and display
a different dialog.
Bug# 16667 r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@51009 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:34:07 +00:00
selmer%netscape.com
fb6169fb87 Temporary fixes for tab ordering
git-svn-id: svn://10.0.0.236/trunk@51008 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:23:11 +00:00
warren%netscape.com
91a872ec09 Took out redundant MOZ_COUNT_CTOR/DTOR calls.
git-svn-id: svn://10.0.0.236/trunk@51007 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:21:53 +00:00
slamm%netscape.com
900a118dd2 Landing of SIDEBAR_19991007_BRANCH. r=waterson
git-svn-id: svn://10.0.0.236/trunk@51006 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:21:52 +00:00
radha%netscape.com
b1aa689e2b Mail news regresion with replying to a message. r=mscott bug # 16550
git-svn-id: svn://10.0.0.236/trunk@51005 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:09:27 +00:00
warren%netscape.com
0ae271237a Made it implement nsIURL as well as nsIURI.
git-svn-id: svn://10.0.0.236/trunk@51004 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:07:16 +00:00
warren%netscape.com
671c8baf13 Cleanup to use nsCOMPtrs.
git-svn-id: svn://10.0.0.236/trunk@51003 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:06:57 +00:00
warren%netscape.com
a270067a3a Took out redundant MOZ_COUNT_CTOR/DTOR calls.
git-svn-id: svn://10.0.0.236/trunk@51002 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:06:21 +00:00
troy%netscape.com
a431ec5d07 b=16615. Two line change. Added check for case of root node being a leaf.
The rest of the changes are NOT yet in use. They willbe reviewed by Kipp before
they're turned on


git-svn-id: svn://10.0.0.236/trunk@51001 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:02:09 +00:00
akkana%netscape.com
ae4dba7c09 Remove two ifdef DEBUG_akkana lines that were left in when someone
changed the implementation of ConvertContentToXIF, so that I can
compile again.  This won't affect anyone but me.  r=kipp


git-svn-id: svn://10.0.0.236/trunk@51000 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:01:56 +00:00
troy%netscape.com
3a3c120af6 b=16652, r=troy@netscape.com
Patch from Johnny Stenback that breaks a weak link reference


git-svn-id: svn://10.0.0.236/trunk@50999 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:00:49 +00:00
shaver%netscape.com
408093c6c7 fix // comment in C file (r=brade)
git-svn-id: svn://10.0.0.236/trunk@50998 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 19:00:18 +00:00
rogerl%netscape.com
b4ac2f29ae Changed tests for ECMA 3 definition of array.length handling.
git-svn-id: svn://10.0.0.236/trunk@50995 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 16:55:44 +00:00
pavlov%netscape.com
2a38ab0914 revert some key code to pre branch landing so that typing works correctly
git-svn-id: svn://10.0.0.236/trunk@50993 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 16:08:16 +00:00
danm%netscape.com
21960bf642 adding PR_LOGging to event queue handling. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50992 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:09:50 +00:00
danm%netscape.com
c4ec5e4d7e moving Push/PopThreadEventQueue to nsIEventQueueService. r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50991 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:08:45 +00:00
danm%netscape.com
5bb4aa8eb3 synching with nsWebShellWindow 1.219 (nsIModalWindowSupport removed). r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50990 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:06:38 +00:00
danm%netscape.com
2d0400db89 removing nsIModalWindowSupport r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50989 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:05:17 +00:00
danm%netscape.com
8e456a4690 moving Push/PopThreadEventQueue to nsIEventQueueService r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50988 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:04:18 +00:00
danm%netscape.com
1dff151de6 patch nsEventQueue leak in GetProxyObject r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50987 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 15:01:40 +00:00
danm%netscape.com
0b71323316 event queues own and delete themselves when they're done. bug 15856 r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50986 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 14:59:57 +00:00
danm%netscape.com
e200e99d65 new r:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50985 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 14:57:07 +00:00
ftang%netscape.com
c18bf1d357 1. add asserting code to check null ptr
2. add if code and return NS_ERROR_NULL_POINTER if the ptr is null
3. add code to check return value 
r=myself


git-svn-id: svn://10.0.0.236/trunk@50984 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 14:48:41 +00:00
karnaze%netscape.com
905268d150 added #ifdef for debug printing.
git-svn-id: svn://10.0.0.236/trunk@50983 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 13:48:19 +00:00
karnaze%netscape.com
0b5271c1c7 bug 15958(partial) - uses mComputedWidth instead of availableSize.width. r=buster; asked hook for permission, got no response.
git-svn-id: svn://10.0.0.236/trunk@50982 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 13:47:01 +00:00
karnaze%netscape.com
aef57f8136 bug 15993 - in quirks mode allocates space for a 1 pixel border if the content is empty and the table has a border. It was incorrectly, doing this even if the content was not empty. r=buster; asked permission from hook and got no response.
git-svn-id: svn://10.0.0.236/trunk@50981 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 13:45:41 +00:00
dveditz%netscape.com
038ada687d stopgap for mysterious Mac bustage
git-svn-id: svn://10.0.0.236/trunk@50980 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 12:58:58 +00:00
dveditz%netscape.com
ddf8086d83 generate unique regkeys (6986)
git-svn-id: svn://10.0.0.236/trunk@50979 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 12:06:19 +00:00
srinivas%netscape.com
e8fb19a369 Include fcntl.h always. Bugizlla #16630.
git-svn-id: svn://10.0.0.236/trunk@50978 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 11:13:23 +00:00
dveditz%netscape.com
48a1d530ed variable name change to silence warning
git-svn-id: svn://10.0.0.236/trunk@50977 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 08:35:39 +00:00
dveditz%netscape.com
64356116f8 cleaning up warnings 15626; removing RegisterService/UnregisterService calls per request from dp
git-svn-id: svn://10.0.0.236/trunk@50976 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 05:56:15 +00:00
rickg%netscape.com
756b010b94 another WIP for bug 13536; added charset notification back in; r=harish
git-svn-id: svn://10.0.0.236/trunk@50975 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 05:14:38 +00:00
buster%netscape.com
7653742295 fixed bug 16486, r=brade@netscape.com
windows widget code handles control-key combinations correctly.


git-svn-id: svn://10.0.0.236/trunk@50974 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 03:39:48 +00:00
jband%netscape.com
8013d6bb78 fix typo in comment
git-svn-id: svn://10.0.0.236/trunk@50972 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 02:54:26 +00:00
jband%netscape.com
0a174a879e r=mccabe (I'll be adding more comments to the headers as requested)
Implement nsIXPCNativeCallContext to meet user feature
requirements. This allows simpler implementation of reflection of
native classes into JavaScript in cases where they need to
support legacy interfaces that include optional parameters and
method name overloading. This also provides a general mechanism
for native methods to discover if they were called from JS code,
exactly what JS parameters were passed, explicitly return jsvals,
and throw explicit jsvals without interference from xpconnect.
With test cases.


git-svn-id: svn://10.0.0.236/trunk@50971 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 02:53:04 +00:00
mcafee%netscape.com
6d347761bd Adding perl-path to match other tinderbox files.
git-svn-id: svn://10.0.0.236/trunk@50970 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 01:34:45 +00:00
rickg%netscape.com
c1b9043596 forgot to check this in for viewsource; bug13536; r=harish
git-svn-id: svn://10.0.0.236/trunk@50969 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-18 00:46:33 +00:00
dveditz%netscape.com
57ed2f138a hoping this fixes the mac bustage
git-svn-id: svn://10.0.0.236/trunk@50968 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 23:55:56 +00:00
pavlov%netscape.com
0d172a490d work around for not being able to type in text fields on unix without them closing your apps.
16564 and 16542 r=smfr


git-svn-id: svn://10.0.0.236/trunk@50966 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 23:27:50 +00:00
karnaze%netscape.com
a06cb090a4 new regression tests. does not affect build.
git-svn-id: svn://10.0.0.236/trunk@50965 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 23:26:02 +00:00
bienvenu%netscape.com
3f482a5e18 fix leak of profile dir in addr book session
git-svn-id: svn://10.0.0.236/trunk@50964 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 22:16:32 +00:00
shaver%netscape.com
b2f619e9fa fixing build by removing leftover #endif
git-svn-id: svn://10.0.0.236/trunk@50963 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 22:15:34 +00:00
dveditz%netscape.com
ea80c313d6 Added NR_RegFlush (14909, required for 16283/16600); warning cleanup (15626) r=shaver
git-svn-id: svn://10.0.0.236/trunk@50962 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:47:53 +00:00
karnaze%netscape.com
cf41a16010 new regression test, doesn't affect build.
git-svn-id: svn://10.0.0.236/trunk@50961 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:46:13 +00:00
dveditz%netscape.com
9d59534945 Added nsIRegistry::Flush (bug 16283, required for 16600), r=shaver
git-svn-id: svn://10.0.0.236/trunk@50960 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:45:53 +00:00
morse%netscape.com
04d5d271eb fix bug 16319, stop assertion failure, r=dp
git-svn-id: svn://10.0.0.236/trunk@50959 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:41:50 +00:00
shaver%netscape.com
8c73db21d3 make View->Use Stylesheet use type=radio. (r=hyatt)
git-svn-id: svn://10.0.0.236/trunk@50958 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:38:21 +00:00
shaver%netscape.com
f2a09249da Added support for type="radio" (pick-one) XP menus.
Cleaned up nsFrame class declaration a bit.
Added some API entries to nsIMenuFrame in support of type="radio"'s
pick-one behaviour.
Renamed UpdateMenuChecked to UpdateMenuSpecialState.
Removed stale string-splitting code in CreateAnonymousContent.
(r=hyatt,mcafee)


git-svn-id: svn://10.0.0.236/trunk@50957 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 21:37:37 +00:00
mscott%netscape.com
ee5e86e569 Bug #16394 --> no longer need to call intialize after creating a url
r=jefft


git-svn-id: svn://10.0.0.236/trunk@50956 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 20:04:59 +00:00
mscott%netscape.com
e396ccade3 Bug #16394 --> extract user name from the url spec. Don't force us to pass it in on initialize.
r=jefft


git-svn-id: svn://10.0.0.236/trunk@50955 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 20:04:40 +00:00
mscott%netscape.com
79e9036238 Bug #16394 --> Initialize now has no arguments.
r=jefft


git-svn-id: svn://10.0.0.236/trunk@50954 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 20:04:08 +00:00
mscott%netscape.com
71ebac111b Bug #16394 --> call Initialize function on url after we create one
r=jefft


git-svn-id: svn://10.0.0.236/trunk@50953 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 20:03:37 +00:00
briano%netscape.com
81d0f9cde9 Automated update
git-svn-id: svn://10.0.0.236/trunk@50952 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 15:30:18 +00:00
cls%seawood.org
3f3f4e0c22 r=pavlov
Add temporary --enable-nspr-autoconf option to allow platforms to test the newly added autoconf setup for nspr (bug 11893) before turning it on as default.


git-svn-id: svn://10.0.0.236/trunk@50951 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 15:16:47 +00:00
cls%seawood.org
5e7ffdc098 Bug 11893. r=shaver
Sync the autoconf Makefile.ins.


git-svn-id: svn://10.0.0.236/trunk@50950 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 15:12:41 +00:00
warren%netscape.com
a53c95056f Added .txt to delta file name.
git-svn-id: svn://10.0.0.236/trunk@50949 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:57:45 +00:00
warren%netscape.com
a0fc33207e Changed format slightly.
git-svn-id: svn://10.0.0.236/trunk@50948 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:52:19 +00:00
warren%netscape.com
990cda09f3 Changed format slightly.
git-svn-id: svn://10.0.0.236/trunk@50947 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:50:09 +00:00
warren%netscape.com
6a7c1e6176 Added bloat log diffing program.
git-svn-id: svn://10.0.0.236/trunk@50946 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:42:27 +00:00
warren%netscape.com
bc35fd61d0 Accidently got added in the wrong directory.
git-svn-id: svn://10.0.0.236/trunk@50945 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:30:25 +00:00
rickg%netscape.com
d16fa469ea removed warnings; no material code affected
git-svn-id: svn://10.0.0.236/trunk@50944 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 07:01:10 +00:00
karnaze%netscape.com
c96e8acd42 new regression test. does not affect code.
git-svn-id: svn://10.0.0.236/trunk@50943 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 05:17:41 +00:00
karnaze%netscape.com
0ee3058ec4 new regression test
git-svn-id: svn://10.0.0.236/trunk@50942 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 03:42:37 +00:00
troy%netscape.com
c04a6a88dc r=karnaze@netscape.com Cc'd hyatt@netscape.com
Space optimization. mBorderEdges is no longer an embedded object. Now it's
allocated when needed (for collapsing border model tables only). This saves
80 bytes per table cell frame for the normal HTML case of adjacent border
model


git-svn-id: svn://10.0.0.236/trunk@50941 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 03:30:11 +00:00
karnaze%netscape.com
84d23e1d2e bug 11321 - Renamed kidMaxElementSize to localKidMaxElementSize and renamed pKidMaxElementSize to kidMaxElementSize and fixed the incorrect usage.
git-svn-id: svn://10.0.0.236/trunk@50940 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 03:17:53 +00:00
karnaze%netscape.com
906709b8b6 bug 11321 - the frame constructor sets the primary frame when an anonymous table or row group frame is involved.
git-svn-id: svn://10.0.0.236/trunk@50939 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 03:15:13 +00:00
rickg%netscape.com
1a6a40a3c6 Fix (perf) bug 13536 dealing with viewsource; r=kmcclusk.
Viewsource is now based on XML. These changes make viewsource 2X faster,
30% smaller (in obj code), and uses between 30-60% less markup overhead.
This update also enables stylesheet usage on viewsource, which is controlled
by the viewsource namespace  in html.css.

Also, note that viewsource remains (and always has been) fully incremental.
Remaining performance issues are in contentsink as shown in quantify runs.


git-svn-id: svn://10.0.0.236/trunk@50938 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 02:50:38 +00:00
rickg%netscape.com
7f8bd4a5fc improve debug timing code for ongoing perf work; not enabled in normal build. r=peterl
git-svn-id: svn://10.0.0.236/trunk@50937 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 02:45:26 +00:00
sgehani%netscape.com
9868a31060 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50936 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 01:39:40 +00:00
sgehani%netscape.com
0c1e14a45f File Removed.
git-svn-id: svn://10.0.0.236/trunk@50935 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 01:36:14 +00:00
warren%netscape.com
c81e025f6f Added bloat log diffing program.
git-svn-id: svn://10.0.0.236/trunk@50934 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-17 00:19:29 +00:00
morse%netscape.com
f4c14fbc7e remove build warning, r=jar
git-svn-id: svn://10.0.0.236/trunk@50933 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 23:37:28 +00:00
morse%netscape.com
2464d177c4 fix bug 15137, open->openDialog, r=jar
git-svn-id: svn://10.0.0.236/trunk@50932 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 23:36:22 +00:00
bienvenu%netscape.com
65fd934be9 fix memory leak of user name r=mscott
git-svn-id: svn://10.0.0.236/trunk@50931 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 22:44:55 +00:00
bienvenu%netscape.com
170bb762af fix leaks in mime xul emitters r=rhp
git-svn-id: svn://10.0.0.236/trunk@50930 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 20:49:06 +00:00
bienvenu%netscape.com
a6a7ff9957 fix memory leak in install notifier r=dougt
git-svn-id: svn://10.0.0.236/trunk@50929 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 20:48:36 +00:00
morse%netscape.com
051b2edf1a fix bug 10434, memory leak detection, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@50928 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 19:34:10 +00:00
rickg%netscape.com
b03845b337 updated FAQ section of nsString documentation
git-svn-id: svn://10.0.0.236/trunk@50927 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 18:45:18 +00:00
rickg%netscape.com
3169a02cfa WIP bug13536; r=peterl; this code is not used yet
git-svn-id: svn://10.0.0.236/trunk@50926 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 18:22:24 +00:00
bienvenu%netscape.com
21e8b134dc fix build bustage
git-svn-id: svn://10.0.0.236/trunk@50925 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 18:16:21 +00:00
bienvenu%netscape.com
0ddfb1fd70 remove unused all threads table r=davidmc
git-svn-id: svn://10.0.0.236/trunk@50924 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 17:55:59 +00:00
troy%netscape.com
3e862c4fc9 Space optimization, r=karnaze@netscape.com Cc'd hyatt@netscape.com
Save 4 bytes by eliminating the mCalculated data member which wasn't being used


git-svn-id: svn://10.0.0.236/trunk@50923 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 16:17:07 +00:00
bienvenu%netscape.com
74fc660d77 fix memory leaks r=mscott
git-svn-id: svn://10.0.0.236/trunk@50922 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 15:43:26 +00:00
karnaze%netscape.com
60203265cd added 2 additional file lists to regression tests to work around new javascript bug.
git-svn-id: svn://10.0.0.236/trunk@50921 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 05:26:22 +00:00
peterl%netscape.com
be312e3eea Made style rules work against nsIMutableStyleContext
r=troy


git-svn-id: svn://10.0.0.236/trunk@50920 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 04:06:04 +00:00
peterl%netscape.com
f3c05f912b Added new style data accessors.
Added nsIMutableStyleContext interface.
Made style rules work against nsIMutableStyleContext
r=troy


git-svn-id: svn://10.0.0.236/trunk@50919 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 04:05:59 +00:00
neeti%netscape.com
a279c2f778 updating status
git-svn-id: svn://10.0.0.236/trunk@50918 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 03:07:59 +00:00
neeti%netscape.com
f3b4c01e52 Converted dll to use nsIModule - bug 14034, r=dp
git-svn-id: svn://10.0.0.236/trunk@50916 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 03:05:55 +00:00
neeti%netscape.com
a87ba00c59 Converted dll to use nsIModule -bug 14034, r=jband
git-svn-id: svn://10.0.0.236/trunk@50915 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 03:04:16 +00:00
rhp%netscape.com
5839f11126 Changes to display when a message is coming from a 5.0 client - Bug #7518 - r: mscott
git-svn-id: svn://10.0.0.236/trunk@50914 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 02:38:24 +00:00
selmer%netscape.com
347b70512d CheckListBox used
git-svn-id: svn://10.0.0.236/trunk@50913 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 02:01:01 +00:00
selmer%netscape.com
9a7f96144c CheckListBox incorporated
git-svn-id: svn://10.0.0.236/trunk@50912 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 02:00:18 +00:00
warren%netscape.com
5cf514e9ae Added total/summary information to bloat log. Made LogNewXPCOM/LogDeleteXPCOM only be needed for losing architectures.
git-svn-id: svn://10.0.0.236/trunk@50911 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 01:57:18 +00:00
jevering%netscape.com
70a261fb73 The nsLeakDetector.cpp file now requires a few extra header files which weren't being exported on win
git-svn-id: svn://10.0.0.236/trunk@50910 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 01:44:52 +00:00
jevering%netscape.com
f66066c2c8 Removed a define I shouldn't have checked in.
git-svn-id: svn://10.0.0.236/trunk@50909 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 01:41:14 +00:00
varada%netscape.com
6f328194ff fixes to bug#7717 on exiting the wizard you get a message stating that data has been saved
git-svn-id: svn://10.0.0.236/trunk@50908 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 01:40:06 +00:00
jevering%netscape.com
6660a0bc5b Hooking up the Boehm collector.
Can we please call this thing the Bone Collector?  That would be much cooler.
Thank you drive through.


git-svn-id: svn://10.0.0.236/trunk@50907 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 01:22:01 +00:00
troy%netscape.com
6722de88b9 Added some new code that's not in use yet
git-svn-id: svn://10.0.0.236/trunk@50906 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:55:48 +00:00
rickg%netscape.com
85a81f49a8 WIP for bug13536; r=plinss
git-svn-id: svn://10.0.0.236/trunk@50905 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:39:24 +00:00
varada%netscape.com
54ba582bb1 new struct in header file
git-svn-id: svn://10.0.0.236/trunk@50904 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:16:36 +00:00
beard%netscape.com
7bd68dd578 added code to initialize/shutdown the leak detector. bug=15906, r=alecf
git-svn-id: svn://10.0.0.236/trunk@50903 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:06:37 +00:00
beard%netscape.com
774e39f024 renamed NSInitGarbageCollector/NSShutdownGarbageCollector to NS_, and returning nsresult. Moved leak report file to nsLeakDetector.cpp. bug=15906, r=alecf
git-svn-id: svn://10.0.0.236/trunk@50902 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:06:36 +00:00
beard%netscape.com
371afc89ab added nsLeakDetector.cpp to build. bug=15906, r=alecf
git-svn-id: svn://10.0.0.236/trunk@50901 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:03:45 +00:00
beard%netscape.com
a743954b5c maded entire file conditionally compile #if defined(GC_LEAK_DETECTOR). bug=15906, r=alecf
git-svn-id: svn://10.0.0.236/trunk@50900 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-16 00:02:26 +00:00
jevering%netscape.com
f820994c06 More windows porting of the boehm collector.
git-svn-id: svn://10.0.0.236/trunk@50899 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:45:47 +00:00
bienvenu%netscape.com
7ce48293df fix memory leak of registry location r=warren
git-svn-id: svn://10.0.0.236/trunk@50898 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:45:45 +00:00
cyeh%netscape.com
942579f723 proxy checkin for terry@mozilla.org. quiet warnings about uninitialized
variables at runtime


git-svn-id: svn://10.0.0.236/trunk@50897 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:43:52 +00:00
nisheeth%netscape.com
c916cc6da1 Changes do not get built in regular build. Fix timing hooks in the parser.
git-svn-id: svn://10.0.0.236/trunk@50896 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:42:09 +00:00
kipp%netscape.com
66125fa907 r=troy; revised nsITextContent api to simplify it and the consumers; this is done as prep work for bug 9101
git-svn-id: svn://10.0.0.236/trunk@50895 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:36:07 +00:00
sdagley%netscape.com
8916be1144 Fix #15740 - now check for immediate errors from async i/o calls. Also ensure that io_pending flag for the thread is cleared if we complete the async call before calling WaitOnThisThread(). r=sfraser
git-svn-id: svn://10.0.0.236/trunk@50894 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:35:27 +00:00
kipp%netscape.com
a1aaea4959 r=troy; fixed bug 7093 by carefully pre-computed the collapsed top margin before reflowing the child block and then using that value to properly acquire the available space; In addition, I had to fix an incremental reflow bug associated with this problem
git-svn-id: svn://10.0.0.236/trunk@50893 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:35:10 +00:00
terry%mozilla.org
6f2641b237 Fixed what I believe is just a stupid typo. (This code really needs to have
"use strict" added to it all, and with all the resulting cleanup.)


git-svn-id: svn://10.0.0.236/trunk@50892 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:31:22 +00:00
kipp%netscape.com
17b485a261 Wiped out another warning
git-svn-id: svn://10.0.0.236/trunk@50891 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:29:21 +00:00
kipp%netscape.com
ae469e66fe new
git-svn-id: svn://10.0.0.236/trunk@50890 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:25:02 +00:00
peterl%netscape.com
e8a5d2e937 Added namespace ID to the AttributeChanged notification
Part of the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50889 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:17:53 +00:00
peterl%netscape.com
bba68903df Added namespace ID to the AttributeChanged notification
Part fo the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:16:45 +00:00
terry%mozilla.org
762178f097 Fixed a bunch of "undefined variable" warnings.
git-svn-id: svn://10.0.0.236/trunk@50887 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:16:32 +00:00
peterl%netscape.com
5e2e0d9a32 Changed reported namespace of attributes from HTML to None.
r=vidur
Also added namespace ID to the AttributeChanged method
Part of the fix for Bug 15153
r=troy


git-svn-id: svn://10.0.0.236/trunk@50886 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:15:17 +00:00
peterl%netscape.com
48baad18a6 Added code to detect generated content that depends on attributes and reflow when the attribute changes
Fix for Bug 15153
r=pierre
Also added namespace ID to the AttributeChanged method
r=troy


git-svn-id: svn://10.0.0.236/trunk@50885 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 23:14:44 +00:00
varada%netscape.com
d237a54c3d fixes to bug #5987 changed the values of the buttons in the ini files
git-svn-id: svn://10.0.0.236/trunk@50884 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:56:37 +00:00
varada%netscape.com
15123c9a18 fixing bug #5987 - introduced three new fields in VARS in the ini files - cancel back and next - use those to change the text on the buttons
git-svn-id: svn://10.0.0.236/trunk@50883 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:55:06 +00:00
troy%netscape.com
52071cf0b1 Added some new code that isn't being used
git-svn-id: svn://10.0.0.236/trunk@50882 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:53:24 +00:00
gagan%netscape.com
7c5bb7d019 Added "resolving host" status notification for eSocketState_Created. No bug number. r=law.
git-svn-id: svn://10.0.0.236/trunk@50881 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:47:24 +00:00
jefft%netscape.com
f34b34e8a2 back out unneed changes which cause downloading messages to hang; bug 16338, r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@50880 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:26:32 +00:00
sfraser%netscape.com
a529a81529 Added nsJSXULEditorElement and nsXULEditorElement for travis. r=travis.
git-svn-id: svn://10.0.0.236/trunk@50879 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:21:43 +00:00
waqar%netscape.com
2e88f3fb20 #9777
r vidur@netscape.com
d The issue was resolved by DOM commitie to allow SplitText to give an error
only on if the start of split is larger than the length. If it is same lenght
it is allowed.


git-svn-id: svn://10.0.0.236/trunk@50878 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:18:23 +00:00
beard%netscape.com
b457512e99 added nsLeakDetector.idl. bug=15906, r=alecf
git-svn-id: svn://10.0.0.236/trunk@50877 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:17:53 +00:00
cmanske%netscape.com
d3b17dbcb9 Fixed bugs 16316, 16494, 16495, all relating to editor file open, saving, and window title issues. r=law
git-svn-id: svn://10.0.0.236/trunk@50876 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 22:06:41 +00:00
tbogard%aol.net
a7ed2ac01b Changed TextEditorAppShell.xul to use the new XUL editor tag instead of html:iframe. Changed EditorStartup to take an element. Changed EditorStartup to request the EditorShell from the editorElement rather than doing a createInstance and QI. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50875 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:58:49 +00:00
jevering%netscape.com
19f7cec6df Windows makefile for boehm collector.
git-svn-id: svn://10.0.0.236/trunk@50874 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:57:31 +00:00
jevering%netscape.com
7a40245954 Forget continuation line - boehm collector work.
git-svn-id: svn://10.0.0.236/trunk@50873 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:56:51 +00:00
tbogard%aol.net
2aa2164659 Changed html:iframe to the new XUL editor tag. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50872 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:54:42 +00:00
norris%netscape.com
0ad2206225 Fix 16166 setTimeout() security problem
r=mstoltz


git-svn-id: svn://10.0.0.236/trunk@50871 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:52:37 +00:00
cls%seawood.org
84b2db2829 Files not used by build. Attempting to resolve cvs checkin problem. a=srinivas,leaf
git-svn-id: svn://10.0.0.236/trunk@50870 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:42:20 +00:00
Jerry.Kirk%Nexwarecorp.com
777d2a990a Fix for viewer bustage on Neutrino. Added call to nsIThread::SetMainThread
in main() of viewer so that it can retrieved in other cases. R=vidur


git-svn-id: svn://10.0.0.236/trunk@50869 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:39:30 +00:00
fur%netscape.com
1242a2627f Renamed variable to avoid a compiler warning. R: mccabe
git-svn-id: svn://10.0.0.236/trunk@50868 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:38:04 +00:00
shaver%netscape.com
a8a9b25086 Make View->Sidebar a type=checkbox menuitem (r=slamm)
git-svn-id: svn://10.0.0.236/trunk@50867 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:37:53 +00:00
cls%seawood.org
b8f8ee7596 Files not used by build. Attempting to resolve cvs checkin problem. a=srinivas,leaf
git-svn-id: svn://10.0.0.236/trunk@50866 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:36:53 +00:00
beard%netscape.com
c69becfcc9 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50865 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:36:04 +00:00
bienvenu%netscape.com
cb256a41dc fix shutdown leak by resetting host session list r=jefft
git-svn-id: svn://10.0.0.236/trunk@50864 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:35:55 +00:00
beard%netscape.com
ef31ca76db using dumpMemoryLeaks() instead of about:bloat?leaks. bug=15906, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50863 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:35:18 +00:00
beard%netscape.com
202835974e added dumpMemoryLeaks(). bug=15906, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50862 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:35:11 +00:00
akhil.arora%sun.com
e3af9ebeab 13260 r=akhil.arora@sun.com Fixed by Denis Sharypov <sdv@sparc.spb.su>
Added checks for integer arguments being outside of legal range and
  throw exceptions if not.


git-svn-id: svn://10.0.0.236/trunk@50861 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:25:56 +00:00
cmanske%netscape.com
b3ffd2ef95 Fixed bug 15442 - use about:blank for empty doc URL for editor. r=law
git-svn-id: svn://10.0.0.236/trunk@50860 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:24:45 +00:00
mccabe%netscape.com
dc9018f2ee Fix line editing support for the standalone XPCOM-enabled JavaScript shell. To aid debugging on unix platforms.
To use, define JS_READLINE when compiling mozilla/js/src/xpconnect/shell.

r=shaver


git-svn-id: svn://10.0.0.236/trunk@50859 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:23:53 +00:00
tbogard%aol.net
bb54504747 Adding support for retrieving the EditorShell from editor element. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50858 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:21:10 +00:00
brade%netscape.com
cb5f04d59d use the proper function calls to get the status for alt, shift and meta keys. bug #16486. reviewed valeski@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50857 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:20:57 +00:00
kipp%netscape.com
6b0a23c77d Nuke some more warnings
git-svn-id: svn://10.0.0.236/trunk@50855 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:18:32 +00:00
scc%netscape.com
38a4215c26 Bug #15292, r=dp. Made the component manager inherit from |nsSupportsWeakReference|, fixed its |QueryInterface()| appropriately, and added casts in two places that became ambiguous now that the component manager had multiple |nsISupports| in it. Now one can hold a weak reference to the component manager using |nsIWeakReference|.
git-svn-id: svn://10.0.0.236/trunk@50853 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:14:43 +00:00
law%netscape.com
d169b3d37b Fix for bugs #16525 and #16527, Remove menu separator when not link or frame, add back in missing items; r=matt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50850 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:13:31 +00:00
shaver%netscape.com
130160f659 Add support for type="checkbox" in <menuitem>.
Converted small pile of PRBool to PRPackedBool for space savings.
r=hyatt


git-svn-id: svn://10.0.0.236/trunk@50849 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:13:24 +00:00
law%netscape.com
fbce7337a4 Fix for bug #16269, add resizable feature to view-source window, r=danm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50848 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:11:22 +00:00
Jerry.Kirk%Nexwarecorp.com
bee1ad520f Handles KeyEvents the new way, not completely finished...
Bug # 16539 r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@50847 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:10:36 +00:00
vidur%netscape.com
6fb05929c2 Fix for viewer bustage on Windows. Added call to nsIThread::SetMainThread in main() of viewer so that it can retrieved in other cases. R=kipp
git-svn-id: svn://10.0.0.236/trunk@50846 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:09:46 +00:00
tbogard%aol.net
a469976da4 Adding support for retrieving the EditorShell from editor element. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50845 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:07:27 +00:00
jefft%netscape.com
ce92446784 remove the size limit for downloading Pop3 message; bug 16338; r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@50844 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 21:02:27 +00:00
waterson%netscape.com
d6562a99e8 Darnit. Didn't mean to FORCE_PR_LOG. Removing that #define.
git-svn-id: svn://10.0.0.236/trunk@50843 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:55:54 +00:00
tbogard%aol.net
a4dcc5f6fe First Check-in.
git-svn-id: svn://10.0.0.236/trunk@50842 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:51:58 +00:00
shaver%netscape.com
82e40a8366 Fix case and return value in nsIModule.idl.
Add deleteCategoryEntry and deleteCategory to nsICategoryManager.
Update nsCategoryManager.js to use new nsIModule case, and talk to the registry.
r=brendan


git-svn-id: svn://10.0.0.236/trunk@50841 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:51:38 +00:00
ssu%netscape.com
2c8714f0fe fixes bugs #15884 and #16220. r=dbragg. fixes Install.FileExecute for the
1 parameter format and also the function gets logged correctly in
install.log.


git-svn-id: svn://10.0.0.236/trunk@50840 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:50:49 +00:00
waterson%netscape.com
55b0508a7b Bug 9764. Fix HTML templates to ensure that attribute adding is namespace-agnostic. Add local variable for isUnique so that BuildContentFromTemplate will work if resource- and non-resource elements are siblings in a template. Add logging capability for debug. r=rjc.
git-svn-id: svn://10.0.0.236/trunk@50839 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:47:19 +00:00
ssu%netscape.com
8be86d2e54 fixes bug #6408 and #15393. r=dbragg. fixes windows installer xpinstall
error detection.  Windows platform only"


git-svn-id: svn://10.0.0.236/trunk@50838 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:47:15 +00:00
despotdaemon%netscape.com
3ff30eed90 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@50837 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 20:06:46 +00:00
kipp%netscape.com
54422e686a Eliminate need for networked loaded images
git-svn-id: svn://10.0.0.236/trunk@50836 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 19:44:09 +00:00
slamm%netscape.com
5203f99e62 Need to quote parentheses in ignore pattern.
git-svn-id: svn://10.0.0.236/trunk@50835 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 18:42:27 +00:00
despotdaemon%netscape.com
4e198d349e Pseudo-automatic update of changes made by jst@citec.fi.
git-svn-id: svn://10.0.0.236/trunk@50834 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 17:14:41 +00:00
kipp%netscape.com
93d0d8d38f nuked
git-svn-id: svn://10.0.0.236/trunk@50833 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 16:58:21 +00:00
bienvenu%netscape.com
bc725fb9b5 fix crash reading messages with new profiles
git-svn-id: svn://10.0.0.236/trunk@50831 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 16:09:49 +00:00
beard%netscape.com
4afa5bff04 improved report format, included root list
git-svn-id: svn://10.0.0.236/trunk@50830 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 15:56:05 +00:00
brade%netscape.com
6f185f7761 fixes to handle for control keys (off by 1) (bug #15693) r=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50829 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 14:56:33 +00:00
brade%netscape.com
a7ee842442 don't allow other modifiers when cut/copy/pasting (bug #15693); this missed the keyEvent branch. r=kin@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50828 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 14:52:45 +00:00
kipp%netscape.com
a41c4bbacd Removed old netlib code; changed url loading when crawling to use the event queue to fix some re-entrancy issues somewhat
git-svn-id: svn://10.0.0.236/trunk@50827 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 14:09:19 +00:00
kipp%netscape.com
f3b0bfeedb Added sorting to the debug dump data for show-frame-size and show-content-size
git-svn-id: svn://10.0.0.236/trunk@50826 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 14:08:14 +00:00
buster%netscape.com
34185693a8 bug 12221 [Dogfood] Gfx text controls need to notify on mouse events
r=rods@netscape.com
also did some associated performance work, factoring code and collapsing multiple listener
objects down to 1.  This saves a few allocations and about 60 bytes per text control.

bug 11803 Need new event for text value changing
r=hyatt@netscape.com
not dogfood approved, but the fix has been sitting in my tree for 2 weeks


git-svn-id: svn://10.0.0.236/trunk@50825 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:38:29 +00:00
buster%netscape.com
4225108b72 bug 11803 Need new event for text value changing
r=hyatt@netscape.com
not dogfood approved, but the fix has been sitting in my tree for 2 weeks


git-svn-id: svn://10.0.0.236/trunk@50824 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:37:06 +00:00
buster%netscape.com
dc3e971a7e bug 11803 Need new event for text value changing
r=hyatt@netscape.com
not dogfood, but the fix has been sitting in my tree for 2 weeks


git-svn-id: svn://10.0.0.236/trunk@50823 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:36:23 +00:00
buster%netscape.com
ab0550c29d no bug number, part of webshell cleanup. nsIWebShell.h was needlessly included, so I removed it
trivial change, no reviewer.


git-svn-id: svn://10.0.0.236/trunk@50822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:34:45 +00:00
rods%netscape.com
a38b9c0061 Fixed focus processing, this new code is very close to version 1.54 but more robust,
this fixes bug #7133. It has been compiled and tested on Win, Mac, and Linux.
r=buster,dcone


git-svn-id: svn://10.0.0.236/trunk@50821 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 13:20:32 +00:00
despotdaemon%netscape.com
b4b7016433 Pseudo-automatic update of changes made by tomk@mitre.org.
git-svn-id: svn://10.0.0.236/trunk@50820 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 11:54:29 +00:00
hyatt%netscape.com
6c5c58d1e8 Fix for 16479. r=waterson
git-svn-id: svn://10.0.0.236/trunk@50819 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:54:43 +00:00
tbogard%aol.net
f56f56047f Fixed a couple of typos.
git-svn-id: svn://10.0.0.236/trunk@50818 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:52:50 +00:00
varada%netscape.com
818b65a0d4 inform function has been changed to take in two parameters to show the filename as well as the directory with absolute path
git-svn-id: svn://10.0.0.236/trunk@50817 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:45:20 +00:00
varada%netscape.com
23669a0409 changes from relative path to absolute path in interpret.cpp and validation of empty entry in ncidialog
git-svn-id: svn://10.0.0.236/trunk@50816 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:43:57 +00:00
jevering%netscape.com
e8deb39b49 Adding boehm collector to windows.
(not part of the build yet)


git-svn-id: svn://10.0.0.236/trunk@50815 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:41:54 +00:00
jevering%netscape.com
8c8649671d Adding boehm collector linkages to the windows build.
(not part of the build yet)


git-svn-id: svn://10.0.0.236/trunk@50813 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:40:13 +00:00
tbogard%aol.net
8fef749953 Changed the nativeWindowParent's to be a nativeWindow instead of a long. nativeWindow is a typedef'd voidStar.
git-svn-id: svn://10.0.0.236/trunk@50807 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:31:28 +00:00
tbogard%aol.net
9565067a46 First landing.
git-svn-id: svn://10.0.0.236/trunk@50805 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:23:53 +00:00
dp%netscape.com
8b5b037caf bug# 5085 Eliminating some checks at autoreg time to improve startup
performance. r=sfraser


git-svn-id: svn://10.0.0.236/trunk@50803 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:12:08 +00:00
waterson%netscape.com
9f70f9cb52 Add xpcnativecallcontext.cpp for jband.
git-svn-id: svn://10.0.0.236/trunk@50802 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 07:08:15 +00:00
varada%netscape.com
1882311d32 removing relative paths and evaluating absolute ones
git-svn-id: svn://10.0.0.236/trunk@50801 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 06:51:03 +00:00
dveditz%netscape.com
20b7b8aa72 expose libreg ability to delete named values in nsIRegistry. Patch from
Jonas Utterström <jonas.utterstrom@vittran.norrnod.se>, r=dveditz


git-svn-id: svn://10.0.0.236/trunk@50800 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 06:47:58 +00:00
rjc%netscape.com
9621ab20bf Fix leak in nsXULSortService (found by Boehm GC). Also, remove CTOR_COUNT stuff. Review: waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50798 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 06:27:02 +00:00
brendan%mozilla.org
f2330eb459 1. Fixed missing JS_LOCK_GC in JS_YieldRequest, commented other badness there.
2.  Cleaned up ugly JS_GC_Flag typedef name and put XXXbe comment in there for
    next time: someone seems to have patched around a deadlock that has since
    bit chouck@geocast.com.
3.  Fixed gcDisabled by moving it from cx to rt and updating it atomically.
4.  Fixed ECMA violation where for (var i, j in o) ... was permitted; only one
    variable is allowed.
(Item 4 was a bug on rogerl's list, since closed?  r=shaver@mozilla.org.)


git-svn-id: svn://10.0.0.236/trunk@50795 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:46:42 +00:00
sspitzer%netscape.com
37928e864b fix possible solaris bustage by including the nsIFoo.h files when we have nsCOMPtr<nsIFoo> foo;
git-svn-id: svn://10.0.0.236/trunk@50794 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:10:28 +00:00
jband%netscape.com
32f352bb68 adding new empty placeholder file to the build. Will also add it to Mac project via camelot and put real stuff in it after all is stable. r=jband :)
git-svn-id: svn://10.0.0.236/trunk@50793 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:09:08 +00:00
sspitzer%netscape.com
b3c21470de more fixes to get copies and sent folder prefs to work right.
now, mailbox:// urls work.
change the logic of LocateMessageFolder() to be:

if (the target folder is not "anyfolder://") then {
	find the folder and return it if your find it.
	if you can't find it, create it in the datasource and return the folder.  see bug #14591
}
else {
	look for the default folder in any server associated with the current identity.
	if you find it, return it.
}


git-svn-id: svn://10.0.0.236/trunk@50790 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 05:03:03 +00:00
waterson%netscape.com
daa650308d Unclutter stuff by using nsCOMPtr in the nsElementMap::ContentListItem. Add leakenmacros to ContentListItem. Fix a leak in the the internal enumerator routine. Comment the internal enumerator routine since it's kinda funky. Add 'tag name' to the log messages.
git-svn-id: svn://10.0.0.236/trunk@50789 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:45:43 +00:00
sspitzer%netscape.com
f6806b13d3 remove unused variablable to fix a couple warnings.
git-svn-id: svn://10.0.0.236/trunk@50788 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:33:21 +00:00
shaver%netscape.com
103a22ed8e fix obj_getCount to property destroy state and propagate error (r=jband)
git-svn-id: svn://10.0.0.236/trunk@50787 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:32:46 +00:00
kin%netscape.com
9af25b17a4 Fix for bug #15360: Drag Selecting, Clicking, then Clicking leaves caret cruft.
r=troy@netscape.com,kipp@netscape.com,evaughan@netscape.com,beard@netscape.com

layout/html/base/src/nsGfxScrollFrame.cpp
    - Renamed all occurrences of ScrollPositionChanged() to
      to ScrollPositionDidChange() to match changes made
      to nsIScrollPositionListener.
    - Added ScrollPositionWillChange() stub method.

layout/html/base/src/nsPresShell.cpp
    - Added PresShellViewEventListener class that implements the
      nsIScrollPositionListener and nsICompositeListener view
      interfaces. This allows us to turn caret rendering on and off
      when scrolling and repainting to prevent leaving caret cruft
      on the screen.
    - PresShellViewEventListener is created in InitialReflow(), and
      released in ~PresShell().

view/public/Makefile.in
view/public/makefile.win
view/public/MANIFEST
    - Added nsICompositeListener to list of files to be exported.

view/public/nsICompositeListener.h
    - New file. Implementers of this interface can register themselves
      with the view manager to receive notification before and after
      a view is composited/refreshed.

view/public/nsIScrollPositionListener.h
    - Added a ScrollPositionWillChange() method.
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().

view/public/nsIViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener methods.

view/src/nsScrollingView.cpp
view/src/nsScrollingView.h
    - Added NotifyScrollPositionWillChange() and
      NotifyScrollPositionDidChange() methods.
    - Modified HandleScrollEvent() to call NotifyScrollPositionWill/DidChange()
      methods. Added temporary offsetX and offsetY variables to allow us
      to calculate new offsets without changing mOffsetX and mOffsetY before
      notifications are sent out.

view/src/nsScrollPortView.cpp
    - Changed ScrollPositionChanged() to ScrollPositionDidChange().
    - Modified ScrollTo() to call the listener's ScrollPositionWillChange()
      method.

view/src/nsViewManager.cpp
view/src/nsViewManager.h
    - Added AddCompositeListener() and RemoveCompositeListener() methods.
    - Added support for CompositeListener notifications in the Refresh()
      methods for regions and rects.
    - Fix for bug #15901: [DOGFOOD] Selected text does not clear when you type
      Modified UpdateView() so that rects with zero width and height are
      no longer added to our damage region.
      r=beard@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50786 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:29:30 +00:00
karnaze%netscape.com
dcf8e1f205 new regression test.
git-svn-id: svn://10.0.0.236/trunk@50785 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:29:09 +00:00
waterson%netscape.com
033d3bbd40 Fix compiler warning; r=rjc.
git-svn-id: svn://10.0.0.236/trunk@50784 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:26:46 +00:00
neeti%netscape.com
34b93b8117 updating status
git-svn-id: svn://10.0.0.236/trunk@50783 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:20:40 +00:00
karnaze%netscape.com
ef61c5a72c pass2 reflow doesn't request max element sizes to help with bug 14855. Reviewers didn't respond.
git-svn-id: svn://10.0.0.236/trunk@50782 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:09:22 +00:00
brendan%mozilla.org
7c13a9f3b1 Rename ToSource to uneval (r=shaver@mozilla.org,terry@geocast.com).
git-svn-id: svn://10.0.0.236/trunk@50781 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:07:59 +00:00
neeti%netscape.com
898eb50d34 Converted to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@50780 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:06:43 +00:00
neeti%netscape.com
6b6c7716c8 Converted to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=alecf
git-svn-id: svn://10.0.0.236/trunk@50779 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:06:14 +00:00
neeti%netscape.com
351b6ca2c6 Converted to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=waterson
git-svn-id: svn://10.0.0.236/trunk@50778 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 04:05:22 +00:00
beard%netscape.com
08cd03a169 fixed 2 string memory leaks (bug #15380). r=saari
git-svn-id: svn://10.0.0.236/trunk@50777 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:57:45 +00:00
radha%netscape.com
d7784c7d67 Send out OnStartDocumentLoad(0 notifications for visits to
anchors in a page. bug # 11631 15441. r=law. Got clearance from travis too


git-svn-id: svn://10.0.0.236/trunk@50776 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:50:47 +00:00
bienvenu%netscape.com
78b763db4d more of addrbook memory leak fixes r=mscott
git-svn-id: svn://10.0.0.236/trunk@50774 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:50:21 +00:00
radha%netscape.com
d6dbd3db1f fixing session history for frames. I accidently broke the behavior in
my monday's checkin. No bug #. r=law


git-svn-id: svn://10.0.0.236/trunk@50773 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:49:29 +00:00
troy%netscape.com
be2abd7a2c Patch from jst@citec.fi r=troy@netscape.com
Part of a fix for crash when expanding/collapsing toolbars. Change to
DeletingFrameSubtree() to make sure it examines the additional child
list as well as the principal child list


git-svn-id: svn://10.0.0.236/trunk@50772 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:37:10 +00:00
waterson%netscape.com
1464bedb39 Bug 16402. Make sure that literals addref (and release) the RDF service. Make sure to deal with edge Unregister[Resource|Literal] conditions; e.g., being called to unregister a literal when none was ever registered. r=rjc
git-svn-id: svn://10.0.0.236/trunk@50771 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:36:04 +00:00
jband%netscape.com
df5ae28aef r=shaver
- Fixed two similar cases where code was missing one level of
pointer dereference in terminating a copied string. Was trashing
data further up the stack.
- Use 'nsAllocator::Free' in two similar cases where 'delete' was
mistakenly used. Error pointed out by Purify.


git-svn-id: svn://10.0.0.236/trunk@50770 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:31:09 +00:00
rhp%netscape.com
2caa1592a8 Fix for email names with embedded &'s - Bug #16383 r=jefft
git-svn-id: svn://10.0.0.236/trunk@50769 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:27:33 +00:00
troy%netscape.com
8ec1b4ee83 Space savings. r=kipp@netscape.com
Re-implemented DST code to use separate objects for leaf nodes and
internal nodes. This reduces the per node size from 16 bytes to (on
average) 13 bytes per node


git-svn-id: svn://10.0.0.236/trunk@50768 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:18:28 +00:00
troy%netscape.com
9c1337b86f Space savings. r=karnaze@netscape.com Cc'd hyatt@netscape.com
Eliminated member data mIsContentEmpty and now we use a frame state bit
instead. This saves 4 bytes of space per table cell frame


git-svn-id: svn://10.0.0.236/trunk@50767 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:14:59 +00:00
shaver%netscape.com
9a4de938e7 make xpcshell use jsrtsvc, and let jsrtsvc handle JS_Shutdown (r=jband)
git-svn-id: svn://10.0.0.236/trunk@50766 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 03:05:48 +00:00
bienvenu%netscape.com
0eddf3358e fix memory leak of nsIURI in Set and GetAttribute r=waterson
git-svn-id: svn://10.0.0.236/trunk@50765 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 02:59:37 +00:00
srinivas%netscape.com
cc0b044bfe Autoconf for NSPR. Checkin for cls@seawood.org. Bugzilla #11893.
git-svn-id: svn://10.0.0.236/trunk@50764 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 02:42:36 +00:00
srinivas%netscape.com
6f136bc3f5 Autoconf for NSPR. Checkin for cls@seawood.org. Bugzilla #11893.
git-svn-id: svn://10.0.0.236/trunk@50763 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 02:36:40 +00:00
peterl%netscape.com
06471a021a moved toggle and tri-state from user-modify to user-select to stay in sync with CSS3
no bug #
r=pierre


git-svn-id: svn://10.0.0.236/trunk@50762 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 02:11:09 +00:00
cls%seawood.org
e381009988 Fix for bug #13412. r=shaver
If configured using --with-extensions or --with-extension=all, enable all of the non-default extensions rather than extension "yes" or "all".


git-svn-id: svn://10.0.0.236/trunk@50761 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 02:04:09 +00:00
akhil.arora%sun.com
047329ce0a 16426 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
The class java.lang.RuntimeException was not being pinned


git-svn-id: svn://10.0.0.236/trunk@50760 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:47:04 +00:00
akhil.arora%sun.com
4e04c99aad 16427 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
Check before dereferencing a NULL pointer.


git-svn-id: svn://10.0.0.236/trunk@50759 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:43:24 +00:00
varada%netscape.com
b2e2e2a6bc change from relative to absolute path
git-svn-id: svn://10.0.0.236/trunk@50758 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:39:32 +00:00
sspitzer%netscape.com
0d6acc8491 fix for #14892, automatically migrate if we only have one 4.x profile and no 5.0 profiles.
r=mscott.


git-svn-id: svn://10.0.0.236/trunk@50757 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:38:54 +00:00
akhil.arora%sun.com
0e030fdb50 16424 r=akhil.arora@sun.com fixed by Denis Sharypov <sdv@sparc.spb.su>
Fix two problems that kept the code from compiling on Win32


git-svn-id: svn://10.0.0.236/trunk@50756 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:38:42 +00:00
varada%netscape.com
cbaf31ef98 getting rid of relative paths in wizardmachine.cpp and wizardui.cpp for generate lists
git-svn-id: svn://10.0.0.236/trunk@50755 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:38:25 +00:00
varada%netscape.com
0e04699ad6 getting rid of relative paths in accountsetup and checklist inifiles
git-svn-id: svn://10.0.0.236/trunk@50754 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 01:19:25 +00:00
despotdaemon%netscape.com
6e4309cd35 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@50753 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:57:31 +00:00
wtc%netscape.com
ef278f909e Bugsplat bug #358401: created a separate .rc file for each DLL. The
product name is "Netscape Portable Runtime" and the file descriptions
are "NSPR Library", "PLDS Library", "PLC Library", and "PRSTRMS Library".
A debug build is indicated in the file description.  The copyright years
changed to 1996-1999.
Modified files: rules.mk, lib/ds/Makefile, lib/ds/Makefile.in,
lib/libc/src/Makefile, lib/libc/src/Makefile.in,
lib/prstreams/Makefile, lib/prstreams/Makefile.in,
prinit.h, nspr.rc
Added files: plds.rc, plc.rc, prstrms.rc
Removed file: resource.h


git-svn-id: svn://10.0.0.236/trunk@50752 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:51:41 +00:00
mcafee%netscape.com
981a0b415a Add #status option so you don't have to scroll down to the tree status.
git-svn-id: svn://10.0.0.236/trunk@50751 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:50:58 +00:00
sspitzer%netscape.com
13ef2ec53a more fixes to the 4.x uri -> 5.0 uri (copies and folders) code, for windows and mac.
#14951.  r=mscott


git-svn-id: svn://10.0.0.236/trunk@50750 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:50:34 +00:00
rpotts%netscape.com
fa27c68f3e bug #16328. Share a single nsToolkit instance among all widgets.
git-svn-id: svn://10.0.0.236/trunk@50749 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:49:11 +00:00
fur%netscape.com
69272dcfcd Initial version of net data cache APIs
git-svn-id: svn://10.0.0.236/trunk@50748 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:46:41 +00:00
kipp%netscape.com
f23d12f0ae Removed two more warnings
git-svn-id: svn://10.0.0.236/trunk@50747 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:29:28 +00:00
leaf%mozilla.org
1388fcf255 adding lib/mac/embedding for pierre -leaf
git-svn-id: svn://10.0.0.236/trunk@50746 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:19:06 +00:00
cathleen%netscape.com
1ba2750fb6 adds jsurl.xpt and html.css to windows packager list
git-svn-id: svn://10.0.0.236/trunk@50745 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:14:44 +00:00
wtc%netscape.com
974a9a3d5c Backed out the Windows resource file stuff checked in in the autoconf
branch merge.  It has two problems: 1. RESOBJ is not being used.  It
has the same meaning as the existing variable RES.  2. $(RES) is added
to OBJS twice on Win32.


git-svn-id: svn://10.0.0.236/trunk@50744 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:14:09 +00:00
nhotta%netscape.com
0cbcded17a Hooking up nsISaveAsCharset to the build, part of bug fix 8865, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@50743 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:13:00 +00:00
bienvenu%netscape.com
f9c5bba278 fix memory leaks opening and closing dbs r=mscott
git-svn-id: svn://10.0.0.236/trunk@50742 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:11:58 +00:00
nhotta%netscape.com
dbcdcc135b Changed to get a charset name from a locale instead of hard code, also fixed a memory leak, bug=10816, r=tague
git-svn-id: svn://10.0.0.236/trunk@50741 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:11:38 +00:00
nhotta%netscape.com
54747068e8 Additional fallback for not charset labeled input, bug=15766, r=rhp
git-svn-id: svn://10.0.0.236/trunk@50740 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:08:42 +00:00
nhotta%netscape.com
58752631d9 Hooking up nsISaveAsCharset to the build, part of bug fix 8865, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@50739 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:05:23 +00:00
bienvenu%netscape.com
284cea9db5 fix mork linked list which was disabling more than one table change from getting recorded r=davidmc
git-svn-id: svn://10.0.0.236/trunk@50738 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-15 00:05:10 +00:00
shaver%netscape.com
62dca335b0 Fix for 15480 (menu reflow from content change).
Use <titledbutton>, not <div>, for accelerator text to fix alignment
and improve performance _ever_ so slightly.
Initial support for checked menus (needs more magic).
(r=hyatt)


git-svn-id: svn://10.0.0.236/trunk@50737 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:59:18 +00:00
wtc%netscape.com
ad9bb8908b Removed the rule for $(PURE_LIBRARY), which was accidentally
resurrected in the autoconf checkin.


git-svn-id: svn://10.0.0.236/trunk@50736 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:55:27 +00:00
shaver%netscape.com
f3548d4772 case correction, scriptability and deprecative comment for nsIEnumerator (r=waterson,brendan)
git-svn-id: svn://10.0.0.236/trunk@50734 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:52:59 +00:00
mjudge%netscape.com
8633625794 oops. for got to check this in last time. bug number is 14795
git-svn-id: svn://10.0.0.236/trunk@50733 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:52:42 +00:00
norris%netscape.com
9323b18962 Fix a Unix warning by removing an unused local variable
git-svn-id: svn://10.0.0.236/trunk@50732 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:49:36 +00:00
norris%netscape.com
d8ebef8633 correct a comment.
git-svn-id: svn://10.0.0.236/trunk@50731 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:49:05 +00:00
kmcclusk%netscape.com
d8ff43782f Set vertical-align:baseline for input[type=image] to make it compatible with Nav 4.x
bug #16370; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50730 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:48:02 +00:00
pollmann%netscape.com
806e3f40cd Bugs 16450, 11979, 16576: Add back a CRLF I took out of the form post headers; r=harishd
git-svn-id: svn://10.0.0.236/trunk@50729 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:47:08 +00:00
davidm%netscape.com
b8febcc271 14974 apprunner fails to start up on B&W G3 8.6
Add file to generate logs on the mac
r sdagley


git-svn-id: svn://10.0.0.236/trunk@50728 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:46:27 +00:00
norris%netscape.com
814809437c Fix bug 16303. r=alecf@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50727 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:45:40 +00:00
davidm%netscape.com
4d52510e79 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50726 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:45:20 +00:00
kmcclusk%netscape.com
440593ffd1 When submitting a form using a "get" method only add the ? if the href does not end in a ?.
bug #16137 r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50725 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:45:02 +00:00
kmcclusk%netscape.com
9827b1d455 Return the value of the option element value attribute if it is present otherwise return
the content of the option. bug #16158. r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50724 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:41:40 +00:00
morse%netscape.com
19b5a1e558 fix bug 16357, memory leak, r=neeti
git-svn-id: svn://10.0.0.236/trunk@50723 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:37:35 +00:00
harishd%netscape.com
1cd0327569 Bug fix 2749 - Tweaked comment handling in quirks mode.
Bug fix 15992 - Line breaks within script and style were not getting counted
Related to bug 15423 - Rectified a glitch in Nav. DTD code where a doctype tag
                                         was opening up a body.
Userdefined tags are now treated as containers.
Added Kipp's Leaky Tool

r=pollmann.


git-svn-id: svn://10.0.0.236/trunk@50722 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:37:21 +00:00
morse%netscape.com
75a2c4fce1 fix bug 16348, memory leak, r=neeti
git-svn-id: svn://10.0.0.236/trunk@50721 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:36:50 +00:00
sdagley%netscape.com
6f9ff35120 Enforce _MD_DEFAULT_STACK_SIZE as the minimum stack size on Mac. r=beard
git-svn-id: svn://10.0.0.236/trunk@50720 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:33:13 +00:00
pepper%netscape.com
7f58cc3a0b Changed friend declaration to make HP compilers happy.
aCC requires a decl of friend class ClassName instead of friend ClassName.
r=peterl@netscape.com,mgleeson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50719 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:31:07 +00:00
ssu%netscape.com
6277f3a3b3 fixes bug #16246, #16312, #16344, #16308. r=dbragg@netscape.com. fixes crash bug if the install file operation fails. no longer crashes.
git-svn-id: svn://10.0.0.236/trunk@50718 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:30:56 +00:00
kipp%netscape.com
a4a3169649 r=dougt; fixed a warning
git-svn-id: svn://10.0.0.236/trunk@50717 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:30:39 +00:00
sdagley%netscape.com
072fc1a666 Marking all Mac threads as GCable for leak detector work. Bug #15906. r=beard
git-svn-id: svn://10.0.0.236/trunk@50716 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:29:34 +00:00
pepper%netscape.com
0c627abfcd Added missing newline at end of file to make the HP compilers happy.
r=mgleeson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50715 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:28:17 +00:00
alecf%netscape.com
3185d0a81d add boehm to apprunner
(flag not active in build yet)


git-svn-id: svn://10.0.0.236/trunk@50714 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:27:45 +00:00
alecf%netscape.com
4d423eecaf add boehm leak detector support to xpcom on linux
(these flags not active in the build yet)


git-svn-id: svn://10.0.0.236/trunk@50713 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:26:41 +00:00
wtc%netscape.com
0317a9ec8d Bugsplat bug #365543: removed the PRIntn typecast in the definition of
PR_TRUE and PR_FALSE.


git-svn-id: svn://10.0.0.236/trunk@50712 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:25:01 +00:00
alecf%netscape.com
c8460fa4ce tweaks to make generic_threads work on linux
not part of build


git-svn-id: svn://10.0.0.236/trunk@50711 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:24:34 +00:00
alecf%netscape.com
2fce42c8be more tweaks to make beard's generic_threads stuff work on linux
linux already has some of these routines implemented with pthread-specifics
not part of build = no reviewer/bug


git-svn-id: svn://10.0.0.236/trunk@50710 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:22:17 +00:00
mgleeson1%netscape.com
34c5281c43 r=pepper HPUX specific change - enable 64-bit int for js
git-svn-id: svn://10.0.0.236/trunk@50709 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:20:27 +00:00
wtc%netscape.com
463f69ae27 Bugzilla bug #14126: quote $(OS_RELEASE) in the shell command.
Thanks to Greg Noel <GregNoel@san.rr.com> for the bug report
and the fix.  Reviewed by Greg Noel and tested on several flavors
of Linux (x86, sparc, alpha, and ppc) and FreeBSD.


git-svn-id: svn://10.0.0.236/trunk@50708 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:17:38 +00:00
mcafee%netscape.com
8ebe80d3dc Better warning messages. r=pavlov.
git-svn-id: svn://10.0.0.236/trunk@50707 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:13:39 +00:00
kipp%netscape.com
37a76d8a25 r=Tomi.Leppikangas@oulu.fi; landed his patch for solaris build issues
git-svn-id: svn://10.0.0.236/trunk@50706 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:11:44 +00:00
kipp%netscape.com
63bce01588 Fixed edge case where line bounds wasn't quite accurate which causes the combined rect to not match which now wastes memory; only affects right aligned lines
git-svn-id: svn://10.0.0.236/trunk@50705 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:10:59 +00:00
kipp%netscape.com
18e9b9d2f5 r=troy; Reworked nsLineBox api to allow for reduced storage overhead; fixed bug 16252 while keeping bug 12709 fixed
git-svn-id: svn://10.0.0.236/trunk@50704 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:10:03 +00:00
jband%netscape.com
b3711cec39 Fixing leaks found by beard...
- Fixed leaked nsID ptr. bug 16373. This alsothrows a JS
exception when JS callers call createInstance or getService
using an (optional) param that is not an iid. This had been a
'XXX' in the code.
- Moved a release call out of just the error condition block in
setting up a ServiceReleaser. I should have caught this one, but
few of my tests use services :(  I have hopes that the whole
ServiceReleaser will become unnecessary as the ServiceManager
system changes and simply calling NS_RELEASE on a service becomes
sufficient.
- Cleaned up an addref/release pair in a setter (need to move to
nsComPtrs!) r=beard


git-svn-id: svn://10.0.0.236/trunk@50703 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:08:59 +00:00
kipp%netscape.com
dde9a9185e r=troy; Use a custom frame type so that bullets show up properly in the frame sizing data
git-svn-id: svn://10.0.0.236/trunk@50702 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:08:58 +00:00
kipp%netscape.com
3f737c9dc4 r=troy; Added some more atoms so that Dframe sizing data is more particular for line boxes
git-svn-id: svn://10.0.0.236/trunk@50701 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:08:31 +00:00
kipp%netscape.com
873c0b8d47 r=troy; Added a #define to prevent future code crashes
git-svn-id: svn://10.0.0.236/trunk@50700 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:08:04 +00:00
ftang%netscape.com
2a3924d2e0 fix Shift+a does not produce A in editor problem. We need to clean up isShift before we send. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@50699 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 23:04:57 +00:00
kipp%netscape.com
a542382c77 Added a new table regression test
git-svn-id: svn://10.0.0.236/trunk@50698 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 22:58:41 +00:00
terry%mozilla.org
909afc64d2 Patch by holger@holger.om.org (Holger Schurig) -- was not correctly fixing up the 'when' column in the bugs_activity table.
git-svn-id: svn://10.0.0.236/trunk@50697 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 22:35:12 +00:00
terry%mozilla.org
270c5df832 Patch by holger@holger.om.org (Holger Schurig) -- get the permissions right on the shadow directory.
git-svn-id: svn://10.0.0.236/trunk@50696 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 22:32:44 +00:00
ftang%netscape.com
da9f453e91 fix problem with url bar trancation. Do not send extra key press for non A-Z0-9
git-svn-id: svn://10.0.0.236/trunk@50695 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 21:49:49 +00:00
brade%netscape.com
6bc5327b10 add nspr shlb to optimized too (to fix probably future mac bustage); remove bad path (r=sfraser@netscape.com)
git-svn-id: svn://10.0.0.236/trunk@50694 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 20:34:38 +00:00
ssu%netscape.com
0acd8acee3 fixing bug #16242. approved by leaf. r=leaf. removes jre122 from the mozilla installer. not part of tinderbox. would only affect windows.
git-svn-id: svn://10.0.0.236/trunk@50693 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 20:23:22 +00:00
brade%netscape.com
9c363797fa add nspr shlb to debug to fix mac build bustage
git-svn-id: svn://10.0.0.236/trunk@50692 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 20:18:30 +00:00
dmose%mozilla.org
f0ad8b22a7 fix to cope with checkins.when column name change to checkins.ci_when
git-svn-id: svn://10.0.0.236/trunk@50691 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 20:10:30 +00:00
ftang%netscape.com
0abb41fb24 fix the problem taht PageUp/PageDown/Up/Down/Left/Right/Home/End does not work after we land the keyevent branch. add missing isMeta code there
git-svn-id: svn://10.0.0.236/trunk@50690 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 20:03:00 +00:00
ftang%netscape.com
2d2a382150 landing keyEvent_19991004_BRANCH
bugs # see the log of the check in into branch
author/reviewer:
mozilla/layout/base/src/nsRangeList.cpp brade/mjudge
mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp brade/ftang
mozilla/layout/events/src/nsDOMEvent.cpp brade/joki
mozilla/layout/events/src/nsEventStateManager.cpp brade/joki
mozilla/widget/public/nsGUIEvent.h akkana/ftang
mozilla/widget/src/windows/nsWindow.cpp ftang/mjudge
mozilla/widget/src/windows/nsWindow.h ftang/mjudge
mozilla/widget/src/mac/nsTextAreaWidget.cpp brade/ftang
mozilla/widget/src/mac/nsMacEventHandler.cpp brade/simon
mozilla/widget/src/xpwidgets/nsKeyBindMgr.cpp brade/ftang
mozilla/widget/src/gtk/nsGtkEventHandler.cpp akkana/?
mozilla/widget/src/gtk/nsWidget.cpp erik/ftang
mozilla/layout/xul/base/src/nsTreeCellFrame.cpp brade/ftang
mozilla/editor/base/nsEditorEventListeners.cpp brade/akkana
mozilla/editor/base/nsHTMLEditor.cpp brade/akkana
mozilla/rdf/content/src/nsXULKeyListener.cpp ftang/saari
fix the master bug- 15693
fix at least, but not limited to, the following bugs
10158,11956,6053,9333,10901,14348,6449,11845,13016,14410,15657,15307,15842,13856


git-svn-id: svn://10.0.0.236/trunk@50688 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 18:27:01 +00:00
alecf%netscape.com
74f7c311eb fix back/forward buttons, #16415
a=leaf


git-svn-id: svn://10.0.0.236/trunk@50687 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 18:26:13 +00:00
terry%mozilla.org
210deb53ba Fix invalid SQL introduced by last patch.
git-svn-id: svn://10.0.0.236/trunk@50686 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 17:34:00 +00:00
terry%mozilla.org
e121b35d4c Allow sorting of status whiteboard column.
git-svn-id: svn://10.0.0.236/trunk@50685 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 17:21:43 +00:00
srinivas%netscape.com
3b846f9edf Add autoconf for NSPR. Check in for cls@seawood.org. Buzill 11893
git-svn-id: svn://10.0.0.236/trunk@50684 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 15:09:11 +00:00
rods%netscape.com
f2b4462a33 This corrects an erroneous checkin made on monday, fixes bug #16362 r=dcone
git-svn-id: svn://10.0.0.236/trunk@50683 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 14:55:08 +00:00
srinivas%netscape.com
e68238933b Autconf for NSPR. Checkin for cls@seawood.org. Bugzill #11893.
git-svn-id: svn://10.0.0.236/trunk@50682 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 14:50:38 +00:00
kipp%netscape.com
49f795c9c9 Make necko work with the viewer again
git-svn-id: svn://10.0.0.236/trunk@50681 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 14:43:59 +00:00
brade%netscape.com
bbc03d38ad remove dbl-click message (per joki); dblclick message is causing bug #14990; r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50680 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 14:22:22 +00:00
brade%netscape.com
eb9061c0ef add nsXULControllers.cpp for hyatt (fix mac bustage)
git-svn-id: svn://10.0.0.236/trunk@50679 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 14:14:55 +00:00
brade%netscape.com
093237bea8 add nsIControllers.idl for hyatt (fix mac build bustage)
git-svn-id: svn://10.0.0.236/trunk@50678 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 13:56:34 +00:00
morse%netscape.com
9cbd053f44 fix bug 10434, memory leak detection, r=kin
git-svn-id: svn://10.0.0.236/trunk@50677 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 13:50:36 +00:00
morse%netscape.com
789e4a6e68 fix bug 10434, memory leak detection, r=valeski
git-svn-id: svn://10.0.0.236/trunk@50676 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 13:36:33 +00:00
hyatt%netscape.com
b895b64505 Fixing warnings. r=travis
git-svn-id: svn://10.0.0.236/trunk@50675 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 12:02:32 +00:00
hyatt%netscape.com
3e56d44211 Fixing linux bustage. Typo in makefile.
git-svn-id: svn://10.0.0.236/trunk@50674 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 11:18:03 +00:00
tbogard%aol.net
226a10c27a Changed the content area of navigator to use the new browser tag rather than html:iframe. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@50673 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 11:00:21 +00:00
hyatt%netscape.com
9259952dca Landing re-architected command dispatcher. r=hangas(XUL/JS), saari(C++)
git-svn-id: svn://10.0.0.236/trunk@50672 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:58:25 +00:00
tbogard%aol.net
d548e091c7 Fixed a number of incorrect assumptions of the attribute retrieval so it would now work with the of new XUL content nodes (iframe, browser, editor). r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@50671 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:58:04 +00:00
tbogard%aol.net
e623d0cd2b Adding construction for new XUL tags "iframe", "editor", and "browser". r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@50670 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:55:24 +00:00
tbogard%aol.net
645b1aba54 Adding new XUL tags, "iframe", "browser", "editor". r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@50669 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:54:32 +00:00
tbogard%aol.net
9cb4c25b8a Added rules for the new browser, editor and iframe types. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50668 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 10:50:10 +00:00
sgehani%netscape.com
04a7745986 *** NOT PART OF BUILD ***
Fixed bug 11216: Cascading dependencies feature
   
Fixed bug 14320: Parser and action support for the LAUNCHAPP atribute
   
Fixed bug 14322: Mouse over displays component description
   
Fixed bug 16224: Mac Install Wizard crashing when installing custom components


git-svn-id: svn://10.0.0.236/trunk@50667 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 08:30:29 +00:00
sgehani%netscape.com
e33d697bbd Divide by 1024 rather than 1000 when calculating component install sizes. [r=ssu]
git-svn-id: svn://10.0.0.236/trunk@50666 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 08:15:35 +00:00
locka%iol.ie
3e4a7413ef Seperated webshell initialisation/termination out into their own methods. Added support to run Mozilla control from any directory with calls to the new NS_InitXPCOM and some new registry keys.
git-svn-id: svn://10.0.0.236/trunk@50665 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 07:46:55 +00:00
locka%iol.ie
e08fc8df48 Added context popup menu resources
git-svn-id: svn://10.0.0.236/trunk@50664 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 07:44:40 +00:00
locka%iol.ie
9d3f958db2 Added simple working implementation of drag and drop. Control now accepts a URL dragged and dropped from the IE address bar.
git-svn-id: svn://10.0.0.236/trunk@50663 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 07:43:50 +00:00
alecf%netscape.com
4cb578fb28 fix for #16303 - work around DOM security by specifying absolute chrome URLs
patch from norris, r=alecf


git-svn-id: svn://10.0.0.236/trunk@50662 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 07:07:43 +00:00
alecf%netscape.com
067e9e08c7 more tweaks to actually make this do useful things with linux - override malloc with GC_malloc
git-svn-id: svn://10.0.0.236/trunk@50659 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 05:34:21 +00:00
alecf%netscape.com
b7e4e49c84 make this link on rh60 - the pthreads that comes with rh60 doesn't allow direct access to __pthread_initial_thread_box, which was only used as a test anyway
git-svn-id: svn://10.0.0.236/trunk@50658 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 05:33:46 +00:00
troy%netscape.com
3007f63368 b=15388,15408 r=peterl@netscape.com
Made it so that for absolutely positioned frames we pass in the containing
block width/height to the HTML reflow state, rather than have it compute it.
This means we get a bottom up size rather than a top down size. That fixes
a problem where for containing blocks with a specified 'height' of 'auto' we
weren't correctly calculating the containing block height


git-svn-id: svn://10.0.0.236/trunk@50657 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:56:50 +00:00
troy%netscape.com
bc13612958 b=16238. Fix discussed with evaughan@netscape. One line change to make sure
the default area frame flag of NS_BLOCK_SPACE_MGR is used for scrolled
elements


git-svn-id: svn://10.0.0.236/trunk@50656 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:47:18 +00:00
warren%netscape.com
18d4872487 Reordered columns as per macafee's suggestion.
git-svn-id: svn://10.0.0.236/trunk@50655 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:37:13 +00:00
troy%netscape.com
50fb78a575 Space reductions for nsTableFrame. r=karnaze@netscape.com and changes Cc'd to
Hyatt. Tested extensively in apprunner (now mozilla). Change was to reduce from
10 to 5 the default size of the mColumnWidths array (note that the array is
dynamically grown if necessary). This reduces by 20 bytes the minimum table
frame size


git-svn-id: svn://10.0.0.236/trunk@50654 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:27:01 +00:00
karnaze%netscape.com
43efe84083 bug 15247 - ComputeAvailableTableWidth accounts for margins
git-svn-id: svn://10.0.0.236/trunk@50653 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:03:20 +00:00
karnaze%netscape.com
14d9729d57 cells with width=0 become auto, added comments
git-svn-id: svn://10.0.0.236/trunk@50652 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 04:01:26 +00:00
karnaze%netscape.com
1c91cf67ee new regression tests
git-svn-id: svn://10.0.0.236/trunk@50651 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 03:59:42 +00:00
ssu%netscape.com
661f8f1993 fixing bug #16064. checking in for dveditz@netscape.com. r=ssu@netscape.com. This fixes the crash under win98 when running from the windows installer.
git-svn-id: svn://10.0.0.236/trunk@50650 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 03:26:22 +00:00
srinivas%netscape.com
33f38025b2 Enable specification of minimum stack size.
git-svn-id: svn://10.0.0.236/trunk@50649 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 02:33:14 +00:00
jefft%netscape.com
f59d48eecf enable message move/copy {File Here} menu item; bug 13880, r= hangas
git-svn-id: svn://10.0.0.236/trunk@50648 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 02:20:02 +00:00
rhp%netscape.com
36d221edd9 Fix for attachment count - bug #16076 - reviewer: jefft
git-svn-id: svn://10.0.0.236/trunk@50647 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 02:05:20 +00:00
alecf%netscape.com
e39c37dd58 one down, one to go
git-svn-id: svn://10.0.0.236/trunk@50646 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 02:01:40 +00:00
beard%netscape.com
2975241aaf added support for "about:bloat?leaks". bug=15906,r=warren
git-svn-id: svn://10.0.0.236/trunk@50645 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:56:49 +00:00
varada%netscape.com
60280cb48a fix for bug #6348 -new field called Title is to be added in each ini file for the show example
git-svn-id: svn://10.0.0.236/trunk@50644 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:56:43 +00:00
evaughan%netscape.com
c89e48e233 Fixed gfx scrollbars style rule. Reviewed by Hyatt
git-svn-id: svn://10.0.0.236/trunk@50642 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:55:41 +00:00
alecf%netscape.com
af6d54dbdd convert to nsIModule
r=sspitzer
no bug


git-svn-id: svn://10.0.0.236/trunk@50640 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:40:27 +00:00
mcafee%netscape.com
ea6a04a363 Backing out quotes change for (14663), r=matt
git-svn-id: svn://10.0.0.236/trunk@50639 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:38:22 +00:00
varada%netscape.com
9acc778e9e bug #10361 config in title
git-svn-id: svn://10.0.0.236/trunk@50637 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:23:02 +00:00
varada%netscape.com
9b7d72b4f3 fix for bug #10361 - make neccessary changes in ini files in the title
git-svn-id: svn://10.0.0.236/trunk@50636 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:21:01 +00:00
bienvenu%netscape.com
48263cb73e real fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@50635 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 01:02:23 +00:00
peterl%netscape.com
946d493f92 moved style rule cascading logic into a stand-alone rule processor
the rule processor can now cascade rules from multiple style sheets
fix for bug 12401 & 12106
r=pierre


git-svn-id: svn://10.0.0.236/trunk@50634 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:59:21 +00:00
peterl%netscape.com
c7896988cd factored out parsing of style attribute
deferred parsing of style attribute until content
is connected to a document
Fix for bug 14986
r=vidur


git-svn-id: svn://10.0.0.236/trunk@50633 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:57:37 +00:00
peterl%netscape.com
866322d95e added an assertion to help track down Bug 14238
r=troy


git-svn-id: svn://10.0.0.236/trunk@50632 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:56:30 +00:00
cyeh%netscape.com
8ba9c7c1f8 move megahal initialization so that if there is a nick collision and we
die, we at least don't leave a forked process behind.


git-svn-id: svn://10.0.0.236/trunk@50631 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:44:37 +00:00
don%netscape.com
7491373c1e Fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@50630 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:39:45 +00:00
varada%netscape.com
0a71d36864 rewriting verifyval to compare values
git-svn-id: svn://10.0.0.236/trunk@50629 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:39:31 +00:00
Jerry.Kirk%Nexwarecorp.com
5f745cfd66 These changes fix a draw problem when a top-level window was Move'd
Bug=16325 r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@50628 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:33:49 +00:00
cmanske%netscape.com
1347e8f244 Fixed bugs 16204, 16118, 15831,15448,14342(partial) r=mjudge
git-svn-id: svn://10.0.0.236/trunk@50627 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:13:27 +00:00
cmanske%netscape.com
376ee7ffc4 Fixed bug 16118, part of fix for 14342. Reduced size of ender input widget. r=hyatt,hangas
git-svn-id: svn://10.0.0.236/trunk@50626 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-14 00:13:21 +00:00
beard%netscape.com
c49f31fb70 fixing a memory leak, just use an nsAutoString. bug=15380, r=harishd
git-svn-id: svn://10.0.0.236/trunk@50625 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:59:27 +00:00
alecf%netscape.com
064759d0a6 make this compile with -pedantic on Linux 2.2
git-svn-id: svn://10.0.0.236/trunk@50624 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:58:25 +00:00
alecf%netscape.com
4cc8b798cc add new makefile for our build system
git-svn-id: svn://10.0.0.236/trunk@50623 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:58:09 +00:00
alecf%netscape.com
e8c68e85db move old Boehm makefile to Makefile.unix
(not part of build)


git-svn-id: svn://10.0.0.236/trunk@50622 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:57:38 +00:00
bienvenu%netscape.com
2d2078838d add close method to datasources, r=mscott, no bug, but fixes some shutdown memory leaks
git-svn-id: svn://10.0.0.236/trunk@50621 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:55:57 +00:00
beard%netscape.com
06ca9ef5c4 make stack crawl instructions addresses reflect call site, not return address. bug=15906, r=rjc
git-svn-id: svn://10.0.0.236/trunk@50620 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:45:40 +00:00
beard%netscape.com
a0aa1b960a Rewrote using Mac file I/O, since MSL can only manage 35 FILEs. bug=15906, r=rjc
git-svn-id: svn://10.0.0.236/trunk@50619 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:45:03 +00:00
beard%netscape.com
34cb9deb75 for now, let leak detector reclaim block. bug=15906, r=rjc
git-svn-id: svn://10.0.0.236/trunk@50618 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:44:55 +00:00
beard%netscape.com
6dfda342cc html-ized the report, added -blame option.
git-svn-id: svn://10.0.0.236/trunk@50617 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:42:49 +00:00
alecf%netscape.com
416447022b fix typo (gif not dif)
talked to cmanske about this, no review necessary


git-svn-id: svn://10.0.0.236/trunk@50616 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:39:52 +00:00
dveditz%netscape.com
c5129bc74b added directory recursion feature to makecopy.exe, r=dougt
git-svn-id: svn://10.0.0.236/trunk@50615 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 23:37:24 +00:00
varada%netscape.com
59aaafb7d0 fix for bug #6569
git-svn-id: svn://10.0.0.236/trunk@50614 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 21:30:51 +00:00
terry%mozilla.org
10a148d16b Removing the last vote on a bug was causing an SQL error.
git-svn-id: svn://10.0.0.236/trunk@50611 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 20:17:01 +00:00
selmer%netscape.com
9c33ecf2b8 fix 15325 - don't allow dupl config
git-svn-id: svn://10.0.0.236/trunk@50607 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 19:55:13 +00:00
selmer%netscape.com
73b2bf9d78 Can't have commands after a Reload
git-svn-id: svn://10.0.0.236/trunk@50606 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 19:24:41 +00:00
wtc%netscape.com
78e2d8b9b1 Fixed an error of incorrect return value type in _MD_DeleteSharedMemory.
git-svn-id: svn://10.0.0.236/trunk@50603 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 19:17:05 +00:00
larryh%netscape.com
c2335df585 NSPR 3.5 landing
git-svn-id: svn://10.0.0.236/trunk@50602 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 18:32:42 +00:00
rbs%maths.uq.edu.au
28de62d660 [MathML] Fix to get the scriptlevel style context back, and minor cleanups.
git-svn-id: svn://10.0.0.236/trunk@50600 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 15:10:14 +00:00
karnaze%netscape.com
d0d34df829 bug 11026 - AllocateUnconstrained was off by 1 twip in some cases. bug 14159 - cell is not fixed width if an auto cell in the same col has a larger desired size for backward compatibilty.
git-svn-id: svn://10.0.0.236/trunk@50599 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 14:44:22 +00:00
kipp%netscape.com
9c0c764b13 Removed an unsupported argument (-f)
git-svn-id: svn://10.0.0.236/trunk@50598 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 14:43:04 +00:00
karnaze%netscape.com
12a011a2e9 removed handling of 0 width cells in ComputeAvailableTableWidth since it is done in nsHTMLTableElement. review=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50597 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 14:39:33 +00:00
karnaze%netscape.com
b893071648 added comments
git-svn-id: svn://10.0.0.236/trunk@50596 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 14:36:28 +00:00
gagan%netscape.com
6d496c35bf Argh... fix my last fix.
git-svn-id: svn://10.0.0.236/trunk@50595 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 12:16:08 +00:00
gagan%netscape.com
14334bc5ea Fix build bustage on windows.
git-svn-id: svn://10.0.0.236/trunk@50594 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 11:50:14 +00:00
gagan%netscape.com
22f1039803 Fix the windows build bustage. Bad checkin on my part!
git-svn-id: svn://10.0.0.236/trunk@50593 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 11:09:37 +00:00
gagan%netscape.com
a4426a97a5 Removing an #if 0 block that got checked in accidently with my last checkins.
git-svn-id: svn://10.0.0.236/trunk@50592 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 10:31:16 +00:00
gagan%netscape.com
8d5737519d Removed an unneccesary include statement. No bug number.
git-svn-id: svn://10.0.0.236/trunk@50591 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 10:28:10 +00:00
gagan%netscape.com
b3785299ff Fix for bug # 10333. Made webshell a progress event sink as well so that now it redirects all progress messages from necko land to the appropriate docloader observer. The hack to delete strings which are being received in the status messages is a work around the current limitation of the proxy event code. When bug # 16273 is fixed that delete wont be necessary. In fixing this I also noticed that the nsFileTransport wasn't using the proxy events and was incorrectly firing status messages directly onto the UI thread. Fixed that as well. r=rpotts,warren
git-svn-id: svn://10.0.0.236/trunk@50588 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 10:24:12 +00:00
waterson%netscape.com
821cb4f5b2 Factor out dirtying of tree, fixed bug with dynamic column creation due to row addition. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50587 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:53:57 +00:00
waterson%netscape.com
250dbce4cf Add check-for-null-pointer to FireOnSelectHandler() to avoid crashing in the case where a select handler fires on an 'orphaned' node with no document. This can happen if a document is being destroyed and random scripts and events are still filtering through the system.
git-svn-id: svn://10.0.0.236/trunk@50585 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:02:02 +00:00
pinkerton%netscape.com
3cadc697e1 correctly update cellmap when scrolling in a tree with no column headers (r=hyatt, partial fix for bug#15771)
git-svn-id: svn://10.0.0.236/trunk@50584 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:01:43 +00:00
waterson%netscape.com
eecbd2d60c Add PR_LOG() calls to aid debugging.
git-svn-id: svn://10.0.0.236/trunk@50583 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:00:45 +00:00
waterson%netscape.com
d69c3be183 Add PR_LOG() calls to aid with debugging.
git-svn-id: svn://10.0.0.236/trunk@50582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 08:00:14 +00:00
sfraser%netscape.com
6aa6a226a0 Add jsurl IDL manifest and project for dougt.
git-svn-id: svn://10.0.0.236/trunk@50579 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 07:19:40 +00:00
dougt%netscape.com
683eda7a2e 1) Now evaluting the script during channel creation rather than read() to
avoid a deadlock between the UI/JS thread and the FileTransport thread.

2) Isolating the proxy of the eval to a single interface

3) Change makefiles for windows and unix.

Brendan asked me to look at this.  I am not sure if there is a bug number.

reviewer=brendan@meer.net


git-svn-id: svn://10.0.0.236/trunk@50578 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 07:17:36 +00:00
sfraser%netscape.com
057541d810 Part of dougt jsurl changes. Fixing the project to use the _debug prefix file when building debug. r=dougt
git-svn-id: svn://10.0.0.236/trunk@50577 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 07:16:12 +00:00
sfraser%netscape.com
1359dee773 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50576 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 07:14:12 +00:00
alecf%netscape.com
fb48c801ad fix windows bustage (sorry, I thought I checked this line in from my windows box, must have missed it)
git-svn-id: svn://10.0.0.236/trunk@50575 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 07:00:42 +00:00
alecf%netscape.com
252994d3f4 update status
git-svn-id: svn://10.0.0.236/trunk@50574 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 06:14:58 +00:00
alecf%netscape.com
579a822e8a convert XPFE components over the nsIModules
git-svn-id: svn://10.0.0.236/trunk@50573 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 06:12:15 +00:00
despotdaemon%netscape.com
17726547ac Pseudo-automatic update of changes made by risto@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@50572 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 06:07:34 +00:00
alecf%netscape.com
aae40a4d2d nsIModule-ize addressbook
r=sspizer
no bug


git-svn-id: svn://10.0.0.236/trunk@50571 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:55:06 +00:00
alecf%netscape.com
53caf671cb DTDs contain image names too
git-svn-id: svn://10.0.0.236/trunk@50570 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:53:10 +00:00
pavlov%netscape.com
2aaf45465d take 2 static CID's out of two different functions and combine them into 1 r=alecf fixes bug #15776
git-svn-id: svn://10.0.0.236/trunk@50569 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:42:05 +00:00
karnaze%netscape.com
36a43a236d new regression tests, file images for others. Does not affect the build.
git-svn-id: svn://10.0.0.236/trunk@50568 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:40:53 +00:00
alecf%netscape.com
309ba432a9 fix makefiles to correct outdent.dif/outdent.gif typo
git-svn-id: svn://10.0.0.236/trunk@50567 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:35:57 +00:00
alecf%netscape.com
7f72e574c1 add another missing file
git-svn-id: svn://10.0.0.236/trunk@50566 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:34:24 +00:00
sspitzer%netscape.com
e3f84eb9e4 add more comments about what's left to do, and why this is a little scary.
git-svn-id: svn://10.0.0.236/trunk@50565 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:33:26 +00:00
mscott%netscape.com
619a993e2c make sure the user name goes into outgoing imap urls that we make
Bug #16263 --> implement NewURI so we can view embedded images!
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50564 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:21:08 +00:00
mscott%netscape.com
d272bf5abd Bug #16263 --> CreateListOfMessageIDStrings should look for '?' as the delimiter used by
mime for each message part instead of '&'.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50563 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:20:14 +00:00
mscott%netscape.com
fab3227026 Bug #16263 --> make nsGetImapServer public
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50562 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:19:27 +00:00
sspitzer%netscape.com
1caffddc3f whoops, forgot this wee bit of JS.
git-svn-id: svn://10.0.0.236/trunk@50561 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:14:16 +00:00
alecf%netscape.com
dad4df6919 remove file that's making CVS complain
git-svn-id: svn://10.0.0.236/trunk@50560 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:10:14 +00:00
sspitzer%netscape.com
332b7443db fix for #16264, r=mscott. migrate prefs (if we need to) when compose is opened.
also, if we have no identities, launch the account wizard so the user can create
 one.  also, cache the nsIMsgMailSession, we don't need to go through Components
[] and do a getService each time.


git-svn-id: svn://10.0.0.236/trunk@50559 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 05:09:14 +00:00
alecf%netscape.com
f347f08869 oops, missed this file because of a misspelling
fixes mac and possibly windows breakage


git-svn-id: svn://10.0.0.236/trunk@50558 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:41:11 +00:00
alecf%netscape.com
9083887386 update new image names in all XUL, JS, and CSS
git-svn-id: svn://10.0.0.236/trunk@50556 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:26:01 +00:00
sspitzer%netscape.com
7516584ad9 fix for #16262, r=mscott. now we have "Mozilla Profile Wizard" (a.k.a. -ProfileWizard) for the mac.
git-svn-id: svn://10.0.0.236/trunk@50555 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:21:18 +00:00
vidur%netscape.com
b1974e5540 Fix for bug 15772. Check that a content node is part of the document tree before dispatching a blur event to it. R=joki
git-svn-id: svn://10.0.0.236/trunk@50554 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:19:26 +00:00
alecf%netscape.com
d807cd69da get rid of old poorly cased gif file
git-svn-id: svn://10.0.0.236/trunk@50553 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:18:00 +00:00
alecf%netscape.com
b5cd4ed681 oops, missed this mac file
git-svn-id: svn://10.0.0.236/trunk@50552 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:17:04 +00:00
sspitzer%netscape.com
cb1644bdd6 fix for bug #14591, r=mscott.
handle the case where we migrate from 4.x and our sent folder is on the imap server.
but, since we haven't logged into the imap server yet, our folders are undiscovered.

other related fixes:
1) make it so on failure to fcc, save to draft, save to template, send later the message shows up.
2) clean up the error message strings
3) fix how we determine if an URI points to a local folder. (all we need to do is look at the scheme and see if it is "mailbox:"
4) remove a stale comment.


git-svn-id: svn://10.0.0.236/trunk@50551 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:12:06 +00:00
alecf%netscape.com
e7a07c934b export new gifs on Mac
git-svn-id: svn://10.0.0.236/trunk@50550 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:10:49 +00:00
alecf%netscape.com
4353d33c01 export new images on windows
r=mscott
no bug


git-svn-id: svn://10.0.0.236/trunk@50549 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:09:25 +00:00
alecf%netscape.com
4b07a41a74 export new gifs on unix
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50548 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 04:08:15 +00:00
alecf%netscape.com
2475291b21 checkin new image file names
not part of build
no reviewer 'cause you can't review images :)
no bug #, just maintenance for skins a la German
all files added with -kb


git-svn-id: svn://10.0.0.236/trunk@50547 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 03:57:13 +00:00
mscott%netscape.com
928088a46d we appeared to be leaking an rdf resource. I fixed this leak by using a nsCOMPtr.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50546 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 03:18:32 +00:00
pollmann%netscape.com
5c5ba7aa15 Bug 16126: Check for a cached state when reading value or submitting Gfx text frame (before initialize); r=joki
git-svn-id: svn://10.0.0.236/trunk@50545 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 02:49:42 +00:00
mscott%netscape.com
2b381da127 Bug #16115 --> addref the web shell window inside it's Close method to keep the web shell window from getting
deleted out from under us. This could happen because in closing the window, we are destroying a webshell which
could have the last outstanding reference to the webshell window.
r=dp


git-svn-id: svn://10.0.0.236/trunk@50544 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 02:47:56 +00:00
cathleen%netscape.com
b0844bfd3a update windows packaging file list, bug 16144, r=ssu
git-svn-id: svn://10.0.0.236/trunk@50543 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 02:20:16 +00:00
pollmann%netscape.com
489f3fc875 Bug 15423: Check for a base href when forming the URL for an image map; r=harishd
git-svn-id: svn://10.0.0.236/trunk@50541 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:37:30 +00:00
valeski%netscape.com
e96f49b91f 16250. r=warren. IOService method name case changed. reflecting the new method names in the directory javascript
git-svn-id: svn://10.0.0.236/trunk@50540 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:36:57 +00:00
davidm%netscape.com
989168e646 8010 [FEATURE] Task Menu | Tools sub-menu items do not work
remove bogus rules
r = hangas


git-svn-id: svn://10.0.0.236/trunk@50539 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:25:39 +00:00
varada%netscape.com
caca355dec correcting temp node problem
git-svn-id: svn://10.0.0.236/trunk@50538 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:19:23 +00:00
mjudge%netscape.com
01e83014a6 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling. get position not a valid call anymore to nsIFrame.h
git-svn-id: svn://10.0.0.236/trunk@50537 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:16:09 +00:00
mjudge%netscape.com
dcd63f4da3 bugs 15547,15645,13665,13277,5761, r=akkana,kin,hyatt. fixing selection bugs, keyboard navigation, triple clicking and drag scrolling.
git-svn-id: svn://10.0.0.236/trunk@50536 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:15:26 +00:00
troy%netscape.com
5132f68d26 b=15509, r=peterl@netscape.com
If the frame has visible content that extends outside its content area,
then the view needs to be marked as having transparent content


git-svn-id: svn://10.0.0.236/trunk@50535 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:02:53 +00:00
pinkerton%netscape.com
9101132f9e removed some visibility/display rules that were already in xul.css. added a workaround for bug #15722 to not change the icons of the scrollbar buttons on rollover, which caused the trees that contained said scrollbars to fully reflow. (r=hyatt).
git-svn-id: svn://10.0.0.236/trunk@50534 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 01:00:05 +00:00
pollmann%netscape.com
c41e517028 Bug 15180: Don't add a Referer line to the HTTP post data, as Necko already adds one. r=harishd
git-svn-id: svn://10.0.0.236/trunk@50533 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:54:47 +00:00
mgleeson1%netscape.com
fc95d0c6a1 r=dougt need eol for port boxes
git-svn-id: svn://10.0.0.236/trunk@50532 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:50:31 +00:00
rbs%maths.uq.edu.au
6c0a9f5fc0 [MathML] Hooks to allow --enable-mathml
git-svn-id: svn://10.0.0.236/trunk@50531 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:46:09 +00:00
waterson%netscape.com
34e280d8c3 Fix up commentary to reflect reality; remove some confusing stylistic changes. r=bienvenu
git-svn-id: svn://10.0.0.236/trunk@50530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:45:57 +00:00
briano%netscape.com
971976b8c4 Automated update
git-svn-id: svn://10.0.0.236/trunk@50529 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:45:14 +00:00
pinkerton%netscape.com
93aed372f7 pulled mac-specific patches to the tip in order to allow typing in the url bar in navigator to work w/out firing cmd-keybindings. (r=saari, no explicit bug number).
git-svn-id: svn://10.0.0.236/trunk@50528 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:44:43 +00:00
waterson%netscape.com
aa390e05d8 Fix 'commandupdater' nodes; make sure that they are hooked up correctly from the XUL content sink; factor code to appropriately deal with being called from two places. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@50527 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:43:46 +00:00
beard%netscape.com
1a22e3ed7e fixing image decoder leak. bug=15380, r=pnunn
git-svn-id: svn://10.0.0.236/trunk@50526 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:41:43 +00:00
rbs%maths.uq.edu.au
1896cfefef [MathML] Assigning @MOZ_MATHML@ to MOZ_MATHML
git-svn-id: svn://10.0.0.236/trunk@50525 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:39:36 +00:00
rbs%maths.uq.edu.au
410ce267d5 [MathML] Update MathML hooks
git-svn-id: svn://10.0.0.236/trunk@50524 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:33:17 +00:00
varada%netscape.com
fcb9e9bf51 fixes for bug #15782 to save caches
git-svn-id: svn://10.0.0.236/trunk@50523 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:28:59 +00:00
varada%netscape.com
37e2169b4e fix for bug #15782 to save cache file in the respective directories and also to save after each page and to save the last used config name in the default che
git-svn-id: svn://10.0.0.236/trunk@50522 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:28:10 +00:00
selmer%netscape.com
2e8166fd64 Added checking to ensure DLL & procedure get loaded successfully
git-svn-id: svn://10.0.0.236/trunk@50521 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:19:03 +00:00
selmer%netscape.com
3f42f06246 Fixed up releasing DLLs in destructor
git-svn-id: svn://10.0.0.236/trunk@50519 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:12:27 +00:00
cbegle%netscape.com
7519f0fc4c * removed stuff from the idl file that caused warnings
* fixed a typo that caused a warning (nsIsupports)
* fixed values of constants that caused warnings
* use a macro instead of assinging a long long value directly

r=jband


git-svn-id: svn://10.0.0.236/trunk@50518 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:11:21 +00:00
pinkerton%netscape.com
7062dc3e8b take a first stab at native system colors. obviously more work needs to be done to use appearance, but this will get us started. (r=sfraser, bug# 1021).
git-svn-id: svn://10.0.0.236/trunk@50517 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:08:17 +00:00
pinkerton%netscape.com
8c90b18f03 correctly trigger the sending of mouse_exit events when the mouse moves into the growBox. fixes a bug with gfx scrollbars in bookmarks when the window was resized. (r=sfraser, no explicit bug number).
git-svn-id: svn://10.0.0.236/trunk@50516 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:06:00 +00:00
selmer%netscape.com
51c5a4e65e Implemented basis for DLL functions in interpreter; fixed Reload to exit if anything follows it
git-svn-id: svn://10.0.0.236/trunk@50515 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-13 00:01:10 +00:00
norris%netscape.com
169ef88ab4 Fix following problem:
Subject:
        another getClassLoader exception
   Date:
        Tue, 12 Oct 1999 10:39:26 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com (Norris Boyd)
    CC:
        Howard Lin <howard@softcom.com>




Norris,

It looks like the classes the optimizer generates call
ScriptRuntime.defineFunction which calls getClassLoader.  This throws a
SecurityException.

java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader )
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
, Compiled Code)
at java.security.AccessController.checkPermission(AccessController.java,
Compiled Code)
at java.lang.SecurityManager.checkPermission(SecurityManager.java, Compiled
Code)
at java.lang.Class.getClassLoader(Class.java, Compiled Code)
at
org.mozilla.javascript.ScriptRuntime.defineFunction(ScriptRuntime.java:2045)
at org.mozilla.javascript.gen.c5.initScript(order.js)
at org.mozilla.javascript.gen.c5.exec(order.js)
at org.mozilla.javascript.Context.evaluateReader(Context.java:728)
[...]



Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com


git-svn-id: svn://10.0.0.236/trunk@50514 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:54:03 +00:00
despotdaemon%netscape.com
e0c55754d5 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@50513 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:30:12 +00:00
kipp%netscape.com
b7194daf71 r=kin,troy; Fixed reflow bug with optimization logic to avoid measuring text (no bug #)
git-svn-id: svn://10.0.0.236/trunk@50512 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:29:01 +00:00
kipp%netscape.com
01e298fd41 Fixed bugs with combined-area continuing to include trimmed whitespace (wip for 12297); Added support for tracking trim for 16176)
git-svn-id: svn://10.0.0.236/trunk@50511 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:27:32 +00:00
kipp%netscape.com
091955e9a0 New API for bug 16176
git-svn-id: svn://10.0.0.236/trunk@50510 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:26:41 +00:00
kipp%netscape.com
76b98f20a7 Factored common code into a single method (UseComputedHeight)
git-svn-id: svn://10.0.0.236/trunk@50509 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:25:49 +00:00
kipp%netscape.com
51d691cc02 Port to new nsILineIterator api
git-svn-id: svn://10.0.0.236/trunk@50508 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:25:19 +00:00
kipp%netscape.com
45e857d860 Fixed bug with bounds of line-box including side margins when it shouldn't (part of 12297)
git-svn-id: svn://10.0.0.236/trunk@50507 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:24:51 +00:00
kipp%netscape.com
28bd74e177 r=troy; Cleaned up line-box API (prep work for bug #12297; more coming); Support new line iterator API change (#16176)
git-svn-id: svn://10.0.0.236/trunk@50505 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:24:22 +00:00
kipp%netscape.com
eb73055cf6 Removed silly NS_IMETHOD decls
git-svn-id: svn://10.0.0.236/trunk@50504 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:22:53 +00:00
kipp%netscape.com
2c17cc458b Added two new atoms to help meter large vs. small line boxes
git-svn-id: svn://10.0.0.236/trunk@50503 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:22:34 +00:00
kipp%netscape.com
d10b7ecd53 Removed two warnings
git-svn-id: svn://10.0.0.236/trunk@50502 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:21:40 +00:00
kipp%netscape.com
028e053c7f new
git-svn-id: svn://10.0.0.236/trunk@50501 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:20:40 +00:00
rjc%netscape.com
252f4090ad Fix VC5 build bustage.
git-svn-id: svn://10.0.0.236/trunk@50500 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:09:09 +00:00
idk%eng.sun.com
9599670719 Fix 16230
Call AddRef for newly created PlugletInsance
r = akhil.arora@sun.com


git-svn-id: svn://10.0.0.236/trunk@50499 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:01:44 +00:00
terry%mozilla.org
100e540599 Patch by Holger Schurig <holger@holger.om.org> -- rewriting and enhancing the
ability to edit components, products, and versions.  Yay!


git-svn-id: svn://10.0.0.236/trunk@50498 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 23:00:35 +00:00
mgleeson1%netscape.com
b383080e9b r=evaughan friend declaration needs to declare object is function or class (HPUX)
git-svn-id: svn://10.0.0.236/trunk@50497 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:58:04 +00:00
norris%netscape.com
f40460044c Fix 7254 Implement DOM security
Reviewed by mstoltz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50496 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:55:25 +00:00
pavlov%netscape.com
967990a454 build nsScriptableRegion.cpp on windows and linux r=pinkerton ********* WORK TO FIX BUG 12465 *********
git-svn-id: svn://10.0.0.236/trunk@50495 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:53:41 +00:00
norris%netscape.com
120ec26f3b Work on 15824 bad refcounting in nsCodebasePrincipal
Attempt to discover problem with additional assertions
reviewed by mstoltz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50494 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:52:49 +00:00
norris%netscape.com
f686bba5d8 Fix part of 5403 Services improperly released: Use NS_WITH_SERVICE
reviewed by mstoltz@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50493 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:51:54 +00:00
norris%netscape.com
1d1cd2baaf Fix unix build warning.
Reviewed by rogerl@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@50492 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:48:17 +00:00
dougt%netscape.com
b6030ceac7 adding default constructor (mac compiler blues)
git-svn-id: svn://10.0.0.236/trunk@50491 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:47:50 +00:00
norris%netscape.com
258a2a6d4a Needed for 7254: Implement DOM security
reviewed by Ben Goodger <rgoodger@ihug.co.nz> and Seth Spitzer <sspitzer@netscape.com>

Scripts running from chrome are considered super privileged and can perform operations that
scripts from the web cannot. I differentiate chrome scripts from web
scripts by considering all scripts loaded from chrome: URIs to be
privileged.

The problem I'm running into is that the loading of relative urls in
this code ends up going to the file: protocol (which is what the chrome
protocol is converted to internally). This change makes sure we load
from the chrome protocol so that the scripts are privileged and don't
get access errors. It's probably a good idea to load from the chrome
protocol anyway since it may one day be resolved to extracting from a
JAR file rather than accessing a discrete file.


git-svn-id: svn://10.0.0.236/trunk@50490 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:47:36 +00:00
dougt%netscape.com
2f38d972f2 adding default constructor (mac compilers blues)
git-svn-id: svn://10.0.0.236/trunk@50489 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:46:49 +00:00
kmcclusk%netscape.com
afe30290c8 Set state of checkbox and Radio button on MouseUp instead of MouseDown so JavaScript onclick
event handlers can retreive the correct state of the form element. bug 15366; r=rods@netscape.com

Submit the form when a text field is clicked on only if the JavaScript event handler
has not consumed the event. bug 15949; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50488 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:44:23 +00:00
wtc%netscape.com
19cd8f1747 Backed out previous revision, which was checked in during code freeze.
git-svn-id: svn://10.0.0.236/trunk@50486 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:37:13 +00:00
cyeh%netscape.com
3ee2fa81c3 add support for megahal conversation ai, fix syntax error for sending
stock reports to the original requestor.


git-svn-id: svn://10.0.0.236/trunk@50485 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:34:49 +00:00
dougt%netscape.com
2ebb109791 changing the entrypoint to call another constructor. I need this since I have
removed an unneeded constructor.  related bug 13724. r=brendan@meer.net


git-svn-id: svn://10.0.0.236/trunk@50484 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:32:10 +00:00
dougt%netscape.com
8344cba9ee Added a nested event loop instead of blocking during sync calls. Partial fix
for bug 13724.  (I still must remove ifdef's for the autoproxy code.)
r=brendan@meer.net.


git-svn-id: svn://10.0.0.236/trunk@50483 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:29:43 +00:00
rjc%netscape.com
7c82b0b5f1 [performance] When profile manager is being used, don't read in bookmarks twice... by deferring hiddenwindow.xul loading until after profile manager is done. Review: danm and sspitzer
git-svn-id: svn://10.0.0.236/trunk@50482 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:20:28 +00:00
kmcclusk%netscape.com
1f838ed9cc Backing out change made while tree was closed
git-svn-id: svn://10.0.0.236/trunk@50481 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:07:24 +00:00
kmcclusk%netscape.com
288ad892dc Backing out changes made while tree was closed.
git-svn-id: svn://10.0.0.236/trunk@50480 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 22:01:49 +00:00
norris%netscape.com
0067ebd9f5 Remove redundant import.
git-svn-id: svn://10.0.0.236/trunk@50479 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 21:46:50 +00:00
kmcclusk%netscape.com
3ed94d5f1f Set state of checkbox and Radio button on MouseUp instead of MouseDown so JavaScript onclick
event handlers can retreive the correct state of the form element. bug 15366; r=rods@netscape.com

Submit the form when a text field is clicked on only if the JavaScript event handler
has not consumed the event. bug 15949; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50478 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 21:42:31 +00:00
evaughan%netscape.com
74de522d21 Fixed mail/news regression. Code review Saari, Hyatt
git-svn-id: svn://10.0.0.236/trunk@50476 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 20:50:01 +00:00
selmer%netscape.com
318689d640 Top level makefile
git-svn-id: svn://10.0.0.236/trunk@50474 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 20:36:42 +00:00
terry%mozilla.org
06a85f06f3 Patch by Holger Schurig <holger@holger.om.org> -- If there is no exactly ONE
user in the profiles table, then this user will be promoted into all groups.


git-svn-id: svn://10.0.0.236/trunk@50473 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 20:28:41 +00:00
beard%netscape.com
fa0386eb21 printing stack crawls with LXR URLs.
git-svn-id: svn://10.0.0.236/trunk@50472 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 18:59:52 +00:00
dmose%mozilla.org
980b8b883b not used on the trunk; the space in the file name is causing script problems. r=smfr@netscape.com, a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@50471 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 18:32:04 +00:00
selmer%netscape.com
b237b4f45e Split interpret into its own class
git-svn-id: svn://10.0.0.236/trunk@50470 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 18:31:05 +00:00
terry%mozilla.org
e5bf02a97b newer alphas of MySQL won't let use "when" as a column name, so let's change
our usage while it's still easy to do so.


git-svn-id: svn://10.0.0.236/trunk@50469 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 18:05:42 +00:00
slamm%netscape.com
ffbff9e7c8 Forgot a semicolon and that caused the creation of bogus files. a=leaf. Thanks to jim_nance@yahoo.com for pointing out the problem.
git-svn-id: svn://10.0.0.236/trunk@50468 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 17:05:05 +00:00
terry%mozilla.org
f07d66246d Patch by Holger Schurig <holgerschurig@nikocity.de> -- replace all the
yicky old make*.sh files and the CHANGES file with a new, nifty
checksetup.pl file that knows how to create a setup from scratch as
well as upgrade an older setup to a new one.  Very cool stuff!


git-svn-id: svn://10.0.0.236/trunk@50467 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 16:58:11 +00:00
terry%mozilla.org
6c6ce1b3d7 Patch by tom@platte.com (Tom Schutter) -- wasn't working if no groups
had isbuggroup set.


git-svn-id: svn://10.0.0.236/trunk@50466 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 16:52:25 +00:00
norris%netscape.com
c813db9f21 Fix release date, add contributor.
git-svn-id: svn://10.0.0.236/trunk@50465 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 16:52:13 +00:00
karnaze%netscape.com
eb1e3503ae new regression test.
git-svn-id: svn://10.0.0.236/trunk@50464 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 14:50:38 +00:00
Jerry.Kirk%Nexwarecorp.com
f62900eb59 Fixed syntax error which caused invalidation not to work when logging
was turned off.
Bug# 16169 r=Dale.Stansberry@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@50463 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 14:39:32 +00:00
neeti%netscape.com
0e926140f9 updating status
git-svn-id: svn://10.0.0.236/trunk@50462 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 13:38:23 +00:00
neeti%netscape.com
639989c1df Converted to nsIModule to prepare for memory leaks fixing. Bug# 14034. r=waterson
git-svn-id: svn://10.0.0.236/trunk@50461 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 13:33:42 +00:00
dcone%netscape.com
78accf0d1a fixed the CreateRenderingContext call in nsDeviceContext to get rid of warnings. CR by KMcclusk.
git-svn-id: svn://10.0.0.236/trunk@50460 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 13:32:34 +00:00
briano%netscape.com
d7505330dd Automated update
git-svn-id: svn://10.0.0.236/trunk@50459 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 12:52:20 +00:00
cls%seawood.org
b166fe020d Converting patches applied for bug 15241 into a build option, --enable-implicit-archive, that is off by default.
r=syd


git-svn-id: svn://10.0.0.236/trunk@50458 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 12:36:07 +00:00
briano%netscape.com
55f10b405f Automated update
git-svn-id: svn://10.0.0.236/trunk@50457 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 11:52:18 +00:00
ramiro%netscape.com
8bcbaf642c Fix for bug 16163. Usage of -liberty to demangle symbols breaks on loser
linux distributions.  I changed configure.in to detect this lib before using
it.  You can stop whinning now thank you.  r=syd@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@50456 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 11:42:56 +00:00
warren%netscape.com
a5420e53d5 Fixed nsnull problem!
git-svn-id: svn://10.0.0.236/trunk@50455 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 11:21:26 +00:00
terry%mozilla.org
611923e583 Updating the vote cache should not update the date-last-changed field
in the bug.


git-svn-id: svn://10.0.0.236/trunk@50454 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 11:18:29 +00:00
warren%netscape.com
4e84b82b51 Fixed return value for non-debug builds.
git-svn-id: svn://10.0.0.236/trunk@50453 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 10:27:40 +00:00
warren%netscape.com
865a79a1b5 Added Bloat statistics under QA menu.
git-svn-id: svn://10.0.0.236/trunk@50452 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:37:37 +00:00
warren%netscape.com
5e7fed7a2f Added about:bloat
git-svn-id: svn://10.0.0.236/trunk@50451 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:35:22 +00:00
warren%netscape.com
ed816f5fa6 added files: mozilla/netwerk/protocol/about/src/nsAboutBloat.cpp
git-svn-id: svn://10.0.0.236/trunk@50450 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:32:18 +00:00
warren%netscape.com
da470df1ca Added nsTraceRefcnt logging.
git-svn-id: svn://10.0.0.236/trunk@50449 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:30:16 +00:00
warren%netscape.com
4ff5cdca2a Made nsTraceRefcnt output write to streams.
git-svn-id: svn://10.0.0.236/trunk@50448 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:30:12 +00:00
warren%netscape.com
991d518e3e removed files: mozilla/netwerk/protocol/about/src/nsAboutBloat.cpp
git-svn-id: svn://10.0.0.236/trunk@50447 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:26:38 +00:00
warren%netscape.com
d8984b315e added files: mozilla/netwerk/protocol/about/src/nsAboutBloat.cpp
git-svn-id: svn://10.0.0.236/trunk@50446 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:25:14 +00:00
warren%netscape.com
c5fccc649e Added about:bloat handler.
git-svn-id: svn://10.0.0.236/trunk@50445 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 09:20:25 +00:00
pollmann%netscape.com
419cb327c4 Bug 15841: Don't default to selecting item 0 of a listbox
Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd


git-svn-id: svn://10.0.0.236/trunk@50444 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 08:47:29 +00:00
pollmann%netscape.com
7860787b10 Bug 15769: Default select item 0 when adding or removing opt to combo
r=harishd


git-svn-id: svn://10.0.0.236/trunk@50443 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 08:47:22 +00:00
mscott%netscape.com
ccf37b21ec Remove this file from the repository to fix the Mac buids.
The mac projects were looking in this folder and always finding the
stale nsISessionHistory.h file instead of using the idl generated
header file
r=davidm


git-svn-id: svn://10.0.0.236/trunk@50442 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 07:50:17 +00:00
mcafee%netscape.com
0ba95a928f Applying patch from buhr@stat.wisc.edu. Fixes destination widget confusion (14759). Unix-only, a=mscott
git-svn-id: svn://10.0.0.236/trunk@50441 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 07:26:47 +00:00
radha%netscape.com
569c87328e Build bustage in solaris
git-svn-id: svn://10.0.0.236/trunk@50440 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:57:03 +00:00
mscott%netscape.com
941d2435ba nsISessionHistory.idl needs to be in this project.
i think this should fix Radha' build breakage for the mac.


git-svn-id: svn://10.0.0.236/trunk@50439 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:45:10 +00:00
mcafee%netscape.com
68944c6b5c Adding debug Pref UI for evaughan's gfx scrollbars. r=waterson
git-svn-id: svn://10.0.0.236/trunk@50438 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:40:15 +00:00
sfraser%netscape.com
1122546a7f Fix for bug 16151; make the file transport working thread stack size 64k, instead of 8k. Fixes crashes on startup on Mac. r=beard
git-svn-id: svn://10.0.0.236/trunk@50437 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:39:18 +00:00
jefft%netscape.com
b77b7f8e29 removed files: mozilla/mailnews/compose/src/nsMsgI18N.cpp
git-svn-id: svn://10.0.0.236/trunk@50436 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:24:48 +00:00
jefft%netscape.com
1eb33cb46e added files: mozilla/mailnews/base/util/nsMsgI18N.cpp
git-svn-id: svn://10.0.0.236/trunk@50435 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:21:21 +00:00
jefft%netscape.com
c0fbb70022 fixed bug 15676 - Display problem in Subject header with non-ascii when Forwarding; decode the subject string based on character prior setting it to nsMsgComposeFields; move nsMsgI18N.h, nsMsgI18N.cpp from compose/src to base/util; r=rhp, nhotta
git-svn-id: svn://10.0.0.236/trunk@50434 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:18:27 +00:00
mscott%netscape.com
ec97378850 Bug #15655 --> don't build old nsMimeFactory. Build nsMimeModule instead.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50433 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:05:17 +00:00
mscott%netscape.com
df2bf72c59 Bug #15655 -> build nsMimeModule.cp
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50432 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:04:41 +00:00
mscott%netscape.com
7527b7b206 bug #15655 --> no longer build nsMimeFactory.cpp...we build
nsMimeModule instead.
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50431 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:04:25 +00:00
mscott%netscape.com
a252dee761 include nsMsgMimeCID.h to get the CID. (moved CID out of interface)
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50430 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:03:49 +00:00
mscott%netscape.com
05ab0a848d Bug #15655 module for mime. (replaces nsMimeFactory.cpp)
remove NS_New** factory method. minor cleanup
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50429 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:03:25 +00:00
mscott%netscape.com
d0cd134272 Bug #15655 module for mime. (replaces nsMimeFactory.cpp)
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50428 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:03:05 +00:00
mscott%netscape.com
e89f59cad5 Bug #15655 new file. module for mime. (replaces nsMimeFactory.cpp)
r=rhp


git-svn-id: svn://10.0.0.236/trunk@50427 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:02:23 +00:00
rbs%maths.uq.edu.au
dd050726f8 [MathML] Updates and initial landing of the example mixing.xml to illustrate how to mix MathML with other markups
git-svn-id: svn://10.0.0.236/trunk@50426 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 05:00:32 +00:00
rbs%maths.uq.edu.au
02f74ae132 [MathML] Removing unecessary #include of header files
git-svn-id: svn://10.0.0.236/trunk@50425 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:53:41 +00:00
rbs%maths.uq.edu.au
a017529e6b [MathML] Additional missing hooks
git-svn-id: svn://10.0.0.236/trunk@50424 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:47:55 +00:00
rbs%maths.uq.edu.au
7083308cff [MathML] Removing unecessary #include of header files
git-svn-id: svn://10.0.0.236/trunk@50423 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:42:15 +00:00
waterson%netscape.com
6430228b19 Add nsScrollPortView.cpp to the build to get around undefined symbols at startup: looks like it got missed on Unix.
git-svn-id: svn://10.0.0.236/trunk@50422 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:41:07 +00:00
radha%netscape.com
7ba4c213b3 XPIDLising session history. bug # 15437. r=law
git-svn-id: svn://10.0.0.236/trunk@50421 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:40:59 +00:00
rbs%maths.uq.edu.au
84470b2c93 [MathML] Portability: adding explicit get() on pointers coming from nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@50420 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:38:21 +00:00
radha%netscape.com
270ce881b4 XPIDised session history. Corresponding changes to users of nsISessionHistory.
Bug # 15437. r=law


git-svn-id: svn://10.0.0.236/trunk@50419 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 04:37:43 +00:00
cls%seawood.org
173cc583c1 Temp fix for the dependency problem caused by the use of implicit shared libs. a=leaf
git-svn-id: svn://10.0.0.236/trunk@50418 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 03:42:02 +00:00
idk%eng.sun.com
651e1ddd8a Bug <a href=http://bugzilla.mozilla.org/show_bug.cgi?id=15892> 15892 </a>
increment pointer to  mime description string before calling strchr


git-svn-id: svn://10.0.0.236/trunk@50417 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 03:29:27 +00:00
waterson%netscape.com
30e53d03e9 Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
git-svn-id: svn://10.0.0.236/trunk@50416 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 03:05:10 +00:00
warren%netscape.com
0a71bb415f Fixed missed GetFileSpec
git-svn-id: svn://10.0.0.236/trunk@50415 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 02:35:00 +00:00
rbs%maths.uq.edu.au
daf51ae193 Revamp of the architecture for stretchy symbols so that nsMathMLChar only deals with the atomic stretchy task.
git-svn-id: svn://10.0.0.236/trunk@50414 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 02:12:36 +00:00
waterson%netscape.com
e20da712ec Bug 16105. (Bugsplat 366256.) Ensure that nsISupports::Release() calls dtor only once by 'stabilizing' refcnt to a non-zero value before invoking the dtor. See also news://news.mozilla.org/37FD0F3C.3078AE5C%40netscape.com. r=scc,fur
git-svn-id: svn://10.0.0.236/trunk@50413 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 02:10:08 +00:00
alecf%netscape.com
a4d81273ff upating status
git-svn-id: svn://10.0.0.236/trunk@50412 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 02:07:13 +00:00
rbs%maths.uq.edu.au
931605d622 Removing a duplicate reference to a src file
git-svn-id: svn://10.0.0.236/trunk@50411 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 02:06:05 +00:00
rbs%maths.uq.edu.au
ba241132ea Removing a typedef and adding a new NS_MATHML_OPERATOR_MUTABLE flag
git-svn-id: svn://10.0.0.236/trunk@50409 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:58:27 +00:00
selmer%netscape.com
36bb330940 Created new Interpret.cpp & CInterpret class
git-svn-id: svn://10.0.0.236/trunk@50408 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:54:00 +00:00
rbs%maths.uq.edu.au
328d62f08f [MathML] removing registration hooks. They are now handled by nsLayoutModule.
git-svn-id: svn://10.0.0.236/trunk@50407 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:48:05 +00:00
warren%netscape.com
6a952509ef Lowercased idl method names for scriptability. Cleaned up nsIURL interface.
git-svn-id: svn://10.0.0.236/trunk@50406 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:39:37 +00:00
peterl%netscape.com
3295631735 store system colors as int rather than enums
return proper result code when setting system color
r=rods


git-svn-id: svn://10.0.0.236/trunk@50405 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:31:33 +00:00
slamm%netscape.com
f12855c796 Remove extra 'mozilla/' in cvsblame'd source link.
git-svn-id: svn://10.0.0.236/trunk@50404 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:25:47 +00:00
rbs%maths.uq.edu.au
121acfa205 [MathML] Setting a bolean to PR_TRUE to allow generated pseudo content (e.g., :before, :after) in MathML.
git-svn-id: svn://10.0.0.236/trunk@50403 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:19:34 +00:00
cathleen%netscape.com
01eb918031 fix mac packager list, bug 16141, r=ssu
git-svn-id: svn://10.0.0.236/trunk@50402 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 01:11:42 +00:00
selmer%netscape.com
63d606d58f Fix up inclusions of headers
git-svn-id: svn://10.0.0.236/trunk@50401 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:56:51 +00:00
pavlov%netscape.com
8f331211d9 fix cursor blinking on linux r=ramiro
git-svn-id: svn://10.0.0.236/trunk@50400 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:44:07 +00:00
alecf%netscape.com
e2e17b4ff5 finish landing nsIModule for compose
this and my last checkin r=sspizter
no bug, porkjockey work


git-svn-id: svn://10.0.0.236/trunk@50399 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:37:39 +00:00
alecf%netscape.com
d5785373e3 land nsIModule for mail compose
git-svn-id: svn://10.0.0.236/trunk@50398 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:34:06 +00:00
peterl%netscape.com
1299fd6c0b better result code testing in recreate frames for content
part of fix for 14134
r=pierre


git-svn-id: svn://10.0.0.236/trunk@50397 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:32:13 +00:00
peterl%netscape.com
7021f197de added ignore value to user-focus
r=hyatt


git-svn-id: svn://10.0.0.236/trunk@50396 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:30:54 +00:00
peterl%netscape.com
df37832d89 added 'ignore' keyword
r=hyatt


git-svn-id: svn://10.0.0.236/trunk@50395 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:30:19 +00:00
warren%netscape.com
6d83d361f0 Fixed bloat snapshotting capabilities. r=kipp
git-svn-id: svn://10.0.0.236/trunk@50394 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:29:54 +00:00
warren%netscape.com
93c11dbc7d Added NS_LOG_RELEASE for bloat stats. r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50393 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:28:14 +00:00
ssu%netscape.com
6a84236160 fixing bug #16095. apprunner.exe got renamed to mozilla.exe. This fix updates the installer to create the proper windows shortcut. Not part of tinderbox. r=dbragg@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50392 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:23:37 +00:00
peterl%netscape.com
8b985c46d4 fix return type for append reflow command (was returning PRBool for nsresult)
part of fix for 14134
r=pierre


git-svn-id: svn://10.0.0.236/trunk@50391 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:23:10 +00:00
peterl%netscape.com
bd0a1b5cb4 dont strip multiple changes with nsnull frames
part of fix for 14134
r=pierre


git-svn-id: svn://10.0.0.236/trunk@50390 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:22:18 +00:00
peterl%netscape.com
b765a3d4c4 add 'ignore' to user focus
r=hyatt


git-svn-id: svn://10.0.0.236/trunk@50389 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:21:06 +00:00
dougt%netscape.com
06ac17fb62 fixes bug 15709. r=dveditz.
git-svn-id: svn://10.0.0.236/trunk@50388 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:20:23 +00:00
evaughan%netscape.com
4dbf02b9bd added files: mozilla/view/src/nsScrollPortView.cpp
git-svn-id: svn://10.0.0.236/trunk@50387 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:16:34 +00:00
sspitzer%netscape.com
da4d6e495b fix for #16098, r=mscott. Now we have "Mozilla Profile Manager" for the mac, which is the same as -ProfileManager on the other platforms
git-svn-id: svn://10.0.0.236/trunk@50386 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:16:31 +00:00
evaughan%netscape.com
b6c93b5c5c Integrated Gfx scrollbars.
git-svn-id: svn://10.0.0.236/trunk@50385 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:16:06 +00:00
mscott%netscape.com
6d6b3023f8 support nsIStreamObserver to get rid of an assert in necko.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50384 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:13:45 +00:00
cbegle%netscape.com
d31b3296a7 new files.
new tests for xpconnect.  r=jband.


git-svn-id: svn://10.0.0.236/trunk@50383 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:12:43 +00:00
varada%netscape.com
bb0622beb7 changing minlen and maxlen in edit fields
git-svn-id: svn://10.0.0.236/trunk@50382 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:12:10 +00:00
alecf%netscape.com
342865f5fe was not setting the "type" attribute during CreateIncomingServer
fixes #16075
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50381 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:07:14 +00:00
varada%netscape.com
e6f4dfa6bc bug #5958 validating entering of characters in the newconfigdialog edit fields
git-svn-id: svn://10.0.0.236/trunk@50380 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:05:38 +00:00
kmcclusk%netscape.com
f52acaed14 Implemented nsRenderingContextWin::CopyClipRegion. bug 13913; r=rods@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50379 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:05:04 +00:00
ducarroz%netscape.com
888a71ee23 Fix for bug 15235 & 14785. I checkin this for jefft. Messages need to be save using platform specific line break. R=ducarroz
git-svn-id: svn://10.0.0.236/trunk@50378 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-12 00:03:17 +00:00
kmcclusk%netscape.com
90932ba7f3 Changed WIN32 windows style from WS_EX_CLIENTEDGEto WS_EX_WINDOWEDGE to
stop drawing client windows sunken. bug=15151; r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50377 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:56:55 +00:00
rods%netscape.com
b845870367 changed fonts for select and optgroup to match r=kmcclusk b=12230
git-svn-id: svn://10.0.0.236/trunk@50376 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:48:41 +00:00
varada%netscape.com
c3b9e376e5 fix to bug #15339- added SetForegroundWindowin the OnSetActive code in the wizardui.cpp
git-svn-id: svn://10.0.0.236/trunk@50375 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:47:49 +00:00
nhotta%netscape.com
59ee43f7fc Adding a new interface which does a charset conversion plus NE and NCR for fallback. Part of bug fix #8865, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@50374 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:47:27 +00:00
rods%netscape.com
a30fed502d removed css system color references (not implemented on Mac yet)
changed all checkbox borders to 2 pixels r=kmcclusk b=13854


git-svn-id: svn://10.0.0.236/trunk@50373 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:44:36 +00:00
nisheeth%netscape.com
d65bc1efa0 We now use the new RAPTOR_STOPWATCH_DEBUGTRACE macro to annotate all manipulations of the timers.
git-svn-id: svn://10.0.0.236/trunk@50372 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:42:56 +00:00
nisheeth%netscape.com
932343b896 Changes not part of build. We now use the new RAPTOR_STOPWATCH_DEBUGTRACE macro to annotate all manipulations of the timers.
git-svn-id: svn://10.0.0.236/trunk@50371 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:33:14 +00:00
nisheeth%netscape.com
4443e74058 Changes not part of build. Added a debug trace macro that outputs to the console only when DEBUG_STOPWATCH is defined.
git-svn-id: svn://10.0.0.236/trunk@50370 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 23:30:45 +00:00
rogerl%netscape.com
9a868467c2 NOT A PART OF SEAMONKEY BUILD
- fixed test ECMA references,
- added test to -002


git-svn-id: svn://10.0.0.236/trunk@50368 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 22:59:25 +00:00
norris%netscape.com
6a9e7e63c8 Fix bug:
Subject:
        optimizer SecurityException
   Date:
        Mon, 11 Oct 1999 17:37:51 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com (Norris Boyd)
    CC:
        Howard Lin <howard@softcom.com>




We use our own SecuritySupport implementation in Rhino.  This is properly
getting called by the optimizer to generate new classes (e.g.
org.mozilla.javascript.gen.c5 etc.)

However, after defining the class, Codegen.compile calls getClassLoader()
on the new class.  The default SecurityManager doesn't allow
getClassLoader() to be called and so an exception is thrown:

java.lang.RuntimeException: Malformed optimizer package
java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader )
        at org.mozilla.javascript.optimizer.Codegen.compile(Codegen.java:138)
        at org.mozilla.javascript.Context.compile(Context.java:1761)
        at org.mozilla.javascript.Context.compile(Context.java:1691)
        at org.mozilla.javascript.Context.compileReader(Context.java:810)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:725)
        [...]

This is kind of a pain to duplicate outside of our application, but if you
require a test case I can create one.

Codegen is attempting to call loadClass() after it uses
SecuritySupport.defineClass().  Our SecuritySupport calls loadClass()
internally in its defineClass() implementation.  This is what JavaAdapter
expects.

This is from Codegen.compile():

                         if (securitySupport == null) {
                             if (Context.isSecurityDomainRequired())
                                 throw new SecurityException("Required " +
                                             "security context missing");
                             if (classLoader == null)
                                 classLoader = new JavaScriptClassLoader();
                             clazz = classLoader.defineClass(name, classFile);
                         } else {
                             clazz = securitySupport.defineClass(name,
classFile,
                                                                 securityDom
securityDomain);
                         }
                         ClassLoader loader = clazz.getClassLoader();
                         clazz = loader.loadClass(name);


This is from JavaAdapter.createAdapterClass():


         SecuritySupport ss = cx.getSecuritySupport();
         if (ss != null)  {
             Object securityDomain = cx.getSecurityDomainForStackDepth(-1);
             return ss.defineClass(adapterName, bytes, securityDomain);
         } else {
             if (classLoader == null)
                 classLoader = new MyClassLoader();
             classLoader.defineClass(adapterName, bytes);
             return classLoader.loadClass(adapterName, true);
         }


So JavaAdapter is assuming SecuritySupport.defineClass() will call
ClassLoader.loadClass() on the new class, while Codegen is assuming it
needs to call ClassLoader.loadClass() on the class defined by
SecuritySupport.defineClass().

These should be made consistent, and in both cases it should be assumed
that SecuritySupport will both define and load the class.


Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com


git-svn-id: svn://10.0.0.236/trunk@50367 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 22:48:13 +00:00
rogerl%netscape.com
2fc190da13 NOT A PART OF SEAMONKEY BUILD
- removed redundant test & fixed test for 'super' to detect syntax error


git-svn-id: svn://10.0.0.236/trunk@50366 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 22:38:40 +00:00
varada%netscape.com
d6fa660ea6 #6569 adding Message function to OnNext handler
git-svn-id: svn://10.0.0.236/trunk@50365 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 22:30:02 +00:00
varada%netscape.com
2c4f182411 #15327 changing minlen to maxlen
git-svn-id: svn://10.0.0.236/trunk@50364 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 22:28:59 +00:00
sfraser%netscape.com
159030e89c Part of fix for 15795; nsFileSpecMac.cpp is no longer pulled in with a nasty #include, and is thus added to the project. r=dougt
git-svn-id: svn://10.0.0.236/trunk@50362 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:19:47 +00:00
terry%mozilla.org
c140cc2ce4 Got rid of silly debugging hack.
git-svn-id: svn://10.0.0.236/trunk@50361 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:19:46 +00:00
sfraser%netscape.com
8023b08ebc Fix for bugs 15795 and 16090 -- fix startup crash which was due to an uninitialized nsFileSpec trashing the stack. Also no longer set mError on CreateDirectory if the dir already exists, prevent += "foo" when mError is set, and add assertions XP to catch calls with NULL strings.
reviewed by dougt and (in part) sspitzer. a=leaf.


git-svn-id: svn://10.0.0.236/trunk@50360 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:19:06 +00:00
terry%mozilla.org
c90da152c8 Sort votes in decreasing order, not increasing.
git-svn-id: svn://10.0.0.236/trunk@50359 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 21:17:17 +00:00
leaf%mozilla.org
f9f813ef1c removing multiple include of mozilla/silentdl from raptor modules
git-svn-id: svn://10.0.0.236/trunk@50357 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:48:28 +00:00
slamm%netscape.com
8fad354f5e Remove '-test' from output file name
git-svn-id: svn://10.0.0.236/trunk@50356 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:46:59 +00:00
slamm%netscape.com
9a58260a6e finished testing
git-svn-id: svn://10.0.0.236/trunk@50355 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:43:46 +00:00
slamm%netscape.com
d1bd5d5e97 New file indexing. Use '/cvsroot' instead of lxr index.
git-svn-id: svn://10.0.0.236/trunk@50354 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:42:53 +00:00
slamm%netscape.com
ea86098377 Skip attic files.
git-svn-id: svn://10.0.0.236/trunk@50353 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:40:51 +00:00
slamm%netscape.com
dcfe02ab7b slight tweak. take 2.
git-svn-id: svn://10.0.0.236/trunk@50352 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:37:32 +00:00
slamm%netscape.com
cb5728cc3b slight tweak
git-svn-id: svn://10.0.0.236/trunk@50351 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:36:12 +00:00
slamm%netscape.com
1a57622faf Need to account for ,v
git-svn-id: svn://10.0.0.236/trunk@50350 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:34:57 +00:00
slamm%netscape.com
5bfc12b38e Test new file indexing.
git-svn-id: svn://10.0.0.236/trunk@50349 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:26:38 +00:00
varada%netscape.com
fb01047518 checking in fixes for bug #6569 - confirmation on clicking the finish button
git-svn-id: svn://10.0.0.236/trunk@50348 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:23:25 +00:00
terry%mozilla.org
a8e3ac3d29 Let's not keep everything locked up while regenerating.
git-svn-id: svn://10.0.0.236/trunk@50347 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 19:02:49 +00:00
terry%mozilla.org
8d648e06d7 Stop reporting "area"; don't report voters on the CC line.
git-svn-id: svn://10.0.0.236/trunk@50346 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 18:54:45 +00:00
terry%mozilla.org
c49588441a Make "rescanall" only check bugs which have changed in the last two days.
git-svn-id: svn://10.0.0.236/trunk@50345 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 18:23:21 +00:00
terry%mozilla.org
d9793670d5 Added ability to run "processmail rescanall" to scan *every* bug for
any mail that ought to be sent to someone.


git-svn-id: svn://10.0.0.236/trunk@50344 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 18:18:39 +00:00
terry%mozilla.org
865140e021 Oops; need extra directions to avoid problems when removing the "area" column.
git-svn-id: svn://10.0.0.236/trunk@50343 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 17:41:47 +00:00
terry%mozilla.org
6e44e98669 Stupid hack to let things work with people who have bookmarked
vote-sorting URLs using the old style.


git-svn-id: svn://10.0.0.236/trunk@50342 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 17:21:18 +00:00
terry%mozilla.org
97ae527556 Added a "votes" field to the bugs table, which caches the total number
of votes that have been cast for that bug.  This let me simplify the
SQL in buglist.cgi, which makes things more efficient and fixes
several strange bugs.


git-svn-id: svn://10.0.0.236/trunk@50341 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 17:14:32 +00:00
kipp%netscape.com
c2c9a9c0b6 Updated documentation to be more accurate; provided description of command line arguments
git-svn-id: svn://10.0.0.236/trunk@50340 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 15:30:17 +00:00
Jerry.Kirk%Nexwarecorp.com
058528945e Adding a "; else true" to work around broken shell under QNX4 for the
Neutrino cross-compile.
Bug #16049 r=Dale.Stansberry@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@50339 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 14:41:25 +00:00
neeti%netscape.com
b3d531541b updating status
git-svn-id: svn://10.0.0.236/trunk@50338 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 14:17:18 +00:00
briano%netscape.com
f52490e687 Automated update
git-svn-id: svn://10.0.0.236/trunk@50337 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 11:16:05 +00:00
briano%netscape.com
16ba6581af Automated update
git-svn-id: svn://10.0.0.236/trunk@50336 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 11:07:20 +00:00
ramiro%netscape.com
7fe99209ab Fix for bug 13522. Duplicate nsTimer.cpp files. Removing the old ones.
r=pavlov@netscape.com,sfraser@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@50335 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 04:01:35 +00:00
ramiro%netscape.com
64aa89c32a Fix for bug 13522. Duplicate nsITimer.h files. Removing the old ones.
r=pavlov@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@50334 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 03:48:21 +00:00
pavlov%netscape.com
770be8200a Do not draw images if we have an empty clip region r=syd fixes bug #11086
git-svn-id: svn://10.0.0.236/trunk@50333 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-11 03:04:59 +00:00
mcafee%netscape.com
574bed9e24 Enable Solaris/Intel/egcs to build & run. Patch submitted by Roy Jones, r=mcafee
git-svn-id: svn://10.0.0.236/trunk@50332 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 23:41:23 +00:00
putterman%netscape.com
d468916c06 Remove ctor/dtor counter macros I added before it was determined we shouldn't
use them for xpcom classes.


git-svn-id: svn://10.0.0.236/trunk@50331 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:52:49 +00:00
putterman%netscape.com
9dbd192f71 Use ctor/dtor counter macros on non xpcom classes. reviewed by mscott. no bug.
git-svn-id: svn://10.0.0.236/trunk@50330 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:32:54 +00:00
putterman%netscape.com
e618bdbebb Switch over mailnews/base to use nsIModule. I forgot to mention that these
checkins were reviewed by mscott.  There's no bug.


git-svn-id: svn://10.0.0.236/trunk@50329 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:32:25 +00:00
putterman%netscape.com
7f3afb38db Switch over mailnews/base to use nsIModule.
git-svn-id: svn://10.0.0.236/trunk@50328 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:31:48 +00:00
putterman%netscape.com
1ef39b7b56 Create a version of NS_GENERIC_FACTORY_CONSTRUCTOR that lets you pass in
an initialization function.  No bug.  Reviewed by dp.


git-svn-id: svn://10.0.0.236/trunk@50327 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 22:30:55 +00:00
ramiro%netscape.com
a29fb3f1d9 Add .*.timestamp to ignore the new "ar" hack droppings.
git-svn-id: svn://10.0.0.236/trunk@50326 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 07:34:06 +00:00
rpotts%netscape.com
907eec02fc Removed 2 *extra* calls to NS_RELEASE in failure cases...
git-svn-id: svn://10.0.0.236/trunk@50325 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 06:58:42 +00:00
dveditz%netscape.com
cb001a0982 build fix, packager needs to know about changed Win32 names
git-svn-id: svn://10.0.0.236/trunk@50324 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 04:59:59 +00:00
warren%netscape.com
6320eadc46 Fixed refcounting problem and possible out-of-memory condition. r=kipp
git-svn-id: svn://10.0.0.236/trunk@50323 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 02:08:08 +00:00
dveditz%netscape.com
30a83caa1d Fixing 8.3 library name problems, bugs 10355, 10359,10364, 10365, 10372, 11796, 11791. Checking in for cathleen, r=dveditz
git-svn-id: svn://10.0.0.236/trunk@50322 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-10 01:32:59 +00:00
ssu%netscape.com
765cdf4fa9 fixing bug #15953. No fix is not part of tinderbox builds. affects only windows. Got approval from Syd_Sheriff. Also updated config.ini to not reference the editor since it has been rolled into the core.xpi.
git-svn-id: svn://10.0.0.236/trunk@50321 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 22:21:11 +00:00
ssu%netscape.com
f818f184a0 this checkin is to help fix bug #15393. There is one more step to truly fix it, which will come later. Reviewed by sgehani@netscape.com. This only affects windows platforms. This fix is needed because xpistub.dll no longers requires two callback functions: XpiStart() and XpiFinal().
git-svn-id: svn://10.0.0.236/trunk@50320 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 21:41:02 +00:00
ssu%netscape.com
2478da99aa this checkin is to help fix bug #15393. There is one more step to truly fix it, which will come later. This fix is by dveditz, and reviewed by ssu.
git-svn-id: svn://10.0.0.236/trunk@50319 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 21:37:21 +00:00
rginda%ndcico.com
27e760dac4 * Makefile.in, makefile.win
Install new css files and alternate images.

* README
Removed some rot.

* events.js
Add ability to disable a hook without uninstalling it.
Changed return value of addHook to the new hook object.
Added getHook(name) method.
Removed unused variable from routeEvent.

* http.js, irc-debug.js
Fixed spelling error.

* irc.js
network.onConnect no longer forwards the event to the server.
Added getModeStr() method to the IRCChanMode object to retrieve the entire mode string for a channel.

* utils.js
Added Clone() constructor.
Fixed problem in stringTrim.
Added getStackTrace() ... Whoopee!! ...

* bsconnection.c, bsutil.c
Stop warnings on Mac.

* index.html
Change links to buttons to avoid troubles with other methods (href="javascript:f()" | (href="javascript:(void 0)" | href="#") onclick="f()")

* test3-commands.js
Wiring for /testdisplay and /msg commands.

* test3-handlers.js
Added debug message toggle menuitem handler.
Added style change menu item handler.
Added hack to work around bad KeyUp events.
Factored out some logic from onInputCompleteLine into getObjectDetails (in test3-static.js)
Added /testdisplay and /msg implementation.
Fixed error message for unknown network passed to /network.
Added topicDate to output of /topic command.
updateNetwork and updateChannel calls sprinkled throughout to keep the statusbar current.
Added topic change handler.

* test3-static.js
Post new messages top to bottom!!
Disable the debug hook by default.
Added getObjectDetails (factored out of test3-handlers.js)
Added setOutputStyle to dynamically change the .cs file used for the output window.
Implemented updateNetwork and updateChannel.
Massive changes to .display methods make output window now display using a table, instead of spans (much faster, btw.)
Fixed addHistory to trim the correct side of the output, regardless of print direction.

* test3.css
Factored out output window styles.

* test3.xul
Added menu options for debug message toggle and style changes.
Added statusbar (table.)

* test3-output-default.css, test3-output-marble.css
Added output window stylesheets.


git-svn-id: svn://10.0.0.236/trunk@50318 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 21:26:52 +00:00
ssu%netscape.com
84d2d35991 fixing bug #15584. reviewed by sgehani@netscape.com. Fixes build warnings under linux.
git-svn-id: svn://10.0.0.236/trunk@50317 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 21:08:35 +00:00
law%netscape.com
7f7558dc5d Bug #15916; cleaned up context menu generation to make it faster; rev=hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50316 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 07:58:24 +00:00
law%netscape.com
2705d8b72b Bug #14999; removed use of toolkit app core; rev=scottip@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50315 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:23:30 +00:00
law%netscape.com
0a8ef0fe92 Bug #14999; removed use of toolkit app core; rev=rgoodger@ihug.co.nz
git-svn-id: svn://10.0.0.236/trunk@50314 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:21:53 +00:00
law%netscape.com
8191c9d684 Bug #14999; removed use of toolkit app core; rev=davidm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50313 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:18:58 +00:00
law%netscape.com
79880beab5 Bug #14999; removed use of toolkit app core; rev=tao@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50312 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:17:46 +00:00
law%netscape.com
7db449cd06 Bug #14999; removed use of toolkit app core; rev=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50311 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:16:33 +00:00
law%netscape.com
18dd71d7d3 Bug #14999; removed use of toolkit app core; rev=dbragg@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50310 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:15:06 +00:00
jband%netscape.com
8d3833cb33 Much of this is under the auspices of bug 15794. r=mccabe.
- map xpcshell's 'quit()' to a loop exit rather than calling
'exit(0)' so that the cleanup and leak detection code will still
get called.

- add NS_InitXPCOM and NS_ShutdownXPCOM to xpcshell to run said
cleanup and leak detection code.

- use more NS_IF_* macros

- fix numerous places where code assumed that
nsXPConnect::GetXPConnect() does not add a new ref on the
xpconnect singleton object (the behavior changed some time back
but not all the uses did - brainfade!).

- fix nsXPCException::NewException to automatically trim
'dataless' native stackframes off of the front of a stack trace.
The old system of manually telling it how many frames to trim was
not working well. We really want the first frame showing to be an
'interesting' frame so that callers who get exceptions thrown at
them will see some useful information rather than an empty native
frame that represents (but says nothing about) some native frame
in the xpconnect runtime.

- remove an extra addref from the trimming loop in
nsXPCException::NewException.

- Stop building XPCJSStack objects. XPConnect stacks are singly
linked lists of XPCJSStackFrame objects with refcounted links. I
had this stupid idea that each object would have a refcounted
link to a XPCJSStack object that would tie together the lifetimes
of all objects in the chain. This was overcomplex and
unnecessary. The linked list was enough. Any frame without a
refcount deserved to be deleted because it is simply unreachable.
There was no reason to tie together all the lifetimes of each
object in the chain. So this has been simplified in a big way.

- fixed place in xpcthrower.cpp where we were leaking a refcount
on the xpconnect singleton each time an xpcexception was thrown.

- do cleanup and gc() at the end of xpctest_echo.js to use for
leak testing - all wrappers should go away.


git-svn-id: svn://10.0.0.236/trunk@50309 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 06:01:57 +00:00
morse%netscape.com
580e6e380c use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=neeti
git-svn-id: svn://10.0.0.236/trunk@50308 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 04:50:32 +00:00
sdagley%netscape.com
f5924be40d XP_MAC GC leak detector changes: using LMGetCurStackBase to compute stack bottom, and considering all threads GCable. r=sdagley (checking in for beard). bug=15906
git-svn-id: svn://10.0.0.236/trunk@50306 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:39:54 +00:00
sdagley%netscape.com
886d9b7c4f XP_MAC: turning off a spurious assert in PR_Lock (which can get called at interrupt time!). r=sdagley (checking in for beard). bug=15906
git-svn-id: svn://10.0.0.236/trunk@50305 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:39:52 +00:00
beard%netscape.com
d2773dffe3 fix build bustage, accidentally left GC_LEAK_DETECTOR on.
git-svn-id: svn://10.0.0.236/trunk@50304 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:31:58 +00:00
beard%netscape.com
79da82091a fix memory leaks (nsMacMessage sink). r=pavlov, bug=15380
git-svn-id: svn://10.0.0.236/trunk@50302 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:08:56 +00:00
beard%netscape.com
8927726ce7 added "Dump Leaks" menu item. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50301 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:01:44 +00:00
beard%netscape.com
4aa916c066 added dump leaks command. added explicit calls to NS_InitXPCOM/NS_ShutdownXPCOM. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50300 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 03:01:43 +00:00
beard%netscape.com
a193449dbf Changed MemAllocatorGC.o target to build MemAllocatorDebug.o. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50299 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:58:20 +00:00
beard%netscape.com
6d47545512 removed FSp_fopen.c, SymFiles.cpp now using native Mac file I/O. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50298 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:57:51 +00:00
beard%netscape.com
d568e564ce added :dist:gc: and :dist:mac: to access paths. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50297 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:56:56 +00:00
beard%netscape.com
9a6d1be468 GC_add_roots -> GC_register_fragment, GC_remove_roots -> GC_unregister_fragment. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50296 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:56:55 +00:00
beard%netscape.com
c3710aa7cf added "IDE_Options.h" to ensure consistent build settings. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50295 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:54:38 +00:00
beard%netscape.com
ab9846ab1e added gc_fragments.h. r=jar, bug=15906
git-svn-id: svn://10.0.0.236/trunk@50294 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:53:25 +00:00
beard%netscape.com
bfb9762e5a nsFileSpec.GetLeafName() allocates a string, fix leak. r=warren, bug=15380
git-svn-id: svn://10.0.0.236/trunk@50293 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:52:46 +00:00
cls%seawood.org
f49139b533 Bug #13782 r=ramiro
Fixed the various clean targets so that a distclean is only performed on GtkMozilla when explicitly asked for.


git-svn-id: svn://10.0.0.236/trunk@50292 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:41:01 +00:00
dveditz%netscape.com
19c0e43ded fixing Win32 debug build bustage with NS_LOG_ADDREF. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@50291 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:09:31 +00:00
mccabe%netscape.com
d69dd3df67 Fix to 15813. Change to using nsFileSpec to read .xpt files; this is 2x faster on the Mac. Fix courtesy Simon Fraser.
r=sfraser, or r=mccabe, depending on how you look at it.


git-svn-id: svn://10.0.0.236/trunk@50290 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 02:07:35 +00:00
edburns%acm.org
dc683794a3 Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=15902
Approved by: edburns@acm.org
Reviewed by: edburns@acm.org
Authored by: idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@50289 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 01:34:29 +00:00
selmer%netscape.com
dc6d4aa6fa New standard makefile
git-svn-id: svn://10.0.0.236/trunk@50288 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 01:33:45 +00:00
rhp%netscape.com
99e13cf601 Changes to fix VCard display problems - Changed generated JS - Bugs: #14204 and #12352 - Reviewer: scottip
git-svn-id: svn://10.0.0.236/trunk@50287 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 01:19:00 +00:00
edburns%acm.org
66eaef7892 Fix for http://bugzilla.mozilla.org/show_bug.cgi?id=15607
Approved by: av@netscape.com
Reviewed by: av@netscape.com

/**

 * This method queries the prefs for proxy information.

 * It has been tested and is known to work in the following three cases

 * when no proxy host or port is specified

 * when only the proxy host is specified

 * when only the proxy port is specified

 * This method conforms to the return code specified in

 * http://developer.netscape.com/docs/manuals/proxy/adminnt/autoconf.htm#1020923

 * with the exception that multiple values are not implemented.

 */

NS_IMETHODIMP nsPluginHostImpl::FindProxyForURL(const char* url, char* *result)


git-svn-id: svn://10.0.0.236/trunk@50286 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 01:18:02 +00:00
slamm%netscape.com
5ff13771d4 Use temporary file name without process number for checkout. I was getting the name wrong because I refered to it in a new process (still using the 17606 variable. Hopefully this will be the final checking for bug #15750. r=waterson. I updated some comments too.
git-svn-id: svn://10.0.0.236/trunk@50285 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-09 00:31:17 +00:00
dp%netscape.com
c6019b3551 adding precheckin tests. r=matt
git-svn-id: svn://10.0.0.236/trunk@50284 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:50:49 +00:00
dp%netscape.com
3be8f0bb27 Adding precheckin tests
git-svn-id: svn://10.0.0.236/trunk@50283 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:48:20 +00:00
av%netscape.com
f82a173c1b Bug 15178, r=vidur adding check for return value avoiding crash
git-svn-id: svn://10.0.0.236/trunk@50282 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:47:03 +00:00
av%netscape.com
c4fd2231d1 Bug 15178, r=vidur adding check for null-pointer avoiding crash
git-svn-id: svn://10.0.0.236/trunk@50281 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:46:23 +00:00
terry%mozilla.org
22765f12e4 Fixed bug 15890 -- was producing garbled SQL if doing a query
that required the bugs_activity table.


git-svn-id: svn://10.0.0.236/trunk@50280 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:45:42 +00:00
kipp%netscape.com
fb8e1bdb06 Fixed cellmap ctor/dtor logging to not show up negative
git-svn-id: svn://10.0.0.236/trunk@50279 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:42:13 +00:00
kipp%netscape.com
9c16516bfc Fixed a comment that was out of date
git-svn-id: svn://10.0.0.236/trunk@50278 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:41:39 +00:00
kipp%netscape.com
a4f420d4fb Fixed up hook to track library loads for refcnt logging
git-svn-id: svn://10.0.0.236/trunk@50277 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:41:18 +00:00
kipp%netscape.com
6a697df2cd Always call dump-statistics and reset-statistics so that MOZ_DUMP_LEAKS isn't required
git-svn-id: svn://10.0.0.236/trunk@50276 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:40:52 +00:00
kipp%netscape.com
fabbe52905 Tweaked to avoid a crash in case bloat tracking is on but there is no bloat data to dump
git-svn-id: svn://10.0.0.236/trunk@50275 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:39:57 +00:00
beard%netscape.com
b625f8c219 modernized constants.
git-svn-id: svn://10.0.0.236/trunk@50274 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:35:34 +00:00
beard%netscape.com
3270b2a66f Rewrote using Mac file I/O, since MSL can only manage 35 FILEs.
git-svn-id: svn://10.0.0.236/trunk@50273 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:35:32 +00:00
jfrancis%netscape.com
84003fe77b applying same fix as rev 1.28 (initializing mIsDone) to the rest of the Init() methods.
git-svn-id: svn://10.0.0.236/trunk@50272 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:34:07 +00:00
nisheeth%netscape.com
2a38ee05b4 Not currently part of the build. Added a stack behind the save/restore timing macros.
git-svn-id: svn://10.0.0.236/trunk@50271 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:27:09 +00:00
akhil.arora%sun.com
9dcd28272e Fixes Bug 15837 by instantiating the proper subtype of Node instead of Node.
Fixed by Igor Nekrestyanov <nis@sparc.spb.su>.
Reviewed by Akhil Arora <akhil.arora@sun.com>.


git-svn-id: svn://10.0.0.236/trunk@50270 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:22:52 +00:00
troy%netscape.com
bae6f56e4b Changes to SizeOf() code only. This code is debug code that only runs
when you chose the "Show Frame Sizes" menu item...


git-svn-id: svn://10.0.0.236/trunk@50269 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:18:19 +00:00
kipp%netscape.com
deff3927b7 new
git-svn-id: svn://10.0.0.236/trunk@50268 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 23:04:26 +00:00
selmer%netscape.com
6f9a832691 Configs instead of Customizations directory
git-svn-id: svn://10.0.0.236/trunk@50267 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:56:29 +00:00
rogerl%netscape.com
5e3057bc5f Fixed 14060 - calling exec on java methods was gettmg caught by exec
trapping nonsense.


git-svn-id: svn://10.0.0.236/trunk@50266 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:55:33 +00:00
syd%netscape.com
062e198b32 Export platform.h. This is legacy stuff that should be removed eventually.
r=mcafee.


git-svn-id: svn://10.0.0.236/trunk@50264 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:37:37 +00:00
syd%netscape.com
52eb9ba5eb Build into include for exports (currently just platform.h) r=mcafee
git-svn-id: svn://10.0.0.236/trunk@50263 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:36:46 +00:00
kipp%netscape.com
ba85b17922 Unbreak people who were actually using MOZ_TRACE_XPCOM_REFCNT
git-svn-id: svn://10.0.0.236/trunk@50262 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:30:19 +00:00
troy%netscape.com
69fbd973a0 Fix for blocker #15839. r=kipp@netscape.com,kin@netscape.com
Typing into a text area wasn't working properly. Problem was that when the text
changed we were reflowing the text frames with a resize reflow command and
we thought we could optimize the reflow. So I changed ContentChanged() to
mark each text frame dirty so we would know not to do the optimization


git-svn-id: svn://10.0.0.236/trunk@50261 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:04:31 +00:00
kipp%netscape.com
041db07f43 Fixed opt build bustage
git-svn-id: svn://10.0.0.236/trunk@50260 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 22:04:04 +00:00
kipp%netscape.com
60a9b36aae Fixed windows build bustage
git-svn-id: svn://10.0.0.236/trunk@50256 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 21:19:42 +00:00
cls%seawood.org
075aedf4ee Ok, let's not try to generate the remove list if there is no library to remove things from
git-svn-id: svn://10.0.0.236/trunk@50255 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 21:17:32 +00:00
waterson%netscape.com
ca11a90c92 Initial revision. Not in build.
git-svn-id: svn://10.0.0.236/trunk@50251 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 21:15:21 +00:00
waterson%netscape.com
84e4143c7e Add new files not in the build.
git-svn-id: svn://10.0.0.236/trunk@50248 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 21:11:20 +00:00
morse%netscape.com
abd3497f8c use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=neeti
git-svn-id: svn://10.0.0.236/trunk@50246 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:47:17 +00:00
cbegle%netscape.com
6389e9eed1 Adding new files. Tests for XPConnect. These files are not part of the
build.  R=jband@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50245 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:45:37 +00:00
kipp%netscape.com
16a80cecba Tweaked stack trace display code
git-svn-id: svn://10.0.0.236/trunk@50244 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:42:33 +00:00
kipp%netscape.com
bbf17a2772 Support demangling again by working around crash bug in demangle library
git-svn-id: svn://10.0.0.236/trunk@50243 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:42:15 +00:00
kipp%netscape.com
5b712622da Enable NS_FreeImageManager now that the call is part of the tip
git-svn-id: svn://10.0.0.236/trunk@50242 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:49 +00:00
kipp%netscape.com
0eec4f1a12 nuked
git-svn-id: svn://10.0.0.236/trunk@50241 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:21 +00:00
kipp%netscape.com
e18af2d0ee Cleanup moz-decl-counter usage and fix NS_LOG_ADDREF usage
git-svn-id: svn://10.0.0.236/trunk@50239 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:19 +00:00
neeti%netscape.com
0f9df28d81 Converted nsxpi.dll and xpiflash.dll to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=dougt
git-svn-id: svn://10.0.0.236/trunk@50238 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:41:13 +00:00
ftang%netscape.com
655211e9e0 remove obsolted file
git-svn-id: svn://10.0.0.236/trunk@50237 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:35:24 +00:00
ftang%netscape.com
e62cab32bc change to nsIModule r=kipp
git-svn-id: svn://10.0.0.236/trunk@50236 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:30:58 +00:00
ftang%netscape.com
ff64ed5645 remove factory file and add module file
git-svn-id: svn://10.0.0.236/trunk@50235 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:30:42 +00:00
cls%seawood.org
7ac835a8b2 Added a test to see if there are any archive members to be removed before calling AR_DELETE as NetBSD's & OpenBSD's versions of ar do not like removing an empty list.
r=leaf


git-svn-id: svn://10.0.0.236/trunk@50234 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:30:28 +00:00
kipp%netscape.com
b44472476c Merged bloaty and moz ctor counting (space team work)
git-svn-id: svn://10.0.0.236/trunk@50233 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:29:47 +00:00
ftang%netscape.com
7ce12116c7 add new file for nsIMoudle work, r=kipp
git-svn-id: svn://10.0.0.236/trunk@50232 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 20:27:24 +00:00
slamm%netscape.com
16bf5b4e43 Backout troy's last set of changes. Caused bug #15790, 'opening bookmarks window and expanding mail folders crashes'. r=waterson.
git-svn-id: svn://10.0.0.236/trunk@50230 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 18:52:19 +00:00
beard%netscape.com
f5cc851bd0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50229 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 17:51:45 +00:00
slamm%netscape.com
2b7533ef10 Fix empty sidebar. bug #15468. Need to wait for sidebar-panels in init routine.
git-svn-id: svn://10.0.0.236/trunk@50227 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 17:15:27 +00:00
rickg%netscape.com
24c8eb13e7 added default XML apos entity; no bug #. This update (and my last) were reviewed by peterl
git-svn-id: svn://10.0.0.236/trunk@50226 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 15:05:41 +00:00
rickg%netscape.com
7bfc990fcf fixed bug 15649; when the parsing library was modularized last week, tag lookup for view source got disconnected. This simply reconnects it.
git-svn-id: svn://10.0.0.236/trunk@50225 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:52:16 +00:00
terry%mozilla.org
b978d371e9 Added ability to query by votes.
git-svn-id: svn://10.0.0.236/trunk@50224 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:47:21 +00:00
terry%mozilla.org
8c7166d122 Added ability to query by votes.
git-svn-id: svn://10.0.0.236/trunk@50223 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:41:17 +00:00
buster%netscape.com
273f420e23 fixed my part of bug 15814 (Cleanup build warnings)
so trivial, no reviewer needed
fixed my part of bug  5403 (Services improperly released: Use NS_WITH_SERVICE)
a handful of subtle error handling bugs were fixed as a side effect
r=Akkana


git-svn-id: svn://10.0.0.236/trunk@50222 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:39:20 +00:00
law%netscape.com
edef6fb916 For bug #14999; adding new method to simplify applying OpenDialog to the hidden window. rev=danm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50219 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:04:17 +00:00
terry%mozilla.org
2aa7b332a8 Fixed bug 15808 -- previous change had busted querying of CC.
git-svn-id: svn://10.0.0.236/trunk@50218 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 14:01:02 +00:00
rods%netscape.com
db039d9432 ifdef'ed out a static counter for debugging. r=kmcclusk b=15637
git-svn-id: svn://10.0.0.236/trunk@50217 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 12:24:11 +00:00
sgehani%netscape.com
97b88d421f Failover implemented for i18n strings in XPInstall if the string bundle service is not available, fails, or if the .properties resource file is not avilable. Fixes install wizard logging. Completion of fix for bug 8140. [r=ssu]
git-svn-id: svn://10.0.0.236/trunk@50216 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 09:00:13 +00:00
sspitzer%netscape.com
4b800ef247 more clean up. #15402.
git-svn-id: svn://10.0.0.236/trunk@50215 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 07:58:54 +00:00
waterson%netscape.com
199c8166c7 Misc cleanup, r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50214 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 07:26:39 +00:00
waterson%netscape.com
fbecb0f668 Add elements to element map by 'ref', as well.
git-svn-id: svn://10.0.0.236/trunk@50213 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 07:26:14 +00:00
sspitzer%netscape.com
1dd1cfee5a temporary printfs to help me debug the elusive #15792 that only bijals is seeing
git-svn-id: svn://10.0.0.236/trunk@50212 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 07:12:21 +00:00
sspitzer%netscape.com
52d84b804d just checking in comments. resizeToContent() makes the "Create Profile Wizard"
take up the whole screen.  (bug logged on danm already.)


git-svn-id: svn://10.0.0.236/trunk@50211 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 06:50:26 +00:00
cls%seawood.org
a0ade5ef67 Checking in locally generated configure until briano's script gets fixed
git-svn-id: svn://10.0.0.236/trunk@50210 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 05:57:01 +00:00
sspitzer%netscape.com
4b226a4436 when renaming a profile, and renaming the profile directory on disk,
don't do a copy and delete.  just rename the directory.
r=davidm, #15402


git-svn-id: svn://10.0.0.236/trunk@50209 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 05:41:40 +00:00
cls%seawood.org
07d74ceef4 Applied Jim Nance's, <jim_nance@yahoo.com>, patch to reduce the size of a build by using a modified version of GNU make's implicit ruleset that incrementally add object files to static library archive and eliminates the need to have the unused object files sitting around. A clobber is required to see the savings.
Bug #15241 . r=sleestack


git-svn-id: svn://10.0.0.236/trunk@50208 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 05:18:46 +00:00
sspitzer%netscape.com
d4f79e4e21 fix build bustage on windows.
git-svn-id: svn://10.0.0.236/trunk@50207 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 05:14:48 +00:00
troy%netscape.com
093e5bfd97 Change to SizeOf() code (diagnostic code only). Changed table frame
code to split the column cache size out into a separate listing


git-svn-id: svn://10.0.0.236/trunk@50206 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 05:12:55 +00:00
sspitzer%netscape.com
3ba1fc9867 more clean up of the profile code. #15402, r=davidm
make profileExists() part of the nsIProfile interface, so I can
get at it from JS.  startCommunicator is now startApprunner.
get RenameProfile() and DeleteProfile() to work better.
make the delete profile dialog size to content.
change the 2nd arg of DeleteProfile() to be a bool, and not a string.
use MakeUnique() to prevent undesired collisions of profiles on disk.


git-svn-id: svn://10.0.0.236/trunk@50205 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:58:32 +00:00
sspitzer%netscape.com
127e23606e add some bulletproofing. r=davidm
git-svn-id: svn://10.0.0.236/trunk@50204 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:55:37 +00:00
sspitzer%netscape.com
be500f5f77 make the prompt and alert dialogs resize to content.
fix by davidm, r=sspitzer, bug #15815


git-svn-id: svn://10.0.0.236/trunk@50203 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:51:19 +00:00
troy%netscape.com
28f1fa0323 Removed some dead code and moved some #if 0 code from the area frame
to the block frame. This completes the previous checkin


git-svn-id: svn://10.0.0.236/trunk@50202 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:45:12 +00:00
warren%netscape.com
15a67038a4 Fixed bug in computing object count mean and stddev.
git-svn-id: svn://10.0.0.236/trunk@50201 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:39:24 +00:00
troy%netscape.com
579c8e2248 Frame space reductions. r=kipp@netscape.com
Table cell frames and table caption frames now use block frames and not area
frames. This saves 24 bytes per frame instance


git-svn-id: svn://10.0.0.236/trunk@50200 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:32:46 +00:00
beard%netscape.com
312671bf23 added .xSYM address to source mapping.
git-svn-id: svn://10.0.0.236/trunk@50199 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:14:09 +00:00
beard%netscape.com
cc845797fa changed format of object size.
git-svn-id: svn://10.0.0.236/trunk@50198 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:13:44 +00:00
beard%netscape.com
8c486b4dbf added address to source mapping using .xSYM files.
git-svn-id: svn://10.0.0.236/trunk@50197 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:13:04 +00:00
beard%netscape.com
3da62e7fd4 added Histogram report.
git-svn-id: svn://10.0.0.236/trunk@50196 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:12:11 +00:00
beard%netscape.com
d75c5a8f47 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50195 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 04:11:39 +00:00
danm%netscape.com
fefde390b5 hiddenWindow loads its full glory only on the Mac. speeds launch time for everyone else. r:hyatt
git-svn-id: svn://10.0.0.236/trunk@50194 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 03:31:41 +00:00
peterl%netscape.com
d1916dab07 First step at fixing 12106, factored out style rule processing from
style sheets into a seperate style rule processor interface
r=troy


git-svn-id: svn://10.0.0.236/trunk@50193 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 03:09:31 +00:00
leaf%mozilla.org
12ad3a8ea1 << termination needs to be the first thing on the line, no preceding whitespace
fixing solaris build


git-svn-id: svn://10.0.0.236/trunk@50192 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 02:27:34 +00:00
peterl%netscape.com
41ae9835a0 removed setting of border color for table parts (cruft from the dark ages)
Bug 15802
r=rickg


git-svn-id: svn://10.0.0.236/trunk@50191 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 02:07:37 +00:00
mscott%netscape.com
42395fb4cd Bug #14612. I'm checking this in for warren. r=mscott
The pipe shouldn't block when you write more bytes into the pipe than the size of the pipe's buffer. Add an extra
notify to the writer of the pipe after we read data out of it.


git-svn-id: svn://10.0.0.236/trunk@50190 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 02:03:34 +00:00
ducarroz%netscape.com
02844df3be Fix for bug 15720, We need to tell the nsMsgLineBuffer which format of line break we will use. R=jefft,mscott
git-svn-id: svn://10.0.0.236/trunk@50189 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:55:36 +00:00
warren%netscape.com
c9fbdb8075 Fixed AddRef/Release problems to eliminate negative refcounts in Bloaty.
git-svn-id: svn://10.0.0.236/trunk@50188 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:49:06 +00:00
tao%netscape.com
9470ef781b Hook up l10n/ when MOZ_L10N is defined.
git-svn-id: svn://10.0.0.236/trunk@50187 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:32:44 +00:00
alecf%netscape.com
450082561c fix mac-specific bustage
git-svn-id: svn://10.0.0.236/trunk@50186 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:11:13 +00:00
tao%netscape.com
de2f3b6942 Move da-DK files to l10n/lang; r=leaf
git-svn-id: svn://10.0.0.236/trunk@50185 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:06:56 +00:00
alecf%netscape.com
c3ba33bbb8 fix windows bustage
git-svn-id: svn://10.0.0.236/trunk@50184 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 01:01:56 +00:00
edburns%acm.org
d6eb736cf5 1999-10-07 <Ed Burns <ed.burns@sun.com>>
* This change fixes
 	http://bugzilla.mozilla.org/show_bug.cgi?id=15793 which caused one
 	to have to copy the component.reg and components directory.  It
 	also causes webclient to do autoregistration.  It also adds a
 	debugging method to BrowserControlMozillaShim.java
 	nativeDebugBreak().

	This changes makes webclient depend on having mozilla sources from
 	10/5/99 or later.

	Reviewed by Mark Lin <marklin@eng.sun.com>
	Approved by Ed Burns <edburns@acm.org>, module owner


git-svn-id: svn://10.0.0.236/trunk@50183 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:52:53 +00:00
edburns%acm.org
f0ebe3333d 1999-10-07 <Ed Burns <ed.burns@sun.com>>
* This change fixes
 	http://bugzilla.mozilla.org/show_bug.cgi?id=15793 which caused one
 	to have to copy the component.reg and components directory.  It
 	also causes webclient to do autoregistration.  It also adds a
 	debugging method to BrowserControlMozillaShim.java
 	nativeDebugBreak().

	This changes makes webclient depend on having mozilla sources from
 	10/5/99 or later.

	Reviewed by Mark Lin <marklin@eng.sun.com>
	Approved by Ed Burns <edburns@acm.org>, module owner


git-svn-id: svn://10.0.0.236/trunk@50182 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:48:01 +00:00
alecf%netscape.com
0a89ba79ef oops, remove XP_UNIX specific stuff which was busting things
git-svn-id: svn://10.0.0.236/trunk@50181 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:37:17 +00:00
terry%mozilla.org
479c02d23b Sorting by the vote column was busted.
git-svn-id: svn://10.0.0.236/trunk@50180 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:30:49 +00:00
sspitzer%netscape.com
af65076fcc don't specify the width and height, so the dialog resizes to content.
git-svn-id: svn://10.0.0.236/trunk@50178 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:17:22 +00:00
alecf%netscape.com
867ac81c42 add new NS_xxx_MODULE* macros (not used anywhere in the build just yet)
git-svn-id: svn://10.0.0.236/trunk@50177 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:12:29 +00:00
jband%netscape.com
1c2af52291 fix warning of old style C++ variable scope declared in 'for'. bug 15778. r=slamm
git-svn-id: svn://10.0.0.236/trunk@50176 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-08 00:11:05 +00:00
tao%netscape.com
524f22fa3d Move localized resource files to mozilla/l10n/lang.
git-svn-id: svn://10.0.0.236/trunk@50173 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:59:32 +00:00
alecf%netscape.com
f562178cfd exorcise xp.h from compose header files, in preparation for nsIModule landing
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50172 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:55:42 +00:00
terry%mozilla.org
ff8d0b5547 Added the ability for users to "vote" on which bugs they think should
be fixed.


git-svn-id: svn://10.0.0.236/trunk@50171 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:54:52 +00:00
rickg%netscape.com
32ae9a79ff fixed bug 15881; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50170 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:52:29 +00:00
rickg%netscape.com
dee37d8ec6 fixed bug 15788; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50169 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:51:29 +00:00
mscott%netscape.com
14bcf4dfb6 Bug #11836 --> convert local factory to be a nsIModule
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@50168 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:35:10 +00:00
mscott%netscape.com
53ff6e3994 Bug #12198 --> don't dereference a null ptr for the uri. return gracefully.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@50167 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:29:13 +00:00
mscott%netscape.com
dea623bfa3 Bug #15615 --> when the proxy code is processing an event, we can't be holding onto the event queue's monitor. Because
you could run into the scenario where in processing the event, the thread blocks waiting for an event from another thread.
That thread tries to post the event to the orginal thread's event Queue but can't enter the queue's monitor.
r=warren (or reviewed by me depending on your point of view since we figured it out together).


git-svn-id: svn://10.0.0.236/trunk@50166 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:25:36 +00:00
danm%netscape.com
c631c144f2 killing general table and td rules since these are global to the entire app, and table display:block in particular will break all tables. want to remove other rules, too, but stopped with the delightfully self-contradictory #righttext, which isn't used. r:hyatt
git-svn-id: svn://10.0.0.236/trunk@50165 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:10:41 +00:00
waterson%netscape.com
2064c545e9 Bug 15687. Make sure to test whether CreateTemplateBuilder() succeeded before dereferencing the builder we get back. r=rjc
git-svn-id: svn://10.0.0.236/trunk@50164 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:07:00 +00:00
terry%mozilla.org
7edab401af Helpfile for voting feature.
git-svn-id: svn://10.0.0.236/trunk@50163 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 23:03:59 +00:00
slamm%netscape.com
70d8dbcabe Make the sidebar panels appear. Bug #15468. r=mcafee. Had 'datasources' defined when it wasn't needed.
git-svn-id: svn://10.0.0.236/trunk@50159 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 22:56:22 +00:00
selmer%netscape.com
fdf016b522 varada - bug #15770 adding extra funtions to create button in checklist.ini to verify presence of config before doing a copy
git-svn-id: svn://10.0.0.236/trunk@50157 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 22:18:13 +00:00
sspitzer%netscape.com
eb6f6392d7 add new line to the end of the file.
git-svn-id: svn://10.0.0.236/trunk@50156 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 22:05:53 +00:00
slamm%netscape.com
7d127002f9 Fix solaris build bustage. The shell does not like {} command grouping. Use () instead.
git-svn-id: svn://10.0.0.236/trunk@50155 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 22:04:04 +00:00
rods%netscape.com
4d74acf338 minor adjustment for focus
git-svn-id: svn://10.0.0.236/trunk@50154 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:58:14 +00:00
rods%netscape.com
4c6b85103e Addtional changes for form padding and borders
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50153 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:54:13 +00:00
warren%netscape.com
fc64e1c69b Added 'Bloaty' refcounting and memory bloat statistics code
git-svn-id: svn://10.0.0.236/trunk@50152 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:50:20 +00:00
mcafee%netscape.com
c322512ff3 Adding leaky to the linux/intel build. a=ramiro, r=slamm
git-svn-id: svn://10.0.0.236/trunk@50151 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:48:05 +00:00
rods%netscape.com
3b7075a69b Changed the border and padding for all the form control frames to be as compatible with Nav Quirks as we can
added rules for form controls inside of tables
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50150 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:47:54 +00:00
rods%netscape.com
3848b18fe7 Added the COMPAre macro for comparing sizes with NavQuirks
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50149 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:46:31 +00:00
neeti%netscape.com
b0bb720dd1 updating status.
git-svn-id: svn://10.0.0.236/trunk@50148 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:44:37 +00:00
valeski%netscape.com
5735cf240f not in build. test app for makeabsolute performance
git-svn-id: svn://10.0.0.236/trunk@50147 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:43:49 +00:00
rods%netscape.com
32093a83c6 Changed the way the list figures out how high a single item is, it now subtracts out the padding & border instead of just the border
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50146 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:39:50 +00:00
rods%netscape.com
f291b097d5 Removed code where standard mode was incorrectly subtracting border size
r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50145 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:37:02 +00:00
slamm%netscape.com
1c08cd13d9 Quit when cvs has an error. Previously it kept going. Bug #15750. r=mcafee. Also change default module from SeaMonkeyEditor to SeaMonkeyAll.
git-svn-id: svn://10.0.0.236/trunk@50144 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:24:17 +00:00
rods%netscape.com
d66d5defc6 Added macro to help in figuring Nav Quirks default size for all
controls ifdef for just me. Renamed aMetrics to aDesiredSize
Did some clean. Nav Quirks obeys padding and not border.
Reworked how computed size is used r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50143 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:09:47 +00:00
rods%netscape.com
e6f28ca7ba Added macro to help in figuring Nav Quirks default size for all
controls ifdef for just me r=kmcclusk


git-svn-id: svn://10.0.0.236/trunk@50142 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:07:38 +00:00
rods%netscape.com
e414c28907 Added macro to help in figuring Nav Quirks default size for all controls r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50141 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:04:52 +00:00
dp%netscape.com
c94e8e9c8e Removing ifdef DEBUG_dp.
git-svn-id: svn://10.0.0.236/trunk@50140 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:03:48 +00:00
endico%mozilla.org
a566a33989 fixed html error so the grey text search box will be aligned at top
git-svn-id: svn://10.0.0.236/trunk@50139 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:02:59 +00:00
pinkerton%netscape.com
1452789bbd correctly determine when the image has changed sizes to avoid causing unnecessary reflows. now comparing twips to twips instead of twips to pixels. part of fix for bug #15722 (r=evaughan).
git-svn-id: svn://10.0.0.236/trunk@50138 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:02:58 +00:00
dp%netscape.com
cc675f4462 Instrumentation to detect leaks of BrowserInstance. r=don
git-svn-id: svn://10.0.0.236/trunk@50136 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 21:01:16 +00:00
sfraser%netscape.com
b591bc9b02 Fix for bug 15749; passing null strings to nsFileSpec routines was doing bad things, like strlen(NULL). r=dougt
git-svn-id: svn://10.0.0.236/trunk@50135 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:57:21 +00:00
norris%netscape.com
15352050f2 Enable URI checks for web JavaScript.
Fixes bug 11462 "Need checks for setting URLs"
Reviewed by mstoltz.


git-svn-id: svn://10.0.0.236/trunk@50134 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:56:49 +00:00
dp%netscape.com
27bf7b0e38 Fixed webshell leak caused by session history entry circular
reference. r=radha


git-svn-id: svn://10.0.0.236/trunk@50133 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:55:14 +00:00
kmcclusk%netscape.com
15925c0587 bug=15184 Made <input type=password> a form submitter. Hitting return in a password field
will now submit the form. r=rods@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50132 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:54:42 +00:00
rods%netscape.com
6fb1b8e0d6 set the padding to 1 related to bug# 15314
git-svn-id: svn://10.0.0.236/trunk@50131 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:53:23 +00:00
rhp%netscape.com
f536f04be7 Changes for bug #13098 - Reviewer: jefft
git-svn-id: svn://10.0.0.236/trunk@50130 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:53:06 +00:00
pavlov%netscape.com
46858a98ee unif 0 synchronous drawing on linux and add some checks to make sure we are visible and don't dump paint events when we are going to ignore them r=akkana
git-svn-id: svn://10.0.0.236/trunk@50128 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:49:11 +00:00
kipp%netscape.com
759b90d985 Whoops, backed out last check - wasn't supposed to land it
git-svn-id: svn://10.0.0.236/trunk@50127 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:46:50 +00:00
kipp%netscape.com
3b5f2c1e21 r=kin; Added in ctor/dtor counts
git-svn-id: svn://10.0.0.236/trunk@50126 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:45:56 +00:00
rogerl%netscape.com
e143bf497c Fixed build failures - these files are NOT part of the seamonkey build.
git-svn-id: svn://10.0.0.236/trunk@50125 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:45:27 +00:00
rogerl%netscape.com
750861810b Fixed error reporting to not smack the source line with a zero, but use
copyN instead - things were failing when very last line of input had an
error and didn't end with '\n'. r=mccabe


git-svn-id: svn://10.0.0.236/trunk@50124 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:44:40 +00:00
dcone%netscape.com
c0cc4a7df7 Took out a pure virtual function CreateRenderingContext() that was declared in the interface
git-svn-id: svn://10.0.0.236/trunk@50123 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:43:03 +00:00
rogerl%netscape.com
df73818e4c Fixed build warnings by removing macros with '{..}'.
Made str_escape available for jsfile.
r=mccabe


git-svn-id: svn://10.0.0.236/trunk@50122 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:42:20 +00:00
rogerl%netscape.com
7ba994995c Making str_escape available for jsfile use. r=mccabe.
git-svn-id: svn://10.0.0.236/trunk@50121 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:41:15 +00:00
rogerl%netscape.com
cfd4889e52 Bug #12168. Catch new Array(NaN). r=mccabe.
git-svn-id: svn://10.0.0.236/trunk@50120 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:40:17 +00:00
dcone%netscape.com
09be733a85 Fixed some warnings
git-svn-id: svn://10.0.0.236/trunk@50119 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:40:00 +00:00
troy%netscape.com
70a3da2b30 Space reductions, r=karnaze@netscape.com
Eliminated one data member, moved one to flag frame state, and changed mBorderEdges
to be heap allocated (only for collapsing border model)


git-svn-id: svn://10.0.0.236/trunk@50117 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:38:50 +00:00
alecf%netscape.com
3f1f724756 add myself to fix DLLs
git-svn-id: svn://10.0.0.236/trunk@50116 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 20:15:58 +00:00
waterson%netscape.com
76ea87ea04 Bug 15683. Hack to get the tree open. Don't SetParent(nsnull), <option> elements do funky stuff when the <option> is inside a <xul:template>. r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@50114 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 19:32:39 +00:00
norris%netscape.com
9754a010ca Fix 15711 Can't call java.lang.Class methods from JS
git-svn-id: svn://10.0.0.236/trunk@50112 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 18:27:21 +00:00
norris%netscape.com
5ca75e8020 Subject:
Re: NPL vs. MPL
       Date:
            Wed, 06 Oct 1999 18:30:34 -0400
      From:
            "Ian D. Stewart" <idstewart@softhome.net>
        To:
            Norris Boyd <norris@netscape.com>
 References:
            1 , 2 , 3




Norris Boyd wrote:

  Great. So I'd like to change this copyright text

  /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset:
  4 -*-
   *
   * The contents of this file are subject to the Mozilla Public License
   * Version 1.0 (the "MozPL"); you may not use this file except in
   * compliance with the MozPL.  You may obtain a copy of the MozPL at
   * http://www.mozilla.org/NPL/
   *
   * Software distributed under the MozPL is distributed on an "AS IS"
  basis,
   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
  MozPL
   * for the specific language governing rights and limitations under the
   * MozPL.
   *
   * The Initial Developer of this code under the MozPL is Ian D. Stewart.

   * Portions created by Ian D. Stewart are Copyright (C) 1998, 1999
   * Ian D. Stewart.
   * All Rights Reserved.
   */

  to this:

  /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset:
  4 -*-
   *
   * The contents of this file are subject to the Netscape Public
   * License Version 1.1 (the "License"); you may not use this file
   * except in compliance with the License. You may obtain a copy of
   * the License at http://www.mozilla.org/NPL/
   *
   * Software distributed under the License is distributed on an "AS
   * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express oqr
   * implied. See the License for the specific language governing
   * rights and limitations under the License.
   *
   * The Original Code is ListenerCollection, released
   * May 15, 1998.
   *
   * The Initial Developer of the Original Code is Ian D. Stewart.
   * Portions created by Ian D. Stewart are Copyright (C) 1998, 1999
   * Ian D. Stewart.
   * Rights Reserved.
   *
   * Contributor(s):
   * Ian D. Stewart
   *
   * Alternatively, the contents of this file may be used under the
   * terms of the GNU Public License (the "GPL"), in which case the
   * provisions of the GPL are applicable instead of those above.
   * If you wish to allow use of your version of this file only
   * under the terms of the GPL and not to allow others to use your
   * version of this file under the NPL, indicate your decision by
   * deleting the provisions above and replace them with the notice
   * and other provisions required by the GPL.  If you do not delete
   * the provisions above, a recipient may use your version of this
   * file under either the NPL or the GPL.
   */

  Can you give me your approval for this change?

Make it so.


Ian


git-svn-id: svn://10.0.0.236/trunk@50111 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 16:57:01 +00:00
dcone%netscape.com
75b915c855 Turned on the background tiling optimization.. Reviewed By rods
git-svn-id: svn://10.0.0.236/trunk@50110 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:57:32 +00:00
bienvenu%netscape.com
82ee650dbf try not to leak all environments r=davidmc
git-svn-id: svn://10.0.0.236/trunk@50109 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:45:26 +00:00
bienvenu%netscape.com
879bafb0b6 try not to leak all factories r=davidmc
git-svn-id: svn://10.0.0.236/trunk@50108 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:43:44 +00:00
bienvenu%netscape.com
fd723643f2 fix mork factory r=mscott 12326, also fix some memory leaks
git-svn-id: svn://10.0.0.236/trunk@50107 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:30:44 +00:00
bienvenu%netscape.com
5dbbb4bb89 fix mork factory r=mscott 12326, fix ref count logging
git-svn-id: svn://10.0.0.236/trunk@50106 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:29:45 +00:00
bienvenu%netscape.com
28bab47569 fix mork factory r=mscott 12326
git-svn-id: svn://10.0.0.236/trunk@50104 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:28:54 +00:00
bienvenu%netscape.com
391cdf28f4 fix mork factory r=waterson 12326
git-svn-id: svn://10.0.0.236/trunk@50103 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:27:50 +00:00
jefft%netscape.com
a2221d154c fixed bug 10801 -- [Featuure] Save Messages, bug 14794 - message sent from unsent folder display as raw message; we need to pay attention to where we want to save the message as template, if the message goes to the local mail folder we have to add the dummy envelope header plus the x mozilla status lines; when sending unsent messages we need to set from/sender information to pass the sanity check at the send time; reviewed by rhp
git-svn-id: svn://10.0.0.236/trunk@50102 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:27:11 +00:00
bienvenu%netscape.com
571b348058 use nsIModule for Mork r=mscott no bug
git-svn-id: svn://10.0.0.236/trunk@50101 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 14:26:15 +00:00
rods%netscape.com
af37c61c55 removed unused result to remove warning r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@50100 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 13:47:43 +00:00
waterson%netscape.com
f958803974 Bug 13910. Make sure to update element map for XUL (as well as HTML) elements when changing 'id' or 'ref' attributes.
git-svn-id: svn://10.0.0.236/trunk@50099 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 10:09:17 +00:00
waterson%netscape.com
4bac26a215 Bug 13910. Make sure to add elements to the map by 'ref' attribute, as well.
git-svn-id: svn://10.0.0.236/trunk@50098 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 10:08:14 +00:00
sspitzer%netscape.com
834be86386 more clean up for #15402. disable the rename, delete and start buttons
if no profile is selected, and enable them when a profile is selected.
turn dumps into alerts to tell the user why something failed.


git-svn-id: svn://10.0.0.236/trunk@50097 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 09:41:33 +00:00
sspitzer%netscape.com
01e635a3a6 last touches to finally get Cancel (from the Create Profile Wizard) and Exit
(from the Profile Manager) to work properly.


git-svn-id: svn://10.0.0.236/trunk@50096 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 09:15:25 +00:00
sspitzer%netscape.com
4d9fe202fe fix my comment
git-svn-id: svn://10.0.0.236/trunk@50095 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 09:12:27 +00:00
sspitzer%netscape.com
faac109667 minor cleanup of the profile js. #15402
git-svn-id: svn://10.0.0.236/trunk@50094 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 09:03:07 +00:00
sspitzer%netscape.com
7ef56b5288 minor tweak on the way to getting Cancel / Exit to behave properly in the
Profile Manager UI.  they both set the current profile to "".


git-svn-id: svn://10.0.0.236/trunk@50093 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 09:01:23 +00:00
sspitzer%netscape.com
bde00ceef7 add documentation and fixes from Ben Goodger <rgoodger@ihug.co.nz>
also add the mozilla license.  r=sspitzer.


git-svn-id: svn://10.0.0.236/trunk@50092 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 08:47:16 +00:00
rickg%netscape.com
ac6276e5cd fixed leak using patch from beard; verified in purify. r=rgess; bug=15751
git-svn-id: svn://10.0.0.236/trunk@50090 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 07:22:57 +00:00
sspitzer%netscape.com
13d46b9f86 more fixes for #15402, general cleanup of the profile code. Close button is now Exit. remove GetSingleProfile(), use GetFirstProfile() instead. Add ForgetCurrentProfile() for use in getting cancel to work properly.
git-svn-id: svn://10.0.0.236/trunk@50089 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 06:57:38 +00:00
sspitzer%netscape.com
c0b38598d6 GetSingleProfile() is going away. use GetFirstProfile now.
git-svn-id: svn://10.0.0.236/trunk@50088 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 06:55:59 +00:00
sspitzer%netscape.com
c959c10bfc fix for #15735, r=waterson. fix the JS error by re-writing the C style
fancy logic.


git-svn-id: svn://10.0.0.236/trunk@50087 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 06:37:32 +00:00
warren%netscape.com
1e7a6bdb4d Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@50086 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 04:10:12 +00:00
neeti%netscape.com
7425479597 Converted to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@50085 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 03:39:36 +00:00
rhp%netscape.com
9cdcbef4af Fixing a test program makefile. THIS IS NOT PART OF ANY BUILD!
git-svn-id: svn://10.0.0.236/trunk@50084 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 03:39:02 +00:00
rhp%netscape.com
9eb3c904c6 Fixing a test program. THIS IS NOT PART OF ANY BUILD!
git-svn-id: svn://10.0.0.236/trunk@50083 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 03:38:42 +00:00
sspitzer%netscape.com
94a677a8af fix for bug #15402. exit if we get past the profile manager without a current profile. this can happen.
git-svn-id: svn://10.0.0.236/trunk@50082 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 03:10:18 +00:00
beard%netscape.com
9d922a368f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50081 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 03:03:36 +00:00
morse%netscape.com
1424e84e14 fix bug 15721, cookies not persistent, r=jar nsAppRunner.cpp
git-svn-id: svn://10.0.0.236/trunk@50080 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 02:48:27 +00:00
ramiro%netscape.com
f2333c7dab Added mozilla/tools/leaky to SeaMonkeyCore. r=leaf.
git-svn-id: svn://10.0.0.236/trunk@50079 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 02:39:56 +00:00
beard%netscape.com
a57d0470d2 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@50078 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 02:11:44 +00:00
varada%netscape.com
dc0146ae24 have made error dialog box systemmodal bug #15339
git-svn-id: svn://10.0.0.236/trunk@50077 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 02:07:23 +00:00
rjc%netscape.com
1978802be8 Add in CTOR/DTOR stuff for leak detection. Review: hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@50076 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:51:30 +00:00
kipp%netscape.com
51e85831e8 r=peterl; fixed a regression that I regrettably caused; had the test for success backwards
git-svn-id: svn://10.0.0.236/trunk@50075 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:44:16 +00:00
varada%netscape.com
0a87564964 %Root% is a global variable that contains the value of the current working directory - so we can use it in an inifile to resolve the relative root locations
git-svn-id: svn://10.0.0.236/trunk@50074 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:39:34 +00:00
harishd%netscape.com
946d742a4d In reference to bug # 12415
Added assertion ( per warrne's request ) to detect null char occasionally appearing in the input
stream provided by necko
R=pollmann


git-svn-id: svn://10.0.0.236/trunk@50073 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:30:56 +00:00
akkana%netscape.com
bc8b6d116e 13750,13753,14075,15293,13873,12551:
- Rewrite wrapping logic for plaintext output sink,
  and run all output through the wrapping/formatting Write method
  (which now has logic to determine when we should be wrapping).
- Handle blockquote type=cite mail quotes.
- Write several new regression tests for plaintext output bugs,
  and include those tests and their expected output into the
  automated output test.
r=sfraser,harishd


git-svn-id: svn://10.0.0.236/trunk@50072 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:10:32 +00:00
mcafee%netscape.com
0a81ee7839 Cleaning up whitespace so I can edit this file with a clue.
git-svn-id: svn://10.0.0.236/trunk@50071 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:07:41 +00:00
slamm%netscape.com
52995d7ec4 Remove call to sidebarOverlayInit(). This is already called in sidebarOverlay.js when sidebarOverlay.xul loads. Fixes bug #15719, 'Sidebar panels get added twice'. r=waterson.
git-svn-id: svn://10.0.0.236/trunk@50070 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 01:03:19 +00:00
sspitzer%netscape.com
deecdfd350 add an alert if there is no profile name. bug #15402
git-svn-id: svn://10.0.0.236/trunk@50069 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:55:51 +00:00
kipp%netscape.com
5fc1175eb9 Fixed a memory leak in the sizeof-handler logic (blush)
git-svn-id: svn://10.0.0.236/trunk@50068 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:49:40 +00:00
harishd%netscape.com
b84b2685ff Mapping nsDTDMode to eParseMode (in mozilla/htmlparser/src/nsIDTD.h)
R=pollmann


git-svn-id: svn://10.0.0.236/trunk@50067 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:35:16 +00:00
kipp%netscape.com
99aaa55232 Updated SizeOf methods for html content objects to be more accurate; implemented MOZ_DECL_CTOR_COUNTER for all html content objects
git-svn-id: svn://10.0.0.236/trunk@50066 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:35:04 +00:00
kipp%netscape.com
4e6e50c103 Tweaked call of log_release
git-svn-id: svn://10.0.0.236/trunk@50065 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:32:25 +00:00
kipp%netscape.com
b17c92e839 Added some atoms to support SizeOf metrics
git-svn-id: svn://10.0.0.236/trunk@50064 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:31:41 +00:00
kipp%netscape.com
d5ce80751a Work around a crash by stubbing out some pointers that are weak links that are not to be used during shutdown
git-svn-id: svn://10.0.0.236/trunk@50063 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:31:21 +00:00
kipp%netscape.com
b87e5bb00d Don't forget to remove the observer when dtor is running (fixes a sometimes crash in viewer); also fixed a memory leak of a style context
git-svn-id: svn://10.0.0.236/trunk@50062 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:30:20 +00:00
kipp%netscape.com
a72c992c6f Eliminate a memory leak of a style context (which ends up leaking all the stylecontexts upward)
git-svn-id: svn://10.0.0.236/trunk@50061 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:29:28 +00:00
harishd%netscape.com
080879ab10 Bug 13647
In nsXIFConverter::BeginContainer(const nsString& aTag)
newline was getting appended by default at the end of a tag.
Setting the default value to PR_FALSE to avoid newline insertion
at the end of a tag.
R=akkana


git-svn-id: svn://10.0.0.236/trunk@50060 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:28:58 +00:00
kipp%netscape.com
78b500998c Eliminate a warning
git-svn-id: svn://10.0.0.236/trunk@50059 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:28:41 +00:00
sspitzer%netscape.com
7097d190f2 bulletproofing for bug #15728, r=alecf
if there are no panels, just return.


git-svn-id: svn://10.0.0.236/trunk@50058 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:28:24 +00:00
sspitzer%netscape.com
f49a6fc3a9 workaround fix for #15728. r=alecf. prevent crashing when I click on the tab in the create profile wizard.
git-svn-id: svn://10.0.0.236/trunk@50057 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:24:44 +00:00
varada%netscape.com
9299843cda change customization to configs directory in checklist.ini in some files
git-svn-id: svn://10.0.0.236/trunk@50056 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:15:35 +00:00
varada%netscape.com
0925de79f3 changed customizations directory to Configs in wizardmachine.cp as well as in the checklist.ini
git-svn-id: svn://10.0.0.236/trunk@50055 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-07 00:11:01 +00:00
rogerl%netscape.com
b1873070a7 More errors-as-exceptions stuff
git-svn-id: svn://10.0.0.236/trunk@50054 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:55:33 +00:00
mcafee%netscape.com
5b962a0f3c Adding option for modeless pref dialog, ifdef'd off by default. r=akkana
git-svn-id: svn://10.0.0.236/trunk@50053 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:54:47 +00:00
sgehani%netscape.com
6b11a987a4 *** NOT PART OF BUILD ***
DEBUG symbolic constant renamed to MIW_DEBUG.


git-svn-id: svn://10.0.0.236/trunk@50052 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:52:08 +00:00
sgehani%netscape.com
d016fe35cc *** NOT PART OF BUILD ***
DEBUG symbolic constant changed from DEBUG to MIW_DEBUG.


git-svn-id: svn://10.0.0.236/trunk@50051 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:51:14 +00:00
sgehani%netscape.com
be68b07064 *** NOT PART OF BUILD ***
Cleanup of inflation routines.


git-svn-id: svn://10.0.0.236/trunk@50050 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:50:10 +00:00
sgehani%netscape.com
c45dd4d212 *** NOT PART OF BUILD ***
Disable back button on welcome window preventing user from returning to the license window.


git-svn-id: svn://10.0.0.236/trunk@50049 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:49:16 +00:00
sgehani%netscape.com
3600061916 *** NOT PART OF BUILD ***
Disk space checking is now accurate for "Custom Install".


git-svn-id: svn://10.0.0.236/trunk@50048 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:48:09 +00:00
sgehani%netscape.com
f7d9ac0919 *** NOT PART OF BUILD ***
Detect and don't download pre-existing .xpi files. Fixes bug 15695.


git-svn-id: svn://10.0.0.236/trunk@50047 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:47:02 +00:00
sgehani%netscape.com
542eeddaf1 *** NOT PART OF BUILD ***
Mouse over component now highlights and updates long description: fixes bug 14322.


git-svn-id: svn://10.0.0.236/trunk@50046 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:45:49 +00:00
harishd%netscape.com
0b8b118754 Cleaned up warnings. R=rickg
git-svn-id: svn://10.0.0.236/trunk@50044 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:24:28 +00:00
sspitzer%netscape.com
4c88fb3ec4 whoops, checked in dos formatted text files from a unix box. ran dos2unix on them to fix it. part of fix for #15402. these new files come from Ben Goodger <rgoodger@ihug.co.nz> r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@50042 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:19:53 +00:00
troy%netscape.com
75bf4aa54d b=11971, r=peterl@netscape,karnaze@netscape.com
Changed ContentInserted() to use GetFrameFor() so we target the table cell's
area frame


git-svn-id: svn://10.0.0.236/trunk@50041 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:17:28 +00:00
pavlov%netscape.com
88babc4d7b final step to make menus dismiss on unix r=hyatt
git-svn-id: svn://10.0.0.236/trunk@50040 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 23:00:53 +00:00
akkana%netscape.com
ada22baf14 15712: Fix gtk double-click events. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@50039 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 22:57:00 +00:00
vidur%netscape.com
d46c14654b Added window.scrollBy/scrollTo/scrollX/scrollY. Scopus bug 361046. R=troy
git-svn-id: svn://10.0.0.236/trunk@50038 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 22:07:42 +00:00
sspitzer%netscape.com
578092310a remove references to xul.css, as it is no longer needed.
git-svn-id: svn://10.0.0.236/trunk@50037 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 22:07:29 +00:00
troy%netscape.com
032742ad4c Moved space manager to block frame and changed it the space manager is
temporary only during the reflow process
r=kipp@netscape.com


git-svn-id: svn://10.0.0.236/trunk@50036 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 22:05:23 +00:00
kmcclusk%netscape.com
7c76fd51f5 r=rods; bug=15478; Added WS_EX_TOOLWINDOW extended style for popup windows
to prevent popups from creating empty task bar buttons.
bug=6061; NS_DISPLAYCHANGE event is now generated when the display depth changes
on WIN32.


git-svn-id: svn://10.0.0.236/trunk@50035 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:54:49 +00:00
norris%netscape.com
48f3a0603c More license wrangling: fix the release date (1999, not 1998).
git-svn-id: svn://10.0.0.236/trunk@50031 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:52:17 +00:00
sspitzer%netscape.com
20945ad3ee remove unused code, now that CreateNewProfile() takes two arguments
git-svn-id: svn://10.0.0.236/trunk@50030 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:52:02 +00:00
rpotts%netscape.com
b286c0c010 Removed dead code inside of #if 0 blocks...
git-svn-id: svn://10.0.0.236/trunk@50026 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:43:21 +00:00
sspitzer%netscape.com
9c68bc61cc fix the create profile wizard ui.
this work was done by the almighty Ben Goodger <rgoodger@ihug.co.nz>
r=sspitzer
I did a little clean up, and made it so show the native file path


git-svn-id: svn://10.0.0.236/trunk@50025 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:36:59 +00:00
jband%netscape.com
cd534a023e - the rest of the fix for bug 14738 - detect JSErrors with
JSErrorReports when thrown as exceptions. Extract JSErrorReport
and convert to an xpcexception. This restores functionality that
was whacked when JS errors-as-exceptions was enabled in the JS
engine.
- add conversion support for string-with-length as part of array
support mentioned in bug 13420. All the array stuff is basically
in with minimal testcases. More comprehensive tests need to be
written to verify and tune the code.
- fix a broken #undef
- switch to using PR_Alloc/PR_Free internally in nsjsid where we
were using new/delete before. This is prompted by warren's change
to nsID::ToString that uses PR_Alloc were before it used new.
This fixes an alloc/delete mismatch detected by Purify.
r=mccabe


git-svn-id: svn://10.0.0.236/trunk@50024 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:35:27 +00:00
sspitzer%netscape.com
ac743ecce8 fix for #15197 (and a whole bunch of duplicates).
fix by vidur, r=rogerl


git-svn-id: svn://10.0.0.236/trunk@50023 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:31:34 +00:00
neeti%netscape.com
68ccc3d94a updating status. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@50022 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:13:38 +00:00
norris%netscape.com
cedec739aa Fix another portion of 13192 Mozilla is "oversecured" and does not allow access to documents in the same domain
Reviewed by vidur.


git-svn-id: svn://10.0.0.236/trunk@50021 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:13:37 +00:00
norris%netscape.com
cd59845c25 Fix 15618 [CRASH] JS assertion on table regression test
Reviewed by rogerl@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@50020 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:12:21 +00:00
waterson%netscape.com
84fb96cb65 Bug 13910. Fix flash panel style rules, XUL, and JS so that flashes start to display again. r=slamm.
git-svn-id: svn://10.0.0.236/trunk@50019 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:08:50 +00:00
neeti%netscape.com
6b2d99d685 updating status. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@50018 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:07:30 +00:00
beard%netscape.com
e6c61c5ffe added EcmaError.java, NativeError.java
git-svn-id: svn://10.0.0.236/trunk@50017 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:07:04 +00:00
neeti%netscape.com
b84f7a78de updating status. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@50016 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 21:05:25 +00:00
neeti%netscape.com
f6d3593b2e updating status. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@50015 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:58:41 +00:00
sspitzer%netscape.com
d6ec571916 make sure we save the prefs when we exit. will fix a bunch of problems, including #15705. r=alecf, a=leaf
git-svn-id: svn://10.0.0.236/trunk@50014 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:52:50 +00:00
gagan%netscape.com
a378b87978 Partial checkins for fixing bug # 10333. Added the nsIStatusCodeEventSink for conveying status codes to the UI thread from the socket ones. r=mscott,a=don
git-svn-id: svn://10.0.0.236/trunk@50013 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:50:12 +00:00
norris%netscape.com
734f2fb55c Update contributors, add some license text.
git-svn-id: svn://10.0.0.236/trunk@50012 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:50:04 +00:00
cbegle%netscape.com
4cdb11b194 tests for javascript errors as exceptions, a feature that was recently
added to the javascript engine.

not part of the build.


git-svn-id: svn://10.0.0.236/trunk@50011 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:45:44 +00:00
gagan%netscape.com
7258a74fc0 added files: mozilla/netwerk/base/public/nsIStatusCodeEventSink.idl
git-svn-id: svn://10.0.0.236/trunk@50010 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:44:23 +00:00
terry%mozilla.org
944a16f933 Wow. Turns out this stuff would only handle 10 products. Did the
cheap fix that lets it handle 1000 products.


git-svn-id: svn://10.0.0.236/trunk@50009 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:37:37 +00:00
neeti%netscape.com
3b3d0e4e1b updating status. Not part of the build
git-svn-id: svn://10.0.0.236/trunk@50008 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:36:28 +00:00
vidur%netscape.com
f614c92aba Added document.width/document.height to nsIDOMNSDocument. Bug 961. R: troy
git-svn-id: svn://10.0.0.236/trunk@50007 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:33:58 +00:00
vidur%netscape.com
e16887dc96 Implemented document.width/document.height by looking at the dimensions of the view of the frame of the document element. Bug 961. R: troy
git-svn-id: svn://10.0.0.236/trunk@50006 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:32:49 +00:00
putterman%netscape.com
12980882c5 Added constructor/destructor counting macros for various mailnews
classes.  reviewed by bienvenu.  no bug.


git-svn-id: svn://10.0.0.236/trunk@50005 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:32:25 +00:00
buster%netscape.com
1e0b48570c fixed some space leaks reported by kipp. no bug #, r=tague
added some assertions and error checking to nsEditor::Do, no bug #, r=kin
fixed bug 14898 (implemented type-in state for any context), r=jfrancis


git-svn-id: svn://10.0.0.236/trunk@50004 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:27:41 +00:00
ramiro%netscape.com
3412f4f935 Take myself out of the "you suck" list. r=dp
git-svn-id: svn://10.0.0.236/trunk@50003 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:22:23 +00:00
mscott%netscape.com
9baa358bf2 No Bug #.......removing an obsolete file that isn't part of the build
r=valeski


git-svn-id: svn://10.0.0.236/trunk@50002 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:21:35 +00:00
bienvenu%netscape.com
9b0345f34f fix leak of accounts, mail session r=scottip bug 000
git-svn-id: svn://10.0.0.236/trunk@50000 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 20:00:27 +00:00
jfrancis%netscape.com
0209785bbb revised rules system api to include "handled" parameter and ceased to overload the meaning of the "cancel" parameter; added TypedText() method to editor, editorshell, and logging, so that logging will work properly with typing; coallesce deletions for undo purposes r=buster@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49999 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:34:09 +00:00
srinivas%netscape.com
7ef083b590 Backed out previous checkin.
git-svn-id: svn://10.0.0.236/trunk@49996 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:33:52 +00:00
srinivas%netscape.com
97336400bc Previous change backed out.
git-svn-id: svn://10.0.0.236/trunk@49995 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:31:17 +00:00
srinivas%netscape.com
a633fa30b6 Backout previous change.
git-svn-id: svn://10.0.0.236/trunk@49994 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:30:01 +00:00
dmose%mozilla.org
52a561a9c0 removing obsolete doc file; a=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@49993 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:17:56 +00:00
terry%mozilla.org
45c9c2b5a6 Missing some whitespace that may be vital.
git-svn-id: svn://10.0.0.236/trunk@49991 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:07:38 +00:00
srinivas%netscape.com
ea30288c1f Fixed bug in previous checkin - initialize variables before use.
git-svn-id: svn://10.0.0.236/trunk@49990 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:07:19 +00:00
harishd%netscape.com
77f9635cce Fix for Bugs
13640, 13736 - Memory leaks - R=rickg
1312 - Hooked up XHTML DOCTYPE - R=rickg
7590 - Prematuredly closing <SCRIPT> on seeing </SCRIPTERR>
2749 - Strict comment handling for noquirks mode - R=rickg
14955 - LEGEND inside FIELDSET was causing infinite looping - R=rickg,pollmann
14952 - LABEL got closed on seeing SPAN (LABEL can contain SPAN ) - R=pollmann
15381 - comment handling for XIF and HTML - R=akkana
15346 - Stray end tag caused loading blank document - R=rickg,pollmann


git-svn-id: svn://10.0.0.236/trunk@49988 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:04:29 +00:00
neeti%netscape.com
3963f45810 updating status
git-svn-id: svn://10.0.0.236/trunk@49987 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 19:01:51 +00:00
mgleeson1%netscape.com
210400fa8f r=waterson enums used in structs must be public members for HPUX
git-svn-id: svn://10.0.0.236/trunk@49986 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:56:03 +00:00
mgleeson1%netscape.com
9d0be77836 r=kipp removed unnecessary include for dlfcn.h
git-svn-id: svn://10.0.0.236/trunk@49985 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:53:41 +00:00
waterson%netscape.com
223352ad77 Comment out '_dead' renaming to get context menus working again. r=law
git-svn-id: svn://10.0.0.236/trunk@49984 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:53:32 +00:00
srinivas%netscape.com
852ba0f2aa Fixed typo in previous checkin. Also, the correct bug # is 15680.
git-svn-id: svn://10.0.0.236/trunk@49983 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:49:27 +00:00
rhp%netscape.com
58d7842b20 Changes for Bug #13512 - Reviewer: Bienvenu
git-svn-id: svn://10.0.0.236/trunk@49982 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:35:16 +00:00
srinivas%netscape.com
bf992aac1f Add the SO_BROADCAST option. Bug #365862.
git-svn-id: svn://10.0.0.236/trunk@49981 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:31:22 +00:00
bienvenu%netscape.com
ba3a9ad68c use nsIModule for factory, r=rhp bug 000
git-svn-id: svn://10.0.0.236/trunk@49980 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 18:30:35 +00:00
norris%netscape.com
522636a5de Make sure creation of class loader is inside a try block to handle security exceptions.
git-svn-id: svn://10.0.0.236/trunk@49979 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 17:39:48 +00:00
valeski%netscape.com
6f9ef9e6d4 r=warren, 15457. Added file extension attribute to URL implementations
git-svn-id: svn://10.0.0.236/trunk@49977 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 14:36:22 +00:00
pavlov%netscape.com
a1c9b6dcaa get CaptureRollupEvents working properly on unix. Fix focus problem that was being caused by grabbing the focus via SetFocus(). Fix potential crash in OnRealize(). fixes 15169, 15537, 15470 r=rods (for focus parts) r=blizzard@redhat.com (for all of it)
git-svn-id: svn://10.0.0.236/trunk@49974 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 14:04:05 +00:00
pavlov%netscape.com
743ccfad5b ifdef out the call to CaptureMouse since it is no longer needed r=rods
git-svn-id: svn://10.0.0.236/trunk@49973 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 13:36:39 +00:00
warren%netscape.com
055d89c0e3 Updating xpcom registry usage as per edburns@acm.org and dp's suggestions.
git-svn-id: svn://10.0.0.236/trunk@49972 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 09:57:50 +00:00
brendan%mozilla.org
3188df57a2 Fix Object.prototype.toSource so it parenthesizes outermost-toSource literals for eval roundtrips.
git-svn-id: svn://10.0.0.236/trunk@49971 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 09:09:31 +00:00
warren%netscape.com
bf35f71ce1 Fixed nsCOMPtr bustage.
git-svn-id: svn://10.0.0.236/trunk@49970 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 09:03:43 +00:00
warren%netscape.com
49e47e3066 Fixed build warnings.
git-svn-id: svn://10.0.0.236/trunk@49969 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:51:48 +00:00
warren%netscape.com
30cf63de80 Added AsyncOpen to nsIChannel for URL dispatching. Added ContentLength to InputStreamChannel. (r=rpotts,valeski)
git-svn-id: svn://10.0.0.236/trunk@49968 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:26:01 +00:00
dougt%netscape.com
3e9e75feec Fix for 11812. Reordered the clean up so that deletion of the "real" object
happens after NS_RELEASE of the proxy object.  This is a test program.

reviewed by gagan.


git-svn-id: svn://10.0.0.236/trunk@49967 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:17:04 +00:00
warren%netscape.com
ccc05991a3 added files: mozilla/netwerk/base/public/nsIFileSystem.idl
git-svn-id: svn://10.0.0.236/trunk@49966 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 08:16:48 +00:00
gagan%netscape.com
c39e2405d9 An event sink to transfer status codes to a consumer of necko.
This is not in the build as yet.


git-svn-id: svn://10.0.0.236/trunk@49965 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 07:49:32 +00:00
mcafee%netscape.com
478e94b19b Removing unnecessary label rule that was making prefs look like crap. Thanks to pavlov for this fix. r=pavlov,myself
git-svn-id: svn://10.0.0.236/trunk@49964 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 07:45:05 +00:00
warren%netscape.com
541b381b71 Added nsIFileSystem interface for new file transport implementation.
git-svn-id: svn://10.0.0.236/trunk@49963 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 07:27:22 +00:00
ftang%netscape.com
0851c72b83 fix bug 15647 r=sdagley. Swap progid base between ENCODER/DECODER
git-svn-id: svn://10.0.0.236/trunk@49962 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 07:11:40 +00:00
pavlov%netscape.com
644f5864a9 initial work on unix installer
git-svn-id: svn://10.0.0.236/trunk@49961 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:59:20 +00:00
waterson%netscape.com
c4175bcb0e Fix incorrect use of CBufDescriptor that was causing persistence to flake.
git-svn-id: svn://10.0.0.236/trunk@49960 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:42:27 +00:00
waterson%netscape.com
58cd4c0ef8 Suppress assertions with context menus for now.
git-svn-id: svn://10.0.0.236/trunk@49959 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:40:06 +00:00
brendan%mozilla.org
a17b679975 Top-level ToSource function for primitive type roundtrips.
git-svn-id: svn://10.0.0.236/trunk@49958 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:37:55 +00:00
brendan%mozilla.org
e8d09fd3a6 Fix two multi-threaded GC-rooting bugs:
- js_NewFunction wasn't initializing (clearing) JSFunction members before it
  linked the JSFunction to a JSObject that the GC could reach from a root.
- Make sure frame.scopeChain is cleared before linking frame via cx->fp, even
  though we set frame.scopeChain to some object later (another signal that we
  should rework js_Invoke to inline it and otherwise optimize it).


git-svn-id: svn://10.0.0.236/trunk@49957 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:29:43 +00:00
mscott%netscape.com
ccf2994b95 (not part of the build!)
just add a new line to the end of the file....


git-svn-id: svn://10.0.0.236/trunk@49956 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:21:40 +00:00
mscott%netscape.com
7277b119b3 Bug #15655 --> new file for mime to use nsIModule. This is not part of the build and has not been reviewed yet. The review will happen
when I land all the rest of the changes related to converting mime to use nsIModule.


git-svn-id: svn://10.0.0.236/trunk@49955 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 06:00:40 +00:00
rpotts%netscape.com
c0d2a0e2f2 bug #15605. Reviewed by nisheeth. Check the return code from GoToAnchor(...) :-)
git-svn-id: svn://10.0.0.236/trunk@49954 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 05:15:13 +00:00
jefft%netscape.com
347134e10d fixed bug 15291 - Pop3 local mail folder message lines not ended with platform specific line endings; replacing CRLF with platform specific MSG_LINEBREAK; reviewed by bienvenu, mscott
git-svn-id: svn://10.0.0.236/trunk@49953 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:56:02 +00:00
neeti%netscape.com
2eb2dcca67 updating status
git-svn-id: svn://10.0.0.236/trunk@49952 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:47:08 +00:00
bienvenu%netscape.com
9446096dca fix ref count tracing for composite data source bug 666 n/a r=waterson
git-svn-id: svn://10.0.0.236/trunk@49951 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:45:14 +00:00
neeti%netscape.com
7362f1b13f Converted wallet.dll and wlltvwrs.dll to use nsIModule to prepare for memory leaks fixing. Bug# 14034. r=morse
git-svn-id: svn://10.0.0.236/trunk@49950 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:42:59 +00:00
troy%netscape.com
148aeb9479 Space issue. r=kipp@netscape.com
Replaced hash table which used lots of memory with simple linked list of
FrameInfo* structs


git-svn-id: svn://10.0.0.236/trunk@49949 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 04:22:51 +00:00
karnaze%netscape.com
89bd8c3bc9 fixed assertion in viewer sample 4. AdjustForCollapsingCols was incorrectly counting as columns frames which were not of display type NS_STYLE_DISPLAY_TABLE_COLUMN and something must have changed elsewhere to tickle this.
git-svn-id: svn://10.0.0.236/trunk@49948 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:59:07 +00:00
ramiro%netscape.com
f3bc03de75 Im an idiot, i applied the same patch twice. Sorry. Backout my last change.
git-svn-id: svn://10.0.0.236/trunk@49947 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:38:49 +00:00
rjc%netscape.com
d69298a9d2 Fix broken XUL. Review: sdagley
git-svn-id: svn://10.0.0.236/trunk@49946 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:33:28 +00:00
mscott%netscape.com
417b06f591 Bug #000 (no bug needed). Remove nsIStreamConverter2.idl.
r=valeski


git-svn-id: svn://10.0.0.236/trunk@49945 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:27:55 +00:00
mscott%netscape.com
9fce7b0c15 Bug #0000 (no bug # needed) remove nsIStreamConverter2.idl
r=valeski


git-svn-id: svn://10.0.0.236/trunk@49944 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:27:15 +00:00
mscott%netscape.com
e7538bfe37 bug #000 (no bug # needed). removing obsolete file from the build
nsIStreamconverter2.idl
r=valeski


git-svn-id: svn://10.0.0.236/trunk@49943 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:21:44 +00:00
mscott%netscape.com
9c726938af Bug #000 (no bug number needed) remove an obsolete file from the build (nsIStreamConverter2.idl)
r=valeski


git-svn-id: svn://10.0.0.236/trunk@49942 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:20:39 +00:00
rjc%netscape.com
bed7f86409 Update leak docs. (Not part of build.)
git-svn-id: svn://10.0.0.236/trunk@49941 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 03:00:06 +00:00
valeski%netscape.com
7a33492452 r=sdagley, 15654 was deleting a void * which is a no-no on hp.
git-svn-id: svn://10.0.0.236/trunk@49940 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 02:54:49 +00:00
sfraser%netscape.com
08f88ab066 Fix the file creator code so that the library gets the nice pretty icon. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49939 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 02:38:35 +00:00
sdagley%netscape.com
9fc68e8c6c Add documentation comments for Mac library loading. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49937 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 02:37:14 +00:00
dmose%mozilla.org
a81253b229 new version of LICENSE; not part of the build
git-svn-id: svn://10.0.0.236/trunk@49936 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 02:14:51 +00:00
waterson%netscape.com
0d44d897c3 Fix leaking rowgroup frame. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@49935 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:50:14 +00:00
mgleeson1%netscape.com
8e1de98ab5 r=kipp changed illegal escape \{ to {
git-svn-id: svn://10.0.0.236/trunk@49934 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:41:38 +00:00
varada%netscape.com
011f173694 fix to bug #15327 adding MinLen field to the edit widget
git-svn-id: svn://10.0.0.236/trunk@49933 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:38:02 +00:00
rjc%netscape.com
2ffbb4f583 Bug #14034: Convert to nsIModule to prepare for memory leak fixing. Also fix leak of search stream listener. Review: sdagley@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49932 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:37:47 +00:00
hangas%netscape.com
6563efab51 Porkjocky: .xul file troubleshooting. Removed duplicate references to css files within the same windows for performance. Wrapped another tree in a <div> to avoid scrolling issues. r=davidm
git-svn-id: svn://10.0.0.236/trunk@49931 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:35:36 +00:00
varada%netscape.com
c70061dbb3 Bug fix for #15327 - determination of length of edit fields
git-svn-id: svn://10.0.0.236/trunk@49930 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:32:00 +00:00
sfraser%netscape.com
a591a0e509 Fix access paths to not look for lib/xp. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49929 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:21:23 +00:00
sfraser%netscape.com
6dd1042b5d Don't export headers in lib/mac/MacMemoryAllocator any more. NSPR no longer needs the one that was being exported. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49928 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:20:44 +00:00
sfraser%netscape.com
b98dbfaa02 Fixed access paths to remove lib/xp, and mozilla/include. xp_regexp.h is now exported, and found in dist. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49927 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:19:58 +00:00
sfraser%netscape.com
3e38e2ea2a Export xp_regexp.h, for libjar. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49926 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:19:18 +00:00
sfraser%netscape.com
cb8f332910 Changed to export using the .exp file, to reduce link warnings. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49924 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:17:56 +00:00
sfraser%netscape.com
32644723fe First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49923 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:17:19 +00:00
dp%netscape.com
25f4419ba0 updating status
git-svn-id: svn://10.0.0.236/trunk@49920 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:09:54 +00:00
sfraser%netscape.com
c4429f5066 Change Mac library loading to load using the FSSpec. r=dp
git-svn-id: svn://10.0.0.236/trunk@49919 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:09:13 +00:00
sdagley%netscape.com
15caf3db1c New calls to load code fragments by name or index, and utility routines for getting fragment names from the 'cfrg' resource. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49918 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:07:15 +00:00
sdagley%netscape.com
d89dab4e33 Added #define NSPR_AS_SHARED_LIB to avoid (never called) MacInitializeMemory. This is just tidy up. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49917 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:06:27 +00:00
sdagley%netscape.com
6e8fa75abe New implementations of PR_LoadNamedFragment and PR_LoadIndexedFragment, which now allow loading libraries by FSSpec. Mac only. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49916 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:05:33 +00:00
sdagley%netscape.com
b9147e6fd2 Added prlink_mac.h, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49915 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:04:06 +00:00
sdagley%netscape.com
35708ce998 Included some new header files, so that building with 'require function prototypes' works better. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49914 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:03:00 +00:00
waterson%netscape.com
d48f50c349 Fix dumb leak.
git-svn-id: svn://10.0.0.236/trunk@49913 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:02:11 +00:00
sdagley%netscape.com
190716d4ac First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49912 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 01:00:58 +00:00
rogerl%netscape.com
74e6cc86a3 Added version 150, changed version testing in regexp
git-svn-id: svn://10.0.0.236/trunk@49911 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 00:10:27 +00:00
waqar%netscape.com
b576ab2cb5 # 9777
r vidur
d When splitText has an index error, it used to send NS_ERROR not it sends
  the proper DOM index size error.


git-svn-id: svn://10.0.0.236/trunk@49910 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 00:06:53 +00:00
tao%netscape.com
c9f9d5ee25 Add flags to selectively build subdirectories.
git-svn-id: svn://10.0.0.236/trunk@49909 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 00:03:37 +00:00
kipp%netscape.com
3a0fa24595 Cleanup special viewers too
git-svn-id: svn://10.0.0.236/trunk@49908 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-06 00:00:18 +00:00
kipp%netscape.com
be0faff780 Implement ShowContentSize; fixed a bug where we weren't removing the browser window as a doc-loader observer which sometimes triggers a crash when the -f argument to the viewer is used
git-svn-id: svn://10.0.0.236/trunk@49907 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:59:59 +00:00
cata%netscape.com
7b445faf02 added files: mozilla/intl/uconv/ucvtw2/nsUCvTw2Module.cpp, removed files: mozilla/intl/uconv/ucvtw2/nsUCvTW2Dll.cpp
git-svn-id: svn://10.0.0.236/trunk@49906 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:58:49 +00:00
morse%netscape.com
3f799e031d fix bug 15572, clean up build warnings, reviewed slamm
git-svn-id: svn://10.0.0.236/trunk@49905 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:58:45 +00:00
kipp%netscape.com
71408231d2 Tweaked refcnt munging to better support refcnt tracking
git-svn-id: svn://10.0.0.236/trunk@49904 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:58:32 +00:00
kipp%netscape.com
3a3369076f Fixed a memory leak of widgets triggered when the close box for a window is hit
git-svn-id: svn://10.0.0.236/trunk@49903 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:57:57 +00:00
cata%netscape.com
934632fc76 added files: mozilla/intl/uconv/ucvtw/nsUCvTwModule.cpp, removed files: mozilla/intl/uconv/ucvtw/nsUCvTWDll.cpp
git-svn-id: svn://10.0.0.236/trunk@49902 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:57:29 +00:00
kipp%netscape.com
bdf07b5f16 Work around a flaw in the doc-loader not handling a RemoveObserver call during an observer notification
git-svn-id: svn://10.0.0.236/trunk@49901 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:57:20 +00:00
morse%netscape.com
f082f7eb5e fix bug 15572, fix up build warnings, reviewed slamm
git-svn-id: svn://10.0.0.236/trunk@49900 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:56:59 +00:00
kipp%netscape.com
2f507e7b3c Improved printouts so that addref/release tracing always shows the old/new refcnts in decimal instead of old in decimal and new in hex
git-svn-id: svn://10.0.0.236/trunk@49899 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:56:33 +00:00
cata%netscape.com
b18dd56b44 added files: mozilla/intl/uconv/ucvlatin/nsUCvLatinModule.cpp, removed files: mozilla/intl/uconv/ucvlatin/nsUCvLatinDll.cpp
git-svn-id: svn://10.0.0.236/trunk@49898 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:56:08 +00:00
cata%netscape.com
bfa9612c50 Converting library to Module. Bug 15589. Reviewed by dp.
git-svn-id: svn://10.0.0.236/trunk@49897 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:54:18 +00:00
kipp%netscape.com
71a5f24ba3 Implemented suggested change so that leak info is printed if an env variable is used
git-svn-id: svn://10.0.0.236/trunk@49896 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:54:08 +00:00
cata%netscape.com
b8d939ca6e added files: mozilla/intl/uconv/ucvko/nsUCvKoModule.cpp, removed files: mozilla/intl/uconv/ucvko/nsUCvKODll.cpp
git-svn-id: svn://10.0.0.236/trunk@49895 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:53:21 +00:00
cata%netscape.com
28fb79fcef added files: mozilla/intl/uconv/ucvja/nsUCvJaModule.cpp, removed files: mozilla/intl/uconv/ucvja/nsUCVJADll.cpp
git-svn-id: svn://10.0.0.236/trunk@49894 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:51:46 +00:00
ducarroz%netscape.com
869cfacaf7 related to bug 14561, fix some other case where we didn't bring back errors while sending message. R=rhp
git-svn-id: svn://10.0.0.236/trunk@49893 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:48:40 +00:00
dmose%mozilla.org
79a8db9e5d updating NPL boilerplate to 1.1; only comments changed
git-svn-id: svn://10.0.0.236/trunk@49892 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:48:08 +00:00
kipp%netscape.com
53b538cfc8 Support SizeOf methods
git-svn-id: svn://10.0.0.236/trunk@49891 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:47:46 +00:00
hangas%netscape.com
efca1f8c77 Fix bug 13729 for putterman/hyatt. Tree headers not always displaying on Mac/Linux. Commented out optimization in Reflow(). r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@49890 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:46:16 +00:00
mcafee%netscape.com
28e1dfd154 removing redundant xul: tags, minor whitespace stuff. r=slamm
git-svn-id: svn://10.0.0.236/trunk@49889 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:44:41 +00:00
pollmann%netscape.com
1c6394c2d0 Bug 15170: Implement onchange notification for list boxes
git-svn-id: svn://10.0.0.236/trunk@49888 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:43:06 +00:00
mcafee%netscape.com
4518901d71 xul: is redundant in xul files. r=slamm
git-svn-id: svn://10.0.0.236/trunk@49887 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:40:07 +00:00
rjc%netscape.com
31eba671e2 Bug # 14034: Convert to nsIModule to prepare for memory leak fixing. Review: dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49886 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:39:48 +00:00
danm%netscape.com
08ffd64c70 Release XP menu rollup listener before menu is executed. This restores normal event handling earlier. Fixes bug 15596. r:hyatt
git-svn-id: svn://10.0.0.236/trunk@49884 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:31:06 +00:00
selmer%netscape.com
149b556a40 new fn definitions
git-svn-id: svn://10.0.0.236/trunk@49883 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:18:35 +00:00
selmer%netscape.com
12bc995595 Removed temporary 'NewConfig' fix in favor of real fix
git-svn-id: svn://10.0.0.236/trunk@49882 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:18:12 +00:00
selmer%netscape.com
ab205b541a Fix dialogs a little (more required) and fix handling of GlobalArrayIndex
git-svn-id: svn://10.0.0.236/trunk@49881 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:17:07 +00:00
selmer%netscape.com
b51d6a324e Updates to make all functions go through 'command' except generatelist and installbuilder (fix those later)
git-svn-id: svn://10.0.0.236/trunk@49880 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:15:49 +00:00
ramiro%netscape.com
f037c3b791 Fix for bug 15245. Rearrange the inclusion of system headers to unbreak
some unix compilers.  Patch provided by tor@cs.brown.edu and reviewed by me.


git-svn-id: svn://10.0.0.236/trunk@49879 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 23:08:19 +00:00
varada%netscape.com
040d9254e3 moving branding_page4.ini to the page before the installer page bug 11342
git-svn-id: svn://10.0.0.236/trunk@49878 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:57:18 +00:00
cata%netscape.com
230b7ea144 Fix my Unix breakage.
git-svn-id: svn://10.0.0.236/trunk@49877 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:33:09 +00:00
waterson%netscape.com
495ac5394c Fix crasher when loading XUL in viewer and no localstore is present.
git-svn-id: svn://10.0.0.236/trunk@49876 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:22:40 +00:00
rhp%netscape.com
3924a3e115 Fix for my screw up...sorry about this.
git-svn-id: svn://10.0.0.236/trunk@49875 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:15:43 +00:00
rogerl%netscape.com
ac914fc99e Bug #14545 - get array length exceptions working with non-Number array
contructor arguments.


git-svn-id: svn://10.0.0.236/trunk@49874 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:11:57 +00:00
waterson%netscape.com
33cab018e9 Bug 13910. Make sure we push the 'NC:description' attribute. r=dougt
git-svn-id: svn://10.0.0.236/trunk@49873 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:11:44 +00:00
morse%netscape.com
e03ce189b4 fix bug 14889, lazy initialization of wallet, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49872 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:11:22 +00:00
mscott%netscape.com
b605bcf7c8 Bug #15583 --> fix warning (unused variable)
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49871 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:03:50 +00:00
sspitzer%netscape.com
2e1f51d842 fix for #15617. always save prefs after migration. not sure why prefs aren't being saved anymore, but this is a good idea. r=mscott
git-svn-id: svn://10.0.0.236/trunk@49870 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 22:02:58 +00:00
cata%netscape.com
e532cb3ce3 added files: mozilla/intl/uconv/ucvcn/nsUCvCnModule.cpp, removed files: mozilla/intl/uconv/ucvcn/nsUCvCnDll.cpp
git-svn-id: svn://10.0.0.236/trunk@49869 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:26:47 +00:00
cata%netscape.com
6278c9cdb6 Converting library to Module. Bug 15589. Reviewed by dp.
git-svn-id: svn://10.0.0.236/trunk@49868 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:25:47 +00:00
dougt%netscape.com
08e25e2af2 1) Adding an eventsinkgetter interface so that when 13894 become unblocked (when gagan
checks in his protocol messages)  we will automatically get onStatus and onProgress
notification.  reviewed by dveditz.


git-svn-id: svn://10.0.0.236/trunk@49867 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:18:48 +00:00
rhp%netscape.com
9230e0bd2b Fix for #14120 - Reviewer - bienvenu
git-svn-id: svn://10.0.0.236/trunk@49866 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:17:17 +00:00
dougt%netscape.com
f10ff94359 Change pref name
Added Preferences for software notification timer (see 14729) r. samir g.


git-svn-id: svn://10.0.0.236/trunk@49865 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:15:30 +00:00
dougt%netscape.com
699606d62a set software notification timer to once per week. 14729 R. sgehani
Update pref name


git-svn-id: svn://10.0.0.236/trunk@49864 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:14:13 +00:00
waterson%netscape.com
b4e6b84fea Bug 15301. Remove RDF graph from XUL content model construction. Landed XUL_19991005_BRANCH; see branch comments for detailed checkin information. r=shaver,hyatt.
git-svn-id: svn://10.0.0.236/trunk@49863 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:13:55 +00:00
jband%netscape.com
32816676db the JS engine part of the fix for bug 14738. This does two things: 1) expose the JSClass for JSError so that it is possible to detect from the outside if a given JSObject is of that JSError class, and 2) expose an api call via which the JSErrorReport can be extracted from a JSError (if present). This change required renaming the JSClass used for JSError, so many lines were touched
git-svn-id: svn://10.0.0.236/trunk@49861 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 21:07:23 +00:00
mscott%netscape.com
dfe61b8c0c Bug #0000 (no bug number necessary). remove old STREAM_CONVERTER_HACK #ifdef code because we no longer need this.
This was the hack we used before we had a stream converter service to load rfc822 data into a webshell and get it
converted to html.
r=warren


git-svn-id: svn://10.0.0.236/trunk@49856 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:54:03 +00:00
neeti%netscape.com
23d28fee69 Not part of the build. Took some more dlls for conversion to use nsImodule
git-svn-id: svn://10.0.0.236/trunk@49855 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:49:20 +00:00
sspitzer%netscape.com
185c444bad fix for #15610, alert on failure to rename or delete a profile. r=mscott
git-svn-id: svn://10.0.0.236/trunk@49854 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:49:09 +00:00
hangas%netscape.com
bb00d4e082 Fixing bug 13443 (crash scrolling results pane of address book), added <html:div> around the trees as per Hyatt's suggestion which Scottip reminded me of today. r=scottip
git-svn-id: svn://10.0.0.236/trunk@49853 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:49:08 +00:00
mscott%netscape.com
bc20c13bee Bug #14739 --> fix use of unitiailized variable.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49852 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:48:37 +00:00
sspitzer%netscape.com
0685d4013e remove work around for #15458. that bug has been fixed.
gayatrib and I both tested it.


git-svn-id: svn://10.0.0.236/trunk@49851 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:47:41 +00:00
varada%netscape.com
6c0dabbcc9 Validation for .nci in the entry field during creation of NCI files
git-svn-id: svn://10.0.0.236/trunk@49849 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 20:30:20 +00:00
rogerl%netscape.com
51378fb74f Errors as exceptions working from generated code.
git-svn-id: svn://10.0.0.236/trunk@49848 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 19:44:24 +00:00
sspitzer%netscape.com
ae215e19d6 fix for #15578, r=mscott, a=granrose, fix crash on startup.
not sure why we don't have a webshell here...


git-svn-id: svn://10.0.0.236/trunk@49846 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 18:13:15 +00:00
sspitzer%netscape.com
2aa4acab95 fix for #15578, r=mscott, a=granrose
properly migrate the bookmarks file on windows.


git-svn-id: svn://10.0.0.236/trunk@49845 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 18:10:20 +00:00
kipp%netscape.com
8626b336eb Added ctor/dtor counting to the parser tokens
git-svn-id: svn://10.0.0.236/trunk@49842 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 15:00:05 +00:00
kipp%netscape.com
feff21ed38 r=jband; fixed a memory leak
git-svn-id: svn://10.0.0.236/trunk@49841 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:56:41 +00:00
kipp%netscape.com
ebce0e90ac Renamed the ctor/dtor counting macros to make more sense
git-svn-id: svn://10.0.0.236/trunk@49840 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:54:05 +00:00
kipp%netscape.com
a87258a834 Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49839 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:53:40 +00:00
kipp%netscape.com
bcb12509a4 r=dp; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49838 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:53:20 +00:00
kipp%netscape.com
54966bf91e r=beard; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49837 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:52:53 +00:00
kipp%netscape.com
011094c243 r=peterl; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49836 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:52:20 +00:00
jefft%netscape.com
dc5a959bfb fixed bug 15556 - treat forward quoted as inline; default to forward as attachment if get pref failed; reviewed rhp
git-svn-id: svn://10.0.0.236/trunk@49835 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:52:19 +00:00
kipp%netscape.com
8fdcb733f6 Removed static ctors
git-svn-id: svn://10.0.0.236/trunk@49834 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:51:56 +00:00
kipp%netscape.com
a4aa98059e r=troy; Added in ctor/dtor counting
git-svn-id: svn://10.0.0.236/trunk@49833 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:51:12 +00:00
kipp%netscape.com
beb412d2f0 r=troy; Added some atoms to help eliminate global ctors
git-svn-id: svn://10.0.0.236/trunk@49832 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:51:02 +00:00
kipp%netscape.com
cd7adcfa5b r=troy; Removed some of my own debug noise
git-svn-id: svn://10.0.0.236/trunk@49831 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:50:30 +00:00
kipp%netscape.com
ddfb13e8bd whitespace noise
git-svn-id: svn://10.0.0.236/trunk@49830 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:50:06 +00:00
kipp%netscape.com
6455b470d5 Whitespace tweak
git-svn-id: svn://10.0.0.236/trunk@49829 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:48:58 +00:00
kipp%netscape.com
2e0f295a75 Added in a way to shutdown the image manager
git-svn-id: svn://10.0.0.236/trunk@49828 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:48:44 +00:00
kipp%netscape.com
0fe83f199b Remove some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@49827 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:48:01 +00:00
jefft%netscape.com
3bf966446e fixed bug 9540, 10827, 11991 - copy news article failed on certain platforms; replacing CRLF to platform specific MSG_LINEBREAK; reviewed by mscott
git-svn-id: svn://10.0.0.236/trunk@49823 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:20:15 +00:00
jefft%netscape.com
d280db659f fixed bug 9540, 10827, 11991 - copy news article failed on certain platforms; replacing CRLF to platform specific MSG_LINEBREAK; reviewed by mscott
git-svn-id: svn://10.0.0.236/trunk@49822 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 14:15:04 +00:00
rpotts%netscape.com
52fa2d449f Added a missing lock to nsSocketTransport::OnFull... reviewed by warren.
git-svn-id: svn://10.0.0.236/trunk@49820 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 08:41:37 +00:00
rpotts%netscape.com
bd2b8bbb50 bug #14181. Reviewed by pnunn. Fixed crash when loading large (or slow) animated GIF images on linux.
git-svn-id: svn://10.0.0.236/trunk@49819 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 08:36:43 +00:00
mscott%netscape.com
9540a1b2bb fix vc5.0 build......include nsISupportsArray before using a com ptr on it.
git-svn-id: svn://10.0.0.236/trunk@49818 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 06:56:12 +00:00
dp%netscape.com
a4303afba6 Fixed build bustage caused by undefined min()
git-svn-id: svn://10.0.0.236/trunk@49817 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 06:28:17 +00:00
mscott%netscape.com
3f98b22adb Bug #0000 --> (no bug necessary)....add a #ifdef guard around this header file
so we don't try to include the contents multiple times!!
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49816 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:53:31 +00:00
rickg%netscape.com
3f9c7372e6 no changes made; just forcing a recompile
git-svn-id: svn://10.0.0.236/trunk@49815 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:52:12 +00:00
mscott%netscape.com
628723cd09 Bug #11837 use NS_GENERIC_FACTORY_CONSTRUCTOR, remove NS_New**
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49813 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:46:20 +00:00
mscott%netscape.com
d84901b036 Bug #11837 use NS_GENERIC_FACTORY_CONSTRUCTOR for our components
the factory should cache nsIGenericFactory objects for each
component we know how to produce.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49812 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:45:07 +00:00
mscott%netscape.com
c12b68d3bc Bug #11837 --> in order to use NS_GENERIC_FACTORY_CONSTRUCTOR the
class declaration needs to be in the header file. Removing old NS_New*
method in favor of NS_GENERIC_FACTORY_CONSTRUCTOR.
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49811 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:44:41 +00:00
sspitzer%netscape.com
7159500167 added files: mozilla/profile/src/nsProfileFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49810 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:20:58 +00:00
sspitzer%netscape.com
8c517b89c5 fix for #15262, r=mscott
break apart the profile factory from nsProfile.cpp and put it into nsProfileFactory.cpp
also, apply dp's patch to use nsIModule.  r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@49809 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:20:45 +00:00
pavlov%netscape.com
489535b9e0 fix bugs in find dialog and make it use the dialog overlay. make it not resizeable, fixed style rules on the windows and buttons. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49808 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:20:29 +00:00
rjc%netscape.com
0899d7c171 Fix bug # 15435: prevent long ( > 255) URL corruption. Also convert over to a nsIModule. Review: dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49807 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:11:09 +00:00
rpotts%netscape.com
2c951d67c1 Fixed up broken test case while investigating bug #14181...
git-svn-id: svn://10.0.0.236/trunk@49806 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 05:02:56 +00:00
rickg%netscape.com
685d8d596e fixed bug 15290; eliminated a leak; r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@49805 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:54:53 +00:00
radha%netscape.com
ac0f716288 Fix for bug #13329 . Back and forward not consistent all the time.
Fix already checked in to the M10 branch. Merging changes to tip.


git-svn-id: svn://10.0.0.236/trunk@49804 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:49:58 +00:00
rickg%netscape.com
4a9749eec3 bugs 13038 and 14920; also improved comments. r=kmcclusk
git-svn-id: svn://10.0.0.236/trunk@49803 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:47:19 +00:00
jband%netscape.com
37f1655b17 xpidl compiler was failing to complain that it is an error to use [shared] with 'inout' params. (no bug was filed) r=mccabe
git-svn-id: svn://10.0.0.236/trunk@49802 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:23:35 +00:00
karnaze%netscape.com
aa9be56cfa bug 14818 - made standard mode like NavQuirks when handling colspans exceeding the number of columns.
git-svn-id: svn://10.0.0.236/trunk@49801 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:21:00 +00:00
putterman%netscape.com
b4b00ba592 Fix bug 15479 - crash when mousing over folder pane scrollbar. Also, fix 12645 - assertion
when using folder pane scrollbar.  Also, make 3pane menu and toolbar look normal.  various
parts reviewed by hyatt and hangas.


git-svn-id: svn://10.0.0.236/trunk@49800 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:14:26 +00:00
sspitzer%netscape.com
41337e7380 a bunch of changes, all reviewed by mscott.
fix some bugs with next, back, and cancel in the profile manager.
(#15223, #15271)
re-write all callers of nsProfile::GetCurrentProfileDir() to use the file locator.
(#15063)
more profile code clean up. (#15042)
rename the old 4.x history.dat file.  it's called history.dat in 5.0, but the file
formats are different.  (binary in 4.x, vs mork in 5.0)


git-svn-id: svn://10.0.0.236/trunk@49797 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:12:58 +00:00
norris%netscape.com
3c9599e418 Fix 15458 "onLoadHandler does not work"
Reviewed by mstoltz.


git-svn-id: svn://10.0.0.236/trunk@49796 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:08:14 +00:00
rpotts%netscape.com
fa598b6cae bug #15341 and bug #15344. Use the documentloader observer instead of a stream observer.
git-svn-id: svn://10.0.0.236/trunk@49795 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:04:16 +00:00
sgehani%netscape.com
ff7384e823 Added Mac alias creation feature for install script writers using XPInstall: bugs 9363, 14345, 15503; r=ssu.
Fixed nsFileSpec<->nsInstall error translation in File operations exposed to install script writers: bug 15486; r=ssu.


git-svn-id: svn://10.0.0.236/trunk@49794 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 04:04:01 +00:00
tao%netscape.com
9c58478520 Add makefiles for Unix.
git-svn-id: svn://10.0.0.236/trunk@49793 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:55:45 +00:00
mccabe%netscape.com
1664bd1228 Initial checkin of TestScan.java, a simple driver for generating and printing various kinds of parse trees, and for profiling scanning, parsing and compiling.
git-svn-id: svn://10.0.0.236/trunk@49792 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:47:04 +00:00
alecf%netscape.com
455a608f47 add new findServer() method and javadoc comments
r=sspitzer
#15140


git-svn-id: svn://10.0.0.236/trunk@49791 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:29:42 +00:00
waterson%netscape.com
0db46fd24d Bug 15511. Make sure container element sets 'parent' backpointer to null before releasing child; prevents dangling references if child is still referenced from elsewhere. r=vidur
git-svn-id: svn://10.0.0.236/trunk@49790 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:20:57 +00:00
sfraser%netscape.com
2306c86ff9 Use CR for line termination on Macintosh, and don't call flush() for an endl. r dougt.
git-svn-id: svn://10.0.0.236/trunk@49788 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 03:00:13 +00:00
troy%netscape.com
9598e1278f Checked in workaround for tree-view/apprunner problem of assert in GetColumnWidth()
git-svn-id: svn://10.0.0.236/trunk@49787 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 02:41:36 +00:00
selmer%netscape.com
016eba860a Most of CopyDir ready
git-svn-id: svn://10.0.0.236/trunk@49786 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 02:22:36 +00:00
kipp%netscape.com
e62c5f3e87 backed out dps erroneous fix
git-svn-id: svn://10.0.0.236/trunk@49785 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:44:35 +00:00
kipp%netscape.com
8aa6b7aa38 Fixed build wastage
git-svn-id: svn://10.0.0.236/trunk@49784 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:43:34 +00:00
dmose%mozilla.org
de7b2e5e74 update license boilerplate to NPL dual w/GPL, r=norris@netscape,a=norris@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49783 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:42:01 +00:00
shawnp%earthling.net
17b2b4cace To determine what gfx toolkit is being used at runtime, I added the
following functions to the nsIUnixToolkitService interface:
SetWidgetToolkitName(), SetGfxToolkitName(), IsValidWidgetToolkit(),
IsValidGfxToolkit(), GetWidgetToolkitName(), GetGfxToolkitName(). I also
added the implementation for these functions. Reviewed by
ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49782 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:35:21 +00:00
shawnp%earthling.net
0b401a86ba Improved info that is logged. Only bother to do something in OnPaint() if there
is a pixmap to copy from. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49781 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:31:56 +00:00
shawnp%earthling.net
8fff423963 Implemented stub CaptureRollupEvents() and SetTitle() functions. Now handle
both Qt and Xlib gfx toolkits at runtime. Fixed a bug in SetCursor(). Can now
track cursor movement when no mouse button is pressed. Got rid of flickering
when repainting web pages. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49780 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:31:18 +00:00
shawnp%earthling.net
4046113676 Now use separate PR_LOG module for scrolling. Stopped generation of double
scroll events. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49779 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:30:23 +00:00
shawnp%earthling.net
f6d25e7c68 Added mouse enter/exit event. Added focus in/out event. Now use seperate PR_LOG
modules for events. Combined MousePressedEvent() and MouseReleasedEvent() into
MouseButtonEvent(). Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49778 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:29:07 +00:00
despotdaemon%netscape.com
90d52f24b4 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49777 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:28:52 +00:00
shawnp%earthling.net
14a4b48d16 Added constructor needed for integration with Xlib gfx toolkit. Reviewed by
ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49776 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:28:24 +00:00
shawnp%earthling.net
5475d74886 Implemented stub SetCheckboxType() and GetCheckboxType() functions.
Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49775 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:27:44 +00:00
shawnp%earthling.net
aa82528d79 Implemented stub GetEnabled() and IsHelpMenu() functions. Reviewed by
ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49774 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:26:39 +00:00
kipp%netscape.com
2359272160 Disabled leak cleanup until other reviews come in
git-svn-id: svn://10.0.0.236/trunk@49773 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:26:14 +00:00
dp%netscape.com
1d765d463d Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@49772 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:25:55 +00:00
shawnp%earthling.net
fc4c559faa Updated to better match values used by the gtk widget toolkit (assuming
those are more correct values). Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49771 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:24:46 +00:00
shawnp%earthling.net
af2c5a6328 Added a static function to determine at runtime what gfx toolkit is being
used. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49770 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:23:47 +00:00
shawnp%earthling.net
66f0536716 Now link in libxlibgrb.so when building libwidgetqt.so so that Qt can work
with the Xlib gfx toolkit. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49769 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:22:48 +00:00
shawnp%earthling.net
cdbe7612ce Added missing entries to the menus. Added key accessors for menu items that
were missing them. Reviewed by ramiro@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@49768 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 01:21:29 +00:00
jband%netscape.com
0afa0bedfe NOT PART OF BUILD updating status page
git-svn-id: svn://10.0.0.236/trunk@49767 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:53:26 +00:00
dmose%mozilla.org
239d60872d update license boilerplate to NPL dual w/GPL, r=norris@netscape,a=norris@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49766 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:44:05 +00:00
kipp%netscape.com
74b117887f Found another type of symbol that indicates the presence of a static ctor
git-svn-id: svn://10.0.0.236/trunk@49765 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:39:48 +00:00
troy%netscape.com
eb8deb8c1b Removed unused data member
git-svn-id: svn://10.0.0.236/trunk@49764 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:32:07 +00:00
kipp%netscape.com
f0a6db6e3e r=ramiro; fix uninitialized refcnt bug that triggers an assertion when you're lucky
git-svn-id: svn://10.0.0.236/trunk@49763 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:31:55 +00:00
briano%netscape.com
1192ec6846 Automated update
git-svn-id: svn://10.0.0.236/trunk@49762 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:31:43 +00:00
alecf%netscape.com
d721125978 add detection for broken mmap()/write() behavior
contributed by jim_nance@yahoo.com
r=alecf


git-svn-id: svn://10.0.0.236/trunk@49761 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:29:09 +00:00
rogerl%netscape.com
4c19332cbb First cut at errors as exceptions - These changes should be benign since
the errors are being wrapped by runtime exceptions and still need to be
explicitly caught (this is happening in the interpreter, but not in
generated code).


git-svn-id: svn://10.0.0.236/trunk@49760 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:21:07 +00:00
waterson%netscape.com
4fa6ebaa6d Bug 15460. Expose XML element creation via nsIXMLElementFactory interface. r=kipp.
git-svn-id: svn://10.0.0.236/trunk@49759 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:12:21 +00:00
kipp%netscape.com
c9603305c7 r=dp; more leak tracking hooks added
git-svn-id: svn://10.0.0.236/trunk@49758 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:08:41 +00:00
waterson%netscape.com
9145c77cc4 Bug 15367. Dump 'class' instead of 'file/line' for NS_LOG_REFCNT. r=shaver,dp
git-svn-id: svn://10.0.0.236/trunk@49757 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:07:54 +00:00
kipp%netscape.com
eaaefb2093 r=dp; cleanup xpcom library too during shutdown to reduce global leaks
git-svn-id: svn://10.0.0.236/trunk@49756 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:07:39 +00:00
kipp%netscape.com
59997b00eb r=vidur; fixed a memory of a script content object
git-svn-id: svn://10.0.0.236/trunk@49755 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:05:38 +00:00
rhp%netscape.com
55b9838dc4 Fixes for bug #15363 and #14675 - reviewer bienvenu
git-svn-id: svn://10.0.0.236/trunk@49754 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-05 00:03:20 +00:00
kipp%netscape.com
81d2477caa r=troy; missed checkin from last weeks module carpool
git-svn-id: svn://10.0.0.236/trunk@49753 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:56:57 +00:00
alecf%netscape.com
40b89da05b exorcism of net.h from IMAP
r=mscott


git-svn-id: svn://10.0.0.236/trunk@49752 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:53:56 +00:00
alecf%netscape.com
0ce90ca711 Combined checkin:
- convert Compose enums to IDL #13261
- exorcise net.h from compose and mime
r=ducarroz and rhp on both


git-svn-id: svn://10.0.0.236/trunk@49751 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:50:56 +00:00
nhotta%netscape.com
c34375d22a Bug fix 15017, reviewed by akkana. Override SetDocumentCharacterSet for HTMLEditor to update META charset tag if exists.
git-svn-id: svn://10.0.0.236/trunk@49750 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:50:27 +00:00
kipp%netscape.com
d2eaa239f7 r=ramiro; fixed memory leak of a font-metrics object; also added in ctor/dtor counting for leak debugging
git-svn-id: svn://10.0.0.236/trunk@49749 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:48:55 +00:00
troy%netscape.com
4f1bf46f5d Space optimization for nsTableFrame. r=karnaze@netscape.com
- changed mBorderEdges to be heap allocated (only needed for collapsing border model)
- made the 8 boolean data members into bitfields
- changed mColumnWidths to be as small as necessary instead of defaulting its size to 100 elements


git-svn-id: svn://10.0.0.236/trunk@49748 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:48:05 +00:00
troy%netscape.com
7eedfae1ee Made sure mOutsideEdge is initizlied
git-svn-id: svn://10.0.0.236/trunk@49747 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:44:44 +00:00
ducarroz%netscape.com
03b778a6f7 Fix for bug 14561, Already checked in the M10 BRANCH. Error must have negative value. A=choffman, R=mscott
git-svn-id: svn://10.0.0.236/trunk@49746 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:43:57 +00:00
troy%netscape.com
6311b52e3d Performance optimizations. r=kmcclusk@netscape.com
I made the commonly accessed stock objects global, and I optimized the
SetupSolidPen() code


git-svn-id: svn://10.0.0.236/trunk@49745 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:42:28 +00:00
kipp%netscape.com
a3570edb7f r=dp; tidy up exit logic to release more global junk (space team work)
git-svn-id: svn://10.0.0.236/trunk@49744 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:41:53 +00:00
kipp%netscape.com
9246660bae r=dp,vidur,beard; close up some memory leaks related to shutdown of the viewer
git-svn-id: svn://10.0.0.236/trunk@49743 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:41:25 +00:00
kipp%netscape.com
db15162105 r=dp; implement some macros to help track memory leaks
git-svn-id: svn://10.0.0.236/trunk@49742 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:36:18 +00:00
kipp%netscape.com
af9cdee1dc r=brendan; applied changes recommended by brendan
git-svn-id: svn://10.0.0.236/trunk@49741 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:35:51 +00:00
peterl%netscape.com
50c6f531fe fixed leak of undisplayed content map nodes (which leak style contexts)
r=kipp


git-svn-id: svn://10.0.0.236/trunk@49740 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:33:23 +00:00
valeski%netscape.com
3b535ab2ef NOT part of the build.
git-svn-id: svn://10.0.0.236/trunk@49739 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:13:11 +00:00
valeski%netscape.com
3e9e763bae NOT part of the build.
git-svn-id: svn://10.0.0.236/trunk@49738 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 23:12:02 +00:00
norris%netscape.com
288c2fdcfb Fix up makefiles; previous patch was mis-applied.
git-svn-id: svn://10.0.0.236/trunk@49733 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 21:31:21 +00:00
morse%netscape.com
66a3fad9de oops -- I carelessly left out a carriage return in my last checkin
git-svn-id: svn://10.0.0.236/trunk@49732 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 21:07:01 +00:00
morse%netscape.com
6558fcffeb fix profile-manager bustage in todays build, checked in by request of leaf
git-svn-id: svn://10.0.0.236/trunk@49731 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 20:59:16 +00:00
kipp%netscape.com
ef2c286317 Fixed uninitialized members in the TreeNode struct
git-svn-id: svn://10.0.0.236/trunk@49729 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 20:25:53 +00:00
norris%netscape.com
19a71ea13f Fix bug found by Andrew Wason (see below).
Problem was that one transformation of a node to GETVAR wasn't protected by a check of inWithStatement().

======================================
Subject:
        multiple scopes
   Date:
        Fri, 01 Oct 1999 12:39:14 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com
    CC:
        Howard Lin <howard@softcom.com>




When I create two scopes, and one scope evaulates a string in the other
scope, it works.  However, if I do this while handling an exception thrown
within a JavaAdapter method, it fails with an exception.

Run the attached Java program with the two script files.  scope1.js
evaluates a string "printMessage" in the scope of scope2.js.  This returns
a function object which is then invoked.  This works in 3 cases, but fails
in the 4th (in the catch in the JavaAdapter).  Even in the 4th case where
it fails, printing the function object looks normal.

Am I doing something wrong, or is there a bug here?

java CrossScope scope1.js scope2.js

Outside of JavaAdapter
works before exception
works after exception
Inside of JavaAdapter
works before exception
Caught exception
pma=
function printMessage(msg) {
     java.lang.System.out.println(msg);
}

Exception in thread "main" org.mozilla.javascript.JavaScriptException:
org.mozilla.javascript.EvaluatorException: The undefined value has no
properties.
         at
org.mozilla.javascript.JavaScriptException.wrapException(JavaScriptException
.java:61)
         at
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java,
Compiled Code)
         at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1256)
         at org.mozilla.javascript.Interpreter.interpret(Interpreter.java,
Compiled Code)
         at
org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:49)
         at
org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:37)
         at org.mozilla.javascript.Context.evaluateReader(Context.java:697)
         at CrossScope.<init>(CrossScope.java:30)
         at CrossScope.main(CrossScope.java:10)


Thanks,
Andrew

import java.io.*;
import org.mozilla.javascript.*;

public class CrossScope {
	private Context m_jsContext;
	private Scriptable m_scope1;
	private Scriptable m_scope2;

	public static void main(String args[]) throws Exception {
		new CrossScope(args[0], args[1]);
	}

	private CrossScope(String strFile1, String strFile2) throws Exception {
		// Associate Context with main thread
		m_jsContext = Context.enter();
                m_jsContext.setOptimizationLevel(-1);

		// Init scope1, expose Scope object
  		m_scope1 = m_jsContext.initStandardObjects(new ImporterTopLevel());
		m_scope1.put("Scope", m_scope1, this);

		// Init scope2
		m_scope2 = m_jsContext.initStandardObjects(new ImporterTopLevel());

		// Run script in scope2
		Reader r2 = new FileReader(strFile2);
		m_jsContext.evaluateReader(m_scope2, r2, strFile2, 1, null);

		// Eval input JS in scope1 - it can in turn eval JS over in scope2
		Reader r1 = new FileReader(strFile1);
		Object obj = m_jsContext.evaluateReader(m_scope1, r1, strFile1, 1, null);
		if (obj instanceof Throwable)
			((Throwable)obj).printStackTrace();

		m_jsContext.exit();
	}

	public Object scope1Eval(String str) throws JavaScriptException {
			Context cx = Context.enter(m_jsContext);
			Object objResult = cx.evaluateString(m_scope1, str, "scope1EvalString", 1, null);
			cx.exit();
			return objResult;
	}

	public Object scope2Eval(String str) throws JavaScriptException {
			Context cx = Context.enter(m_jsContext);
			Object objResult = cx.evaluateString(m_scope2, str, "scope2EvalString", 1, null);
			cx.exit();
			return objResult;
	}
}


// Scope1

importPackage(java.lang);

System.out.println("Outside of JavaAdapter");

try {
	var pm = Scope.scope2Eval("printMessage");
	pm("works before exception");
	System.arraycopy(null, 5, null, 5, 100);
} catch (e) {
	var pma = Scope.scope2Eval("printMessage");
	pma("works after exception");
}

var obj = new Runnable() {
	run: function() {
		System.out.println("Inside of JavaAdapter");
		try {
			var pm = Scope.scope2Eval("printMessage");
			pm("works before exception");
			System.arraycopy(null, 5, null, 5, 100);
		} catch (e) {
			System.out.println("Caught exception");
			var pma = Scope.scope2Eval("printMessage");
			System.out.println("pma=" + pma);
			pma("works after exception");
		}
	}
};

obj.run();



// Scope2

function printMessage(msg) {
	java.lang.System.out.println(msg);
}


git-svn-id: svn://10.0.0.236/trunk@49726 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 18:27:30 +00:00
endico%mozilla.org
36e083362c make file searches case insentive
git-svn-id: svn://10.0.0.236/trunk@49725 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 18:11:27 +00:00
tao%netscape.com
d2b440e23a First checkin of da-DK files (from Henrik) into l10n/lang.
git-svn-id: svn://10.0.0.236/trunk@49724 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 18:01:19 +00:00
valeski%netscape.com
1c2b2f6390 adding keyword protocol handler to tree. this code is NOT in the build yet.
git-svn-id: svn://10.0.0.236/trunk@49722 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 16:34:45 +00:00
kipp%netscape.com
86725c9808 Added -R flag and logic for managing refcnt dumping better
git-svn-id: svn://10.0.0.236/trunk@49721 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 16:32:03 +00:00
neeti%netscape.com
0cb4e10e77 cookie module conversion done
git-svn-id: svn://10.0.0.236/trunk@49720 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 14:34:54 +00:00
neeti%netscape.com
1c9d47ade0 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@49719 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 14:08:52 +00:00
rods%netscape.com
ff1ff17b9d fixes bug #15265, changes reviewed by kmcclusk. Changes in the way it used the computed values
git-svn-id: svn://10.0.0.236/trunk@49718 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 13:49:00 +00:00
colin%theblakes.com
2eb916adb2 Don't link against xptinfo - its not needed. r=ramiro
git-svn-id: svn://10.0.0.236/trunk@49717 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 10:44:49 +00:00
colin%theblakes.com
41dd85d37f Make mkdepend lines shorter (OpenVMS only). r=ramiro
git-svn-id: svn://10.0.0.236/trunk@49716 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 10:43:28 +00:00
duncan%be.com
d0d0e41c47 Hack into compileable shape.
git-svn-id: svn://10.0.0.236/trunk@49715 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 08:52:17 +00:00
karnaze%netscape.com
c3e71c904f column allocation does fixed and adjusted fixed (colspans) in separate steps. Simplified AllocateConstrained. Fixed bug 14332.
git-svn-id: svn://10.0.0.236/trunk@49714 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 05:19:32 +00:00
ramiro%netscape.com
b6cc6b0ab0 Fix for xlib build bustage.
git-svn-id: svn://10.0.0.236/trunk@49713 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 04:49:45 +00:00
karnaze%netscape.com
399a1319c0 regression test changes
git-svn-id: svn://10.0.0.236/trunk@49712 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 04:48:13 +00:00
dp%netscape.com
77b37126c4 bug# 15433 Fixed call to NS_ADDREF() that would cause double
evaluation when MOZ_REFCNT is defined. Fixed checking for
OUT_OF_MEMORY condition. r=hyatt


git-svn-id: svn://10.0.0.236/trunk@49711 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 02:27:09 +00:00
leaf%mozilla.org
240237eba0 adding mozilla/gc/boehm to SeaMonkeyCore as per patrick beard's request
git-svn-id: svn://10.0.0.236/trunk@49710 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 01:17:58 +00:00
mscott%netscape.com
2e4127024c Bug #14680...migrating this bug from the M10 branch. make input and output stream for the converter pipe non-blocking.
r=ducarroz


git-svn-id: svn://10.0.0.236/trunk@49709 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 01:01:48 +00:00
mscott%netscape.com
322798e844 Bug #11837 --> rewrite the imap factory to use nsIModule. This meant adding appropriate factory methods to the components.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@49708 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 00:29:18 +00:00
mscott%netscape.com
94f2a23952 Bug #11837 --> rewrite the imap factory to use nsIModule.
r=bienvenu


git-svn-id: svn://10.0.0.236/trunk@49707 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 00:27:42 +00:00
mscott%netscape.com
18a7fb8d42 Bug #15192 --> build the pab before the history ab for name completion.
r=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@49706 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 00:26:10 +00:00
mscott%netscape.com
b36e29928a Bug #000...trivial fix so no bug # filed. Fix a leak of nsIURI by using nsCOMPtr.
r=bienvenu.


git-svn-id: svn://10.0.0.236/trunk@49705 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-04 00:25:12 +00:00
beard%netscape.com
9a1b140b6b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49702 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 23:28:33 +00:00
beard%netscape.com
90cd1e6284 File Removed.
git-svn-id: svn://10.0.0.236/trunk@49701 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 23:26:57 +00:00
beard%netscape.com
9f5a8b5090 breakage fixing, gc_stdout -> GC_stdout
git-svn-id: svn://10.0.0.236/trunk@49700 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 22:30:35 +00:00
sdagley%netscape.com
6c3f751156 changed from directly using "MSL ShLibRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=beard
git-svn-id: svn://10.0.0.236/trunk@49699 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 22:04:08 +00:00
sdagley%netscape.com
e9dac37427 using __NSTerminate() rather than __terminate, for GC leak detector. r=beard
git-svn-id: svn://10.0.0.236/trunk@49698 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 22:04:07 +00:00
beard%netscape.com
bc66d4807f removed pulling of mozilla/gc/boehm, no longer building NStdLibGC target. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49697 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 21:51:39 +00:00
beard%netscape.com
508a0c5b7d Added GC exports, so Stubs target will generate them.
git-svn-id: svn://10.0.0.236/trunk@49696 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 21:49:41 +00:00
beard%netscape.com
795fab8784 removed NSStdLibGC target, and .exp file. Moved exports to the one true NSStdLib.exp, so that Stubs target will see them. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49695 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 21:48:57 +00:00
beard%netscape.com
3ecbfc5cdf added more GC stub functions, so that NSStdLib can export them. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49694 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 21:47:11 +00:00
beard%netscape.com
f038869d64 fixed breakage, until mozilla/gc/boehm gets added to the default module.
git-svn-id: svn://10.0.0.236/trunk@49693 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 21:31:43 +00:00
beard%netscape.com
0c2f0d51f9 calling __NSInitialize/__NSTerminate to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49692 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:53:11 +00:00
beard%netscape.com
75c8c9cd12 changed from directly using "MSL ShLibRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49691 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:47:12 +00:00
beard%netscape.com
da97767078 changed from directly using "MSL DropInRuntime.Lib" to using "NSComponentStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49690 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:46:23 +00:00
beard%netscape.com
eaf44edde8 changed from directly using "MSL AppRuntime.Lib" to using "NSAppStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49689 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:43:01 +00:00
beard%netscape.com
ed2580f15a changed from directly using "MSL ShLibRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49688 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:37:53 +00:00
beard%netscape.com
cd941313ec changed from directly using "MSL ShLibRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49686 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:23:01 +00:00
beard%netscape.com
f25b9d367d changed from directly using "MSL DropInRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49685 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:13:50 +00:00
beard%netscape.com
da4024048d changed from directly using "MSL AppRuntime.Lib" to using "NSAppStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49684 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:11:44 +00:00
beard%netscape.com
a50c5f3df5 changed from directly using "MSL ShLibRuntime.Lib" to using "NSLibraryStartup.o" to enable GC leak detector. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49683 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:08:40 +00:00
beard%netscape.com
4133a2fff5 added pulling of mozilla/gc/boehm, conditionally building gc.mcp if $GC_LEAK_DETECTOR is true, and building MemAllocator.mcp[MemAllocatorGC.o], NSStdLib.mcp[NSStdLibGC.shlb] if $GC_LEAK_DETECTOR is true. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49682 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:06:10 +00:00
beard%netscape.com
50068fd6e0 Added $GC_LEAK_DETECTOR. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49681 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:03:39 +00:00
beard%netscape.com
7835dfb07e added GC_LEAK_DETECTOR variable. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49680 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 20:01:48 +00:00
tonyr%fbdesigns.com
86f12df7f4 Update progID's from component://netscape/* to component://mozilla/*
git-svn-id: svn://10.0.0.236/trunk@49679 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 18:02:22 +00:00
tonyr%fbdesigns.com
9895a33add Fix bustage caused by new account manager API's
git-svn-id: svn://10.0.0.236/trunk@49678 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 18:00:23 +00:00
tonyr%fbdesigns.com
90b1f42534 Update to use nsIModule
git-svn-id: svn://10.0.0.236/trunk@49677 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 17:59:09 +00:00
tonyr%fbdesigns.com
0534ba836d Updated to use nsIModule
git-svn-id: svn://10.0.0.236/trunk@49676 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 17:55:56 +00:00
mcafee%netscape.com
1193314ab4 Better variable names for readability.
git-svn-id: svn://10.0.0.236/trunk@49675 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 08:13:41 +00:00
mcafee%netscape.com
3c1923f753 Adding text to debug pref UI documenting how the debugPaintFlashing pref works with the caps-lock key. r=braddr@portland.puremagic.com
git-svn-id: svn://10.0.0.236/trunk@49674 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 06:56:43 +00:00
beard%netscape.com
e5cdcb3d9a Modernized to use NSComponentStartup.o. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@49673 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 02:58:48 +00:00
beard%netscape.com
1917b8abfe added access path to find Sample.idl. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@49672 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 02:58:20 +00:00
hyatt%netscape.com
9060bb7e6c Fixing apprunner startup bustage on mac. r=beard
git-svn-id: svn://10.0.0.236/trunk@49671 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 01:41:06 +00:00
beard%netscape.com
ac349d4f71 Now that mozilla/lib/mac/NSStartup has been added to the modules file, SeaMonkeyEditor, reenabled building NSStartup.mcp. Converted building JSLoader.mcp into Components, per shaver's permission. r=smfr
git-svn-id: svn://10.0.0.236/trunk@49670 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 00:37:19 +00:00
leaf%mozilla.org
ef523b7bc1 adding mozilla/lib/mac/NSStartup
git-svn-id: svn://10.0.0.236/trunk@49669 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-03 00:12:49 +00:00
rjc%netscape.com
b928008ea2 Fix problem with nsSecurityManagerFactory conversion to be a nsIModule. Patch from peterl@netscape.com. Review: me.
git-svn-id: svn://10.0.0.236/trunk@49668 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 20:19:23 +00:00
peterl%netscape.com
8d9a25274c Don't access undisplayed content map if it isn't there...
git-svn-id: svn://10.0.0.236/trunk@49667 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 19:45:18 +00:00
rjc%netscape.com
dc26a2c638 Temporarily turning off the changes to nsSecurityManagerFactory to make it a nsIModule due to problem at startup.
git-svn-id: svn://10.0.0.236/trunk@49666 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 19:24:05 +00:00
morse%netscape.com
7eed8aaa95 add some new concatenation rules
git-svn-id: svn://10.0.0.236/trunk@49665 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 16:36:53 +00:00
rbs%maths.uq.edu.au
7f3f2e7069 Adding remaining MathML hooks. r:peterl.
git-svn-id: svn://10.0.0.236/trunk@49664 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 11:05:49 +00:00
rbs%maths.uq.edu.au
5022c51b04 Adding remaining MathML hooks
git-svn-id: svn://10.0.0.236/trunk@49663 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 11:01:41 +00:00
rbs%maths.uq.edu.au
1b6a18b9e4 Adding remaining MathML hooks and changing ifdef INCLUDE_MATHML to ifdef MOZ_MATHML to avoid thinking autoconf-related. r:peterl
git-svn-id: svn://10.0.0.236/trunk@49662 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 10:41:40 +00:00
rbs%maths.uq.edu.au
d3baf5491f Change of the IID for the nsIMathMLFrame interface. The previous IID was taken while the MathML code was awaiting to land.
git-svn-id: svn://10.0.0.236/trunk@49661 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 09:14:57 +00:00
rbs%maths.uq.edu.au
ef0e29ec51 Taking an interface ID for the nsIMathMLFrame interface
git-svn-id: svn://10.0.0.236/trunk@49660 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 09:00:39 +00:00
rbs%maths.uq.edu.au
142225cef1 Adding relative path to external DTD
git-svn-id: svn://10.0.0.236/trunk@49659 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 06:53:41 +00:00
rbs%maths.uq.edu.au
1a870b97f1 Initializing a variable to zero
git-svn-id: svn://10.0.0.236/trunk@49658 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 06:50:38 +00:00
rbs%maths.uq.edu.au
e1737fe531 Update to match recent changes in the nsIFrame API.
git-svn-id: svn://10.0.0.236/trunk@49657 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 06:20:30 +00:00
briano%netscape.com
712d5c7659 Added some tweaks and support for UnixWare 7.
git-svn-id: svn://10.0.0.236/trunk@49656 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 06:00:33 +00:00
peterl%netscape.com
b72d84c381 added hooks to track content that doesn't get a frame
Fix for bug 9013 (and any dynamic change from display:none) r=troy


git-svn-id: svn://10.0.0.236/trunk@49655 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:27:40 +00:00
peterl%netscape.com
5da81c87c7 Added ability to track changes to content without frame
Fix for bug 9013 (and any dynamic change from display:none) r=troy


git-svn-id: svn://10.0.0.236/trunk@49654 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:26:53 +00:00
peterl%netscape.com
f47d01c612 added API to track content that didn't get a frame
Fix for bug 9013 (and any dynamic change from display:none) r=troy


git-svn-id: svn://10.0.0.236/trunk@49653 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:26:24 +00:00
peterl%netscape.com
86ee025299 added multimap to track content that didn't get a frame
Fix for bug 9013 (and any dynamic change from display:none) r=troy


git-svn-id: svn://10.0.0.236/trunk@49652 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:25:29 +00:00
peterl%netscape.com
f6d5221996 removing dead style change code
r=troy


git-svn-id: svn://10.0.0.236/trunk@49651 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:24:20 +00:00
peterl%netscape.com
07e158b4cf removing dead style change code and refereneces to dead style change code
r=troy


git-svn-id: svn://10.0.0.236/trunk@49650 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:23:48 +00:00
peterl%netscape.com
39323d24e7 fixed fix to bug 15373. Now it won't crash on EOF conditions
git-svn-id: svn://10.0.0.236/trunk@49649 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 04:23:00 +00:00
scc%netscape.com
16b1141bdf Fixing Mac build bustage by backing out (actually commenting out) beards previous change. The project he cites isn't in the module (or something) and isn't getting checked out. Ergo, errors when you try to find it to build. Couldn't find anyone to review or approve and there is no bug number ... but it has to be done. I guess I'm going to hell.
git-svn-id: svn://10.0.0.236/trunk@49648 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 03:41:52 +00:00
norris%netscape.com
c3494a9ffb Fix the following bugs:
14443 "Same origin" security policy may be circumvented using docu
14820 Fixing up the relationship between nsCodeBasePrincipal and n
14919 Crash in JS MM code
Reviewed by mstoltz, approved by scc.


git-svn-id: svn://10.0.0.236/trunk@49647 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 03:41:37 +00:00
troy%netscape.com
bd5ca95ced Added SizeOf() handler for floater information maintained by the
line box


git-svn-id: svn://10.0.0.236/trunk@49644 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 02:51:03 +00:00
briano%netscape.com
612bb1db4c Added support for SCO UnixWare 7.
git-svn-id: svn://10.0.0.236/trunk@49643 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 02:49:32 +00:00
beard%netscape.com
e912c2233e added mozilla/lib/mac/NSStartup/NSStartup.mcp to the build. This will create NSAppStartup.o, NSComponentStartup.o, and NSLibraryStartup.o, and will permit conditional use of the GC leak detector. r=sdagley
git-svn-id: svn://10.0.0.236/trunk@49642 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 02:21:17 +00:00
beard%netscape.com
200e34d9af First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49640 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 01:52:41 +00:00
hyatt%netscape.com
ca4aac906f Resolving apprunner bustage in an unfortunate way. r=danm
git-svn-id: svn://10.0.0.236/trunk@49639 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 01:48:59 +00:00
peterl%netscape.com
3dfcb47c99 removed leak of atom
git-svn-id: svn://10.0.0.236/trunk@49638 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 01:32:38 +00:00
selmer%netscape.com
c571661492 Major rework on interpreting commands
git-svn-id: svn://10.0.0.236/trunk@49637 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 01:28:27 +00:00
hyatt%netscape.com
4efb5b42d5 Fixing the problem with chrome skin initialization in viewer and apprunner.
git-svn-id: svn://10.0.0.236/trunk@49634 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:55:57 +00:00
rjc%netscape.com
e2b731d7df Update leak docs. (Not part of build.)
git-svn-id: svn://10.0.0.236/trunk@49633 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:52:49 +00:00
troy%netscape.com
67890faf02 Added SizeOf() handler for space manager
git-svn-id: svn://10.0.0.236/trunk@49632 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:52:01 +00:00
rjc%netscape.com
741f87253e Bug # 14034: Convert to nsIModule to prepare for memory leak fixing. Review: dp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49631 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:48:02 +00:00
gagan%netscape.com
ff2d0533a2 Fix for 14772. r-rjc/a-self. Removed the pragma no-cache header being sent to proxy requests.
git-svn-id: svn://10.0.0.236/trunk@49630 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:43:10 +00:00
av%netscape.com
8c170e98ee Fixing #13783 (garbage-pointer dereference)
git-svn-id: svn://10.0.0.236/trunk@49629 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:41:03 +00:00
kmcclusk%netscape.com
0a6c37218a r=rods;bug=14867 put in style rule to disable file selector button
bug=15328 put in disable rules for button label
bug=12227 To remove combobox reflows, changed padding settings for select's active
button to match non-active state. Also changed padding+border to match between
button's with focus and active buttons drawn with focus. Added gif for active state
of combo box to indicate that it is depressed.


git-svn-id: svn://10.0.0.236/trunk@49628 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:28:37 +00:00
frankm%eng.sun.com
7a48580674 To compile on Linux, renamed 'jarray' to 'theJarray' (jarray is a JNI type), and made sure all paths in xpjd_GetInterfaceInfoNative() return a jboolean (bug 15279).
Updated genproxy usage message, and moved printf within cmdline parsing code (bug 15386).
r=edburns@acm.org,akhil.arora@sun.com perm=scc


git-svn-id: svn://10.0.0.236/trunk@49626 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:18:02 +00:00
kmcclusk%netscape.com
e1b393609a r=rods; bug=15312 nsIWidget::GetParent now stops at the top of the widget hierarchy on WIN32
r=rods; bug=13644 Dropdown on WIN32 no longer causes parent window to change z-order or activation


git-svn-id: svn://10.0.0.236/trunk@49625 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:13:23 +00:00
tao%netscape.com
61705e7f39 makefile for lang.
git-svn-id: svn://10.0.0.236/trunk@49624 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:04:22 +00:00
briano%netscape.com
59b25d549c Automated update
git-svn-id: svn://10.0.0.236/trunk@49623 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:03:06 +00:00
troy%netscape.com
4e1923d3ad Hooked up SizeOf() for cell map and table layout strategies. Also added in
some table frame data that was missed


git-svn-id: svn://10.0.0.236/trunk@49622 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:02:54 +00:00
briano%netscape.com
42184097f4 Fix for HP-UX 11 problem trying to use libc_r when it shouldn't be.
git-svn-id: svn://10.0.0.236/trunk@49621 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-02 00:02:35 +00:00
valeski%netscape.com
285283e32e 15300 r=warren. Changed NS_NewThread api to default to PR_UNJOINABLE_THREAD, also added new NS_NewThread() function so you don't have to combine the runnable w/ thread creation. added threads to xpcom init so you can create them w/ the com mgr. 15298 r=gagan, FTP threads are now synched w/ ftp handler shutdown, removed extraneous buffer work, added ftp authentication, and ftp channel content length
git-svn-id: svn://10.0.0.236/trunk@49618 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:32:12 +00:00
valeski%netscape.com
780e7132fd 15300 r=warren. Changed NS_NewThread api to default to PR_UNJOINABLE_THREAD, also added new NS_NewThread() function so you don't have to combine the runnable w/ thread creation. added threads to xpcom init so you can create them w/ the com mgr.
git-svn-id: svn://10.0.0.236/trunk@49617 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:30:06 +00:00
dougt%netscape.com
1f12de6f96 adding hostname to socket provider. (r) warren.
git-svn-id: svn://10.0.0.236/trunk@49616 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:23:49 +00:00
briano%netscape.com
64c2d4fe86 Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49614 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 23:07:38 +00:00
norris%netscape.com
69ec6c9b26 Contribution from Andrew Wason:
Subject:
        optimizer Makefiles
   Date:
        Fri, 01 Oct 1999 14:50:05 -0400
   From:
        Andrew Wason <aw@softcom.com>
     To:
        norris@netscape.com
    CC:
        Howard Lin <howard@softcom.com>




Norris,

Here are patches to the Rhino Makefiles to build the optimizer package and
the jsc compiler.  They also fix a problem with "gmake clean".

Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com


git-svn-id: svn://10.0.0.236/trunk@49613 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 22:58:48 +00:00
norris%netscape.com
34f7a63ece \t doesn't work on Windows.
git-svn-id: svn://10.0.0.236/trunk@49612 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 22:56:30 +00:00
dp%netscape.com
aed86d7f55 Eliminating 3 leaks to servicemanager when running for the first time.
bug# 15387 r=law


git-svn-id: svn://10.0.0.236/trunk@49610 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 22:39:20 +00:00
dbragg%netscape.com
e42eb9313a Initial checkin of mac xpi build files. Approval=trudelle, Reviewer=ssu
git-svn-id: svn://10.0.0.236/trunk@49609 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 22:31:46 +00:00
hyatt%netscape.com
ac3d91fcff Restructuring ua.css.
git-svn-id: svn://10.0.0.236/trunk@49608 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:57:32 +00:00
hyatt%netscape.com
ade56298bb Restructuring ua.css to use html.css
git-svn-id: svn://10.0.0.236/trunk@49607 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:57:01 +00:00
Jerry.Kirk%Nexwarecorp.com
26bb29ed10 Photon Only...
Added ConsumeEvents parameter to CaptureRollupEvents
r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@49606 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:54:47 +00:00
tao%netscape.com
a981cb2868 Add new makefile to hook up lang/ directory.
git-svn-id: svn://10.0.0.236/trunk@49605 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:54:30 +00:00
hyatt%netscape.com
2c843652fd Fixing bustage.
git-svn-id: svn://10.0.0.236/trunk@49604 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:47:17 +00:00
pierre%netscape.com
bf6316462c Fixed #14416 "GFX combo boxes cause zombie windows": there was a memory leak in WidgetToScreen and ScreenToWidget. r=dcone/sfraser
Fixed #14775 "Crash removing delete observer when closing windows": reshuffled nsToolkit and added nsMacFocusHandler to nsMacEventHandler. r=dcone/sfraser


git-svn-id: svn://10.0.0.236/trunk@49603 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:40:22 +00:00
pierre%netscape.com
a8c2a315be Fixed #14775 "Crash removing delete observer when closing windows": reshuffled nsToolkit and added nsMacFocusHandler to nsMacEventHandler. r=dcone/sfraser
git-svn-id: svn://10.0.0.236/trunk@49602 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:40:04 +00:00
fur%netscape.com
da2095c0dc Updated API
git-svn-id: svn://10.0.0.236/trunk@49601 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:30:53 +00:00
briano%netscape.com
2f25a96f14 Fixed the typo that broke the Unix builds.
git-svn-id: svn://10.0.0.236/trunk@49600 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:19:14 +00:00
Jerry.Kirk%Nexwarecorp.com
24cefa52e6 Photon Only changes...
remove bogus call to nsIAppShell->GetNativeData since it isn't used
Added code for menu RollUp
Change Invalidate Code  not to when widget is not Realized
Changed mUpdateArea from nsRect to nsIRegion
Moved the HandleEvent code from nsWindow to nsWidget
r=Michael.Kedl@Nexwarecorp.com


git-svn-id: svn://10.0.0.236/trunk@49599 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:06:43 +00:00
hyatt%netscape.com
deebca4e10 Adding skin.css
git-svn-id: svn://10.0.0.236/trunk@49598 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 21:01:24 +00:00
akkana%netscape.com
163649cbd0 Automated tests of output. Not part of apprunner, not built by default.
Fix Compare() function;
add lots of before and after files for testing various regressions;
add a TestOutSinks script which tests the known cases.


git-svn-id: svn://10.0.0.236/trunk@49596 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:55:01 +00:00
hyatt%netscape.com
04637210d9 Splitting xul.css into two files and making them load automatically at startup. R=danm@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49595 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:49:07 +00:00
danm%netscape.com
2e268f54e5 making copacetic for AIX
git-svn-id: svn://10.0.0.236/trunk@49593 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:27:45 +00:00
valeski%netscape.com
7c54ad976a 15296 r=gagan. Added .txt extension to the MIME type extension resolver.
git-svn-id: svn://10.0.0.236/trunk@49592 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:25:38 +00:00
pavlov%netscape.com
4d36473556 remove files since we have idl files for both of these r=pinkerton
git-svn-id: svn://10.0.0.236/trunk@49591 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:16:36 +00:00
dp%netscape.com
bb72e03927 Using NS_ENSURE and NS_GET_IID()
git-svn-id: svn://10.0.0.236/trunk@49590 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:13:55 +00:00
kipp%netscape.com
90f49df885 r=peterl; bug=15373; Fixed atom memory leaky
git-svn-id: svn://10.0.0.236/trunk@49589 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:13:39 +00:00
av%netscape.com
f6b2303084 Fixing dereferencing null-pointer. Caused crash, #14496
git-svn-id: svn://10.0.0.236/trunk@49588 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:10:39 +00:00
dp%netscape.com
055feb1f4f Converter to nsIModule to prepare for memory leaks fixing.
Bug# 14034 r=waterson


git-svn-id: svn://10.0.0.236/trunk@49587 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 20:04:34 +00:00
kin%netscape.com
2471a39269 Fix VC5 build bustage with (T*) cast.
git-svn-id: svn://10.0.0.236/trunk@49583 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 16:23:17 +00:00
danm%netscape.com
f8f515a025 event handler holds weak reference to frame. fixes bug 14885. r:buster
git-svn-id: svn://10.0.0.236/trunk@49582 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 15:04:15 +00:00
dcone%netscape.com
1cfea69ffd added background fix.. commented out for now until other platforms are tested
git-svn-id: svn://10.0.0.236/trunk@49581 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:35:20 +00:00
rods%netscape.com
8da5559e0f Added new method to tell the listcontrolframe it is about to be rolled up by the combobox
this enables it to unset any temporary selections and restore the actual selection


git-svn-id: svn://10.0.0.236/trunk@49580 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:30:33 +00:00
rods%netscape.com
f6ec8c8015 ifdef'd out the new code that handles the computed size and ifdef'ed in the old code for Linux
git-svn-id: svn://10.0.0.236/trunk@49579 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:28:25 +00:00
rods%netscape.com
f896ef768d ifdef out a debug statement
git-svn-id: svn://10.0.0.236/trunk@49578 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:26:40 +00:00
rods%netscape.com
457fc28670 removed noisy printf
git-svn-id: svn://10.0.0.236/trunk@49577 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:20:45 +00:00
troy%netscape.com
3dc6e05d82 Optimized rendering context setup and solid brush handling
git-svn-id: svn://10.0.0.236/trunk@49576 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:19:36 +00:00
valeski%netscape.com
830f8c1257 15352 r=jevering. regular pointers to com ptrs changeover, as well as more initialization of a PRExplodedTime struct.
git-svn-id: svn://10.0.0.236/trunk@49575 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 14:10:02 +00:00
valeski%netscape.com
31bda0647d 12748 r=Andreas. Completely removed the GetHostByAddr() call so we no longer do any reverse lookups
git-svn-id: svn://10.0.0.236/trunk@49574 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 13:38:46 +00:00
valeski%netscape.com
7c49c9f9ea 15297 r=gagan. Condensed Enumerate() Reset() call combinations to overloaded Reset()
git-svn-id: svn://10.0.0.236/trunk@49573 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 13:37:11 +00:00
kin%netscape.com
698d1ed095 Fix for bug #12195: [DOGFOOD] caret cruft left after a backspace at end of line
Added code to DrawCaretWithContext() that makes sure that the caret
doesn't hang outiside the left edge of a frame.
r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@49572 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 13:16:30 +00:00
ramiro%netscape.com
6ee88bb33f fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@49567 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 12:21:33 +00:00
pavlov%netscape.com
b3c9beb29a clean up interface (not built)
git-svn-id: svn://10.0.0.236/trunk@49565 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 11:17:27 +00:00
pavlov%netscape.com
f7e049c2a1 removing nsui.h
git-svn-id: svn://10.0.0.236/trunk@49564 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 11:06:07 +00:00
pavlov%netscape.com
ea9ab1e7e7 remove unused file
git-svn-id: svn://10.0.0.236/trunk@49563 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 11:04:57 +00:00
pavlov%netscape.com
8198d1b4d5 rename declaration of [ptr] native nsIWidget so it doesn't conflict when nsIWidget.idl is built (no real change) r=syd
git-svn-id: svn://10.0.0.236/trunk@49562 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 09:55:20 +00:00
pavlov%netscape.com
ca5d4caa2e use correct return type
git-svn-id: svn://10.0.0.236/trunk@49561 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 09:24:34 +00:00
pavlov%netscape.com
58efa4f2ba fix build bustage - use correct return type
git-svn-id: svn://10.0.0.236/trunk@49560 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 09:23:50 +00:00
pavlov%netscape.com
cfe1981f1b remove headers that are now in MANIFEST_IDL r=shaver
git-svn-id: svn://10.0.0.236/trunk@49559 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:38:16 +00:00
pavlov%netscape.com
603b936870 removed bogus calls to nsIAppShell->GetNativeData since it isn't used r=shaver (for the entire checkin)
git-svn-id: svn://10.0.0.236/trunk@49558 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:36:23 +00:00
pavlov%netscape.com
ce8dc3a83b remove bogus call to nsIAppShell->GetNativeData since it isn't used r=shaver (for the entire checkin)
git-svn-id: svn://10.0.0.236/trunk@49556 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:34:33 +00:00
pavlov%netscape.com
7f3fe63a8b remove GetNativeData since it isn't used r=shaver (for the entire checkin)
git-svn-id: svn://10.0.0.236/trunk@49555 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:33:41 +00:00
pavlov%netscape.com
168a17ea8b use idl files for these things
git-svn-id: svn://10.0.0.236/trunk@49554 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:32:30 +00:00
pavlov%netscape.com
1ee8423dd5 added files: mozilla/widget/public/nsIAppShell.idl, mozilla/widget/public/nsIToolkit.idl, mozilla/widget/public/nsIRollupListener.idl
git-svn-id: svn://10.0.0.236/trunk@49553 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:29:38 +00:00
pavlov%netscape.com
13076793f5 adding new files (not built yet) and updated nsIWidget.idl (not built either)
git-svn-id: svn://10.0.0.236/trunk@49552 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 08:19:08 +00:00
dp%netscape.com
4d1fcf6b4a Converting to nsIModule as a prelude to fixing memory leaks.
bug# 14034 r=neeti


git-svn-id: svn://10.0.0.236/trunk@49551 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 06:51:55 +00:00
sdagley%netscape.com
c2cfc42e2a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49550 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 05:20:25 +00:00
rjc%netscape.com
af1df54bc5 Fix mail build bustage. [Who knew they were using a composite datasource? And, an even more interesting question is why, when it apparently only allows one datasource to be used... ?]
git-svn-id: svn://10.0.0.236/trunk@49549 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 05:07:36 +00:00
law%netscape.com
54b67b04b1 Context menu updates
git-svn-id: svn://10.0.0.236/trunk@49548 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:43:45 +00:00
tbogard%aol.net
2a33b327b9 Changed NS_ENSURE* macros to use the new NS_WARN_IF_FALSE instead of the NS_ERROR. r=shaver.
git-svn-id: svn://10.0.0.236/trunk@49546 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:34:03 +00:00
chuang%netscape.com
4333de7bdb Fix bug 5393 Controls should be enclosed with <LABEL></LABEL>, r=putterman
git-svn-id: svn://10.0.0.236/trunk@49545 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:11:36 +00:00
rjc%netscape.com
aa8041f54e Fix bug # 15222: The composite datasource has a few operations which are somewhat "expensive". Have these behaviors on by default, but expose a method on the composite datasources so that they can be selectively turned off [for Mail/News, for example] if the capability is not needed/used (such as negative assertions). Review: waterson@netscape.com. Additional Mail/News Testing: putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49541 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:07:55 +00:00
chuang%netscape.com
6ac3886652 Fix bug 14756 [PP]Importing an .ldif file in Address Book doesn't work, r=jefft
git-svn-id: svn://10.0.0.236/trunk@49540 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:07:15 +00:00
rjc%netscape.com
35bf4acc6d Fix bug # 15225: The search datasource needs to figure out what datasets are available whenever a search is to be performed, not just when its asked about what datasets it knows about. Review: waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49539 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:02:07 +00:00
rjc%netscape.com
e8454907c1 Fix bug # 15203: Containers inside of related links data appear as leaf nodes instead of containers. Also, opening up a container gives NxN children instead of N children (due to the composite datasources ArcLabelsOut() not removing dups -- a separate chunk of work to be re-done). Review: waterson@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@49538 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 04:00:21 +00:00
davidm%netscape.com
68cb6f71bf 14240 [BETA] About box date/version incorrect
git-svn-id: svn://10.0.0.236/trunk@49537 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:32:00 +00:00
davidm%netscape.com
dd85aa2c27 13344 New browser windows generated by Manage Bookmarks too small
git-svn-id: svn://10.0.0.236/trunk@49536 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:31:17 +00:00
davidm%netscape.com
f7169dccef 4912 an't open bookmarks when no other window open
git-svn-id: svn://10.0.0.236/trunk@49535 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:28:43 +00:00
waterson%netscape.com
c795664edf Fuck. These went in onto the tip and were supposed to be on the branch. Backing out.
git-svn-id: svn://10.0.0.236/trunk@49532 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:04:08 +00:00
briano%netscape.com
146ef355c1 Fix for someone's typo (bug 15303) when Java is enabled.
git-svn-id: svn://10.0.0.236/trunk@49531 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:02:53 +00:00
waterson%netscape.com
871f9e7535 Initial checkin on XUL_19990930_BRANCH, the RDF-ectomy. Single XUL documents hobbling along.
git-svn-id: svn://10.0.0.236/trunk@49530 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 03:01:22 +00:00
morse%netscape.com
e75f9a625f fix bug 13952 -- make it localizable, r=ftang
git-svn-id: svn://10.0.0.236/trunk@49529 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:50:48 +00:00
danm%netscape.com
463804eb0f adding nsCWeakReference. r:scc a:chofmann
git-svn-id: svn://10.0.0.236/trunk@49528 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:50:16 +00:00
danm%netscape.com
81fd4089e9 adding nsCWeakReference r:scc a:chofmann
git-svn-id: svn://10.0.0.236/trunk@49527 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:44:45 +00:00
pollmann%netscape.com
644b57b0a4 Bug 13997, Reviewed by HarishD. This fixes the crash during file upload caused by a spurious NS_RELEASE, correctly calculates content-length, and fixes a few post syntax errors. Also fixes a memory leak and uses nsSpecialSystemDirectory, nsFileSpec, and other good things instead of the hacks that were needed before this existed.
git-svn-id: svn://10.0.0.236/trunk@49526 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:42:32 +00:00
pollmann%netscape.com
d25e5b0b54 Bug 13997, Reviewed by Gagan. This change is to read the http post stream in 1Kb chunks rather than using the Available (unimplemented).
git-svn-id: svn://10.0.0.236/trunk@49525 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:39:05 +00:00
danm%netscape.com
eca1323f34 new
git-svn-id: svn://10.0.0.236/trunk@49524 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:38:41 +00:00
pollmann%netscape.com
89e16d0fae Bug 13997, Reviewed by Gagan. This changes are to correctly return the number of bytes read by nsHTTPEncodeStream.
git-svn-id: svn://10.0.0.236/trunk@49523 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 02:37:31 +00:00
briano%netscape.com
15134de6da Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties. Approved by leaf for closed tree checkin.
git-svn-id: svn://10.0.0.236/trunk@49522 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 01:30:33 +00:00
beard%netscape.com
9ec620f205 added nsLWBrkModule.cpp. r=vidur
git-svn-id: svn://10.0.0.236/trunk@49521 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 01:21:40 +00:00
beard%netscape.com
f624d901aa fixed non-debug breakage. r=vidur
git-svn-id: svn://10.0.0.236/trunk@49520 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 01:11:40 +00:00
beard%netscape.com
21f52bf6b7 remove htmlparser from static linkage. r=vidur
git-svn-id: svn://10.0.0.236/trunk@49518 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 00:43:54 +00:00
beard%netscape.com
28a17ff73f build htmlparser and view into components directory. r=vidur
git-svn-id: svn://10.0.0.236/trunk@49517 18797224-902f-48f8-a5cc-f745e15eee43
1999-10-01 00:43:24 +00:00
selmer%netscape.com
c085dd3da5 Attempted fix to unmerge lines that ran together
git-svn-id: svn://10.0.0.236/trunk@49516 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 23:51:49 +00:00
sdagley%netscape.com
e07c9a0667 Fix for Mac build bustage (removed .cpp file was still referenced in project). a=leaf
git-svn-id: svn://10.0.0.236/trunk@49514 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 23:39:54 +00:00
selmer%netscape.com
e7e7930a19 OOPS, the ase\ isn't correct for release builds. Putting back
git-svn-id: svn://10.0.0.236/trunk@49513 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 23:33:54 +00:00
beard%netscape.com
b501d53460 removed spurious header file entries, r=kipp
git-svn-id: svn://10.0.0.236/trunk@49512 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 23:33:46 +00:00
vidur%netscape.com
2fba270263 Parser CIDs and IIDs
git-svn-id: svn://10.0.0.236/trunk@49511 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 23:10:58 +00:00
beard%netscape.com
f547d38744 fix breakage on Mac, r=kipp
git-svn-id: svn://10.0.0.236/trunk@49510 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:45:23 +00:00
beard%netscape.com
cbe4d66df2 fix breakage on Mac
git-svn-id: svn://10.0.0.236/trunk@49509 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:30:32 +00:00
vidur%netscape.com
b807408d65 Removed parser static linkage.
git-svn-id: svn://10.0.0.236/trunk@49507 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:23:21 +00:00
kipp%netscape.com
f68ddc73fb Whoops. Fixed
git-svn-id: svn://10.0.0.236/trunk@49506 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:21:31 +00:00
vidur%netscape.com
1d3ededc34 added files: mozilla/htmlparser/src/nsParserModule.cpp, removed files: mozilla/htmlparser/src/nsParserFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49505 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:11:48 +00:00
vidur%netscape.com
6733c166ca Removed parser entries from nsSetupRegistry. Parser is now a module. To be reviewed by RickG.
git-svn-id: svn://10.0.0.236/trunk@49504 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:09:51 +00:00
vidur%netscape.com
821ff07d1c Converted parser into a module. Removed static linkage of parser.
git-svn-id: svn://10.0.0.236/trunk@49503 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:08:24 +00:00
vidur%netscape.com
529603023b Converted parser into a module. Removed usage of static parser methods and used nsIParserService and nsIDTD methods instead. To be reviewed by RickG.
git-svn-id: svn://10.0.0.236/trunk@49502 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:07:04 +00:00
kipp%netscape.com
96bb8fdffe added files: mozilla/intl/uconv/src/nsUConvModule.cpp, removed files: mozilla/intl/uconv/src/nsUConvDll.cpp
git-svn-id: svn://10.0.0.236/trunk@49501 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:05:41 +00:00
vidur%netscape.com
c546f05349 Converted parser into a module. Removed static linkage.
git-svn-id: svn://10.0.0.236/trunk@49500 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:04:39 +00:00
vidur%netscape.com
30b1f0a71b Converted parser into a module. NS_NewFoo routines are temporarily inlined to call component manager. Introduced nsIParserService for temporary replacement of nsHTMLTags and nsHTMLEntities static methods. RickG to do complete review.
git-svn-id: svn://10.0.0.236/trunk@49499 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 22:01:48 +00:00
kipp%netscape.com
215e7440ad nuked
git-svn-id: svn://10.0.0.236/trunk@49498 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:51:07 +00:00
kipp%netscape.com
29f22b7a81 Convert to a module from a component
git-svn-id: svn://10.0.0.236/trunk@49497 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:47:04 +00:00
kipp%netscape.com
f22298cb30 added files: mozilla/xpcom/sample/nsSampleModule.cpp, removed files: mozilla/xpcom/sample/nsSampleFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49496 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:43:40 +00:00
kipp%netscape.com
9825c95a9e Button up some shutdown memory leaks
git-svn-id: svn://10.0.0.236/trunk@49495 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:43:35 +00:00
kipp%netscape.com
7c7b1e3c43 Improved
git-svn-id: svn://10.0.0.236/trunk@49494 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:41:50 +00:00
kipp%netscape.com
24d8b1eba7 Fixed bug in ReleaseServcie that was recreating the service manager during shutdown
git-svn-id: svn://10.0.0.236/trunk@49493 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:40:27 +00:00
kipp%netscape.com
0b1c7162d6 Allow atom table to be purged during shtudown
git-svn-id: svn://10.0.0.236/trunk@49492 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:40:00 +00:00
kipp%netscape.com
19d1505159 Added in new nsDebug macros
git-svn-id: svn://10.0.0.236/trunk@49491 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:39:31 +00:00
kipp%netscape.com
50a547196e Santize NS_EXPORT decl
git-svn-id: svn://10.0.0.236/trunk@49490 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:39:16 +00:00
kipp%netscape.com
252518efc9 Close up a memory leak
git-svn-id: svn://10.0.0.236/trunk@49489 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:38:56 +00:00
kipp%netscape.com
5cf27c7453 nuked
git-svn-id: svn://10.0.0.236/trunk@49488 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:38:19 +00:00
kipp%netscape.com
028d41759b added files: mozilla/rdf/build/nsRDFModule.cpp, removed files: mozilla/rdf/build/nsRDFFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49486 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:38:03 +00:00
kipp%netscape.com
dcde6ced16 Switch from component to module
git-svn-id: svn://10.0.0.236/trunk@49485 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:37:14 +00:00
kipp%netscape.com
6b248aa8de Fixed a minor bug in the ctor macro
git-svn-id: svn://10.0.0.236/trunk@49484 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:36:35 +00:00
selmer%netscape.com
fbfca3a200 NCIFiles actually live in ase subdir, corrected NCIFileList widget
git-svn-id: svn://10.0.0.236/trunk@49483 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:36:13 +00:00
kipp%netscape.com
fc9655cdde added files: mozilla/netwerk/build/nsNetModule.cpp, removed files: mozilla/netwerk/build/nsNetFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49482 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:35:44 +00:00
kipp%netscape.com
b7f6c0252a added files: mozilla/netwerk/protocol/resource/src/nsResourceProtocolModule.cpp, removed files: mozilla/netwerk/protocol/resource/src/nsResourceProtocolFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49481 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:33:21 +00:00
kipp%netscape.com
f9e4d6396d added files: mozilla/netwerk/protocol/http/src/nsHTTPHandlerModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49480 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:31:38 +00:00
kipp%netscape.com
3aba2f6f5a added files: mozilla/netwerk/protocol/ftp/src/nsFtpModule.cpp, removed files: mozilla/netwerk/protocol/ftp/src/nsFtpFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49479 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:30:13 +00:00
kipp%netscape.com
461c7f97c8 added files: mozilla/netwerk/protocol/file/src/nsFileProtocolModule.cpp, removed files: mozilla/netwerk/protocol/file/src/nsFileProtocolFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49478 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:29:03 +00:00
kipp%netscape.com
54eaf17437 added files: mozilla/netwerk/protocol/data/src/nsDataModule.cpp, removed files: mozilla/netwerk/protocol/data/src/nsDataFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49477 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:27:46 +00:00
kipp%netscape.com
1a45d07e6d added files: mozilla/netwerk/protocol/about/src/nsAboutProtocolModule.cpp, removed files: mozilla/netwerk/protocol/about/src/nsAboutProtocolFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49476 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:26:31 +00:00
kipp%netscape.com
3957eba490 removed files: mozilla/modules/libimg/pngcom/nsPNGCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@49475 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:24:48 +00:00
kipp%netscape.com
a2ddcd2eb2 added files: mozilla/modules/libimg/pngcom/nsPNGModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49474 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:24:01 +00:00
kipp%netscape.com
0a46124995 removed files: mozilla/modules/libimg/pngcom/nsPNGModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49473 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:23:07 +00:00
kipp%netscape.com
2210b03ee9 Converted from components to modules
git-svn-id: svn://10.0.0.236/trunk@49472 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:22:48 +00:00
kipp%netscape.com
422297bad3 More graph work
git-svn-id: svn://10.0.0.236/trunk@49471 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:22:16 +00:00
kipp%netscape.com
8b28a250b7 added files: mozilla/modules/libimg/jpgcom/nsJPGModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49470 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:21:29 +00:00
kipp%netscape.com
3ddb1743b4 removed files: mozilla/modules/libimg/pngcom/nsPNGCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@49469 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:19:18 +00:00
kipp%netscape.com
6c6c2c67de added files: mozilla/modules/libimg/pngcom/nsPNGModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49468 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:18:45 +00:00
kipp%netscape.com
121014cfd6 More module work
git-svn-id: svn://10.0.0.236/trunk@49467 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:17:44 +00:00
kipp%netscape.com
aa5496085d Removed atom table hacks
git-svn-id: svn://10.0.0.236/trunk@49466 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:17:28 +00:00
kipp%netscape.com
2695a9e0f6 Fixed atom memory leaks and HTMLAttribute memory leaks (for unmapped attrs only)
git-svn-id: svn://10.0.0.236/trunk@49465 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:17:06 +00:00
kipp%netscape.com
605b58b350 added files: mozilla/layout/build/nsLayoutModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49464 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:14:51 +00:00
kipp%netscape.com
7994e0d12d Turned into a module
git-svn-id: svn://10.0.0.236/trunk@49463 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:14:14 +00:00
kipp%netscape.com
72f4eb33d6 Fixed shutdown related memory leaks
git-svn-id: svn://10.0.0.236/trunk@49462 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:12:33 +00:00
kipp%netscape.com
0f4e9dc5d6 Convert to module from component
git-svn-id: svn://10.0.0.236/trunk@49461 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:11:05 +00:00
kipp%netscape.com
2f895600b7 removed
git-svn-id: svn://10.0.0.236/trunk@49460 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:09:32 +00:00
kipp%netscape.com
fc12ffd0fd Build module instead of component
git-svn-id: svn://10.0.0.236/trunk@49459 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:09:11 +00:00
kipp%netscape.com
10ecde5346 Fixed oopsie that prevented the factory from working
git-svn-id: svn://10.0.0.236/trunk@49458 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:08:59 +00:00
kipp%netscape.com
1666d6a95a Convert to a module from a component
git-svn-id: svn://10.0.0.236/trunk@49457 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:07:12 +00:00
kipp%netscape.com
c2f4f7ef4a nuked
git-svn-id: svn://10.0.0.236/trunk@49456 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:06:47 +00:00
kipp%netscape.com
84fd72dbd1 removed files: mozilla/intl/chardet/src/nsCharDetDll.cpp
git-svn-id: svn://10.0.0.236/trunk@49455 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:06:40 +00:00
kipp%netscape.com
4918a64296 added files: mozilla/intl/chardet/src/nsCharDetModule.cpp
git-svn-id: svn://10.0.0.236/trunk@49454 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:05:46 +00:00
kipp%netscape.com
17e2cba587 Convert over to module from factory
git-svn-id: svn://10.0.0.236/trunk@49453 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:02:41 +00:00
kipp%netscape.com
89cd4dd015 Fixed name of CID to be CID
git-svn-id: svn://10.0.0.236/trunk@49452 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 21:02:20 +00:00
sfraser%netscape.com
2389e27401 Removing nsIQFAServices.idl to fix build bustage. a=leaf
git-svn-id: svn://10.0.0.236/trunk@49451 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 20:08:45 +00:00
ramiro%netscape.com
04f8777aab Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@49450 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 19:34:26 +00:00
namachi%netscape.com
fb40b475ca Approved by leaf. Removing fullcircle from mozilla builds
git-svn-id: svn://10.0.0.236/trunk@49449 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 19:03:27 +00:00
dp%netscape.com
78fc8ac020 Added more guidelines. Neeti took a few dlls. DOC CHANGE a=leaf
git-svn-id: svn://10.0.0.236/trunk@49446 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 17:54:08 +00:00
granrose%netscape.com
963df38ff3 changed order to do splitsym before componentreg.
git-svn-id: svn://10.0.0.236/trunk@49445 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 17:50:24 +00:00
granrose%netscape.com
7934d3d103 removed #.
git-svn-id: svn://10.0.0.236/trunk@49444 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 17:25:20 +00:00
granrose%netscape.com
f94627e751 fixed splitsymbols target to cd to correct directory. a=leaf
git-svn-id: svn://10.0.0.236/trunk@49443 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 16:57:48 +00:00
rods%netscape.com
25fa3e73e0 Backed out 1.54, this is 1.53
git-svn-id: svn://10.0.0.236/trunk@49442 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 16:43:11 +00:00
slamm%netscape.com
abe47cd22c Fix build bustage reported by Greg Noel and Jerry Kirk on netscape.public.mozilla.builds.
git-svn-id: svn://10.0.0.236/trunk@49441 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 16:14:11 +00:00
rods%netscape.com
5b32db8a61 Added ConsumeEvents parameter to CaptureRollupEvents
git-svn-id: svn://10.0.0.236/trunk@49440 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 14:36:17 +00:00
karnaze%netscape.com
7864064ca4 bug 12910 - SetPass1MaxElementSize considers nowrap on cell
git-svn-id: svn://10.0.0.236/trunk@49439 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 14:11:16 +00:00
karnaze%netscape.com
d87376b55e new regression tests
git-svn-id: svn://10.0.0.236/trunk@49438 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 14:08:24 +00:00
Jerry.Kirk%Nexwarecorp.com
3bec55869f Added debug and some error checking for Photon
git-svn-id: svn://10.0.0.236/trunk@49437 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 12:29:30 +00:00
Jerry.Kirk%Nexwarecorp.com
7d2df2d4c1 Added nsGraphicState and made changes in nsRenderingContext to use it.
General clean-up of code for Photon.


git-svn-id: svn://10.0.0.236/trunk@49436 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 12:21:33 +00:00
rods%netscape.com
663846cc08 Added closing tags for several option elements
git-svn-id: svn://10.0.0.236/trunk@49435 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:58:45 +00:00
rods%netscape.com
36b7dd39d8 Completely changed the way focus is handled, both from JS and from the events mgr notifications.
These changes do not help the problems we have with gfxtextfields because they have an embbeded wehshell with a native window


git-svn-id: svn://10.0.0.236/trunk@49434 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:57:45 +00:00
rods%netscape.com
4e573ad209 Turned on the system colors
git-svn-id: svn://10.0.0.236/trunk@49433 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:55:15 +00:00
rods%netscape.com
fd814c9468 Completely changed the rules for the border and internal display for the combobox
git-svn-id: svn://10.0.0.236/trunk@49432 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:54:30 +00:00
rods%netscape.com
86fbfcc398 Changed the metric used to calculate the Horizontal Inside Padding
git-svn-id: svn://10.0.0.236/trunk@49431 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:48:52 +00:00
rods%netscape.com
cd163418a8 Added ConsumeFocusEvents method to consume all focus event and make sure they don't get dispatched
git-svn-id: svn://10.0.0.236/trunk@49429 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:40:42 +00:00
rods%netscape.com
1a85c4c72e Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
added some key support made it so it sets the focus back to the main webshell window when the drop down is closed


git-svn-id: svn://10.0.0.236/trunk@49428 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:37:58 +00:00
rods%netscape.com
040fb8ebb9 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49427 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:36:44 +00:00
rods%netscape.com
b98dd90f9a Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
Removed focus listener and ForcedRedraws


git-svn-id: svn://10.0.0.236/trunk@49426 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:36:32 +00:00
rods%netscape.com
1d03e9205f Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
It also measures W & w for the the chars width in NavQuirks mode to get more accurate measurement of the width and height


git-svn-id: svn://10.0.0.236/trunk@49425 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:34:32 +00:00
rods%netscape.com
7ff8fc122b Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
and it now uses the cached L&F obj


git-svn-id: svn://10.0.0.236/trunk@49424 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:33:33 +00:00
rods%netscape.com
7ccaf3a617 Removed L&F static IID & CID
git-svn-id: svn://10.0.0.236/trunk@49423 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:32:54 +00:00
rods%netscape.com
685bd93c22 Changed GetVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49422 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:31:40 +00:00
rods%netscape.com
4ed34567a9 Changed getVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
git-svn-id: svn://10.0.0.236/trunk@49421 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:30:04 +00:00
rods%netscape.com
ba11316019 Changed getVerticalInsidePading to take the PresContext to the method can use the cached LookAndFeel object
and it now uses the cached L&F obj


git-svn-id: svn://10.0.0.236/trunk@49420 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:26:29 +00:00
rods%netscape.com
00a5361d40 Fixed to use the LookAndFeel object in the PresContext instead of creating one via the ComponentManager
git-svn-id: svn://10.0.0.236/trunk@49419 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 11:23:17 +00:00
av%netscape.com
a08b5a7e8d Fixing bug #8036, reviewd by beard
git-svn-id: svn://10.0.0.236/trunk@49418 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 08:07:23 +00:00
beard%netscape.com
892af4aeca initialization/shutdown code for GC leak detector. conditionalized on GC_LEAK_DETECTOR. r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49417 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 07:41:37 +00:00
beard%netscape.com
5f21ab054d cleaned up, made more XP, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49416 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 07:39:28 +00:00
beard%netscape.com
35c456be72 changed to use MemAllocatorGC.o, r=sfraser
git-svn-id: svn://10.0.0.236/trunk@49415 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 07:30:37 +00:00
beard%netscape.com
efcf850b35 Renamed MemAllocatorGC target to MemAllocatorGC.o, r=sfraser.
git-svn-id: svn://10.0.0.236/trunk@49414 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 07:12:48 +00:00
beard%netscape.com
8165da1b9d added NSStdLibGC.shlb target name, for building with the GC leak detector.
git-svn-id: svn://10.0.0.236/trunk@49413 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:46:22 +00:00
beard%netscape.com
9d909bd738 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49412 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:45:37 +00:00
rjc%netscape.com
1256f60809 Fix bug # 15135: when creating a nsFileURL, don't resolve aliases on Mac... just point to the file whether its an alias or not. Review: dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@49411 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:41:33 +00:00
ssu%netscape.com
b435bbc5ea fixing bug #15031 and #15032.
reviewed by sgehani@netscape.com
affects only windows platform.


git-svn-id: svn://10.0.0.236/trunk@49410 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:20:04 +00:00
ssu%netscape.com
1a5da6396f fixing bug #15033.
reviewed by sgehani@netscape.com
affects only windows platform.


git-svn-id: svn://10.0.0.236/trunk@49409 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:18:43 +00:00
ramiro%netscape.com
8ee2c8d259 Fix for bug 15245. Patch by tor. r=me
git-svn-id: svn://10.0.0.236/trunk@49408 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:09:21 +00:00
pavlov%netscape.com
6ef04c3c84 make buttons on the toolbar/personal toolbar crop when you resize the window small r=evaughan
git-svn-id: svn://10.0.0.236/trunk@49407 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 06:02:12 +00:00
beard%netscape.com
8ca3442fe7 reconfigured for large heaps, to increase # of root sets.
git-svn-id: svn://10.0.0.236/trunk@49406 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:15:53 +00:00
rickg%netscape.com
af731d0a1e replace ANSI true/false with PR_TRUE; sorry about that.
git-svn-id: svn://10.0.0.236/trunk@49405 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:15:37 +00:00
beard%netscape.com
5b60a26d2b added GC_remove_roots()
git-svn-id: svn://10.0.0.236/trunk@49404 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:15:24 +00:00
beard%netscape.com
6d22bd8146 added GC_remove_roots_inner()
git-svn-id: svn://10.0.0.236/trunk@49403 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:15:05 +00:00
beard%netscape.com
f41e4530ff added GC_remove_roots.
git-svn-id: svn://10.0.0.236/trunk@49402 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:14:39 +00:00
rickg%netscape.com
2e61d329ed replaced ANSI false with PR_FALSE; sorry about that
git-svn-id: svn://10.0.0.236/trunk@49401 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 05:10:45 +00:00
rickg%netscape.com
447e168990 performance and bug fixes: r=buster a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49400 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 04:04:53 +00:00
rickg%netscape.com
3ee654688b perf update and bug fix: a=chofmann r=buster
git-svn-id: svn://10.0.0.236/trunk@49399 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 04:03:49 +00:00
beard%netscape.com
e531fd4153 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49398 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 03:30:00 +00:00
briano%netscape.com
86a1698b46 Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49396 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 03:16:30 +00:00
beard%netscape.com
0c073e3e29 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49395 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 02:59:32 +00:00
cathleen%netscape.com
f8f7b15de0 updated packaging manifest file for editor and wallet. ongoing work for bug 15035 & bug 15220, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@49394 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 02:57:17 +00:00
waterson%netscape.com
216fd4e10b Bug 13908. Add code to hook up 'forward observer declarations'. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@49393 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 02:32:34 +00:00
beard%netscape.com
f313673658 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49392 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 02:25:54 +00:00
briano%netscape.com
5713b279c1 Fix for bug 15190.
git-svn-id: svn://10.0.0.236/trunk@49391 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:59:30 +00:00
dp%netscape.com
d01272381e Taking profile
git-svn-id: svn://10.0.0.236/trunk@49390 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:56:26 +00:00
kipp%netscape.com
e1ba63180f new
git-svn-id: svn://10.0.0.236/trunk@49389 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:53:31 +00:00
kipp%netscape.com
c0121b624c Reworked tree support
git-svn-id: svn://10.0.0.236/trunk@49388 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:51:20 +00:00
bienvenu%netscape.com
784f40ddaa fix memory leak of hostname
git-svn-id: svn://10.0.0.236/trunk@49387 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:45:20 +00:00
sdagley%netscape.com
e204bde5c0 Increased threshold for async reads from 2K to 20K to reduce Mac startup time. Ongoing work from bug #10334. r=saari.
git-svn-id: svn://10.0.0.236/trunk@49386 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:45:02 +00:00
saari%netscape.com
d0550e7198 Making the Mac key event generation code follow the new spec for autokeys generate keypress events. Brade has run this change on her machine for about a week, I tested it on my machine without any problems. Reviewed by Brade and Dagley.
git-svn-id: svn://10.0.0.236/trunk@49385 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:44:42 +00:00
bienvenu%netscape.com
87dca3f0ba add method to shut down connections
git-svn-id: svn://10.0.0.236/trunk@49384 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:44:30 +00:00
bienvenu%netscape.com
7b495a18f1 fix memory leak of cache elements on shutdown
git-svn-id: svn://10.0.0.236/trunk@49383 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:43:36 +00:00
peterl%netscape.com
b86f24d3c3 made child sheet loads of agent sheets be optionally synchronous
git-svn-id: svn://10.0.0.236/trunk@49382 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:39:57 +00:00
morse%netscape.com
fd5fbf7d89 fix bugs 14672 (dead code in wallet) and part of bug 15169 (wallet pref not needed) -- reviewed pnunn
git-svn-id: svn://10.0.0.236/trunk@49381 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:18:03 +00:00
varada%netscape.com
0a40776eaa NOT part of Seamonkey build, chofmann OK'd. removing message boxes
git-svn-id: svn://10.0.0.236/trunk@49380 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:17:51 +00:00
ramiro%netscape.com
4afd160b2b Make paint flashing happen only if caps lock is down to make it easier
to target specific rendering problems.  r=pavlov.  bug 15234.


git-svn-id: svn://10.0.0.236/trunk@49379 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 01:17:34 +00:00
varada%netscape.com
9895330f68 NOT part of Seamonkey build, choffman OK'd, onEnter added to CoONTROLS in wizardtypes.h
git-svn-id: svn://10.0.0.236/trunk@49378 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:52:10 +00:00
varada%netscape.com
c45a904adf NOT part of Seamonkey, chofmann OK'd. OnEnter fixups.
git-svn-id: svn://10.0.0.236/trunk@49377 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:45:23 +00:00
varada%netscape.com
6d79dd1e3f NOT part of Seamonkey build, chofmann OK'd. fixups for OnEnter.
git-svn-id: svn://10.0.0.236/trunk@49376 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:44:28 +00:00
varada%netscape.com
07441c8e56 NOT part of Seamonkey build, chofmann OK'd. OnEnter implementation
git-svn-id: svn://10.0.0.236/trunk@49375 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:39:06 +00:00
selmer%netscape.com
77b8c576ea NOT part of Seamonkey build, chofmann OK'd. OnCommand code changes support
git-svn-id: svn://10.0.0.236/trunk@49374 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:36:54 +00:00
selmer%netscape.com
9a4dc884c7 NOT part of Seamonkey build, chofmann OK'd. Added Target= for BrowseFile actions.
git-svn-id: svn://10.0.0.236/trunk@49373 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:33:55 +00:00
akkana%netscape.com
f3309946fa Make sidebar stay hidden -- fix regression that sidebar wasn't closeable. r=slamm,cmanske a=leaf
git-svn-id: svn://10.0.0.236/trunk@49372 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:33:28 +00:00
selmer%netscape.com
d4304a34d4 NOT in building Seamonkey tree, checkin OK'd by chofmann. Major whackage of OnCommand routine to enhance readability.
git-svn-id: svn://10.0.0.236/trunk@49371 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-30 00:29:48 +00:00
dp%netscape.com
30548102a1 Status updated. Allocated dlls to robert.
git-svn-id: svn://10.0.0.236/trunk@49370 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 23:45:05 +00:00
cmanske%netscape.com
96b943c0a4 Added do_QueryInterface to fix build bustage for Linux
git-svn-id: svn://10.0.0.236/trunk@49369 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 23:33:45 +00:00
dp%netscape.com
35b2f4bbc8 added apprunner dlls
git-svn-id: svn://10.0.0.236/trunk@49368 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 23:23:56 +00:00
kin%netscape.com
497634276b Fix for build bustage on Linux.
git-svn-id: svn://10.0.0.236/trunk@49367 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 23:19:34 +00:00
terry%mozilla.org
b885d54e33 Patch by holger@holger.om.org (Holger Schurig) -- cope if Chart::Lines module is unavailable.
git-svn-id: svn://10.0.0.236/trunk@49366 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 22:51:30 +00:00
briano%netscape.com
2527402523 Minor changes for SCO, BSDI, AIX 4.2, and commercial build.
git-svn-id: svn://10.0.0.236/trunk@49365 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 22:12:34 +00:00
terry%mozilla.org
e8bb8affde Patch by holger@holger.om.org (Holger Schurig) -- one more fancy header that was missing.
git-svn-id: svn://10.0.0.236/trunk@49364 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:56:54 +00:00
cmanske%netscape.com
81ec3d768f Changed ifdef so we can use ToString for non-debug purposes. r=akkana
git-svn-id: svn://10.0.0.236/trunk@49363 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:52:10 +00:00
cmanske%netscape.com
c586988364 Carpool checkin, r=brade. Lots of editor UI work, including new Advanced Edit dialog by Ben Goodger. Fixed style sheet loading leaks and implemented override style sheets for editor behavior, which be unloaded for edit mode vs. browser preview mode
git-svn-id: svn://10.0.0.236/trunk@49362 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:45:50 +00:00
briano%netscape.com
53814014ee Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties. Approved for carpool checkin by mcafee.
git-svn-id: svn://10.0.0.236/trunk@49361 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:41:26 +00:00
slamm%netscape.com
d55a7f9328 Get the file names right.
git-svn-id: svn://10.0.0.236/trunk@49360 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:05:46 +00:00
slamm%netscape.com
fcb2d00d69 No longer use bookmarks-popup.js
git-svn-id: svn://10.0.0.236/trunk@49359 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:01:37 +00:00
kin%netscape.com
30acaa164a Fix build bustage on windows.
git-svn-id: svn://10.0.0.236/trunk@49358 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 21:00:19 +00:00
jefft%netscape.com
e615b6b808 implemented forward messages as attachments & inline; a=mcafee
git-svn-id: svn://10.0.0.236/trunk@49357 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:43:50 +00:00
slamm%netscape.com
475e7c68d6 Use . and .. instead of fullpath for topsrcdir and rootdir.
git-svn-id: svn://10.0.0.236/trunk@49356 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:40:04 +00:00
slamm%netscape.com
b0efaa25f0 Include autoconf.mk from DEPTH instead of topsrcdir since it is a generated file. This only applies if it was not previously included.
git-svn-id: svn://10.0.0.236/trunk@49355 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:39:46 +00:00
jefft%netscape.com
d0b2ea0b70 implemented forward message as attachment & inline; a=mcafee
git-svn-id: svn://10.0.0.236/trunk@49354 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:37:12 +00:00
mjudge%netscape.com
007d73a460 fixing optimizations for table selection as well as making sure all flags are turned on/off for text frames when one frame is selected..
git-svn-id: svn://10.0.0.236/trunk@49352 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:36:00 +00:00
slamm%netscape.com
c987aba5bd Change Flash to Alerts. Add 'My Panels'.
git-svn-id: svn://10.0.0.236/trunk@49351 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:34:20 +00:00
slamm%netscape.com
90c127c7a8 Remove unused file.
git-svn-id: svn://10.0.0.236/trunk@49350 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:32:46 +00:00
akkana%netscape.com
a3bfa51400 Fix cvsignore since the program name changed
git-svn-id: svn://10.0.0.236/trunk@49349 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:29:50 +00:00
slamm%netscape.com
a373d308b7 patch rdf for waterson. Fixed multiple loads of same datasource.
git-svn-id: svn://10.0.0.236/trunk@49348 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:25:41 +00:00
slamm%netscape.com
4fbd8f58a6 Remove unused files. Add a dtd file for sidebar.rdf.
git-svn-id: svn://10.0.0.236/trunk@49347 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:24:34 +00:00
slamm%netscape.com
43c393c47d Remove unused files
git-svn-id: svn://10.0.0.236/trunk@49346 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:24:02 +00:00
slamm%netscape.com
1aeb940756 make flash it's own panel. bug 14992. Add support for app specific panel. bug 14991.
git-svn-id: svn://10.0.0.236/trunk@49345 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:23:33 +00:00
slamm%netscape.com
635ae2d930 Remane some elements. Fix cannot close last panel. bug 14485.
git-svn-id: svn://10.0.0.236/trunk@49344 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:23:09 +00:00
akkana%netscape.com
1cd0bc79d6 Set the preformatted output flag if appropriate
git-svn-id: svn://10.0.0.236/trunk@49343 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:23:07 +00:00
slamm%netscape.com
29d9a447c0 Give min-height and max-width. bug #13895.
git-svn-id: svn://10.0.0.236/trunk@49342 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:23:00 +00:00
slamm%netscape.com
04bcaf57dd Move alerts outside of 'my panels'. bug #14992.
git-svn-id: svn://10.0.0.236/trunk@49341 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:22:54 +00:00
slamm%netscape.com
fa292ad689 Remove unused file
git-svn-id: svn://10.0.0.236/trunk@49340 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:22:48 +00:00
slamm%netscape.com
4308f40f5f Rename file to more descriptive name.
git-svn-id: svn://10.0.0.236/trunk@49339 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:22:36 +00:00
slamm%netscape.com
b33e77e3a2 Unused files. Use one datasource for all sidebars. bug #14995.
git-svn-id: svn://10.0.0.236/trunk@49338 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:22:24 +00:00
slamm%netscape.com
045a66ea0e Remove unused file.
git-svn-id: svn://10.0.0.236/trunk@49337 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:22:11 +00:00
slamm%netscape.com
a36163dd31 Add collapsed state icon and rename. bug #14993.
git-svn-id: svn://10.0.0.236/trunk@49336 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:21:58 +00:00
slamm%netscape.com
97154e28a1 Add alerts as part of overlay.
git-svn-id: svn://10.0.0.236/trunk@49335 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:21:44 +00:00
slamm%netscape.com
7ca2b696c5 Remove unused files, rename some others. Related to bugs 14993, 14991. .
git-svn-id: svn://10.0.0.236/trunk@49334 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:21:25 +00:00
slamm%netscape.com
6722e9b380 Formating tweaks
git-svn-id: svn://10.0.0.236/trunk@49333 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:21:02 +00:00
slamm%netscape.com
82868e63ec Partial fix for #14998, 'Simple single-click tree'.
git-svn-id: svn://10.0.0.236/trunk@49332 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:20:55 +00:00
slamm%netscape.com
7c818ecbe7 Remove unused file. Bookmark menus are handled by xp menus now.
git-svn-id: svn://10.0.0.236/trunk@49331 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:20:33 +00:00
akkana%netscape.com
9a532de0b1 14859: make rules code smarter about identifying blockquote type=cite
git-svn-id: svn://10.0.0.236/trunk@49330 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:20:31 +00:00
slamm%netscape.com
5740620a52 Add style sheet to give bookmarks tree a single click look (bug #14998). Remove unsed file.
git-svn-id: svn://10.0.0.236/trunk@49329 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:20:12 +00:00
slamm%netscape.com
62e4c2c6e9 Add style sheet to give bookmarks tree a single click look (bug #14998).
git-svn-id: svn://10.0.0.236/trunk@49328 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:20:06 +00:00
slamm%netscape.com
e0b93dd24c Move sidebar styles to overlay. Related to changes for #14838.
git-svn-id: svn://10.0.0.236/trunk@49327 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:59 +00:00
slamm%netscape.com
f328c785ec Move sidebar attributes into overlay (hide implementaton details). Put sidebar to left of sidebar again. Related to bugs #14838, #13878.
git-svn-id: svn://10.0.0.236/trunk@49326 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:53 +00:00
slamm%netscape.com
99d75be92e Change styles to be compatible as overlay. Related to bug #14838.
git-svn-id: svn://10.0.0.236/trunk@49325 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:46 +00:00
slamm%netscape.com
69d5d07321 Call sidebarOverlayInit with no args. All apps will use the same sidebar panels now (bug #14995).
git-svn-id: svn://10.0.0.236/trunk@49324 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:40 +00:00
slamm%netscape.com
506531dcd2 Convert into an overlay to use with sidebar overlay. Put folders in their own app panel above 'my panels' (bug #14991).
git-svn-id: svn://10.0.0.236/trunk@49323 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:35 +00:00
slamm%netscape.com
a732f4d3fb Use sidebar overlay (bug #14838). Eliminates a costly iframe.
git-svn-id: svn://10.0.0.236/trunk@49322 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:26 +00:00
akkana%netscape.com
1094ae3c1c 14731: only insert formatting whitespace for block nodes
git-svn-id: svn://10.0.0.236/trunk@49321 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:19:20 +00:00
akkana%netscape.com
b5039001a8 Add OutputWrap flag, and add comments for the other flags
git-svn-id: svn://10.0.0.236/trunk@49320 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:17:51 +00:00
akkana%netscape.com
1afad03102 Lots of wrapping and whitespace fixes
git-svn-id: svn://10.0.0.236/trunk@49319 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:17:07 +00:00
akkana%netscape.com
ca522033c5 Many changes to make output test really useful. Fix Windows makefile. Add some sample test input files
git-svn-id: svn://10.0.0.236/trunk@49318 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:11:07 +00:00
jfrancis%netscape.com
8e3610bfe2 revised UNDO; introduced first cut at the "mozdiv" typing rules
git-svn-id: svn://10.0.0.236/trunk@49317 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:08:15 +00:00
jfrancis%netscape.com
3e0d1698a3 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49316 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:07:32 +00:00
kin%netscape.com
c91a4d411c Added call to nsITextServicesDocument::ScrollSelectionIntoView().
git-svn-id: svn://10.0.0.236/trunk@49315 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:05:00 +00:00
kin%netscape.com
790f8a923b editor/txtsvc/public/nsITextServicesDocument.h
editor/txtsvc/src/nsTextServicesDocument.cpp
editor/txtsvc/src/nsTextServicesDocument.h

  - Added ScrollSelectionIntoView() method to nsITextServicesDocument
    interface and implementation.


git-svn-id: svn://10.0.0.236/trunk@49314 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:04:34 +00:00
kin%netscape.com
1806b9519b First pass implementation of selection auto scrolling.
layout/base/public/nsIFrame.h
        - Added GetContentAndOffsetsFromPoint() method. This
          method will eventually replace GetPosition().

    layout/base/public/nsIFrameSelection.h
        - Added HandleDrag() and Start/StopAutoScrollTimer() methods.

    layout/base/src/nsRangeList.cpp
        - Added implementation for HandleDrag() and
          Start/StopAutoScrollTimer() methods.

    layout/html/base/src/nsBRFrame.cpp
        - Added implementation for GetContentAndOffsetsFromPoint().

    layout/html/base/src/nsFrame.cpp
    layout/html/base/src/nsFrame.h
        - Added implementation for GetContentAndOffsetsFromPoint().
        - Added GetClosestViewForFrame() utility method.
        - Modified HandleEvent() to call HandleRelease() which now
          stops the auto scrolling timers.
        - Modified HandleDrag() to call nsIFrameSelection's HandleDrag()
          and Start/StopAutoScrollTimer() methods.

    layout/html/base/src/nsTextFrame.cpp
        - Added implementation for GetContentAndOffsetsFromPoint().


git-svn-id: svn://10.0.0.236/trunk@49313 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 20:04:05 +00:00
leaf%mozilla.org
cf2257de2a removing lib/xp and lib/libpwcac
git-svn-id: svn://10.0.0.236/trunk@49312 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 16:49:13 +00:00
vidur%netscape.com
a7764ba31f Signing up for modularizing htmlpars. This file is not part of the build!!
git-svn-id: svn://10.0.0.236/trunk@49309 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 16:46:49 +00:00
beard%netscape.com
a2370105c8 fixed output directory
git-svn-id: svn://10.0.0.236/trunk@49308 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 16:11:58 +00:00
beard%netscape.com
8ce70dfe45 fixed source folder name
git-svn-id: svn://10.0.0.236/trunk@49307 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 16:10:25 +00:00
beard%netscape.com
ea14ed5e8f build debugger with CW Pro 4.
git-svn-id: svn://10.0.0.236/trunk@49306 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 16:07:22 +00:00
beard%netscape.com
b828a0f15c builds the optimizer using CW Pro 4.
git-svn-id: svn://10.0.0.236/trunk@49305 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 15:55:29 +00:00
morse%netscape.com
8da94d2ae7 fix bug 14958 -- approved chofmann
git-svn-id: svn://10.0.0.236/trunk@49304 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 05:39:18 +00:00
troy%netscape.com
4051bf71de Fix for bug #15152. Moved check for "no wrap" inside of loop. This fixes a
problem where blocks inside of blocks were not getting marked dirty


git-svn-id: svn://10.0.0.236/trunk@49303 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 05:09:19 +00:00
troy%netscape.com
d22c5f8fe9 Fix for bug #11633. Changed ConstructFrameByDisplayType() to use the correct
parent frame for absolutely positioned tables


git-svn-id: svn://10.0.0.236/trunk@49302 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 05:06:17 +00:00
kipp%netscape.com
5d678c8d94 work around linkage woes (still not in build)
git-svn-id: svn://10.0.0.236/trunk@49301 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:39:59 +00:00
hangas%netscape.com
d6f2d461e4 Added ability to hide and show toolbars and taskbar to all mail windows. Added accesskeys to a number of menu items and fixed menus across product. Moved broadcaster elements to top of xul files to give command keys a chance to work. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49300 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:29:20 +00:00
sspitzer%netscape.com
14e739078f remove unused files
git-svn-id: svn://10.0.0.236/trunk@49299 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:10:16 +00:00
sspitzer%netscape.com
da1eb1af55 ignore generated makefiles
git-svn-id: svn://10.0.0.236/trunk@49298 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:09:01 +00:00
sspitzer%netscape.com
0e52e2ef7d fix resources for the profile migration dialog.
git-svn-id: svn://10.0.0.236/trunk@49297 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:07:12 +00:00
bienvenu%netscape.com
13642a9970 more build bustage with reg stuff
git-svn-id: svn://10.0.0.236/trunk@49296 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:06:15 +00:00
sspitzer%netscape.com
96115ec69e fix resources for the profile migration dialog. remove unused files.
git-svn-id: svn://10.0.0.236/trunk@49295 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 04:03:15 +00:00
sfraser%netscape.com
414de9394f Fix type mismatch
git-svn-id: svn://10.0.0.236/trunk@49294 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:45:18 +00:00
peterl%netscape.com
12c3349911 manage view visibility better, hide collapsed views and hidden views with widgets
git-svn-id: svn://10.0.0.236/trunk@49293 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:37:02 +00:00
peterl%netscape.com
4c0553554b manage view visibility better
git-svn-id: svn://10.0.0.236/trunk@49292 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:36:16 +00:00
peterl%netscape.com
3222824b3a set reflow reason properly for incremental changes
git-svn-id: svn://10.0.0.236/trunk@49291 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:35:51 +00:00
peterl%netscape.com
1bd4db5d5f use style changed reflow instead of content changed when updating button
git-svn-id: svn://10.0.0.236/trunk@49290 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:35:24 +00:00
peterl%netscape.com
ea0aa86486 use 'collapse' instead of 'hidden' for comboboxes
git-svn-id: svn://10.0.0.236/trunk@49289 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:34:29 +00:00
peterl%netscape.com
1ed1c8d6b5 set visibility better
git-svn-id: svn://10.0.0.236/trunk@49288 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:33:34 +00:00
peterl%netscape.com
1660d42cbf remap style contexts that don't get swapped when computing style changes
git-svn-id: svn://10.0.0.236/trunk@49287 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:32:19 +00:00
peterl%netscape.com
c13c15a44b make remap style optionally not go recursive
git-svn-id: svn://10.0.0.236/trunk@49286 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:30:47 +00:00
peterl%netscape.com
2c686b4e41 sync view visibility during didReflow
git-svn-id: svn://10.0.0.236/trunk@49285 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:30:04 +00:00
peterl%netscape.com
e67f69dfde when hiding a view, invalidate the parent view since the hidden view will reject the invalidate
git-svn-id: svn://10.0.0.236/trunk@49284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:29:21 +00:00
shaver%netscape.com
662a32d11b missed more nsIRegistry::Key usages
git-svn-id: svn://10.0.0.236/trunk@49283 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:26:24 +00:00
briano%netscape.com
8adf8ba53a QNX-specific fix, map usleep to sleep since QNX doesn't have usleep.
git-svn-id: svn://10.0.0.236/trunk@49282 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:19:00 +00:00
shaver%netscape.com
c4179cd970 missed one nsIRegistry::Key usage
git-svn-id: svn://10.0.0.236/trunk@49281 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:17:56 +00:00
sspitzer%netscape.com
579ad651a5 removing unused files, this directory is going away.
git-svn-id: svn://10.0.0.236/trunk@49280 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:11:05 +00:00
sfraser%netscape.com
7c61e9da87 More type mismatch fixing for shavear
git-svn-id: svn://10.0.0.236/trunk@49279 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 03:07:27 +00:00
briano%netscape.com
7ca026aa3c Added a newline at the end of the file to fix the Unix native compiler builds.
git-svn-id: svn://10.0.0.236/trunk@49278 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:54:25 +00:00
sfraser%netscape.com
ca68584efa Fixing use of obsolete types for shaver.
git-svn-id: svn://10.0.0.236/trunk@49277 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:54:18 +00:00
sfraser%netscape.com
6821af19a9 Added nsICategoryHandler.idl, nsICategoryManager.idl, nsIRegistry.idl for shaver.
git-svn-id: svn://10.0.0.236/trunk@49276 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:53:07 +00:00
briano%netscape.com
05e3af452b Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49275 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:52:12 +00:00
briano%netscape.com
ac10e1225d QNX-specific addition to deal with _PRSTR items properly.
git-svn-id: svn://10.0.0.236/trunk@49274 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:47:05 +00:00
shaver%netscape.com
a2616788dd nsIRegistry scriptability update, r=dveditz,dp,alecf a=leaf,chofmann
git-svn-id: svn://10.0.0.236/trunk@49273 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:36:54 +00:00
shaver%netscape.com
393d020282 nsIRegistry scriptability and beginning of category support, r=dp,alecf,dveditz a=leaf,chofmann
git-svn-id: svn://10.0.0.236/trunk@49272 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:35:42 +00:00
briano%netscape.com
c8eac07d40 Only include memory.h if the system actually has it. Fixes QNX. Approved by leaf.
git-svn-id: svn://10.0.0.236/trunk@49271 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 02:24:17 +00:00
gagan%netscape.com
926be576f5 Fix for 14536. r/a rjc the great since he surfs a lot... :)
git-svn-id: svn://10.0.0.236/trunk@49270 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 01:33:14 +00:00
beard%netscape.com
689cfab411 fixing leaking toolkit and device contexts.
git-svn-id: svn://10.0.0.236/trunk@49269 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 01:25:19 +00:00
rjc%netscape.com
c400d30876 Fix bug # 9501. Review: gagan. Approval: chofmann.
git-svn-id: svn://10.0.0.236/trunk@49268 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 01:20:17 +00:00
briano%netscape.com
3c91facea0 Fix for BSDI 3.0, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49267 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 01:09:41 +00:00
dp%netscape.com
6bca778649 leaks fixing in components
git-svn-id: svn://10.0.0.236/trunk@49266 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 01:07:32 +00:00
saari%netscape.com
e53f79b0d2 Helping to fix M10 bug 14464 a: chofmann r: akkana
Tested on Mac, Win, and Linux. 14464 requires other checkins to be fully fixed.


git-svn-id: svn://10.0.0.236/trunk@49265 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:49:11 +00:00
akkana%netscape.com
8dada7ea7a 14464: Track saari's changes to make XUL key bindings work again
git-svn-id: svn://10.0.0.236/trunk@49264 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:34:19 +00:00
mcafee%netscape.com
c8e7f735bc Adding brower buster to debug menu. a=chofmann,leaf r=radha
git-svn-id: svn://10.0.0.236/trunk@49263 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:23:12 +00:00
briano%netscape.com
b0d10029b5 Fix for AIX 4.2, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49262 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:19:10 +00:00
beard%netscape.com
4bcbe7b5ba removed link dependency on view.shlb.
git-svn-id: svn://10.0.0.236/trunk@49261 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-29 00:17:51 +00:00
troy%netscape.com
d868e2767f Part of the fix for bug #11633. Check the NS_FRAME_OUT_OF_FLOW bit and make
sure the frame was really moved out of the flow


git-svn-id: svn://10.0.0.236/trunk@49260 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:42:35 +00:00
hyatt%netscape.com
cb170827ee fixes for 14637 and for menu visibility issues r=pavlov typed_by=pavlov
git-svn-id: svn://10.0.0.236/trunk@49259 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:25:48 +00:00
dmose%mozilla.org
ec2434440d update license boilerplate to NPL-1.1 dual-licensed with the GPL. a=brendan, r=brendan.
git-svn-id: svn://10.0.0.236/trunk@49258 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:12:09 +00:00
davidmc%netscape.com
f0b4758c14 http://bugzilla.mozilla.org/show_bug.cgi?id=14886
should not affect runtime until compiler switches change
in morkConfig.h; so only build is affected. Checkin permission
from choffman last Friday.


git-svn-id: svn://10.0.0.236/trunk@49257 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:09:49 +00:00
rjc%netscape.com
de237d8b57 Fix bug # 14302. Approval: chofmann.
git-svn-id: svn://10.0.0.236/trunk@49256 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 23:06:34 +00:00
kipp%netscape.com
03c039ec50 new
git-svn-id: svn://10.0.0.236/trunk@49255 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:58:23 +00:00
sspitzer%netscape.com
f6436d9b1a finish renaming and moving all the profile xul, js and dtd files.
fix regression with Rename and Delete.  (they work again.)


git-svn-id: svn://10.0.0.236/trunk@49254 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:50:50 +00:00
sspitzer%netscape.com
77e5548669 finish renaming and moving all the profile xul, js and dtd files.
git-svn-id: svn://10.0.0.236/trunk@49253 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:50:45 +00:00
ftang%netscape.com
01f9395dde fix bug 14879. reviewed by erik
git-svn-id: svn://10.0.0.236/trunk@49252 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:44:15 +00:00
neeti%netscape.com
3fc5689441 fix for 15073. Approved chofmann, reviewed by Steve Morse.
git-svn-id: svn://10.0.0.236/trunk@49251 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:33:22 +00:00
radha%netscape.com
5e1bf4690b Fix for 14967. r=pollmann, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49250 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:17:49 +00:00
rjc%netscape.com
796d86aaad Fix bug # 15062. Review: waterson. Approval: chofmann.
git-svn-id: svn://10.0.0.236/trunk@49249 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:16:38 +00:00
mscott%netscape.com
82ff521b2b Bug #12198 --> bullet proof this code. return if we don't have a nsIURI instead of trying to dereference it. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@49248 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 22:11:26 +00:00
karnaze%netscape.com
3d4aa5c477 bug 10009 - uses width set on <td> in figuring width of nested table
git-svn-id: svn://10.0.0.236/trunk@49247 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:57:44 +00:00
karnaze%netscape.com
84195608af new regression tests
git-svn-id: svn://10.0.0.236/trunk@49246 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:54:59 +00:00
bienvenu%netscape.com
444ad9639d for mscott fix memory leaks of imap urls 15088 r=bienvenu, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49245 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:50:04 +00:00
briano%netscape.com
162c53411c Automated update
git-svn-id: svn://10.0.0.236/trunk@49244 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:46:31 +00:00
briano%netscape.com
df04e9951f Fix for bug 15066, IRIX 6.x native compiler fix. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@49243 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:32:31 +00:00
sspitzer%netscape.com
b24a7f181d adding new files.
git-svn-id: svn://10.0.0.236/trunk@49242 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:28:57 +00:00
pinkerton%netscape.com
80018a8f64 remove a spring to avoid excess reflows (bug 14782), rev hyatt/evaughan, appr leaf.
git-svn-id: svn://10.0.0.236/trunk@49241 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:24:16 +00:00
pinkerton%netscape.com
5d38858c12 don't call UpdateView if visibility hasn't changed (bugs 14782, 14925). rev beard/ramiro, appr leaf.
git-svn-id: svn://10.0.0.236/trunk@49240 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:23:32 +00:00
pavlov%netscape.com
5bcf4308a6 add newline at the end of the files
git-svn-id: svn://10.0.0.236/trunk@49239 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:21:31 +00:00
pavlov%netscape.com
3e6fdf5e98 change emacs headers to use C++ instead of IDL and add newline to bottom of files
git-svn-id: svn://10.0.0.236/trunk@49238 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 21:20:18 +00:00
kipp%netscape.com
6c1618ce7e Fixed to not pre-create the factory
git-svn-id: svn://10.0.0.236/trunk@49237 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 20:54:26 +00:00
gayatrib%netscape.com
471337be0b profile ui dtd file
git-svn-id: svn://10.0.0.236/trunk@49236 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 20:37:16 +00:00
gayatrib%netscape.com
a1e5130c35 profileManager dtd file
git-svn-id: svn://10.0.0.236/trunk@49235 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 20:34:32 +00:00
gayatrib%netscape.com
76b3bfa182 createProfileWizard dtd file
git-svn-id: svn://10.0.0.236/trunk@49234 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 20:33:45 +00:00
miodrag%netscape.com
16742a8bfa Fixed a bad link
git-svn-id: svn://10.0.0.236/trunk@49233 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:58:15 +00:00
dp%netscape.com
a0850d9ef2 Unloading of dlls on shutdown turned off.
git-svn-id: svn://10.0.0.236/trunk@49231 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:42:06 +00:00
gayatrib%netscape.com
e548be7488 makefile
git-svn-id: svn://10.0.0.236/trunk@49230 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:20:50 +00:00
gayatrib%netscape.com
5ba2ef7040 css file
git-svn-id: svn://10.0.0.236/trunk@49229 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:19:08 +00:00
briano%netscape.com
253e052ddb Fix for BSDI 3.0, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49228 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:15:20 +00:00
gayatrib%netscape.com
2c2d15418f profileManager javascript
git-svn-id: svn://10.0.0.236/trunk@49227 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:14:35 +00:00
gayatrib%netscape.com
b9759c1a63 createProfileWizard javascript
git-svn-id: svn://10.0.0.236/trunk@49226 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:13:50 +00:00
gayatrib%netscape.com
61839d15b0 profile ui
git-svn-id: svn://10.0.0.236/trunk@49225 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:12:56 +00:00
gayatrib%netscape.com
7d31f38ff7 profile manager window
git-svn-id: svn://10.0.0.236/trunk@49224 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:12:27 +00:00
gayatrib%netscape.com
8add2c71f8 profile ui
git-svn-id: svn://10.0.0.236/trunk@49223 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:04:57 +00:00
kipp%netscape.com
22068b2a42 new
git-svn-id: svn://10.0.0.236/trunk@49222 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:03:20 +00:00
gayatrib%netscape.com
b211b21d50 createProfileWizard ui
git-svn-id: svn://10.0.0.236/trunk@49221 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 19:02:49 +00:00
hangas%netscape.com
d340e786ed Fix for bug 14779. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49220 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 18:56:15 +00:00
selmer%netscape.com
2a772b01af remove extra free() call
git-svn-id: svn://10.0.0.236/trunk@49219 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 18:48:29 +00:00
ramiro%netscape.com
6aab11b9b6 NOT PART OF SEAMONKEY. Ressurect GtkMozilla again. Apparently mozilla
dont work no without no prefs.  Blessed by Mr. Shaver.


git-svn-id: svn://10.0.0.236/trunk@49217 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 18:03:17 +00:00
warren%netscape.com
4ed1f8c772 Made it handle CIDs of the form {fe04c8e6-501e-11d3-a527-0060b0fc04b7}.
git-svn-id: svn://10.0.0.236/trunk@49216 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 18:01:47 +00:00
tbogard%aol.net
5cc319a403 Changes to reflect changes made in XPCOM with respect to shutting down XPCOM. This is a test is not hooked to the code.
git-svn-id: svn://10.0.0.236/trunk@49215 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 17:55:02 +00:00
tbogard%aol.net
c802cd626d 1.) nsIEvent now has an attribute for isExitEvent(). This allows one to test if the current event represented by nsIEvent is a signal to exit the loop.
2.)  The various Run* routines were made more general.  This allowed me to move them completely within the nsCBaseLoop code rather than have them duplicated across the different Base Loop Typed classes.  This avoids the cut and pasting of code, that will probably be tweaked in the future.

3.)  To support the new Run* routines, I have added a RetrieveNextEvent and then a PlatformRetrieveNextEvent.  The first is implemented in nsCBaseLoop.  This was added to facilitate ordering of event retrieval in the near future (ie, pulling system events before normal events, or pulling PLEvents etc.)  The second function is one that platform code must override.  This is different for each loop type.  Basically this is supposed to be whatever it takes for a given implementation to pull the next event off the queue for the given loop type.  So in the Windows world, this function calls GetMessage() for the Thread and App loop types and then PeekMessage() with PM_REMOVE set for the Breath loop type.

This code is compiled but not used by the main build.  A=chofmann


git-svn-id: svn://10.0.0.236/trunk@49214 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 16:52:10 +00:00
kipp%netscape.com
d55eb1fa6c new
git-svn-id: svn://10.0.0.236/trunk@49213 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 14:38:20 +00:00
sspitzer%netscape.com
77a9b7acde fix more bugs with migration on the mac.
git-svn-id: svn://10.0.0.236/trunk@49212 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 11:40:33 +00:00
sspitzer%netscape.com
72d6224424 remove extra paren
git-svn-id: svn://10.0.0.236/trunk@49211 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 11:18:42 +00:00
sspitzer%netscape.com
9fd0969d93 get file prefs using GetFilePref() and not CopyCharPref(). that doesn't work on mac.
git-svn-id: svn://10.0.0.236/trunk@49210 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 11:16:51 +00:00
sspitzer%netscape.com
0e7524e548 more fixes for migration on the mac and various cleanup.
git-svn-id: svn://10.0.0.236/trunk@49209 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 11:16:18 +00:00
sspitzer%netscape.com
1b79234e68 fix migration on the mac.
mac thinks "" is the cwd.  curse it to hell!


git-svn-id: svn://10.0.0.236/trunk@49208 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 10:26:44 +00:00
sspitzer%netscape.com
639a65cf92 the attribute is a string, not a boolean.
git-svn-id: svn://10.0.0.236/trunk@49207 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 09:34:27 +00:00
sspitzer%netscape.com
a685cd2a88 comment out the dumps.
in the new profile xul, disable the buttons when they should be
and ignore clicks if the buttons are disabled.


git-svn-id: svn://10.0.0.236/trunk@49206 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 09:30:48 +00:00
sspitzer%netscape.com
34fa59f854 removed files: mozilla/xpfe/AppCores/src/nsJSProfileCore.cpp
git-svn-id: svn://10.0.0.236/trunk@49205 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 08:26:28 +00:00
sspitzer%netscape.com
85d48050a2 whoops, two quotes when there should be only one
git-svn-id: svn://10.0.0.236/trunk@49203 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:47:54 +00:00
sspitzer%netscape.com
9cfef060f4 whoops, accidentally checked this in.
git-svn-id: svn://10.0.0.236/trunk@49202 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:44:48 +00:00
sspitzer%netscape.com
f78e530dbc only build nsIProfile.idl now.
git-svn-id: svn://10.0.0.236/trunk@49201 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:41:40 +00:00
sspitzer%netscape.com
fcbb0a9c51 whoops. this is still needed, as it builds nsIProfile.idl
git-svn-id: svn://10.0.0.236/trunk@49200 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:40:55 +00:00
sspitzer%netscape.com
8441d2bccf this is gone.
git-svn-id: svn://10.0.0.236/trunk@49199 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:37:46 +00:00
sspitzer%netscape.com
afdc969f06 idlservices is gone, as is the profile appcore. #14999
git-svn-id: svn://10.0.0.236/trunk@49198 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:35:32 +00:00
sspitzer%netscape.com
1a4fea08a0 removed files: mozilla/xpfe/AppCores/src/nsProfileCore.cpp, mozilla/xpfe/AppCores/src/nsProfileCoreFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@49197 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:31:40 +00:00
sspitzer%netscape.com
c35d818e4a fix for #14999. remove the profile appcore
git-svn-id: svn://10.0.0.236/trunk@49196 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 07:29:25 +00:00
sspitzer%netscape.com
e0d0de5e37 fix for #14686.
before, GetAccounts() [think getter for accounts] was upgrading which was
creating the default Local Mail account, which made the check in verifyAccounts()
fail to open the account wizard, since an account was created.
now we only upgrade prefs when explicitly told to do so.


git-svn-id: svn://10.0.0.236/trunk@49195 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 06:11:32 +00:00
idk%eng.sun.com
9ecaa9ed41 Implemented some methods for PlugletManagerImpl
git-svn-id: svn://10.0.0.236/trunk@49194 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 05:23:02 +00:00
sspitzer%netscape.com
0a6bef5448 fix some minor problems with the pref migration progress xul. #15042
get news migration back on UNIX, I accidentally broke it.


git-svn-id: svn://10.0.0.236/trunk@49193 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 05:12:42 +00:00
sspitzer%netscape.com
592f032442 use the NS_WITH_SERVICE macro. #15042
remove calls to toolkit appcore, as it is going away soon. #14999


git-svn-id: svn://10.0.0.236/trunk@49192 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:40:59 +00:00
hangas%netscape.com
e644efe8d2 Cleaned up usage of globalOverlay.xul, moved menu overlays into navigatorOveraly.xul which was the only place it was needed. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49191 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:40:15 +00:00
hangas%netscape.com
8ecbc7d4b1 Removed globalOverlay.xul which was not needed, slowed down opening the navigator window, and caused the Mac menu (from hiddenwindow) to have two Quit menu items. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49190 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:37:36 +00:00
briano%netscape.com
8e9ecbf318 Added CaptureRollupEvents to fix the Motif-specific breakage.
git-svn-id: svn://10.0.0.236/trunk@49189 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:29:59 +00:00
mcafee%netscape.com
75da349472 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@49188 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:21:55 +00:00
sspitzer%netscape.com
0e64db6eec changes to get migration working on the mac again.
#15026, #14689


git-svn-id: svn://10.0.0.236/trunk@49187 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 04:10:19 +00:00
alecf%netscape.com
fad7c2429a implement SetTitle to fix bustage
git-svn-id: svn://10.0.0.236/trunk@49186 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 03:22:11 +00:00
briano%netscape.com
ef940b3e56 Fix for BSDI 3.0, specifically, but should help other platforms with shared library difficulties.
git-svn-id: svn://10.0.0.236/trunk@49185 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 03:16:38 +00:00
sspitzer%netscape.com
414b67e627 fix for #15054. pref migration progress dialog sizes to content now.
git-svn-id: svn://10.0.0.236/trunk@49184 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 03:01:53 +00:00
waterson%netscape.com
a6427388a2 Fix for Win32. (NOT part of the build.)
git-svn-id: svn://10.0.0.236/trunk@49183 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 02:38:46 +00:00
alecf%netscape.com
d3ae7bd261 fix xlib bustage by implementing SetTitle and CaptureRollupEvents
(xlib not part of the default build)


git-svn-id: svn://10.0.0.236/trunk@49182 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 02:25:20 +00:00
mcafee%netscape.com
cd3bd31e9e Checking for null pointer. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@49181 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:46:58 +00:00
pavlov%netscape.com
a27e5441c4 work to get drawing done based on regions and not rects. remove unneeded code in nsBaseWidget and removed tabs. add InvalidateRegion() method to nsIWidget. did InvalidateRegion implimentation on unix. a=shaver r=beard
git-svn-id: svn://10.0.0.236/trunk@49180 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:31:41 +00:00
pavlov%netscape.com
b5bbc1919b work to get drawing done based on regions and not rects a=shaver r=beard
git-svn-id: svn://10.0.0.236/trunk@49179 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:28:03 +00:00
mcafee%netscape.com
091b0a01d1 Default for network.proxy.type=3 is undefined, using 1, direct internet connection. r=akkana
git-svn-id: svn://10.0.0.236/trunk@49178 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:27:32 +00:00
sspitzer%netscape.com
a874ecd7a2 got the logic backwards...
git-svn-id: svn://10.0.0.236/trunk@49177 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:20:48 +00:00
pavlov%netscape.com
fa4ffe0ab0 remove open="true" from the tasks menu r=hyatt so that it isn't pressed by default
git-svn-id: svn://10.0.0.236/trunk@49176 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:09:48 +00:00
sspitzer%netscape.com
47900cdcad fix crasher caused by calling ResetPrefs() more than once, which should be legal.
git-svn-id: svn://10.0.0.236/trunk@49175 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:08:03 +00:00
sspitzer%netscape.com
963742e804 whoops, forgot to StartUp prefs after ShutDown
git-svn-id: svn://10.0.0.236/trunk@49174 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 01:04:00 +00:00
dp%netscape.com
46956763a0 raptorview into component
git-svn-id: svn://10.0.0.236/trunk@49173 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:58:35 +00:00
hyatt%netscape.com
e30aa0ecb3 Fixing tree widget updating problem.
git-svn-id: svn://10.0.0.236/trunk@49171 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:57:46 +00:00
hyatt%netscape.com
47b05de572 Fixing tree widget updating problem (bienvenu).
git-svn-id: svn://10.0.0.236/trunk@49170 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:57:31 +00:00
sspitzer%netscape.com
e595e78e7d fixes for a bunch of bugs.
bug #15041: window comes up, and then resizes
bug #14600: play nice when the profile manager exists on the mac.
bug #13780: crash on winnt and linux when creating a new profile
bug #15042: clean up mozilla/profile code (more to come...)


git-svn-id: svn://10.0.0.236/trunk@49169 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:53:29 +00:00
dp%netscape.com
3c80610f68 raptorview into component
git-svn-id: svn://10.0.0.236/trunk@49168 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:52:36 +00:00
kipp%netscape.com
8d68528134 new
git-svn-id: svn://10.0.0.236/trunk@49167 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:50:17 +00:00
buster%netscape.com
30ef096e65 fixed bug 13887, caret in odd place at editor launch
a=chofmann, r=sfraser


git-svn-id: svn://10.0.0.236/trunk@49166 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:49:56 +00:00
kipp%netscape.com
3008d163f5 new
git-svn-id: svn://10.0.0.236/trunk@49165 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:44:47 +00:00
mjudge%netscape.com
2c13db81d8 aproved leaf. reviews sfraser. checking for null stopping crash
git-svn-id: svn://10.0.0.236/trunk@49164 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-28 00:13:19 +00:00
dp%netscape.com
d5fbf6d4a3 Removing pref and ifndef necko dlls from registration.
git-svn-id: svn://10.0.0.236/trunk@49163 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:57:15 +00:00
dp%netscape.com
c3d8fbedad Converting ViewFactory to nsIModule.
git-svn-id: svn://10.0.0.236/trunk@49162 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:55:05 +00:00
beard%netscape.com
192dfe7b53 fixing leaked nsIAppShell
git-svn-id: svn://10.0.0.236/trunk@49161 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:39:29 +00:00
beard%netscape.com
f85b21ee80 breaking cycle between crawler and browser window to fix a leak, using NS_WITH_SERVICE to manage metacharset service.
git-svn-id: svn://10.0.0.236/trunk@49160 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:39:03 +00:00
norris%netscape.com
df9854bffc Add example of classfile generation.
git-svn-id: svn://10.0.0.236/trunk@49159 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:21:01 +00:00
norris%netscape.com
55a4a7f1c5 Changes for classfile generation.
git-svn-id: svn://10.0.0.236/trunk@49158 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:17:29 +00:00
granrose%netscape.com
4d4899e55f improved batch copy performance, fixed bug <A HREF="show_bug.cgi?id=14558">14558</A>. a=leaf.
git-svn-id: svn://10.0.0.236/trunk@49157 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 23:02:06 +00:00
briano%netscape.com
5e91994666 No longer used. The 'real' one is in mozilla/build/autoconf.
git-svn-id: svn://10.0.0.236/trunk@49156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 22:39:49 +00:00
terry%mozilla.org
06edf3a603 Patch by holger@holger.om.org (Holger Schurig) -- was displaying header twice in some cases.
git-svn-id: svn://10.0.0.236/trunk@49155 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 22:22:24 +00:00
ducarroz%netscape.com
4640ae5514 0 isn't equal to null!, fix for bug 14987. R=hangas,A=chofmann
git-svn-id: svn://10.0.0.236/trunk@49154 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:32:11 +00:00
dveditz%netscape.com
3d614afce1 Bugfix for 9604, 8138. r=cathleen, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49153 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:28:03 +00:00
toshok%hungry.com
069a8dc046 ignore .deps files.
git-svn-id: svn://10.0.0.236/trunk@49152 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:26:38 +00:00
terry%mozilla.org
349911fc00 Patch by Markus Rex <msrex@suse.de> -- add a param to contorl whether to show quips.
git-svn-id: svn://10.0.0.236/trunk@49151 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:25:19 +00:00
despotdaemon%netscape.com
c289a81c11 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49150 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:24:29 +00:00
vidur%netscape.com
43e788c816 Fixed a leak of the observer service. This could also use NS_WITH_SERVICE. A: leaf R: shaver.
git-svn-id: svn://10.0.0.236/trunk@49149 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:14:01 +00:00
briano%netscape.com
5eb38c54db Automated update
git-svn-id: svn://10.0.0.236/trunk@49148 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 21:01:38 +00:00
hangas%netscape.com
a3f3ba18a8 New menu items now match the spec for navigator, mail, address book, and mail compose. Fixed navigator quit menu item to use global overlay. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49147 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 20:56:35 +00:00
troy%netscape.com
2379177245 Fix for bug #14959. Made sure that lines with floaters are also marked
dirty


git-svn-id: svn://10.0.0.236/trunk@49146 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 20:53:05 +00:00
valeski%netscape.com
32c780214c a=leaf, r=potts. fix for 12748, dotted quad and numeric hosts
git-svn-id: svn://10.0.0.236/trunk@49145 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 20:52:31 +00:00
cls%seawood.org
875e3d7a32 Approved by leaf.
Removed --enable-random-options and --enable-cross-compile options.  Set CROSS_COMPILE in the environment if you want to use the cross-compiling setup for now.

Gave into my pedantic side and cleaned up the help messages so that the output from --help actually looks reasonable.  For the curious, they are lined up on column 27.

Marked --disable-client-wallet & --disable-cookie-management as broken.


git-svn-id: svn://10.0.0.236/trunk@49144 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 20:47:51 +00:00
bienvenu%netscape.com
895eb5e109 fix purify error in imap startup bug #14724 a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49143 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 20:04:34 +00:00
dougt%netscape.com
9eb4c99f11 adjusting pref names to match what we are exporting.
git-svn-id: svn://10.0.0.236/trunk@49142 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 19:58:06 +00:00
dougt%netscape.com
400dd96e60 bug fix for 14831.
git-svn-id: svn://10.0.0.236/trunk@49141 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 19:55:04 +00:00
waterson%netscape.com
1ee0832990 Fix AIX build bustage. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49140 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 19:19:44 +00:00
despotdaemon%netscape.com
73df84aa4a Pseudo-automatic update of changes made by chofmann@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@49139 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:58:06 +00:00
beard%netscape.com
9062bea1a4 leaking nsIRegions in nsViewManager::ProcessPendingUpdates() when region is empty. Duh! Switched to nsCOMPtr.
git-svn-id: svn://10.0.0.236/trunk@49138 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:48:33 +00:00
rogerl%netscape.com
e2eb39f437 Better error handling for interpreter.
git-svn-id: svn://10.0.0.236/trunk@49137 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:47:51 +00:00
rogerl%netscape.com
9d23668623 Changes from Kurt Westerfield to improve error messages from Interpreter
by passing line/file data through bytecode.


git-svn-id: svn://10.0.0.236/trunk@49136 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:47:05 +00:00
rogerl%netscape.com
66e62f8b11 Stash originating source file for error reporting
git-svn-id: svn://10.0.0.236/trunk@49135 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:45:26 +00:00
despotdaemon%netscape.com
69fd18ba76 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49134 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:45:17 +00:00
rogerl%netscape.com
7d983f2350 ECMA 3 array length error handling.
git-svn-id: svn://10.0.0.236/trunk@49133 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:44:30 +00:00
rogerl%netscape.com
bdc0de911c Execute exec in the global scope.
git-svn-id: svn://10.0.0.236/trunk@49132 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:43:40 +00:00
rogerl%netscape.com
ab738e226a New tokens to support better error messages from Interpreter.
git-svn-id: svn://10.0.0.236/trunk@49131 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:43:07 +00:00
rogerl%netscape.com
f1024009ea Added -c <classpath> option to specify, you guessed it, a classpath.
git-svn-id: svn://10.0.0.236/trunk@49130 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:41:44 +00:00
despotdaemon%netscape.com
e4dc4218e9 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49129 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:39:32 +00:00
slamm%netscape.com
75033d3220 Add a command-line option to specify the source tree path.
git-svn-id: svn://10.0.0.236/trunk@49128 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:28:33 +00:00
valeski%netscape.com
da71bb6a85 removing dead file: a=leaf
git-svn-id: svn://10.0.0.236/trunk@49127 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 17:10:37 +00:00
kipp%netscape.com
b9d3dbcb92 Fixed shutdown crash found by warren
git-svn-id: svn://10.0.0.236/trunk@49126 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 16:33:05 +00:00
shaver%netscape.com
849a96453e unlock in fun_enumProperty, r,a=brendan
git-svn-id: svn://10.0.0.236/trunk@49125 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 08:24:36 +00:00
mcafee%netscape.com
1549be8cd1 Backing out latest change, apprunner menus were totally screwed up. a=shaver, r=ramiro,pavlov
git-svn-id: svn://10.0.0.236/trunk@49123 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 07:28:06 +00:00
beard%netscape.com
99d0031edc fixed a copy/paste bug that caused a bunch of nsCIDs to leak.
git-svn-id: svn://10.0.0.236/trunk@49122 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 07:15:43 +00:00
shaver%netscape.com
796d9f28d8 properly unlock object, preventing ugly crash with |if (foo in noFoo)|
git-svn-id: svn://10.0.0.236/trunk@49118 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 06:04:54 +00:00
mcafee%netscape.com
ec62b83cb4 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@49117 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 05:47:31 +00:00
morse%netscape.com
06d21803f6 fix bug 14954 -- approved chofmann
git-svn-id: svn://10.0.0.236/trunk@49116 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 03:54:05 +00:00
shaver%netscape.com
cd3d51e117 Fix leak of native path in AutoRegisterComponents.
Save registry data for failed components.
Make the loader work again (fix suffix length and init crash).
Better error reporting.


git-svn-id: svn://10.0.0.236/trunk@49114 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 02:22:25 +00:00
pavlov%netscape.com
c6e59c1353 make menus partially dismiss on unix
git-svn-id: svn://10.0.0.236/trunk@49113 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 02:16:18 +00:00
beard%netscape.com
ecff93693e fixed leaks on Mac using GetUnicode() rather than ToNewUnicode(). Removed some warnings.
git-svn-id: svn://10.0.0.236/trunk@49112 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-27 01:27:15 +00:00
hyatt%netscape.com
3fe3c7cab1 Fixing XP menus on the Mac so that they paint properly, dismiss properly, etc.
git-svn-id: svn://10.0.0.236/trunk@49111 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 22:45:35 +00:00
mcafee%netscape.com
91e76aa58e Renamed to Makefile.linux to get this out of the way of autoconf's generated Makefile.
git-svn-id: svn://10.0.0.236/trunk@49110 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 21:46:34 +00:00
mcafee%netscape.com
a7898c0202 Moving Makefile out of the way of autoconf, saving this for stand-alone reasons for now.
git-svn-id: svn://10.0.0.236/trunk@49109 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 21:44:45 +00:00
dveditz%netscape.com
8964fd9cbf Make sure componentMgr calls NR_ShutdownRegistry(), fixing MLKs and registry corruption from unflushed registry buffers.
r=dp,a=chofmann


git-svn-id: svn://10.0.0.236/trunk@49108 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 21:20:21 +00:00
dveditz%netscape.com
6ab48b20df Fix assert exposed by fix for bug 14551 (eliminate registry leaks from component mgr). r=dp, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49107 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 21:17:54 +00:00
troy%netscape.com
e5689ac462 Fixes for bug #2552 and bug #10961
git-svn-id: svn://10.0.0.236/trunk@49106 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 20:40:29 +00:00
mcafee%netscape.com
73049f4edd Making this document look like a Mozilla doc, minor clean-up.
git-svn-id: svn://10.0.0.236/trunk@49105 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 20:27:56 +00:00
bienvenu%netscape.com
e53626d004 fix mismatched deletes
git-svn-id: svn://10.0.0.236/trunk@49104 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 19:53:50 +00:00
bruce%cybersight.com
5d9e8ca354 Fix mismatched delete
git-svn-id: svn://10.0.0.236/trunk@49103 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 18:12:39 +00:00
dp%netscape.com
1743f40da9 Separating dll Shutdown from unload. Calling dll shutdown
unconditionally on NS_Shutdown.


git-svn-id: svn://10.0.0.236/trunk@49102 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 18:06:41 +00:00
dp%netscape.com
24f11a016d Passing down NS_Shutdown to Unloading of libraries.
git-svn-id: svn://10.0.0.236/trunk@49101 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 18:04:27 +00:00
dp%netscape.com
8845dc6f01 Adding NS_Shutdown.
git-svn-id: svn://10.0.0.236/trunk@49100 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 18:02:52 +00:00
warren%netscape.com
d207b714b6 Cleanup
git-svn-id: svn://10.0.0.236/trunk@49099 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:12:54 +00:00
warren%netscape.com
0e2f1323af Fixed NewChannel to not look up service twice
git-svn-id: svn://10.0.0.236/trunk@49098 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:11:36 +00:00
warren%netscape.com
9b9d036dae Fixed mismatched free
git-svn-id: svn://10.0.0.236/trunk@49097 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:09:59 +00:00
warren%netscape.com
ae8cbc1bba Fixed history state leak
git-svn-id: svn://10.0.0.236/trunk@49096 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:07:49 +00:00
warren%netscape.com
857e46c783 Fixed uninitialized variables
git-svn-id: svn://10.0.0.236/trunk@49095 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:07:16 +00:00
warren%netscape.com
6fbf464bce Refcounted case conversion service properly
git-svn-id: svn://10.0.0.236/trunk@49094 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:05:51 +00:00
warren%netscape.com
e057760aeb Cleaned up, using NS_WITH_SERVICE
git-svn-id: svn://10.0.0.236/trunk@49093 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:05:06 +00:00
warren%netscape.com
4ac4370b10 Cleanup
git-svn-id: svn://10.0.0.236/trunk@49092 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 10:04:36 +00:00
morse%netscape.com
a29836c5b5 fix signonviewer bugs 14703 and 14916, approved chofmann
git-svn-id: svn://10.0.0.236/trunk@49091 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 09:51:20 +00:00
morse%netscape.com
1bdfd20567 fix cookieviewer bugs 14703 and 14916, approved chofmann
git-svn-id: svn://10.0.0.236/trunk@49090 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 09:43:43 +00:00
morse%netscape.com
41b7aea095 fix bug 14145, approved chofmann
git-svn-id: svn://10.0.0.236/trunk@49089 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 09:38:07 +00:00
warren%netscape.com
f074880c8c Took out unused page manager.
git-svn-id: svn://10.0.0.236/trunk@49088 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 07:26:21 +00:00
warren%netscape.com
32346acda6 Fixed mismatched free problem.
git-svn-id: svn://10.0.0.236/trunk@49087 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 07:05:02 +00:00
warren%netscape.com
32eb182647 Fixed leaked path string.
git-svn-id: svn://10.0.0.236/trunk@49086 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 07:02:06 +00:00
warren%netscape.com
05db0355f5 Fixed leaked unicode strings.
git-svn-id: svn://10.0.0.236/trunk@49085 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 07:01:25 +00:00
kipp%netscape.com
f1aac39605 updated
git-svn-id: svn://10.0.0.236/trunk@49084 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 06:34:45 +00:00
kipp%netscape.com
34848ec596 new
git-svn-id: svn://10.0.0.236/trunk@49083 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 06:31:36 +00:00
kipp%netscape.com
e856ced272 Added in -MD
git-svn-id: svn://10.0.0.236/trunk@49082 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 06:31:28 +00:00
kipp%netscape.com
64b491a305 Whacked to support a graph display format
git-svn-id: svn://10.0.0.236/trunk@49081 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 06:31:18 +00:00
warren%netscape.com
511ad37285 Added Purify menu.
git-svn-id: svn://10.0.0.236/trunk@49080 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 05:52:24 +00:00
sfraser%netscape.com
5107d4d90a Remove NSStdLibStubs, since we're linking with NSStdLib anyway
git-svn-id: svn://10.0.0.236/trunk@49079 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 00:44:58 +00:00
sfraser%netscape.com
abb17596c3 Bug 14877 -- lib/xp removal; removed unneeded files. r sdagley, a chofmann.
git-svn-id: svn://10.0.0.236/trunk@49078 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 00:41:31 +00:00
sfraser%netscape.com
c742ddca64 Fix build bustage: remove some header files from the project
git-svn-id: svn://10.0.0.236/trunk@49077 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-26 00:37:14 +00:00
mjudge%netscape.com
12908f2dd0 fixes for M11 a=shaver r=cmanske. this will add 1 enumerator value to en enum in nsIFrame so dont be scared. this is for tweaking selection should not affect anyone outside of selection/editor
git-svn-id: svn://10.0.0.236/trunk@49076 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 23:33:02 +00:00
kipp%netscape.com
c90a800d5e More build bustage fixes
git-svn-id: svn://10.0.0.236/trunk@49075 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 22:11:08 +00:00
kipp%netscape.com
9d7ac0ce1c Fixed the throbber
git-svn-id: svn://10.0.0.236/trunk@49074 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 21:23:38 +00:00
kipp%netscape.com
2e7f77ea34 added files: mozilla/webshell/tests/viewer/nsThrobber.cpp
git-svn-id: svn://10.0.0.236/trunk@49073 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 21:17:02 +00:00
briano%netscape.com
1e40340ded Automated update
git-svn-id: svn://10.0.0.236/trunk@49072 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:46:28 +00:00
mcafee%netscape.com
d17714e739 Autoconfing leaky tool, cvs checkout mozilla/tools/leaky; ./configure --enable-leaky. a=shaver, r=kipp
git-svn-id: svn://10.0.0.236/trunk@49071 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:44:48 +00:00
terry%mozilla.org
b1c769b779 Don't send email notification of bug changes to people who aren't allowed to see that bug.
git-svn-id: svn://10.0.0.236/trunk@49070 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:35:52 +00:00
kipp%netscape.com
eced13e11d Removed throbber IID
git-svn-id: svn://10.0.0.236/trunk@49069 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:13:53 +00:00
kipp%netscape.com
c4f08c36ef new
git-svn-id: svn://10.0.0.236/trunk@49068 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:11:47 +00:00
kipp%netscape.com
5297c0603f Tidy up
git-svn-id: svn://10.0.0.236/trunk@49067 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:11:33 +00:00
kipp%netscape.com
de3f3202f5 shutdown xpcom and the image library to help leak anlaysis
git-svn-id: svn://10.0.0.236/trunk@49066 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:10:59 +00:00
kipp%netscape.com
45e14c92c2 Switch to local throbber
git-svn-id: svn://10.0.0.236/trunk@49065 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:10:29 +00:00
kipp%netscape.com
05ab1330f0 Removed throbber from registry setup
git-svn-id: svn://10.0.0.236/trunk@49064 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:10:02 +00:00
kipp%netscape.com
3c9bee70c0 removed files: mozilla/webshell/src/nsThrobber.cpp
git-svn-id: svn://10.0.0.236/trunk@49063 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:09:52 +00:00
kipp%netscape.com
077d45a656 Removed throbber from factory
git-svn-id: svn://10.0.0.236/trunk@49062 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:08:52 +00:00
kipp%netscape.com
d481cc3f34 Don't build nsThrobber - its moved
git-svn-id: svn://10.0.0.236/trunk@49061 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:08:40 +00:00
kipp%netscape.com
d37c5bc446 Don't export nuked nsIThrobber
git-svn-id: svn://10.0.0.236/trunk@49060 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:08:21 +00:00
kipp%netscape.com
4cc8490c48 Init all variables, not just some of them
git-svn-id: svn://10.0.0.236/trunk@49059 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:07:20 +00:00
kipp%netscape.com
2f8faa4f89 Removed most of the static ctors
git-svn-id: svn://10.0.0.236/trunk@49058 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:05:51 +00:00
kipp%netscape.com
8655fee7af Added FlushCache method
git-svn-id: svn://10.0.0.236/trunk@49057 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:04:54 +00:00
kipp%netscape.com
d7292ad63a Removed NECKO ifdefs
git-svn-id: svn://10.0.0.236/trunk@49056 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:04:12 +00:00
kipp%netscape.com
4977691c95 tweaked
git-svn-id: svn://10.0.0.236/trunk@49055 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:02:40 +00:00
kipp%netscape.com
1c2316c404 removed files: mozilla/modules/libimg/jpgcom/nsJPGCallback.cpp
git-svn-id: svn://10.0.0.236/trunk@49054 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:02:03 +00:00
kipp%netscape.com
1a6a84c1aa Fixed a leak; added some debug noise for me; added cache flushing code
git-svn-id: svn://10.0.0.236/trunk@49053 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 20:00:17 +00:00
kipp%netscape.com
7a716df69f Eliminate compiler warnings
git-svn-id: svn://10.0.0.236/trunk@49052 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 19:59:42 +00:00
kipp%netscape.com
5e2494fd87 tidy
git-svn-id: svn://10.0.0.236/trunk@49051 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 19:59:10 +00:00
kipp%netscape.com
833a541668 Added IL_FlushCache
git-svn-id: svn://10.0.0.236/trunk@49050 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 19:59:01 +00:00
kipp%netscape.com
4490f4a525 removed
git-svn-id: svn://10.0.0.236/trunk@49049 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 19:58:46 +00:00
kipp%netscape.com
fe21208330 Removed obsolete file from the build
git-svn-id: svn://10.0.0.236/trunk@49048 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 19:58:39 +00:00
troy%netscape.com
c6865f1b10 Optimized PrepareResizeReflow() so it doesn't mark lines dirty if they don't need
to be reflowed


git-svn-id: svn://10.0.0.236/trunk@49047 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 16:50:45 +00:00
waterson%netscape.com
66b5b9d17e Bug 14911. Revert sloppy checkin. The 'DocumentWillBeDestroyed' stuff was never meant to get checked in. It piggy-backed onto another bug fix; I wasn't careful.
git-svn-id: svn://10.0.0.236/trunk@49046 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 16:29:22 +00:00
beard%netscape.com
6274b5bb2a Fixed looking up 'length' property in Function objects: needed to look up prototype chain for zero arguments. Cleaned up some more, always storing Boolean.TRUE in local hash tables, rather than the method, methodKey or methodName.
git-svn-id: svn://10.0.0.236/trunk@49044 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 09:24:23 +00:00
warren%netscape.com
e39d4d6d84 Fixed bug#14863 Network buffer size too large
git-svn-id: svn://10.0.0.236/trunk@49043 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 08:54:45 +00:00
mcafee%netscape.com
6044c97cd4 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@49042 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 08:28:20 +00:00
mcafee%netscape.com
9de60d3ca0 Autoconf version of Makefile, a=smfr. Not part of default build.
git-svn-id: svn://10.0.0.236/trunk@49041 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 08:23:19 +00:00
beard%netscape.com
3750775dd6 Added ClassSignature, a key for caching generated adapter classes. Now passing superName, rather than superClass to constructor generation methods.
git-svn-id: svn://10.0.0.236/trunk@49040 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 08:11:24 +00:00
mcafee%netscape.com
d94da44084 Adding typedefs for u_long, u_int for porting reasons. a=smfr, not part of default build.
git-svn-id: svn://10.0.0.236/trunk@49038 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 07:09:15 +00:00
despotdaemon%netscape.com
a5340294c1 Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49037 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 07:05:48 +00:00
alecf%netscape.com
dc8d333362 oops, thought I was on my branch. backing out
git-svn-id: svn://10.0.0.236/trunk@49034 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 06:25:32 +00:00
alecf%netscape.com
c947a441fd first cleanup of RDF DOMDataSource in preparation for adding document observers
git-svn-id: svn://10.0.0.236/trunk@49032 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 06:21:21 +00:00
peterl%netscape.com
2071e2324e fix bug 5458 - made ApplyRenderingChangeToTree handle overflow content
as well as floaters and positioned children
also improved handling of view invalidation and syncing
removed warning
approved chofman


git-svn-id: svn://10.0.0.236/trunk@49031 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 05:02:52 +00:00
peterl%netscape.com
b95e9d0e3a remove warnings
fix bug 10007 - when style change needs to regenerate frame do not set new context into frame
approved chofman


git-svn-id: svn://10.0.0.236/trunk@49030 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 05:00:41 +00:00
sfraser%netscape.com
3c8c71f353 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@49029 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 04:11:13 +00:00
hyatt%netscape.com
217ea22816 Fix for bug 11266 on Windows and mac. making xp menus go away.
git-svn-id: svn://10.0.0.236/trunk@49028 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 03:39:35 +00:00
akhil.arora%sun.com
c2212f740d just keeping up with changes in nsWebShell.cpp
git-svn-id: svn://10.0.0.236/trunk@49027 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 03:36:04 +00:00
idk%eng.sun.com
ab18209f8a Add Registry class for storing information about java-c++
objects binding


git-svn-id: svn://10.0.0.236/trunk@49026 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 02:53:56 +00:00
pavlov%netscape.com
8834096222 move the toolbars above the sidebar r=hyatt a=brendan
git-svn-id: svn://10.0.0.236/trunk@49025 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 02:53:55 +00:00
briano%netscape.com
c30b92936c SunOS4-specific fix. If SUNOS4 is defined, we need to include unistd.h for SEEK_SET and friends.
git-svn-id: svn://10.0.0.236/trunk@49024 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 02:49:00 +00:00
akhil.arora%sun.com
143c1894fc Denis Sharypov <sdv@sparc.spb.su> implemented DOMExceptions
git-svn-id: svn://10.0.0.236/trunk@49023 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 02:35:56 +00:00
akhil.arora%sun.com
a3615e55f8 fix solaris makefiles
git-svn-id: svn://10.0.0.236/trunk@49022 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 01:45:46 +00:00
beard%netscape.com
60fa791547 Fixed generateSuper when override has void return type.
git-svn-id: svn://10.0.0.236/trunk@49021 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 01:37:32 +00:00
briano%netscape.com
b7c0364ed2 Automated update
git-svn-id: svn://10.0.0.236/trunk@49020 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 01:01:26 +00:00
briano%netscape.com
7a1822fc7d SCO-specific addition to fix some of the nsCOMPtr.h breakage.
git-svn-id: svn://10.0.0.236/trunk@49019 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 00:58:03 +00:00
waterson%netscape.com
905d7bd1da Bug 14896. Add regviewer to mac build. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@49018 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 00:51:59 +00:00
briano%netscape.com
123caeef67 SCO-specific fix. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@49017 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 00:38:13 +00:00
varada%netscape.com
35bf881b64 New cck.che file with the references to netscape 2000 removed
git-svn-id: svn://10.0.0.236/trunk@49016 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-25 00:08:16 +00:00
pnunn%netscape.com
4795faf5f3 fix for bug #13048. Patch contributed by Adam Moss and BeanySly.
git-svn-id: svn://10.0.0.236/trunk@49015 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 23:20:21 +00:00
cathleen%netscape.com
93a5083876 fix logging problem, using Append instead of SetCharAt, which doesn't work
for empty str.


git-svn-id: svn://10.0.0.236/trunk@49014 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 23:04:51 +00:00
hangas%netscape.com
0ade1185d1 a=chofmann r=hyatt,jefft Cleaned up File and Edit menus for navigator and mail, fixed 14837, fixed 14255. Moved menu from navagator.xul and hiddenwindow.xul into navigatorOverlay.xul. Created global 'New" menu.
git-svn-id: svn://10.0.0.236/trunk@49013 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 23:03:40 +00:00
despotdaemon%netscape.com
78e08554a9 Pseudo-automatic update of changes made by endico@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@49012 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 23:03:03 +00:00
putterman%netscape.com
3d7ff9d3d0 Fix for bugs 14786 and 13727. Fix leaking nsIServiceManager and datasources. Approved by chofmann
and reviewed by alecf.


git-svn-id: svn://10.0.0.236/trunk@49011 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:59:45 +00:00
ftang%netscape.com
5998553524 fix bug 14736, reviewed by tague
git-svn-id: svn://10.0.0.236/trunk@49010 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:52:11 +00:00
ftang%netscape.com
f76321309a fix bug 14802. reviewed by harishd.
git-svn-id: svn://10.0.0.236/trunk@49009 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:50:49 +00:00
ftang%netscape.com
8b7f1cf9c7 fix bug 14802, reviewed by harishd
git-svn-id: svn://10.0.0.236/trunk@49008 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:50:48 +00:00
briano%netscape.com
d61d3223bb Added a newline to the end of the file. Fix for Unix native compiler builds.
git-svn-id: svn://10.0.0.236/trunk@49007 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:47:16 +00:00
mscott%netscape.com
7aa73333f3 Bug #14813 --> we are leaking nsIURIs that went through SetNewDocument and GetPrincipal. I also took out a few
necko #ifdefs' while I was here.
r=vidur, a=leaf.


git-svn-id: svn://10.0.0.236/trunk@49006 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:06:01 +00:00
norris%netscape.com
9ac59bacd6 Shorten name to make Mac developers happy.
git-svn-id: svn://10.0.0.236/trunk@49005 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:05:41 +00:00
mscott%netscape.com
ca3ddf1f71 Bug #14813 --> we are leaking all nsIURI's that go through here. Using a nsCOMPtr fixes the leak.
r=vidur, a=leaf.


git-svn-id: svn://10.0.0.236/trunk@49004 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 21:03:58 +00:00
sspitzer%netscape.com
297024319a fix some pref migration problems (on the Mac) and fix URI parsing code.
this fixes part or all of the following bugs:   #14619 #14689 #14591
a=leaf, r=jefft


git-svn-id: svn://10.0.0.236/trunk@49003 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:42:46 +00:00
norris%netscape.com
8d83a6f90d Patches from Kurt Westerfeld for JavaScript property access to JavaBeans.
Subject:
        Re: [Fwd: [Bug 13658] Changed - Rhino: null pointer exception on class with duplicate field/method]
   Date:
        Mon, 13 Sep 1999 20:57:32 -0400
   From:
        "Kurt Westerfeld" <kurt@westerfeld.com>
     To:
        "Norris Boyd" <norris@netscape.com>




I do have a patch for this, but it is intermixed with some other changes
that I have implemented for the get/set on Java instances (per my LC3
proposal).  The bug requires changes that are a little involved actually;
basically it seems that when getting the default value for a "field and
methods" (which combines the same-named entities), the prototype of the
parent scope is deref-ed, and the parent scope is null.  Hence, the scope
must be passed into the the cloned field and method values.

Also, the NativeJavaClass implementation passed "false" for isStatic on the
constructor of the FieldAndMethods Hashtable, which results in classes
having instance methods.  Bad.  I haven't filed a bug on that yet.
Additionally, I fixed a couple other NullPointerException nigglies thrown in
when exceptions are propagated in the same area.  Finally, when getting the
default value for the field, it is helpful to convert a Scriptable to string
when that is requested (as when typing in the console).

I am attaching the changed files.  The LC3++ code can be removed if you
want, which I can do for you but it will take a little longer.  What is your
preference?

-----Original Message-----
From: Norris Boyd <norris@netscape.com>
To: Kurt Westerfeld <kurt@westerfeld.com>
Date: Monday, September 13, 1999 4:54 PM
Subject: [Fwd: [Bug 13658] Changed - Rhino: null pointer exception on class
with duplicate field/method]


>Kurt,
>
>Is this the bug that your patch fixes?
>
>Thanks,
>Norris
>


git-svn-id: svn://10.0.0.236/trunk@49002 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:41:43 +00:00
waterson%netscape.com
adfca74bf9 Fix mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@49001 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:39:26 +00:00
norris%netscape.com
63f9f43324 Remove '.js' from SECTION.
git-svn-id: svn://10.0.0.236/trunk@49000 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:16:55 +00:00
mcafee%netscape.com
3d38b60dab Adding single quotes so that pref-appearance.xul gets loaded properly (14663). a=leaf, r=akkana
git-svn-id: svn://10.0.0.236/trunk@48999 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:15:49 +00:00
akkana%netscape.com
e56093a25c 14862: Send proper triple-click count on Linux. a=leaf/r=pavlov
git-svn-id: svn://10.0.0.236/trunk@48998 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:08:53 +00:00
norris%netscape.com
734180f200 Propagate files from old netscape code.
git-svn-id: svn://10.0.0.236/trunk@48997 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 20:05:59 +00:00
waterson%netscape.com
a82ecc3d56 Bug 14754. Shore up unregistration; verify that datasource matches URI to be unregistered. Be 'quiet' if it doesn't.
git-svn-id: svn://10.0.0.236/trunk@48996 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:54:36 +00:00
waterson%netscape.com
9b9498aa71 Bug 14755. Guard against multiple simlutaneous 'Refresh()' calls issuing several URL loads. r=rjc, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@48995 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:52:42 +00:00
waterson%netscape.com
ce199baf45 Bug 14754. Support '.database' attribute on HTML elements. Fix ref='...' support for HTML templates. r=rjc, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@48994 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:49:15 +00:00
waterson%netscape.com
898dd42e07 Bug 14752. Support '.database' attribute on HTML elements. Fix ref='...' support for HTML templates. r=rjc, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@48993 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:49:12 +00:00
nisheeth%netscape.com
e0adc95ff5 a=chofmann, all changes are within an ifdef and are not being built by default
- Add ifdefs around the contents of the header file so that it doesn't get included multiple times.
- Change RAPTOR_STOPWATCH_TRACE macro to use a printf rather than NSPR logs until I figure out why the log isn't working.


git-svn-id: svn://10.0.0.236/trunk@48992 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:30:54 +00:00
nisheeth%netscape.com
a511a1d64d a=chofmann. If MOZ_PERF is defined in the environment, set up the RAPTOR_PERF_METRICS compiler define for windows.
git-svn-id: svn://10.0.0.236/trunk@48991 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:26:00 +00:00
terry%mozilla.org
d8dc2f6fd7 Patch by holger@holger.om.org (Holger Schurig) -- more fixups to put proper header on pages.
git-svn-id: svn://10.0.0.236/trunk@48990 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 19:15:51 +00:00
robinf%netscape.com
51227d7592 removed product name references; fixed WinNt widget display bugs
git-svn-id: svn://10.0.0.236/trunk@48989 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:59:51 +00:00
slamm%netscape.com
9a15e8827b Add back extra columns within comments. No bug number (they are just comments). a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@48988 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:56:51 +00:00
robinf%netscape.com
7c18b170ef edited text in New Configuration dialog per Bijal's comments; removed last paragraph.
git-svn-id: svn://10.0.0.236/trunk@48987 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:54:13 +00:00
norris%netscape.com
78fc4f7d32 Implement the "cast" of java class objects so that js objects in java adapters can
use 'this' for the implemented java interface.


git-svn-id: svn://10.0.0.236/trunk@48986 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:20:08 +00:00
slamm%netscape.com
3d6daf3a60 Send stocks privately. A number of people including me would rather not see the stock number flying by all the time.
git-svn-id: svn://10.0.0.236/trunk@48985 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:19:01 +00:00
beard%netscape.com
027ec65e17 Added "generateSuper" which generates a method called "super$method()" which when called calls "super.method()." This is provided to support full sub-classing of Java classes from JavaScript.
git-svn-id: svn://10.0.0.236/trunk@48984 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 18:17:05 +00:00
ducarroz%netscape.com
74601c8d5d Need to populate personal addressbook
Fix for bug 14568, R=mscott, A=chofmann


git-svn-id: svn://10.0.0.236/trunk@48983 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 17:38:49 +00:00
kipp%netscape.com
02327da0cf Refixed bug #10496 - a=choffman, r=troy
git-svn-id: svn://10.0.0.236/trunk@48982 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 17:23:33 +00:00
troy%netscape.com
f439c3f2b4 Fix for bug #14814. Changed GetFloaterContainingBlock() to also check for floated
or absolutely positioned inline elements


git-svn-id: svn://10.0.0.236/trunk@48981 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 17:14:19 +00:00
beard%netscape.com
594e0d302c added a prototype field, so that a wrapped JavaAdapter can preserve the delegate object's original prototype chain.
git-svn-id: svn://10.0.0.236/trunk@48980 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 16:52:23 +00:00
beard%netscape.com
35b28d6457 setAdapterProto: now splices in wrapper's prototype, rather than replacing object's original prototype chain. seems to work fine.
git-svn-id: svn://10.0.0.236/trunk@48979 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 16:51:25 +00:00
leaf%mozilla.org
f8376e3567 removing cmd/macfe; both sfraser and pinkerton confirm we don't need it.
git-svn-id: svn://10.0.0.236/trunk@48978 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 16:35:42 +00:00
dcone%netscape.com
181ceff44c Added a Release.. to fix a leak
git-svn-id: svn://10.0.0.236/trunk@48977 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 13:49:12 +00:00
dcone%netscape.com
b24a03891e Took out some Addrefs, causing leaks
git-svn-id: svn://10.0.0.236/trunk@48976 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 13:48:40 +00:00
nisheeth%netscape.com
351d8f1643 Use NSPR logging rather than printf's for stopwatch output.
git-svn-id: svn://10.0.0.236/trunk@48975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 08:57:36 +00:00
nisheeth%netscape.com
bf42b552d5 a=chofmann. Add NSPR logging facilities to the stopwatch code. Make Print() dump stopwatch info to the NSPR log. Set NSPR_LOG_MODULES=gecko_timing:1 in your environment to get timing logs printed to the file specified in the NSPR_LOG_FILE environment variable.
git-svn-id: svn://10.0.0.236/trunk@48974 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 08:39:43 +00:00
nisheeth%netscape.com
b6b8bf59c1 Move the message that announces that time is being measured for layout processes from the content sink to the webshell.
git-svn-id: svn://10.0.0.236/trunk@48973 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 07:19:44 +00:00
nisheeth%netscape.com
0b3c75b092 a=chofmann. Include time spent in ProbePseudoStyleFor() in time measurement of style resolution.
git-svn-id: svn://10.0.0.236/trunk@48972 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 07:16:20 +00:00
nisheeth%netscape.com
f622365890 Stop printing out the total time measurement in the parser. Do this measurement up in the webshell.
git-svn-id: svn://10.0.0.236/trunk@48971 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 07:14:42 +00:00
nisheeth%netscape.com
afade16145 a=chofmann. Add a stopwatch to measure total (layout+page load) time in the webshell.
git-svn-id: svn://10.0.0.236/trunk@48970 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 07:13:39 +00:00
mscott%netscape.com
036b0fe6dd Bug #14816 --> we were leaking a nsIPrincipal object in AddScriptEventListener which could be remedied using a nsCOMPtr.
Also clean up for insufficient rv useage, un-commoned JSPRINCIPALS_DROP and improving the control flow for readability.

These changes are actually Brendan's...i'm checking this in on his behalf.
r=mscott. a=brendan


git-svn-id: svn://10.0.0.236/trunk@48969 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:49:33 +00:00
dp%netscape.com
5bdd1188d8 Releasing servMgr if one is passed in to match NS_InitXPCOM()
git-svn-id: svn://10.0.0.236/trunk@48968 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:26:17 +00:00
mscott%netscape.com
b984d23c63 Bug #14815 --> fix some ref counting problems between nsJSPrincipal and nsCodebasePrincipal. nsCodeBasePrinciapl
was always getting leaked. And since it held onto the document's nsIURI, our uri's were getting leaked to.
r=brendan,a=chofmann.


git-svn-id: svn://10.0.0.236/trunk@48967 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:18:55 +00:00
dp%netscape.com
13c49140b0 Removing unused servMgr.
git-svn-id: svn://10.0.0.236/trunk@48966 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:07:19 +00:00
dp%netscape.com
c0b29522e2 Removing unused servicemanager in Init and Shudown XPCOM.
git-svn-id: svn://10.0.0.236/trunk@48965 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 06:05:28 +00:00
pinkerton%netscape.com
d9aad24d74 remove references to cmd/macfe in the access paths.
git-svn-id: svn://10.0.0.236/trunk@48964 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 05:56:50 +00:00
waterson%netscape.com
adbbff32b3 Bug 11661. Fix <menu> templates to include <menupopup> children.
git-svn-id: svn://10.0.0.236/trunk@48963 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 05:44:04 +00:00
waterson%netscape.com
a6bb4901f0 Bug 11661. Make nsPopupMenuFrame override DidReflow() because we want to do our own special view management. Fix nsMenuFrame::Dirty() to compute the correct 'incrementalChild'.
git-svn-id: svn://10.0.0.236/trunk@48962 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 05:22:55 +00:00
sfraser%netscape.com
9dec935cc2 Fix for 14804 -- make double-click handling better. r pierre, a chofmann.
git-svn-id: svn://10.0.0.236/trunk@48961 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 04:52:04 +00:00
pinkerton%netscape.com
d24760358a fix for bug #14782 (reflowing window chrome mousing over links with long urls). rev sdagley, appr chofmann.
git-svn-id: svn://10.0.0.236/trunk@48960 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 04:45:16 +00:00
idk%eng.sun.com
6e4e777b7d Removed hack for jdk
updated readme file


git-svn-id: svn://10.0.0.236/trunk@48959 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 04:12:09 +00:00
idk%eng.sun.com
cbb9784ee6 Added PlugletPolicy class.
Granted AllPermissions for each pluglet


git-svn-id: svn://10.0.0.236/trunk@48958 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 04:10:00 +00:00
troy%netscape.com
ece0f48531 Fix for bug #14737. Made sure that captionFrame is initialized before
we use it


git-svn-id: svn://10.0.0.236/trunk@48957 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 03:15:49 +00:00
mscott%netscape.com
1949443bf0 fix build bustage for dp.
git-svn-id: svn://10.0.0.236/trunk@48956 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 02:52:46 +00:00
nisheeth%netscape.com
5ad59bd30b bug 13630, r=troy, a=leaf, Added a null check to prevent a crash.
git-svn-id: svn://10.0.0.236/trunk@48955 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 01:58:32 +00:00
wtc%netscape.com
2b566763b1 Bugzilla bug #14603: simple fix for OpenVMS contributed by Colin Blake
<colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@48954 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 01:55:12 +00:00
dp%netscape.com
1b795f0d0d Assertion to ensure proper xpcom shutdown.
git-svn-id: svn://10.0.0.236/trunk@48953 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 01:40:18 +00:00
dp%netscape.com
339b69262a Fixing jsloader not to hold reference to component manager. (shaver)
Some initialization of members and checking at desctruction. (dp)


git-svn-id: svn://10.0.0.236/trunk@48952 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 01:37:44 +00:00
gordon%netscape.com
cfb286eda3 Add data.mcp and dataIDL.mcp to buildlist for bug#13697 and #8649. Reviewed by warren, approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@48951 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:47:30 +00:00
gordon%netscape.com
eb39c18d12 Change target directory for xpt file. For bug#13697. Reviewed by Warren, approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@48950 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:46:00 +00:00
pavlov%netscape.com
8c1322c734 remove printfs
git-svn-id: svn://10.0.0.236/trunk@48949 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:37:58 +00:00
pavlov%netscape.com
759b32f8ab fix for 13140, make painting on linux not suck. a=leaf r=ramiro i=rule
git-svn-id: svn://10.0.0.236/trunk@48947 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:36:00 +00:00
selmer%netscape.com
96e796121b Need to fix up inits of NODE structures
git-svn-id: svn://10.0.0.236/trunk@48946 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:25:10 +00:00
cmanske%netscape.com
2204f30a76 Fixed M11 bugs 14720 and 10666 (a=chofmann), bug 11097 (a=leaf). All approved by buster (Steve Clark)
git-svn-id: svn://10.0.0.236/trunk@48945 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:25:01 +00:00
alecf%netscape.com
39f15ec51f fix for #14699, history tree should be inside divs r=waterson, a=leaf
git-svn-id: svn://10.0.0.236/trunk@48944 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-24 00:13:02 +00:00
vidur%netscape.com
0b80e52b07 global object no longer has an unused constructor.
git-svn-id: svn://10.0.0.236/trunk@48943 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:52:09 +00:00
vidur%netscape.com
78991379e5 Fixed setTimeout bustage with the introduction of nsIScriptContext::CallFunction
git-svn-id: svn://10.0.0.236/trunk@48942 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:51:38 +00:00
sfraser%netscape.com
b1c66fccb7 Fix for bug 14640 -- unregister the selection listener when we get more than one reload in the editor. coded buster, r sfraser, a leaf.
git-svn-id: svn://10.0.0.236/trunk@48941 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:46:23 +00:00
terry%mozilla.org
6f09793705 The port to perl caused this to generate times several hours off (due to timezone follies).
git-svn-id: svn://10.0.0.236/trunk@48940 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:34:59 +00:00
beard%netscape.com
4a6bc220ae bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48939 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:57 +00:00
beard%netscape.com
bbdb98bf69 bug #7774: added SetViewAutoZIndex to support CSS2 auto z-indexing. bug# 14601: assertion cleanup, using #ifdef instead of if (gsDebug). a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48938 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:55 +00:00
beard%netscape.com
0193ba8474 bug #7774: added new bit NS_VIEW_PUBLIC_FLAG_AUTO_ZINDEX, SetAutoZIndex/GetAutoZIndex to support CSS2 auto z-indexing. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48937 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:54 +00:00
beard%netscape.com
82a6ffbec0 bug #10503: override SetZIndex to propagate to child views. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48936 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:49 +00:00
beard%netscape.com
5ead22a8f0 bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48935 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:47 +00:00
pinkerton%netscape.com
54f4033ebb don't invalidate the control if it's already enabled. (rev sfraser/appr leaf)
git-svn-id: svn://10.0.0.236/trunk@48934 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:37 +00:00
beard%netscape.com
677002e392 bug #10503: added SetZIndex & GetZIndex. a=leaf, r=troy
git-svn-id: svn://10.0.0.236/trunk@48933 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:26:25 +00:00
gordon%netscape.com
59e19a69f5 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48932 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:25:14 +00:00
rogerl%netscape.com
eb09a8178e New error for wacky array lengths, ECMA 3
git-svn-id: svn://10.0.0.236/trunk@48931 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:19:00 +00:00
cbegle%netscape.com
ab0340f19f update script to report an error if no tests passed.
git-svn-id: svn://10.0.0.236/trunk@48930 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:00:38 +00:00
cbegle%netscape.com
b6325dcb92 just changing the section name so it doesn't break norris's script.
git-svn-id: svn://10.0.0.236/trunk@48929 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:59:20 +00:00
putterman%netscape.com
c46467d214 Fix for 14386. Prevent memory corruption when opening and closing an account.
Approved = leaf. Reviewed -= karnaze.


git-svn-id: svn://10.0.0.236/trunk@48928 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:44:47 +00:00
terry%mozilla.org
6bba05c906 Need to quote "@" in double-quoted perl strings.
git-svn-id: svn://10.0.0.236/trunk@48927 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:21:30 +00:00
briano%netscape.com
c910ae0f3b QNX-specific fix.
git-svn-id: svn://10.0.0.236/trunk@48926 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:08:49 +00:00
mcafee%netscape.com
afe3584ce5 Casting arguments to gdk_property_change() to make some non-Linux platforms happier. r=slamm, a=leaf
git-svn-id: svn://10.0.0.236/trunk@48925 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 21:43:04 +00:00
terry%mozilla.org
4dfcaabdb5 Patch by Tom Schutter <tom@platte.com> -- set component to 'GNATS Import' instead of $product
git-svn-id: svn://10.0.0.236/trunk@48924 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 21:35:29 +00:00
briano%netscape.com
0b97797e2f Fixed for compilers that don't permit a comma at the end of an enum list.
git-svn-id: svn://10.0.0.236/trunk@48923 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 21:30:07 +00:00
harishd%netscape.com
16c41b22bc Fix for bug 14767.
[A] chofmann [R] nisheeth


git-svn-id: svn://10.0.0.236/trunk@48922 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 21:26:40 +00:00
putterman%netscape.com
bc9bc357be Fix for 13815. Implement OnContentInserted. Approved by chofmann and reviewed by hyatt.
git-svn-id: svn://10.0.0.236/trunk@48921 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 21:11:02 +00:00
norris%netscape.com
15b6d9b0f8 Fix some Array tests in the ecma suite.
git-svn-id: svn://10.0.0.236/trunk@48920 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 20:37:56 +00:00
mark.lin%eng.sun.com
aba416501a Took out the debug panel which appears whenever System.out messages are
displayed. Also took out my SwingPeers stuff, as it's now obsolete.


git-svn-id: svn://10.0.0.236/trunk@48919 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 20:36:16 +00:00
nhotta%netscape.com
d3ab0aec0f fix for #14621. r=ftang, a=chofmann
git-svn-id: svn://10.0.0.236/trunk@48918 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:53:19 +00:00
pnunn%netscape.com
6b58be3316 Code check in for lennox@cs.columbia.edu for bug#6323. Fix for bsd folks.
r:dp,pnunn a:leaf


git-svn-id: svn://10.0.0.236/trunk@48917 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:19:07 +00:00
terry%mozilla.org
5af5755c02 Patch by holger@holger.om.org (Holger Schurig) -- several cleanups.
git-svn-id: svn://10.0.0.236/trunk@48916 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:19:02 +00:00
sgehani%netscape.com
2028f69f21 Fixing XPInstall UNIX bustage: bug 14504
git-svn-id: svn://10.0.0.236/trunk@48915 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:17:27 +00:00
buster%netscape.com
fb2eca4395 fixed IsEditable again, based on new info.
Now, only \n are held in the content model, making the original
implementation correct.
a=chofmann, r=akkana


git-svn-id: svn://10.0.0.236/trunk@48914 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:08:42 +00:00
terry%mozilla.org
5bd5dfb97f Patch by holger@holger.om.org (Holger Schurig) -- put the fancy header on several pages that were missing it.
git-svn-id: svn://10.0.0.236/trunk@48913 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:08:03 +00:00
mgleeson1%netscape.com
55f717cc4d fix for UNIX ports r=kipp, a=hofmann,kipp
git-svn-id: svn://10.0.0.236/trunk@48912 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 19:02:23 +00:00
alecf%netscape.com
12f088887d fix for #13403, misspelled "titlemenuseparator"
git-svn-id: svn://10.0.0.236/trunk@48911 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 18:43:48 +00:00
alecf%netscape.com
7eb184206f fix for #14639 r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@48910 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 18:43:08 +00:00
colin%theblakes.com
9981d522c9 cast the time_t -1: bug #14708
git-svn-id: svn://10.0.0.236/trunk@48909 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 18:41:53 +00:00
sspitzer%netscape.com
c7233d18c6 fix for #14726. r=mscott, a=leaf.
git-svn-id: svn://10.0.0.236/trunk@48908 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 18:40:43 +00:00
radha%netscape.com
ea366fe8f1 Don't call UpdateGoMenu twice.
git-svn-id: svn://10.0.0.236/trunk@48907 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 17:46:03 +00:00
norris%netscape.com
94fd9ef137 change FAILED color to red
git-svn-id: svn://10.0.0.236/trunk@48906 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 17:26:22 +00:00
norris%netscape.com
d2c3e4add4 Add test driver for rhino.
git-svn-id: svn://10.0.0.236/trunk@48905 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 17:24:14 +00:00
brade%netscape.com
e56cb73396 bug #14493; a=leaf; r=saari,sfraser. Start to implement proposed key spec (enough to match current editor assumptions). Send KeyPress events for all keydowns. Set or zero charCode and keyCode as appropriate. Have ConvertKeyEventToUnicode return the charCode (only for keypress). Add some additional infrastructure for when the spec is finalized.
git-svn-id: svn://10.0.0.236/trunk@48904 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 14:47:09 +00:00
brade%netscape.com
cb00c4c646 change api for ConvertKeyEventToUnicode to return charCode
git-svn-id: svn://10.0.0.236/trunk@48903 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 14:47:00 +00:00
rods%netscape.com
9eb14eae26 fixed rollup notification code
git-svn-id: svn://10.0.0.236/trunk@48902 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 12:03:44 +00:00
idk%eng.sun.com
bce2458b1a apdated test
git-svn-id: svn://10.0.0.236/trunk@48901 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 06:38:06 +00:00
idk%eng.sun.com
3f8850f8d2 Add support for multiple pluglets
add some checkings


git-svn-id: svn://10.0.0.236/trunk@48900 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 06:17:12 +00:00
sgehani%netscape.com
975d4b51d7 * Added support for recursive extraction of arbitrarily nested files in the core_file zip archive.
* Fixed welcome window to disable back button.

* Added PRE_BETA_HACKERY symbolic constant that alters the download and extraction location of the core_file to the user selected folder and does not run xpinstall, instead of the normal behavior of extracting the core_file in "Temporary Items" and loading and running all downloaded .xips through xpinstall.

* Fixed terminal window icon repaint bug 13770.


git-svn-id: svn://10.0.0.236/trunk@48899 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 06:06:58 +00:00
ftang%netscape.com
bd400aaca3 fix spelling error
git-svn-id: svn://10.0.0.236/trunk@48898 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 05:01:09 +00:00
pavlov%netscape.com
e06908e892 fix for build breakage on aix, hpux and other platforms no one uses a=briano
git-svn-id: svn://10.0.0.236/trunk@48896 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 04:21:58 +00:00
bienvenu%netscape.com
6fbcbb3bfc fix 14544 pop move msg filters broken r=dougt a=chofman
git-svn-id: svn://10.0.0.236/trunk@48895 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 04:18:00 +00:00
buster%netscape.com
ba9de776b0 13669: password data wrong if user types with 1 or more chars selec...
my bad, I make the assumption everywhere that start>=end at the end of
  GetTextSelectionOffsets().  Now I enforce that restriction before returning.

14430: partial fix for misbehaving inline attribute code


git-svn-id: svn://10.0.0.236/trunk@48894 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 04:01:10 +00:00
peterl%netscape.com
9462a868c5 Remember: always remove mapped attributes from hashtable before modifying them.
Fix bug 13589


git-svn-id: svn://10.0.0.236/trunk@48893 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 03:54:12 +00:00
ftang%netscape.com
f1cf169ff9 fix bug 13946
git-svn-id: svn://10.0.0.236/trunk@48892 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 03:27:53 +00:00
alecf%netscape.com
fc3f477712 oops, back out extra checkin
git-svn-id: svn://10.0.0.236/trunk@48891 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 03:02:00 +00:00
alecf%netscape.com
d99c798a9b misspelled variable - it's "folderTree" not "tree"
a=chofmann


git-svn-id: svn://10.0.0.236/trunk@48890 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 03:01:17 +00:00
saari%netscape.com
ffd3eb70d8 A better fix for blocker #14464. Reviewed by Hyatt w. permission from leaf/choffman
git-svn-id: svn://10.0.0.236/trunk@48889 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 02:31:37 +00:00
ftang%netscape.com
10bfc149b3 fix crash when the pref callback get call. Part of bug 14219
git-svn-id: svn://10.0.0.236/trunk@48888 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 02:10:15 +00:00
ftang%netscape.com
be323be1d1 hookup code for 14219
git-svn-id: svn://10.0.0.236/trunk@48887 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 02:08:39 +00:00
saari%netscape.com
9b2b7e5175 Fix for blocker bug #14464. Reviewed by Hyatt, checkin permission by leaf.
git-svn-id: svn://10.0.0.236/trunk@48886 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 01:55:41 +00:00
rjc%netscape.com
bf364b8d03 Fix bug # 14678: defer loading of Sherlock files until first usage. Approval: chofmann. Review: sdagley.
git-svn-id: svn://10.0.0.236/trunk@48885 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 01:11:03 +00:00
law%netscape.com
1db3eeda34 Get file download working; r=danm@netscape.com; a=chofmann@netscape.com
git-svn-id: svn://10.0.0.236/trunk@48884 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:49:15 +00:00
colin%theblakes.com
db1381d940 Add dist/bin to EXTRA_DSO_LDOPTS to locate xpcom. See bug 14562.
git-svn-id: svn://10.0.0.236/trunk@48883 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:27:00 +00:00
dp%netscape.com
d399f0104e UnloadAll() on non-native loaders.
git-svn-id: svn://10.0.0.236/trunk@48882 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:14:00 +00:00
buster%netscape.com
3f8d33af18 14602: IsEditable is broken.
removed optimization where we searched text strings and made our own guess about
  whether it was editable or not.  Now we just trust layout, if there's a frame, it's editable.


git-svn-id: svn://10.0.0.236/trunk@48881 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:10:51 +00:00
dp%netscape.com
7eab9cadfe Enabling xpcom shutdown to call NSCanUnload() on every component.
git-svn-id: svn://10.0.0.236/trunk@48880 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:01:53 +00:00
dp%netscape.com
5441bfb1ff Assertions to ensure proper shutdown of xpcom.
git-svn-id: svn://10.0.0.236/trunk@48879 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 00:00:08 +00:00
briano%netscape.com
ee360d3401 Reserved name __STDC__ cannot be defined as a macro name on AIX or OpenVMS.
git-svn-id: svn://10.0.0.236/trunk@48878 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 23:43:51 +00:00
colin%theblakes.com
2093fec6f2 comment in #endif was missing comment delimiters
git-svn-id: svn://10.0.0.236/trunk@48877 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 23:39:30 +00:00
despotdaemon%netscape.com
f9312e57e6 Pseudo-automatic update of changes made by ppandit@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@48876 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 23:27:45 +00:00
briano%netscape.com
cddaf6ef4e Added OpenVMS to the 'list' of platforms that need to be excluded from using -D__STDC__. Approved by chofmann.
git-svn-id: svn://10.0.0.236/trunk@48875 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 23:22:07 +00:00
leaf%mozilla.org
d96e7f942e correcting package listing for rearranged js and dlls... not built, just packager stuff
git-svn-id: svn://10.0.0.236/trunk@48874 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 23:06:47 +00:00
rpotts%netscape.com
dee75ea3d4 bug #14457. Getting the webcrawler working again for QA...
git-svn-id: svn://10.0.0.236/trunk@48873 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:58:29 +00:00
despotdaemon%netscape.com
21d8157821 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48872 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:42:57 +00:00
cata%netscape.com
1a79d6c822 Fixing bug #14605.
git-svn-id: svn://10.0.0.236/trunk@48871 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:32:44 +00:00
leaf%mozilla.org
80677289fc removing old mork directories from mailnews/db
git-svn-id: svn://10.0.0.236/trunk@48870 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:30:36 +00:00
rogerl%netscape.com
c5c6ab5de5 Can't assume object in reportConversionError is scriptable, so call more
generic java.object.toString instead.


git-svn-id: svn://10.0.0.236/trunk@48869 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:06:14 +00:00
matt%netscape.com
6541ace0b0 Just changing things...approved by leaf
git-svn-id: svn://10.0.0.236/trunk@48868 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 21:52:08 +00:00
despotdaemon%netscape.com
c3517e5611 Pseudo-automatic update of changes made by ppandit@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@48867 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 21:51:29 +00:00
despotdaemon%netscape.com
cad4f8057b Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48866 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 21:33:17 +00:00
idk%eng.sun.com
26cb2cc2d2 bug fix.
Call AddRef for StreamListener in PlugletInstance.NewStream


git-svn-id: svn://10.0.0.236/trunk@48865 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 20:16:11 +00:00
sspitzer%netscape.com
0d4138f7c1 fix for #14604. pop migration was broken on mac.
my code to migrate 4.x imap mail filters on the mac should only be run when we used pop in 4.x


git-svn-id: svn://10.0.0.236/trunk@48864 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 20:01:20 +00:00
slamm%netscape.com
2caf8aecc4 Add Backwards.pm, some examples, and make sure examples directory is created. Thanks to Justin Hitt <hittjw@navyair.navy.mil> for the patch.
git-svn-id: svn://10.0.0.236/trunk@48863 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 18:51:13 +00:00
norris%netscape.com
99d0d967f9 Allow a java.lang.String to be converted to a primitive string in getDefaultValue
git-svn-id: svn://10.0.0.236/trunk@48862 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 16:30:49 +00:00
norris%netscape.com
343f60c0f0 Fix "wapper".
git-svn-id: svn://10.0.0.236/trunk@48861 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 16:25:21 +00:00
terry%mozilla.org
2546af48d0 Patch by Tom Schutter <tom@platte.com> -- was setting milestone descriptions to NULL instead of ''.
git-svn-id: svn://10.0.0.236/trunk@48860 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 15:55:56 +00:00
briano%netscape.com
bebe05c549 Automated update
git-svn-id: svn://10.0.0.236/trunk@48859 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 10:01:17 +00:00
ramiro%netscape.com
1dffe81e41 Turn on (for real this time) stripping of uneeded symbols from
components.  Only for linux non debug builds.  Approved by mscott.


git-svn-id: svn://10.0.0.236/trunk@48858 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 09:54:00 +00:00
sspitzer%netscape.com
6e34fc6be0 fix for #13862
now we properly migrate imap filter rule files on the Mac.


git-svn-id: svn://10.0.0.236/trunk@48857 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 09:06:06 +00:00
ftang%netscape.com
7c68543645 add pref callback for charset detectors
git-svn-id: svn://10.0.0.236/trunk@48856 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:49:28 +00:00
rjc%netscape.com
c4c5b0daa4 Match up icons.
git-svn-id: svn://10.0.0.236/trunk@48855 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:32:36 +00:00
ftang%netscape.com
3276250245 use dtd for charset detectors menu (not the items yet). Fix typo of pref call
git-svn-id: svn://10.0.0.236/trunk@48854 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:26:29 +00:00
mscott%netscape.com
152c964a75 Bug #14072 --> throw up a dialog if the user tries to send a message
without providing a host name (i.e. they haven't set up there prefs right)


git-svn-id: svn://10.0.0.236/trunk@48853 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:25:58 +00:00
rjc%netscape.com
726f696f56 Add more search engines.
git-svn-id: svn://10.0.0.236/trunk@48852 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:25:42 +00:00
ftang%netscape.com
68603a5bdf add charset detectors menu
git-svn-id: svn://10.0.0.236/trunk@48851 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:24:57 +00:00
beard%netscape.com
49c1f19806 JavaAdapter no longer uses FlattenedObject, since the prototype is simply the LiveConnect wrapper.
git-svn-id: svn://10.0.0.236/trunk@48850 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:22:53 +00:00
beard%netscape.com
f8d3e2c162 JavaAdapter no longer uses FlattenedObject, since the prototype is simply the LiveConnect wrapper. Simplified callMethod to only call Context.enter() if methodId property is defined in Scriptable object.
git-svn-id: svn://10.0.0.236/trunk@48849 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:22:47 +00:00
sspitzer%netscape.com
c054d3e86c fix several warnings. we only need to declare this a friend once.
git-svn-id: svn://10.0.0.236/trunk@48848 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:17:46 +00:00
mscott%netscape.com
ca1710628a If we make an error string have a negative ID then the high bit of the id is set. This allows us to pass in the
string ID around as an nsresult and it will properly be detected as an error code when we do NS_FAILED(rv)
tests on it..nifty huh...

In order to do this, we need to get rid of the enum for the string ids. This also makes things more robust
as we must now explicitly list the id for each string id instead of using the enum to do it for us. It was easy
to get out of step with the properties file when the enum was used.


git-svn-id: svn://10.0.0.236/trunk@48847 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:09:25 +00:00
mscott%netscape.com
7152c92434 If we make an error string have a negative ID then the high bit of the id is set. This allows us to pass in the
string ID around as an nsresult and it will properly be detected as an error code when we do NS_FAILED(rv)
tests on it..nifty huh...


git-svn-id: svn://10.0.0.236/trunk@48846 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:07:52 +00:00
pavlov%netscape.com
e01f0d65ac removing printf for every mouse move
git-svn-id: svn://10.0.0.236/trunk@48845 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:56:37 +00:00
sspitzer%netscape.com
1b53351f7c fix for #14538
migrate 4.x pop filter rules to the right place, and rename them if necessary.


git-svn-id: svn://10.0.0.236/trunk@48844 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:56:20 +00:00
rjc%netscape.com
fe874e4fa0 Try getting "ref" before getting "id". Also, use tree.selectedItems() method everywhere.
git-svn-id: svn://10.0.0.236/trunk@48843 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:54:58 +00:00
dveditz%netscape.com
b571cf447f Turning buffered registry i/o back on, bugs 14306,11203
git-svn-id: svn://10.0.0.236/trunk@48842 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:53:15 +00:00
jband%netscape.com
63a2567d8b avoid uninitialized memory reads by copying only the significant part of the union when initializing an nsXPTCVariant from a nsXPTCMiniVariant using nice encapsulated inline method.
git-svn-id: svn://10.0.0.236/trunk@48841 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:53:07 +00:00
dveditz%netscape.com
20dc4b8534 Bugfix 7928
git-svn-id: svn://10.0.0.236/trunk@48840 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:49:22 +00:00
rickg%netscape.com
b5bb9a48c0 improve timer usage in parsing engine for more accurate report
git-svn-id: svn://10.0.0.236/trunk@48839 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:41:53 +00:00
rjc%netscape.com
80e6d0e226 Even more cut/copy/paste/delete support.
git-svn-id: svn://10.0.0.236/trunk@48838 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:41:15 +00:00
mcafee%netscape.com
e6037a3eb4 Adding nsWindow::StoreProperty() so we can hang Xatoms on windows.
git-svn-id: svn://10.0.0.236/trunk@48837 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:38:28 +00:00
ftang%netscape.com
4443079fda add dtd files for charsetDetectors
git-svn-id: svn://10.0.0.236/trunk@48836 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:34:39 +00:00
rpotts%netscape.com
b23536efc2 Changed the printing to use the ImageGroup notifications rather than the document loader because a document is *not* being loaded... This fixes printing after the changes to the document loader notifications.
git-svn-id: svn://10.0.0.236/trunk@48835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:34:31 +00:00
law%netscape.com
5a0f4b43ea Better context menus (but still a ways to go)
git-svn-id: svn://10.0.0.236/trunk@48834 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:30:44 +00:00
mjudge%netscape.com
7971bfb7e6 more tweaks for line boundaries. previous
git-svn-id: svn://10.0.0.236/trunk@48833 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:26:37 +00:00
mscott%netscape.com
af4be7449f added a close method to release several sinks after we are done converting as a pre-emptive strike against
some memory leaks.


git-svn-id: svn://10.0.0.236/trunk@48832 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:21:32 +00:00
ducarroz%netscape.com
91fcdb5415 need to support invalid URL as well URL without "http://", fix for bug 14376
git-svn-id: svn://10.0.0.236/trunk@48831 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:20:49 +00:00
law%netscape.com
80b0c667cf Minor context menu tweaking
git-svn-id: svn://10.0.0.236/trunk@48830 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:20:06 +00:00
mjudge%netscape.com
b8eaf7bac4 tweaked word left and word right again. got double click working on edge cases! yeah
git-svn-id: svn://10.0.0.236/trunk@48829 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:09:41 +00:00
alecf%netscape.com
250bb01f4e hook up drafts/templates/fcc to identities
git-svn-id: svn://10.0.0.236/trunk@48828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 07:03:27 +00:00
ducarroz%netscape.com
6ae3f74877 need to suppot bad URL or url without "http://", fix for bug 14376
git-svn-id: svn://10.0.0.236/trunk@48827 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:45:09 +00:00
briano%netscape.com
7d6e12eae8 Added the missing semicolon.
git-svn-id: svn://10.0.0.236/trunk@48826 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:32:45 +00:00
joki%netscape.com
ffaa4fa00a Various fixes to prevent casting events to the wrong struct subtypes when queried
git-svn-id: svn://10.0.0.236/trunk@48824 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:30:01 +00:00
joki%netscape.com
f92190c9cf Fix scrolling via home/end keys to scroll to beginning and end of doc
git-svn-id: svn://10.0.0.236/trunk@48823 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:28:57 +00:00
briano%netscape.com
48a82375e2 Backed out cls's change. When realclean is added to the list, the Tinderbox builds fail because they generate the Makefiles in webshell/embed/gtk, and then the realclean (aka distclean) deletes them. That's bad....
git-svn-id: svn://10.0.0.236/trunk@48822 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:28:46 +00:00
pavlov%netscape.com
1a3a066f8e implimented GetURI()
git-svn-id: svn://10.0.0.236/trunk@48821 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:27:37 +00:00
law%netscape.com
95488ac240 Fixes for context menus; a=hyatt (I just pressed the keys he told me to :-)
git-svn-id: svn://10.0.0.236/trunk@48820 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:27:28 +00:00
ftang%netscape.com
8c72bfbf3e add charsetDetectorsOverlay
git-svn-id: svn://10.0.0.236/trunk@48819 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:27:04 +00:00
pavlov%netscape.com
a18c59b67e fix for 14292, 4289, 13051
git-svn-id: svn://10.0.0.236/trunk@48818 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:25:13 +00:00
ftang%netscape.com
ce81da1b5c add charset Detectors menu in overlay
git-svn-id: svn://10.0.0.236/trunk@48817 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:23:45 +00:00
bienvenu%netscape.com
b54090fe65 fix assert on startup without folder cache, workaround service manager shutdown bug
git-svn-id: svn://10.0.0.236/trunk@48816 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:23:16 +00:00
ftang%netscape.com
4784abf0cf turn off the very-slow-in-worst-cases ATSUI fallback
git-svn-id: svn://10.0.0.236/trunk@48815 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:22:43 +00:00
rickg%netscape.com
001a404a26 added DEBUG timing code to parsing engine
git-svn-id: svn://10.0.0.236/trunk@48814 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:19:50 +00:00
mscott%netscape.com
4ccf176a9f Remove all of these files from the repository. They are now built in mozilla\db\mork
git-svn-id: svn://10.0.0.236/trunk@48813 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:14:07 +00:00
mjudge%netscape.com
6b1af498fe recursion failing finding the same frame we started with sometimes with generated content from style. simple 2 line check to avoind this. dagley said ok to check in red tree since not hurting anyone.
git-svn-id: svn://10.0.0.236/trunk@48812 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:12:44 +00:00
alecf%netscape.com
61d4d4619c add div tag so that testcase still works
git-svn-id: svn://10.0.0.236/trunk@48811 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:09:34 +00:00
alecf%netscape.com
9d61124903 disable unimplemented buttons, add hardrule above ok/cancel
git-svn-id: svn://10.0.0.236/trunk@48810 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:08:30 +00:00
alecf%netscape.com
3daae2bbca update the account wizard to specs, fix typos, fix layout, and summarize the account at the end of the setup
git-svn-id: svn://10.0.0.236/trunk@48809 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:08:08 +00:00
alecf%netscape.com
762613f5ee fix typos
git-svn-id: svn://10.0.0.236/trunk@48808 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:07:32 +00:00
dveditz%netscape.com
27bfc7c1fd Fix leak of SoftwareUpdate service, 14549
git-svn-id: svn://10.0.0.236/trunk@48807 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:07:23 +00:00
alecf%netscape.com
310d425f45 add aw-done.js
git-svn-id: svn://10.0.0.236/trunk@48806 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:07:05 +00:00
alecf%netscape.com
b2e7379122 add fix typos, add strings I needed for the wizard
git-svn-id: svn://10.0.0.236/trunk@48805 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:06:37 +00:00
alecf%netscape.com
be5c5bc2b7 persist window size and position
git-svn-id: svn://10.0.0.236/trunk@48804 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:05:36 +00:00
mscott%netscape.com
0c92502f2b add password prompt text and some more pop server alert strings
git-svn-id: svn://10.0.0.236/trunk@48803 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:03:56 +00:00
mscott%netscape.com
0c847bc82c Bug #6651 --> finish adding alerts to pop code
git-svn-id: svn://10.0.0.236/trunk@48802 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:03:28 +00:00
mscott%netscape.com
b74a029c57 get password prompt text and some more pop server alert strings
git-svn-id: svn://10.0.0.236/trunk@48801 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:03:11 +00:00
mscott%netscape.com
614fb1e359 GetPasswordWithUI takes a prompt string to give the protocols finer control over the actual text that goes with the dialog
git-svn-id: svn://10.0.0.236/trunk@48800 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:02:46 +00:00
sdagley%netscape.com
29f4cb6243 Landing fix for davidm. Returning nsnull was being interpreted as no error so changing to a return code that indicates an error.
git-svn-id: svn://10.0.0.236/trunk@48799 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:02:21 +00:00
cata%netscape.com
b6b82a4fb6 Activation of the new charset menu.
git-svn-id: svn://10.0.0.236/trunk@48798 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 06:01:49 +00:00
mjudge%netscape.com
e27650740e approved by Dagley. fixes for CTRL_LEFT and CTRL_RIGHT navigation and wrapping
git-svn-id: svn://10.0.0.236/trunk@48797 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:56:44 +00:00
brendan%mozilla.org
0eaf6f0e91 - Enable JS_HAS_NEW_OBJ_METHODS (Object.prototype.hasOwnProperty, isPrototypeOf
and propertyIsEnumerable) for JS1.5.
- Optimize obj_propertyIsEnumerable to avoid extra lookup code bloat, requiring
  fix to js_GetAttributes (unset out param on successful early retunr) that it
  exposed.
- Use more righteous else-if style in shaver's jsarray.c change.


git-svn-id: svn://10.0.0.236/trunk@48796 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:54:44 +00:00
cmanske%netscape.com
d733c2160f More list property dialog work. Remaned GetParagraphStyle to more readable GetParagraphTags. Added GetListTags needed for list manipulation. Enhanced GetElementOrParentByTagName to handle lists
git-svn-id: svn://10.0.0.236/trunk@48795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:52:44 +00:00
cmanske%netscape.com
3a3abe3507 Removing file no longer in build
git-svn-id: svn://10.0.0.236/trunk@48794 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:52:08 +00:00
sspitzer%netscape.com
3213f6fcd3 fix build bustage. (it was me, not davidmc)
git-svn-id: svn://10.0.0.236/trunk@48793 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:38:10 +00:00
sspitzer%netscape.com
ee5dba912f changes for davidmc.
git-svn-id: svn://10.0.0.236/trunk@48792 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:35:43 +00:00
davidmc%netscape.com
b55cd3d2f8 changes for hash tables and zone pooling.
git-svn-id: svn://10.0.0.236/trunk@48791 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:35:28 +00:00
sdagley%netscape.com
d09f586f6c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48790 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:34:08 +00:00
sspitzer%netscape.com
0e772449c4 fix my build bustage.
git-svn-id: svn://10.0.0.236/trunk@48789 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:32:41 +00:00
davidmc%netscape.com
e5fdd42ad6 add these. not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@48788 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:06:37 +00:00
buster%netscape.com
6c46de52f8 very simple extension of a fix already in place for bug 11804
git-svn-id: svn://10.0.0.236/trunk@48787 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:00:58 +00:00
sspitzer%netscape.com
fa3910692c fix to use nsXPIDLCString.
git-svn-id: svn://10.0.0.236/trunk@48786 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:00:23 +00:00
sspitzer%netscape.com
38961fdaa4 use the right throbber.
git-svn-id: svn://10.0.0.236/trunk@48785 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:57:55 +00:00
sspitzer%netscape.com
0d548ce11d fix more insanity.
git-svn-id: svn://10.0.0.236/trunk@48784 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:51:06 +00:00
dougt%netscape.com
d1c2703cb2 Fixed a bunch of Freeing Memory Mismatches.
Now using Recycle.
Fixes 8538.


git-svn-id: svn://10.0.0.236/trunk@48783 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:43:03 +00:00
leaf%mozilla.org
51817e9f58 checking in a change to fix the windows installer packages
git-svn-id: svn://10.0.0.236/trunk@48782 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:38:30 +00:00
shaver%netscape.com
4ae847a467 new Array("string") should be ["string"], not silent failure (14545, r=brendan)
git-svn-id: svn://10.0.0.236/trunk@48781 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:36:28 +00:00
sfraser%netscape.com
4eff9ae16a Fix error in new profile dialog.
git-svn-id: svn://10.0.0.236/trunk@48780 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:22:49 +00:00
bienvenu%netscape.com
eb981c53c1 fix race condition with fe events
git-svn-id: svn://10.0.0.236/trunk@48779 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:16:41 +00:00
mjudge%netscape.com
807d5be104 fixes for line/frame traversal. now we use more common code inside nsFrame rather than nsTextFrame specific code all the time.
git-svn-id: svn://10.0.0.236/trunk@48778 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:12:23 +00:00
mjudge%netscape.com
99c8c76560 fixes for hint code
git-svn-id: svn://10.0.0.236/trunk@48777 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:11:38 +00:00
matt%netscape.com
347d592645 Fixing trashed file
git-svn-id: svn://10.0.0.236/trunk@48776 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:08:57 +00:00
beard%netscape.com
dde300d73f renamed "name" parameter "adapterName", removed explicit StringBuffer in favor of "adapter" + serial++ for clarity.
git-svn-id: svn://10.0.0.236/trunk@48775 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:54:00 +00:00
buster%netscape.com
098fbc08fd fixed odd problem where editor app would not load default document
git-svn-id: svn://10.0.0.236/trunk@48774 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:50:47 +00:00
alecf%netscape.com
7e364a5a41 bring account setup dialog up to spec
git-svn-id: svn://10.0.0.236/trunk@48773 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:44:58 +00:00
alecf%netscape.com
dd6ed485b9 fix GetPassword() bustage
git-svn-id: svn://10.0.0.236/trunk@48772 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:40:07 +00:00
matt%netscape.com
32009d5afe Moving files to chrome directory.
git-svn-id: svn://10.0.0.236/trunk@48771 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:36:25 +00:00
morse%netscape.com
13b558542d backing out Ben Goodger's viewer due to bug 14079
git-svn-id: svn://10.0.0.236/trunk@48770 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:36:19 +00:00
ftang%netscape.com
f361a78300 check in code drop from Xu, Yueheng <yueheng.xu@intel.com>
git-svn-id: svn://10.0.0.236/trunk@48769 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:35:31 +00:00
sspitzer%netscape.com
375399d0f7 fix for #14518.
add the stop and print buttons to the three pane.
print works, stop doesn't.  bug already logged against mscott.
(stop is a nasty issue.)


git-svn-id: svn://10.0.0.236/trunk@48768 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:32:18 +00:00
waterson%netscape.com
24a1b2ab2e Make ::Init() barf if the element is not a container, rather than sprinkling around in individual methods.
git-svn-id: svn://10.0.0.236/trunk@48767 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:28:32 +00:00
ftang%netscape.com
04ba9d7f2e add registratoin information
git-svn-id: svn://10.0.0.236/trunk@48766 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:21:58 +00:00
mscott%netscape.com
023090ec4c Removing mdb files from the repository. These files now live in mozilla\db.
git-svn-id: svn://10.0.0.236/trunk@48765 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:21:49 +00:00
ftang%netscape.com
d5d73ddc2b fix utf converson bug
git-svn-id: svn://10.0.0.236/trunk@48764 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:20:21 +00:00
shaver%netscape.com
845c94e8fb add componentType to nsIModule::RegisterSelf
git-svn-id: svn://10.0.0.236/trunk@48763 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:18:27 +00:00
sspitzer%netscape.com
2bf0eb24f8 export stop and print buttons
git-svn-id: svn://10.0.0.236/trunk@48762 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:17:43 +00:00
sspitzer%netscape.com
131ae53ed7 adding print and stop gifs (from 4.x)
adding them here, since they are global.
a bunch of places will want stop and print, and I'm going to find and
fix those places to use these.


git-svn-id: svn://10.0.0.236/trunk@48761 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:16:14 +00:00
briano%netscape.com
f7cf2c37ec Automated update
git-svn-id: svn://10.0.0.236/trunk@48760 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:16:10 +00:00
shaver%netscape.com
fb59f1b2ef missed an NS_DEBUG->DETECT_WEBSHELL_LEAKS
git-svn-id: svn://10.0.0.236/trunk@48759 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:14:44 +00:00
ramiro%netscape.com
be3c415e9c Strip unused symbols from .so components on linux by default.
git-svn-id: svn://10.0.0.236/trunk@48758 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:14:23 +00:00
ducarroz%netscape.com
857b3f93b6 fix spelling error
git-svn-id: svn://10.0.0.236/trunk@48757 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:13:18 +00:00
ducarroz%netscape.com
4c622ef039 Add back an menu item to delete attachment
git-svn-id: svn://10.0.0.236/trunk@48756 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:12:48 +00:00
evaughan%netscape.com
a34d7c1285 1) Made better box debug output
2) Disabled auto collapsing of splitterview


git-svn-id: svn://10.0.0.236/trunk@48755 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:11:47 +00:00
harishd%netscape.com
3304eaed01 Fix for bugs 13113, and 12631.
git-svn-id: svn://10.0.0.236/trunk@48754 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:05:25 +00:00
pinkerton%netscape.com
10772ca855 make the progress meter animate the correct direction.
git-svn-id: svn://10.0.0.236/trunk@48753 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:02:45 +00:00
matt%netscape.com
b2366fb204 Moving the chrome out
git-svn-id: svn://10.0.0.236/trunk@48752 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:59:56 +00:00
ducarroz%netscape.com
a4e0fcbad9 Add back menu item Remove Selected Attachment as delete key doesn't work on windows tree widget.
The Danish label must be converted from "Remove Last Attachment" to "Remove Selected Attachment"


git-svn-id: svn://10.0.0.236/trunk@48751 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:58:40 +00:00
alecf%netscape.com
3a7282b519 check in new copies UI, use combo boxes for folders
(many thanks to waterson for making this happen)


git-svn-id: svn://10.0.0.236/trunk@48750 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:54:49 +00:00
tao%netscape.com
43646c36f1 Make UI language change persistent.
git-svn-id: svn://10.0.0.236/trunk@48749 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:49:53 +00:00
buster%netscape.com
8805a9dc33 just removed some annoying printf's I left lying around
git-svn-id: svn://10.0.0.236/trunk@48748 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:47:47 +00:00
tao%netscape.com
53e9fb6f0f Update package list.
git-svn-id: svn://10.0.0.236/trunk@48747 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:39:47 +00:00
tao%netscape.com
0cd9d3999e Add da-DK property file.
git-svn-id: svn://10.0.0.236/trunk@48746 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:34:41 +00:00
ducarroz%netscape.com
e70bc4165e disable temporary keybing for period which was causing a crash
git-svn-id: svn://10.0.0.236/trunk@48745 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:29:55 +00:00
mscott%netscape.com
32c5c2f9b6 Add smtp status strings.
git-svn-id: svn://10.0.0.236/trunk@48744 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:29:41 +00:00
joki%netscape.com
1042dd0a3f Adding support for event.clickCount, obsoleting old dblclick event.
git-svn-id: svn://10.0.0.236/trunk@48743 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:29:33 +00:00
mscott%netscape.com
97c79762b3 Add some basic status messages for sending a message.
git-svn-id: svn://10.0.0.236/trunk@48742 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:28:36 +00:00
alecf%netscape.com
7893976449 turn the password back into an attribute so I can access it from HTML forms.
Created new GetPasswordWithUI which is the equivalent of getpassword(PR_TRUE..)


git-svn-id: svn://10.0.0.236/trunk@48741 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:21:18 +00:00
alecf%netscape.com
332a582238 don't link against mozjs anymore
git-svn-id: svn://10.0.0.236/trunk@48740 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:20:12 +00:00
alecf%netscape.com
1c0c6aaf5e rename pane
git-svn-id: svn://10.0.0.236/trunk@48739 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:19:53 +00:00
mscott%netscape.com
d09ff52351 Add smtp server warning strings.
git-svn-id: svn://10.0.0.236/trunk@48738 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:19:00 +00:00
alecf%netscape.com
b9f62839e0 fix typo
git-svn-id: svn://10.0.0.236/trunk@48737 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:07:10 +00:00
matt%netscape.com
e04fe0e2e6 Adding globalOverlay.dtd for help menu
git-svn-id: svn://10.0.0.236/trunk@48736 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:01:48 +00:00
alecf%netscape.com
24acb2ec58 eliminate unnecessary cast
git-svn-id: svn://10.0.0.236/trunk@48735 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:01:03 +00:00
matt%netscape.com
79d6ea7cb7 Adding globalOverlay
git-svn-id: svn://10.0.0.236/trunk@48734 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:01:02 +00:00
alecf%netscape.com
5fe9d360f5 oops, don't comment out the signature UI!
git-svn-id: svn://10.0.0.236/trunk@48733 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 02:00:24 +00:00
ducarroz%netscape.com
a86f205366 Add vertical separator in toolbar, bug 14272
git-svn-id: svn://10.0.0.236/trunk@48732 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:53:37 +00:00
rjc%netscape.com
47c4d22289 Implement bookmark "delete" menu item.
git-svn-id: svn://10.0.0.236/trunk@48731 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:53:09 +00:00
sspitzer%netscape.com
2b4bb9bdc5 step 2 of getting the pref-migrator progress dialog working on the Mac.
yes, I know these are in the wrong place.  after I get it working, I'll clean
it up


git-svn-id: svn://10.0.0.236/trunk@48730 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:50:58 +00:00
nisheeth%netscape.com
c7978aaaa1 Stop the stopwatches before you print them.
git-svn-id: svn://10.0.0.236/trunk@48729 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:49:31 +00:00
sspitzer%netscape.com
4f7942e9fa step one of getting the pref-migrator progress dialog to work on the Mac.
yes, I know these files live in the wrong place.  will fix that next.


git-svn-id: svn://10.0.0.236/trunk@48727 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:46:14 +00:00
sspitzer%netscape.com
61a887491d get the pref-migrator progress dialog to work.
Yes, I know these are in the wrong place.
(all the resources under mozilla/profile are [going into / live in the] wrong place.

first I need to get -installer to
work again, then put things in the right place.


git-svn-id: svn://10.0.0.236/trunk@48726 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:45:01 +00:00
cata%netscape.com
97cba03b1d charset overlay created
git-svn-id: svn://10.0.0.236/trunk@48725 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:44:31 +00:00
beard%netscape.com
7fcc237810 bug #: 10847, enabling webshell leak detection.
git-svn-id: svn://10.0.0.236/trunk@48724 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:40:41 +00:00
cmanske%netscape.com
d5ff41dfbc Fixing Paul's bustage in our dialogs - PLEASE PAY ATTENTION TO DEFAULT NAMESPACE!
git-svn-id: svn://10.0.0.236/trunk@48723 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:39:18 +00:00
cata%netscape.com
c308df7a70 created charset Overlay
git-svn-id: svn://10.0.0.236/trunk@48722 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:38:47 +00:00
ducarroz%netscape.com
50dce313f8 Fix problem with autocomplete, bug 14281
git-svn-id: svn://10.0.0.236/trunk@48721 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:37:43 +00:00
beard%netscape.com
7f1bd1de61 changed createAdapterClass() to only generate methods for properties defined in the wrapped object itself, not for properties defined in prototypes. This makes sense, as the prototype for the wrapped object becomes the LiveConnect wrapper, thus prototype properties become inaccessible anyway.
git-svn-id: svn://10.0.0.236/trunk@48720 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:32:05 +00:00
nisheeth%netscape.com
7aaf0a0f97 If DETECT_WEBSHELL_LEAKS is defined, check to see if webshells are leaked at shutdown. If so, dump a message to the console.
git-svn-id: svn://10.0.0.236/trunk@48719 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:25:40 +00:00
nisheeth%netscape.com
bc496bb171 Changed the ifdef NS_DEBUG around webshell leak detection code to ifdef DETECT_WEBSHELL_LEAKS.
git-svn-id: svn://10.0.0.236/trunk@48718 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:24:20 +00:00
sfraser%netscape.com
87d19b0138 Fixed GetFirst/LastEditable node
git-svn-id: svn://10.0.0.236/trunk@48717 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:23:58 +00:00
waterson%netscape.com
9f0184c5bf Make sure <keyset> tags are only hooked up when in the XUL namespace. Add an assertion if HTML element creation fails.
git-svn-id: svn://10.0.0.236/trunk@48716 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:22:42 +00:00
sfraser%netscape.com
182e1ae9b1 Some utility methods, and added ForceUpdate.
git-svn-id: svn://10.0.0.236/trunk@48715 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:22:35 +00:00
sfraser%netscape.com
f403aa7ad8 Expose the type-in state through nsIHTMLEditor
git-svn-id: svn://10.0.0.236/trunk@48714 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:21:56 +00:00
nisheeth%netscape.com
8d5ff24f5d Define a global compiler and environment define, DETECT_WEBSHELL_LEAKS. This is used to compile in code that checks for webshell instances on shutdown and prints an error message to the console if webshells are being leaked.
git-svn-id: svn://10.0.0.236/trunk@48713 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:20:41 +00:00
mjudge%netscape.com
f2a4076904 fix for nsRangeList get frame for node was not lookin at the node at the "offset" even if the parent node could have children. this would return invalid stuff when get primary frame for content was called.
git-svn-id: svn://10.0.0.236/trunk@48712 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:20:29 +00:00
sfraser%netscape.com
b3a10c7af2 Implement UpdateInterfaceState
git-svn-id: svn://10.0.0.236/trunk@48711 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:20:24 +00:00
sfraser%netscape.com
44789bb46d Added UpdateInterfaceState, to force an update of the UI
git-svn-id: svn://10.0.0.236/trunk@48710 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:19:33 +00:00
peterl%netscape.com
158d6f2176 reset pushback buffer when creating a new scanner
factored scanner creation code


git-svn-id: svn://10.0.0.236/trunk@48709 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:19:29 +00:00
mjudge%netscape.com
8558ff33bb fix for going to correct offset in selection with keyboard navigation
git-svn-id: svn://10.0.0.236/trunk@48708 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:19:04 +00:00
sfraser%netscape.com
7b81bec45c Some utility functions for getting state.
git-svn-id: svn://10.0.0.236/trunk@48707 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:18:51 +00:00
peterl%netscape.com
f80b12a554 remap style before rebuilding frames when style rule changes
git-svn-id: svn://10.0.0.236/trunk@48706 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:18:45 +00:00
buster%netscape.com
4f3cf53954 just changed a comment to reflect reality, and removed some commented out code
git-svn-id: svn://10.0.0.236/trunk@48705 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:14:21 +00:00
cata%netscape.com
a56c5a8639 Creation code for the new component.
git-svn-id: svn://10.0.0.236/trunk@48704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:12:17 +00:00
buster%netscape.com
53d4be4b63 enabled event state manager to do it's thing with focus switching.
this cleans up focus switching in general, and specifically enables tabbing
between single-line text controls and other html form elements.


git-svn-id: svn://10.0.0.236/trunk@48703 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:04:37 +00:00
pinkerton%netscape.com
0ad0a12355 Oops, forgot to #include something
git-svn-id: svn://10.0.0.236/trunk@48702 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:01:24 +00:00
kipp%netscape.com
4bdfb90110 Queue up a reflow command when yanking floaters so that cases like bug #11389 work properly
git-svn-id: svn://10.0.0.236/trunk@48701 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:58:58 +00:00
waterson%netscape.com
1a717135f0 Bug 14273. We weren't recursively creating 'container' contents for HTML elements. Fixed that.
git-svn-id: svn://10.0.0.236/trunk@48700 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:54:05 +00:00
sspitzer%netscape.com
32ded88d2b fix for #13733. get "Mozilla Installer" (a.k.a. -installer) working on the Mac.
there are still issues and bugs, but that comes as no surprise.


git-svn-id: svn://10.0.0.236/trunk@48699 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:50:21 +00:00
ducarroz%netscape.com
f522d452f3 Remove extra blank row
git-svn-id: svn://10.0.0.236/trunk@48698 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:49:52 +00:00
ducarroz%netscape.com
cbd5936347 Add new Attachment UI, bug 11116
git-svn-id: svn://10.0.0.236/trunk@48697 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:49:26 +00:00
cata%netscape.com
b9c996d7f5 added files: mozilla/intl/uconv/src/nsCharsetMenu.cpp
git-svn-id: svn://10.0.0.236/trunk@48696 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:48:22 +00:00
rjc%netscape.com
858633bb38 More hooking up of bookmark window's cut/copy/paste/delete/select-all menu items.
git-svn-id: svn://10.0.0.236/trunk@48695 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:47:33 +00:00
sgehani%netscape.com
2ed888be94 Example of multiple .xpi's to test fix for bug 14318.
git-svn-id: svn://10.0.0.236/trunk@48694 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:47:20 +00:00
sgehani%netscape.com
fd131e4296 Run all .xpi's downloaded: bug 14318.
git-svn-id: svn://10.0.0.236/trunk@48693 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:46:34 +00:00
briano%netscape.com
9cd68a2332 Automated update
git-svn-id: svn://10.0.0.236/trunk@48692 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:46:15 +00:00
sgehani%netscape.com
6dfa0ee5e2 Attribute support.
git-svn-id: svn://10.0.0.236/trunk@48691 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:45:26 +00:00
cata%netscape.com
73cca3a230 Adding files to the build.
git-svn-id: svn://10.0.0.236/trunk@48690 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:44:00 +00:00
mscott%netscape.com
d12c5346fe Bug #14500 --> allow user to send a message if they don't have a user name and aren't using authenticated smtp.
add a ptr for command status


git-svn-id: svn://10.0.0.236/trunk@48689 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:42:34 +00:00
pinkerton%netscape.com
8a5599810f turn back on using the disk for large data sets.
git-svn-id: svn://10.0.0.236/trunk@48688 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:41:49 +00:00
kipp%netscape.com
ffbaac75aa Whoops, left some noise on
git-svn-id: svn://10.0.0.236/trunk@48687 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:41:13 +00:00
kipp%netscape.com
16349cdbd1 Fixed various bugs including part of 14486 and 14427; cleaned up the usage of stack based buffers to avoid future issues
git-svn-id: svn://10.0.0.236/trunk@48686 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:56 +00:00
kipp%netscape.com
e790d2ca63 Changed to have the stack buffer embedded in the xformer
git-svn-id: svn://10.0.0.236/trunk@48685 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:16 +00:00
pinkerton%netscape.com
34cd4b289e use nsPrimitiveHelpers to get data into and out of nsISupportsPrimitives.
git-svn-id: svn://10.0.0.236/trunk@48684 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:14 +00:00
cls%seawood.org
9d05fdbed7 Fix for the problem of GtkMozilla not being properly cleaned up from client.mk's cleansrcdir target.
git-svn-id: svn://10.0.0.236/trunk@48683 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:40:11 +00:00
kipp%netscape.com
9dd1eb95a9 Fixed part of bug 5726 by making spacers have some definite area when they have a non-zero size
git-svn-id: svn://10.0.0.236/trunk@48682 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:39:47 +00:00
pinkerton%netscape.com
7e98afafef turn off live-reflow during resize until cmd-key is down.
git-svn-id: svn://10.0.0.236/trunk@48681 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:39:37 +00:00
kipp%netscape.com
22b9fc23ff Work around purify nonsense with bitfields
git-svn-id: svn://10.0.0.236/trunk@48680 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:38:57 +00:00
cls%seawood.org
de365509e7 Removed check for c++ namespaces as they are not used and are outlawed by the c++ portability guide.
git-svn-id: svn://10.0.0.236/trunk@48679 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:38:44 +00:00
sdagley%netscape.com
94086a41d5 checking in fix to build bustage for dbragg
git-svn-id: svn://10.0.0.236/trunk@48677 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:27:03 +00:00
cata%netscape.com
e5e581bb87 Created.
git-svn-id: svn://10.0.0.236/trunk@48676 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:22:51 +00:00
dbragg%netscape.com
0aba52cf10 Removed the nsPMProgressDlg.cpp from the build
git-svn-id: svn://10.0.0.236/trunk@48675 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 00:05:33 +00:00
sfraser%netscape.com
0db9764a25 File Removed.
git-svn-id: svn://10.0.0.236/trunk@48674 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:41:46 +00:00
brade%netscape.com
fe3319b569 add JSLoader.mcp for shaver
git-svn-id: svn://10.0.0.236/trunk@48673 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:41:10 +00:00
kipp%netscape.com
19d4522737 Fixed build bustage
git-svn-id: svn://10.0.0.236/trunk@48672 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:40:03 +00:00
brade%netscape.com
aa451e218b build txmgridl on Mac
git-svn-id: svn://10.0.0.236/trunk@48671 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:31:10 +00:00
vidur%netscape.com
f5cc326ec3 Fix for bug 14109. Corrected dir getter.
git-svn-id: svn://10.0.0.236/trunk@48670 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:23:53 +00:00
brade%netscape.com
d5d0c2f947 add idl to the build list
git-svn-id: svn://10.0.0.236/trunk@48669 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:21:14 +00:00
dbragg%netscape.com
94d7d541da Added new interface to ProcessPrefs, also fixes build bustage.
git-svn-id: svn://10.0.0.236/trunk@48668 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:17:58 +00:00
saari%netscape.com
ca9d9659f4 Changing broadcaster to use onbroadcast instead of oncommand. Adding the "braodcast" "commandupdate" and "input" events. Changed all xul observes nodes to use onbroadcast instead of onchange.
git-svn-id: svn://10.0.0.236/trunk@48667 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 23:02:35 +00:00
evaughan%netscape.com
7e286e9092 Fixed bug that made the toolbar not shrink
git-svn-id: svn://10.0.0.236/trunk@48666 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:59:24 +00:00
mjudge%netscape.com
124711cde1 changes to selection code to stop a never ending loop
git-svn-id: svn://10.0.0.236/trunk@48665 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:58:14 +00:00
pinkerton%netscape.com
8056dabf70 disabling d&d for alpha-thang.
git-svn-id: svn://10.0.0.236/trunk@48664 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:54:05 +00:00
sspitzer%netscape.com
7cf6e0c036 fix for #9508. now you can send email and post at the same time.
both sending and posting require their own listener, or when you do
email and post at the same time, all hell breaks loose.


git-svn-id: svn://10.0.0.236/trunk@48663 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:45:17 +00:00
davidm%netscape.com
b744971265 14406 Can't make new browser window when no other windows are open
git-svn-id: svn://10.0.0.236/trunk@48662 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:43:41 +00:00
dbragg%netscape.com
142f3e964f Added multi-threading capability for the progressbar
git-svn-id: svn://10.0.0.236/trunk@48661 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:39:01 +00:00
dbragg%netscape.com
126062ed07 Added to the interface for multi-threaded requirements for progressbar.
git-svn-id: svn://10.0.0.236/trunk@48660 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:37:25 +00:00
brade%netscape.com
a42cc57b3f warning cleanup
git-svn-id: svn://10.0.0.236/trunk@48659 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:32:39 +00:00
brade%netscape.com
7e0421e57c allow for txn to have id/string for get/set
git-svn-id: svn://10.0.0.236/trunk@48658 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:31:27 +00:00
brade%netscape.com
47f94cebdd allow txn to get/set string and id
git-svn-id: svn://10.0.0.236/trunk@48657 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:29:44 +00:00
brade%netscape.com
e804cf037a add editor/txmgr/idl
git-svn-id: svn://10.0.0.236/trunk@48656 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:28:08 +00:00
mscott%netscape.com
a02c74a95e Bug #6651 --> Add lots of alert and status information from the server
for pop. this includes status messages in the status bar and alert
notifications in the form of alert dialogs.


git-svn-id: svn://10.0.0.236/trunk@48655 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:27:33 +00:00
kipp%netscape.com
9add91daa6 Whacked test a bit and added more test cases, primarily for bug #6193
git-svn-id: svn://10.0.0.236/trunk@48654 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:27:27 +00:00
kipp%netscape.com
fcf27a5ad8 Fixed some of bug #6193
git-svn-id: svn://10.0.0.236/trunk@48653 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:27:06 +00:00
brade%netscape.com
dce45ab25f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48652 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:27:05 +00:00
alecf%netscape.com
5f902b570c don't build xplib.lib anymore
git-svn-id: svn://10.0.0.236/trunk@48651 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:24:36 +00:00
alecf%netscape.com
f59be319b0 we don't need xplib.lib anymore
git-svn-id: svn://10.0.0.236/trunk@48650 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:24:04 +00:00
mscott%netscape.com
dadc18151c Bug #6651 --> add status and warning strings for various pop conditions.
git-svn-id: svn://10.0.0.236/trunk@48649 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:23:00 +00:00
alecf%netscape.com
0b92dfaebf don't need xplib anymore
git-svn-id: svn://10.0.0.236/trunk@48648 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:22:39 +00:00
vidur%netscape.com
c841abf7ff Fix for bug 14105 - correct processing of area tabindex
git-svn-id: svn://10.0.0.236/trunk@48647 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:19:29 +00:00
bienvenu%netscape.com
08cf6dcd84 fix charset conversion problem introduced yesterday in an attempt to speed up performance
git-svn-id: svn://10.0.0.236/trunk@48646 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:18:35 +00:00
shaver%netscape.com
19ab9fe989 having evicted default.js from components/, we reclaim our *.js birthright
git-svn-id: svn://10.0.0.236/trunk@48645 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:10:03 +00:00
kmcclusk%netscape.com
f5232bb65d Added test_weight.html to exercise CSS font weight.
git-svn-id: svn://10.0.0.236/trunk@48644 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:06:07 +00:00
kmcclusk%netscape.com
06c4c96147 Set select[input type=button] to have a 2px outset border instead of a 1px outset border.
This prevents reflows when the mouse is moved over the combo box dropdown button.


git-svn-id: svn://10.0.0.236/trunk@48643 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:04:35 +00:00
law%netscape.com
c1e3eb799f Get context menu attached to content area
git-svn-id: svn://10.0.0.236/trunk@48642 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:03:56 +00:00
davidm%netscape.com
bf4f1a0ff7 14405 Empty, blank menu in hidden window menu bar fix overlay id
git-svn-id: svn://10.0.0.236/trunk@48641 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:51:04 +00:00
akkana%netscape.com
ecf12dcd0c Partial fix for 14464: the gtk handler was doing the wrong thing, but XUL still isn't firing even after I fix this
git-svn-id: svn://10.0.0.236/trunk@48640 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:45:38 +00:00
waterson%netscape.com
3bfad57036 Add animation to directory viewer.
git-svn-id: svn://10.0.0.236/trunk@48639 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:43:41 +00:00
danm%netscape.com
5f2bffd186 Comment out body of UpdateDismissalListener. Prevents crash dismissing menu in toolbar. (Code in progress, anyway.) a:hyatt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@48638 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:41:31 +00:00
chuang%netscape.com
84007c0c17 remove unused variable
git-svn-id: svn://10.0.0.236/trunk@48637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:41:06 +00:00
pinkerton%netscape.com
4b484b0bbf add nsPrimitiveHelpers.cpp to build.
git-svn-id: svn://10.0.0.236/trunk@48636 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:39:08 +00:00
radha%netscape.com
b06e7a1e08 Fix crashes due to reference counting problems
git-svn-id: svn://10.0.0.236/trunk@48635 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:35:59 +00:00
karnaze%netscape.com
69cdd1f88b divided col width tests
-----------------------------------------------------


git-svn-id: svn://10.0.0.236/trunk@48634 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:35:28 +00:00
sgehani%netscape.com
923ae05402 Minor string modifications.
git-svn-id: svn://10.0.0.236/trunk@48633 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:34:09 +00:00
brendan%mozilla.org
cedb40ec6b JS_VERSION 140 lacked JS_HAS_NUMBER_FORMATS #define.
git-svn-id: svn://10.0.0.236/trunk@48632 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:33:38 +00:00
valeski%netscape.com
f107406ff6 removed dependency on #include string.h nsSocketTransportService.cpp
git-svn-id: svn://10.0.0.236/trunk@48631 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:32:01 +00:00
sgehani%netscape.com
10170c7a1e Added support for component attributes.
git-svn-id: svn://10.0.0.236/trunk@48630 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:31:55 +00:00
briano%netscape.com
7c0561a544 Fix for AIX bustage. Reserved name __STDC__ cannot be defined as a macro name.
git-svn-id: svn://10.0.0.236/trunk@48629 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:31:04 +00:00
sgehani%netscape.com
7c402ae867 Adding example attributes.
git-svn-id: svn://10.0.0.236/trunk@48628 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:29:25 +00:00
valeski%netscape.com
72bc7dd0b6 removed extraneous #include nsString2.h nsSocketTransport.cpp
git-svn-id: svn://10.0.0.236/trunk@48627 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:24:32 +00:00
shaver%netscape.com
e913ee5946 talk about JS components, remove gratuitous 'netscape' from progID
git-svn-id: svn://10.0.0.236/trunk@48626 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:23:02 +00:00
rods%netscape.com
75d7a96f19 Added nsIRollupListener for rolling up the dropdown
git-svn-id: svn://10.0.0.236/trunk@48625 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:20:50 +00:00
chuang%netscape.com
48d9afda1a Remove unused variable
git-svn-id: svn://10.0.0.236/trunk@48624 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:20:07 +00:00
dcone%netscape.com
93ccfc6825 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@48623 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:19:03 +00:00
rods%netscape.com
f188aa6f77 fixed up the processing of rollup events
git-svn-id: svn://10.0.0.236/trunk@48622 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:18:46 +00:00
dcone%netscape.com
f2f81ca6c0 Support of Rollup code
git-svn-id: svn://10.0.0.236/trunk@48621 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:18:45 +00:00
shaver%netscape.com
ff631a3996 add JS version of nsISample component
git-svn-id: svn://10.0.0.236/trunk@48620 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:11:29 +00:00
buster%netscape.com
4a4e80e877 fixed link handling in editor by making links only grab focus when
the pres context has a link handler.  bug 14455


git-svn-id: svn://10.0.0.236/trunk@48619 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:10:34 +00:00
scc%netscape.com
44271bfece take action to prevent re-entering the destructor
git-svn-id: svn://10.0.0.236/trunk@48618 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:10:22 +00:00
sspitzer%netscape.com
c0715390cb I suck.
git-svn-id: svn://10.0.0.236/trunk@48617 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:05:58 +00:00
sfraser%netscape.com
255f2f79d7 Remove unneeded MANIFESTS in cmd/macfe
git-svn-id: svn://10.0.0.236/trunk@48616 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:05:30 +00:00
putterman%netscape.com
27210e9602 Only reroot if the folder notification we receive is for the folder that's currently the loading folder.
git-svn-id: svn://10.0.0.236/trunk@48615 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:04:52 +00:00
mscott%netscape.com
74ee827c62 Fix a crash when running a local mail filter --> if you moved the message and then had another filter fire
after we moved the message we would crash.


git-svn-id: svn://10.0.0.236/trunk@48614 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:04:43 +00:00
sspitzer%netscape.com
e88ebd4a85 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@48613 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:04:34 +00:00
sfraser%netscape.com
d15de9dc16 Removed some obsolete files that are no longer needed (allxpstr.c, xp_foo.c, pwcapi.c etc)
git-svn-id: svn://10.0.0.236/trunk@48612 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:04:21 +00:00
sspitzer%netscape.com
69dbd72c49 I need to put down the crack pipe. the 4.x uri was ok, but the 4.x mail.directory pref was not.
git-svn-id: svn://10.0.0.236/trunk@48611 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:02:02 +00:00
buster%netscape.com
337884ed97 fixed a problem with asserts trying to merge empty aggregate transactions.
if the aggregate transaction is empty, don't execute it.  It's not technically
illegal, but it's a waste, and it causes the assert.


git-svn-id: svn://10.0.0.236/trunk@48610 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:46:36 +00:00
valeski%netscape.com
7bc4ceb86b removed dependency on ctype.h and made a few optimizations
git-svn-id: svn://10.0.0.236/trunk@48609 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:37:01 +00:00
sspitzer%netscape.com
0e851c0daa turns out this isn't necessary. on all three platforms in 4.x, the uri's are in UNIX style slashes, as they should be. #10583 fixed now.
git-svn-id: svn://10.0.0.236/trunk@48608 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:36:01 +00:00
terry%mozilla.org
32901af2a3 Patches by Scott Heavner <sheavner@adaclabs.com> -- wording, wasn't displaying correct directory name.
git-svn-id: svn://10.0.0.236/trunk@48607 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:30:38 +00:00
akkana%netscape.com
a6365a4c87 Fix a warning
git-svn-id: svn://10.0.0.236/trunk@48606 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:29:12 +00:00
alecf%netscape.com
4a3ba3fefe when we refresh the account list, clear the item selection (workaround for bug in the tree widget)
git-svn-id: svn://10.0.0.236/trunk@48605 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:26:36 +00:00
alecf%netscape.com
8fa56ede45 when we refresh the folder pane, clear the selection (workaround for bug in the tree widget)
git-svn-id: svn://10.0.0.236/trunk@48604 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:25:52 +00:00
sspitzer%netscape.com
e462176539 fix warning
git-svn-id: svn://10.0.0.236/trunk@48603 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:25:46 +00:00
scc%netscape.com
240063823f Made a protected method for severing weak references early
git-svn-id: svn://10.0.0.236/trunk@48602 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:20:04 +00:00
tague%netscape.com
9b023f2539 Export to correct module, not that it matters anymore.
git-svn-id: svn://10.0.0.236/trunk@48601 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:13:56 +00:00
terry%mozilla.org
cd6e1a17af This is a perl script to help import bugs from a GNATS database into a
Bugzilla database.  Contributed by Tom Schutter <tom@platte.com>


git-svn-id: svn://10.0.0.236/trunk@48600 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:12:46 +00:00
terry%mozilla.org
54cd21d768 Added a directory for contributed software.
git-svn-id: svn://10.0.0.236/trunk@48599 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:11:56 +00:00
shaver%netscape.com
e2cc239623 turn on JS loader for Mac
git-svn-id: svn://10.0.0.236/trunk@48598 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:10:20 +00:00
shaver%netscape.com
781208ba0a turn on JS loader on Windows
git-svn-id: svn://10.0.0.236/trunk@48597 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:08:38 +00:00
putterman%netscape.com
89586970b1 Implement init ins nsMessage.
git-svn-id: svn://10.0.0.236/trunk@48596 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:03:37 +00:00
putterman%netscape.com
2ccc891ca1 Put back in changes to cache rdf service.
git-svn-id: svn://10.0.0.236/trunk@48595 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:02:50 +00:00
shaver%netscape.com
2254047a43 fixed Windows makefile goop and fixed __stdcall issue
git-svn-id: svn://10.0.0.236/trunk@48591 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 19:42:09 +00:00
rods%netscape.com
1d8d878f63 changed mulitple to mulitple
git-svn-id: svn://10.0.0.236/trunk@48590 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 19:34:53 +00:00
bienvenu%netscape.com
9c6a1db5bb cache references for performance improvement
git-svn-id: svn://10.0.0.236/trunk@48589 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 19:10:37 +00:00
joki%netscape.com
932041c901 Fix bug 6258, release of null content pointer due to reentrant event
git-svn-id: svn://10.0.0.236/trunk@48588 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 19:00:55 +00:00
neeti%netscape.com
59011d5197 read user.js on startup after prefs.js is read. #12423
git-svn-id: svn://10.0.0.236/trunk@48587 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:59:41 +00:00
rogerl%netscape.com
fcc6869f54 ECMA errors as exceptions changes - conformance to latest spec for
hierarchy and names etc. Added attempt to make the base exceptions be
instanceof equal across contexts.


git-svn-id: svn://10.0.0.236/trunk@48586 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:58:51 +00:00
shaver%netscape.com
5f40481fce Errors-as-Exceptions and catchguards, because people want/need them
git-svn-id: svn://10.0.0.236/trunk@48585 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:48:43 +00:00
slamm%netscape.com
a87024a47b Rename some functions. Do not save the style and the box; fix splitter state instead.
git-svn-id: svn://10.0.0.236/trunk@48584 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:26:06 +00:00
slamm%netscape.com
9300c12254 Fix reload (bug 14289).
git-svn-id: svn://10.0.0.236/trunk@48583 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:25:03 +00:00
slamm%netscape.com
616e519fed Fix sidebar hide (bug 14193). Fix snap to close behaviour by seeting min-width.
git-svn-id: svn://10.0.0.236/trunk@48582 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:24:25 +00:00
putterman%netscape.com
fe8fdd4dd3 Fix mail crashes. Approved for checkin by leaf.
git-svn-id: svn://10.0.0.236/trunk@48581 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 17:53:25 +00:00
brade%netscape.com
e0e37764f7 not currently part of the build (a=leaf); add libraries for xpcom and js so optimized will link
git-svn-id: svn://10.0.0.236/trunk@48580 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 15:55:56 +00:00
brade%netscape.com
a2dc69b2c1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48579 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:55:39 +00:00
shaver%netscape.com
5b4ac98c99 define some key names locally until we export them properly from xpcom
git-svn-id: svn://10.0.0.236/trunk@48578 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:54:39 +00:00
shaver%netscape.com
0cd29dc3b4 remove unused file and add initial windows build foo
git-svn-id: svn://10.0.0.236/trunk@48577 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:43:45 +00:00
shaver%netscape.com
d18a0d7017 add include of nsIModule.h -- why was this working before?
git-svn-id: svn://10.0.0.236/trunk@48576 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:38:50 +00:00
shaver%netscape.com
89681d5ada fix =/== idiocy, abort if we fail to get runtime and better diagnostics
git-svn-id: svn://10.0.0.236/trunk@48575 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:36:40 +00:00
dcone%netscape.com
44d2e02ee0 added debugging for printing
git-svn-id: svn://10.0.0.236/trunk@48574 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:34:28 +00:00
joki%netscape.com
b1998d03d5 Changing dom event VK_* names to DOM_VK_*
git-svn-id: svn://10.0.0.236/trunk@48573 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:19:17 +00:00
joki%netscape.com
62ad116aae Adding old 4.x capture/release compatibility code, changing dom event VK_* names to DOM_VK_*
git-svn-id: svn://10.0.0.236/trunk@48572 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:18:52 +00:00
joki%netscape.com
2fd324ac84 Add new scroll method to allow scrolling to top or bottom of doc.
git-svn-id: svn://10.0.0.236/trunk@48571 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:15:53 +00:00
shaver%netscape.com
ec0efdd4c6 need to use different module names to avoid overwriting xpcom.xpt
git-svn-id: svn://10.0.0.236/trunk@48570 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:12:26 +00:00
pollmann%netscape.com
e721d4ecd3 Bug 11488: Crash when deleting options from GFX selects
git-svn-id: svn://10.0.0.236/trunk@48569 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 13:25:32 +00:00
Jerry.Kirk%Nexwarecorp.com
d886171d24 Adding more debug and hacks for Photon UI to try to get drawing of
the preference dialog working.


git-svn-id: svn://10.0.0.236/trunk@48568 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 13:12:00 +00:00
rjc%netscape.com
20dc2b6f4e Expose clipboard to JS and start hooking up bookmark window's cut/copy/paste/delete/select-all menu items.
git-svn-id: svn://10.0.0.236/trunk@48567 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 12:34:16 +00:00
rods%netscape.com
008f918322 initial checkin
git-svn-id: svn://10.0.0.236/trunk@48566 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 11:50:22 +00:00
rods%netscape.com
d7dc9174e8 added CaptureRollupEvents for indicating when a dropdown should be rolled up
git-svn-id: svn://10.0.0.236/trunk@48565 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 11:25:03 +00:00
rods%netscape.com
c76b7f5014 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@48564 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 11:22:21 +00:00
alecf%netscape.com
2c3452ada1 remove New Account from menu
git-svn-id: svn://10.0.0.236/trunk@48563 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 10:11:26 +00:00
sgehani%netscape.com
88219c7026 Resourced out error string.
git-svn-id: svn://10.0.0.236/trunk@48562 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 10:08:22 +00:00
sgehani%netscape.com
aa4f7bf2b8 Resourced xpinstall dialog messages.
git-svn-id: svn://10.0.0.236/trunk@48561 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 09:55:46 +00:00
sgehani%netscape.com
f6fd50ada9 Adding i18n support to xpinstall: using StringBundleService.
git-svn-id: svn://10.0.0.236/trunk@48560 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:46:59 +00:00
sgehani%netscape.com
c6e2c33e9c Adding i18n support to xpinstall: using StringBundleServcie.
git-svn-id: svn://10.0.0.236/trunk@48559 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:46:10 +00:00
sgehani%netscape.com
a4396ce8f6 Adding i18n support to xpinstall: using StringServiceBundle.
git-svn-id: svn://10.0.0.236/trunk@48558 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:45:25 +00:00
sspitzer%netscape.com
400d0c9f5e fix for #14438
if you have user_pref("browser.startup.page", 2); in your prefs.js file,
[meaning open browser with last page visted] and you click on the browser button
in the task bar from messgener, it will fail to open.


git-svn-id: svn://10.0.0.236/trunk@48557 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:39:20 +00:00
rpotts%netscape.com
e47326d42b Checking in a patch that ramiro gave me to fix some multi-processor Linux woes...
git-svn-id: svn://10.0.0.236/trunk@48556 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:29:18 +00:00
ssu%netscape.com
3973dfecf3 updated build scripts for windows installer. not part of tinderbox builds
git-svn-id: svn://10.0.0.236/trunk@48555 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:28:22 +00:00
rpotts%netscape.com
c64c121023 Reworked how the socket transport uses the DNS service - as discussed with gordon...
git-svn-id: svn://10.0.0.236/trunk@48554 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 08:02:06 +00:00
peterl%netscape.com
4e42b2772d removed ReResolveStyleContext
git-svn-id: svn://10.0.0.236/trunk@48553 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:56:18 +00:00
peterl%netscape.com
ee1768fef6 moved re resolve style logic into frame manager
git-svn-id: svn://10.0.0.236/trunk@48552 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:55:37 +00:00
peterl%netscape.com
63e8918a6a added calls to verify style tree
git-svn-id: svn://10.0.0.236/trunk@48551 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:53:49 +00:00
peterl%netscape.com
8314fe5bdd made style changes handle floaters and positioned children
added style tree verify
moved re-resolve style logic from frames


git-svn-id: svn://10.0.0.236/trunk@48550 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:53:14 +00:00
peterl%netscape.com
5e304ecf23 removed ReResolveStyleContext
added style tree verify flag


git-svn-id: svn://10.0.0.236/trunk@48549 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:51:52 +00:00
peterl%netscape.com
7deae09f51 stop sharing contexts with parents
git-svn-id: svn://10.0.0.236/trunk@48548 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:50:16 +00:00
peterl%netscape.com
f0c345d6d5 filter out multiple changes to content when framechange in effect
git-svn-id: svn://10.0.0.236/trunk@48547 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:49:55 +00:00
peterl%netscape.com
3af4740dc1 Added compute style change
Added style tree verify


git-svn-id: svn://10.0.0.236/trunk@48546 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:48:57 +00:00
peterl%netscape.com
eeb2ec5d3e removed ReResolveStyleContext
added flag for style tree verify


git-svn-id: svn://10.0.0.236/trunk@48545 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:48:34 +00:00
sspitzer%netscape.com
e97796cb2a fix for #10583
for non-UNIX platforms, we need to convert the native path to a UNIX style
path before converting the 4.x URI to a 5.0 URI.
otherwise, we'd convert mailbox:C:\\program files\\netscape\\users\\sspitzer\\mail\\aaa\\bbb to mailbox://nobody@Local Mail/aaa\\bbb, instead of mailbox://nobody@Local Mail/aaa/bbb


git-svn-id: svn://10.0.0.236/trunk@48544 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:46:48 +00:00
sspitzer%netscape.com
0a21c97f68 remove my reminder printf for UNIX. UNIX is done.
git-svn-id: svn://10.0.0.236/trunk@48543 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:42:23 +00:00
waterson%netscape.com
a34acfe3e8 Use a 'const long' instead of hardcoding numbers.
git-svn-id: svn://10.0.0.236/trunk@48542 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:38:23 +00:00
waterson%netscape.com
355d7776d9 Rig up a kludgy but functional two-pane view.
git-svn-id: svn://10.0.0.236/trunk@48541 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:34:23 +00:00
waterson%netscape.com
e103ee595c Fix bug where only first property was being returned.
git-svn-id: svn://10.0.0.236/trunk@48540 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:34:07 +00:00
alecf%netscape.com
e17adec3fc rename NNTP server description
git-svn-id: svn://10.0.0.236/trunk@48539 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:07:25 +00:00
alecf%netscape.com
01d1095dee fix persistance on the sidebar
git-svn-id: svn://10.0.0.236/trunk@48538 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:06:53 +00:00
ssu%netscape.com
02884a9304 updated resource string. Nothing was added or delete, simply changed. Affects only windows platforms.
git-svn-id: svn://10.0.0.236/trunk@48537 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 07:02:25 +00:00
mscott%netscape.com
c923ae54bc Remove obsolete properties file.
git-svn-id: svn://10.0.0.236/trunk@48536 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:51:36 +00:00
mscott%netscape.com
7682a1a60a WE can't insert \n (newline character) in the properties file so take them out.
git-svn-id: svn://10.0.0.236/trunk@48535 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:51:01 +00:00
mscott%netscape.com
4446c291d7 Remove obsolete reference to composebe.properties
git-svn-id: svn://10.0.0.236/trunk@48534 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:47:11 +00:00
mscott%netscape.com
81333848b2 remove obsolete reference to composebe.properties.
git-svn-id: svn://10.0.0.236/trunk@48533 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:45:36 +00:00
rpotts%netscape.com
2ea714e45c The document LoadGroup is now a nsWeakPtr...
git-svn-id: svn://10.0.0.236/trunk@48532 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:44:56 +00:00
mscott%netscape.com
1e961e0e8e Remove reference to obsolete properties file (composebe.properties).
git-svn-id: svn://10.0.0.236/trunk@48531 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:44:43 +00:00
mscott%netscape.com
6e1d0c1e47 remove obsolete properties file. This file has been moved and renamed to compose\resources\locale\en-US\composeMsgs.properties
git-svn-id: svn://10.0.0.236/trunk@48530 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:42:58 +00:00
rickg%netscape.com
c97f39f769 fix to bug 13688
git-svn-id: svn://10.0.0.236/trunk@48529 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:37:53 +00:00
mscott%netscape.com
df8e67d473 re-write so we actually use the string bundle instead of the hard coded
strings that used to be in this class. This meant changing the api to return
a unichar * instead of a char *!!!


git-svn-id: svn://10.0.0.236/trunk@48528 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:51 +00:00
mscott%netscape.com
24fb340c0c optimize use of PRunichars for string bundle. we were doing lots of
needless conversions between PRunichar * to char * and back again!
replace some hard coded strings with strings created by the string bundle


git-svn-id: svn://10.0.0.236/trunk@48527 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:11 +00:00
tao%netscape.com
7e46395ba6 Move editor.properties from content/ to locale/,
git-svn-id: svn://10.0.0.236/trunk@48526 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:30:03 +00:00
nisheeth%netscape.com
04e852e516 Add prefix string to content creation timer output.
git-svn-id: svn://10.0.0.236/trunk@48525 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:24:58 +00:00
nisheeth%netscape.com
e671c66537 Add prefix string to style resolution timer output.
git-svn-id: svn://10.0.0.236/trunk@48524 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:24:17 +00:00
nisheeth%netscape.com
4e29281319 - Stop the stopwatch *before* the reference to the parser is released!
- Include util.lib into the list of statically linked libraries


git-svn-id: svn://10.0.0.236/trunk@48523 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:23:10 +00:00
ssu%netscape.com
03bfe962a4 fixing bug# 13117
git-svn-id: svn://10.0.0.236/trunk@48522 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:22:10 +00:00
alecf%netscape.com
6fd8861f86 implement Show->Folders
git-svn-id: svn://10.0.0.236/trunk@48521 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:17:00 +00:00
waterson%netscape.com
2bbbe53c9a Fix MODULE so that we don't clobber the directory.xpt file.
git-svn-id: svn://10.0.0.236/trunk@48520 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 06:10:24 +00:00
waterson%netscape.com
6f12e75e49 Fix bugs with computing containment.
git-svn-id: svn://10.0.0.236/trunk@48519 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:57:47 +00:00
vidur%netscape.com
f3bf8ed6f1 Corrected signature of History::Go()
git-svn-id: svn://10.0.0.236/trunk@48518 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:48:45 +00:00
alecf%netscape.com
de525ae62c remove the (unused) Advanced panel
git-svn-id: svn://10.0.0.236/trunk@48517 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:38:49 +00:00
tao%netscape.com
2e0b646064 Move *.properties to locale
git-svn-id: svn://10.0.0.236/trunk@48516 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:38:01 +00:00
alecf%netscape.com
b59592644c add support for identity-specific HTML compose and signatures
git-svn-id: svn://10.0.0.236/trunk@48515 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:37:23 +00:00
waterson%netscape.com
106766496d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48514 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:37:00 +00:00
mscott%netscape.com
da897a8da1 The doc loader should release the underlying channel once the channel issues a OnStopRequest. This allows the
channel to go away after we load the url instead of making it stick around until the next url comes in (that's
when we used to get rid of the previous channel).
r=rpotts.


git-svn-id: svn://10.0.0.236/trunk@48513 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:36:49 +00:00
tao%netscape.com
5ad723bb6d Rename *en.properties to *.properties.
git-svn-id: svn://10.0.0.236/trunk@48512 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:35:34 +00:00
sspitzer%netscape.com
813c3e1950 fix for #14428. make the throbber in the three pane open up to the throbber url when clicked.
git-svn-id: svn://10.0.0.236/trunk@48511 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:33:14 +00:00
vidur%netscape.com
4434fdcd2f Changed nsIWebShell::GoTo to use LOAD_HISTORY as the load flag - going to the current entry shouldn't reload.
git-svn-id: svn://10.0.0.236/trunk@48510 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:27:35 +00:00
hangas%netscape.com
b3e18d796d Added key binding for OK/Cancel buttons.
git-svn-id: svn://10.0.0.236/trunk@48509 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:23:14 +00:00
hangas%netscape.com
d09ba9b534 Added key binding to dialogOverlay.xul for OK and Cancel buttons. Updated xul windows to include these keys.
git-svn-id: svn://10.0.0.236/trunk@48508 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:20:56 +00:00
troy%netscape.com
35199b0e7f Part of the fix for bug #11389. Changed CantRenderReplacedElement() to
reset the placeholder frame's out-of-flow frame after replacing the primary
frame. This allows the block frame code to find the floater in the line's
list of floaters


git-svn-id: svn://10.0.0.236/trunk@48507 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:20:11 +00:00
hangas%netscape.com
f237754ed6 Changed unix global overlay for 'Redo' to use Mac style shortcut key.
git-svn-id: svn://10.0.0.236/trunk@48506 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:16:17 +00:00
troy%netscape.com
bb46cb1eff Fix for bug #14414. Changed DoRemoveFrame() to invalidate the space taken
up by the line when deleting an empty line


git-svn-id: svn://10.0.0.236/trunk@48505 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:15:39 +00:00
hangas%netscape.com
8cdab89276 Hacked default titledbutton style to center text and icon.
git-svn-id: svn://10.0.0.236/trunk@48504 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:14:49 +00:00
ftang%netscape.com
9c50930b5f wired up nsTextToSubURI to the dll, remove unnecessary reghac2.h
git-svn-id: svn://10.0.0.236/trunk@48503 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:13:53 +00:00
waterson%netscape.com
6e2d185643 Add regviewer to Unix build.
git-svn-id: svn://10.0.0.236/trunk@48502 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:13:36 +00:00
waterson%netscape.com
b3e8f3757d Add regviewer to win32 build.
git-svn-id: svn://10.0.0.236/trunk@48501 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:13:05 +00:00
vidur%netscape.com
d8c739059f Corrected prototype for History::Go()
git-svn-id: svn://10.0.0.236/trunk@48500 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:12:46 +00:00
mscott%netscape.com
b45ae3eb71 Bug #13798 --> Fix imap freezing the mac.
git-svn-id: svn://10.0.0.236/trunk@48499 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:12:15 +00:00
ssu%netscape.com
abf3ce67f7 fixing font type, bug #13572
git-svn-id: svn://10.0.0.236/trunk@48498 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:12:02 +00:00
waterson%netscape.com
bca3fc969b Fix JavaScript to use the right interface.
git-svn-id: svn://10.0.0.236/trunk@48497 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:11:56 +00:00
vidur%netscape.com
17f4dc0814 Corrected signature of History::Go()
git-svn-id: svn://10.0.0.236/trunk@48496 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:11:55 +00:00
waterson%netscape.com
53a4a58752 Add regviewer.
git-svn-id: svn://10.0.0.236/trunk@48495 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:08:18 +00:00
waterson%netscape.com
6f076d28fb Initial revision. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@48494 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 05:08:00 +00:00
waterson%netscape.com
c9ea36fc9d Comment out line causing crash when click on menus.
git-svn-id: svn://10.0.0.236/trunk@48493 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:59:45 +00:00
waterson%netscape.com
ddb97d50f3 Add some curly braces so that the rest of the world can run.
git-svn-id: svn://10.0.0.236/trunk@48492 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:20:17 +00:00
despotdaemon%netscape.com
44d131b5fe Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48491 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:04:35 +00:00
waterson%netscape.com
4db62e9255 Back out last change; it killed tinderbox. a=don%netscape.com.
git-svn-id: svn://10.0.0.236/trunk@48490 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:04:03 +00:00
despotdaemon%netscape.com
13333ccd61 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48489 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:02:17 +00:00
waterson%netscape.com
605693835c #undef CreateDirectory to fix problem where winbase.h #define
CreateDirectory and makes it appear as if nsFileSpec has a
CreateDirectory[A|W] method.


git-svn-id: svn://10.0.0.236/trunk@48487 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 03:09:39 +00:00
waterson%netscape.com
c72fa1d99b add registry datasource/viewer. not in the build.
git-svn-id: svn://10.0.0.236/trunk@48486 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:43:13 +00:00
mike%neoplanet.com
a5f76e94f7 Implemented cut/copy/paste. Added stubs for a couple other functions.
git-svn-id: svn://10.0.0.236/trunk@48485 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:39:53 +00:00
hyatt%netscape.com
88a61196e0 added files: mozilla/layout/xul/base/src/nsMenuDismissalListener.cpp, removed files: mozilla/layout/xul/base/src/nsMenuPopupEntryListener.cpp
git-svn-id: svn://10.0.0.236/trunk@48484 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:35:57 +00:00
kipp%netscape.com
5faaa2ac33 Eliminate a warning
git-svn-id: svn://10.0.0.236/trunk@48483 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:20:14 +00:00
hyatt%netscape.com
ca90f43e85 oops
git-svn-id: svn://10.0.0.236/trunk@48482 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:16:31 +00:00
shaver%netscape.com
4ffbe71b5d initial and long-awaited import of MathML for Roger Sidje and his crew
git-svn-id: svn://10.0.0.236/trunk@48481 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:12:01 +00:00
kipp%netscape.com
c4b871aef6 Eliminate a warning
git-svn-id: svn://10.0.0.236/trunk@48480 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:09:46 +00:00
scc%netscape.com
3156578dc4 commented out some build horkage that hyatt will need to fix upon his return
git-svn-id: svn://10.0.0.236/trunk@48479 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 02:03:49 +00:00
akkana%netscape.com
5c7d06bc7d Use new ToString method on selection
git-svn-id: svn://10.0.0.236/trunk@48478 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:42:41 +00:00
waterson%netscape.com
0d59690969 Deal with case where a load has failed.
git-svn-id: svn://10.0.0.236/trunk@48477 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:41:29 +00:00
ftang%netscape.com
b231f9812a remove unneeded var
git-svn-id: svn://10.0.0.236/trunk@48476 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:37:16 +00:00
ftang%netscape.com
e70aa6d68c add nsTextToSubURI.cpp
git-svn-id: svn://10.0.0.236/trunk@48475 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:36:54 +00:00
cmanske%netscape.com
03e7911d12 Editor bug fixes. List Properties dialog work. Fixed menu access keys in DTD file. Fixed using selection->Clear() cases
git-svn-id: svn://10.0.0.236/trunk@48474 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:36:30 +00:00
tao%netscape.com
ac92447f0c 14391: [L12y] PLS remove locale name (en) from "*_en.properties".
git-svn-id: svn://10.0.0.236/trunk@48473 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:32:06 +00:00
sspitzer%netscape.com
5516c548e7 fix for #14361. always give the users a "Local Mail" account.
also, added the CreateDefaultMailboxes() method to the  nsINoIncomingServer and nsIPop3IncomingServer
interfaces


git-svn-id: svn://10.0.0.236/trunk@48472 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:29:01 +00:00
waterson%netscape.com
ecac83d9d2 Fix backwards return values on nsIEnumerator::IsDone().
git-svn-id: svn://10.0.0.236/trunk@48471 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:28:18 +00:00
cmanske%netscape.com
20157bae56 Adding CollapseToStart and CollapseToEnd methods to selection
git-svn-id: svn://10.0.0.236/trunk@48470 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:27:59 +00:00
cmanske%netscape.com
287a754d84 Adding CollapseToStart and CollapseToEnd to selection
git-svn-id: svn://10.0.0.236/trunk@48469 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:27:37 +00:00
tao%netscape.com
248ada6feb 14391: [L12y] PLS remove locale name (en) from "*_en.properties".
git-svn-id: svn://10.0.0.236/trunk@48468 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:22:43 +00:00
srinivas%netscape.com
98a3789180 Use an absolute, instead of relative, filespec for OpenVMS. Checkin for
Colin Blake <colin@theblakes.com>.


git-svn-id: svn://10.0.0.236/trunk@48467 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:18:14 +00:00
shaver%netscape.com
32c641261c conditional support for mathml, for Roger Sidje <rbs@maths.uq.edu.au>
git-svn-id: svn://10.0.0.236/trunk@48466 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:15:30 +00:00
shaver%netscape.com
571a500d89 build JS component loader by default
git-svn-id: svn://10.0.0.236/trunk@48465 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:09:33 +00:00
shaver%netscape.com
1f969319fb fix typo before I inflict it on the world
git-svn-id: svn://10.0.0.236/trunk@48464 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:08:21 +00:00
chjung%netscape.com
d7b8f5db32 [chjung 990920] add localization notes
git-svn-id: svn://10.0.0.236/trunk@48463 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:06:04 +00:00
hyatt%netscape.com
f86426e4ea Chrome event stuff.
git-svn-id: svn://10.0.0.236/trunk@48462 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:05:01 +00:00
hyatt%netscape.com
06d985397e Removing unused files.
git-svn-id: svn://10.0.0.236/trunk@48461 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:04:47 +00:00
hyatt%netscape.com
7c0fadf597 Menu changes.
git-svn-id: svn://10.0.0.236/trunk@48460 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:03:58 +00:00
varada%netscape.com
0464f03ca1 This is the modified cck.che defaults file that has the correct values
git-svn-id: svn://10.0.0.236/trunk@48459 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:03:48 +00:00
hyatt%netscape.com
61e7c00bb7 Chrome event stuff. Menu changes.
git-svn-id: svn://10.0.0.236/trunk@48458 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:03:00 +00:00
hyatt%netscape.com
bd258f4733 chrome event stuff
git-svn-id: svn://10.0.0.236/trunk@48457 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:02:29 +00:00
chjung%netscape.com
dd7cec52c5 [chjung 990920] add localization notes
git-svn-id: svn://10.0.0.236/trunk@48456 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:00:29 +00:00
tao%netscape.com
4ce105443f 14379: [L12y] PLS remove locale name (en-US) from the localMsgs.properties.
git-svn-id: svn://10.0.0.236/trunk@48455 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:59:50 +00:00
ftang%netscape.com
6da42fac53 add nsTextToSubURI.cpp
git-svn-id: svn://10.0.0.236/trunk@48454 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:58:15 +00:00
ftang%netscape.com
2c16a3ff90 add uconvIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@48453 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:55:40 +00:00
tao%netscape.com
7ac28d99e3 14384: [L12y] PLS remove locale name (en-US) from "imapMsgs_en-US.properties".
git-svn-id: svn://10.0.0.236/trunk@48452 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:50:13 +00:00
chjung%netscape.com
3e4b7c906d [chjung 990920] add localization notes
git-svn-id: svn://10.0.0.236/trunk@48451 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:49:23 +00:00
wtc%netscape.com
e26a9ec9b5 On WIN32, do not include <windef.h> directly. It is better
to include <windows.h>, the mother of all Windows include files.
Specifically, in MSVC 6.0, <windef.h> sets WINVER to 0x0500
while <windows.h> sets it to 0x0400 if that macro is not defined.
But 0x0500 means NT 5.0 and Win 98, and NT 5.0 is not released yet.
To build a retail application right now, we have to set WINVER to 0x0400.


git-svn-id: svn://10.0.0.236/trunk@48450 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:45:46 +00:00
ftang%netscape.com
648c88d3d7 add idl directory to win and linux makefile
git-svn-id: svn://10.0.0.236/trunk@48449 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:45:28 +00:00
ftang%netscape.com
7b1a541b6f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48448 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:43:09 +00:00
mscott%netscape.com
f68e94943c we used to leak the first imap url that got run because we gave it
to the socket transport as a context. The socket transport hung onto
the url until the socket was actually closed. It turns out we don't
need to pass the url in anyway since we always know what the current
url is. So by changing this to null, we now release the first imap url
we run as soon as it is done.


git-svn-id: svn://10.0.0.236/trunk@48447 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:40:50 +00:00
ftang%netscape.com
18cbbca6c8 1st check in
git-svn-id: svn://10.0.0.236/trunk@48446 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:30:12 +00:00
harishd%netscape.com
7a4a0e5db4 Fix for bugs 13498, 14199, 8389, 13640.
git-svn-id: svn://10.0.0.236/trunk@48445 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:24:28 +00:00
ftang%netscape.com
45a25047dc add HZ to the dll
git-svn-id: svn://10.0.0.236/trunk@48444 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:21:24 +00:00
pollmann%netscape.com
0b4308ad81 Bug 14223: Typo, I'm sure.
git-svn-id: svn://10.0.0.236/trunk@48443 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:18:49 +00:00
ftang%netscape.com
d8d3b85c10 add idl files
git-svn-id: svn://10.0.0.236/trunk@48442 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:17:37 +00:00
ftang%netscape.com
2b96342442 remove dead file
git-svn-id: svn://10.0.0.236/trunk@48441 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:15:38 +00:00
kipp%netscape.com
7223e249d3 Reworked side margin calculations to fix (finally!) bug 11932; also cleaned up table side margin handling to better match nav's behavior yet move forward with css2
git-svn-id: svn://10.0.0.236/trunk@48440 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:15:16 +00:00
kipp%netscape.com
3e190bdd79 Reimplement TrimTrailingWhiteSpace; fixed another combined area bug (12910)
git-svn-id: svn://10.0.0.236/trunk@48439 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:14:22 +00:00
ftang%netscape.com
1cab5d5592 check in for Xu, Yueheng <yueheng.xu@intel.com>
git-svn-id: svn://10.0.0.236/trunk@48438 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:14:15 +00:00
kipp%netscape.com
e2761a3f1c Reimplement TrimTrailingWhiteSpace
git-svn-id: svn://10.0.0.236/trunk@48437 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:13:50 +00:00
brendan%mozilla.org
1041763b2e - Bumped default compile-time JS version from 1.4 to 1.5.
- Add JS1.5 getter/setter support in all its glory:

  * getter function SN() {return ++x} at top-level or as a closure binds an SN
    property getter than returns the incremented value of x.  Likewise for
    setter function SN(y) {return y = x}.

  * getters and setters may be defined in an object literal:
      o = {p getter:function() {return ++this.x},
           p setter:function(y){return this.x = y},
           x:42};

  * getter= and setter= operators (compound tokens) may be used to bind getter
    and setter properties dynamically:
      o = new Object;
      o.p getter= function() {return ++this.x};
      o.p setter= function(y){return this.x = y};
      o.x = 42;

    Waldemar is concerned that this form will collide semantically with JS2, so
    I am not committing to keeping it in JS1.5.  I'd like to check my code in
    ASAP so shaver can use it, and I'd also like to see this form get used (or
    not) during Mozilla betas.  Caveat emptor, and if you find this "dynamic"
    or "imperative" form necessary and hard to substitute, please let me know.
    If this proves important to users, then I think JS1.5 should keep it.

- Cleaned up property flags (in a binary-incompatible fashion -- who cares?) by
  eliminating JSPROP_ASSIGNHACK and JSPROP_TINYIDHACK.

- Added JS_DONT_PRETTY_PRINT flag to be ORed with the indent argument to the
  several JS_Decompile*() API calls.  This avoids any newlines or identation in
  the decompiled string.
 
- Improved and extended (for getter/setter non-reservation) scanner lookahead
  by using a circular (power-of-2 sized) token buffer.

- Fix ECMA Edition 3 deviation where function f(){function g(){}} bound f.g by
  mistake (it should arrange to make a closure named g in activations of f, but
  it should not bind a property of function f).


git-svn-id: svn://10.0.0.236/trunk@48436 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:13:48 +00:00
kipp%netscape.com
a1c8b975ba Bring TrimTrailingWhiteSpace back to life after troy's changes
git-svn-id: svn://10.0.0.236/trunk@48435 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:12:50 +00:00
kipp%netscape.com
dce1fb8e52 Tweaked list logic
git-svn-id: svn://10.0.0.236/trunk@48434 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:12:27 +00:00
kipp%netscape.com
0271e8b87b Fixed up argument parsing issue with table align=left/right (bug 7352)
git-svn-id: svn://10.0.0.236/trunk@48433 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:12:09 +00:00
pinkerton%netscape.com
a798bbca2b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48432 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:08:25 +00:00
gagan%netscape.com
e044ae117d Fixes the crash thats occuring on windows with no proxy setting.
git-svn-id: svn://10.0.0.236/trunk@48431 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:08:09 +00:00
mscott%netscape.com
6a45cd7a74 initialize the ref count on this class.
git-svn-id: svn://10.0.0.236/trunk@48430 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:07:34 +00:00
av%netscape.com
99a6ac3352 Workaround to make RealAudio plugin work
git-svn-id: svn://10.0.0.236/trunk@48429 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:07:20 +00:00
bienvenu%netscape.com
ab1d8c22a4 some performance improvements for header parsing
git-svn-id: svn://10.0.0.236/trunk@48428 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:06:25 +00:00
vidur%netscape.com
94e4e0c5bd Fixed Confirm() to get the nsIPrompt reference from the webshell container and not the webshell itself. Fixed leak in Prompt().
git-svn-id: svn://10.0.0.236/trunk@48427 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:05:59 +00:00
mscott%netscape.com
cf65822e98 let sidebar take up all of the vertical space and shift the menus over to line up with the toolbar.
Thanks to Paul Hangas for this cool suggestion.


git-svn-id: svn://10.0.0.236/trunk@48426 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:05:52 +00:00
vidur%netscape.com
c1674aa040 webshell now gets its nsIPrompt reference from its container and not its observer. restored ftang's webshell change that i inadvertantly removed in a prior checkin.
git-svn-id: svn://10.0.0.236/trunk@48425 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:04:31 +00:00
wtc%netscape.com
63eefd6d77 Bugzilla bug #13361: fixed gcc compiler warnings. Thanks to
Steve Lamm (slamm@netscape.com) for the bug report.
Modified files: prtime.h, prmwait.c, pratom.c, ptio.c, ptthread.c.


git-svn-id: svn://10.0.0.236/trunk@48424 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 23:59:09 +00:00
chjung%netscape.com
0e25273b9a [chjung 990920] add localization notes
git-svn-id: svn://10.0.0.236/trunk@48423 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 23:29:30 +00:00
rods%netscape.com
b78119cf08 nailed again by nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@48422 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:56:32 +00:00
dveditz%netscape.com
2ebcaa9f2a fixing VC5 bustage for ssu
git-svn-id: svn://10.0.0.236/trunk@48421 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:39:52 +00:00
warren%netscape.com
2bdfab8723 Taking out the damn nsCOMPtr for nsThreadPool for Mac!
git-svn-id: svn://10.0.0.236/trunk@48420 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:35:06 +00:00
sspitzer%netscape.com
6716e8e4f0 fix for #14324.
properly migrate the smtp server from 4.x using the SmtpService


git-svn-id: svn://10.0.0.236/trunk@48419 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:32:03 +00:00
nisheeth%netscape.com
654347a177 Add a stopwatch to measure total time (parsing, content creation, frame creation, style resolution, and reflow) in the parser.
git-svn-id: svn://10.0.0.236/trunk@48418 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:24:33 +00:00
rogerl%netscape.com
d2a5cbb6d0 (Bug #13416)
Turned off 'super' keyword - was letting through some cut'n'pasted java
code quietly and blowing big chunks out of the codegen/interpreter later.
Anybody know why 'super' had an interesting value here? - there was no
support for it on any path that I could see.


git-svn-id: svn://10.0.0.236/trunk@48417 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:21:24 +00:00
rods%netscape.com
aafb520645 Added code to make sure that focus gets set on the window for mouse down
git-svn-id: svn://10.0.0.236/trunk@48416 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:18:57 +00:00
chuang%netscape.com
55fdcbc1a1 Fix bug 13904 Preferences: Mail and News typos
git-svn-id: svn://10.0.0.236/trunk@48415 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:16:14 +00:00
chuang%netscape.com
8ea58eca88 Fix missing the last row when importing ldif file
git-svn-id: svn://10.0.0.236/trunk@48414 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:13:54 +00:00
pierre%netscape.com
1ddbcd7152 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48413 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:12:35 +00:00
akkana%netscape.com
7b64229ccc 13447: fix regression in backspace/delete handling. Send char code or key code, but never both
git-svn-id: svn://10.0.0.236/trunk@48412 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:10:03 +00:00
locka%iol.ie
3ffbd2398a Added some documentation
git-svn-id: svn://10.0.0.236/trunk@48411 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:07:09 +00:00
locka%iol.ie
54dd18aabb Added safe for scripting support
git-svn-id: svn://10.0.0.236/trunk@48410 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:00:30 +00:00
robinf%netscape.com
8d57f9a17a fixing bug 4492; text added to New Config dialog
git-svn-id: svn://10.0.0.236/trunk@48409 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:00:21 +00:00
locka%iol.ie
3ab5d226cc A long lost file finds its way into the world
git-svn-id: svn://10.0.0.236/trunk@48408 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:59:30 +00:00
dougt%netscape.com
d120266b38 removing const from nsIFile types
git-svn-id: svn://10.0.0.236/trunk@48407 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:48:30 +00:00
mjudge%netscape.com
179e58ff5f checking in fixes for selection around nodes where get primary frame will not lead to the discovery of all frames
git-svn-id: svn://10.0.0.236/trunk@48406 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:47:37 +00:00
nisheeth%netscape.com
9ca0e1429c Fixed build warning and removed NS_TIMER_STYLE_RESOLUTION define.
git-svn-id: svn://10.0.0.236/trunk@48405 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:36:53 +00:00
dougt%netscape.com
e99e5b2e46 removing. the only way is xul.
git-svn-id: svn://10.0.0.236/trunk@48404 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:36:01 +00:00
nisheeth%netscape.com
f2e1746b5e Fixing build warning.
git-svn-id: svn://10.0.0.236/trunk@48403 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:35:50 +00:00
dougt%netscape.com
8a42401716 Fixing software installation preference panel.
git-svn-id: svn://10.0.0.236/trunk@48402 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:35:06 +00:00
dougt%netscape.com
9c94a07cd6 Cleaned up nsXPIFlash function names.
Added notification flash preference
Added nsIProgressEventSink to nsXPInstallManager


git-svn-id: svn://10.0.0.236/trunk@48401 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:31:55 +00:00
pierre%netscape.com
f432271502 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48400 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:20:26 +00:00
pollmann%netscape.com
26278391ac Bug 14303: Correct typo.
git-svn-id: svn://10.0.0.236/trunk@48399 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:17:28 +00:00
ssu%netscape.com
b91594fae4 added ifdef _WINDOWS around a include file.
git-svn-id: svn://10.0.0.236/trunk@48398 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:16:58 +00:00
norris%netscape.com
e8e1ce7e96 Changes necessary to generate adapter classes to files with associated optimizer package.
git-svn-id: svn://10.0.0.236/trunk@48397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:16:45 +00:00
ssu%netscape.com
35d2aa2df0 new files needed for the shortcut functionality that I just added to xpinstall.
git-svn-id: svn://10.0.0.236/trunk@48396 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:13:53 +00:00
bienvenu%netscape.com
fb5c7bf14e fix listener leak r+a=mscott,valeski
git-svn-id: svn://10.0.0.236/trunk@48395 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:10:46 +00:00
radha%netscape.com
fc0491b1d8 Clean up leaks
git-svn-id: svn://10.0.0.236/trunk@48394 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:09:16 +00:00
buster%netscape.com
99f84bd069 fixed bug 14271, delete key not generating a keyPress event on windows
git-svn-id: svn://10.0.0.236/trunk@48393 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:07:39 +00:00
jefft%netscape.com
050458b292 enabled SaveAttachment
git-svn-id: svn://10.0.0.236/trunk@48392 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:07:22 +00:00
akkana%netscape.com
7a969adf4f Pass formatted flag along in plaintext case
git-svn-id: svn://10.0.0.236/trunk@48391 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:06:29 +00:00
radha%netscape.com
a557185633 Add an id to menubar
git-svn-id: svn://10.0.0.236/trunk@48390 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:06:25 +00:00
radha%netscape.com
7ac0f9b8fd Add an id to the menubar
git-svn-id: svn://10.0.0.236/trunk@48389 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:05:55 +00:00
jefft%netscape.com
e9133bb608 enabled SaveAttachment; added displayName & messageUri when calling openAttachment
git-svn-id: svn://10.0.0.236/trunk@48388 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:05:52 +00:00
akkana%netscape.com
9678ef579b Fix sink stream so that it works when parsing from html as well as from XIF
git-svn-id: svn://10.0.0.236/trunk@48387 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:05:47 +00:00
akkana%netscape.com
c829a3cf49 Add ToString API to nsIDOMSelection
git-svn-id: svn://10.0.0.236/trunk@48386 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:05:01 +00:00
radha%netscape.com
9983b85d6f Re-enable 'Go' menu
git-svn-id: svn://10.0.0.236/trunk@48385 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:04:38 +00:00
jefft%netscape.com
4589a9db13 fixed linux build warning
git-svn-id: svn://10.0.0.236/trunk@48384 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:04:12 +00:00
kmcclusk%netscape.com
2fb86dacaa Added support for font weights
git-svn-id: svn://10.0.0.236/trunk@48383 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:02:01 +00:00
granrose%netscape.com
4c0c785885 removed leading '/' on '-' lines.
git-svn-id: svn://10.0.0.236/trunk@48382 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:01:48 +00:00
jefft%netscape.com
f05d35fec7 added two more arguments for openAttachment()
git-svn-id: svn://10.0.0.236/trunk@48381 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:00:51 +00:00
jband%netscape.com
553afd024f fix for bug 13426 - can now do 'new Components.classes.foo()' to create a new instance of a wrapped native
git-svn-id: svn://10.0.0.236/trunk@48380 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:59:38 +00:00
rods%netscape.com
a6151a4aa7 commenting out the the generic input type's vertical-align and border widget
git-svn-id: svn://10.0.0.236/trunk@48379 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:58:58 +00:00
ssu%netscape.com
617e40ddbe Added new windows shortcut file operation routine.
Renamed:
  FileWinShortcutCreate() to FileWindowsShortcut()
  FileMacAliasCreate()    to FileMacAlias()
  FileUnixLinkCreate()    to FileUnixLink()


git-svn-id: svn://10.0.0.236/trunk@48378 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:58:20 +00:00
warren%netscape.com
3d8d35d25f Fixed warnings.
git-svn-id: svn://10.0.0.236/trunk@48377 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:57:21 +00:00
slamm%netscape.com
1c5a107e65 Use only name and url columns for beta.
git-svn-id: svn://10.0.0.236/trunk@48376 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:54 +00:00
warren%netscape.com
4a15ebde22 fixed refcounting in nsThread so threads and runnables are freed
git-svn-id: svn://10.0.0.236/trunk@48375 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:23 +00:00
warren%netscape.com
96f4dfebdc fixed mismatched free in nsProperties
git-svn-id: svn://10.0.0.236/trunk@48374 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:16 +00:00
warren%netscape.com
8a533d4ca4 freed tree nodes in nsAVLTree
git-svn-id: svn://10.0.0.236/trunk@48373 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:12 +00:00
warren%netscape.com
4a5f6f43ca fixed ReleaseService and UnregisterService to work during shutdown
git-svn-id: svn://10.0.0.236/trunk@48372 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:09 +00:00
warren%netscape.com
dca5e1f9ba fixed circular references in nsNativeComponentLoader
git-svn-id: svn://10.0.0.236/trunk@48371 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:54:04 +00:00
warren%netscape.com
bc71cc93e8 freed mComponentsDir in nsComponentManager
git-svn-id: svn://10.0.0.236/trunk@48370 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:57 +00:00
warren%netscape.com
b516d679cb freed global service manager in NS_ShutdownXPCOM
git-svn-id: svn://10.0.0.236/trunk@48369 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:49 +00:00
warren%netscape.com
911f81786d freed mWebCrawler in nsBrowserWindow
git-svn-id: svn://10.0.0.236/trunk@48368 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:40 +00:00
warren%netscape.com
748d779af5 cleaned up nsWebShell's use of services
git-svn-id: svn://10.0.0.236/trunk@48367 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:31 +00:00
warren%netscape.com
7a073ad317 freed leaked nsRDFService in nsRDFResource
git-svn-id: svn://10.0.0.236/trunk@48366 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:23 +00:00
warren%netscape.com
09c1304754 cleaned up unused stuff in nsFileProtocolHandler
git-svn-id: svn://10.0.0.236/trunk@48365 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:17 +00:00
warren%netscape.com
3c93ae3cf6 freed mCommand in nsFileChannel
git-svn-id: svn://10.0.0.236/trunk@48364 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:13 +00:00
warren%netscape.com
67162cd708 exited threads on shutdown in nsFileTransportService
git-svn-id: svn://10.0.0.236/trunk@48363 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:09 +00:00
warren%netscape.com
24085aaebf fixed leaked service manager in nsPluginFactory
git-svn-id: svn://10.0.0.236/trunk@48362 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:06 +00:00
warren%netscape.com
f923450bcf fixed leaked JVM manager service in oji
git-svn-id: svn://10.0.0.236/trunk@48361 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:53:01 +00:00
warren%netscape.com
64ef319f12 freed gSavedLine in prefapi
git-svn-id: svn://10.0.0.236/trunk@48360 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:48 +00:00
warren%netscape.com
618f9c286c freed gNameSpaceManager n nsXULAtoms
git-svn-id: svn://10.0.0.236/trunk@48359 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:42 +00:00
warren%netscape.com
3e68adc66b freed gUpperMap and gLowerMap in nsCaseConversionImp2
git-svn-id: svn://10.0.0.236/trunk@48358 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:16 +00:00
warren%netscape.com
15403e9585 fixed mismatched free issues with nsID::ToString
git-svn-id: svn://10.0.0.236/trunk@48357 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:12 +00:00
warren%netscape.com
bbd47b5f49 freed CIDs in nsCharsetConverterManager
git-svn-id: svn://10.0.0.236/trunk@48356 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:05 +00:00
warren%netscape.com
d140059c3b fixed refcounting of nsLocaleService so that it would be freed on shutdown
git-svn-id: svn://10.0.0.236/trunk@48355 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:52:01 +00:00
rickg%netscape.com
62a4c30ee3 allow newline in text runs for better text performance on linux/mac
git-svn-id: svn://10.0.0.236/trunk@48354 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 19:27:41 +00:00
srinivas%netscape.com
eee44d92d2 The previous checkin being enabled for WIN32 only; needs further
investigation.


git-svn-id: svn://10.0.0.236/trunk@48353 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 19:18:35 +00:00
rickg%netscape.com
7b9656a8ce fixed newline breakage I caused trying to fix bug 13688
git-svn-id: svn://10.0.0.236/trunk@48352 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 19:17:47 +00:00
gagan%netscape.com
800d748a2c Fix the bad prefs returning a value for non-existent proxy port. Fixes today morning horkage in service.
git-svn-id: svn://10.0.0.236/trunk@48351 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 18:56:44 +00:00
bienvenu%netscape.com
cb55c8d940 fix busted imap by changing SetSpec to take a const char *
git-svn-id: svn://10.0.0.236/trunk@48350 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 16:32:00 +00:00
bienvenu%netscape.com
c3e2134734 fix busted imap by changing SetSpec to take a const char *
git-svn-id: svn://10.0.0.236/trunk@48349 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 16:26:50 +00:00
bienvenu%netscape.com
179a6b151a fix mismatched delete
git-svn-id: svn://10.0.0.236/trunk@48348 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 14:56:32 +00:00
bienvenu%netscape.com
ddd4d10d29 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@48347 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 14:56:08 +00:00
Jerry.Kirk%Nexwarecorp.com
2731020d86 Code Cleanup for Photon and a couple of strategic strikes to get the
new text widget to work.


git-svn-id: svn://10.0.0.236/trunk@48346 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 11:44:23 +00:00
sspitzer%netscape.com
399ec2f2ea changes to the proxy manual dialog.
git-svn-id: svn://10.0.0.236/trunk@48345 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 10:28:52 +00:00
nisheeth%netscape.com
36e368d39a Include nsITimeRecorder.h in the pres shell.
git-svn-id: svn://10.0.0.236/trunk@48344 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 08:23:33 +00:00
nisheeth%netscape.com
1218d54ab6 - Change bool to PRBool in Stopwatch::Start()
- Add the NS_TIMER_STYLE_RESOLUTION define to nsITimeRecorder.idl


git-svn-id: svn://10.0.0.236/trunk@48343 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 08:21:01 +00:00
sspitzer%netscape.com
6f648e84bd fix bug #10235
implement "pre-select the right identity when composing based on folder pane selection" feature.


git-svn-id: svn://10.0.0.236/trunk@48342 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 08:13:27 +00:00
gagan%netscape.com
0668e140bc Proxies work now. Place these two lines in your .mozilla/mozProfile/prefs.js and have fun-
user_pref("network.proxy.http", "w3proxy.netscape.com");
user_pref("network.proxy.http_port", 8080);
Some other micro fixes here and there.


git-svn-id: svn://10.0.0.236/trunk@48341 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:51:15 +00:00
sspitzer%netscape.com
ee75bc00ed fix for #14326
r=gagan
nsStdURL was not correctly parsing the host out of url's like "foo://bar@cheese"


git-svn-id: svn://10.0.0.236/trunk@48340 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:45:42 +00:00
mcafee%netscape.com
d1533fbf36 Warnings
git-svn-id: svn://10.0.0.236/trunk@48339 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:43:42 +00:00
waterson%netscape.com
8754b1f98e Ok, so hyatt has a better way to do his frame hack. whatever.
git-svn-id: svn://10.0.0.236/trunk@48338 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:33:25 +00:00
jband%netscape.com
c37e030b42 fix a warning and add JS stack dumper with a test.
git-svn-id: svn://10.0.0.236/trunk@48337 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:32:32 +00:00
jband%netscape.com
26a4c69f38 round out the isDependent test and change an || to a switch
git-svn-id: svn://10.0.0.236/trunk@48336 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:30:04 +00:00
jband%netscape.com
5399c28b6e fix a warning
git-svn-id: svn://10.0.0.236/trunk@48335 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:27:51 +00:00
nisheeth%netscape.com
01b26a2de0 Add calls to reset and print the stopwatch maintained by the styleset for tracking style resolution time.
git-svn-id: svn://10.0.0.236/trunk@48334 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:55:24 +00:00
nisheeth%netscape.com
a7e5337544 Move implementation of nsITimeRecorder from the pres context to the style set.
git-svn-id: svn://10.0.0.236/trunk@48333 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:53:40 +00:00
alecf%netscape.com
daad6b47da fix icon for inbox with new messages
git-svn-id: svn://10.0.0.236/trunk@48332 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:51:10 +00:00
alecf%netscape.com
16b4014b30 don't build identity test anymore, we can get at this stuff from JS
git-svn-id: svn://10.0.0.236/trunk@48331 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:50:45 +00:00
alecf%netscape.com
1befc84543 depricate old SMTP API.
git-svn-id: svn://10.0.0.236/trunk@48330 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:50:21 +00:00
alecf%netscape.com
8b3c470d22 be smarter about building up list of SMTP servers, don't keep appending onto the pref
git-svn-id: svn://10.0.0.236/trunk@48329 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:49:33 +00:00
nisheeth%netscape.com
41854a8edd Stop the content creation stopwatch before it is printed.
git-svn-id: svn://10.0.0.236/trunk@48328 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:48:33 +00:00
fur%netscape.com
f17c704631 Initial cut at network cache IDL
git-svn-id: svn://10.0.0.236/trunk@48327 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:43:24 +00:00
waterson%netscape.com
1b81ec1ab1 Fix memmove() stuff.
git-svn-id: svn://10.0.0.236/trunk@48326 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 06:11:36 +00:00
rickg%netscape.com
03b7c238c3 back out update to Append(int,radix) until I can find ltoa() on linux
git-svn-id: svn://10.0.0.236/trunk@48325 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:50:43 +00:00
rickg%netscape.com
ac3d03bc50 explicitly include <stdlib.h>
git-svn-id: svn://10.0.0.236/trunk@48324 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:32:36 +00:00
rpotts%netscape.com
1ddb6a5195 The mLoadGroup is now a weak reference. This prevents the loadgroup from leaking if the ImageNetContext is not released... The lifetime of the loadgroup should always be greater than that of the imagenetcontext...
git-svn-id: svn://10.0.0.236/trunk@48323 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:29:28 +00:00
rpotts%netscape.com
7059095bcb The nsLoadGroup now supports nsWeakReference...
git-svn-id: svn://10.0.0.236/trunk@48322 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:27:50 +00:00
dveditz%netscape.com
bcc65746cf making depend builds more robust
git-svn-id: svn://10.0.0.236/trunk@48321 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:25:52 +00:00
rickg%netscape.com
9f277b8d25 fixes to bugs: 9283, 13210, 13845, 13688, 14265, 14308, 14314
git-svn-id: svn://10.0.0.236/trunk@48320 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:20:46 +00:00
rickg%netscape.com
7005feb199 fixed crasher in bufferroutines, and eliminated 1 costly call to sprintf
git-svn-id: svn://10.0.0.236/trunk@48319 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 05:10:32 +00:00
waterson%netscape.com
a3557b2d24 Fix Linux bustage.
git-svn-id: svn://10.0.0.236/trunk@48318 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:50:18 +00:00
waterson%netscape.com
0fb3a3ef3e Add <?xml ... ?> processing instruction; docs aren't allowed to start with a comment.
git-svn-id: svn://10.0.0.236/trunk@48317 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:34:15 +00:00
buster%netscape.com
28bdfeef11 most of the fix for bug 11804, type-in state wasn't properly removing
inline attributes from the next character entered (you're in a bold word
and user clicks bold button, should make next character not bold.)
all done except for font properties.


git-svn-id: svn://10.0.0.236/trunk@48316 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:20:18 +00:00
buster%netscape.com
6b43b634eb turned off a debug flag
git-svn-id: svn://10.0.0.236/trunk@48315 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:17:05 +00:00
buster%netscape.com
1dcd85d64b fixed recent bustage on windows that '.' key wouldn't work, making it
tough to type URL's in browser.  still needs work, but it's usable again.


git-svn-id: svn://10.0.0.236/trunk@48314 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:16:34 +00:00
buster%netscape.com
4127d30662 turned off a noisy debug flag
git-svn-id: svn://10.0.0.236/trunk@48313 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:15:36 +00:00
sspitzer%netscape.com
8575f8daf5 fix for #14316. only one identity was showing up in compose!
git-svn-id: svn://10.0.0.236/trunk@48312 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:05:37 +00:00
buster%netscape.com
e676ff78bf just added a comment
git-svn-id: svn://10.0.0.236/trunk@48311 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 04:01:39 +00:00
buster%netscape.com
2e2ab230d1 small performance improvement. weeded out some obsolete code that was
causing round trips through the editor unnecessarily.
thanks for pointing out the problem, akkana and bruce m.


git-svn-id: svn://10.0.0.236/trunk@48310 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:59:43 +00:00
kipp%netscape.com
9d1c6f186b Fixed UMR bug that purify found (14171)
git-svn-id: svn://10.0.0.236/trunk@48309 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:46:09 +00:00
waterson%netscape.com
524f9ef28d Use tabs instead of spaces separate frames in stack dump: new demangling code introduces spaces.
git-svn-id: svn://10.0.0.236/trunk@48308 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:45:21 +00:00
waterson%netscape.com
83879e2499 Bug 14291. Fix some more of the same kind of leaks.
git-svn-id: svn://10.0.0.236/trunk@48307 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:42:02 +00:00
waterson%netscape.com
96d608cc6d Bug 14291. Fix leak of XUL document.
git-svn-id: svn://10.0.0.236/trunk@48306 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 03:30:33 +00:00
jband%netscape.com
d9fb78866e - Changed the interface for getting the interface_is argnum.
- Merged the typelib types for array and array_with_length.
- Added typelib types for string_with_size and wstring_with_size
- Fixed array param conversion and cleanup - using two passes over the params where necessary.
- Added array conversions when calling wrapped JS objects.
- Added expanded array tests.
- Avoid repeated atomization of 'value' property name.


git-svn-id: svn://10.0.0.236/trunk@48305 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:51:16 +00:00
jband%netscape.com
f6186afc2f - Changed the interface for getting the interface_is argnum.
- Merged the typelib types for array and array_with_length.
- Added typelib types for string_with_size and wstring_with_size


git-svn-id: svn://10.0.0.236/trunk@48304 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:50:28 +00:00
sspitzer%netscape.com
bf84e03cf4 check in work around for #10235
check in start of work for #14312
fix a couple warnings
comment out some dump() calls


git-svn-id: svn://10.0.0.236/trunk@48303 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:12:28 +00:00
alecf%netscape.com
8bbdb52c77 make the account wizard use the new SMTP stuff
git-svn-id: svn://10.0.0.236/trunk@48302 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:11:19 +00:00
srinivas%netscape.com
9f35555618 Limit the number of events processed by PL_ProcessPendingEvents; check in
troy@netscape.com. Bugzilla 13660.


git-svn-id: svn://10.0.0.236/trunk@48301 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:11:10 +00:00
davidm%netscape.com
78dcf00f4e Add check marks to view menu. Make collapse state persistent. Add slider to the list of chrome that should be hidden when the side bar is hidden
git-svn-id: svn://10.0.0.236/trunk@48300 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:55:16 +00:00
alecf%netscape.com
3601219e0c oops, I checked in the wrong line! Should be setting the source, not dumping
git-svn-id: svn://10.0.0.236/trunk@48299 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:55:13 +00:00
davidm%netscape.com
3789d7b1e2 update to call quit rather than shutdown.
git-svn-id: svn://10.0.0.236/trunk@48298 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:52:21 +00:00
jfrancis%netscape.com
381ca4cab7 fixing a heap-o-undo problems and some mBogusNode problems
git-svn-id: svn://10.0.0.236/trunk@48297 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 01:31:44 +00:00
dveditz%netscape.com
4707694c23 backing out bufio changes until corruption fixed
git-svn-id: svn://10.0.0.236/trunk@48296 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:53:07 +00:00
ducarroz%netscape.com
a66d10f41a Autocomplete add default domain if needed
git-svn-id: svn://10.0.0.236/trunk@48295 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:49:53 +00:00
beard%netscape.com
56919e3f8c Fixed a memory corrupting bug in PREF_copyTree. strtok would continue scanning off the end of the current string, modifying subsequent non-string blocks, if they contained a ';' before a '\0' byte.
git-svn-id: svn://10.0.0.236/trunk@48294 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:08:48 +00:00
alecf%netscape.com
e5a1f15821 fix up more layout problems. layout is way too screwy for me.
git-svn-id: svn://10.0.0.236/trunk@48293 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:04:55 +00:00
alecf%netscape.com
53c5de7513 turn off vard for PR1
git-svn-id: svn://10.0.0.236/trunk@48292 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:04:15 +00:00
alecf%netscape.com
aa7953bce0 get rid of advanced pane for now
git-svn-id: svn://10.0.0.236/trunk@48291 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:03:47 +00:00
alecf%netscape.com
eed9926022 update SMTP server pane to reflect latest specs
git-svn-id: svn://10.0.0.236/trunk@48290 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:03:15 +00:00
waterson%netscape.com
0301b999d5 Bug 14291. Stop leaking entire XUL document when anonymous frames are
constructed.


git-svn-id: svn://10.0.0.236/trunk@48289 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:02:59 +00:00
alecf%netscape.com
eed6b981ff add support for the default SMTP server as a source and destination, and don't freak out when there's no account (default to "global")
git-svn-id: svn://10.0.0.236/trunk@48288 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 00:02:07 +00:00
alecf%netscape.com
aa904faf14 rename default server attribute, and change default smtp prefix to "smtp" instead of "server"
git-svn-id: svn://10.0.0.236/trunk@48287 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:58:57 +00:00
alecf%netscape.com
9f6334720f fix problem where we forgot to append "." to the server key
git-svn-id: svn://10.0.0.236/trunk@48286 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:57:53 +00:00
buster%netscape.com
d631159edf fixed an error where the out param was not being initialized to null.
This could cause an error in the caller if the caller fails to check the return
code as well as the pointer!=null before dereferencing the result.


git-svn-id: svn://10.0.0.236/trunk@48285 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:47:04 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
leaf%mozilla.org
b232209098 fixing commented out component demarcations
git-svn-id: svn://10.0.0.236/trunk@48283 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:45:34 +00:00
alecf%netscape.com
f378b687fe allow char properties to return null instead of throwing an exception
git-svn-id: svn://10.0.0.236/trunk@48282 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:35:53 +00:00
alecf%netscape.com
b15247416d be a little smarter about SMTP servers - create the default one on demand
git-svn-id: svn://10.0.0.236/trunk@48281 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:33:49 +00:00
despotdaemon%netscape.com
4b452822d6 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48280 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:28:00 +00:00
alecf%netscape.com
0b846506fe I need real ProgIDs, not these fakes.
git-svn-id: svn://10.0.0.236/trunk@48279 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:19:53 +00:00
waterson%netscape.com
68697cb3ef Increase utility of 'cannot load datasource' message; special-case skip 'rdf:null'.
git-svn-id: svn://10.0.0.236/trunk@48278 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:51:15 +00:00
waterson%netscape.com
00ee8f5c2a Comment out 'element already in map' warning for now.
git-svn-id: svn://10.0.0.236/trunk@48277 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:42:55 +00:00
sspitzer%netscape.com
074a6c4066 fix for #14268. change all PR_ASSERT() to NS_ASSERTION(). PR_ASSERT() calls abort and that ain't cool.
git-svn-id: svn://10.0.0.236/trunk@48276 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:19:27 +00:00
putterman%netscape.com
9f9e7f2071 Fix 13475. You can now close and reopen mail 3 pane.
git-svn-id: svn://10.0.0.236/trunk@48275 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:02:12 +00:00
alecf%netscape.com
8d69541632 remove stupid debugging
git-svn-id: svn://10.0.0.236/trunk@48274 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:01:24 +00:00
alecf%netscape.com
1142bbf1bd more spacer cleanup
git-svn-id: svn://10.0.0.236/trunk@48273 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:00:55 +00:00
alecf%netscape.com
f4ca19f6d8 hrm. html spacer seem to do wierd things inside boxes
git-svn-id: svn://10.0.0.236/trunk@48272 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 22:00:29 +00:00
leaf%mozilla.org
3ee9dfb001 changing splitsym to work when OFFICIAL is set
git-svn-id: svn://10.0.0.236/trunk@48271 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 21:26:19 +00:00
sspitzer%netscape.com
ed472d41d9 don't do work for determining the default sidebar, if the users passes us one. sidebarOverlayInit() takes one parameter, not two. comment out reloadSidebar() because it is not working.
git-svn-id: svn://10.0.0.236/trunk@48270 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 21:02:29 +00:00
alecf%netscape.com
f4cc48817b fix support for when someone enters a blank entry in a filespec textbox
git-svn-id: svn://10.0.0.236/trunk@48269 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 20:49:30 +00:00
alecf%netscape.com
40b038e9c3 Server panel update:
- make pop deck appear even after visiting a non-POP deck!
- add local mail directory


git-svn-id: svn://10.0.0.236/trunk@48268 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 20:48:30 +00:00
alecf%netscape.com
32e3dcf208 remove my idiocy
git-svn-id: svn://10.0.0.236/trunk@48267 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 20:29:53 +00:00
waterson%netscape.com
a1dc65f736 Fix GetContentSink() to addref pointer on the way out thru XPCOM boundary. Hyatt: that's 20 XPCOM Hail Mary's for you.
git-svn-id: svn://10.0.0.236/trunk@48266 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:58:04 +00:00
waterson%netscape.com
bd10c6bdbe Bug 14205. Prolific use of nsCOMPtr to patch overlay leakage.
git-svn-id: svn://10.0.0.236/trunk@48265 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:56:31 +00:00
alecf%netscape.com
b0dc01a3d9 add html:select template example for waterson
git-svn-id: svn://10.0.0.236/trunk@48264 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:55:30 +00:00
sspitzer%netscape.com
48f5b3901a shite! I accidentally checked in a change that made the sidebar ALWAYS blank.
git-svn-id: svn://10.0.0.236/trunk@48263 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:54:57 +00:00
sspitzer%netscape.com
0dbb02089d fix a couple of my warnings.
git-svn-id: svn://10.0.0.236/trunk@48262 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:43:25 +00:00
waterson%netscape.com
8ad49bd1e7 Bug 14285. Add some arg checking as we are prone to being called from JS.
git-svn-id: svn://10.0.0.236/trunk@48261 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:41:45 +00:00
sspitzer%netscape.com
96c645b1d7 very, very tired of seeing all these printfs.
git-svn-id: svn://10.0.0.236/trunk@48260 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:38:24 +00:00
sspitzer%netscape.com
680f7a4c32 prevent crash in #14285
we don't want sidebar.db to be null when we call into rdf.


git-svn-id: svn://10.0.0.236/trunk@48259 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 19:31:56 +00:00
rickg%netscape.com
207d88ebf9 removed a bunch of statically constructed objects
git-svn-id: svn://10.0.0.236/trunk@48258 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 16:51:08 +00:00
rickg%netscape.com
b32eca31ce improved safety of CBufDescriptor
git-svn-id: svn://10.0.0.236/trunk@48257 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 16:43:09 +00:00
jfrancis%netscape.com
4670f5d134 improved handling of tabs (nested tables now work) and also fixed bug 13662
git-svn-id: svn://10.0.0.236/trunk@48256 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 10:32:21 +00:00
jfrancis%netscape.com
0db3f03a4f fix bug 13469
git-svn-id: svn://10.0.0.236/trunk@48255 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 10:31:31 +00:00
jfrancis%netscape.com
a2716305a8 putting tab handling back in KeyDown(). Else editor never gets tabs.
git-svn-id: svn://10.0.0.236/trunk@48254 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 10:30:30 +00:00
pollmann%netscape.com
3e62029e1d Bug 13960: Combo box must not be dropped down before mouse moves update the selected option.
git-svn-id: svn://10.0.0.236/trunk@48253 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 09:48:04 +00:00
alecf%netscape.com
d8598dc787 oops, didn't mean to check in the blank value
git-svn-id: svn://10.0.0.236/trunk@48252 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 09:36:18 +00:00
alecf%netscape.com
690bce6559 fix layout of main panel
add support for nsIFileSpec style fields


git-svn-id: svn://10.0.0.236/trunk@48251 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 09:34:59 +00:00
alecf%netscape.com
ef406dddad add css (not used yet, only part of unix build)
git-svn-id: svn://10.0.0.236/trunk@48250 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 09:34:11 +00:00
pollmann%netscape.com
5d0f554d73 Remove redundant reset() call.
git-svn-id: svn://10.0.0.236/trunk@48249 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 09:18:33 +00:00
pollmann%netscape.com
415eee3b6c Fix mem leak.
git-svn-id: svn://10.0.0.236/trunk@48248 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:25:48 +00:00
pollmann%netscape.com
80351daabb Cache value updates in a more general way for file inputs, fix mem leak.
git-svn-id: svn://10.0.0.236/trunk@48247 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:25:12 +00:00
pollmann%netscape.com
60d58f1ca0 Cache value updates that happen before initialization: fixes a bug in session history where text input/textarea/file inputs aren't restored.
git-svn-id: svn://10.0.0.236/trunk@48246 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:22:55 +00:00
davidm%netscape.com
5bc4540609 Disable some debugging code
git-svn-id: svn://10.0.0.236/trunk@48245 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:21:20 +00:00
davidm%netscape.com
aeadffaf95 14180 when no windows open, non-applicable menu items still active
git-svn-id: svn://10.0.0.236/trunk@48244 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 07:11:34 +00:00
davidm%netscape.com
fba7f5edcf 3924 [PP]Can't make an apprunner window as narrow as Comm 4.51- Change min width to 125
git-svn-id: svn://10.0.0.236/trunk@48243 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 06:44:26 +00:00
davidm%netscape.com
66e8f184a6 14186 "Open Web Location" dialog appears at 0,0
git-svn-id: svn://10.0.0.236/trunk@48242 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 06:34:30 +00:00
davidm%netscape.com
6fa70f6dda 14179 opening a new browser window when none open doesn't go to ho
14182    chosing "View:Reload" from menu disables Reload menu item


git-svn-id: svn://10.0.0.236/trunk@48241 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 06:28:04 +00:00
troy%netscape.com
9a25e04f8b Optimized Reflow() some more. In the case where we're not measuring text but
we need to peek ahead and so we need to know the length of the last word, if
there's only one word in the text run then we can avoid measuring


git-svn-id: svn://10.0.0.236/trunk@48240 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 04:42:54 +00:00
beard%netscape.com
63ef9cc603 added pulling of MRJ OJI plugin source, in preparation for building.
git-svn-id: svn://10.0.0.236/trunk@48239 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 03:36:15 +00:00
alecf%netscape.com
fb7176ec96 use the onselect event instead of onclick, and load the first item when the window opens
git-svn-id: svn://10.0.0.236/trunk@48238 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 01:34:10 +00:00
sspitzer%netscape.com
c19841ded8 added these on the wrong path
git-svn-id: svn://10.0.0.236/trunk@48237 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 01:20:55 +00:00
sspitzer%netscape.com
64afbbde72 shit, these got added in the wrong place.
git-svn-id: svn://10.0.0.236/trunk@48235 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 01:17:39 +00:00
alecf%netscape.com
4ddf16c35d don't flip out when we load a non-server page
git-svn-id: svn://10.0.0.236/trunk@48234 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:59:47 +00:00
troy%netscape.com
545ba4350f Backed out some changes that aren't needed and were fixed with a change
to the frame construction code


git-svn-id: svn://10.0.0.236/trunk@48233 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:59:38 +00:00
beard%netscape.com
b25344ebc6 bug #6251: changed Repaint() method to call nsIViewManager::UpdateAllViews() to force a globa redraw.
git-svn-id: svn://10.0.0.236/trunk@48232 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:54:55 +00:00
beard%netscape.com
bed21decdf bug #6251: added UpdateAllViews(PRUint32 aUpdateFlags), which will force a complete refresh of all views owned by an nsIViewManager.
git-svn-id: svn://10.0.0.236/trunk@48231 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:51:41 +00:00
sspitzer%netscape.com
8cf2a312c5 more changes to build alecf's dom viewer on the mac
git-svn-id: svn://10.0.0.236/trunk@48230 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:44:25 +00:00
sspitzer%netscape.com
5bdca264a5 remaining changes to get alecf's dom viewer to build on the mac.
thanks to sfraser for the *.mcp / *.pm / MANIFEST help.


git-svn-id: svn://10.0.0.236/trunk@48229 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 00:43:24 +00:00
sspitzer%netscape.com
8fb012212f need this to get the dom viewer to build on the mac
git-svn-id: svn://10.0.0.236/trunk@48228 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 23:43:55 +00:00
racham%netscape.com
b6eb72b794 Fixing the performance bug 13555 to minimize the number of registry operations. Moved major printfs from DEBUG_profile.
git-svn-id: svn://10.0.0.236/trunk@48227 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 23:35:09 +00:00
beard%netscape.com
388fa9f88d scanning Plugins folder under the application now.
git-svn-id: svn://10.0.0.236/trunk@48226 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 22:40:36 +00:00
beard%netscape.com
a81ee67fec registering the JVMManager component.
git-svn-id: svn://10.0.0.236/trunk@48225 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 22:39:55 +00:00
beard%netscape.com
ff198b7561 changed access paths to find MRJSDK in "{Compiler}MacOS Support:".
git-svn-id: svn://10.0.0.236/trunk@48224 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 22:36:02 +00:00
sspitzer%netscape.com
80f507f7dc Use this MANIFEST to export IDL files
git-svn-id: svn://10.0.0.236/trunk@48223 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 22:11:55 +00:00
sspitzer%netscape.com
c1a70eaf42 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48222 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 22:09:32 +00:00
dougt%netscape.com
c8ba09b4cf removing silentdl to speed up build.
git-svn-id: svn://10.0.0.236/trunk@48221 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:34:19 +00:00
beard%netscape.com
b0aaf76cd7 ensure JMDrawFrameInPort is available in printApplet().
git-svn-id: svn://10.0.0.236/trunk@48220 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:28:50 +00:00
beard%netscape.com
e0e36bd7d8 removing all vestiges of nsICapsManager.
git-svn-id: svn://10.0.0.236/trunk@48219 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:25:45 +00:00
beard%netscape.com
7621094772 Revised nsIInputStream methods (Available() instead of GetLength()).
git-svn-id: svn://10.0.0.236/trunk@48218 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:25:19 +00:00
morse%netscape.com
4418a2dc1e fix linkage error if CleintWallet is excluded from build
git-svn-id: svn://10.0.0.236/trunk@48217 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:21:44 +00:00
sspitzer%netscape.com
728b322151 adding this to build the dom viewer on the mac.
git-svn-id: svn://10.0.0.236/trunk@48216 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 20:14:57 +00:00
beard%netscape.com
a836dd8cc2 implemented CopyClipRegion().
git-svn-id: svn://10.0.0.236/trunk@48215 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:54:48 +00:00
morse%netscape.com
7c055f1cfa revised files received from Ben Goodger
git-svn-id: svn://10.0.0.236/trunk@48214 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:54:28 +00:00
colin%theblakes.com
67e1106a91 Remove xpcomds_s and xptinfo from LIBS since they don't appear to be needed. Sorry if some other platform does need them!
git-svn-id: svn://10.0.0.236/trunk@48213 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:36:38 +00:00
sspitzer%netscape.com
bac6cfec5e make it so the user has there 4.x bookmarks after migration.
git-svn-id: svn://10.0.0.236/trunk@48212 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:32:52 +00:00
sspitzer%netscape.com
4b164893ef make ReadBookmarks() part of the nsIBookmarksService interface. I need this so I can call it from the profile code, so that after migration, the user has their 4.x bookmarks. one bug remains, is that when you call ReadBookmarks() more then once it should re-set the bookmarks, instead of adding to it.
git-svn-id: svn://10.0.0.236/trunk@48211 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:32:40 +00:00
briano%netscape.com
6d19b52ee2 Removed the 3 test-tab XUL files that don't exist.
git-svn-id: svn://10.0.0.236/trunk@48210 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 19:20:27 +00:00
bienvenu%netscape.com
531729d6d7 fix memory leaks and mismatched deletes
git-svn-id: svn://10.0.0.236/trunk@48209 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:58:15 +00:00
bienvenu%netscape.com
f33dc733d7 fix mismatched delete
git-svn-id: svn://10.0.0.236/trunk@48208 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:45:57 +00:00
alecf%netscape.com
86ffe8de99 use the right style sheet, duh!
git-svn-id: svn://10.0.0.236/trunk@48207 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:45:30 +00:00
alecf%netscape.com
fc16effaad fix stupid casting problem that was preventing colors from appearing
git-svn-id: svn://10.0.0.236/trunk@48206 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:45:10 +00:00
bienvenu%netscape.com
53895627eb fix memory leaks and mismatched deletes
git-svn-id: svn://10.0.0.236/trunk@48205 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:40:16 +00:00
sspitzer%netscape.com
a1aa1c79b4 give the profile manager / installer window a title.
it would be good if the first window the users sees has a title, no?


git-svn-id: svn://10.0.0.236/trunk@48204 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:22:27 +00:00
sspitzer%netscape.com
26e68f24e1 ignore generated files
git-svn-id: svn://10.0.0.236/trunk@48203 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:13:31 +00:00
sspitzer%netscape.com
0765c37463 the bookmarks service is looking for bookmarks.html, not bookmarks.htm
now, your bookmarks get migrated!
(unix finally wins a file name battle, but windows still wins the war.)


git-svn-id: svn://10.0.0.236/trunk@48202 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:12:57 +00:00
sspitzer%netscape.com
7c99ad95e0 rename 4.x bookmarks file after migration to bookmarks.htm for all platforms.
rewrite code so I could use it to rename cookies files and bookmarks file
with the same method.


git-svn-id: svn://10.0.0.236/trunk@48201 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 18:00:12 +00:00
bienvenu%netscape.com
a23ad71a90 fix memory leak, uninitialized memory
git-svn-id: svn://10.0.0.236/trunk@48200 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:44:25 +00:00
bienvenu%netscape.com
9184af0f7e check for null before addreffing
git-svn-id: svn://10.0.0.236/trunk@48199 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:42:51 +00:00
bienvenu%netscape.com
e28e9ed96a fix mismatched free
git-svn-id: svn://10.0.0.236/trunk@48198 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:41:37 +00:00
sspitzer%netscape.com
55494f7e27 minor changes to the help page
git-svn-id: svn://10.0.0.236/trunk@48197 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:26:57 +00:00
sspitzer%netscape.com
7a6b318416 start the dom viewer up with the help page I added.
git-svn-id: svn://10.0.0.236/trunk@48196 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:26:06 +00:00
sspitzer%netscape.com
d807934e22 whoops. we only want one text input box, and set its value to
http://www.mozillazine.org

soon, it will be set to instructions on how to use alecf's DOM viewer


git-svn-id: svn://10.0.0.236/trunk@48195 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:13:28 +00:00
sspitzer%netscape.com
c1d2cd1314 turn on alecf's almighty dom viewer.
try it, you'll like it!


git-svn-id: svn://10.0.0.236/trunk@48194 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:03:09 +00:00
sspitzer%netscape.com
6f73ef081c makefiles to get alecf's dom viewer to build on windows
git-svn-id: svn://10.0.0.236/trunk@48193 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:02:45 +00:00
sspitzer%netscape.com
30ca0954dc changes to get alecf's dom viewer to build and work on windows.
git-svn-id: svn://10.0.0.236/trunk@48192 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:02:11 +00:00
sspitzer%netscape.com
3003fe3bc8 move alecf's almighty dom viewer to the top of the debug menu.
why hide such a kick-ass app?
note, this kick-ass only works on windows and unix.
we need help with the mac project files.


git-svn-id: svn://10.0.0.236/trunk@48191 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 17:01:12 +00:00
colin%theblakes.com
a2a33161d2 Link with MOZ_NECKO_UTIL_LIBS
git-svn-id: svn://10.0.0.236/trunk@48190 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 16:29:07 +00:00
troy%netscape.com
28ffdcaf30 Optimized reflow to skip measuring of the text for a resize reflow (when
possible)


git-svn-id: svn://10.0.0.236/trunk@48189 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 16:22:34 +00:00
andreas.otte%primus-online.de
1215de6625 add some more testcases
git-svn-id: svn://10.0.0.236/trunk@48188 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 11:12:45 +00:00
andreas.otte%primus-online.de
e0fdbb0550 modified comment to DirFile to reflect changed nsStdURL.cpp
git-svn-id: svn://10.0.0.236/trunk@48187 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 09:24:17 +00:00
andreas.otte%primus-online.de
99254d7f8d add protocol/jar makefiles
git-svn-id: svn://10.0.0.236/trunk@48186 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 09:13:20 +00:00
andreas.otte%primus-online.de
1443df2815 NOT ON BUILD: add ignore files
git-svn-id: svn://10.0.0.236/trunk@48185 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 09:11:27 +00:00
andreas.otte%primus-online.de
6863e17384 NOT ON BUILD: Add loadgroup parameter
git-svn-id: svn://10.0.0.236/trunk@48184 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 09:08:56 +00:00
andreas.otte%primus-online.de
e4ffd8bfd7 fixing a memory leak, thanks David
git-svn-id: svn://10.0.0.236/trunk@48183 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 09:06:23 +00:00
morse%netscape.com
959701d3d3 cleaner fix for bug 14247
git-svn-id: svn://10.0.0.236/trunk@48182 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 08:13:06 +00:00
morse%netscape.com
099f33886f fix bug 14247
git-svn-id: svn://10.0.0.236/trunk@48181 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 08:02:58 +00:00
rpotts%netscape.com
08fd56ce23 removed ifdef preventing the loadgroup from being released.
git-svn-id: svn://10.0.0.236/trunk@48179 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 07:00:39 +00:00
rpotts%netscape.com
2ae578449d Changed GetDocumentLoadGroup(...) to be XPCom complient. THis helps prevent leaks when using nsCOMPtrs.
git-svn-id: svn://10.0.0.236/trunk@48178 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 06:55:13 +00:00
rpotts%netscape.com
22e6b8be31 Changed GetDocumentLoadGroup(...) to be XPCom complient. THis helps prevent leaks when using nsCOMPtrs.
git-svn-id: svn://10.0.0.236/trunk@48177 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 06:34:24 +00:00
rpotts%netscape.com
5fd55c1f5c Changed GetDocumentLoadGroup(...) to be XPCom complient. This helps prevent leaks when using nsCOMPtrs.
git-svn-id: svn://10.0.0.236/trunk@48176 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 06:20:49 +00:00
ssu%netscape.com
dfa051d5ca fixed xpistub.dll to handle the pre-generated component.reg file for the native windows installer. This is not part of linux builds, only mac and windows.
git-svn-id: svn://10.0.0.236/trunk@48175 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:56:44 +00:00
briano%netscape.com
b491fc7097 Whoops, we don't want to change the name just yet.
git-svn-id: svn://10.0.0.236/trunk@48174 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:43:53 +00:00
beard%netscape.com
5d0b4bdd82 nsIScrollPositionListener support.
git-svn-id: svn://10.0.0.236/trunk@48173 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:42:11 +00:00
beard%netscape.com
6d185a4226 Added nsIScrollPositionListener.h
git-svn-id: svn://10.0.0.236/trunk@48172 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:39:03 +00:00
beard%netscape.com
3c26e02bfe First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48171 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:34:49 +00:00
jj%netscape.com
e236a7530d fixed icon family
git-svn-id: svn://10.0.0.236/trunk@48170 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 04:10:25 +00:00
briano%netscape.com
510afab9b0 Not used by Unix.
git-svn-id: svn://10.0.0.236/trunk@48169 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:59:13 +00:00
briano%netscape.com
1f53a4dd3f General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48168 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:45:06 +00:00
davidm%netscape.com
6835792fe4 Use browser window for view source
add extrachrome class to sidebar and task bar


git-svn-id: svn://10.0.0.236/trunk@48167 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:32:53 +00:00
davidm%netscape.com
758ff42c69 Add extra chrome flag for the sidebar and taskbars
git-svn-id: svn://10.0.0.236/trunk@48166 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:24:34 +00:00
davidm%netscape.com
043f45044f Add extra chrome flag for the sidebar and taskbar
git-svn-id: svn://10.0.0.236/trunk@48165 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:23:52 +00:00
davidm%netscape.com
f30989e519 [PP]Regression: File|Exit does not close apprunner.
Make hidden window small on the mac with no chrome


git-svn-id: svn://10.0.0.236/trunk@48164 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:21:30 +00:00
slamm%netscape.com
4c34bc37cf Use simpler styles for panel tree; no twisty, no selection. Will also switch to single click later.
git-svn-id: svn://10.0.0.236/trunk@48163 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:02:10 +00:00
bienvenu%netscape.com
871059eca3 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@48162 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:01:20 +00:00
briano%netscape.com
397768eef0 Automated update
git-svn-id: svn://10.0.0.236/trunk@48161 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 03:01:07 +00:00
slamm%netscape.com
cee8b771f1 Add memmove to autoconf tests.
git-svn-id: svn://10.0.0.236/trunk@48160 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:55:39 +00:00
slamm%netscape.com
33e0e6c490 Add newline to file.
git-svn-id: svn://10.0.0.236/trunk@48159 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:19:47 +00:00
sspitzer%netscape.com
bdf9a0694b more changes to get the wensleydale tree to build
git-svn-id: svn://10.0.0.236/trunk@48158 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:15:41 +00:00
slamm%netscape.com
27a7a15c77 Fix build warnings (rename 'tm' to 'value).
git-svn-id: svn://10.0.0.236/trunk@48157 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:15:00 +00:00
briano%netscape.com
945d83af9f General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48156 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:12:56 +00:00
tao%netscape.com
1cc8dc29a8 Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48155 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:07:24 +00:00
sspitzer%netscape.com
2e2a46d5ef more fixes for the wensleydale bustage.
git-svn-id: svn://10.0.0.236/trunk@48154 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 02:04:33 +00:00
sspitzer%netscape.com
d8a240e012 attempt to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@48153 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:57:55 +00:00
tao%netscape.com
013d0c9658 Hook up da-DK.
git-svn-id: svn://10.0.0.236/trunk@48152 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:56:34 +00:00
rickg%netscape.com
b6145da0d3 checking bufferroutines.h back in; it looked like a red herring
git-svn-id: svn://10.0.0.236/trunk@48151 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:45:19 +00:00
tao%netscape.com
fb1b95a25c Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48150 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:44:31 +00:00
ramiro%netscape.com
6e99478592 Add debugging code for myself.
git-svn-id: svn://10.0.0.236/trunk@48149 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:43:35 +00:00
slamm%netscape.com
72a12cbab2 Re-order initializers to match class declarations (i.e. fix build warning).
git-svn-id: svn://10.0.0.236/trunk@48148 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:38:46 +00:00
tao%netscape.com
58684dcc81 Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48147 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:36:04 +00:00
slamm%netscape.com
480f213b49 Rename arguments that shadows class members.
git-svn-id: svn://10.0.0.236/trunk@48146 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:32:27 +00:00
law%netscape.com
da80e05646 Make Open Web Location dialog modal
git-svn-id: svn://10.0.0.236/trunk@48145 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:27:36 +00:00
tao%netscape.com
eba958cf9b Hook up da-DK.
git-svn-id: svn://10.0.0.236/trunk@48144 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:26:24 +00:00
dveditz%netscape.com
5074bc0ccd make version registry code match main mozilla registry code
git-svn-id: svn://10.0.0.236/trunk@48143 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:23:59 +00:00
sspitzer%netscape.com
66ffa0d062 comment out the radio buttons for webmail support, as we don't
support it yet.


git-svn-id: svn://10.0.0.236/trunk@48142 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:23:01 +00:00
law%netscape.com
1b213ae127 Wire up file/folder picker buttons
git-svn-id: svn://10.0.0.236/trunk@48141 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:17:32 +00:00
slamm%netscape.com
46297b54e1 Fix build whine.
git-svn-id: svn://10.0.0.236/trunk@48140 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:15:57 +00:00
tao%netscape.com
e74964de58 Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48139 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:15:01 +00:00
sfraser%netscape.com
6be8710de5 Fix for bug 14160 -- bad registry name. Don't assume that Mac Handles are nul terminated.
git-svn-id: svn://10.0.0.236/trunk@48138 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:14:50 +00:00
rginda%ndcico.com
21611e908e Fix to make sure there is a user associated with the mode event before accessing the property.
git-svn-id: svn://10.0.0.236/trunk@48137 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:12:18 +00:00
rickg%netscape.com
da5e7e7b93 back out part of this change for more testing; I missed a case which caused a crash
git-svn-id: svn://10.0.0.236/trunk@48136 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:09:48 +00:00
slamm%netscape.com
7c9372a260 Add parallel build (-j4) option
git-svn-id: svn://10.0.0.236/trunk@48135 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:05:35 +00:00
sspitzer%netscape.com
4975165f2c make it so when you hit return, it loads the URL
git-svn-id: svn://10.0.0.236/trunk@48134 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:04:26 +00:00
alecf%netscape.com
ca2cea5ccd fix a bunch of null-derefing problems when accessing http://webmail.netscape.com/ and add some assertions when these things happen
git-svn-id: svn://10.0.0.236/trunk@48133 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:00:43 +00:00
alecf%netscape.com
0ac1ba171d get rid of a bunch of stupid printfs, use autostrings
git-svn-id: svn://10.0.0.236/trunk@48132 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:57:33 +00:00
tao%netscape.com
1f0fe61a5e Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48131 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:50:37 +00:00
alecf%netscape.com
ee585f6ea5 fix dereferencing error on slashdot.org
git-svn-id: svn://10.0.0.236/trunk@48130 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:48:51 +00:00
sfraser%netscape.com
ceb23b8bd4 Fix bustage; remove test for stack-based nsFileSpec.
git-svn-id: svn://10.0.0.236/trunk@48129 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:48:13 +00:00
robinf%netscape.com
2cd6b77266 updates to reflect final UI decisions
git-svn-id: svn://10.0.0.236/trunk@48128 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:44:37 +00:00
robinf%netscape.com
3b72980b1d checking in updates to UI and text that fix my M11 and M12 bugs.
git-svn-id: svn://10.0.0.236/trunk@48127 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:41:44 +00:00
tao%netscape.com
830e7ac937 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>

Hook up da-DK


git-svn-id: svn://10.0.0.236/trunk@48126 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:40:05 +00:00
sspitzer%netscape.com
8bc9ad713a hook up the Subscribe menu item to the simple subscribe dialog. remove the old subscribe.* files. make the New Folder and Subscribe share the same code. make it so both new folder and subscribe will pre select the folder / server you selected when you clicked new folder or subscirbe. use try and catch to prevent exceptions.
git-svn-id: svn://10.0.0.236/trunk@48125 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:40:03 +00:00
alecf%netscape.com
8aeb180413 add html input so that we can see stuff
git-svn-id: svn://10.0.0.236/trunk@48124 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:38:46 +00:00
slamm%netscape.com
ae27e1b85c Fix script printing.
git-svn-id: svn://10.0.0.236/trunk@48123 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:37:29 +00:00
valeski%netscape.com
43516fc7cc added more logging. fix attempt at 14209.
git-svn-id: svn://10.0.0.236/trunk@48122 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:37:21 +00:00
rginda%ndcico.com
6f3d38c00a Forgot break;s in the select block. Please shoot me.
git-svn-id: svn://10.0.0.236/trunk@48121 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:32:05 +00:00
davidm%netscape.com
d00373a8e1 update open location to work when no browser app core is provided. Will always open in a new window
git-svn-id: svn://10.0.0.236/trunk@48120 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:31:15 +00:00
davidm%netscape.com
791eee6f87 update taskbar xul to open links in a new window
git-svn-id: svn://10.0.0.236/trunk@48119 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:30:20 +00:00
davidm%netscape.com
d5ff5ffdec Change the call to shutdown to a call to quit.
git-svn-id: svn://10.0.0.236/trunk@48118 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:29:01 +00:00
tao%netscape.com
ac9868c0ae Hook up da-DK.
git-svn-id: svn://10.0.0.236/trunk@48117 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:27:49 +00:00
tao%netscape.com
329d5fd9ab First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48116 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:27:03 +00:00
rginda%ndcico.com
c8dc0202c4 Fixed list onClick handlers in test1 and test2 to work with the updated
e.target.  (e.target used to be the list, now it's the option)


git-svn-id: svn://10.0.0.236/trunk@48115 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:25:47 +00:00
tao%netscape.com
55143d9837 Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48114 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:23:56 +00:00
tao%netscape.com
3beff9a255 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48113 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:21:44 +00:00
kipp%netscape.com
b1972b0b42 Handle right aligned skipped floaters a little better
git-svn-id: svn://10.0.0.236/trunk@48112 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:20:48 +00:00
alecf%netscape.com
867075a104 add DOM viewer to the debug menu
git-svn-id: svn://10.0.0.236/trunk@48111 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:20:15 +00:00
tao%netscape.com
fd2c175895 Hook up da-DK
git-svn-id: svn://10.0.0.236/trunk@48110 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:18:14 +00:00
rchen%netscape.com
a0264998e1 Add Localization notes
git-svn-id: svn://10.0.0.236/trunk@48109 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:17:59 +00:00
alecf%netscape.com
e36200cd29 add DOM viewer to the rdf test suite
git-svn-id: svn://10.0.0.236/trunk@48108 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:16:53 +00:00
ftang%netscape.com
d11d5af4fe fix FreeBSD problem
git-svn-id: svn://10.0.0.236/trunk@48107 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:15:22 +00:00
tao%netscape.com
f4d710893a First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48106 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:13:42 +00:00
slamm%netscape.com
53b65fabbe Add braces to avoid "ambiguous else" warning.
git-svn-id: svn://10.0.0.236/trunk@48105 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:13:02 +00:00
slamm%netscape.com
c3dbdf1724 Fix build warning.
git-svn-id: svn://10.0.0.236/trunk@48104 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:10:11 +00:00
slamm%netscape.com
51041aed57 Fix build warnings, but get it right.
git-svn-id: svn://10.0.0.236/trunk@48103 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:09:24 +00:00
tao%netscape.com
4e5e6e063e Hook up da-DK.
git-svn-id: svn://10.0.0.236/trunk@48102 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:08:28 +00:00
colin%theblakes.com
624994bf1c Fix two compiler warnings and one coding bug
git-svn-id: svn://10.0.0.236/trunk@48101 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:07:20 +00:00
tao%netscape.com
76e75b8491 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48100 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:07:00 +00:00
ftang%netscape.com
a2806c409a check in HZ to Unicode contributed by Xu, Yueheng <yueheng.xu@intel.com>
git-svn-id: svn://10.0.0.236/trunk@48099 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:05:27 +00:00
colin%theblakes.com
78f161595d Order of evaluation is undefined, hence two ++ in one statement is bad
git-svn-id: svn://10.0.0.236/trunk@48098 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:03:28 +00:00
alecf%netscape.com
f8cd1b7c67 implement mapping from server.type to IID
git-svn-id: svn://10.0.0.236/trunk@48097 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:59:51 +00:00
fergus%netscape.com
89c3a74af3 Adding localization comments
git-svn-id: svn://10.0.0.236/trunk@48096 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:59:23 +00:00
slamm%netscape.com
499ecfdc90 Fix build warning.
git-svn-id: svn://10.0.0.236/trunk@48095 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:57:47 +00:00
alecf%netscape.com
bb264ee20b it's ok to return null from a pref read
git-svn-id: svn://10.0.0.236/trunk@48094 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:56:39 +00:00
law%netscape.com
39383d5dd3 More context menu stuff
git-svn-id: svn://10.0.0.236/trunk@48093 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:53:20 +00:00
rickg%netscape.com
944a022ec9 performance improvements and larger default buffer size
git-svn-id: svn://10.0.0.236/trunk@48092 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:46:55 +00:00
cmanske%netscape.com
fc4c40a00c Fixed printing from the editor toolbar, bug 8806.
git-svn-id: svn://10.0.0.236/trunk@48091 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:46:36 +00:00
brendan%mozilla.org
a03109c89c Fix va_arg abusages (13676, thanks to ajoshi@glue.umd.edu and Franz.Sirl@munich.netsurf.de for the patch).
git-svn-id: svn://10.0.0.236/trunk@48090 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:46:20 +00:00
pnunn%netscape.com
1d87ffcc21 fix for bugs #7622, #6525. pnunn.
git-svn-id: svn://10.0.0.236/trunk@48089 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:43:48 +00:00
dveditz%netscape.com
941575fee9 fix Mac startup bustage
git-svn-id: svn://10.0.0.236/trunk@48088 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:42:47 +00:00
sfraser%netscape.com
e94f7325a1 Fix a broken CLSID macro
git-svn-id: svn://10.0.0.236/trunk@48087 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:42:37 +00:00
law%netscape.com
98c723bf3f Adding context menu stuff
git-svn-id: svn://10.0.0.236/trunk@48086 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:41:56 +00:00
alecf%netscape.com
95e0dc2cff add SMTP and advanced pages to account manager
git-svn-id: svn://10.0.0.236/trunk@48085 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:41:29 +00:00
slamm%netscape.com
b1891ae1ff Better remembering of open/close state.
git-svn-id: svn://10.0.0.236/trunk@48084 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:38:26 +00:00
slamm%netscape.com
594708384d Remove extra box. Tweak some formatting. First pass at personal toolbar popups.
git-svn-id: svn://10.0.0.236/trunk@48083 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:37:41 +00:00
tao%netscape.com
3cf82514a5 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48082 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:35:55 +00:00
mjudge%netscape.com
cbf04231bb adding change for selection. modifing inside out behavior for table selection. drawing tables being seleted different.
git-svn-id: svn://10.0.0.236/trunk@48081 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:33:39 +00:00
sfraser%netscape.com
60ac354139 Moving default pref files to Defaults/Pref, for neeti.
git-svn-id: svn://10.0.0.236/trunk@48080 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:32:18 +00:00
fergus%netscape.com
f08f2777dc Adding localization notes.
git-svn-id: svn://10.0.0.236/trunk@48079 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:31:01 +00:00
gayatrib%netscape.com
70c92c6241 This file is not required for profile ui
git-svn-id: svn://10.0.0.236/trunk@48078 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:30:23 +00:00
sfraser%netscape.com
174f34da9f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48077 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:29:19 +00:00
neeti%netscape.com
979fb58aef *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@48076 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:28:56 +00:00
sfraser%netscape.com
3c3bb91169 Remove .js files that are now exported by other MANIFEST files.
git-svn-id: svn://10.0.0.236/trunk@48075 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:28:42 +00:00
neeti%netscape.com
4ab75d8495 moved *.js files from components to bin/defaults/pref
git-svn-id: svn://10.0.0.236/trunk@48074 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:27:15 +00:00
neeti%netscape.com
9a0fa2615b moved bookmarks.html to defaults/profile
git-svn-id: svn://10.0.0.236/trunk@48073 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:26:54 +00:00
neeti%netscape.com
d9acc97b08 Added GetDefaultFolder api
git-svn-id: svn://10.0.0.236/trunk@48072 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:25:05 +00:00
hangas%netscape.com
8c7a27fb5b Modifying commandUpdater JS code to be more efficient.
git-svn-id: svn://10.0.0.236/trunk@48071 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:24:04 +00:00
jefft%netscape.com
3f24b44265 register message/rfc822 to text/html stream converter
git-svn-id: svn://10.0.0.236/trunk@48070 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:23:03 +00:00
sfraser%netscape.com
9da2a6bae6 Changes for profile DTD files, for gayatrib.
git-svn-id: svn://10.0.0.236/trunk@48069 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:22:59 +00:00
jefft%netscape.com
d95efcd464 use message uri instead of protocol url spec for openning attachment
git-svn-id: svn://10.0.0.236/trunk@48068 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:21:58 +00:00
brendan%mozilla.org
e3cfb6c40d *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@48067 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:21:29 +00:00
sfraser%netscape.com
110b76f1d0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48066 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:20:53 +00:00
jefft%netscape.com
1ee75ca230 remove debug only save attachment menubar
git-svn-id: svn://10.0.0.236/trunk@48065 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:20:51 +00:00
jefft%netscape.com
d7c566ad50 removed SaveAttachmentURL
git-svn-id: svn://10.0.0.236/trunk@48064 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:19:34 +00:00
gayatrib%netscape.com
fb07069ee7 adding locale and en-US dir to profile resources dir
git-svn-id: svn://10.0.0.236/trunk@48063 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:19:07 +00:00
jefft%netscape.com
b0425987b0 define text/html converter progid
git-svn-id: svn://10.0.0.236/trunk@48062 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:18:47 +00:00
jefft%netscape.com
790de605ed moved CreateStartupUrl() to nsMsgUtils
git-svn-id: svn://10.0.0.236/trunk@48061 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:17:53 +00:00
gayatrib%netscape.com
bdf2b00c7c adding locale dir to makefile
git-svn-id: svn://10.0.0.236/trunk@48060 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:17:28 +00:00
jefft%netscape.com
c910c40bc4 add CreateStartupUrl() utility routine
git-svn-id: svn://10.0.0.236/trunk@48059 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:17:03 +00:00
kipp%netscape.com
4fbbb9f867 Fixed various bugs including incremental list reflow (9742) and some table bugs with right floaters
git-svn-id: svn://10.0.0.236/trunk@48058 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:16:43 +00:00
brendan%mozilla.org
e35b95c2e6 - Add an OnMonitorRecycle callback for use by xpcom/threads/nsAutoLock.cpp.
- Clean up funky white space and tabbing, preparatory to more work including
  LRU fix.


git-svn-id: svn://10.0.0.236/trunk@48057 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:16:12 +00:00
jefft%netscape.com
271273fe84 implemented Save As file type equals html & plain text; frame work for saving attachment
git-svn-id: svn://10.0.0.236/trunk@48056 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:16:07 +00:00
gayatrib%netscape.com
f114a4f51f moving entities into dtds
git-svn-id: svn://10.0.0.236/trunk@48055 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:16:06 +00:00
kipp%netscape.com
52462302c0 Added more (disabled) debug noise
git-svn-id: svn://10.0.0.236/trunk@48054 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:53 +00:00
kipp%netscape.com
287e799395 Fixed a glitch in the debug noise
git-svn-id: svn://10.0.0.236/trunk@48053 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:31 +00:00
despotdaemon%netscape.com
05e70dcfdf Pseudo-automatic update of changes made by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@48052 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:17 +00:00
jfrancis%netscape.com
5df01a19dc fix for 13677
git-svn-id: svn://10.0.0.236/trunk@48051 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:12 +00:00
jefft%netscape.com
9e20783569 added OpenAttachment()
git-svn-id: svn://10.0.0.236/trunk@48050 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:15:02 +00:00
kipp%netscape.com
b19648bac9 Fixed a glitch in word-breaking look ahead that was using the wrong content to compute the next fragments width (whoops!)
git-svn-id: svn://10.0.0.236/trunk@48049 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:14:47 +00:00
cmanske%netscape.com
45924ea557 Added items for list menu and dialog so DTD work can continue. Change openDialog calls to use '_blank' as window name.
git-svn-id: svn://10.0.0.236/trunk@48048 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:13:59 +00:00
putterman%netscape.com
8f317b6531 more performance work for loading folders without .msf files or that have to have
headers downloaded.


git-svn-id: svn://10.0.0.236/trunk@48047 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:12:44 +00:00
jfrancis%netscape.com
f71c9de0f6 tidying up
git-svn-id: svn://10.0.0.236/trunk@48046 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:12:17 +00:00
sgehani%netscape.com
4c38b5e36c Mac specific: No longer autoreg'ing. Now supplying reg file spec and xpistub dir when initializing XPCOM utilizing dp's new NS_InitXPCOM interface. Thanks dp.
git-svn-id: svn://10.0.0.236/trunk@48045 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:11:31 +00:00
pinkerton%netscape.com
c9d39f6fa7 respond to the paint flashing debug pref in debug builds by flashing the area to be repainted.
git-svn-id: svn://10.0.0.236/trunk@48044 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:09:54 +00:00
alecf%netscape.com
a4ce9041f6 oops, raptorhtml isn't loaded with apprunner, so we do need to load this after all
git-svn-id: svn://10.0.0.236/trunk@48043 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:53:48 +00:00
frankm%eng.sun.com
8b6ad17152 - In nsInterfaceInfoManager.cpp, get the allocator with nsAllocator::GetGlobalAllocator, not from nsServiceManager. (Allocator now cached with nsCOMPtr.)
- Insure that debugging code in nsInterfaceInfo and TestInterfaceInfo fails gracefully instead of segfaulting.


git-svn-id: svn://10.0.0.236/trunk@48042 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:46:44 +00:00
briano%netscape.com
f3e1c4442b General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48041 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:12:46 +00:00
gayatrib%netscape.com
d95e6e3987 makefile for dtds
git-svn-id: svn://10.0.0.236/trunk@48040 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:05:54 +00:00
gayatrib%netscape.com
b7ec5e57d8 dtds for profile manager ui
git-svn-id: svn://10.0.0.236/trunk@48039 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:05:04 +00:00
bienvenu%netscape.com
a2cabc4695 fix inadvertent checkin of nsBrowserWindow.cpp
git-svn-id: svn://10.0.0.236/trunk@48038 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:02:52 +00:00
bienvenu%netscape.com
b6d16c7d12 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@48037 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 22:00:15 +00:00
shaver%netscape.com
1bb0ffc619 fix for Mac bustage
git-svn-id: svn://10.0.0.236/trunk@48036 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:29:50 +00:00
alecf%netscape.com
549038cef3 fix stupid linkage
git-svn-id: svn://10.0.0.236/trunk@48035 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:17:47 +00:00
alecf%netscape.com
edb986bc97 fix bogus linking
git-svn-id: svn://10.0.0.236/trunk@48034 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:13:17 +00:00
tao%netscape.com
ca8ca38783 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48033 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:09:52 +00:00
briano%netscape.com
73df30892a Cleaned it up again.
git-svn-id: svn://10.0.0.236/trunk@48032 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:09:17 +00:00
chjung%netscape.com
348a91960d [chjung 09/17/99] add Localization notes
git-svn-id: svn://10.0.0.236/trunk@48031 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:07:43 +00:00
briano%netscape.com
95c0f2ebdd General cleanup.
git-svn-id: svn://10.0.0.236/trunk@48030 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:06:32 +00:00
warren%netscape.com
27b1b788a1 Squelched leak.
git-svn-id: svn://10.0.0.236/trunk@48029 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:02:34 +00:00
warren%netscape.com
6e29fd7858 Added a -x option to viewer to allow us to test for shutdown leaks. Eliminated leaks.
git-svn-id: svn://10.0.0.236/trunk@48028 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 21:00:54 +00:00
troy%netscape.com
41ec28bb47 Fix for bug #14157. Changed ConstructAlternateImageFrame() to set the document
pointer and the parent content pointer for the text frame


git-svn-id: svn://10.0.0.236/trunk@48027 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:57:06 +00:00
nisheeth%netscape.com
e279261538 Fixing Unix build bustage...
git-svn-id: svn://10.0.0.236/trunk@48026 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:56:28 +00:00
tao%netscape.com
149a0648d5 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48025 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:55:59 +00:00
ducarroz%netscape.com
1c5f0ee7a0 NS_INIT_REFCNT must be called before any return else we crash. Fix for bug 14163
git-svn-id: svn://10.0.0.236/trunk@48024 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:47:26 +00:00
tao%netscape.com
9f8c813438 First checkin of da-DK resource files contributed by
Henrik Lynggaard<Lynggaard@netscape.net>


git-svn-id: svn://10.0.0.236/trunk@48023 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:44:01 +00:00
rchen%netscape.com
52e619e1d0 Add Localization Notes
git-svn-id: svn://10.0.0.236/trunk@48022 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:41:30 +00:00
alecf%netscape.com
c4d93cd358 link mime emitter against NSPR
git-svn-id: svn://10.0.0.236/trunk@48021 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:35:09 +00:00
rjc%netscape.com
44ed9b894f Add a couple of alert()s for user messages on error conditions.
git-svn-id: svn://10.0.0.236/trunk@48020 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:34:20 +00:00
alecf%netscape.com
d8460ee524 don't need to link mime against js anymore
git-svn-id: svn://10.0.0.236/trunk@48019 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:33:14 +00:00
nisheeth%netscape.com
29dac5f694 Make nsPresContext implement the nsITimeRecorder interface. This interface is used by the pres shell to tell the pres context to stop the stopwatch that measures time spent in style resolution.
git-svn-id: svn://10.0.0.236/trunk@48018 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:32:45 +00:00
alecf%netscape.com
cb555c673c link addressbook against nspr
git-svn-id: svn://10.0.0.236/trunk@48017 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:32:43 +00:00
alecf%netscape.com
11edb4d604 don't need to link identity against mozjs anymore
git-svn-id: svn://10.0.0.236/trunk@48016 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:32:08 +00:00
alecf%netscape.com
37f009552c don't need to link compose against raptor anymore
git-svn-id: svn://10.0.0.236/trunk@48015 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:31:32 +00:00
nisheeth%netscape.com
d4fbd6ac18 Adding a new interface, nsITimeRecorder, used for adding timing hooks to raptor. The interface exposes methods to start/stop/reset timers and print elapsed time.
git-svn-id: svn://10.0.0.236/trunk@48014 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:30:23 +00:00
varada%netscape.com
9a4955ec06 Checking in a fix for the browse button not retaining the previous value when the open file dialog is cancelled.
git-svn-id: svn://10.0.0.236/trunk@48013 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:29:40 +00:00
slamm%netscape.com
f33f0c1edb Fix a build warning (do not compile a file if it isn't needed).
git-svn-id: svn://10.0.0.236/trunk@48012 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:28:28 +00:00
ducarroz%netscape.com
d884c06c17 cleanup
git-svn-id: svn://10.0.0.236/trunk@48011 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:28:22 +00:00
ducarroz%netscape.com
28194690f7 elimnate redundancy, bug 10539
git-svn-id: svn://10.0.0.236/trunk@48010 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:27:46 +00:00
buster%netscape.com
5168cbc555 fixed some warnings
git-svn-id: svn://10.0.0.236/trunk@48009 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:22:13 +00:00
buster%netscape.com
1a9af19728 fixed a compiler warning
git-svn-id: svn://10.0.0.236/trunk@48008 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:19:50 +00:00
vidur%netscape.com
2ddea007d4 Fixed leak of service manager
git-svn-id: svn://10.0.0.236/trunk@48007 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:19:00 +00:00
buster%netscape.com
2569ace39b fixed an assesrtion in ~nsHTMLEditor caused by calling GetDocument()
when Init() had never been called.  This is a legal sequence
(nsHTMLEditor is instantiated and destroyed without Init() ever being called),
so now it's allowed.


git-svn-id: svn://10.0.0.236/trunk@48006 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:18:50 +00:00
buster%netscape.com
f5e00214bc fixed a warning
git-svn-id: svn://10.0.0.236/trunk@48004 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:17:22 +00:00
kipp%netscape.com
867c7b532c Fixed bug 8652
git-svn-id: svn://10.0.0.236/trunk@48003 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:16:53 +00:00
kipp%netscape.com
8ebf1dd75a Squish a warning or two
git-svn-id: svn://10.0.0.236/trunk@48002 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:16:37 +00:00
waterson%netscape.com
132911b7c3 Bug 12649. Add walk-down on personal toolbar folders pulled in from bookmarks datasource.
git-svn-id: svn://10.0.0.236/trunk@48001 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:16:36 +00:00
waterson%netscape.com
177de3d541 Bug 12649. Add support for 'parent' on <rule> tags.
git-svn-id: svn://10.0.0.236/trunk@48000 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:15:29 +00:00
kipp%netscape.com
229a0d5515 Squish a warning
git-svn-id: svn://10.0.0.236/trunk@47999 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:15:09 +00:00
mscott%netscape.com
2096f223d1 Bug #14021 --> convert nsIURI into a nsISupports before passing in to avoid an nsCOMPtr assert later on.
git-svn-id: svn://10.0.0.236/trunk@47998 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:59 +00:00
bienvenu%netscape.com
ceb421f006 fix notification text to include folder
git-svn-id: svn://10.0.0.236/trunk@47997 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:54 +00:00
briano%netscape.com
6f1f615870 Replaced the C++ comments with C comments, since this is a C file after all....
git-svn-id: svn://10.0.0.236/trunk@47996 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:53 +00:00
norris%netscape.com
761b5f5706 Add ability to disable JS. Fix 13978 shopping at webvan.com crashes
git-svn-id: svn://10.0.0.236/trunk@47995 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:52 +00:00
bienvenu%netscape.com
0d8c973615 fix imap msg flagging
git-svn-id: svn://10.0.0.236/trunk@47994 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:42 +00:00
valeski%netscape.com
9fba53c41a fix for 14143. also yanked local isspace, isdigit, isalpha routines from FTP dir listing converter, and corrected a buffer allocation problem that was causing extra data 'bad data' to be buffered.
git-svn-id: svn://10.0.0.236/trunk@47993 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:33 +00:00
mscott%netscape.com
c8df58726e remove unwanted class id.
git-svn-id: svn://10.0.0.236/trunk@47992 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:23 +00:00
bienvenu%netscape.com
61a12fb879 fix news to use folder cache
git-svn-id: svn://10.0.0.236/trunk@47991 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:13:22 +00:00
mscott%netscape.com
e434d1af66 Bug #14114 --> when downloading new messages, if we can't create
a mailbox parser, don't abort the download, just don't use the parser
this happens when you try to get new messages for an inbox we don't
have a mail summary file for. We can still add the new messages
to the berkley mail folder...


git-svn-id: svn://10.0.0.236/trunk@47990 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:12:58 +00:00
shaver%netscape.com
0ac8ea16f5 overhaul menus to use spiffy new titledbutton features
git-svn-id: svn://10.0.0.236/trunk@47989 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:12:02 +00:00
akkana%netscape.com
2612638b20 Handle everything in KeyPress; make KeyDown a nop. This also fixes bug 13962
git-svn-id: svn://10.0.0.236/trunk@47988 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:11:13 +00:00
akkana%netscape.com
cd601ac51d Call the test program outtest instead of Convert; fix some of the debug prints
git-svn-id: svn://10.0.0.236/trunk@47987 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 20:09:42 +00:00
sfraser%netscape.com
6cd9719155 Don't crash when closing the not-so-hidden window.
git-svn-id: svn://10.0.0.236/trunk@47986 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 19:56:53 +00:00
waldemar%netscape.com
6974f5833b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47985 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 19:45:20 +00:00
waldemar%netscape.com
8688b2f0de NOT IN BUILD. Made JSRef work as a Macintosh MPW tool
git-svn-id: svn://10.0.0.236/trunk@47984 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 19:45:07 +00:00
idk%eng.sun.com
c3a4459049 Moved to OJI.
Added  AWT support.
Added some classes


git-svn-id: svn://10.0.0.236/trunk@47982 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 18:41:34 +00:00
valeski%netscape.com
0da3025819 I'm a moron. backing out previous change
git-svn-id: svn://10.0.0.236/trunk@47981 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 18:40:12 +00:00
valeski%netscape.com
4ae25d7e0a 14143
git-svn-id: svn://10.0.0.236/trunk@47980 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 18:05:11 +00:00
valeski%netscape.com
35a262959c the Directory parser want uppercase; PS I know I'm checking in while the tree's closed, flame me
git-svn-id: svn://10.0.0.236/trunk@47979 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 18:04:01 +00:00
amasri%netscape.com
f30a85f376 revised browser tests to work with seamonkey M11:
1) closed open sidebar.
2) worked around broken menus by using all-keyboard method for loading URIs.
3) added bDebug and bGrippyOpen variables. bDebug should always be false for build smoketests


git-svn-id: svn://10.0.0.236/trunk@47978 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 17:57:18 +00:00
terry%mozilla.org
8ad163f7eb If a mangled "order" is specified, it was crashing.
git-svn-id: svn://10.0.0.236/trunk@47977 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 17:52:49 +00:00
dveditz%netscape.com
5905422ab6 reverting registry changes for Unix, a=leaf, r=ramiro
git-svn-id: svn://10.0.0.236/trunk@47976 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 17:44:41 +00:00
norris%netscape.com
9b053816bd Fix comments.
git-svn-id: svn://10.0.0.236/trunk@47975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 16:38:51 +00:00
norris%netscape.com
51f99a463e fix comment
git-svn-id: svn://10.0.0.236/trunk@47974 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 16:37:35 +00:00
valeski%netscape.com
9dab851f4e NOT IN BUILD - adding boilerplate for jar protocol handler
git-svn-id: svn://10.0.0.236/trunk@47973 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 16:12:41 +00:00
terry%mozilla.org
325e65f631 Patch by Ian Wells <I.Wells@tarragon-et.co.uk> -- disable JavaScript
magic on IE (where it wasn't working), other minor cleanups.


git-svn-id: svn://10.0.0.236/trunk@47972 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 15:47:03 +00:00
andreas.otte%primus-online.de
08bf9f563c fix for bug 14132
git-svn-id: svn://10.0.0.236/trunk@47971 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 14:52:39 +00:00
dcone%netscape.com
9ac89633e7 Added 16 bit support for the DIB conversion
git-svn-id: svn://10.0.0.236/trunk@47970 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 14:14:17 +00:00
colin%theblakes.com
b3b4ad49e2 Only pass special LD flags to vmsld
git-svn-id: svn://10.0.0.236/trunk@47969 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 12:36:25 +00:00
colin%theblakes.com
6c71031eb2 Remove OpenVMS specific code, its no longer needed
git-svn-id: svn://10.0.0.236/trunk@47968 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:53:11 +00:00
sspitzer%netscape.com
4509536a7e close the stream.
git-svn-id: svn://10.0.0.236/trunk@47967 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:47:46 +00:00
sspitzer%netscape.com
5330685c18 more changes for simple subscribe. now, it writes out the new newsgroup to the newsrc file, so it will be there when you quit and come back.
git-svn-id: svn://10.0.0.236/trunk@47966 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:43:24 +00:00
rjc%netscape.com
65ae46ad4a Use ToNewUTF8String(). [Missed a spot]
git-svn-id: svn://10.0.0.236/trunk@47965 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:29:18 +00:00
sspitzer%netscape.com
0614332aa0 don't create the empty file. (cut and paste error.) pass PR_TRUE to Open() so it creates the summary file. all that's left is writing out <newsgroupname>: to the newsrc file, and simple subscribe is done!
git-svn-id: svn://10.0.0.236/trunk@47964 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:59:54 +00:00
rjc%netscape.com
5ae29aacf6 Add support for resolving anonymous resources to their "#URL" property. ("Last Search Results" are anonymous, for example.)
git-svn-id: svn://10.0.0.236/trunk@47963 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:38:40 +00:00
sspitzer%netscape.com
67bd2bb1f8 don't make it unique.
later, we may need to has the newsgroup name so that it's safe for
the native file system.


git-svn-id: svn://10.0.0.236/trunk@47962 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:35:26 +00:00
sspitzer%netscape.com
12ef525731 remove unused / dead code that I copied and pasted a while ago.
start the work to make "New Folder" behave like simple subscribe for news.


git-svn-id: svn://10.0.0.236/trunk@47961 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:17:26 +00:00
sspitzer%netscape.com
a301213352 this is a nsresult, not NS_IMETHODIMP. look at the header file.
it probably doesn't matter.


git-svn-id: svn://10.0.0.236/trunk@47960 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:16:41 +00:00
sspitzer%netscape.com
069a4b7388 don't check the return value of Exists.
it's failing for some reason (don't know yet) and this is causing
migration to fail.  I'll look into this tomorrow.


git-svn-id: svn://10.0.0.236/trunk@47959 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 10:15:45 +00:00
sspitzer%netscape.com
c08609fdf9 fix crash when launching mail
git-svn-id: svn://10.0.0.236/trunk@47958 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 09:46:58 +00:00
rpotts%netscape.com
f7e392ec19 bug #13477. nsHeaderEntry structs were leaking...
git-svn-id: svn://10.0.0.236/trunk@47957 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 09:21:50 +00:00
alecf%netscape.com
ec516ceaeb make the UI look better by making this textbox bigger
git-svn-id: svn://10.0.0.236/trunk@47956 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 09:03:12 +00:00
rpotts%netscape.com
19596fb472 Fixed the throbber to work with framesets...
git-svn-id: svn://10.0.0.236/trunk@47955 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 08:08:30 +00:00
alecf%netscape.com
8c5a67adc8 save prefs file when closing account manager and account wizard, in case we crash later.
git-svn-id: svn://10.0.0.236/trunk@47954 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 08:04:54 +00:00
rpotts%netscape.com
f70564c16b DocLoader cleanup... Also trying to get the notifications correct :-)
git-svn-id: svn://10.0.0.236/trunk@47953 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:56:03 +00:00
rpotts%netscape.com
2f9360a53b Removed NECKO ifdefs...
git-svn-id: svn://10.0.0.236/trunk@47952 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:54:11 +00:00
mcafee%netscape.com
bc4be4be7b Adding color picker.
git-svn-id: svn://10.0.0.236/trunk@47951 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:49:56 +00:00
tbogard%aol.net
2483b9b434 Adding sample to show how tool icons don't properly update when told to via css.
git-svn-id: svn://10.0.0.236/trunk@47950 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:43:36 +00:00
alecf%netscape.com
6dc9a95edb remove assertions (and put comments for future NS_ASSERTIONs for when I finally change this to a C++ file)
fixes #13734


git-svn-id: svn://10.0.0.236/trunk@47949 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:35:34 +00:00
mcafee%netscape.com
b613b9ee3a Removing debug info
git-svn-id: svn://10.0.0.236/trunk@47948 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:34:37 +00:00
pollmann%netscape.com
affe441405 Bug 9136: Combobox selectedIndex now defaults to 0 instead of -1, even before widget created.
git-svn-id: svn://10.0.0.236/trunk@47947 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:24:02 +00:00
pollmann%netscape.com
d75e0e77d0 Bug 9136: Combobox selectedIndex now defaults to 0 instead of -1
git-svn-id: svn://10.0.0.236/trunk@47946 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:22:23 +00:00
nisheeth%netscape.com
9c060b10a6 Added measurement of reflow time and frame creation time during the loading of a page.
git-svn-id: svn://10.0.0.236/trunk@47945 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:16:42 +00:00
warren%netscape.com
c1c4475a5c Added missing rv initialization which was causing the component manager to fail under purify. Submitted bug #14130 to dp about the component manager problem.
git-svn-id: svn://10.0.0.236/trunk@47944 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:09:42 +00:00
waterson%netscape.com
2c189eebdf Make nsFileSpecMac tough enough to deal with a Unix-style path with two or more forward slashes that are right next to each other; e.g., foo//bar/baz.html. Previously, it would convert this to foo::bar:baz.html, which is the Unix equivalent of foo/../bar/baz.html. Oops. Anyway, this keeps Mac from crashing on startup.
git-svn-id: svn://10.0.0.236/trunk@47943 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:03:09 +00:00
dveditz%netscape.com
e0efc09bf1 match buffered i/o registry change in XP_MAC section
git-svn-id: svn://10.0.0.236/trunk@47942 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 07:00:55 +00:00
sfraser%netscape.com
8fd641afd7 Added file for dveditz, set up prefix files.
git-svn-id: svn://10.0.0.236/trunk@47941 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:56:45 +00:00
vidur%netscape.com
ce8c1d0658 Implemented nsIDOMHTMLDocument::GetReferrer. The referrer is obtained from the request header of the document channel
git-svn-id: svn://10.0.0.236/trunk@47940 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:56:39 +00:00
sfraser%netscape.com
8564f2426f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47939 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:56:23 +00:00
alecf%netscape.com
df2523fb90 add new SMTP pane to account manager
git-svn-id: svn://10.0.0.236/trunk@47938 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:56:22 +00:00
vidur%netscape.com
4c4a30ec42 Further corrections in referrer propagation.
git-svn-id: svn://10.0.0.236/trunk@47937 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:54:58 +00:00
alecf%netscape.com
52d40f2fe6 make the signature an nsIFileSpec for right now
git-svn-id: svn://10.0.0.236/trunk@47936 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:43:27 +00:00
sspitzer%netscape.com
e6670b60d3 fix for #14125
when creating a new news server with the account wizard, the newsrc file that it creates
should be a file, and not a directory.


git-svn-id: svn://10.0.0.236/trunk@47935 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:38:51 +00:00
dveditz%netscape.com
808acfa5e3 a little more debug output to show where startup time is going
git-svn-id: svn://10.0.0.236/trunk@47934 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:38:05 +00:00
dveditz%netscape.com
0342f82c59 more trying to get nr_bufio to work on a mac
git-svn-id: svn://10.0.0.236/trunk@47933 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:35:32 +00:00
mcafee%netscape.com
877ee6b4d0 Adding colorpicker
git-svn-id: svn://10.0.0.236/trunk@47932 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:30:56 +00:00
buster%netscape.com
ebbfa93fe1 fixed bug 14039
bad copy-and-paste of some event propogation code.  the gfx text control
event listeners exist just to propogate the event from the embedded shell
to the content, and should not pass the event back to the frame itself, except
for keyPress (for default action).


git-svn-id: svn://10.0.0.236/trunk@47931 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:15:56 +00:00
dveditz%netscape.com
97a579dd51 fixing mac path sadness with new nr_bufio stuff
git-svn-id: svn://10.0.0.236/trunk@47930 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:13:38 +00:00
norris%netscape.com
a2d2f20af7 Clearer example.
git-svn-id: svn://10.0.0.236/trunk@47929 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:12:45 +00:00
norris%netscape.com
e31a379e1e Tutorial examples.
git-svn-id: svn://10.0.0.236/trunk@47928 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:54:27 +00:00
dp%netscape.com
6cbbd59105 Caching of what registry was opened to improve performance of multiple
opens on the same registry file.


git-svn-id: svn://10.0.0.236/trunk@47927 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:46:25 +00:00
rjc%netscape.com
55b321b8b3 Change window title to "Search" per marketing.
git-svn-id: svn://10.0.0.236/trunk@47926 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:42:54 +00:00
mcafee%netscape.com
07a38bea58 Support both spellings of gray/grey as palette choice.
git-svn-id: svn://10.0.0.236/trunk@47925 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:39:30 +00:00
mcafee%netscape.com
0609b4c413 License, plus dropdown examples.
git-svn-id: svn://10.0.0.236/trunk@47924 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:23:48 +00:00
alecf%netscape.com
09083e9ef5 fix scrollbar crash
git-svn-id: svn://10.0.0.236/trunk@47923 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:15:00 +00:00
troy%netscape.com
e51cacea1d Changed GetWidth() and DrawString() to reduce the number of SelectObject()
calls


git-svn-id: svn://10.0.0.236/trunk@47922 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:06:40 +00:00
mscott%netscape.com
15e3b9c228 export new compose messages properties file
git-svn-id: svn://10.0.0.236/trunk@47921 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:04:10 +00:00
mscott%netscape.com
66938c85c1 Export new properties file.
git-svn-id: svn://10.0.0.236/trunk@47920 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 05:00:36 +00:00
rjc%netscape.com
fea636f75f Fix signed/unsigned warning.
git-svn-id: svn://10.0.0.236/trunk@47919 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:59:55 +00:00
mscott%netscape.com
c9f9613176 export the new compose messages properties page.
git-svn-id: svn://10.0.0.236/trunk@47918 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:59:12 +00:00
mscott%netscape.com
d27b2f5b5b the properties file for back end compose messages was in the wrong directory. Moving it into the locale
directory where it belongs.


git-svn-id: svn://10.0.0.236/trunk@47917 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:58:27 +00:00
rjc%netscape.com
2bdbefd3af Fix bug #5871: now write out bookmark file in "UTF-8" encoding, along with:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">

To support this, when reading in the bookmark file, we look to see if a META charset is specified and, if it is, we'll try and get a decoder for it to use when processing the rest of the file.


git-svn-id: svn://10.0.0.236/trunk@47916 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:58:07 +00:00
karnaze%netscape.com
aa15be4323 new regression test
git-svn-id: svn://10.0.0.236/trunk@47915 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:50:24 +00:00
karnaze%netscape.com
650c4f32aa bug 13526 - allowed cellpadding, cellspacing to be percent value
git-svn-id: svn://10.0.0.236/trunk@47914 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:38:06 +00:00
waterson%netscape.com
d768a81fb7 Bug 13790. Okay, let's try that again, this time without the frills.
git-svn-id: svn://10.0.0.236/trunk@47913 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:29:53 +00:00
vidur%netscape.com
dabd4470bb Document referrer propagation through webshell and docloader.
git-svn-id: svn://10.0.0.236/trunk@47912 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:26:02 +00:00
cls%seawood.org
aa416cb229 Undefined __P before redefining it.
git-svn-id: svn://10.0.0.236/trunk@47911 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:21:03 +00:00
waterson%netscape.com
4a234d12a7 Fix nsCOMPtr sloppiness.
git-svn-id: svn://10.0.0.236/trunk@47910 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:13:19 +00:00
waterson%netscape.com
987fdb3e81 Back out changes that will cause bustage on some compilers.
git-svn-id: svn://10.0.0.236/trunk@47909 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:12:08 +00:00
rjc%netscape.com
d20ac0833a Fix bug #14117. Thanks to tor@cs.brown.edu for the fix.
git-svn-id: svn://10.0.0.236/trunk@47908 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:10:36 +00:00
waterson%netscape.com
b1e7d47421 Bug 13970. Use automatic XUL syntax to hook up command updaters.
git-svn-id: svn://10.0.0.236/trunk@47907 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:04:59 +00:00
waterson%netscape.com
21706c7492 Bug 13970. Use XUL syntax to hook up command updaters.
git-svn-id: svn://10.0.0.236/trunk@47906 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:03:30 +00:00
waterson%netscape.com
82ddc2c573 Bug 13970. Use 'commandupdater' attribute to do automatic updater hookup.
git-svn-id: svn://10.0.0.236/trunk@47905 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:02:27 +00:00
waterson%netscape.com
fd4e9f3a20 Bug 13970. Implement 'commandupdater=' attribute to hook up command udpater nodes to the XUL document's command dispatcher. Make API modifications to support command filtering. Some improvements to XUL document to factor out iteration code.
git-svn-id: svn://10.0.0.236/trunk@47904 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 04:01:46 +00:00
danm%netscape.com
ac8603e168 reverting size and move of window to offscreen. that broke dialogs parented on hiddenWindow.
git-svn-id: svn://10.0.0.236/trunk@47903 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 03:43:06 +00:00
briano%netscape.com
ad0761f22e Fixed the Unix native compiler breakage. Replaced the invalid 'true' with 'PR_TRUE'.
git-svn-id: svn://10.0.0.236/trunk@47901 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 03:25:58 +00:00
danm%netscape.com
70449374a5 implement HasDataMatchingFlavors
git-svn-id: svn://10.0.0.236/trunk@47900 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 02:43:08 +00:00
rjc%netscape.com
e09edc25fc Fix bug #9945: "Related Links" data comes in as UTF-8, so convert to Unicode before processing. Thanks for ftang@netscape.com for helping with this.
git-svn-id: svn://10.0.0.236/trunk@47897 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 02:26:25 +00:00
bienvenu%netscape.com
67835e886a auto create inbox when building imap folder tree
git-svn-id: svn://10.0.0.236/trunk@47896 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 02:06:24 +00:00
syd%netscape.com
d790120ad3 Looks like the cvs update/merge needed some manual intervention. Took our offending cruft. Preserved
usage of _blank which according to cvs log is what law intended.


git-svn-id: svn://10.0.0.236/trunk@47895 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 02:02:18 +00:00
troy%netscape.com
5482c6eb9d Removed annoying printf message
git-svn-id: svn://10.0.0.236/trunk@47894 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 01:45:00 +00:00
dveditz%netscape.com
bf8a5b89ca Buffered I/O for registry performance
git-svn-id: svn://10.0.0.236/trunk@47893 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 01:32:00 +00:00
endico%mozilla.org
4c7131a637 oops, glimpse claims the max size of a search string is 32 but empirical evidence suggests 29. Setting maxlength in the form to 29
git-svn-id: svn://10.0.0.236/trunk@47892 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 01:07:34 +00:00
briano%netscape.com
fa4d44370c Automated update
git-svn-id: svn://10.0.0.236/trunk@47890 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 01:00:37 +00:00
kipp%netscape.com
7f0806ea69 Put float-edge on UL/OL/MENU/DIR container and get rid of hack property
git-svn-id: svn://10.0.0.236/trunk@47889 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:58:07 +00:00
kipp%netscape.com
6617ad5d80 Removed list item hack
git-svn-id: svn://10.0.0.236/trunk@47888 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:57:40 +00:00
kipp%netscape.com
ffc7966b7d Zapped mCompatFloatMargin hack
git-svn-id: svn://10.0.0.236/trunk@47887 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:57:06 +00:00
jdunn%netscape.com
ab69be58b3 add support for MOZ_POST_PROGRAM_COMMAND to process $(PROGRAM): in rules.mk
and the binaries in viewer/Makefile.in


git-svn-id: svn://10.0.0.236/trunk@47886 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:53:36 +00:00
endico%mozilla.org
f039b5464a glimpse only allows a max of 32 characters with the -n option. -n is needed to get line numbers. Reduce the size of the form's input field to 32 chars and throw a message when the input is longer.
git-svn-id: svn://10.0.0.236/trunk@47885 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:43:31 +00:00
briano%netscape.com
99c7b6f249 Officially added all of my random hacks for things like Motif support, NS commercial builds, Fullcircle support, and so on.
git-svn-id: svn://10.0.0.236/trunk@47884 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:40:00 +00:00
kipp%netscape.com
ab4a9a401a Tweaked strike-out position to be more appropriate
git-svn-id: svn://10.0.0.236/trunk@47883 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:37:15 +00:00
alecf%netscape.com
b69909ee50 fix server sorting problem in the folder pane - sort servers by the order they appear in prefs
git-svn-id: svn://10.0.0.236/trunk@47882 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:19:21 +00:00
alecf%netscape.com
08a4d75260 add new FindServerIndex() method
git-svn-id: svn://10.0.0.236/trunk@47881 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:14:43 +00:00
sgehani%netscape.com
3e53bd94f1 Added checkboxes and extended drag multiselection to components win. Also, various minor bug fixes.
git-svn-id: svn://10.0.0.236/trunk@47880 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:12:55 +00:00
dveditz%netscape.com
684784ecf6 Allow a blank (magic) registry name passed to StartInstall() as in 4.x;
Don't delete a jarfile we didn't download! plus bugs 10749,13386


git-svn-id: svn://10.0.0.236/trunk@47879 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:11:24 +00:00
sgehani%netscape.com
325e6b6a67 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47878 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:10:43 +00:00
sgehani%netscape.com
573ad41168 Added checkboxes and extended drag multiselection to components win.
git-svn-id: svn://10.0.0.236/trunk@47877 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:09:39 +00:00
sgehani%netscape.com
074990550d Appended .rsrc suffix to target.
git-svn-id: svn://10.0.0.236/trunk@47876 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:08:45 +00:00
cyeh%netscape.com
b02e827116 build RegXPCOM in optimized builds for creation of Component Registry
git-svn-id: svn://10.0.0.236/trunk@47875 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:08:41 +00:00
varada%netscape.com
4624d56a20 Added new style ES_AUTOHSCROLL to enable scrolling of text in edit boxes and also set the limit to 200 ( its arbitrary and can be changed later if it is too high or low)
git-svn-id: svn://10.0.0.236/trunk@47874 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 00:05:25 +00:00
ducarroz%netscape.com
d9918e436a Remove unused function LoadFields
git-svn-id: svn://10.0.0.236/trunk@47873 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:55:06 +00:00
sfraser%netscape.com
3798e253d3 Fix the double reload problem in the editor, which fixes bug 14045 and maybe others.
git-svn-id: svn://10.0.0.236/trunk@47872 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:54:08 +00:00
davidm%netscape.com
40b0f14660 Remove obsolete code. Move some wallet code off to js
git-svn-id: svn://10.0.0.236/trunk@47871 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:46:55 +00:00
davidm%netscape.com
6f4b76ba5a Fix so mac doesn't quit when last window closed
git-svn-id: svn://10.0.0.236/trunk@47870 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:45:25 +00:00
davidm%netscape.com
6ff017d8e3 Change quit code. Change wallet code to load URL's directly rather than call appcore
git-svn-id: svn://10.0.0.236/trunk@47869 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:44:07 +00:00
davidm%netscape.com
26412f4589 break shutdown into quit and shut down. Add code to not quit on mac when last window closed. Load wallet files directly rather than going through the appcore
git-svn-id: svn://10.0.0.236/trunk@47868 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:42:49 +00:00
sgehani%netscape.com
626533cf4c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47867 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:42:45 +00:00
ducarroz%netscape.com
bfb82ffce7 Did some cleanup and fix a problem that didn't let us to specify the body through a mailto url.
git-svn-id: svn://10.0.0.236/trunk@47866 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:39:54 +00:00
danm%netscape.com
39eeb173fc stop webshell embed if the the window in which to embed has been destroyed. fixes bug 14020
git-svn-id: svn://10.0.0.236/trunk@47865 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:35:05 +00:00
troy%netscape.com
590a741dbd Minor changes to reduce the amount of unnecessary ref counting and speed
things up a little


git-svn-id: svn://10.0.0.236/trunk@47864 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:31:59 +00:00
kipp%netscape.com
020018865f Don't evaluate script tags inside an IFRAME tag since we support IFRAME's (partial fix for bug #5847)
git-svn-id: svn://10.0.0.236/trunk@47863 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:30:51 +00:00
bienvenu%netscape.com
0c738d2b59 start work on pseudo interruption, not hooked up yet
git-svn-id: svn://10.0.0.236/trunk@47862 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:30:46 +00:00
dougt%netscape.com
9878b12e09 Getting mac patching working for resource files.
git-svn-id: svn://10.0.0.236/trunk@47861 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:09:36 +00:00
norris%netscape.com
5c6fc42ab6 Remove obsolete jsurl.cpp and jsurl.h
git-svn-id: svn://10.0.0.236/trunk@47860 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:04:45 +00:00
norris%netscape.com
1583c60ac5 removed files: mozilla/dom/src/jsurl/jsurl.cpp
git-svn-id: svn://10.0.0.236/trunk@47859 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:03:45 +00:00
sspitzer%netscape.com
c3877c99de turn on migration for the mac. note, it doesn't work just yet.
also, for mac, like unix, don't automigrate if there is only one profile.
this make it hell to debug.  once it works, we can make it automigrate if
we only have one profile if we want.


git-svn-id: svn://10.0.0.236/trunk@47858 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:01:45 +00:00
sspitzer%netscape.com
2547d3df7b propagate errors. right now, -installer doesn't work
on the mac.  now, we through up and and tell the user, which is better than crashing.  I'm still working on getting it to work on the Mac.


git-svn-id: svn://10.0.0.236/trunk@47857 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 23:00:21 +00:00
briano%netscape.com
640dba7de0 Some platforms don't have 'bool' or 'true', so use PRBool and PR_TRUE instead.
git-svn-id: svn://10.0.0.236/trunk@47856 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:58:02 +00:00
pollmann%netscape.com
638725384b Bug 13960: Update GFX combos when selection is set.
git-svn-id: svn://10.0.0.236/trunk@47855 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:36:29 +00:00
karnaze%netscape.com
49c5643f4f removed <base href=..>
git-svn-id: svn://10.0.0.236/trunk@47854 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:31:09 +00:00
karnaze%netscape.com
01b3d1f82d bug 13683 - fixed memory leak.
git-svn-id: svn://10.0.0.236/trunk@47853 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:24:03 +00:00
hangas%netscape.com
025e5b2e7e Added dump statement for debugging
git-svn-id: svn://10.0.0.236/trunk@47852 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:21:47 +00:00
hangas%netscape.com
e86a404f2f Address Book Edit menu now supports seven states of Delete menu item.
git-svn-id: svn://10.0.0.236/trunk@47851 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:21:08 +00:00
rogerl%netscape.com
205d4652bd Backed out preventing multiple var decls in for..in stmts - it impacted
all for stmts instead, duh.


git-svn-id: svn://10.0.0.236/trunk@47850 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:12:29 +00:00
fergus%netscape.com
e0e1ee3ea1 Adding localization comments
git-svn-id: svn://10.0.0.236/trunk@47849 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 22:01:08 +00:00
andreas.otte%primus-online.de
c26890c471 fix for bug 9040
git-svn-id: svn://10.0.0.236/trunk@47848 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:51:54 +00:00
troy%netscape.com
bb35a26690 Fix for bug #13341. Changed DisplayAltFeedback() so it doesn't render the
recessed border unless there's room


git-svn-id: svn://10.0.0.236/trunk@47847 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:37:37 +00:00
slamm%netscape.com
a4ddeb9219 slightly smaller icon
git-svn-id: svn://10.0.0.236/trunk@47846 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:29:30 +00:00
beard%netscape.com
5958f31830 Added QueryElementAt() which combines GetElementAt() and QueryInterface(). Rationale: combining operations saves a call to AddRef/Release, since it's done by QI. Approved by dp.
git-svn-id: svn://10.0.0.236/trunk@47845 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:29:22 +00:00
slamm%netscape.com
4e44c22e53 Everyone hates the inset border. Me too.
git-svn-id: svn://10.0.0.236/trunk@47844 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:28:32 +00:00
fergus%netscape.com
3246cc6416 Adding localization comments
git-svn-id: svn://10.0.0.236/trunk@47843 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:20:57 +00:00
chuang%netscape.com
6001a71296 Fix bug 13992 Personal address book shows up more than one time
git-svn-id: svn://10.0.0.236/trunk@47842 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:12:32 +00:00
putterman%netscape.com
aefe480b56 remove customize lines.
git-svn-id: svn://10.0.0.236/trunk@47841 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:11:45 +00:00
putterman%netscape.com
d3e3c251c3 use new sidebar.
git-svn-id: svn://10.0.0.236/trunk@47840 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:11:32 +00:00
putterman%netscape.com
ca6daf2188 Select next message after a move.
git-svn-id: svn://10.0.0.236/trunk@47839 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:11:19 +00:00
putterman%netscape.com
b84742682d Changes to increase performance when having to parse a mailbox or download a lot of headers.
git-svn-id: svn://10.0.0.236/trunk@47838 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:11:01 +00:00
putterman%netscape.com
4d61c6cab6 Don't call GetNewMessages in GetMessages.
git-svn-id: svn://10.0.0.236/trunk@47837 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:10:07 +00:00
putterman%netscape.com
59fa129497 Remove timing code.
git-svn-id: svn://10.0.0.236/trunk@47836 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:09:32 +00:00
putterman%netscape.com
54ddeb59bc Call NotifyFolderLoaded when reading in db.
git-svn-id: svn://10.0.0.236/trunk@47835 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:09:14 +00:00
putterman%netscape.com
6629a256cf don't call UpdateFolder in GetnewMessages.
git-svn-id: svn://10.0.0.236/trunk@47834 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:08:47 +00:00
putterman%netscape.com
8186e12634 Add NotifyFolderLoaded.
git-svn-id: svn://10.0.0.236/trunk@47833 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:07:56 +00:00
putterman%netscape.com
b09c93a40d Add NotifyFolderLoaded
git-svn-id: svn://10.0.0.236/trunk@47832 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 21:07:01 +00:00
chuang%netscape.com
1ebdb68663 Fic bug 13992 Personal address book shows up more than one time
git-svn-id: svn://10.0.0.236/trunk@47831 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:48:52 +00:00
mscott%netscape.com
ec186a9c38 set rv to the result of RunNewsUrl. This fixes the reply bug where the subject wasn't showing up for news.
git-svn-id: svn://10.0.0.236/trunk@47830 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:39:02 +00:00
sspitzer%netscape.com
baee37737a if the user has a sidebar.rdf file in there profile directory, use that.
otherwise, use the global.  slamm is going to work on *writing* out $PROFILE/sidbar.rdf next.


git-svn-id: svn://10.0.0.236/trunk@47829 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:38:26 +00:00
sspitzer%netscape.com
17201cb709 add a scriptable version of GetCurrentProfileDir to the nsIProfle interface called GetCurrentProfileDirFromJS
eventually, the non-scriptable interface will go away, but I don't have time do that yet.  slamm is using this in his sidebarOverlay.js


git-svn-id: svn://10.0.0.236/trunk@47828 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:36:27 +00:00
pollmann%netscape.com
cd2370106e Bug 13296: Memory leak fix.
git-svn-id: svn://10.0.0.236/trunk@47827 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:27:38 +00:00
pollmann%netscape.com
7ea84c7e93 Minor cleanup - don't assume implementation details.
git-svn-id: svn://10.0.0.236/trunk@47826 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:26:44 +00:00
hangas%netscape.com
25fac7113b Added commandUpdater code to mail 3pane.
git-svn-id: svn://10.0.0.236/trunk@47825 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:24:07 +00:00
dougt%netscape.com
5c73b941b3 Fixed bug 13835. InstallTrigger.GetVersion()
git-svn-id: svn://10.0.0.236/trunk@47824 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:15:58 +00:00
dougt%netscape.com
0b073a791d re-checking in. mscott had initially back out this file due to a bustage.
git-svn-id: svn://10.0.0.236/trunk@47823 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:14:59 +00:00
pollmann%netscape.com
ca5c8d9840 Bug 12350: selected read/write
git-svn-id: svn://10.0.0.236/trunk@47822 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:13:41 +00:00
dougt%netscape.com
e5f1b11b4e Adding two MoreFiles API to the export list needed for xpinstall
git-svn-id: svn://10.0.0.236/trunk@47821 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:13:15 +00:00
andreas.otte%primus-online.de
a11de36f1f fix for bug 12059, bug 13311, bug 13313, bug 12769, bug 11643 and bug 11648
git-svn-id: svn://10.0.0.236/trunk@47820 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:08:21 +00:00
mcafee%netscape.com
04083c5fc0 Naming radio inputs to fix radio behavior.
git-svn-id: svn://10.0.0.236/trunk@47819 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:07:03 +00:00
pollmann%netscape.com
d617976223 Bug 12348: Setting DefaultChecked now also updates Checked, per DOM Errata
git-svn-id: svn://10.0.0.236/trunk@47818 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:03:04 +00:00
pollmann%netscape.com
9352028510 Minor cleanup of nsHTMLOptionElement::SetSelected method.
git-svn-id: svn://10.0.0.236/trunk@47817 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 20:00:51 +00:00
kipp%netscape.com
56ae5925ce Fixed bugs 4572, 7400 and maybe 802
git-svn-id: svn://10.0.0.236/trunk@47816 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:56:36 +00:00
kipp%netscape.com
268f88d813 Expose left vs. right floaters (again)
git-svn-id: svn://10.0.0.236/trunk@47815 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:56:15 +00:00
kipp%netscape.com
b0dc349779 Temp tweak
git-svn-id: svn://10.0.0.236/trunk@47814 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:56:00 +00:00
kipp%netscape.com
7daffd124f Setup a magic margin for list items
git-svn-id: svn://10.0.0.236/trunk@47813 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:55:45 +00:00
kipp%netscape.com
458a973efc Added in mCompatFloaterMargin
git-svn-id: svn://10.0.0.236/trunk@47812 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:55:28 +00:00
kipp%netscape.com
4ba9e7b264 Hid an unused function
git-svn-id: svn://10.0.0.236/trunk@47811 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:55:08 +00:00
kipp%netscape.com
579d7b7bce removed refs to obsolete generator files
git-svn-id: svn://10.0.0.236/trunk@47810 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:50:43 +00:00
dp%netscape.com
103414ae51 Ability for XPCOM to use non-default component registry and component directory
git-svn-id: svn://10.0.0.236/trunk@47809 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:28:57 +00:00
dougt%netscape.com
7460f3467c Fixing a bug that confusing the regKey and versionKey.
git-svn-id: svn://10.0.0.236/trunk@47808 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:24:43 +00:00
ducarroz%netscape.com
fd76abe6a2 need to return the right result value. Fix for bug 13891
git-svn-id: svn://10.0.0.236/trunk@47807 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:23:25 +00:00
law%netscape.com
4194b9917b _new -> _blank
git-svn-id: svn://10.0.0.236/trunk@47806 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:20:56 +00:00
dp%netscape.com
1e513637f0 NS_ADDREF() instead of calling it directly
git-svn-id: svn://10.0.0.236/trunk@47805 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:20:18 +00:00
Jerry.Kirk%Nexwarecorp.com
3872e10d80 Checkin changes to sorta make the URLBar work at the top of apprunner for Photon
git-svn-id: svn://10.0.0.236/trunk@47804 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:18:15 +00:00
Jerry.Kirk%Nexwarecorp.com
079585c211 Added some error checking
git-svn-id: svn://10.0.0.236/trunk@47803 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:17:12 +00:00
dp%netscape.com
5fd25d3296 Removing DEBUG_dp
git-svn-id: svn://10.0.0.236/trunk@47802 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:11:00 +00:00
dp%netscape.com
9fb585ce8b Adding Set() to configure component directory and registry
git-svn-id: svn://10.0.0.236/trunk@47801 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:08:31 +00:00
matt%netscape.com
695d863df3 Adding dtd entities lHeader to convert to xul
git-svn-id: svn://10.0.0.236/trunk@47800 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:07:32 +00:00
matt%netscape.com
c91b36ebab Adding pref-smart_browsing
git-svn-id: svn://10.0.0.236/trunk@47799 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 19:06:07 +00:00
frankm%eng.sun.com
334aeb529b Modularize code (somewhat), general cleanup. Proxy-related code has
been moved to xpj_proxy.c, code used only for testing has been copied
into xptest.cpp, and each "module" now has its own header (for internal
use only).


git-svn-id: svn://10.0.0.236/trunk@47798 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 18:50:27 +00:00
cls%seawood.org
e0fba54ea6 Linux only: Removed -D_BSD_SOURCE from DEFINES as it is unnecessary now that __STRICT_ANSI__ is set in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47797 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 18:48:12 +00:00
kin%netscape.com
d29f575037 Changed all occurrences of window.content.addEventListener()
to window.addEventListener() to fix editor default page not loading.


git-svn-id: svn://10.0.0.236/trunk@47796 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 18:40:17 +00:00
slamm%netscape.com
cf355b34c5 A couple more tweaks to get the count correct.
git-svn-id: svn://10.0.0.236/trunk@47795 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 17:38:07 +00:00
slamm%netscape.com
491529a575 Exclude ignored warnings from report.
git-svn-id: svn://10.0.0.236/trunk@47794 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 17:21:24 +00:00
briano%netscape.com
97056ac4b3 Automated update
git-svn-id: svn://10.0.0.236/trunk@47793 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 15:00:42 +00:00
cls%seawood.org
a2d62b1090 Only use HAVE_UINT to check whether uint is defined.
git-svn-id: svn://10.0.0.236/trunk@47792 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:58:16 +00:00
cls%seawood.org
1f566b486d Linux only: Added -D_SVID_SOURCE to DEFS
git-svn-id: svn://10.0.0.236/trunk@47791 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:55:14 +00:00
kipp%netscape.com
abd5dca692 Fixed a memory leak triggered by clicking on content
git-svn-id: svn://10.0.0.236/trunk@47790 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:54:59 +00:00
cls%seawood.org
0598826d76 Linux only: Removed -D_BSD_SOURCE from DEFINES as it is unnecessary now that __STRICT_ANSI__ is set in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47789 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:54:18 +00:00
cls%seawood.org
80e5f15b7c Remove unnecessary -D_BSD_SOURCE now that __STRICT_ANSI__ is set in <prinet.h>
git-svn-id: svn://10.0.0.236/trunk@47788 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:50:19 +00:00
troy%netscape.com
4d5ed09a1f Added nsHTMLReflowState constructor that allows containing block width
and height to be specified. This is needed for relatively positioned
block elements


git-svn-id: svn://10.0.0.236/trunk@47787 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:33:19 +00:00
ftang%netscape.com
14d7307a98 fix 5974 by passing parser command to the tag observer
git-svn-id: svn://10.0.0.236/trunk@47786 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:17:45 +00:00
dcone%netscape.com
897906f8d9 Mac Support
git-svn-id: svn://10.0.0.236/trunk@47785 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:17:39 +00:00
ftang%netscape.com
2d27ae2d49 fix 5974 by receiving parser command as optional argument
git-svn-id: svn://10.0.0.236/trunk@47784 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:15:16 +00:00
ftang%netscape.com
26bead35f6 fix bug 5974 by passing parser command to nsWebShell
git-svn-id: svn://10.0.0.236/trunk@47783 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:15:15 +00:00
dcone%netscape.com
2962d27c59 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47782 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 14:08:26 +00:00
briano%netscape.com
9749c7a887 Automated update
git-svn-id: svn://10.0.0.236/trunk@47781 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 13:45:36 +00:00
ramiro%netscape.com
3b226f0324 Add a --enable-low-fat option to reduce the .dynsym bloating in components.
git-svn-id: svn://10.0.0.236/trunk@47780 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 13:43:15 +00:00
sspitzer%netscape.com
d3f5c96cf7 ignore generated makefiles
git-svn-id: svn://10.0.0.236/trunk@47779 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:33:15 +00:00
sspitzer%netscape.com
82832b9f60 ignore generated makefile
git-svn-id: svn://10.0.0.236/trunk@47778 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:32:19 +00:00
sspitzer%netscape.com
6d80b29c54 add beginnings of support for -h, -help, --help, -v, -version, --version. note how the code for this happens way early in main(), before any COM or profile stuff. when running with -v and -h it should be quick.
git-svn-id: svn://10.0.0.236/trunk@47777 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:30:18 +00:00
sspitzer%netscape.com
d6b6c149a4 remove or comment out unused code. fix warnings.
git-svn-id: svn://10.0.0.236/trunk@47776 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:05:12 +00:00
sspitzer%netscape.com
e2b7f42960 fix warning
git-svn-id: svn://10.0.0.236/trunk@47775 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:04:26 +00:00
sspitzer%netscape.com
5fb39eff37 clean up my code.
git-svn-id: svn://10.0.0.236/trunk@47774 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:03:56 +00:00
sspitzer%netscape.com
c27f9869ad wrap more in the try / catch block to prevent exceptions making
there way to the console.


git-svn-id: svn://10.0.0.236/trunk@47773 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 11:00:20 +00:00
sspitzer%netscape.com
1f54b7734d turn on my fix for #12932.
git-svn-id: svn://10.0.0.236/trunk@47772 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 10:43:14 +00:00
sspitzer%netscape.com
ca07ec2ace increase the changes of -installer working on mac tomorrow, by not checking
if there is enough space before copying.

once we get -installer working on the mac, we'll turn this code back on.


git-svn-id: svn://10.0.0.236/trunk@47771 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 10:41:13 +00:00
warren%netscape.com
6cdf06cf71 Changed signature of NewInputStreamChannel to pass load group.
git-svn-id: svn://10.0.0.236/trunk@47770 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 09:44:41 +00:00
warren%netscape.com
4fc387a445 Changed signature of NewInputStreamChannel to pass load group.
git-svn-id: svn://10.0.0.236/trunk@47769 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 09:39:29 +00:00
warren%netscape.com
631579f854 Changed signature of NewInputStreamChannel to pass load group.
git-svn-id: svn://10.0.0.236/trunk@47768 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 09:00:12 +00:00
rpotts%netscape.com
279fc35806 Fire an OnStopRequest notification if the load group is cancelled...
git-svn-id: svn://10.0.0.236/trunk@47767 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:53:21 +00:00
rpotts%netscape.com
24fa269e8b Added a missing NS_DEFINE_STATIC_IID_ACCESSOR...
git-svn-id: svn://10.0.0.236/trunk@47766 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:50:18 +00:00
warren%netscape.com
f3d7d7fb0c Fixed breakage.
git-svn-id: svn://10.0.0.236/trunk@47765 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:34:20 +00:00
sspitzer%netscape.com
adb9a35445 rewrite to not user GetCString(). read the comments in nsFileSpec.cpp: "Using it guarantees bugs on Macintosh"
clean up code.  wrap all printfs with #ifdef DEBUG_profile


git-svn-id: svn://10.0.0.236/trunk@47764 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:17:51 +00:00
waldemar%netscape.com
5a8b6ef67c Shut up Linux compiler warnings
git-svn-id: svn://10.0.0.236/trunk@47763 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:16:21 +00:00
warren%netscape.com
11103f9a36 Fix for the editor coming up DOA. nsInputStreamChannel wasn't getting the load group propagated to it.
git-svn-id: svn://10.0.0.236/trunk@47762 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 08:03:02 +00:00
pavlov%netscape.com
16f773edc1 fix runtime brokenness on unix
git-svn-id: svn://10.0.0.236/trunk@47761 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:54:59 +00:00
waldemar%netscape.com
8e1e55feb9 Updated standalone JS shell Mac project to remove accumulated breakage. Added debug build.
git-svn-id: svn://10.0.0.236/trunk@47760 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:54:01 +00:00
waldemar%netscape.com
909ad7b938 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47759 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:51:52 +00:00
hangas%netscape.com
3e54f3fd39 More advances in commanUpdater development. Making this work from globalOverlay.xul so that less xul and js is required for each window.
git-svn-id: svn://10.0.0.236/trunk@47758 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:37:45 +00:00
ssu%netscape.com
b8d12225da config.ini no longer being used.
git-svn-id: svn://10.0.0.236/trunk@47757 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:25:21 +00:00
waldemar%netscape.com
a564e927ae Added number formatting routines required by ECMA. Fixed several long-standing floating-point reading and writing bugs. Upgraded to latest version of David Gay's floating-point code to fix one of these bugs. Added many comments there.
git-svn-id: svn://10.0.0.236/trunk@47756 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:16:33 +00:00
waldemar%netscape.com
9e3bcbdaaa Turned on 64-bit integers on Mac
git-svn-id: svn://10.0.0.236/trunk@47755 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:13:23 +00:00
mscott%netscape.com
6ad2efda3d Bug #13994 --> Let's auto complete against your personal address book and the history addressbook!
This makes the history ab much more useable.


git-svn-id: svn://10.0.0.236/trunk@47754 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:12:50 +00:00
waldemar%netscape.com
d9de75afbd Added ECMA number formatting
git-svn-id: svn://10.0.0.236/trunk@47753 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:12:30 +00:00
waldemar%netscape.com
546f1e5ff3 Added ECMA number formatting error message
git-svn-id: svn://10.0.0.236/trunk@47752 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:12:00 +00:00
waldemar%netscape.com
81c94d6509 Added NaN atom
git-svn-id: svn://10.0.0.236/trunk@47751 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:09:24 +00:00
waldemar%netscape.com
c66854ae62 Fixed Mac warnings
git-svn-id: svn://10.0.0.236/trunk@47750 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:08:49 +00:00
pavlov%netscape.com
1e31004605 fix bustage
git-svn-id: svn://10.0.0.236/trunk@47749 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:07:26 +00:00
sspitzer%netscape.com
7b0646f0b7 add support for the the markOldRead, notifySize, notifyOn attributes of nsINntpIncomingServer. make sure we migrate these prefs, too.
git-svn-id: svn://10.0.0.236/trunk@47748 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 07:01:17 +00:00
sspitzer%netscape.com
f08493c4a3 fix warnings. fix #13886. support the "general.startup.*" prefs.
use PL_strcmp instead of strcmp


git-svn-id: svn://10.0.0.236/trunk@47747 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:50:17 +00:00
sspitzer%netscape.com
9ddcabd7e4 remove the default prefs for conference and netcrapper.
git-svn-id: svn://10.0.0.236/trunk@47746 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:44:35 +00:00
tbogard%aol.net
68d8d25e6d Implemented nsIWinEvent and nsIWinEventFilter to allow picking the windows platform structure apart rather than grabbing as a blob.
git-svn-id: svn://10.0.0.236/trunk@47745 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:43:26 +00:00
sspitzer%netscape.com
7b9418c26f add -P and -CreateProfile to the script. also add a comment explaining where all these command line options come from
git-svn-id: svn://10.0.0.236/trunk@47744 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:42:51 +00:00
pavlov%netscape.com
62a2d6a625 add css2 color support for native colors to unix
git-svn-id: svn://10.0.0.236/trunk@47743 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:38:19 +00:00
briano%netscape.com
bb59396ab5 Fixed my stupid mistake that caused the generated Makefile to be immediately deleted.
git-svn-id: svn://10.0.0.236/trunk@47742 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 06:01:39 +00:00
ssu%netscape.com
496f496b7e fixed parsing for filename only function. affects only windows platforms
git-svn-id: svn://10.0.0.236/trunk@47741 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:55:38 +00:00
ssu%netscape.com
72302d076c changed grammer for a resource string. Affects only windows
git-svn-id: svn://10.0.0.236/trunk@47740 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:48:00 +00:00
pavlov%netscape.com
c080831370 remove some excess code
git-svn-id: svn://10.0.0.236/trunk@47739 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:46:52 +00:00
hangas%netscape.com
bb0d8fb1f5 More work on commandUpdating with address book
git-svn-id: svn://10.0.0.236/trunk@47738 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:46:03 +00:00
hangas%netscape.com
995aea772f Default edit menu items to disabled.
git-svn-id: svn://10.0.0.236/trunk@47737 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:44:37 +00:00
dveditz%netscape.com
1653f8692f expose whether the registry is already open or not, which enables the profile
manager to avoid opening and closing the registry ~20 times at startup.


git-svn-id: svn://10.0.0.236/trunk@47736 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 05:32:28 +00:00
mscott%netscape.com
96ec5ef98f Code compression. Use base class: nsMimeBaseEmitter which contains all the emitter code that was duplicated across
all the emitters.


git-svn-id: svn://10.0.0.236/trunk@47735 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:44:35 +00:00
cmanske%netscape.com
010decd345 Added an HR to editor test page
git-svn-id: svn://10.0.0.236/trunk@47734 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:38:50 +00:00
cmanske%netscape.com
a16c40cda3 Editor UI work. Integrated Brendan's JS improvements. Trying to get popups to work in dialogs. Add Ben Goodger's table properties dialog work.
git-svn-id: svn://10.0.0.236/trunk@47733 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:36:16 +00:00
davidm%netscape.com
cc503ecf9b 13907 cmd-key for bookmarks is cmd-m
git-svn-id: svn://10.0.0.236/trunk@47732 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:34:47 +00:00
mscott%netscape.com
6b026b629b Build nsMimeBaseEmitter
git-svn-id: svn://10.0.0.236/trunk@47731 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:29:59 +00:00
waterson%netscape.com
c1d3bbc2ad Whack out a bunch of dead code; add automatic 'id' attributes on html:frame and html:iframe tags (in preparation for some context menu magic by hyatt).
git-svn-id: svn://10.0.0.236/trunk@47730 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:19:46 +00:00
mscott%netscape.com
1e0878d530 Build nsMimeBaseEmitter
git-svn-id: svn://10.0.0.236/trunk@47729 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:19:08 +00:00
sspitzer%netscape.com
ca887f2be6 even though only tab gets shown per server type, all tabs in the deck widget (nntp, pop3, imap, and none) exist, and attept to be filled in. but for a given server, the query interface will fail 3 times, and succeed on one: the one it matches. only do the query interface if the requested type matches the actual type.
git-svn-id: svn://10.0.0.236/trunk@47728 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:18:13 +00:00
law%netscape.com
e7c20d6acd Initial context menu support
git-svn-id: svn://10.0.0.236/trunk@47727 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:15:40 +00:00
ssu%netscape.com
52f9a71b0d replaced empty string parameter with 'Seamonkey'
git-svn-id: svn://10.0.0.236/trunk@47726 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 04:01:36 +00:00
chuang%netscape.com
482b3e07e3 Fix Bug 12882 International sort doesn't work for Address Book
git-svn-id: svn://10.0.0.236/trunk@47725 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 03:49:47 +00:00
pinkerton%netscape.com
ef2d47a54d some code for drop feedback when there are no items in the toolbar. just getting it out of my tree so i don't forget about it.
git-svn-id: svn://10.0.0.236/trunk@47724 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 03:46:39 +00:00
pinkerton%netscape.com
8848021e98 adding the css2, win32-centric enums to GetColor. Not implemented yet.
git-svn-id: svn://10.0.0.236/trunk@47723 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 03:44:14 +00:00
briano%netscape.com
8742c7b16d Fixed my breakage.
git-svn-id: svn://10.0.0.236/trunk@47722 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 03:07:57 +00:00
briano%netscape.com
c1cc96a992 Fixed the breakage caused by MOZ_GTK_CFLAGS not being defined in INCLUDES.
git-svn-id: svn://10.0.0.236/trunk@47721 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 03:02:37 +00:00
sspitzer%netscape.com
1fec1a3dc9 initial changes to hook up server type specific prefs to the account manager.
git-svn-id: svn://10.0.0.236/trunk@47720 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 02:46:43 +00:00
sspitzer%netscape.com
39d589e470 make these interfaces scriptable. need to get at them from js.
git-svn-id: svn://10.0.0.236/trunk@47719 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 02:45:34 +00:00
warren%netscape.com
23ca5ea385 Added
git-svn-id: svn://10.0.0.236/trunk@47718 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 02:33:31 +00:00
briano%netscape.com
82969bbc84 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47717 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 02:26:33 +00:00
warren%netscape.com
2a3a7e882d Added missing includes for nsCOMPtr (why doesn't Windows complain about this!).
git-svn-id: svn://10.0.0.236/trunk@47716 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:48:00 +00:00
hangas%netscape.com
3a66af9238 Added real commandUpdater code to globalOverlay and addressbook. So far the Select All menu item enables/disables with this code. Stay tuned for more...
git-svn-id: svn://10.0.0.236/trunk@47715 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:46:30 +00:00
cyeh%netscape.com
a254b2e732 remove debug libraries from optimized target
git-svn-id: svn://10.0.0.236/trunk@47714 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:44:23 +00:00
rginda%ndcico.com
a49e599007 This didn't take in the last commit.
* index.html
Added start page for the various test clients.


git-svn-id: svn://10.0.0.236/trunk@47713 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:37:16 +00:00
waterson%netscape.com
955edd1885 Fix asserts on startup when profile directory is specified, but doesn't really exist.
git-svn-id: svn://10.0.0.236/trunk@47712 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:36:20 +00:00
rginda%ndcico.com
aabd9a726f * index.html
Added start page for the various test clients.
* Makefile.in, makefile.win
Changes to install index.html.
* irc.js
Fix to stop e.meat from getting filled with the <params> when there is no
<trailing> token in the message (raw data events)
Forward server ping and pong events to the parent network.
* utils.js
Verify XPCOM is present for functions that require it.
Modified arrayInsertAt and arrayRemoveAt to use Array.prototype.splice()
* test3-handlers.js
Add various verifications to commands, report on precondition problems
Added /msg command.
* test3.css
Show message types by default, suppress only specific types.


git-svn-id: svn://10.0.0.236/trunk@47711 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:35:00 +00:00
bienvenu%netscape.com
d2eac5bd87 fix race condition chaining imap urls
git-svn-id: svn://10.0.0.236/trunk@47710 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:32:43 +00:00
gordon%netscape.com
0b5972abff Remove include of nsDirectoryStreamMumbleSomething.h.
git-svn-id: svn://10.0.0.236/trunk@47709 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:28:16 +00:00
warren%netscape.com
46dfcedc77 removed in favor of idl
git-svn-id: svn://10.0.0.236/trunk@47708 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:25:54 +00:00
waterson%netscape.com
e5772e05a6 Bug 13892. Fix window targeting for new sidebar.
git-svn-id: svn://10.0.0.236/trunk@47707 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:23:37 +00:00
pnunn%netscape.com
45e6e3707d Change net/gfx/imglib buffer size. pnunn.
git-svn-id: svn://10.0.0.236/trunk@47706 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:22:44 +00:00
sfraser%netscape.com
1ee388bccd Don't show the caret initially; it will be made visible when the editor, or text widget, gets a focus event.
git-svn-id: svn://10.0.0.236/trunk@47705 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:16:31 +00:00
warren%netscape.com
556cf8505e Factored file transport service out of file: protocol.
git-svn-id: svn://10.0.0.236/trunk@47704 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:16:22 +00:00
gordon%netscape.com
4cc24b29a8 Added nsIFileTransportService.idl and nsISocketTransportService.idl to netwerkIDL.mcp. Removed nsDirectoryIndexStream.cpp from file.mcp and added nsFileTransport.cpp, nsFileTransportService.cpp, and nsDirectoryIndexStream.cpp to netwerk.mcp. All part of warren's checkin.
git-svn-id: svn://10.0.0.236/trunk@47703 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:16:17 +00:00
sfraser%netscape.com
4228911522 No need to build the security project any more. Yay!
git-svn-id: svn://10.0.0.236/trunk@47702 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:15:17 +00:00
sfraser%netscape.com
ff51089598 Removed security.o
git-svn-id: svn://10.0.0.236/trunk@47701 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:13:04 +00:00
sfraser%netscape.com
87ab3d20cc Remove security.o
git-svn-id: svn://10.0.0.236/trunk@47700 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:11:28 +00:00
sfraser%netscape.com
de0d591adc Remove Security.o
git-svn-id: svn://10.0.0.236/trunk@47699 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:10:47 +00:00
briano%netscape.com
41e9651666 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47697 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:09:42 +00:00
ssu%netscape.com
2e896d3926 fixing message typo. Affects only windows builds
git-svn-id: svn://10.0.0.236/trunk@47696 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 01:00:46 +00:00
hangas%netscape.com
1cd3a70562 Default edit menu items to disabled.
git-svn-id: svn://10.0.0.236/trunk@47695 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:59:15 +00:00
hangas%netscape.com
4ac706938b Added "_blank" to window.open as per danm's notification.
git-svn-id: svn://10.0.0.236/trunk@47694 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:58:50 +00:00
hangas%netscape.com
43d3187e5d Added style display:none for commands, commandset, command
git-svn-id: svn://10.0.0.236/trunk@47693 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:57:10 +00:00
gayatrib%netscape.com
669a9eb3d5 Removing tabs that are not supported yet
git-svn-id: svn://10.0.0.236/trunk@47692 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:39:20 +00:00
gayatrib%netscape.com
c2bfd297a8 Fixing the finish button problem and removing tabs that are not supported yet
git-svn-id: svn://10.0.0.236/trunk@47691 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:38:40 +00:00
ramiro%netscape.com
8b505706d5 Make the stack output more useful.
git-svn-id: svn://10.0.0.236/trunk@47690 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:22:01 +00:00
cls%seawood.org
be1b173b7e Reorder gtk headers to remove MIN redefined warnings
git-svn-id: svn://10.0.0.236/trunk@47689 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:21:18 +00:00
bienvenu%netscape.com
143a01c10f fix message size on imap
git-svn-id: svn://10.0.0.236/trunk@47688 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:15:50 +00:00
slamm%netscape.com
f5b0948ce6 Fix build warnings.
git-svn-id: svn://10.0.0.236/trunk@47687 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:15:30 +00:00
vidur%netscape.com
d18ef52707 Memory leak fix and #ifdef NECKO removals from shaver. Thanks to bruce@cybersight.com for the MLK identification.
git-svn-id: svn://10.0.0.236/trunk@47686 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:10:54 +00:00
bienvenu%netscape.com
103a88690e start work on pseudo interruption for imap useability
git-svn-id: svn://10.0.0.236/trunk@47685 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:08:02 +00:00
harishd%netscape.com
7fbf7d9dd3 Hooking up ISO doctypes [ These are mapped to strict DTD ].
git-svn-id: svn://10.0.0.236/trunk@47684 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:07:46 +00:00
briano%netscape.com
802a52cf07 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47683 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:03:08 +00:00
mscott%netscape.com
60cf64eab6 Not part of the build yet. a base emitter class which will pull out lots of code that was just
duplicated in the raw, html, xml and xul emitter classes.


git-svn-id: svn://10.0.0.236/trunk@47682 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-16 00:02:50 +00:00
mcafee%netscape.com
a2a915499a Commenting out an annoying printf on unix. Unix-only.
git-svn-id: svn://10.0.0.236/trunk@47681 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:54:52 +00:00
sspitzer%netscape.com
9077f11dae ok, I suck. I accidentally broke Local Mail migration when you used imap in 4.x. this fixes it.
git-svn-id: svn://10.0.0.236/trunk@47680 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:40:28 +00:00
gagan%netscape.com
2b7be5c20e Now throwing a dialog box for basic auth username/password. This is a temporary checkin to allow basic auth work to progress. Eventually this will/must go away as the dialog box will come from the app triggered thru the HTTP event sink. But using this basic auth could be tested now.
git-svn-id: svn://10.0.0.236/trunk@47679 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:38:39 +00:00
rjc%netscape.com
4e4c564b86 Added some debug linkages. Also add .rsrc file that includes a SIZE resource so that RegXPCOM mini-app has a parition size greater than the largest component it needs to load in.
git-svn-id: svn://10.0.0.236/trunk@47678 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:36:55 +00:00
briano%netscape.com
11d45261bd General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47677 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:36:43 +00:00
rjc%netscape.com
cbe1e04ba5 Add .rsrc file that includes a SIZE resource so that RegXPCOM mini-app has a parition size greater than the largest component it needs to load in.
git-svn-id: svn://10.0.0.236/trunk@47676 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:36:26 +00:00
despotdaemon%netscape.com
a7f4567d9b Pseudo-automatic update of changes made by chjung@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@47675 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:30:57 +00:00
norris%netscape.com
5ef28275ca Remove use of nsCOMPtr to fix Mac bustage.
git-svn-id: svn://10.0.0.236/trunk@47674 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 23:27:34 +00:00
warren%netscape.com
d14784661f Added missing includes.
git-svn-id: svn://10.0.0.236/trunk@47673 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:33:38 +00:00
briano%netscape.com
4662b521e9 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47672 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:29:43 +00:00
rods%netscape.com
79756b3579 a few fixes to my tests
git-svn-id: svn://10.0.0.236/trunk@47671 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:28:50 +00:00
warren%netscape.com
0ffc429c39 Added missing includes.
git-svn-id: svn://10.0.0.236/trunk@47670 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:28:27 +00:00
briano%netscape.com
46fe31f6b3 General cleanup.
git-svn-id: svn://10.0.0.236/trunk@47669 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:13:45 +00:00
nhotta%netscape.com
7a013524c6 Added compatibility.
git-svn-id: svn://10.0.0.236/trunk@47668 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:05:57 +00:00
rods%netscape.com
f750202376 Added a lot of tests for the select.
git-svn-id: svn://10.0.0.236/trunk@47667 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:04:04 +00:00
dp%netscape.com
947781caca Fixing XPCOM init being called again after shutdown.
git-svn-id: svn://10.0.0.236/trunk@47666 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:01:05 +00:00
cls%seawood.org
043415ee86 For gcc >= 2.95, add empty throw() function to remove warnings about returning null from operator new
git-svn-id: svn://10.0.0.236/trunk@47665 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 22:00:12 +00:00
rods%netscape.com
a14ff84454 It was calculating the absolute position wrong. the frame's x,y was being added in twice.
git-svn-id: svn://10.0.0.236/trunk@47664 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:57:51 +00:00
valeski%netscape.com
1d6cdb353d minor logging adjustment
git-svn-id: svn://10.0.0.236/trunk@47663 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:56:34 +00:00
rods%netscape.com
38ccd2ae4c removing display:block for the dummy frame for empty selects, this is for bug #13834
peter will be fixing the style system to really fix this.


git-svn-id: svn://10.0.0.236/trunk@47662 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:55:26 +00:00
warren%netscape.com
f29912ff53 Removed this in favor of idl
git-svn-id: svn://10.0.0.236/trunk@47661 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:49:21 +00:00
gordon%netscape.com
5f69223727 Added nsIThread.idl, nsIThreadPool.idl, and nsIRunnable.idl as part of warren's checkin.
git-svn-id: svn://10.0.0.236/trunk@47660 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:46:55 +00:00
warren%netscape.com
1b07f99ee9 Making nsIThread nsIRunnable and nsIThreadPool idl interfaces.
git-svn-id: svn://10.0.0.236/trunk@47659 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:41:20 +00:00
norris%netscape.com
63c0017d86 Remove nsPrincipalManager.h
git-svn-id: svn://10.0.0.236/trunk@47658 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:30:10 +00:00
sspitzer%netscape.com
f8190be120 make the postMessageFile in the nsINNTPNewsgroupPost be a nsIFileSpec, instead
of a nsFilePath.  this means nsINNTPNewsgroupPost is fully scriptable.
it also allowed me to clean up a lot of code.
most of these changes are results of this change.

add notifyOn, maxArticles, and markOldRead attributes to nsINntpIncomingServer
these correspond to "news.max_articles","news.mark_old_read", and "news.notify.o
n" prefs in 4.x.  (in 5.0, they are on a per server basis now.)
rewrite nsNNTPProtocol.cpp to use these attributes, instead of the old 4.x globa
l prefs.

fix warnings.


git-svn-id: svn://10.0.0.236/trunk@47657 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:29:30 +00:00
gayatrib%netscape.com
1a633df9c0 fixing bug 13899
git-svn-id: svn://10.0.0.236/trunk@47656 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:23:39 +00:00
ftang%netscape.com
30f429c631 add nsTextFormater to dlldeps.cpp
git-svn-id: svn://10.0.0.236/trunk@47655 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:23:31 +00:00
ftang%netscape.com
b551b98c6c add nsTextFormater.cpp
git-svn-id: svn://10.0.0.236/trunk@47654 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:21:55 +00:00
sspitzer%netscape.com
97197fa710 for the pop / nntp server specific prefs, don't name the html elements.
because those attributes don't exist in the nsIMsgIncomingServer interface
it causes us to crash.  alecf and I are working on a way to get type
specific prefs to get saved correctly.  until then, none of these type
specific prefs will get saved.


git-svn-id: svn://10.0.0.236/trunk@47653 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:21:45 +00:00
ftang%netscape.com
4706f96bab add nsTextFormater to UNIX build
git-svn-id: svn://10.0.0.236/trunk@47652 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:18:21 +00:00
ftang%netscape.com
6e965d6a46 remove unneeded debug info. Fix Unix build warning. Fix UTF8 to UCS2 conveersion bug
git-svn-id: svn://10.0.0.236/trunk@47651 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:16:09 +00:00
jdunn%netscape.com
f864b22774 Move static constructor into function instead of global. It was coredumping on AIX
git-svn-id: svn://10.0.0.236/trunk@47650 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 21:10:43 +00:00
norris%netscape.com
3036cb7a8a Add security support for javascript: uris.
git-svn-id: svn://10.0.0.236/trunk@47649 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:58:41 +00:00
ftang%netscape.com
15b14e728e add nsTextFormater.h
git-svn-id: svn://10.0.0.236/trunk@47648 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:54:04 +00:00
akhil.arora%sun.com
c9933ff473 Denis Sharypov <sdv@sparc.spb.su> - first check-in for DOMExceptions
git-svn-id: svn://10.0.0.236/trunk@47647 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:43:02 +00:00
dougt%netscape.com
ce313d64ef Fixed memory leak when calling ToString on version.
Fixed 13501.


git-svn-id: svn://10.0.0.236/trunk@47646 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:40:50 +00:00
kin%netscape.com
06c17f0ef0 Fix for bug #13439: SelectAll Delete does not repaint entire edit area
- Removed all references to mUpdateBatchCnt
    in nsViewManager::UpdateView().

  - The methods Enable/DisableRefresh() now check to
    see if we are batching before executing their code.
    This will prevent any layout/parser code from turning
    on refresh before all Begin/EndUpdateViewBatch() calls
    are unwound.


git-svn-id: svn://10.0.0.236/trunk@47645 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:39:03 +00:00
kin%netscape.com
d0370bd7bf Fix for bug #13440: Repaint problems when typing at the end of a document.
- modified nsScrollingView::ComputeScrollOffsets()
    so that it doesn't change the scrolled offsets
    just because the document size changed.


git-svn-id: svn://10.0.0.236/trunk@47644 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:53 +00:00
kipp%netscape.com
9383047642 formatting sillyness
git-svn-id: svn://10.0.0.236/trunk@47643 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:42 +00:00
ftang%netscape.com
f7e9a5d325 add the nsTextFormater for win
git-svn-id: svn://10.0.0.236/trunk@47642 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:18 +00:00
kipp%netscape.com
5d3af4637b Squished a memory leak
git-svn-id: svn://10.0.0.236/trunk@47641 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:38:09 +00:00
ftang%netscape.com
064a873a94 add new classes
git-svn-id: svn://10.0.0.236/trunk@47640 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:37:42 +00:00
cmanske%netscape.com
ba37b70cba Added a link and named anchor to the editor test page
git-svn-id: svn://10.0.0.236/trunk@47639 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:37:10 +00:00
rchen%netscape.com
6f0923614d Add localization notes
git-svn-id: svn://10.0.0.236/trunk@47638 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:33:35 +00:00
kipp%netscape.com
741d1860b8 formatting sillyness
git-svn-id: svn://10.0.0.236/trunk@47637 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:30:36 +00:00
kipp%netscape.com
a4f58b7e5c Added text/css support
git-svn-id: svn://10.0.0.236/trunk@47636 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:29:54 +00:00
ssu%netscape.com
cefc8f125b removed obosolete function
git-svn-id: svn://10.0.0.236/trunk@47635 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-15 20:29:30 +00:00
293 changed files with 19303 additions and 49125 deletions

View File

@@ -1,208 +0,0 @@
======================================================================
NETSCAPE DIRECTORY SDK FOR JAVA:
BUILD INSTRUCTIONS
Last updated: August 2, 1999
======================================================================
For information on the Netscape Directory SDK source release,
see http://www.mozilla.org/directory/
Note the following:
- The LDAP filter classes (in the netscape.ldap.util package)
use the OROMatcher(tm) regular expression package (from ORO Java Software).
This is not provided with the source code release. If you want this
package, you need to get it from ORO, Inc. (For details, see the
ORO, Inc. home page at http://www.oroinc.com/.)
Unix/Linux Build Instructions
-----------------------------
System Requirements:
32MB of RAM, 128MB of swap, recommended 64MB of RAM.
Tool Requirements:
Sun Microsystems Java Development Kit (JDK) 1.1.7
(or a more recent version)
GNU make 3.74 or a more recent version
Instructions:
1. Uncompress and extract the source files by entering the
following command (or your preferred variant of this command):
gzip -dc <filename>.tar.gz | tar -xvf -
2. Set and unset the following environment variables.
In csh/tcsh:
setenv JAVA_HOME "<directory where the JDK is installed>"
For example:
setenv JAVA_HOME "/usr/local/jdk1.1.7"
setenv CLASSPATH "<location of the JDK classes.zip file>"
For example:
setenv CLASSPATH "/usr/local/jdk1.1.7/lib/classes.zip"
In sh/bash/ksh:
JAVA_HOME="<directory where the JDK is installed>"
CLASSPATH="<location of the JDK classes.zip file>"
export JAVA_HOME CLASSPATH
3. Build the LDAP Java classes by entering the following commands:
cd mozilla/directory/java-sdk
gmake -f ldap.mk
If you also want the classes packaged in a JAR file,
specify "basepackage" as the target:
gmake -f ldap.mk basepackage
To generate javadoc specify "doc" as the target:
gmake -f ldap.mk doc
Note that if you are using JDK1.1, javadoc images will be missing
and you'll need to copy those images from somewhere else into
mozilla/directory/java-sdk/dist/doc/images. If you are using JDK1.2
you do not need to do that.
The SDK will be built and copied into the following directories:
mozilla/directory/java-sdk/dist/classes - class files and manifest file
mozilla/directory/java-sdk/dist/packages - ldapjdk.jar JAR file
(if you've specified "basepackage" as the target)
mozilla/directory/java-sdk/dist/doc - ldapjdk javadoc
(if you've specified "doc" as the target)
4. Build the JNDI LDAP Service Provider classes by entering the following commands:
gmake -f ldapsp.mk
If you also want the classes packaged in a JAR file,
specify "basepackage" as the target:
gmake -f ldapsp.mk basepackage
To generate javadoc specify "doc" as the target:
gmake -f ldapsp.mk doc
The SDK will be built and copied into the following directories:
mozilla/directory/java-sdk/dist/classes - class files
mozilla/directory/java-sdk/dist/packages - ldapsp.jar JAR file
(if you've specified "basepackage" as the target)
mozilla/directory/java-sdk/dist/doc/ldapsp - ldapsp controls' javadoc
(if you've specified "doc" as the target)
The JNDI LDAP Service Provider depends on the LDAP Java classes, so you
always must build the LDAP Java first. For more information on JNDI see
ldapsp/Readme.html and http://java.sun.com/products/jndi/index.html
Windows Build Instructions
--------------------------
System Requirements:
Windows NT 3.51 or 4.0 (4.0 preferred).
Tool Requirements:
Sun Microsystems Java Development Kit (JDK) 1.1.7
(or a more recent version)
GNU Tools for Windows (you can find these on the Internet).
Specifically, you'll need:
cp.exe
rm.exe
Here are some sample download sites to find these:
Cygnus (http://www.cygnus.com/misc/gnu-win32)
GNU (http://www.gnu.org/order/ftp.html)
MIT (ftp://prep.ai.mit.edu/pub/gnu)
Netscape uses internally modified versions of the following tools:
gmake.exe
shmsdos.exe
uname.exe
You can download them from http://www.mozilla.org/download-mozilla.html
(click the Windows Build Tools link). When you unzip the file, the
tools will be located in the windows\bin\x86 directory.
All of these tools need to be put in your path.
Extracting the Source Files:
The source files for the Directory SDK are zipped in a file.
When unzipping the file, make sure to specify that you want to
preserve the directory structure. For example,
make sure that "Use Folder Names" is checked.
Instructions:
NOTE: Make sure to run the commands from a standard Windows NT
command prompt. Although you may be able to use other shells
to build the SDK, you may need to adjust the makefiles for
the shell that you are using.
1. Set the following environment variables (within the command session,
either manually or via a script), or within the system environment
through the Control Panel | System control panel):
set MOZ_SRC=(top of your source tree, drive letter and path.
For example, set MOZ_SRC=d:\mozilla_src, if the mozilla
directory is at d:\mozilla_src\mozilla.)
set JAVA_HOME=(directory where the JDK is installed)
For example:
set JAVA_HOME=D:\jdk1.1.7
set CLASSPATH=(location of the JDK classes.zip file)
For example:
set CLASSPATH=D:\jdk1.1.7\lib\classes.zip
In addition, make sure to set your PATH environment variable to
include the tools that you have downloaded.
2. Enter the following commands to build the LDAP Java classes:
cd mozilla\directory\java-sdk
gmake -f ldap.mk
If you also want the classes packaged in a JAR file,
specify "basepackage" as the target:
gmake -f ldap.mk basepackage
To generate javadoc specify "doc" as the target:
gmake -f ldap.mk doc
Note that if you are using JDK1.1, javadoc images will be missing
and you'll need to copy those images from somewhere else into
mozilla\directory\java-sdk\dist\doc\images. If you are using JDK1.2
you do not need to do that.
The SDK will be built and copied into the following directories:
mozilla\directory\java-sdk\dist\classes - class files and manifest file
mozilla\directory\java-sdk\dist\packages - ldapjdk.jar JAR file
(if you've specified "basepackage" as the target)
mozilla\directory\java-sdk\dist\doc - ldapjdk javadoc
(if you've specified "doc" as the target)
3. Build the JNDI LDAP Service Provider classes by entering the following commands:
gmake -f ldapsp.mk
If you also want the classes packaged in a JAR file,
specify "basepackage" as the target:
gmake -f ldapsp.mk basepackage
To generate javadoc specify "doc" as the target:
gmake -f ldapsp.mk doc
The SDK will be built and copied into the following directories:
mozilla/directory/java-sdk/dist/classes - class files
mozilla/directory/java-sdk/dist/packages - ldapsp.jar JAR file
(if you've specified "basepackage" as the target)
mozilla\directory\java-sdk\dist\doc\ldapsp - ldapsp controls' javadoc
(if you've specified "doc" as the target)
The JNDI LDAP Service Provider depends on the LDAP Java classes, so you
always must build the LDAP Java first. For more information on JNDI see
ldapsp/Readme.html and http://java.sun.com/products/jndi/index.html
--------------------------------------------------------
Copyright (c) 1999 Netscape Communications Corporation.
(http://home.netscape.com/misc/contact_info.html)

View File

@@ -1,238 +0,0 @@
# -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1999 Netscape Communications Corporation. All Rights
# Reserved.
#
# Makefile for the LDAP classes
#
# An optimized compile is done by default. You can specify "DEBUG=1" on
# the make line to generate debug symbols in the bytecode.
#
# The package includes com.netscape.sasl (until there is another
# home for it)
#
# You can compile only subsets of the classes by specifying one of the
# following:
# doc
# classes
# LDAPCLASSES
# MAIN
# CLIENT
# OPERS
# UTIL
# BER
# BEANS
# SASL
# TOOLS
# FILTER
#
# Create the JAR files with the following targets:
# package
# basepackage
# filterpackage
# beanpackage
# docpackage
#
# The usual mozilla environment variable must be defined:
# MOZ_SRC (the root of your CVS tree)
#
# And the Java root directory
# JAVA_HOME
#
ARCH := $(shell uname -s)
MCOM_ROOT=.
ifeq ($(ARCH), WINNT)
MOZ_DIR:=$(subst \,/,$(MOZ_SRC))
BASEDIR:=$(MOZ_DIR)/mozilla/directory/java-sdk
else
ifeq ($(ARCH), WIN95)
MOZ_DIR:=$(subst \,/,$(MOZ_SRC))
BASEDIR:=$(MOZ_DIR)/mozilla/directory/java-sdk
else
BASEDIR := $(shell cd $(MCOM_ROOT); pwd)
endif
endif
# Destination for class files and packages
CLASS_DEST=$(BASEDIR)/dist/classes
FILTER_CLASS_DEST=$(BASEDIR)/dist/ldapfilt
# Set up the CLASSPATH automatically,
ifeq ($(ARCH), WINNT)
JDK := $(subst \,/,$(JAVA_HOME))
JAR:=$(JDK)/bin/jar
SEP=;
else
ifeq ($(ARCH), WIN95)
JDK := $(subst \,/,$(JAVA_HOME))
JAR:=$(JDK)/bin/jar
SEP=;
else
JDK := $(JAVA_HOME)
JAR:=$(JAVA_HOME)/bin/jar
SEP=:
endif
endif
JAASLIB=$(BASEDIR)/ldapjdk/lib/jaas.jar
JAVACLASSPATH:=$(BASEDIR)/ldapjdk$(SEP)$(JAASLIB)$(SEP)$(BASEDIR)/ldapbeans$(SEP)$(JDK)/lib/classes.zip$(SEP)$(CLASSPATH)
SRCDIR=netscape/ldap
BEANDIR=$(BASEDIR)/ldapbeans/netscape/ldap/beans
DISTDIR=$(MCOM_ROOT)/dist
CLASSDIR=$(MCOM_ROOT)/dist/classes
FILTERCLASSDIR=$(MCOM_ROOT)/dist/ldapfilt
CLASSPACKAGEDIR=$(DISTDIR)/packages
PACKAGENAME=javaldap.zip
ifeq ($(DEBUG), 1)
BASEPACKAGENAME=ldapjdk_debug.jar
else
BASEPACKAGENAME=ldapjdk.jar
endif
FILTERJAR=ldapfilt.jar
CLASSPACKAGE=$(CLASSPACKAGEDIR)/$(PACKAGENAME)
BEANPACKAGENAME=ldapbeans.jar
TOOLSTARGETDIR=$(DISTDIR)/tools
TOOLSDIR=$(BASEDIR)/tools
DOCDIR=$(DISTDIR)/doc
BERDOCPACKAGEDIR=$(DISTDIR)/doc/ber
DOCNAME=ldapdoc.zip
DOCPACKAGE=$(CLASSPACKAGEDIR)/$(DOCNAME)
EXAMPLEDIR=$(DISTDIR)/examples
#TESTSRCDIR=$(BASEDIR)/netsite/ldap/java/netscape/ldap/tests
ERRORSDIR=$(CLASSDIR)/netscape/ldap/errors
SASLDIR=com/netscape/sasl
SASLMECHANISMDIR=com/netscape/sasl/mechanisms
ifndef JAVADOC
JAVADOC=$(JDKBIN)javadoc -classpath "$(JAVACLASSPATH)"
endif
ifndef JAVAC
ifdef JAVA_HOME
JDKBIN=$(JDK)/bin/
endif
ifeq ($(DEBUG), 1)
JAVAC=$(JDKBIN)javac -g -classpath "$(JAVACLASSPATH)"
else
JAVAC=$(JDKBIN)javac -O -classpath "$(JAVACLASSPATH)"
endif
endif
BERDOCCLASSES=netscape.ldap.ber.stream
SASLDOCCLASSES=com.netscape.sasl com.netscape.sasl.mechanisms
DOCCLASSES=netscape.ldap netscape.ldap.beans netscape.ldap.controls \
netscape.ldap.util $(SASLDOCCLASSES) $(TOOLSDIR)/*.java $(BERDOCCLASSES)
all: classes
basics: $(DISTDIR) $(CLASSDIR)
classes: LDAPCLASSES BEANS
doc: $(DISTDIR) $(DOCDIR) DOCS
berdoc: $(DISTDIR) $(BERDOCPACKAGEDIR) BERDOCS
examples: $(DISTDIR) $(EXAMPLEDIR)/java $(EXAMPLEDIR)/js $(EXAMPLEDIR)/java/beans EXAMPLES
tests: $(CLASSDIR)
cd $(TESTSRCDIR); $(JAVAC) -d $(CLASS_DEST) *.java
package: basepackage filterpackage beanpackage docpackage
basepackage: $(CLASSPACKAGEDIR)
cd $(DISTDIR)/classes; rm -f ../packages/$(BASEPACKAGENAME); $(JAR) cvf ../packages/$(BASEPACKAGENAME) netscape/ldap/*.class netscape/ldap/client/*.class netscape/ldap/client/opers/*.class netscape/ldap/ber/stream/*.class netscape/ldap/controls/*.class netscape/ldap/util/*.class netscape/ldap/errors/*.props com/netscape/sasl/*.class com/netscape/sasl/mechanisms/*.class *.class
beanpackage: $(CLASSPACKAGEDIR)
cd $(DISTDIR)/classes; rm -f ../packages/$(BEANPACKAGENAME); $(JAR) cvf ../packages/$(BEANPACKAGENAME) netscape/ldap/beans
docpackage: $(DOCDIR) $(CLASSPACKAGEDIR)
cd $(DOCDIR); rm -f ../packages/$(DOCNAME); $(JAR) cvf ../packages/$(DOCNAME) *.html *.css netscape/ldap/*.html netscape/ldap/beans/*.html netscape/ldap/controls/*.html netscape/ldap/util/*.html netscape/ldap/ber/stream/*.html
MAIN: basics
cd ldapjdk/$(SRCDIR); $(JAVAC) -d "$(CLASS_DEST)" *.java
CLIENT: basics
cd ldapjdk/$(SRCDIR)/client; $(JAVAC) -d "$(CLASS_DEST)" *.java
OPERS: basics
cd ldapjdk/$(SRCDIR)/client/opers; $(JAVAC) -d "$(CLASS_DEST)" *.java
BER: basics
cd ldapjdk/$(SRCDIR)/ber/stream; $(JAVAC) -d "$(CLASS_DEST)" *.java
UTIL: basics
cd ldapjdk/$(SRCDIR)/util; $(JAVAC) -d "$(CLASS_DEST)" *.java
SASLMECHANISM: basics
cd ldapjdk/$(SASLMECHANISMDIR); $(JAVAC) -d "$(CLASS_DEST)" *.java
SASL: basics
cd ldapjdk/$(SASLDIR); $(JAVAC) -d "$(CLASS_DEST)" *.java
ERRORS: basics $(ERRORSDIR)
cp -p ldapjdk/$(SRCDIR)/errors/*.props $(ERRORSDIR)
CONTROLS: basics
cd ldapjdk/$(SRCDIR)/controls; $(JAVAC) -d "$(CLASS_DEST)" *.java
LDAPCLASSES: BER OPERS CLIENT MAIN UTIL CONTROLS ERRORS SASL SASLMECHANISM TOOLS
BEANS: OTHERBEANS
OTHERBEANS: basics
cd ldapbeans/$(SRCDIR)/beans; $(JAVAC) -d "$(CLASS_DEST)" *.java
TOOLS: basics
cd tools; $(JAVAC) -d "$(CLASS_DEST)" *.java
FILTER: $(FILTERCLASSDIR)
cd ldapfilter/netscape/ldap/util; $(JAVAC) -d "$(FILTER_CLASS_DEST)" *.java
filterpackage: $(CLASSPACKAGEDIR)
cd "$(FILTER_CLASS_DEST)"; rm -f ../packages/$(FILTERJAR); $(JAR) cvf ../packages/$(FILTERJAR) netscape/ldap/util/*.class
DOCS:
$(JAVADOC) -d $(DOCDIR) $(DOCCLASSES)
BERDOCS:
$(JAVADOC) -d $(BERDOCPACKAGEDIR) $(BERDOCCLASSES)
EXAMPLES:
-cp -p $(EXAMPLESRCDIR)/java/* $(EXAMPLEDIR)/java
-cp -p $(EXAMPLESRCDIR)/java/beans/* $(EXAMPLEDIR)/java/beans
-cp -p $(EXAMPLESRCDIR)/java/beans/makejars.* $(CLASSDIR)
-cp -p $(EXAMPLESRCDIR)/js/* $(EXAMPLEDIR)/js
clean:
rm -rf $(DISTDIR)
$(CLASSPACKAGEDIR):
mkdir -p $@
$(DOCDIR):
mkdir -p $@
$(DISTDIR):
mkdir -p $@
$(CLASSDIR):
mkdir -p $@
$(ERRORSDIR):
mkdir -p $@
$(FILTERCLASSDIR):
mkdir -p $@

View File

@@ -1,67 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.io.Serializable;
public class DisplayString extends TextArea implements Serializable {
public DisplayString() {
super();
setEditable(false);
}
public void reportChange(PropertyChangeEvent evt) {
Object obj = (Object)evt.getNewValue();
if (obj == null) {
append("null\n");
return;
}
String[] values = null;
if (obj instanceof String) {
values = new String[1];
values[0] = (String)obj;
}
else
values = (String[])obj;
int width = getSize().width - 10;
Font f = getFont();
for (int i=0; i<values.length; i++) {
String text = values[i];
if (f != null) {
// Trim the text to fit.
FontMetrics fm = getFontMetrics(f);
while (fm.stringWidth(text) > width) {
text = text.substring(0, text.length()-1);
}
}
append(text+'\n');
}
}
public void clear (ActionEvent e) {
setText("");
invalidate();
repaint();
}
}

View File

@@ -1,4 +0,0 @@
Name: netscape/ldap/beans/DisplayString.class
Java-Bean: True
Name: netscape/ldap/beans/DisplayStringBeanInfo.class

View File

@@ -1,63 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.beans.SimpleBeanInfo;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.ParameterDescriptor;
import java.beans.BeanInfo;
/**
* BeanInfo for displaying string
*
*/
public class DisplayStringBeanInfo extends SimpleBeanInfo {
public DisplayStringBeanInfo() throws Exception {
beanClass = Class.forName( "netscape.ldap.beans.DisplayString" );
// Publish descriptor ---------------------------------------------
try {
_beanDescriptor = new BeanDescriptor(beanClass);
_beanDescriptor.setDisplayName( "Text Field" );
_beanDescriptor.setShortDescription(
"LDAP property retrieval -"
+ " provided a host, port, base, search filter,"
+ " and optionally a username and password,"
+ " return an array of string values both as a"
+ " function return and as a Property change event." );
} catch (Exception e) {
}
}
public BeanDescriptor getBeanDescriptor() {
return _beanDescriptor;
}
private static Class beanClass;
private BeanDescriptor _beanDescriptor;
private EventSetDescriptor[] _eventSetDescriptor;
private PropertyDescriptor[] _propertyDescriptor;
}

View File

@@ -1,388 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import netscape.ldap.*;
import java.util.StringTokenizer;
// This class has a bound property
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
/**
* This is a base class that is extended by various specialized LDAP
* Beans. It provides the common properties and accessors used by
* them.
*/
public class LDAPBasePropertySupport implements Serializable {
/**
* Constructor with no parameters
*/
public LDAPBasePropertySupport() {}
/**
* Returns the host to search at.
* @return DNS name or dotted IP name of host to search at
*/
public String getHost() {
return _host;
}
/**
* Sets host string.
* @param theHost host name
*/
public void setHost( String theHost ) {
_host = theHost;
}
/**
* Returns the port to search at.
* @return Port to search at
*/
public int getPort() {
return _port;
}
/**
* Sets port number.
* @param thePort port
*/
public void setPort( int thePort ) {
_port = thePort;
}
/**
* Returns the directory base to search at.
* @return directory base to search
*/
public String getBase() {
return _base;
}
/**
* Sets the starting base
* @param theBase starting base
*/
public void setBase( String theBase ) {
_base = theBase;
}
/**
* Returns the DN to authenticate as; null or empty for anonymous.
* @return DN to authenticate as
*/
public String getAuthDN() {
return _authDN;
}
/**
* Sets the DN to authenticate as; null or empty for anonymous.
* @param authDN the DN to authenticate as
*/
public void setAuthDN( String authDN ) {
this._authDN = authDN;
}
/**
* Returns the password for the DN to authenticate as
* @return Password of DN to authenticate as
*/
public String getAuthPassword() {
return _authPassword;
}
/**
* Sets the password for the DN to authenticate as
* @param authPassword the password to use in authentication
*/
public void setAuthPassword( String authPassword ) {
this._authPassword = authPassword;
}
/**
* Returns the user name
* @return The user name
*/
public String getUserName() {
return _userName;
}
/**
* Set the user name. The name should be of the form "Polly Plum".
* @param name The user name
*/
public void setUserName( String name ) {
_userName = name;
}
/**
* Return the user ID.
* @return name the user id
*/
public String getUserID() {
return _userID;
}
/**
* Set the user ID.
* @param name the value of the user id
*/
public void setUserID( String name ) {
_userID = name;
}
/**
* Get the current search scope
* @return the current search scope as integer
*/
public int getScope() {
return _scope;
}
/**
* Set the search scope using an integer
* @param scope one of LDAPConnection.SCOPE_BASE,
* LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONE
*/
public void setScope( int scope ) {
_scope = scope;
}
/**
* Returns the search filter
* @return search filter
*/
public String getFilter() {
return _filter;
}
/**
* Sets the search filter
* @param filter search filter
*/
public void setFilter( String filter ) {
_filter = filter;
}
/**
* Returns true if debug output is on
* @return true if debug output is on
*/
public boolean getDebug() {
return _debug;
}
/**
* Turns debug output on or off
* @param on true for debug output
*/
public void setDebug( boolean on ) {
_debug = on;
}
/**
* Returns the latest error code
* @return The latest error code
*/
public int getErrorCode() {
return _errCode;
}
/**
* Sets an error code for retrieval by a client
* @param code An error code
*/
public void setErrorCode( int code ) {
_errCode = code;
}
/**
* Add a client to be notified when an authentication result is in
* @param listener a client to be notified of changes
*/
public void addPropertyChangeListener( PropertyChangeListener listener ) {
printDebug( "Adding listener " + listener );
m_propSupport.addPropertyChangeListener( listener );
}
/**
* Remove a client which had requested notification on authentication
* @param listener a client to not be notified of changes
*/
public void removePropertyChangeListener(
PropertyChangeListener listener ) {
m_propSupport.removePropertyChangeListener( listener );
}
/**
* Support for bound property notification
* @param propName Name of changed property
* @param oldValue Previous value of property
* @param newValue New value of property
*/
public void firePropertyChange(
String propName,
Object oldValue,
Object newValue ) {
if (m_propSupport == null)
m_propSupport = new PropertyChangeSupport( this );
m_propSupport.firePropertyChange( propName, oldValue, newValue );
}
protected void printDebug( String s ) {
if ( _debug )
System.out.println( s );
}
/**
* Sets up basic connection privileges for Communicator if necessary,
* and connects
* @param host Host to connect to.
* @param port Port number.
* @exception LDAPException from connect()
*/
protected void connect( LDAPConnection conn, String host, int port )
throws LDAPException {
boolean needsPrivileges = true;
/* Running standalone? */
SecurityManager sec = System.getSecurityManager();
printDebug( "Security manager = " + sec );
if ( sec == null ) {
printDebug( "No security manager" );
/* Not an applet, we can do what we want to */
needsPrivileges = false;
/* Can't do instanceof on an abstract class */
} else if ( sec.toString().startsWith("java.lang.NullSecurityManager") ) {
printDebug( "No security manager" );
/* Not an applet, we can do what we want to */
needsPrivileges = false;
} else if ( sec.toString().startsWith(
"netscape.security.AppletSecurity" ) ) {
/* Connecting to the local host? */
try {
if ( host.equalsIgnoreCase(
java.net.InetAddress.getLocalHost().getHostName() ) )
needsPrivileges = false;
} catch ( java.net.UnknownHostException e ) {
}
}
if ( needsPrivileges ) {
/* Running as applet. Is PrivilegeManager around? */
String mgr = "netscape.security.PrivilegeManager";
try {
Class c = Class.forName( mgr );
java.lang.reflect.Method[] m = c.getMethods();
if ( m != null ) {
for( int i = 0; i < m.length; i++ ) {
if ( m[i].getName().equals( "enablePrivilege" ) ) {
try {
Object[] args = new Object[1];
args[0] = new String( "UniversalConnect" );
m[i].invoke( null, args );
printDebug( "UniversalConnect enabled" );
args[0] = new String( "UniversalPropertyRead" );
m[i].invoke( null, args );
printDebug( "UniversalPropertyRead enabled" );
} catch ( Exception e ) {
printDebug( "Exception on invoking " +
"enablePrivilege: " +
e.toString() );
break;
}
break;
}
}
}
} catch ( ClassNotFoundException e ) {
printDebug( "no " + mgr );
}
}
conn.connect( host, port );
setDefaultReferralCredentials( conn );
}
protected void setDefaultReferralCredentials(
LDAPConnection conn ) {
final LDAPConnection m_conn = conn;
LDAPRebind rebind = new LDAPRebind() {
public LDAPRebindAuth getRebindAuthentication(
String host,
int port ) {
return new LDAPRebindAuth(
m_conn.getAuthenticationDN(),
m_conn.getAuthenticationPassword() );
}
};
LDAPSearchConstraints cons = conn.getSearchConstraints();
cons.setReferrals( true );
cons.setRebindProc( rebind );
}
/**
* Utility method to convert an array of Strings to a single String
* with line feeds between elements.
* @param aResult The array of Strings to convert
* @return A String with the elements separated by line feeds
*/
public String convertToString( String[] aResult ) {
String sResult = "";
if ( null != aResult ) {
for ( int i = 0; i < aResult.length; i++ ) {
sResult += aResult[i] + "\n";
}
}
return sResult;
}
/*
* Variables
*/
/* Error codes from search operations, etc */
public static final int OK = 0;
public static final int INVALID_PARAMETER = 1;
public static final int CONNECT_ERROR = 2;
public static final int AUTHENTICATION_ERROR = 3;
public static final int PROPERTY_NOT_FOUND = 4;
public static final int AMBIGUOUS_RESULTS = 5;
public static final int NO_SUCH_OBJECT = 6;
private boolean _debug = false;
private int _errCode = 0;
private String _host = new String("localhost");
private int _port = 389;
private int _scope = LDAPConnection.SCOPE_SUB;
private String _base = new String("");
private String _filter = new String("");
private String _authDN = new String("");
private String _authPassword = new String("");
private String _userName = new String("");
private String _userID = new String("");
transient private PropertyChangeSupport m_propSupport =
new PropertyChangeSupport( this );
}

View File

@@ -1,358 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import netscape.ldap.*;
import netscape.ldap.beans.LDAPBasePropertySupport;
import java.util.Enumeration;
import java.util.Vector;
import java.io.Serializable;
import java.awt.event.*;
/**
* Invisible Bean that just takes a host, port, directory base,
* search string, and optional authentication name and password,
* and returns a list of all matching DNs. The search has the scope
* "SUB", which means that it will find an entry anywhere at or
* below the directory base, unless a different scope is specified.
* <BR><BR>
* Optionally, a client can register as a PropertyChangeListener
* and will be notified when the values are available.
*<BR><BR>
* A null result means no matching DNs were found. The reason is
* available through getErrorCode(), which returns one of
* the following:
*<PRE>
* OK
* INVALID_PARAMETER
* CONNECT_ERROR
* AUTHENTICATION_ERROR
* PROPERTY_NOT_FOUND
* AMBIGUOUS_RESULTS
*</PRE>
*
*/
public class LDAPGetEntries extends LDAPBasePropertySupport implements Serializable {
/**
* Constructor with no parameters
*/
public LDAPGetEntries() {
super();
}
/**
* Constructor with host, port, and base initializers
* @param theHost host string
* @param thePort port number
* @param theBase directory base string
*/
public LDAPGetEntries( String theHost, int thePort, String theBase ) {
setHost( theHost );
setPort( thePort );
setBase( theBase );
}
/**
* Constructor with host, port, base, and scope initializers
* @param theHost host string
* @param thePort port number
* @param theBase directory base string
* @param theScope one of LDAPConnection.SCOPE_BASE,
* LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONE
*/
public LDAPGetEntries( String theHost,
int thePort,
String theBase,
int theScope ) {
setHost( theHost );
setPort( thePort );
setBase( theBase );
setScope( theScope );
}
private void notifyResult( String error ) {
firePropertyChange( "error", _errorMsg, error );
_errorMsg = error;
}
private void notifyResult( String[] newResult ) {
String sNewResult = convertToString( newResult );
firePropertyChange( "result", _result, newResult );
_sResult = sNewResult;
_result = newResult;
}
/**
* Returns the name of the attribute to retrieve
* @return attribute name to retrieve
*/
public String getAttribute() {
return _attribute;
}
/**
* Sets the attribute to retrieve
*/
public void setAttribute( String attr ) {
_attribute = attr;
}
public void setResultString( String sNewValue ) {
_sResult = sNewValue;
}
public String getResultString() {
return _sResult;
}
/**
* Searches and returns values for a specified attribute
* @param host host string
* @param port port number
* @param base directory base string
* @param scope one of LDAPConnection.SCOPE_BASE,
* LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONE
* @param filter search filter
* @param attribute name of property to return values for
* @return Array of values for the property
*/
public String[] getEntries( String host,
int port,
String base,
int scope,
String filter) {
setHost( host );
setPort( port );
setBase( base );
setScope( scope );
setFilter( filter );
return getEntries();
}
/**
* Searches and returns values for a specified attribute
* @param host host string
* @param port port number
* @param base directory base string
* @param scope one of LDAPConnection.SCOPE_BASE,
* LDAPConnection.SCOPE_SUB, LDAPConnection.SCOPE_ONE
* @param userName The user name
* @param userid The user id
* @return Array of DNs
*/
public String[] getEntries( String host,
int port,
String base,
int scope,
String userid,
String userName) {
setHost( host );
setPort( port );
setBase( base );
setScope( scope );
if (userName == null)
userName = new String("");
setUserName( userName );
if (userid == null)
userid = new String("");
setUserID( userid );
return getEntries();
}
// Added this method in order to get exposed in BDK
public void getEntries(ActionEvent x) {
getEntries();
}
/**
* Searches and returns values of a previously registered property,
* using previously set parameters
* @return Array of values for the property
*/
public String[] getEntries() {
boolean invalid = false;
if ((getUserName().length() < 1) && (getUserID().length() < 1) &&
(getFilter().length() < 1)) {
printDebug("No user name or user ID");
invalid = true;
} else if ( (getHost().length() < 1) || (getBase().length() < 1) ) {
printDebug( "Invalid host name or search base" );
invalid = true;
}
if ( invalid ) {
setErrorCode( INVALID_PARAMETER );
notifyResult( (String)null);
return null;
}
if (getFilter().length() < 1) {
String filter = new String("");
if ((getUserName().length() > 1) && (getUserID().length() > 1)) {
filter = "(|(cn="+getUserName()+")(uid="+getUserID()+"))";
} else if (getUserName().length() > 1) {
filter = "cn="+getUserName();
} else if (getUserID().length() > 1) {
filter = "uid="+getUserID();
}
setFilter(filter);
}
String[] res = null;
LDAPConnection m_ldc = new LDAPConnection();
try {
try {
printDebug("Connecting to " + getHost() +
" " + getPort());
connect( m_ldc, getHost(), getPort());
} catch (Exception e) {
printDebug( "Failed to connect to " + getHost() + ": " +
e.toString() );
setErrorCode( CONNECT_ERROR );
notifyResult( (String)null );
m_ldc = null;
throw( new Exception() );
}
// Authenticate?
if ( (!getAuthDN().equals("")) &&
(!getAuthPassword().equals("")) ) {
printDebug( "Authenticating " + getAuthDN() );
try {
m_ldc.authenticate( getAuthDN(), getAuthPassword() );
} catch (Exception e) {
printDebug( "Failed to authenticate: " + e.toString() );
setErrorCode( AUTHENTICATION_ERROR );
notifyResult( (String)null );
throw( new Exception() );
}
}
// Search
try {
printDebug("Searching " + getBase() +
" for " + getFilter() + ", scope = " + getScope());
String[] attrs = { _attribute };
LDAPSearchResults results = m_ldc.search( getBase(),
getScope(),
getFilter(),
attrs,
false);
// Create a vector for the results
Vector v = new Vector();
LDAPEntry entry = null;
while ( results.hasMoreElements() ) {
try {
entry = results.next();
} catch (LDAPException e) {
if (getDebug())
notifyResult(e.toString());
continue;
}
// Add the DN to the list
String value = "";
if ( _attribute.equals("dn") ) {
value = entry.getDN();
} else {
LDAPAttribute attr = entry.getAttribute( _attribute );
if ( attr != null ) {
Enumeration vals = attr.getStringValues();
if ( (vals != null) && (vals.hasMoreElements()) ) {
value = (String)vals.nextElement();
}
}
}
v.addElement( value );
printDebug( "... " + value );
}
// Pull out the DNs and create a string array
if ( v.size() > 0 ) {
res = new String[v.size()];
v.copyInto( res );
v.removeAllElements();
setErrorCode( OK );
} else {
printDebug( "No entries found for " + getFilter() );
setErrorCode( PROPERTY_NOT_FOUND );
}
} catch (Exception e) {
if (getDebug()) {
printDebug( "Failed to search for " + getFilter() + ": " +
e.toString() );
}
setErrorCode( PROPERTY_NOT_FOUND );
}
} catch (Exception e) {
}
// Disconnect
try {
if ( (m_ldc != null) && m_ldc.isConnected() )
m_ldc.disconnect();
} catch ( Exception e ) {
}
// Notify any clients with a PropertyChangeEvent
notifyResult( res );
return res;
}
/**
* The main body if we run it as application instead of applet.
* @param args list of arguments
*/
public static void main(String args[]) {
String[] scope = { "base", "one", "sub" };
int scopeIndex = -1;
for( int i = 0; (i < scope.length) && (args.length == 5); i++ ) {
if ( args[3].equalsIgnoreCase(scope[i]) ) {
scopeIndex = i;
break;
}
}
if ( scopeIndex < 0 ) {
System.out.println( "Usage: LDAPGetEntries host port base" +
" scope filter" );
System.exit(1);
}
LDAPGetEntries app = new LDAPGetEntries();
app.setHost( args[0] );
app.setPort( java.lang.Integer.parseInt( args[1] ) );
app.setBase( args[2] );
app.setScope( scopeIndex );
app.setFilter( args[4] );
String[] response = app.getEntries();
if ( response != null ) {
for( int i = 0; i < response.length; i++ )
System.out.println( "\t" + response[i] );
}
System.exit(0);
}
/*
* Variables
*/
private String _attribute = "dn";
private String[] _result;
private String _sResult = null;
private String _errorMsg = null;
}

View File

@@ -1,7 +0,0 @@
Name: netscape/ldap/beans/LDAPGetEntries.class
Java-Bean: True
Name: netscape/ldap/beans/LDAPBasePropertySupport.class
Name: netscape/ldap/beans/LDAPGetEntriesBeanInfo.class

View File

@@ -1,129 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.beans.SimpleBeanInfo;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.ParameterDescriptor;
import java.beans.BeanInfo;
/**
* BeanInfo for LDAPGetEntries
*/
public class LDAPGetEntriesBeanInfo extends SimpleBeanInfo {
public LDAPGetEntriesBeanInfo() throws Exception {
beanClass = Class.forName( "netscape.ldap.beans.LDAPGetEntries" );
try {
PropertyDescriptor host =
new PropertyDescriptor("host", beanClass);
PropertyDescriptor port =
new PropertyDescriptor("port", beanClass);
PropertyDescriptor authDN =
new PropertyDescriptor("authDN", beanClass);
PropertyDescriptor authPassword =
new PropertyDescriptor("authPassword", beanClass);
PropertyDescriptor base =
new PropertyDescriptor("base", beanClass);
PropertyDescriptor userName =
new PropertyDescriptor("userName", beanClass);
PropertyDescriptor userID =
new PropertyDescriptor("userID", beanClass);
PropertyDescriptor filter =
new PropertyDescriptor("filter", beanClass);
PropertyDescriptor scope =
new PropertyDescriptor("scope", beanClass);
PropertyDescriptor debug =
new PropertyDescriptor("debug", beanClass);
PropertyDescriptor rv[] =
{host, port, authDN, authPassword, base, filter,
scope, userName, userID, debug};
_propertyDescriptor = new PropertyDescriptor[rv.length];
for( int i = 0; i < rv.length; i++ )
_propertyDescriptor[i] = rv[i];
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish events --------------------------------------------------
try {
_eventSetDescriptor = new EventSetDescriptor[1];
_eventSetDescriptor[0] = new EventSetDescriptor(beanClass,
"propertyChange",
Class.forName("java.beans.PropertyChangeListener"),
"propertyChange");
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish descriptor ---------------------------------------------
try {
_beanDescriptor = new BeanDescriptor(beanClass);
_beanDescriptor.setDisplayName( "LDAP entry retrieval" );
_beanDescriptor.setShortDescription(
"LDAP property retrieval -"
+ " provided a host, port, base, search filter,"
+ " and optionally a username and password,"
+ " return an array of string values both as a"
+ " function return and as a Property change event." );
} catch (Exception e) {
}
}
/**
* @return the public properties
*/
public PropertyDescriptor[] getPropertyDescriptors() {
return _propertyDescriptor;
}
public EventSetDescriptor[] getEventSetDescriptors() {
return _eventSetDescriptor;
}
public BeanInfo[] getAdditionalBeanInfo() {
return null;
}
public int getDefaultEventIndex() {
return -1;
}
public int getDefaultPropertyIndex() {
return -1;
}
public BeanDescriptor getBeanDescriptor() {
return _beanDescriptor;
}
private static Class beanClass;
private BeanDescriptor _beanDescriptor;
private EventSetDescriptor[] _eventSetDescriptor;
private PropertyDescriptor[] _propertyDescriptor;
}

View File

@@ -1,332 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import netscape.ldap.*;
import netscape.ldap.beans.LDAPBasePropertySupport;
import java.util.Enumeration;
import java.util.Vector;
import java.io.Serializable;
import java.beans.*;
import java.awt.event.*;
/**
* Invisible Bean that just takes a name and password, host and
* port, and directory base and attribute name, and returns an
* attribute's values from a Directory Server. The values are
* assumed to be strings, and are returned as an array. The
* search has the scope "SUB", which means that it will find
* an entry anywhere at or below the directory base.
* <BR><BR>
* Optionally, a client can register as a PropertyChangeListener
* and will be notified when the values are available.
*<BR><BR>
* A null result means the property fetch failed. The reason is
* available through getErrorCode(), which returns one of
* the following:
*<PRE>
* OK
* INVALID_PARAMETER
* CONNECT_ERROR
* AUTHENTICATION_ERROR
* PROPERTY_NOT_FOUND
* AMBIGUOUS_RESULTS
*</PRE>
*/
public class LDAPGetProperty extends LDAPBasePropertySupport implements
Serializable {
/**
* Constructor with no parameters
*/
public LDAPGetProperty() {}
/**
* Constructor with host, port, and base initializers
* @param theHost host string
* @param thePort port number
* @param theBase directory base string
*/
public LDAPGetProperty( String theHost, int thePort, String theBase ) {
setHost( theHost );
setPort( thePort );
setBase( theBase );
}
/**
* Returns the name of the attribute to retrieve
* @return attribute name to retrieve
*/
public String getAttribute() {
return _attribute;
}
/**
* Sets the attribute to retrieve
*/
public void setAttribute( String attr ) {
_attribute = attr;
}
private void notifyResult( String[] newResult ) {
String sNewResult = convertToString( newResult );
firePropertyChange( "result", _result, newResult );
_sResult = sNewResult;
_result = newResult;
}
private void notifyResult( Vector newResult ) {
firePropertyChange( "result", _resultV, newResult );
_resultV = (Vector)newResult.clone();
}
private void notifyResult( String error ) {
firePropertyChange( "error", _errorMsg, error );
_errorMsg = error;
}
public void setDNs(PropertyChangeEvent evt) {
Object obj = (Object)evt.getNewValue();
if ((obj != null) && (obj instanceof String[])) {
String[] strings = (String[])obj;
if (strings.length == 0)
return;
_dns = new String[strings.length];
System.arraycopy(obj, 0, _dns, 0, strings.length);
System.out.println("length of dns -> "+_dns.length);
}
}
/**
* Searches and returns values for a specified attribute
* @param host host string
* @param port port number
* @param base directory base string
* @param filter search filter
* @param attribute name of property to return values for
* @return Array of values for the property
*/
public String[] getProperty( String host, int port, String base,
String filter, String attribute) {
setHost( host );
setPort( port );
setBase( base );
setFilter( filter );
setAttribute( attribute );
return getProperty();
}
// Added this method in order to get exposed in BDK
public void getProperty(ActionEvent x) {
getProperty();
}
/**
* Searches and returns values of a previously registered property,
* using previously set parameters
* @return Array of values for the property
*/
public String[] getProperty() {
if ( (_attribute.length() < 1) || (getFilter().length() < 1) ) {
printDebug( "Invalid attribute name or filter" );
setErrorCode( INVALID_PARAMETER );
notifyResult( (String[])null );
return null;
}
String[] res = null;
LDAPConnection m_ldc;
try {
m_ldc = new LDAPConnection();
printDebug("Connecting to " + getHost() +
" " + getPort());
connect( m_ldc, getHost(), getPort());
} catch (Exception e) {
printDebug( "Failed to connect to " + getHost() + ": "
+ e.toString() );
setErrorCode( CONNECT_ERROR );
notifyResult( (String[])null );
return null;
}
// Authenticate?
if (_dns != null) {
for (int i=0; i<_dns.length; i++) {
try {
m_ldc.authenticate(_dns[i], getAuthPassword());
break;
} catch (Exception e) {
if (i == _dns.length-1) {
printDebug( "Failed to authenticate to " +
getHost() + ": " + e.toString() );
setErrorCode( AUTHENTICATION_ERROR );
notifyResult( (String[])null );
return null;
}
}
}
} else if ( (!getAuthDN().equals("")) && (!getAuthPassword().equals("")) ) {
printDebug( "Authenticating " + getAuthDN() + " - " +
getAuthPassword() );
try {
m_ldc.authenticate( getAuthDN(), getAuthPassword() );
} catch (Exception e) {
printDebug( "Failed to authenticate to " +
getHost() + ": " + e.toString() );
setErrorCode( AUTHENTICATION_ERROR );
notifyResult( (String[])null );
return null;
}
}
int numDataEntries = 0;
// Search
try {
String[] attrs = new String[1];
attrs[0] = _attribute;
LDAPSearchResults results = m_ldc.search(getBase(),
getScope(),
getFilter(),
attrs, false);
// Should be only one result, at most
LDAPEntry currEntry = null;
LDAPEntry entry = null;
while ( results.hasMoreElements() ) {
try {
currEntry = results.next();
if (numDataEntries == 0)
entry = currEntry;
if (++numDataEntries > 1) {
printDebug( "More than one entry found for " +
getFilter() );
setErrorCode( AMBIGUOUS_RESULTS );
break;
}
} catch (LDAPException e) {
if (getDebug())
notifyResult(e.toString());
continue;
}
}
if (numDataEntries == 1) {
printDebug( "... " + entry.getDN() );
// Good - exactly one entry found; get the attribute
// Treat DN as a special case
if ( _attribute.equalsIgnoreCase( "dn" ) ) {
res = new String[1];
res[0] = entry.getDN();
setErrorCode( OK );
} else {
LDAPAttributeSet attrset = entry.getAttributeSet();
Enumeration attrsenum = attrset.getAttributes();
if (attrsenum.hasMoreElements()) {
LDAPAttribute attr =
(LDAPAttribute)attrsenum.nextElement();
printDebug( attr.getName() + " = " );
// Get the values as strings
Enumeration valuesenum = attr.getStringValues();
if (valuesenum != null) {
// Create a string array for the results
Vector v = new Vector();
while (valuesenum.hasMoreElements()) {
String val = (String)valuesenum.nextElement();
v.addElement( val );
printDebug( "\t\t" + val );
}
res = new String[v.size()];
v.copyInto( res );
setErrorCode( OK );
} else {
Enumeration byteEnum = attr.getByteValues();
Vector v = new Vector();
while (byteEnum.hasMoreElements()) {
byte[] val = (byte[])byteEnum.nextElement();
v.addElement( val );
printDebug( "\t\t" + val );
}
setErrorCode( OK );
notifyResult(v);
return (res = null);
}
} else {
printDebug( "No properties found for " +
_attribute );
setErrorCode( PROPERTY_NOT_FOUND );
}
}
}
} catch (Exception e) {
if (getDebug()) {
printDebug( "Failed to search for " + getFilter() + ": "
+ e.toString() );
}
setErrorCode( PROPERTY_NOT_FOUND );
}
if (numDataEntries == 0) {
printDebug( "No entries found for " + getFilter() );
setErrorCode( PROPERTY_NOT_FOUND );
}
// Disconnect
try {
if ( (m_ldc != null) && m_ldc.isConnected() )
m_ldc.disconnect();
} catch ( Exception e ) {
}
notifyResult( res );
return res;
}
/**
* The main body if we run it as application instead of applet.
* @param args list of arguments
*/
public static void main(String args[]) {
if (args.length != 5) {
System.out.println( "Usage: LDAPGetProperty host port base" +
" filter attribute" );
System.exit(1);
}
LDAPGetProperty app = new LDAPGetProperty();
app.setHost( args[0] );
app.setPort( java.lang.Integer.parseInt( args[1] ) );
app.setBase( args[2] );
app.setFilter( args[3] );
app.setAttribute( args[4] );
String[] response = app.getProperty();
if ( response != null ) {
for( int i = 0; i < response.length; i++ )
System.out.println( "\t" + response[i] );
}
System.exit(0);
}
/*
* Variables
*/
private String[] _dns = null;
private String _attribute = new String("cn");
transient private String[] _result;
private Vector _resultV = null;
private String _sResult = null;
private String _errorMsg = null;
}

View File

@@ -1,6 +0,0 @@
Name: netscape/ldap/beans/LDAPGetProperty.class
Java-Bean: True
Name: netscape/ldap/beans/LDAPBasePropertySupport.class
Name: netscape/ldap/beans/LDAPGetPropertyBeanInfo.class

View File

@@ -1,138 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.beans.SimpleBeanInfo;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.ParameterDescriptor;
import java.beans.BeanInfo;
/**
* BeanInfo for LDAPGetProperty
*/
public class LDAPGetPropertyBeanInfo extends SimpleBeanInfo {
public LDAPGetPropertyBeanInfo() throws Exception {
beanClass = Class.forName( "netscape.ldap.beans.LDAPGetProperty" );
try {
PropertyDescriptor host =
new PropertyDescriptor("host", beanClass);
PropertyDescriptor port =
new PropertyDescriptor("port", beanClass);
PropertyDescriptor authDN =
new PropertyDescriptor("authDN", beanClass);
PropertyDescriptor authPassword =
new PropertyDescriptor("authPassword", beanClass);
PropertyDescriptor base =
new PropertyDescriptor("base", beanClass);
PropertyDescriptor filter =
new PropertyDescriptor("filter", beanClass);
PropertyDescriptor scope =
new PropertyDescriptor("scope", beanClass);
PropertyDescriptor attribute =
new PropertyDescriptor("attribute", beanClass);
PropertyDescriptor debug =
new PropertyDescriptor("debug", beanClass);
PropertyDescriptor rv[] =
{host, port, authDN, authPassword, base, scope, attribute,
filter, debug};
_propertyDescriptor = new PropertyDescriptor[rv.length];
for( int i = 0; i < rv.length; i++ )
_propertyDescriptor[i] = rv[i];
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish events --------------------------------------------------
try {
_eventSetDescriptor = new EventSetDescriptor[1];
_eventSetDescriptor[0] = new EventSetDescriptor(beanClass,
"propertyChange",
Class.forName("java.beans.PropertyChangeListener"),
"propertyChange");
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish descriptor ---------------------------------------------
try {
_beanDescriptor = new BeanDescriptor(beanClass);
_beanDescriptor.setDisplayName( "LDAP property retrieval" );
_beanDescriptor.setShortDescription(
"LDAP property retrieval -"
+ " provided a host, port, base, search filter,"
+ " and optionally a username and password,"
+ " return an array of string values both as a"
+ " function return and as a Property change event." );
} catch (Exception e) {
}
}
/**
* @return the public properties
*/
public PropertyDescriptor[] getPropertyDescriptors() {
return _propertyDescriptor;
}
/**
* @return the public methods
*/
public MethodDescriptor[] getMethodDescriptors() {
return _methodDescriptor;
}
public EventSetDescriptor[] getEventSetDescriptors() {
return _eventSetDescriptor;
}
public BeanInfo[] getAdditionalBeanInfo() {
return null;
}
public int getDefaultEventIndex() {
return -1;
}
public int getDefaultPropertyIndex() {
return -1;
}
public BeanDescriptor getBeanDescriptor() {
return _beanDescriptor;
}
private static Class beanClass;
private BeanDescriptor _beanDescriptor;
private EventSetDescriptor[] _eventSetDescriptor;
private MethodDescriptor[] _methodDescriptor;
private PropertyDescriptor[] _propertyDescriptor;
}

View File

@@ -1,433 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import netscape.ldap.*;
import netscape.ldap.util.*;
import java.util.Enumeration;
import java.util.StringTokenizer;
import java.io.Serializable;
import java.awt.event.*;
/**
* Invisible Bean that just takes a host and port, optional
* authentication name and password, and DN of a group and another DN
* which might be a member of the group, and returns true or
* false, depending on whether the second DN is a member of the first.
* <BR>
* Also handles the case of dynamic groups by derefencing the URL
* and searching for membership based on the url search.
* <BR>
* It doesn't handle nested groups.
* <BR><BR>
* A false result means the member could not be identified as
* belonging to the group. The exact reason is
* available through getErrorCode(), which returns one of
* the following:
*<PRE>
* OK
* INVALID_PARAMETER
* CONNECT_ERROR
* AUTHENTICATION_ERROR
* PROPERTY_NOT_FOUND
* AMBIGUOUS_RESULTS
* NO_SUCH_OBJECT
*</PRE>
*/
public class LDAPIsMember extends LDAPBasePropertySupport
implements Serializable {
/**
* Constructor with no parameters
*/
public LDAPIsMember() {}
/**
* Constructor with host, port, and group DN initializers
* @param host host string
* @param port port number
* @param group distinguished name of the group
*/
public LDAPIsMember( String host, int port, String group ) {
setHost( host );
setPort( port );
setGroup( group );
}
/**
* Constructor with host, port, authentication DN and password
* and group DN initializers
* @param host host string
* @param port port number
* @param dn fully qualified distinguished name to authenticate
* @param password password for authenticating the dn
* @param group distinguished name of the group
*/
public LDAPIsMember( String host, int port,
String dn, String password, String theGroup ) {
setHost( host );
setPort( port );
setGroup( theGroup );
setAuthDN( dn );
setAuthPassword( password );
}
private void notifyResult( String newResult ) {
firePropertyChange( "result", _result, newResult );
_result = newResult;
}
/**
* Checks if an entity (specified by distinguished name) is a
* member of a particular group (specified by distinguished name)
* @return true if the specified member belongs to the group
*/
public boolean isMember() {
String host = getHost();
int port = getPort();
String dn = getAuthDN();
String password = getAuthPassword();
String group = getGroup();
String member = getMember();
_result = new String("");
if ( (host == null) || (host.length() < 1) ) {
printDebug( "Invalid host name" );
setErrorCode( INVALID_PARAMETER );
notifyResult(null);
return false;
}
if ( (member == null) || (group == null) ||
(member.length() < 1) || (group.length() < 1) ) {
printDebug( "Invalid member or group name" );
setErrorCode( INVALID_PARAMETER );
notifyResult(null);
return false;
}
LDAPConnection m_ldc;
boolean isMember = false;
try {
m_ldc = new LDAPConnection();
printDebug("Connecting to " + host +
" " + port);
connect( m_ldc, getHost(), getPort());
} catch (Exception e) {
printDebug( "Failed to connect to " + host + ": "
+ e.toString() );
setErrorCode( CONNECT_ERROR );
notifyResult(null);
return false;
}
// Authenticate?
if ( (dn != null) && (password != null) &&
(dn.length() > 0) && (password.length() > 0) ) {
printDebug( "Authenticating " + dn + " - " + password );
try {
m_ldc.authenticate( dn, password );
} catch (Exception e) {
printDebug( "Failed to authenticate to " +
host + ": " + e.toString() );
setErrorCode( AUTHENTICATION_ERROR );
notifyResult(null);
return false;
}
}
int numDataEntries = 0;
// Search
try {
String[] attrs = new String[4];
attrs[0] = "member";
attrs[1] = "uniqueMember";
attrs[2] = "memberOfGroup";
attrs[3] = "memberurl";
LDAPSearchResults results =
m_ldc.search( group,
LDAPConnection.SCOPE_BASE,
"objectclass=*",
attrs, false);
// Should be only one result, at most
LDAPEntry entry = null;
LDAPEntry currEntry = null;
while ( results.hasMoreElements() ) {
try {
currEntry = (LDAPEntry)results.next();
if (numDataEntries == 0)
entry = currEntry;
if (++numDataEntries > 1) {
printDebug( "More than one entry found for " +
getFilter() );
setErrorCode( AMBIGUOUS_RESULTS );
break;
}
} catch (LDAPReferralException e) {
if (getDebug()) {
notifyResult("Referral URLs: ");
LDAPUrl refUrls[] = e.getURLs();
for (int i = 0; i < refUrls.length; i++)
notifyResult(refUrls[i].getUrl());
}
continue;
} catch (LDAPException e) {
if (getDebug())
notifyResult(e.toString());
continue;
}
}
if (numDataEntries == 1) {
printDebug( "... " + entry.getDN() );
String normMember = normalizeDN( member );
// Good - exactly one entry found; get the attributes
LDAPAttributeSet attrset = entry.getAttributeSet();
Enumeration attrsenum = attrset.getAttributes();
while ( attrsenum.hasMoreElements() && !isMember ) {
LDAPAttribute attr =
(LDAPAttribute)attrsenum.nextElement();
printDebug( attr.getName() + " = " );
boolean urlHandler =
attr.getName().equalsIgnoreCase("memberurl");
/* Get the values as strings.
The following code also handles dynamic
groups by calling URLMatch to see if an entry
DN is found via a URL search.
This is transparent to the caller of the bean.
*/
Enumeration valuesenum = attr.getStringValues();
if (valuesenum != null) {
while (valuesenum.hasMoreElements()) {
String val = (String)valuesenum.nextElement();
if (urlHandler) {
if ( URLMatch(m_ldc, val, normMember) ) {
isMember = true;
setErrorCode( OK );
break;
}
}
printDebug( "\t\t" + val );
String normFound = normalizeDN( val );
if ( normMember.equals( normFound ) ) {
isMember = true;
setErrorCode( OK );
break;
}
}
} else {
setErrorCode(PROPERTY_NOT_FOUND);
printDebug("Failed to do string conversion for "+
attr.getName());
}
}
if ( !isMember )
setErrorCode( PROPERTY_NOT_FOUND );
}
} catch (Exception e) {
printDebug( "Failed to search for " + group + ": "
+ e.toString() );
setErrorCode( NO_SUCH_OBJECT );
}
if (numDataEntries == 0) {
printDebug( "No entries found for " + group );
setErrorCode( NO_SUCH_OBJECT );
}
try {
if ( (m_ldc != null) && m_ldc.isConnected() )
m_ldc.disconnect();
} catch ( Exception e ) {
}
if (isMember)
notifyResult("Y");
else
notifyResult("N");
return isMember;
}
/**
* Checks if an entity (specified by distinguished name) is a
* member of a particular group (specified by distinguished name)
* @param host host string
* @param port port number
* @param dn fully qualified distinguished name to authenticate;
* can be null or ""
* @param password password for authenticating the dn; can be null
* or ""
* @param group distinguished name of the group
* @param member distinguished name of member to be checked
* @return true if the specified member belongs to the group
*/
public boolean isMember( String host, int port,
String dn, String password,
String group, String member ) {
setHost(host);
setPort(port);
setAuthDN(dn);
setAuthPassword(password);
setGroup(group);
setMember(member);
return isMember();
}
/**
* Checks if an entity (specified by distinguished name) is a
* member of a particular group (specified by distinguished name)
* @return true if the specified member belongs to the group
*/
public void isMember(ActionEvent e) {
isMember();
}
/**
* Returns the distinguished name of the group
* @return group name
*/
public String getGroup() {
return _group;
}
/**
* Sets the distinguished name of the group
* @param group group name
*/
public void setGroup( String group ) {
_group = group;
}
/**
* Returns the distinguished name of the member
* @return member name
*/
public String getMember() {
return _member;
}
/**
* Sets the distinguished name of the member
* @param member member name
*/
public void setMember( String member ) {
_member = member;
}
private String normalizeDN( String dn ) {
return new DN( dn ).toRFCString().toUpperCase();
}
/**
* Return true if normMember is result of url search.
* Urls from dynamic groups do not typically contain
* the host and port so we need to fix them before
* constructing an LDAP URL.
* current ldap:///.... make ldap://host:port/...
**/
private boolean URLMatch(LDAPConnection ld, String URL,
String normMemberDN) {
String cURL = URL;
boolean isMember = false;
int loc = URL.indexOf(":///");
if ( loc > 0) {
cURL = URL.substring(0,loc) + "://" + ld.getHost() +
":" + ld.getPort() + URL.substring(loc+3);
}
printDebug("URLMatch: url = " + cURL +
", member DN = " + normMemberDN);
LDAPUrl ldapurl;
try {
ldapurl = new LDAPUrl(cURL);
printDebug("URL ->"+ldapurl.getUrl());
} catch (java.net.MalformedURLException murl) {
printDebug("bad URL");
return isMember;
}
try {
LDAPSearchResults results = ld.search(ldapurl);
String entry = "";
while ( results.hasMoreElements() && !isMember ) {
try {
entry = ((LDAPEntry)results.next()).getDN();
String normEntry = normalizeDN( entry );
if (normEntry.equals(normMemberDN)) {
isMember = true;
break;
}
} catch (LDAPReferralException e) {
if (getDebug()) {
notifyResult("Referral URLs: ");
LDAPUrl refUrls[] = e.getURLs();
for (int i = 0; i < refUrls.length; i++)
notifyResult(refUrls[i].getUrl());
}
continue;
} catch (LDAPException e) {
if (getDebug())
notifyResult(e.toString());
continue;
}
}
} catch (LDAPException lde) {
printDebug("Failed search for url " + ldapurl.getUrl());
setErrorCode(NO_SUCH_OBJECT);
}
return isMember;
}
/**
* The main body if we run it as application instead of applet.
* @param args list of arguments
*/
public static void main(String args[]) {
if (args.length != 4) {
System.out.println( "Usage: LDAPIsMember host port group" +
" member" );
System.exit(1);
}
LDAPIsMember app = new LDAPIsMember();
app.setHost( args[0] );
app.setPort( java.lang.Integer.parseInt( args[1] ) );
app.setGroup( args[2] );
app.setMember( args[3] );
boolean response = app.isMember();
if ( response == false )
System.out.println( "Not a member" );
else
System.out.println( "Is a member" );
System.exit(0);
}
/*
* Variables
*/
public static final int OK = 0;
public static final int INVALID_PARAMETER = 1;
public static final int CONNECT_ERROR = 2;
public static final int AUTHENTICATION_ERROR = 3;
public static final int PROPERTY_NOT_FOUND = 4;
public static final int AMBIGUOUS_RESULTS = 5;
public static final int NO_SUCH_OBJECT = 5;
private String _group = new String("");
private String _member = new String("");
private String _result = new String("");
}

View File

@@ -1,6 +0,0 @@
Name: netscape/ldap/beans/LDAPIsMember.class
Java-Bean: True
Name: netscape/ldap/beans/LDAPBasePropertySupport.class
Name: netscape/ldap/beans/LDAPIsMemberBeanInfo.class

View File

@@ -1,110 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.beans.SimpleBeanInfo;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.ParameterDescriptor;
import java.beans.BeanInfo;
/**
* BeanInfo for LDAPIsMember
*/
public class LDAPIsMemberBeanInfo extends SimpleBeanInfo {
public LDAPIsMemberBeanInfo() throws Exception {
beanClass = Class.forName( "netscape.ldap.beans.LDAPIsMember" );
// Publish properties -------------------------------------------------
try {
PropertyDescriptor host =
new PropertyDescriptor("host", beanClass);
PropertyDescriptor port =
new PropertyDescriptor("port", beanClass);
PropertyDescriptor authDN =
new PropertyDescriptor("authDN", beanClass);
PropertyDescriptor authPassword =
new PropertyDescriptor("authPassword", beanClass);
PropertyDescriptor group =
new PropertyDescriptor("group", beanClass);
PropertyDescriptor member =
new PropertyDescriptor("member", beanClass);
PropertyDescriptor debug =
new PropertyDescriptor("debug", beanClass);
PropertyDescriptor rv[] =
{host, port, authDN, authPassword, group, member, debug};
_propertyDescriptor = new PropertyDescriptor[rv.length];
for( int i = 0; i < rv.length; i++ )
_propertyDescriptor[i] = rv[i];
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish descriptor ---------------------------------------------
try {
_beanDescriptor = new BeanDescriptor(beanClass);
_beanDescriptor.setDisplayName( "LDAP IsMember" );
_beanDescriptor.setShortDescription(
"LDAP IsMember -"
+ " provided a host, port, group name and member name,"
+ " and optionally an authentication name and password,"
+ " return true if the member belongs to the group." );
} catch (Exception e) {
}
}
/**
* @return the public properties
*/
public PropertyDescriptor[] getPropertyDescriptors() {
return _propertyDescriptor;
}
public EventSetDescriptor[] getEventSetDescriptors() {
return _eventSetDescriptor;
}
public BeanInfo[] getAdditionalBeanInfo() {
return null;
}
public int getDefaultEventIndex() {
return -1;
}
public int getDefaultPropertyIndex() {
return -1;
}
public BeanDescriptor getBeanDescriptor() {
return _beanDescriptor;
}
private static Class beanClass;
private BeanDescriptor _beanDescriptor;
private EventSetDescriptor[] _eventSetDescriptor;
private PropertyDescriptor[] _propertyDescriptor;
}

View File

@@ -1,178 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import netscape.ldap.*;
import netscape.ldap.beans.LDAPBasePropertySupport;
import java.io.Serializable;
import java.awt.event.*;
/**
* Invisible Bean that just authenticates a user with a Directory
* Server and returns Y or N. It takes a host and port, and then either
* a full distinguished name and password, an RDN and directory base, or
* a cn value and directory base.
* <BR><BR>
* Optionally, a client can register as
* a PropertyChangeListener and will be notified when an authentication
* completes.
* <BR><BR>
* The Bean can be used from JavaScript, as in the following example
* where the parameters are taken from HTML text fields in an HTML
* form called "input":
* <PRE>
* <XMP>
* <SCRIPT LANGUAGE="JavaScript">
* function checkAuthentication() {
* auth = new Packages.netscape.ldap.beans.LDAPSimpleAuth();
* auth.setHost( document.input.host.value );
* auth.setPort( parseInt(document.input.port.value) );
* auth.setAuthDN( document.input.username.value );
* auth.setAuthPassword( document.input.password.value );
* result = auth.authenticate();
* alert( "The response is: " + result );
* }
* </SCRIPT>
* </XMP>
*</PRE>
*/
public class LDAPSimpleAuth extends LDAPBasePropertySupport implements
Serializable {
/**
* Constructor with no parameters
*/
public LDAPSimpleAuth() {}
/**
* Constructor with host and port initializers
* @param theHost host string
* @param thePort port number
*/
public LDAPSimpleAuth( String theHost,
int thePort ) {
setHost( theHost );
setPort( thePort );
}
/**
* Constructor with all required authentication parameters
* @param theHost host string
* @param thePort port number
* @param dn fully qualified distinguished name to authenticate
* @param password password for authenticating the dn
*/
public LDAPSimpleAuth( String theHost,
int thePort,
String dn,
String password ) {
setHost( theHost );
setPort( thePort );
setAuthDN( dn );
setAuthPassword( password );
}
private void notifyResult( String newResult ) {
firePropertyChange( "result", result, newResult );
result = newResult;
}
/**
* Connect to LDAP server using parameters specified in
* constructor and/or by setting properties and attempt to
* authenticate.
* @return "Y" on successful authentication, "N" otherwise
*/
public String authenticate() {
LDAPConnection m_ldc = null;
String result = "N";
try {
m_ldc = new LDAPConnection();
System.out.println("Connecting to " + getHost() +
" " + getPort());
connect( m_ldc, getHost(), getPort());
} catch (Exception e) {
System.out.println( "Failed to connect to " + getHost() +
": " + e.toString() );
}
if ( m_ldc.isConnected() ) {
System.out.println( "Authenticating " + getAuthDN() );
try {
m_ldc.authenticate( getAuthDN(), getAuthPassword() );
result = "Y";
} catch (Exception e) {
System.out.println( "Failed to authenticate to " +
getHost() + ": " + e.toString() );
}
}
try {
if ( (m_ldc != null) && m_ldc.isConnected() )
m_ldc.disconnect();
} catch ( Exception e ) {
}
notifyResult( result );
return result;
}
/**
* Connect to LDAP server using parameters specified in
* constructor and/or by setting properties and attempt to
* authenticate.
* @param dn fully qualified distinguished name to authenticate
* @param password password for authenticating the dn
* @return "Y" on successful authentication, "N" otherwise
*/
public String authenticate( String dn,
String password ) {
setAuthDN( dn );
setAuthPassword( password );
return authenticate();
}
public void authenticate( ActionEvent x) {
authenticate();
}
/**
* The main body if we run it as stand-alone application.
* @param args list of arguments
*/
public static void main(String args[]) {
if (args.length != 4) {
System.out.println( " LDAPSimpleAuth " +
"host port DN password" );
System.exit(1);
}
LDAPSimpleAuth app = new LDAPSimpleAuth();
app.setHost( args[0] );
app.setPort( java.lang.Integer.parseInt( args[1] ) );
app.setAuthDN( args[2] );
app.setAuthPassword( args[3] );
String response = app.authenticate();
System.out.println( "Response: " + response );
System.exit(0);
}
/*
* Variables
*/
transient private String result = new String("");
}

View File

@@ -1,6 +0,0 @@
Name: netscape/ldap/beans/LDAPSimpleAuth.class
Java-Bean: True
Name: netscape/ldap/beans/LDAPBasePropertySupport.class
Name: netscape/ldap/beans/LDAPSimpleAuthBeanInfo.class

View File

@@ -1,118 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.beans;
import java.beans.SimpleBeanInfo;
import java.beans.BeanDescriptor;
import java.beans.EventSetDescriptor;
import java.beans.MethodDescriptor;
import java.beans.PropertyDescriptor;
import java.beans.ParameterDescriptor;
import java.beans.BeanInfo;
/**
* BeanInfo for LDAPSimpleAuth
*/
public class LDAPSimpleAuthBeanInfo extends SimpleBeanInfo {
public LDAPSimpleAuthBeanInfo() throws Exception {
beanClass = Class.forName( "netscape.ldap.beans.LDAPSimpleAuth" );
try {
PropertyDescriptor host =
new PropertyDescriptor("host", beanClass);
PropertyDescriptor port =
new PropertyDescriptor("port", beanClass);
PropertyDescriptor authDN =
new PropertyDescriptor("authDN", beanClass);
PropertyDescriptor authPassword =
new PropertyDescriptor("authPassword", beanClass);
PropertyDescriptor debug =
new PropertyDescriptor("debug", beanClass);
PropertyDescriptor rv[] =
{host, port, authDN, authPassword, debug};
_propertyDescriptor = new PropertyDescriptor[rv.length];
for( int i = 0; i < rv.length; i++ )
_propertyDescriptor[i] = rv[i];
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish events --------------------------------------------------
try {
_eventSetDescriptor = new EventSetDescriptor[1];
_eventSetDescriptor[0] = new EventSetDescriptor(beanClass,
"propertyChange",
Class.forName("java.beans.PropertyChangeListener"),
"propertyChange");
} catch (Exception e) {
throw new Error(e.toString());
}
// Publish descriptor ---------------------------------------------
try {
_beanDescriptor = new BeanDescriptor(beanClass);
_beanDescriptor.setDisplayName( "LDAP user authentication" );
_beanDescriptor.setShortDescription(
"LDAP user authentication -"
+ " provided a host, port, base, username, and password,"
+ " report if the user can be authenticated both as a"
+ " function return and as a Property change event." );
} catch (Exception e) {
}
}
/**
* @return the public properties
*/
public PropertyDescriptor[] getPropertyDescriptors() {
return _propertyDescriptor;
}
public EventSetDescriptor[] getEventSetDescriptors() {
return _eventSetDescriptor;
}
public BeanInfo[] getAdditionalBeanInfo() {
return null;
}
public int getDefaultEventIndex() {
return -1;
}
public int getDefaultPropertyIndex() {
return -1;
}
public BeanDescriptor getBeanDescriptor() {
return _beanDescriptor;
}
private static Class beanClass;
private BeanDescriptor _beanDescriptor;
private EventSetDescriptor[] _eventSetDescriptor;
private PropertyDescriptor[] _propertyDescriptor;
}

View File

@@ -1,83 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
/**
* The exception thrown when there is a problem with either an LDAPFilter
* or with the File/URL/Buffer form which we're creating the LDAPFilter.
*
* @see LDAPFilter
* @see LDAPFilterDescriptor
* @version 1.0
*/
public class BadFilterException extends Exception {
private String m_strException;
private int m_nLine = -1;
/**
* Creates an <b>Unknown</b> BadFilterException
*/
public BadFilterException () {
m_strException = "Unknown Error";
}
/**
* Creates a BadFilterException with the
* given string
*/
public BadFilterException ( String s ) {
m_strException = s;
}
/**
* Creates a BadFilterException with the
* given string and line number
*/
public BadFilterException ( String s, int nErrorLineNumber ) {
m_strException = s;
m_nLine = nErrorLineNumber;
}
/**
* Returns the exception string.
*/
public String toString() {
return m_strException;
}
/**
* If appropriate, return the line number of the ldapfilter.conf
* file (or url or buffer) where this error occurred. This method
* will return -1 if the line number was not set.
*/
public int getErrorLineNumber() {
return m_nLine;
}
/**
* Set the line number in the ldapfilter.conf file/url/buffer where
* this error occurred.
*/
void setErrorLineNumber ( int nErrorLineNumber ) {
m_nLine = m_nLine;
}
}

View File

@@ -1,525 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
import netscape.ldap.*;
import java.util.*;
/**
* Represents an LDAP search filter, which includes the string-based
* representation of the filter and other information retrieved from the
* LDAP filter configuration file (or from a buffer in memory or from a URL).
* <P>
*
* Although this class provides methods to create and modify LDAP
* filters, in most cases, you do not need to use these methods.
* In most situations, these classes are used to access individual
* filters from filter configuration files.
* <P>
*
* For example, you might do the following:
* <P>
*
* <OL>
* <LI>Connect to the LDAP server and accept a set of search criteria.
* <LI>Create an LDAP filter configuration file.
* <LI>Call the <CODE>LDAPFilterDescriptor</CODE> constructor to
* read the filter configuration file into memory.
* <LI>Call the <CODE>getFilters</CODE> method to get a list of
* filters that match the search criteria. This list of filters
* is represented by an <CODE>LDAPFilterList</CODE> object.
* <LI>Iterate through the list of filters (each filter is represented
* by an <CODE>LDAPFilter</CODE> object), and apply the filter to
* a search.
* </OL>
* <P>
*
* For an example of using an object of this class and for more information on
* the filter configuration file syntax, see the documentation for <a
* href="n.l.u.LDAPFilterDescriptor.html">LDAPFilterDescriptor</a>.
* <P>
*
* @see LDAPFilterDescriptor
* @see LDAPFilterList
* @version 1.0
*/
public class LDAPFilter implements Cloneable {
private static final int DEFAULT_FILTER_LENGTH = 256;
private String m_strFilter = null;
private String m_strDescription; // token 4 from filter configuration file
private int m_nScope; // token 5 from filter configuration file
private boolean m_bIsExact;
private String m_strMatchPattern; // token 1 from filter configuration file
private String m_strDelimeter; // token 2 from filter configuration file
private String m_strFilterTemplate; // token 3 from filter configuration file
private int m_nLine;
private String m_strSuffix;
private String m_strPrefix;
/**
* Constructs an <CODE>LDAPFilter</CODE> object. In most situations,
* you do not need to construct an LDAPFilter object. Instead, you
* work with <CODE>LDAPFilter</CODE> objects created from the
* <CODE>LDAPFilter</CODE> objects and <CODE>LDAPFilterDescriptor</CODE>
* objects.
* <P>
*
* This constructor uses the integer value for a search scope in
* addition to other information to construct an <CODE>LDAPFilter</CODE>
* object. The integer value of the search scope can be one of the
* following:
* <ul>
* <li><CODE>LDAPConnection.SCOPE_BASE</CODE>
* <li><CODE>LDAPConnection.SCOPE_ONE</CODE>
* <li><CODE>LDAPConnection.SCOPE_SUB</CODE>
* </ul>
*
* If an invalid scope is specified, the constructor throws an
* <CODE>illegalArgumentException</CODE>.
*/
public LDAPFilter ( String strMatchPattern,
String strDelimeter,
String strFilterTemplate,
String strDescription,
int nScope ) throws IllegalArgumentException{
m_strMatchPattern = convertMatchPattern ( strMatchPattern );
m_strDelimeter = strDelimeter;
m_strFilterTemplate = strFilterTemplate;
m_strDescription = strDescription;
m_nScope = nScope;
}
/**
* Constructs an <CODE>LDAPFilter</CODE> object. In most situations,
* you do not need to construct an LDAPFilter object. Instead, you
* work with <CODE>LDAPFilter</CODE> objects created from the
* <CODE>LDAPFilter</CODE> objects and <CODE>LDAPFilterDescriptor</CODE>
* objects.
* <P>
*
* This constructor uses the string value for a search scope in
* addition to other information to construct an <CODE>LDAPFilter</CODE>
* object. The string value of the search scope can be one of the
* following:
* <ul>
* <li><CODE>&quot;base&quot;</CODE>
* <li><CODE>&quot;onelevel&quot;</CODE>
* <li><CODE>&quot;subtree&quot;</CODE>
* </ul>
*
* If an invalid scope is specified, the constructor throws an
* <CODE>illegalArgumentException</CODE>.
*/
public LDAPFilter ( String strMatchPattern,
String strDelimeter,
String strFilterTemplate,
String strDescription,
String strScope )
throws IllegalArgumentException {
if ( strScope.equals ( "base" ) ) {
m_nScope = LDAPConnection.SCOPE_BASE;
} else if ( strScope.equals ( "onelevel" ) ) {
m_nScope = LDAPConnection.SCOPE_ONE;
} else if ( strScope.equals ( "subtree" ) ) {
m_nScope = LDAPConnection.SCOPE_SUB;
}
m_strMatchPattern = strMatchPattern;
m_strDelimeter = strDelimeter;
m_strFilterTemplate = strFilterTemplate;
m_strDescription = strDescription;
}
/**
* Print out a string representation of the LDAPFilter.
* Basically, it prints out the appropriate fields.
* <P>
*
* For example, suppose you called the method in this way:
* <P>
*
* <PRE>System.out.println(filter.toString());</PRE>
*
* The resulting output might look like this:
* <P>
*
* <PRE>
* matchPtn: "@"
* delim: " "
* filttmpl: "(mail=%v*)"
* descript: "start of email address"
* scope: "LDAPConnection.SCOPE_SUB"
* line: "32"
* FILTER: "(mail=babs@aceindustry.com*)"
* </PRE>
*/
public String toString() {
StringBuffer strBuf = new StringBuffer ( 300 );
strBuf.append ( " matchPtn: \"" + m_strMatchPattern+"\"\n" );
strBuf.append ( " delim: \"" + m_strDelimeter+"\"\n" );
strBuf.append ( " filttmpl: \"" + m_strFilterTemplate+"\"\n" );
strBuf.append ( " descript: \"" + m_strDescription+"\"\n" );
switch ( m_nScope ) {
case LDAPConnection.SCOPE_BASE:
strBuf.append ( " scope: \"LDAPConnection.SCOPE_BASE\"\n" );
break;
case LDAPConnection.SCOPE_ONE:
strBuf.append ( " scope: \"LDAPConnection.SCOPE_ONE\"\n" );
break;
case LDAPConnection.SCOPE_SUB:
strBuf.append ( " scope: \"LDAPConnection.SCOPE_SUB\"\n" );
break;
}
strBuf.append ( " line: \"" + m_nLine+"\"\n" );
strBuf.append ( " FILTER: \"" + m_strFilter+"\"\n" );
return strBuf.toString();
}
/**
* Sets up the filter string, given the string <CODE>strValue</CODE>.
* If the <CODE>strPrefix</CODE> and <CODE>strSuffix</CODE> arguments
* are non-null strings, they are prepended and appended
* to the filter string (respectively).
* <P>
*
* This string, which is available through the <CODE>getFilter()</CODE>
* method, should be suitable for use as search criteria when
* calling the <CODE>LDAPConnection.search()</CODE> method.
* <P>
*
* <b>Notes:</b>
* <P>
*
* <UL>
* <LI>This method <i>does not</i> maintain the affixes
* set with the <CODE>LDAPFilterDescriptor.setFilterAffixes</CODE>
* method, so you
* need to explicitly define any filter prefixes or suffixes here.<p>
*
* <LI> This method only uses the
* strPrefix and strSuffix for this invocation of setupFilter. It
* does not redefine strPrefix and strSuffix for later
* invocations. <p>
* </UL>
* <P>
*
* @see netscape.ldap.util.LDAPFilterDescriptor#setFilterAffixes
* @see #setFilterAffixes
*/
public void setupFilter ( String strValue, String strPrefix,
String strSuffix ) {
createFilterString ( strValue, strPrefix, strSuffix );
}
/**
* Sets up the filter string, given the string <CODE>strValue</CODE>.
* This string, which is available through the <CODE>getFilter()</CODE>
* method, should be suitable for use as search criteria when
* calling the <CODE>LDAPConnection.search()</CODE> method.
* <P>
*
* <b>Note:</b> If you want to specify a filter prefix and suffix,
* you need to explicitly define them by calling the
* <CODE>setFilterAffixes()</CODE> method.
*
* @see netscape.ldap.util.LDAPFilterDescriptor#setFilterAffixes
* @see #setFilterAffixes
*
*/
public void setupFilter ( String strValue ) {
createFilterString ( strValue, null, null );
}
/**
* Create the filter string which can be used in
* LDAPConnection.search() and others given the parameter
* strValue. If strPrefix and strSuffix are non-null strings,
* prepend strPrefix and append strSuffix.
*/
void createFilterString ( String strValue, String strPrefix,
String strSuffix ) {
StringTokenizer strTok =
new StringTokenizer ( strValue, m_strDelimeter );
// Initialize an array of broken up values so that we
// can reference them directly.
String[] aValues = new String[strTok.countTokens()];
int nTokens = strTok.countTokens();
for ( int i = 0; i < nTokens; i++ ) {
aValues[i] = strTok.nextToken();
}
StringBuffer sbFilter = new StringBuffer ( DEFAULT_FILTER_LENGTH);
if ( strPrefix != null ) {
sbFilter.append ( strPrefix );
}
char[] cFilterTemplate = m_strFilterTemplate.toCharArray();
int i = 0;
while ( i < cFilterTemplate.length ) {
if ( cFilterTemplate[i] == '%' ) {
i++;
if ( cFilterTemplate[i] == 'v' ) {
i++;
switch ( cFilterTemplate[i] ) {
case '$':
sbFilter.append ( aValues[aValues.length] );
break;
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
int nValue = Integer.parseInt
( new Character
(cFilterTemplate[i]).toString() );
nValue--;
i++;
if ( cFilterTemplate[i] == '-' ) {
i++;
if ( Character.isDigit ( cFilterTemplate[i] )) {
int nValue2 = Integer.parseInt
( new Character
(cFilterTemplate[i]).toString() );
nValue2--;
for ( int j = nValue; j <= nValue2; j++ ) {
sbFilter.append ( aValues[j] );
sbFilter.append
( ( j == nValue2 ) ? "" : " " );
}
} else {
for ( int j = nValue; j < aValues.length;j++ ) {
sbFilter.append ( aValues[j] );
sbFilter.append
( ( j == aValues.length - 1 ) ? "" : " " );
}
sbFilter.append ( cFilterTemplate[i]);
}
} else {
sbFilter.append ( aValues[nValue] );
sbFilter.append ( cFilterTemplate[i] );
}
break;
// We just got a plain old %v, so insert the
// strValue
default:
sbFilter.append ( strValue );
sbFilter.append ( cFilterTemplate[i] );
break;
}
} else {
sbFilter.append ( "%" );
sbFilter.append ( cFilterTemplate[i] );
}
} else {
sbFilter.append ( cFilterTemplate[i] );
}
i++;
}
if ( strSuffix != null ) {
sbFilter.append ( strSuffix );
}
m_strFilter = sbFilter.toString();
}
/**
* Makes a copy of this <CODE>LDAPFilter</CODE> object.
*/
public Object clone() {
try {
return super.clone();
} catch ( CloneNotSupportedException e ) {
// this shouldn't happen, since we are Cloneable
throw new InternalError();
}
}
/**
* Set the line number from which this filter was created. This
* is used only when the LDAPFilter is created when an
* LDAPFilterDescriptor is initialized from a file/URL/buffer.
*/
void setLine ( int nLine ) {
m_nLine = nLine;
}
/**
* The ldapfilter.conf specifies match patterns in a funny way.
* A "." means "any character" except when used inside of a set of
* square brackets "[]", in which case, the "." means just a
* plain old period (not a * special character).
*
* This function converts periods inside of a set of square
* brackets into a "\." as per normal regexp code.
*/
String convertMatchPattern ( String strMatchPattern ) {
StringBuffer sb = new StringBuffer ( strMatchPattern.length() + 1);
char[] a_cMatchPattern = strMatchPattern.toCharArray();
boolean bInBrackets = false;
for ( int i = 0; i < a_cMatchPattern.length; i++ ) {
if ( a_cMatchPattern[i] == '.' ) {
if ( bInBrackets ) {
sb.append ( "\\" );
}
} else if ( a_cMatchPattern[i] == '[' ) {
bInBrackets = true;
} else if ( a_cMatchPattern[i] == ']' ) {
bInBrackets = false;
}
sb.append ( a_cMatchPattern[i] );
}
return sb.toString();
}
/**
* Returns the filter string. This method will return null if the
* filter string has not been calculated by the <CODE>setupFilter()</CODE>,
* <CODE>getFilter (strValue)</CODE>, or <CODE>getFilter (strValue,
* strPrefix, strSuffix )</CODE> methods.
*
* @see #setupFilter
* @see #getFilter
*/
public String getFilter () {
return m_strFilter;
}
/**
* Create a filter string given a string value. This method uses
* any Prefixes or Suffixes that have been set by the
* setFilterAffixes() method.<p>
*
* This is the same as doing:
* <pre>
* setupFilter ( strValue );
* getFilter();
* </pre>
*/
public String getFilter ( String strValue ) {
createFilterString ( strValue, m_strPrefix, m_strSuffix );
return m_strFilter;
}
/**
* Create a filter string given a string value. If strPrefix
* and/or strSuffix is non-null, these values are prepended and
* appended to the returned string.<p>
*
* This is the same as doing:
* <pre>
* setupFilter ( strValue, strPrefix, strSuffix );
* getFilter();
* </pre>
*/
public String getFilter ( String strValue, String strPrefix,
String strSuffix ) {
createFilterString ( strValue, strPrefix, strSuffix );
return m_strFilter;
}
/**
* Return this filter's match pattern. The match pattern is
* found as the first token in a filter configuration line in the
* ldapfilter.conf file.
*/
public String getMatchPattern() {
return m_strMatchPattern;
}
/**
* Return this filter's delimeter. The delmimeter is
* found as the second token in a filter configuration line in the
* ldapfilter.conf file.
*/
public String getDelimeter() {
return m_strDelimeter;
}
/**
* Return this filter's filter template. The filter template is
* found as the third token in a filter configuration line in the
* ldapfilter.conf file.
*/
public String getFilterTemplate() {
return m_strFilterTemplate;
}
/**
* Return this filter's description. The description is
* found as the fourth token in a filter configuration line in the
* ldapfilter.conf file.
*/
public String getDescription() {
return m_strDescription;
}
/**
* Return this filter's scope. The scope is
* found as the fifth (optional) token in a filter configuration
* line in the ldapfilter.conf file.
*/
public String getScope() {
switch ( m_nScope ) {
case LDAPConnection.SCOPE_BASE:
return "base";
case LDAPConnection.SCOPE_ONE:
return "onelevel";
case LDAPConnection.SCOPE_SUB:
return "subtree";
default:
return "UNKNOWN!";
}
}
/**
* Return this filter's line number. The line number is
* mostly a debugging variable to let the developer know which
* filter from the filter configuration file is being used.
*/
public String getLineNumber() {
return Integer.toString ( m_nLine );
}
public void setFilterAffixes ( String strPrefix, String strSuffix ) {
m_strPrefix = strPrefix;
m_strSuffix = strSuffix;
}
}

View File

@@ -1,492 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
import java.io.*;
import java.util.*;
import java.net.*;
import com.oroinc.text.regex.*;
import netscape.ldap.*;
/**
* Represents an LDAP filter configuration file read into memory.
* <P>
*
* Once you read in a filter file to create an object of this class,
* you can access the filter information through the methods that create
* <CODE>LDAPFilterList</CODE> and <CODE>LDAPFilter</CODE> objects.
* (You do not need to manually construct these objects yourself.)
* <P>
*
* This class (along with the other LDAP filter classes) provide
* functionality equivalent to the LDAP filter functions in the LDAP C API.
* <p>
*
* The format of the file/URL/buffer must be that as defined in the
* ldapfilter.conf(5) man page from the University of Michigan LDAP-3.3
* distribution. <p>
*
* The LDAP filter classes provide a powerful way to configure LDAP clients
* by modifying a configuration file.<p>
*
* The following is a short example for how to use the
* LDAP filter classes.
*
* <pre>
*
* // ... Setup LDAPConnection up here ...
* <p>
*
* LDAPFilterDescriptor filterDescriptor;
* <p>
*
* // Create the LDAPFilterDescriptor given the file
* // "ldapfilter.conf".
* try {
* filterDescriptor = new LDAPFilterDescriptor ( "ldapfilter.conf" );
* <p>
*
* // Now retrieve the Filters in the form of an
* // LDAPFilterList
* LDAPFilterList filterList = new filterDescriptor.getFilters("match_tag", "string_user_typed");
* <p>
*
* // For each filter, do the search. Normally, you wouldn't
* // do the search if the first filter matched, but this is
* // just showing the enumeration type aspects of
* // LDAPFilterList
* LDAPFilter filter;
* while ( filterList.hasMoreElements() ) {
* filter = filterList.next();
* LDAPResults results = LDAPConnection.search (
* strBase, // base DN
* filter.getScope(), // scope
* filter.getFilter(), // completed filter
* null, // all attribs
* false ); // attrsOnly?
* }
* <p>
*
* // ...more processing here...
* } catch ( BadFilterException e ) {
* System.out.println ( e.toString() );
* System.exit ( 0 );
* } catch ( IOException e ) {
* // ...handle exception here...
* }
* </pre>
*
*
* @see LDAPFilterList
* @see LDAPFilter
* @version 1.0
*/
public class LDAPFilterDescriptor {
private Vector m_vFilterSet = new Vector();
private String m_strLine;
private int m_nLine;
private String m_strPrefix;
private String m_strAffix;
private LDAPIntFilterSet m_tmpFilterSet = null;
private String m_strLastMatchPattern = null;
private String m_strLastDelimiter = null;
/**
* The Default scope is used when a scope is not defined
* in the filter file. The scope is the only "optional" parameter
* in the file.
*/
private static final int DEFAULT_SCOPE = LDAPConnection.SCOPE_SUB;
/**
* Creates an LDAPFilterDescriptor object from an existing filter
* configuration file. This file has the format as defined in the
* ldapfilter.conf(5) man page.
*
* @exception netscape.ldap.util.BadFilterException
* One of the filters was not generated properly. Most likely
* this is due to an improperly formatted ldapfilter.conf file.
*/
public LDAPFilterDescriptor ( String strFile )
throws FileNotFoundException, BadFilterException {
DataInputStream inputStream =
new DataInputStream ( new FileInputStream ( strFile ) );
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
init( reader );
}
/**
* Creates an LDAPFilterDescriptor object from an existing
* StringBuffer. This file has the format as defined in the
* ldapfilter.conf(5) man page.
*
* @exception netscape.ldap.util.BadFilterException
* One of the filters was not generated properly. Most likely
* this is due to an improperly formatted ldapfilter.conf file.
*/
public LDAPFilterDescriptor ( StringBuffer strBuffer )
throws BadFilterException {
init( strBuffer );
}
/**
* Creates an LDAPFilterDescriptor object from a URL.
* This file has the format as defined in the
* ldapfilter.conf(5) man page.
*
* @exception netscape.ldap.util.BadFilterException
* One of the filters was not generated properly. Most likely
* this is due to an improperly formatted ldapfilter.conf file.
*/
public LDAPFilterDescriptor ( URL url )
throws IOException, BadFilterException {
URLConnection urlc = url.openConnection();
DataInputStream inputStream =
new DataInputStream ( urlc.getInputStream() );
BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));
init( reader );
}
/**
* This function initializes the LDAPFilterDescriptor. It's
* called internally, and should never be called directly by the
* developer.
*/
private void init ( Object inputObj)
throws BadFilterException {
String strCommentPattern = "(?:^\\s*#|^\\s*$)";
String strDataPattern = "(?:\\s*\"([^\"]*)\"|([^\\s]*))\\s*";
Perl5Compiler compiler = new Perl5Compiler();
Perl5Pattern patComment;
Perl5Pattern patData;
Vector vStrings = new Vector ( 5 );
try {
patComment = (Perl5Pattern)compiler.compile ( strCommentPattern );
patData = (Perl5Pattern)compiler.compile ( strDataPattern );
} catch ( MalformedPatternException e ) {
// This should NEVER happen...
System.out.println ( "FATAL Error, couldn't compile pattern");
System.out.println ( " " + e.getMessage() );
return;
}
// Setup some temporary variables.
m_nLine = 0;
try {
if (inputObj instanceof StringBuffer) {
StringBuffer ibuffer = (StringBuffer)inputObj;
StringBuffer buffer = new StringBuffer();
for (int i=0; i<ibuffer.length(); i++) {
if (ibuffer.charAt(i) == '\n') {
m_strLine = buffer.toString();
m_nLine++;
setFilter(patComment, patData, vStrings);
buffer = new StringBuffer();
} else
buffer.append(ibuffer.charAt(i));
}
} else {
while ((m_strLine=((BufferedReader)inputObj).readLine()) != null) {
m_nLine++;
setFilter(patComment, patData, vStrings);
}
}
// BUGBUG: Fixed. 7-28-97
// We're done with the input, so we need to append the
// last temporary FilterSet into the list of FilterSets.
if ( m_tmpFilterSet != null ) {
m_vFilterSet.addElement ( m_tmpFilterSet );
}
} catch ( IOException e ) {
}
}
private void setFilter(Perl5Pattern patComment, Perl5Pattern patData,
Vector vStrings) throws IOException, BadFilterException {
MatchResult result;
Perl5Matcher matcher = new Perl5Matcher();
PatternMatcherInput input;
LDAPFilter tmpFilter = null;
input = new PatternMatcherInput ( m_strLine );
if ( ! ( matcher.contains ( input, patComment ) ) ) {
input.setCurrentOffset(input.getBeginOffset());
// System.out.println ( "\nNEW LINE: " + m_strLine );
if ( ! vStrings.isEmpty() ) {
vStrings.removeAllElements();
}
while ( matcher.contains ( input, patData ) ) {
// Within this while loop, we're looking for
// all the data tokens. Our regular
// expression is setup to look for words
// separated by whitespace or sets of
// characters in quotataion marks. A remnant
// of the regexp is that we have two
// backreferences, only one will have data at
// any time.
result = matcher.getMatch();
for ( int i = 1; i <=2; i++ ) {
if ( result.group(i) != null ) {
if ( ! result.group(i).equals ( "" ) ) {
//System.out.println ( "Match #" + i +
// ": \"" + result.group(i) + "\"" );
vStrings.addElement ( result.group(i));
}
}
}
}
switch ( vStrings.size() ) {
case 1:
// If the current filter set is not null,
// add it to the filter set vector.
if ( m_tmpFilterSet != null ) {
m_vFilterSet.addElement ( m_tmpFilterSet );
}
// Now create a new filterset.
m_tmpFilterSet = new LDAPIntFilterSet
( (String)vStrings.elementAt ( 0 ) );
break;
// Two tokens mens we're the the second (or
// higher line in a token. We need to append
// the information stored in the list onto
// the tmpFilter.
case 2:
if ( ( m_strLastMatchPattern != null ) &&
( m_strLastDelimiter != null ) ) {
tmpFilter = new LDAPFilter(
m_strLastMatchPattern,
m_strLastDelimiter,
(String)vStrings.elementAt ( 0 ),
(String)vStrings.elementAt ( 1 ),
DEFAULT_SCOPE );
tmpFilter.setLine ( m_nLine );
if ( m_tmpFilterSet != null ) {
m_tmpFilterSet.appendFilter ( tmpFilter );
} else {
throw MakeException ( "Attempting to add a filter to a null filterset" );
}
} else {
throw MakeException ( "Attempting to create a relative filter with no preceeding full filter" );
}
break;
// Three tokens means we're the second (or
// higher line in a filter. create a new
// filter grabbing info from the last filter
case 3:
if ( ( m_strLastMatchPattern != null ) &&
( m_strLastDelimiter != null ) ) {
tmpFilter = new LDAPFilter (
m_strLastMatchPattern,
m_strLastDelimiter,
(String)vStrings.elementAt ( 0 ),
(String)vStrings.elementAt ( 1 ),
(String)vStrings.elementAt ( 2 ) );
tmpFilter.setLine ( m_nLine );
if ( m_tmpFilterSet != null ) {
m_tmpFilterSet.appendFilter ( tmpFilter );
} else {
throw MakeException
("Attempting to add a filter to a null filterset");
}
} else {
throw MakeException
("Attempting to create a relative filter with no preceeding full filter" );
}
break;
// 4 tokens means this is the first line in a
// token. All data is new. However, we're using
// the default scope.
case 4:
tmpFilter = new LDAPFilter (
(String)vStrings.elementAt ( 0 ),
(String)vStrings.elementAt ( 1 ),
(String)vStrings.elementAt ( 2 ),
(String)vStrings.elementAt ( 3 ),
DEFAULT_SCOPE );
tmpFilter.setLine ( m_nLine );
m_strLastMatchPattern = (String)vStrings.elementAt ( 0 );
m_strLastDelimiter = (String)vStrings.elementAt ( 1 );
if ( m_tmpFilterSet != null ) {
m_tmpFilterSet.newFilter ( tmpFilter );
} else {
throw MakeException
("Attempting to add a filter to a null filterset");
}
break;
// 5 tokens means this is the first line in a
// token. All data is new.
case 5:
tmpFilter = new LDAPFilter (
(String)vStrings.elementAt ( 0 ),
(String)vStrings.elementAt ( 1 ),
(String)vStrings.elementAt ( 2 ),
(String)vStrings.elementAt ( 3 ),
(String)vStrings.elementAt ( 4 ) );
tmpFilter.setLine ( m_nLine );
m_strLastMatchPattern = (String)vStrings.elementAt ( 0 );
m_strLastDelimiter = (String)vStrings.elementAt ( 1 );
if ( m_tmpFilterSet != null ) {
m_tmpFilterSet.newFilter ( tmpFilter );
} else {
throw MakeException
("Attempting to add a filter to a null filterset");
}
break;
default:
throw MakeException ( "Wrong number of tokens (" + vStrings.size() + ")" );
//break;
}
}
}
/**
* just a utility method to create an exception.
*/
private BadFilterException MakeException ( String strMsg ) {
return new BadFilterException
( "BadFilterException while creating Filters,\n" +
"Line Number: " + m_nLine +
",\n --> " + m_strLine + "\nThe error is: " +
strMsg, m_nLine );
}
/**
* Output a text dump of this filter descriptor. It cycles
* through all of the internal LDAPIntFilterSet objects and calls
* their toString() methods.
*
* @see LDAPIntFilterSet#toString
*/
public String toString() {
StringBuffer strBuf = new StringBuffer ( 4000 );
for ( int i = 0; i < m_vFilterSet.size(); i++ ) {
strBuf.append ( "Filter Set number: " + i + "\n" );
strBuf.append (
((LDAPIntFilterSet)m_vFilterSet.elementAt ( i )).toString() +
"\n" );
strBuf.append ( "\n" );
//System.out.println ( (m_vFilterSet.elementAt ( i )).toString());
}
return strBuf.toString();
}
/**
* Return all the filters which match the strTagPat (regular
* expression), and the user input (strValue)
*/
public LDAPFilterList getFilters ( String strTagPat, String strValue )
throws IllegalArgumentException {
strTagPat = strTagPat.trim();
strValue = strValue.trim();
if ( ( strTagPat == null ) || ( strTagPat.equals ("") ) ) {
throw new IllegalArgumentException
( "The Tag Pattern can not be null" );
}
if ( ( strValue == null ) || ( strValue.equals ("") ) ) {
throw new IllegalArgumentException ( "The Value can not be null" );
}
LDAPFilterList retList = new LDAPFilterList();
Perl5Compiler compiler = new Perl5Compiler();
Perl5Pattern patTag; // The strTagPat that's compiled
// For efficiency, we're pre-allocating a patternMatcherInput
// here.
PatternMatcherInput matcherValue = new PatternMatcherInput ( strValue );
// first we need to make a new regexp from the strTagPat
// For efficiency, we're precompiling the strTagPat into
// a pattern here. That pattern doesn't change, the Tag string
// changes per LDAPFIlterSet.
try {
patTag = (Perl5Pattern)compiler.compile ( strTagPat );
} catch ( MalformedPatternException e ) {
throw new IllegalArgumentException
( "The parameter: " + strTagPat + " is not valid" );
}
// We "ask" each of the filterset's to see if there is
// a matching filter.
boolean bMatched = false;
int i = 0;
while ( ! bMatched ) {
Vector vMatchingFilters =
((LDAPIntFilterSet)m_vFilterSet.elementAt ( i )).getFilters
(patTag, matcherValue );
if ( vMatchingFilters.size() > 0 ) {
for ( int j = 0; j < vMatchingFilters.size(); j++ ) {
LDAPFilter tmpFilter =
(LDAPFilter)
((LDAPFilter)
vMatchingFilters.elementAt ( j )).clone();
tmpFilter.setupFilter ( strValue, m_strPrefix,
m_strAffix );
bMatched = true; // this really doesn't matter.
retList.add ( tmpFilter );
}
return retList;
}
i++;
}
return null;
}
/**
* Prepend the parameter (strPrefix) and append the second
* parameter (strAffix) to every filter that is returned by the
* getFilters() method. <p>
*/
public void setFilterAffixes ( String strPrefix, String strAffix ) {
m_strPrefix = strPrefix;
m_strAffix = strAffix;
}
}

View File

@@ -1,97 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
import java.util.*;
/**
* The list of LDAPFilter objects returned from a LDAPFilterDescriptor
* Object. Note that this is an enumeration, so if multiple iterations
* are needed, save the results.
*
* @see LDAPFilterDescriptor
* @see LDAPFilter
* @version 1.0
*/
public class LDAPFilterList implements Enumeration {
private Vector m_vFilterList;
private static int DEFAULT_LIST_SIZE = 2;
/**
* Constructs an LDAPFilterList object. This methos shouldn't need to
* be called by the developer directly. Construction of the
* LDAPFilterList object should take place when the Prepare function
* of LDAPFilterDescriptor is called.
*
*/
public LDAPFilterList () {
m_vFilterList = new Vector ( DEFAULT_LIST_SIZE );
}
/**
* Add an LDAPFilter to the private vector. Since the filter we're
* being passed has already been cloned from the master
* LDAPFilterDescriptor set, all we have to do is add it to the list.
*/
void add ( LDAPFilter filter ) {
m_vFilterList.addElement ( filter );
}
/**
* Returns true if there are any LDAPFilter objects to returned.
*/
public boolean hasMoreElements() {
return ( ! m_vFilterList.isEmpty() );
}
/**
* Returns the next LDAPFilter as an Object. Note: the preferred way
* to return the next LDAPFilter is to call next()
*
* @see LDAPFilterList#next()
* @return The next LDAPFilter object (as an instance of Object)
*/
public Object nextElement() {
Object o = m_vFilterList.firstElement();
m_vFilterList.removeElementAt ( 0 );
return o;
}
/**
* Returns the next LDAPFilter
*
* @return The next LDAPFilter
*/
public LDAPFilter next() {
Object o = m_vFilterList.firstElement();
m_vFilterList.removeElementAt ( 0 );
return (LDAPFilter)o;
}
/**
* Return the number of filters in the filter list.
* Note that this number decreases every time next() or nextElement() is
* called because the elements are removed as they're returned.
*/
public int numFilters (){
return m_vFilterList.size();
}
}

View File

@@ -1,114 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
import java.util.*;
import com.oroinc.text.regex.*;
/**
* Represents an Internal LDAPFilterList object. This is an internal object
* that should never be instantiated directly by the developer. We
* store all filters that have the same match pattern here.
*/
public class LDAPIntFilterList {
private Vector m_vFilter;
private String m_strMatchPattern;
// a regexp pattern of m_strMatchPattern
private Perl5Pattern m_patMatch = null;
private Perl5Matcher m_matcher;
private Perl5Compiler m_compiler;
LDAPIntFilterList ( LDAPFilter filter ) throws
BadFilterException {
m_strMatchPattern = filter.getMatchPattern();
// We're going to compile the pattern for strMatchPattern
// now, so that we can throw an exception if it is a bad
// pattern.
m_matcher = new Perl5Matcher();
m_compiler = new Perl5Compiler();
try {
m_patMatch = (Perl5Pattern)m_compiler.compile
( m_strMatchPattern );
} catch ( MalformedPatternException e ) {
throw new BadFilterException (
"The Regular Expression for this filter is bad. " +
"Line number: " + filter.getLineNumber() );
}
m_vFilter = new Vector();
m_vFilter.addElement ( filter );
}
/**
* Add a "relative" filter to an existing filter list. We do this
* becuse the ldapfilter file defines that we can have multiple
* filters per match pattern (and delimeter). This method is
* called by the parent LDAPIntFilterSet because the file specified
* a "relative" filter (a filter in the ldapfilter.conf file that
* only has 2 or 3 tokens).
*/
void AddFilter ( LDAPFilter filter ) {
m_vFilter.addElement ( filter );
}
/**
* Return the number of Filters this InternalFilterList contains.
*/
// Since we're storing the filters as a vector, just return
// Vector.size().
int numFilters () {
return m_vFilter.size();
}
public String toString() {
StringBuffer strBuf = new StringBuffer ( 100 );
strBuf.append ( " Match Pattern: \"" + m_strMatchPattern + "\"\n" );
for ( int i = 0; i < m_vFilter.size(); i++ ) {
strBuf.append ( ((LDAPFilter)m_vFilter.elementAt(i)).toString() );
strBuf.append ( "\n" );
}
return strBuf.toString();
}
/**
* Return the requested filter.
*/
LDAPFilter getFilter ( int nFilter ) {
return (LDAPFilter)m_vFilter.elementAt ( nFilter );
}
/**
* Try to match the filter to the given string. This method is called
* when the user types in data. We match the expression (stored in
* m_strMatchPattern) to the value that the user typed in (the
* parameter to this method).
*/
boolean MatchFilter ( PatternMatcherInput matcherValue ) {
matcherValue.setCurrentOffset ( matcherValue.getBeginOffset() );
return m_matcher.contains ( matcherValue, m_patMatch );
}
}

View File

@@ -1,159 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.util;
import java.util.*;
import com.oroinc.text.regex.*;
/**
* Represents an LDAPIntFilterSet object. This is an internal object that
* should never be instantiated directly by the developer.
*/
public class LDAPIntFilterSet {
private Vector m_vLDAPIntFilterList;
private String m_strTag;
private PatternMatcherInput m_matcherTag = null;
private Perl5Matcher m_matcher = null;
/**
* Return a Vector of filters that match botht the tag pattern
* (in Perl5Pattern form), and the string strValue. This method
* should only be called by LDAPFilterDescriptor().
*/
// remember, we have the string (m_strTag), the pattern has
// been precompiled by the LDAPFilterDescriptor (patTag)
Vector getFilters ( Perl5Pattern patTag,
PatternMatcherInput matcherValue ) {
Vector vRet = new Vector();
if ( m_matcherTag == null ) {
m_matcher = new Perl5Matcher();
m_matcherTag = new PatternMatcherInput ( m_strTag );
} else {
m_matcherTag.setCurrentOffset ( m_matcherTag.getBeginOffset() );
}
// Check to see if the strTag (converted into patTag)
// matches the tag string from the file (converted into
// m_matcherTag)
if ( m_matcher.contains ( m_matcherTag, patTag ) ) {
LDAPIntFilterList tmpIntFilterList;
LDAPFilter tmpFilter;
for ( int i = 0; i < m_vLDAPIntFilterList.size(); i++ ) {
tmpIntFilterList =
(LDAPIntFilterList)m_vLDAPIntFilterList.elementAt ( i );
if ( tmpIntFilterList.MatchFilter ( matcherValue ) ) {
for (int j=0; j < tmpIntFilterList.numFilters(); j++ ) {
vRet.addElement ( tmpIntFilterList.getFilter ( j ));
}
// potential BUGBUG, i'm not sure if we want
// to get out of this loop now or if we just
// want to get out of the external loop. For
// now, go with the former.
return vRet;
}
}
}
return vRet;
}
/**
* Create an LDAPIntFilterSet with a given Tag string. The tag
* string specifies which applications or query types should use
* this filter set. It is normally a single token on a line by
* itself in the filter configuration file. <p>
* For more information about the filter configuration file, see
* the man page for ldapfilter.conf.
*/
public LDAPIntFilterSet ( String strTag ) {
m_strTag = strTag;
m_vLDAPIntFilterList = new Vector();
}
/**
* Add a new filter to this filter set.
*
* @exception netscape.ldap.util.BadFilterException
* If the regular expression pattern given in the first token
* is bad.
*/
void newFilter ( LDAPFilter filter ) throws BadFilterException {
LDAPIntFilterList tmpFilterList = new LDAPIntFilterList( filter );
m_vLDAPIntFilterList.addElement ( tmpFilterList );
}
/**
* Append a new filter to the existing set. This happens when the
* LDAPFilterDescriptor object reads a line from the filter
* configuration file that has 2 or 3 tokens.
*/
void appendFilter ( LDAPFilter filter ) {
((LDAPIntFilterList)m_vLDAPIntFilterList.lastElement()).AddFilter ( filter );
}
/**
* Return true if this filter set matches the regular expression
* string that is passed in.
*/
boolean match ( String strTagPat ) {
Perl5Matcher matcher = new Perl5Matcher();
Perl5Compiler compiler = new Perl5Compiler();
PatternMatcherInput input;
Perl5Pattern patTag;
MatchResult result;
try {
patTag = (Perl5Pattern)compiler.compile ( strTagPat );
} catch ( MalformedPatternException e ) {
// Need to do something here.
return false;
}
input = new PatternMatcherInput ( m_strTag );
if ( matcher.contains ( input, patTag ) ) {
return true;
} else {
return false;
}
}
/**
* Print out the String representation of this object. It calls
* the toString() method of all the LDAPFilter objects contained
* within it's set.
*
* @see LDAPFilter#toString()
*/
public String toString() {
StringBuffer strBuf = new StringBuffer ( 2000 );
strBuf.append ( " strTag: " + m_strTag + "\n" );
for ( int i = 0; i < m_vLDAPIntFilterList.size(); i++ ) {
strBuf.append ( " filter #: " + i + "\n" );
strBuf.append (
((LDAPIntFilterList)m_vLDAPIntFilterList.elementAt(i)).toString() );
strBuf.append ( "\n" );
}
return strBuf.toString();
}
}

View File

@@ -1,123 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl;
import java.util.Hashtable;
import javax.security.auth.callback.CallbackHandler;
/**
* An interface for creating instances of <tt>SaslClient</tt>.
*
* @see SaslClient
* @see Sasl
*/
public class ClientFactory implements SaslClientFactory {
public ClientFactory() {
_mechanismTable = new Hashtable();
for( int i = 0; i < _mechanismNames.length; i++ ) {
_mechanismTable.put( _mechanismNames[i],
PACKAGENAME + '.' +
_mechanismClasses[i] );
}
}
/**
* Creates a SaslClient using the parameters supplied.
*
* @param mechanisms The non-null list of mechanism names to try.
* Each is the IANA-registered name of a SASL mechanism. (e.g.
* "GSSAPI", "CRAM-MD5").
* @param authorizationId The possibly null authorization ID to
* use. When the SASL authentication completes successfully, the
* entity named by authorizationId is granted access.
* @param protocol The non-null string name of the protocol for
* which the authentication is being performed (e.g., "ldap").
* @param serverName The non-null string name of the server to
* which we are creating an authenticated connection.
* @param props The possibly null properties to be used by the SASL
* mechanisms to configure the authentication exchange. For example,
* "javax.security.sasl.encryption.maximum" might be used to
* specify the maximum key length to use for encryption.
* @param cbh The possibly null callback handler to used by the
* SASL mechanisms to get further information from the
* application/library to complete the authentication. For example,
* a SASL mechanism might require the authentication ID and
* password from the caller.
* @return A possibly null <tt>SaslClient</tt> created using the
* parameters supplied. If null, this factory cannot produce a
* <tt>SaslClient</tt> using the parameters supplied.
* @exception SaslException if it cannot create a
* <tt>SaslClient</tt> because of an error.
*/
public SaslClient createSaslClient(
String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh ) throws SaslException {
String mechName = null;
if ( Sasl.debug ) {
System.out.println(
"ClientFactory.createSaslClient" );
}
for( int i = 0; (mechName == null) &&
(i < mechanisms.length); i++ ) {
mechName = (String)_mechanismTable.get( mechanisms[i] );
}
if ( mechName != null ) {
try {
Class c = Class.forName( mechName );
SaslClient client = (SaslClient)c.newInstance();
if ( Sasl.debug ) {
System.out.println(
"ClientFactory.createSaslClient: newInstance for " +
mechName + " returned " + client);
}
return client;
} catch ( Exception e ) {
System.err.println(
"ClientFactory.createSaslClient: " + e );
}
} else {
if ( Sasl.debug ) {
System.out.println(
"ClientFactory.createSaslClient: does not support " +
"any of the mechanisms" );
for( int i = 0; i < mechanisms.length; i++ ) {
System.out.println( " " + mechanisms[i] );
}
}
}
return null;
}
/**
* Returns an array of names of mechanisms supported by this
* factory.
* @return A non-null array containing IANA-registered SASL
* mechanism names.
*/
public String[] getMechanismNames() {
return _mechanismNames;
}
private final String PACKAGENAME = "com.netscape.sasl.mechanisms";
private final String[] _mechanismNames = { "EXTERNAL" };
private final String[] _mechanismClasses = { "SaslExternal" };
private Hashtable _mechanismTable;
}

View File

@@ -1,235 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl;
import java.util.Hashtable;
import javax.security.auth.callback.CallbackHandler;
import java.util.StringTokenizer;
import java.io.*;
/**
* A static class for creating SASL clients and servers.
*<p>
* This class defines the policy of how to locate, load, and instantiate
* SASL clients and servers.
* Currently, only the client methods are available.
*<p>
* For example, an application or library gets a SASL client by doing
* something like:
*<blockquote><pre>
* SaslClient sc = Sasl.createSaslClient(mechanisms,
* authorizationId, protocol, serverName, props, callbackHandler);
*</pre></blockquote>
* It can then proceed to use the client create an authentication connection.
* For example, an LDAP library might use the client as follows:
*<blockquote><pre>
* InputStream is = ldap.getInputStream();
* OutputStream os = ldap.getOutputStream();
* byte[] toServer = sc.createInitialResponse();
* LdapResult res = ldap.sendBindRequest(dn, sc.getName(), toServer);
* while (!sc.isComplete() && res.status == SASL_BIND_IN_PROGRESS) {
* toServer = sc.evaluateChallenge(res.getBytesFromServer());
* if (toServer != null) {
* res = ldap.sendBindRequest(dn, sc.getName(), toServer);
* }
* }
* if (sc.isComplete() && res.status == SUCCESS) {
* // Get the input and output streams; may be unchanged
* is = sc.getInputStream( is );
* os = sc.getOutputStream( os );
* // Use these streams from now on
* ldap.setInputStream( is );
* ldap.setOutputStream( os );
* }
*</pre></blockquote>
*
* IMPLEMENTATION NOTE: To use this class on JDK1.2, the caller needs:
*<ul><tt>
*<li>java.lang.RuntimePermission("getSecurityManager")
*<li>java.lang.RuntimePermission("getClassLoader")
*<li>java.util.PropertyPermission("javax.security.sasl.client.pkgs", "read");
*</tt></ul>
*/
public class Sasl {
private static SaslClientFactory clientFactory = null;
static final boolean debug = false;
// Cannot create one of these
private Sasl() {
}
/**
* The property name containing a list of package names, separated by
* '|'. Each package contains a class named <tt>ClientFactory</tt> that
* implements the <tt>SaslClientFactory</tt> interface.
* Its value is "javax.security.sasl.client.pkgs".
*/
public static final String CLIENTPKGS = "javax.security.sasl.client.pkgs";
/**
* Creates a SaslClient using the parameters supplied.
* The algorithm for selection is as follows:
*<ol>
*<li>If a factory has been installed via <tt>setSaslClientFactory()</tt>,
* try it first. If non-null answer produced, return it.
*<li>The <tt>javax.security.sasl.client.pkgs</tt> property contains
* a '|'-separated list of package names. Each package contains a
* class named <tt>ClientFactory</tt>. Load each factory
* and try to create a <tt>SaslClient</tt>.
* Repeat this for
* each package on the list until a non-null answer is produced.
* If non-null answer produced, return it.
*<li>Repeat previous step using the <tt>javax.security.sasl.client.pkgs</tt>
* System property.
*<li>If no non-null answer produced, return null.
*</ol>
*
* @param mechanisms The non-null list of mechanism names to try. Each is the
* IANA-registered name of a SASL mechanism. (e.g. "GSSAPI", "CRAM-MD5").
* @param authorizationId The possibly null authorization ID to use. When
* the SASL authentication completes successfully, the entity named
* by authorizationId is granted access.
* @param protocol The non-null string name of the protocol for which
* the authentication is being performed (e.g., "ldap").
* @param serverName The non-null string name of the server to which
* we are creating an authenticated connection.
* @param props The possibly null properties to be used by the SASL
* mechanisms to configure the authentication exchange. For example,
* "javax.security.sasl.encryption.maximum" might be used to specify
* the maximum key length to use for encryption.
* @param cbh The possibly null callback handler to used by the SASL
* mechanisms to get further information from the application/library
* to complete the authentication. For example, a SASL mechanism might
* require the authentication ID and password from the caller.
*@return A possibly null <tt>SaslClient</tt> created using the parameters
* supplied. If null, cannot find a <tt>SaslClientFactory</tt>
* that will produce one.
*@exception SaslException If cannot create a <tt>SaslClient</tt> because
* of an error.
*/
public static SaslClient createSaslClient(
String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh) throws SaslException {
if (debug) {
System.out.println("Sasl.createSaslClient");
}
SaslClient mech = null;
// If factory has been set, try it first
if (clientFactory != null) {
mech = clientFactory.createSaslClient(
mechanisms, authorizationId,
protocol, serverName, props, cbh);
}
// No mechanism produced
if (mech == null) {
String pkgs = (props == null) ? null :
(String) props.get(CLIENTPKGS);
// Try properties argument
if (pkgs != null) {
mech = loadFromPkgList(pkgs, mechanisms,
authorizationId,
protocol, serverName,
props, cbh);
}
// Try system properties
if (mech == null &&
(pkgs = System.getProperty(CLIENTPKGS)) != null) {
mech = loadFromPkgList(pkgs, mechanisms,
authorizationId,
protocol, serverName,
props, cbh);
}
}
return mech;
}
private static SaslClient loadFromPkgList(String pkgs,
String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh)
throws SaslException {
StringTokenizer packagePrefixIter = new StringTokenizer(pkgs, "|");
SaslClient mech = null;
SaslClientFactory fac = null;
while (mech == null && packagePrefixIter.hasMoreTokens()) {
String pkg = packagePrefixIter.nextToken().trim();
String clsName = pkg + ".ClientFactory";
if (debug) {
System.out.println("Sasl.loadFromPkgList: " + clsName);
}
Class cls = null;
try {
cls = Class.forName(clsName);
} catch (Exception e) {
System.err.println( "Sasl.loadFromPkgList: " + e );
}
if (cls != null) {
try {
fac = (SaslClientFactory) cls.newInstance();
} catch (InstantiationException e) {
throw new SaslException(
"Cannot instantiate " + clsName);
} catch (IllegalAccessException e) {
throw new SaslException(
"Cannot access constructor of " + clsName);
}
mech = fac.createSaslClient(mechanisms, authorizationId,
protocol, serverName, props,
cbh);
}
}
return mech;
}
/**
* Sets the default <tt>SaslClientFactory</tt> to use.
* This method sets <tt>fac</tt> to be the default factory.
* It can only be called with a non-null value once per VM.
* If a factory has been set already, this method throws
* <tt>IllegalStateException</tt>.
* @param fac The possibly null factory to set. If null, doesn't
* do anything.
* @exception IllegalStateException If factory already set.
*/
public static void setSaslClientFactory(SaslClientFactory fac) {
if (clientFactory != null) {
throw new IllegalStateException (
"SaslClientFactory already defined");
}
SecurityManager security = System.getSecurityManager();
if (security != null) {
security.checkSetFactory();
}
clientFactory = fac;
}
}

View File

@@ -1,140 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl;
import java.util.Hashtable;
import java.io.*;
/**
* Performs SASL authentication as a client.
*<p>
* A protocol library such as one for LDAP gets an instance of this
* class in order to perform authentication defined by a specific SASL
* mechanism. Invoking methods on the <tt>SaslClient</tt> instance
* process challenges and create responses according to the SASL
* mechanism implemented by the <tt>SaslClient</tt>.
* As the authentication proceeds, the instance
* encapsulates the state of a SASL client's authentication exchange.
*<p>
* Here's an example of how an LDAP library might use a <tt>SaslClient</tt>.
* It first gets an instance of a <tt>SaslClient</tt>:
*<blockquote><pre>
* SaslClient sc = Sasl.createSaslClient(mechanisms,
* authorizationId, protocol, serverName, props, callbackHandler);
*</pre></blockquote>
* It can then proceed to use the client for authentication.
* For example, an LDAP library might use the client as follows:
*<blockquote><pre>
* InputStream is = ldap.getInputStream();
* OutputStream os = ldap.getOutputStream();
* byte[] toServer = sc.createInitialResponse();
* LdapResult res = ldap.sendBindRequest(dn, sc.getName(), toServer);
* while (!sc.isComplete() && res.status == SASL_BIND_IN_PROGRESS) {
* toServer = sc.evaluateChallenge(res.getBytesFromServer());
* if (toServer != null) {
* res = ldap.sendBindRequest(dn, sc.getName(), toServer);
* }
* }
* if (sc.isComplete() && res.status == SUCCESS) {
* // Get the input and output streams; may be unchanged
* is = sc.getInputStream( is );
* os = sc.getOutputStream( os );
* // Use these streams from now on
* ldap.setInputStream( is );
* ldap.setOutputStream( os );
* }
*</pre></blockquote>
*
* Note that the call to <tt>createInitialResponse()</tt> is optional.
* Protocols such as IMAP4 do not invoke it but instead only use
* <tt>evaluateChallenge()</tt>, possibly with an empty challenge.
* It is the responsibility of the <tt>SaslClient</tt> implementation
* for a mechanism to take this into account so that it behaves properly
* regardless of whether <tt>createInitialResponse()</tt> is called.
*
* @see Sasl
* @see SaslClientFactory
*/
public abstract interface SaslClient {
/**
* Returns the IANA-registered mechanism name of this SASL client.
* (e.g. "CRAM-MD5", "GSSAPI").
* @return A non-null string representing the IANA-registered mechanism name.
*/
public abstract String getMechanismName();
/**
* Retrieves the initial response.
*
* @return The possibly null byte array containing the initial response.
* It is null if the mechanism does not have an initial response.
* @exception SaslException If an error occurred while creating
* the initial response.
*/
public abstract byte[] createInitialResponse() throws SaslException;
/**
* Evaluates the challenge data and generates a response.
*
* @param challenge The non-null challenge sent from the server.
*
* @return The possibly null reponse to send to the server.
* It is null if the challenge accompanied a "SUCCESS" status and the challenge
* only contains data for the client to update its state and no response
* needs to be sent to the server.
* @exception SaslException If an error occurred while processing
* the challenge or generating a response.
*/
public abstract byte[] evaluateChallenge(byte[] challenge)
throws SaslException;
/**
* Determines whether the authentication exchange has completed.
* @return true if the authentication exchange has completed; false otherwise.
*/
public abstract boolean isComplete();
/**
* Retrieves an input stream for the session. It may return
* the same stream that is passed in, if no processing is to be
* done by the client object.
*
* This method can only be called if isComplete() returns true.
* @param is The original input stream for reading from the server.
* @return An input stream for reading from the server, which
* may include processing the original stream.
* @exception IOException If the authentication exchange has not completed
* or an error occurred while getting the stream.
*/
public abstract InputStream getInputStream(InputStream is) throws IOException;
/**
* Retrieves an output stream for the session. It may return
* the same stream that is passed in, if no processing is to be
* done by the client object.
*
* This method can only be called if isComplete() returns true.
* @param is The original output stream for writing to the server.
* @return An output stream for writing to the server, which
* may include processing the original stream.
* @exception IOException If the authentication exchange has not completed
* or an error occurred while getting the stream.
*/
public abstract OutputStream getOutputStream(OutputStream os) throws IOException;
}

View File

@@ -1,69 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl;
import java.util.Hashtable;
import javax.security.auth.callback.CallbackHandler;
/**
* An interface for creating instances of <tt>SaslClient</tt>.
*
* @see SaslClient
* @see Sasl
*/
public abstract interface SaslClientFactory {
/**
* Creates a SaslClient using the parameters supplied.
*
* @param mechanisms The non-null list of mechanism names to try. Each is the
* IANA-registered name of a SASL mechanism. (e.g. "GSSAPI", "CRAM-MD5").
* @param authorizationId The possibly null authorization ID to use. When
* the SASL authentication completes successfully, the entity named
* by authorizationId is granted access.
* @param protocol The non-null string name of the protocol for which
* the authentication is being performed (e.g., "ldap").
* @param serverName The non-null string name of the server to which
* we are creating an authenticated connection.
* @param props The possibly null properties to be used by the SASL
* mechanisms to configure the authentication exchange. For example,
* "javax.security.sasl.encryption.maximum" might be used to specify
* the maximum key length to use for encryption.
* @param cbh The possibly null callback handler to used by the SASL
* mechanisms to get further information from the application/library
* to complete the authentication. For example, a SASL mechanism might
* require the authentication ID and password from the caller.
*@return A possibly null <tt>SaslClient</tt> created using the parameters
* supplied. If null, this factory cannot produce a <tt>SaslClient</tt>
* using the parameters supplied.
*@exception SaslException If cannot create a <tt>SaslClient</tt> because
* of an error.
*/
public abstract SaslClient createSaslClient(
String[] mechanisms,
String authorizationId,
String protocol,
String serverName,
Hashtable props,
CallbackHandler cbh) throws SaslException;
/**
* Returns an array of names of mechanisms supported by this factory.
* @return A non-null array containing a IANA-registered SASL mechanism names.
*/
public abstract String[] getMechanismNames();
}

View File

@@ -1,146 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl;
/**
* This class represents an error that has occurred when using SASL.
*
*/
public class SaslException extends java.io.IOException {
/**
* The possibly null root cause exception.
* @serial
*/
private Throwable exception;
/**
* Constructs a new instance of <tt>SaslException</tt>.
* The root exception and the detailed message are null.
*/
public SaslException () {
super();
}
/**
* Constructs a new instance of <tt>SaslException</tt> with a detailed message.
* The root exception is null.
* @param detail A possibly null string containing details of the exception.
*
* @see java.lang.Throwable#getMessage
*/
public SaslException (String detail) {
super(detail);
}
/**
* Constructs a new instance of <tt>SaslException</tt> with a detailed message
* and a root exception.
* For example, a SaslException might result from a problem with
* the callback handler, which might throw a NoSuchCallbackException if
* it does not support the requested callback, or throw an IOException
* if it had problems obtaining data for the callback. The
* SaslException's root exception would be then be the exception thrown
* by the callback handler.
*
* @param detail A possibly null string containing details of the exception.
* @param ex A possibly null root exception that caused this exception.
*
* @see java.lang.Throwable#getMessage
* @see #getException
*/
public SaslException (String detail, Throwable ex) {
super(detail);
exception = ex;
}
/**
* Returns the root exception that caused this exception.
* @return The possibly null root exception that caused this exception.
*/
public Throwable getException() {
return exception;
}
/**
* Prints this exception's stack trace to <tt>System.err</tt>.
* If this exception has a root exception; the stack trace of the
* root exception is printed to <tt>System.err</tt> instead.
*/
public void printStackTrace() {
printStackTrace( System.err );
}
/**
* Prints this exception's stack trace to a print stream.
* If this exception has a root exception; the stack trace of the
* root exception is printed to the print stream instead.
* @param ps The non-null print stream to which to print.
*/
public void printStackTrace(java.io.PrintStream ps) {
if ( exception != null ) {
String superString = super.toString();
synchronized ( ps ) {
ps.print(superString
+ (superString.endsWith(".") ? "" : ".")
+ " Root exception is ");
exception.printStackTrace( ps );
}
} else {
super.printStackTrace( ps );
}
}
/**
* Prints this exception's stack trace to a print writer.
* If this exception has a root exception; the stack trace of the
* root exception is printed to the print writer instead.
* @param ps The non-null print writer to which to print.
*/
public void printStackTrace(java.io.PrintWriter pw) {
if ( exception != null ) {
String superString = super.toString();
synchronized (pw) {
pw.print(superString
+ (superString.endsWith(".") ? "" : ".")
+ " Root exception is ");
exception.printStackTrace( pw );
}
} else {
super.printStackTrace( pw );
}
}
/**
* Returns the string representation of this exception.
* The string representation contains
* this exception's class name, its detailed messsage, and if
* it has a root exception, the string representation of the root
* exception. This string representation
* is meant for debugging and not meant to be interpreted
* programmatically.
* @return The non-null string representation of this exception.
* @see java.lang.Throwable#getMessage
*/
public String toString() {
String answer = super.toString();
if (exception != null && exception != this) {
answer += " [Root exception is " + exception.toString() + "]";
}
return answer;
}
}

View File

@@ -1,121 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package com.netscape.sasl.mechanisms;
import java.io.*;
import com.netscape.sasl.*;
/**
* This class provides the implementation of the EXTERNAL mechanism driver.
* This mechanism is passed in the SASL External bind request to retrieve the
* current result code from the server.
*/
public class SaslExternal implements SaslClient {
/**
* Default constructor
*/
public SaslExternal() {
}
/**
* Retrieves the initial response.
*
* @return The possibly null byte array containing the initial response.
* It is null if the mechanism does not have an initial response.
* @exception SaslException If an error occurred while creating
* the initial response.
*/
public byte[] createInitialResponse() throws SaslException {
return null;
}
/**
* Evaluates the challenge data and generates a response.
*
* @param challenge The non-null challenge sent from the server.
*
* @return The possibly null reponse to send to the server.
* It is null if the challenge accompanied a "SUCCESS" status
* and the challenge only contains data for the client to
* update its state and no response needs to be sent to the server.
* @exception SaslException If an error occurred while processing
* the challenge or generating a response.
*/
public byte[] evaluateChallenge(byte[] challenge)
throws SaslException {
return null;
}
/**
* Returns the name of mechanism driver.
* @return The mechanism name.
*/
public String getMechanismName() {
return MECHANISM_NAME;
}
/**
* The method may be called at any time to determine if the authentication
* process is finished.
* @return <CODE>true</CODE> if authentication is complete. For this class,
* always returns <CODE>true</CODE>.
*/
public boolean isComplete() {
return true;
}
/**
* Retrieves an input stream for the session. It may return
* the same stream that is passed in, if no processing is to be
* done by the client object.
*
* This method can only be called if isComplete() returns true.
* @param is The original input stream for reading from the server.
* @return An input stream for reading from the server, which
* may include processing the original stream. For this class, the
* input parameter is always returned.
* @exception IOException If the authentication exchange has not completed
* or an error occurred while getting the stream.
*/
public InputStream getInputStream(InputStream is)
throws IOException {
return is;
}
/**
* Retrieves an output stream for the session. It may return
* the same stream that is passed in, if no processing is to be
* done by the client object.
*
* This method can only be called if isComplete() returns true.
* @param is The original output stream for writing to the server.
* @return An output stream for writing to the server, which
* may include processing the original stream. For this class, the
* input parameter is always returned.
* @exception IOException If the authentication exchange has not completed
* or an error occurred while getting the stream.
*/
public OutputStream getOutputStream(OutputStream os)
throws IOException {
return os;
}
private final static String MECHANISM_NAME = "EXTERNAL";
}

View File

@@ -1,88 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.lang.reflect.*;
import java.util.Hashtable;
/**
* Utility class to dynamically find methods of a class and to invoke
* them
*/
class DynamicInvoker {
static Object invokeMethod(Object obj, String packageName,
String methodName, Object[] args, String[] argNames)
throws LDAPException {
try {
java.lang.reflect.Method m = getMethod(packageName, methodName,
argNames);
if (m != null) {
return (m.invoke(obj, args));
}
} catch (Exception e) {
throw new LDAPException("Invoking "+methodName+": "+
e.toString(), LDAPException.PARAM_ERROR);
}
return null;
}
static java.lang.reflect.Method getMethod(String packageName,
String methodName, String[] args) throws LDAPException {
try {
java.lang.reflect.Method method = null;
String suffix = "";
if (args != null)
for (int i=0; i<args.length; i++)
suffix = suffix+args[i].getClass().getName();
String key = packageName+"."+methodName+"."+suffix;
if ((method = (java.lang.reflect.Method)(m_methodLookup.get(key)))
!= null)
return method;
Class c = Class.forName(packageName);
java.lang.reflect.Method[] m = c.getMethods();
for (int i = 0; i < m.length; i++ ) {
Class[] params = m[i].getParameterTypes();
if ((m[i].getName().equals(methodName)) &&
signatureCorrect(params, args)) {
m_methodLookup.put(key, m[i]);
return m[i];
}
}
throw new LDAPException("Method " + methodName + " not found in " +
packageName);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class "+ packageName + " not found");
}
}
static private boolean signatureCorrect(Class params[], String args[]) {
if (args == null)
return true;
if (params.length != args.length)
return false;
for (int i=0; i<params.length; i++) {
if (!params[i].getName().equals(args[i]))
return false;
}
return true;
}
private static Hashtable m_methodLookup = new Hashtable();
}

View File

@@ -1,436 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
/**
* Encapsulates a connection to an LDAP server, providing access to the input queue
* for messages received.
*
* @version 1.0
*/
public interface LDAPAsynchronousConnection {
/**
* Adds an entry to the directory.
*
* @param entry LDAPEntry object specifying the distinguished name and
* attributes of the new entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPSearchListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPEntry
* @see netscape.ldap.LDAPResponseListener
*/
public LDAPResponseListener add(LDAPEntry entry,
LDAPResponseListener listener)
throws LDAPException;
/**
* Adds an entry to the directory and allows you to specify constraints
* for this LDAP add operation by using an <CODE>LDAPConstraints</CODE>
* object. For example, you can specify whether or not to follow referrals.
* You can also apply LDAP v3 controls to the operation.
* <P>
*
* @param entry LDAPEntry object specifying the distinguished name and
* attributes of the new entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPEntry
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener add(LDAPEntry entry,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Authenticates to the LDAP server (that the object is currently
* connected to) using the specified name and password. If the object
* has been disconnected from an LDAP server, this method attempts to
* reconnect to the server. If the object had already authenticated, the
* old authentication is discarded.
*
* @param dn if non-null and non-empty, specifies that the connection
* and all operations through it should be authenticated with dn as the
* distinguished name
* @param passwd if non-null and non-empty, specifies that the connection
* and all operations through it should be authenticated with dn as the
* distinguished name and passwd as password
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
*/
public LDAPResponseListener bind(String dn,
String passwd,
LDAPResponseListener listener)
throws LDAPException;
/**
* Authenticates to the LDAP server (that the object is currently
* connected to) using the specified name and password and allows you
* to specify constraints for this LDAP add operation by using an
* <CODE>LDAPConstraints</CODE> object. If the object
* has been disconnected from an LDAP server, this method attempts to
* reconnect to the server. If the object had already authenticated, the
* old authentication is discarded.
*
* @param dn if non-null and non-empty, specifies that the connection
* and all operations through it should be authenticated with dn as the
* distinguished name
* @param passwd if non-null and non-empty, specifies that the connection
* and all operations through it should be authenticated with dn as the
* distinguished name and passwd as password
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener bind(String dn,
String passwd,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Deletes the entry for the specified DN from the directory.
*
* @param dn distinguished name of the entry to delete
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener delete(String dn,
LDAPResponseListener listener)
throws LDAPException;
/**
* Deletes the entry for the specified DN from the directory.
*
* @param dn distinguished name of the entry to delete
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener delete(String dn,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Makes a single change to an existing entry in the directory (for
* example, changes the value of an attribute, adds a new attribute
* value, or removes an existing attribute value).<BR>
* The LDAPModification object specifies both the change to be made and
* the LDAPAttribute value to be changed.
*
* @param dn distinguished name of the entry to modify
* @param mod a single change to make to an entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPModification
* @see netscape.ldap.LDAPResponseListener
*/
public LDAPResponseListener modify(String dn,
LDAPModification mod,
LDAPResponseListener listener)
throws LDAPException;
/**
* Makes a single change to an existing entry in the directory (for
* example, changes the value of an attribute, adds a new attribute
* value, or removes an existing attribute value).<BR>
* The LDAPModification object specifies both the change to be made and
* the LDAPAttribute value to be changed.
*
* @param dn distinguished name of the entry to modify
* @param mod a single change to make to an entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPModification
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener modify(String dn,
LDAPModification mod,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Makes a set of changes to an existing entry in the directory (for
* example, changes attribute values, adds new attribute values, or
* removes existing attribute values).
* <P>
* @param dn distinguished name of the entry to modify
* @param mods a set of modifications to make to the entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPModificationSet
* @see netscape.ldap.LDAPResponseListener
*/
public LDAPResponseListener modify(String dn,
LDAPModificationSet mods,
LDAPResponseListener listener)
throws LDAPException;
/**
* Makes a set of changes to an existing entry in the directory (for
* example, changes attribute values, adds new attribute values, or
* removes existing attribute values).
*
* @param dn distinguished name of the entry to modify
* @param mods a set of modifications to make to the entry
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPModificationSet
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener modify(String dn,
LDAPModificationSet mods,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Renames an existing entry in the directory.
*
* @param dn current distinguished name of the entry
* @param newRdn new relative distinguished name for the entry
* @param deleteOldRdn if <code>true</code>, the old name is not retained as an
* attribute value
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
*/
public LDAPResponseListener rename(String dn,
String newRdn,
boolean deleteOldRdn,
LDAPResponseListener listener)
throws LDAPException;
/**
* Renames an existing entry in the directory.
*
* @param dn current distinguished name of the entry
* @param newRdn new relative distinguished name for the entry
* @param deleteOldRdn if <code>true</code>, the old name is not retained as an
* attribute value
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to the operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPResponseListener
* @see netscape.ldap.LDAPConstraints
*/
public LDAPResponseListener rename(String dn,
String newRdn,
boolean deleteOldRdn,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Performs the search specified by the criteria that you enter. <P>
* To abandon the search, use the <CODE>abandon</CODE> method.
*
* @param base the base distinguished name from which to search
* @param scope the scope of the entries to search. You can specify one
* of the following: <P>
* <UL>
* <LI><CODE>LDAPv2.SCOPE_BASE</CODE> (search only the base DN) <P>
* <LI><CODE>LDAPv2.SCOPE_ONE</CODE>
* (search only those entries that are one level below the base DN) <P>
* <LI><CODE>LDAPv2.SCOPE_SUB</CODE>
* (search the base DN and all entries within its subtree) <P>
* </UL>
* <P>
* @param filter search filter specifying the search criteria
* @param attrs list of attributes to return in the search results
* @param typesOnly if <code>true</code>, returns the names but not the values of the
* attributes found. If <code>false</code>, returns the names and values of the
* attributes found.
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @return LDAPSearchListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPAsynchronousConnection#abandon(netscape.ldap.LDAPSearchListener)
*/
public LDAPSearchListener search(String base,
int scope,
String filter,
String attrs[],
boolean typesOnly,
LDAPSearchListener listener)
throws LDAPException;
/**
* Performs the search specified by the criteria that you enter.
* This method also allows you to specify constraints for the search
* (such as the maximum number of entries to find or the
* maximum time to wait for search results). <P>
* To abandon the search, use the <CODE>abandon</CODE> method.
*
* @param base the base distinguished name from which to search
* @param scope the scope of the entries to search. You can specify one
* of the following: <P>
* <UL>
* <LI><CODE>LDAPv2.SCOPE_BASE</CODE> (search only the base DN) <P>
* <LI><CODE>LDAPv2.SCOPE_ONE</CODE>
* (search only those entries that are one level below the base DN) <P>
* <LI><CODE>LDAPv2.SCOPE_SUB</CODE>
* (search the base DN and all entries within its subtree) <P>
* </UL>
* <P>
* @param filter search filter specifying the search criteria
* @param attrs list of attributes to return in the search results
* @param typesOnly if <code>true</code>, returns the names but not the values of the
* attributes found. If <code>false</code>, returns the names and values for
* attributes found.
* @param listener handler for messages returned from a server in response
* to this request. If it is null, a listener object is created internally.
* @param cons constraints specific to this search (for example, the
* maximum number of entries to return)
* @return LDAPSearchListener handler for messages returned from a server
* in response to this request.
* @exception LDAPException Failed to send request.
* @see netscape.ldap.LDAPAsynchronousConnection#abandon(netscape.ldap.LDAPSearchListener)
*/
public LDAPSearchListener search(String base,
int scope,
String filter,
String attrs[],
boolean typesOnly,
LDAPSearchListener listener,
LDAPSearchConstraints cons)
throws LDAPException;
/**
* Compares an attribute value with one in the directory. The result
* is obtained by calling <CODE>getResultCode</CODE> on the
* <CODE>LDAPResponse</CODE> from the <CODE>LDAPResponseListener</CODE>.
* The code will be <CODE>LDAPException.COMPARE_TRUE</CODE> or
* <CODE>LDAPException.COMPARE_FALSE</CODE>.
*
* @param dn distinguished name of the entry to compare
* @param attr attribute with a value to compare
* @param listener handler for messages returned from a server in response
* to the specified request. If it is null, a listener object is created internally.
* @return LDAPResponseListener handler for messages returned from a server
* in response to the specified request.
* @exception LDAPException Failed to send request.
*/
public LDAPResponseListener compare(String dn,
LDAPAttribute attr,
LDAPResponseListener listener)
throws LDAPException;
/**
* Compares an attribute value with one in the directory. The result
* is obtained by calling <CODE>getResultCode</CODE> on the
* <CODE>LDAPResponse</CODE> from the <CODE>LDAPResponseListener</CODE>.
* The code will be <CODE>LDAPException.COMPARE_TRUE</CODE> or
* <CODE>LDAPException.COMPARE_FALSE</CODE>.
*
* @param dn distinguished name of the entry to compare
* @param attr attribute with a value to compare
* @param listener handler for messages returned from a server in response
* to the specified request. If it is null, a listener object is created internally.
* @param cons constraints specific to this operation
* @return LDAPResponseListener handler for messages returned from a server
* in response to the specified request.
* @exception LDAPException Failed to send request.
*/
public LDAPResponseListener compare(String dn,
LDAPAttribute attr,
LDAPResponseListener listener,
LDAPConstraints cons)
throws LDAPException;
/**
* Cancels the ldap request with the specified id and discards
* any results already received.
*
* @param id an LDAP request ID
* @exception LDAPException Failed to send request.
*/
public void abandon(int id) throws LDAPException;
/**
* Cancels all outstanding search requests associated with this
* LDAPSearchListener object and discards any results already received.
*
* @param searchlistener a search listener returned from a search
* @exception LDAPException Failed to send request.
*/
public void abandon(LDAPSearchListener searchlistener)
throws LDAPException;
}

View File

@@ -1,531 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.io.*;
import java.util.*;
import netscape.ldap.ber.stream.*;
/**
* Represents the name and values of an attribute in an entry.
*
* @version 1.0
* @see netscape.ldap.LDAPAttributeSet
*/
public class LDAPAttribute {
private String name = null;
private byte[] nameBuf = null;
/**
* Internally, this is a list of "byte[]"-based attribute values.
*/
private Object values[] = new Object[0];
/**
* Constructs an attribute from another existing attribute.
* Effectively, this makes a copy of the existing attribute.
* @param attr the attribute to copy
*/
public LDAPAttribute( LDAPAttribute attr ) {
name = attr.name;
nameBuf = attr.nameBuf;
values = new Object[attr.values.length];
for (int i = 0; i < attr.values.length; i++) {
values[i] = new byte[((byte[])attr.values[i]).length];
System.arraycopy((byte[])attr.values[i], 0, (byte[])values[i], 0,
((byte[])attr.values[i]).length);
}
}
/**
* Constructs an attribute with no values.
* @param attrName name of the attribute
*/
public LDAPAttribute( String attrName ) {
name = attrName;
}
/**
* Constructs an attribute with a byte-formatted value.
* @param attrName name of the attribute
* @param attrValue value of the attribute in byte format
*/
public LDAPAttribute( String attrName, byte[] attrValue ) {
name = attrName;
addValue(attrValue);
}
/**
* Constructs an attribute that has a single string value.
* @param attrName name of the attribute
* @param attrValue value of the attribute in String format
*/
public LDAPAttribute( String attrName, String attrValue ) {
name = attrName;
addValue( attrValue );
}
/**
* Constructs an attribute that has an array of string values.
* @param attrName name of the attribute
* @param attrValues the list of string values for this attribute
*/
public LDAPAttribute( String attrName, String[] attrValues ) {
name = attrName;
if (attrValues != null) {
setValues( attrValues );
}
}
/**
* Constructs an attribute from a BER (Basic Encoding Rules) element.
* (The protocol elements of LDAP are encoded for exchange using the
* Basic Encoding Rules.)
* @param element element that you want translated into an attribute
* @exception IOException The attribute could not be created from
* the specified element.
*/
public LDAPAttribute(BERElement element) throws IOException {
BERSequence seq = (BERSequence)element;
BEROctetString type = (BEROctetString)seq.elementAt(0);
nameBuf = type.getValue();
BERSet set = (BERSet)seq.elementAt(1);
if (set.size() > 0) {
Object[] vals = new Object[set.size()];
for (int i = 0; i < set.size(); i++) {
vals[i] = ((BEROctetString)set.elementAt(i)).getValue();
}
setValues( vals );
}
}
/**
* Returns the number of values of the attribute.
* @return number of values for this attribute.
*/
public int size() {
return values.length;
}
/**
* Returns an enumerator for the string values of an attribute.
* @return enumerator for the string values.
*/
public Enumeration getStringValues() {
Vector v = new Vector();
synchronized(this) {
try {
for (int i=0; i<values.length; i++) {
if ( values[i] != null ) {
v.addElement(new String ((byte[])values[i], "UTF8"));
} else {
v.addElement( new String( "" ) );
}
}
} catch ( Exception e ) {
return null;
}
}
return v.elements();
}
/**
* Returns the values of the attribute as an array of <CODE>String</CODE>
* objects.
* @return array of attribute values. Each element in the array
* is a <CODE>String</CODE> object.
*/
public String[] getStringValueArray() {
String s[] = new String[values.length];
synchronized(this) {
try {
for (int i=0; i < values.length; i++) {
if ( values[i] !=null ) {
s[i] = new String((byte[])values[i], "UTF8");
} else {
s[i] = new String("");
}
}
} catch (Exception e) {
return null;
}
}
return s;
}
/**
* Returns an enumerator for the values of the attribute in <CODE>byte[]</CODE>
* format.
* @return a set of attribute values. Each element in the enumeration
* is of type <CODE>byte[]</CODE>.
*/
public Enumeration getByteValues() {
Vector v = new Vector();
synchronized(this) {
for (int i=0; i<values.length; i++) {
if ( values[i] != null ) {
v.addElement(values[i]);
} else {
v.addElement( new byte[0] );
}
}
}
return v.elements();
}
/**
* Returns the values of the attribute in an array of <CODE>byte[]</CODE>
* format.
* @return array of attribute values. Each element in the array
* will be of type <CODE>byte[]</CODE>.
*/
public byte[][] getByteValueArray() {
byte b[][] = new byte[values.length][];
synchronized(this) {
try {
for (int i=0; i < values.length; i++) {
b[i] = new byte[((byte[])(values[i])).length];
System.arraycopy((byte[])values[i], 0, (byte[])b[i], 0,
((byte[])(values[i])).length);
}
} catch (Exception e) {
return null;
}
}
return b;
}
/**
* Returns the name of the attribute.
* @return name of the attribute.
*/
public String getName() {
if ((name == null) && (nameBuf != null)) {
try{
name = new String(nameBuf, "UTF8");
} catch(Throwable x) {}
}
return name;
}
/**
* Extracts the subtypes from the specified attribute name.
* For example, if the attribute name is <CODE>cn;lang-ja;phonetic</CODE>,
* this method returns an array containing <CODE>lang-ja</CODE>
* and <CODE>phonetic</CODE>.
* <P>
*
* @param attrName name of the attribute from which to extract the subtypes
* @return array of subtypes, or null (if the name has no subtypes).
* @see netscape.ldap.LDAPAttribute#getBaseName
*/
public static String[] getSubtypes(String attrName) {
StringTokenizer st = new StringTokenizer(attrName, ";");
if( st.hasMoreElements() ) {
// First element is base name
st.nextElement();
String[] subtypes = new String[st.countTokens()];
int i = 0;
// Extract the types
while( st.hasMoreElements() )
subtypes[i++] = (String)st.nextElement();
return subtypes;
}
return null;
}
/**
* Extracts the subtypes from the attribute name of the current
* <CODE>LDAPAttribute</CODE> object. For example, if the attribute
* name is <CODE>cn;lang-ja;phonetic</CODE>, this method returns an array
* containing <CODE>lang-ja</CODE> and <CODE>phonetic</CODE>.
*<P>
*
* @return array of subtypes, or null (if the name has no subtypes).
*/
public String[] getSubtypes() {
return getSubtypes(getName());
}
/**
* Extracts the language subtype from the attribute name of the
* <CODE>LDAPAttribute</CODE> object, if any. For example, if the
* attribute name is <CODE>cn;lang-ja;phonetic</CODE>, this method
* returns the String <CODE>lang-ja</CODE>.
*<P>
*
* @return the language subtype, or null (if the name has no
* language subtype).
*/
public String getLangSubtype() {
String[] subTypes = getSubtypes();
if ( subTypes != null ) {
for( int i = 0; i < subTypes.length; i++ ) {
if ((subTypes[i].length() >= 5) &&
(subTypes[i].substring(0, 5).equalsIgnoreCase("lang-")))
return subTypes[i];
}
}
return null;
}
/**
* Extracts the base name from the specified attribute name.
* For example, if the attribute name is <CODE>cn;lang-ja;phonetic</CODE>,
* this method returns <CODE>cn</CODE>.
* <P>
*
* @param attrName name of the attribute from which to extract the base name
* @return base name (the attribute name without any subtypes).
* @see netscape.ldap.LDAPAttribute#getSubtypes
*/
public static String getBaseName(String attrName) {
String basename = attrName;
StringTokenizer st = new StringTokenizer(attrName, ";");
if( st.hasMoreElements() )
// First element is base name
basename = (String)st.nextElement();
return basename;
}
/**
* Extracts the base name from the attribute name of the current
* <CODE>LDAPAttribute</CODE> object. For example, if the attribute
* name is <CODE>cn;lang-ja;phonetic</CODE>, this method returns
* <CODE>cn</CODE>.
* <P>
*
* @return base name (the attribute name without any subtypes).
* @see netscape.ldap.LDAPAttribute#getSubtypes
*/
public String getBaseName() {
return getBaseName(getName());
}
/**
* Reports whether the attribute name contains the specified subtype.
* For example, if you check for the subtype <CODE>lang-en</CODE>
* and the attribute name is <CODE>cn;lang-en</CODE>, this method
* returns <CODE>true</CODE>.
* <P>
*
* @param subtype the single subtype for which you want to check
* @return true if the attribute name contains the specified subtype.
* @see netscape.ldap.LDAPAttribute#getSubtypes
*/
public boolean hasSubtype(String subtype) {
String[] mytypes = getSubtypes();
for(int i = 0; i < mytypes.length; i++) {
if( subtype.equalsIgnoreCase( mytypes[i] ) )
return true;
}
return false;
}
/**
* Reports if the attribute name contains all specified subtypes
* For example, if you check for the subtypes <CODE>lang-en</CODE>
* and <CODE>phonetic</CODE> and the attribute name is
* <CODE>cn;lang-en;phonetic</CODE>, this method returns <CODE>true</CODE>.
* If the attribute name is <CODE>cn;phonetic</CODE> or
* <CODE>cn;lang-en</CODE>, this method returns <CODE>false</CODE>.
* <P>
* @param subtypes an array of subtypes to check
* @return true if the attribute name contains all subtypes
* @see netscape.ldap.LDAPAttribute#getSubtypes
*/
public boolean hasSubtypes(String[] subtypes) {
for(int i = 0; i < subtypes.length; i++) {
if( !hasSubtype(subtypes[i]) )
return false;
}
return true;
}
/**
* Adds a string value to the attribute.
* @param attrValue the string value to add to the attribute
*/
public synchronized void addValue( String attrValue ) {
if (attrValue != null) {
try {
byte[] b = attrValue.getBytes("UTF8");
addValue( b );
} catch(Throwable x)
{}
}
}
/**
* Sets the string values as the attribute's values.
* @param attrValues the string values to use in the attribute
*/
protected void setValues( String[] attrValues ) {
Object[] vals;
if (attrValues != null) {
vals = new Object[attrValues.length];
for (int i = 0; i < vals.length; i++) {
try {
vals[i] = attrValues[i].getBytes("UTF8");
} catch(Throwable x)
{ vals[i] = new byte[0]; }
}
} else {
vals = new Object[0];
}
setValues(vals);
}
/**
* Adds a <CODE>byte[]</CODE>-formatted value to the attribute.
* @param attrValue the <CODE>byte[]</CODE>-formatted value to
* add to the attribute
*/
public synchronized void addValue( byte[] attrValue ) {
if (attrValue != null) {
Object[] vals = new Object[values.length+1];
for (int i = 0; i < values.length; i++)
vals[i] = values[i];
vals[values.length] = attrValue;
values = vals;
}
}
/**
* Sets the byte[] values as the attribute's values.
* @param attrValues the values to use in the attribute
*/
protected synchronized void setValues( Object[] attrValues ) {
values = attrValues;
}
/**
* Removes a string value from the attribute.
* @param attrValue the string value to remove
*/
public synchronized void removeValue( String attrValue) {
if (attrValue != null) {
try{
byte b[] = attrValue.getBytes("UTF8");
removeValue ( b );
} catch(Throwable x)
{}
}
}
/**
* Removes a <CODE>byte[]</CODE>-formatted value from the attribute.
* @param attrValue <CODE>byte[]</CODE>-formatted value to remove
*/
public synchronized void removeValue( byte[] attrValue) {
if ((attrValue == null) || (values == null)|| (values.length < 1))
return;
int ind = -1;
for (int i=0; i<values.length; i++) {
if (equalValue(attrValue, (byte[])values[i])) {
ind = i;
break;
}
}
if (ind >= 0) {
Object[] vals = new Object[values.length-1];
int j = 0;
for (int i = 0; i < values.length; i++) {
if (i != ind) {
vals[j++] = values[i];
}
}
values = vals;
}
}
private static boolean equalValue(byte[] a, byte[] b) {
if (a.length != b.length)
return false;
for (int i=0; i<a.length; i++) {
if (a[i] != b[i])
return false;
}
return true;
}
/**
* Retrieves the BER (Basic Encoding Rules) representation of an attribute.
* (The protocol elements of LDAP are encoded for exchange using the
* Basic Encoding Rules.)
* @return the BER representation of the attribute.
*/
public BERElement getBERElement() {
try {
BERSequence seq = new BERSequence();
seq.addElement(new BEROctetString(getName()));
BERSet set = new BERSet();
for (int i = 0; i < values.length; i++) {
set.addElement(new BEROctetString((byte[])values[i]));
}
seq.addElement(set);
return seq;
} catch (IOException e) {
return null;
}
}
/**
* Retrieves the string representation of attribute parameters.
* @return string representation parameters.
*/
private String getParamString() {
StringBuffer sb = new StringBuffer();
if ( values.length > 0 ) {
for (int i = 0; i < values.length; i++) {
if (i != 0) {
sb.append(",");
}
byte[] val = (byte[])values[i];
try {
sb.append(new String(val, "UTF8"));
} catch (Exception e) {
if (val != null) {
sb.append(val.length);
sb.append(" bytes");
}
else {
sb.append("null value");
}
}
}
}
return "{type='" + getName() + "', values='" + sb.toString() + "'}";
}
/**
* Retrieves the string representation of an attribute
* in an LDAP entry. For example:
*
* <PRE>LDAPAttribute {type='cn', values='Barbara Jensen,Babs Jensen'}</PRE>
*
* @return string representation of the attribute.
*/
public String toString() {
return "LDAPAttribute " + getParamString();
}
}

View File

@@ -1,366 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* The definition of an attribute type in the schema.
* <A HREF="http://www.ietf.org/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A> covers the types of information
* to specify when defining an attribute type. According to the RFC,
* the description of an attribute type can include the following:
* <P>
*
* <UL>
* <LI>an OID identifying the attribute type
* <LI>a name identifying the attribute type
* <LI>a description of the attribute type
* <LI>the name of the parent attribute type
* <LI>the syntax used by the attribute (for example,
* <CODE>cis</CODE> or <CODE>int</CODE>)
* <LI>an indication of whether the attribute type is single-valued
* or multi-valued
* </UL>
* <P>
*
* When you construct an <CODE>LDAPAttributeSchema</CODE> object, you can
* specify these types of information as arguments to the constructor or
* in the AttributeTypeDescription format specified in RFC 2252.
* When an LDAP client searches an LDAP server for the schema, the server
* returns schema information as an object with attribute values in this
* format.
* <P>
*
* There a number of additional optional description fields which
* are not explicitly accessible through LDAPAttributeSchema, but which
* can be managed with setQualifier, getQualifier, and getQualifierNames:
* <P>
*
* <UL>
* <LI>EQUALITY
* <LI>ORDERING
* <LI>SUBSTR
* <LI>COLLECTIVE
* <LI>NO-USER-MODIFICATION
* <LI>USAGE
* <LI>OBSOLETE
* </UL>
* <P>
*
* To get the name, OID, and description of this attribute type
* definition, use the <CODE>getName</CODE>, <CODE>getOID</CODE>, and
* <CODE>getDescription</CODE> methods inherited from the abstract class
* <CODE>LDAPSchemaElement</CODE>. Optional and custom qualifiers are
* accessed with <CODE>getQualifier</CODE> and <CODE>getQualifierNames</CODE>
* from <CODE>LDAPSchemaElement</CODE>.
* <P>
*
* To add or remove this attribute type definition from the
* schema, use the <CODE>add</CODE> and <CODE>remove</CODE>
* methods, which this class inherits from the <CODE>LDAPSchemaElement</CODE>
* abstract class.
* <P>
* RFC 2252 defines AttributeTypeDescription as follows:
* <P>
* <PRE>
* AttributeTypeDescription = "(" whsp
* numericoid whsp ; AttributeType identifier
* [ "NAME" qdescrs ] ; name used in AttributeType
* [ "DESC" qdstring ] ; description
* [ "OBSOLETE" whsp ]
* [ "SUP" woid ] ; derived from this other
* ; AttributeType
* [ "EQUALITY" woid ; Matching Rule name
* [ "ORDERING" woid ; Matching Rule name
* [ "SUBSTR" woid ] ; Matching Rule name
* [ "SYNTAX" whsp noidlen whsp ] ; see section 4.3
* [ "SINGLE-VALUE" whsp ] ; default multi-valued
* [ "COLLECTIVE" whsp ] ; default not collective
* [ "NO-USER-MODIFICATION" whsp ]; default user modifiable
* [ "USAGE" whsp AttributeUsage ]; default userApplications
* whsp ")"
*
* AttributeUsage =
* "userApplications" /
* "directoryOperation" /
* "distributedOperation" / ; DSA-shared
* "dSAOperation" ; DSA-specific, value depends on server
* </PRE>
*
* @version 1.0
* @see netscape.ldap.LDAPSchemaElement
**/
public class LDAPAttributeSchema extends LDAPSchemaElement {
/**
* Constructs a blank element.
*/
protected LDAPAttributeSchema() {
super();
}
/**
* Constructs an attribute type definition, using the specified
* information.
* @param name name of the attribute type
* @param oid object identifier (OID) of the attribute type
* in dotted-string format (for example, "1.2.3.4")
* @param description description of attribute type
* @param syntax syntax of this attribute type. The value of this
* argument can be one of the following:
* <UL>
* <LI><CODE>cis</CODE> (case-insensitive string)
* <LI><CODE>ces</CODE> (case-exact string)
* <LI><CODE>binary</CODE> (binary data)
* <LI><CODE>int</CODE> (integer)
* <LI><CODE>telephone</CODE> (telephone number -- identical to cis,
* but blanks and dashes are ignored during comparisons)
* <LI><CODE>dn</CODE> (distinguished name)
* </UL>
* @param single <CODE>true</CODE> if the attribute type is single-valued
*/
public LDAPAttributeSchema( String name, String oid, String description,
int syntax, boolean single ) {
this( name, oid, description, cisString, single );
syntaxElement.syntax = syntax;
String syntaxType = syntaxElement.internalSyntaxToString( syntax );
if ( syntaxType != null ) {
syntaxElement.syntaxString = syntaxType;
}
setQualifier( SYNTAX, getSyntaxString() );
}
/**
* Constructs an attribute type definition, using the specified
* information.
* @param name name of the attribute type
* @param oid object identifier (OID) of the attribute type
* in dotted-string format (for example, "1.2.3.4")
* @param description description of attribute type
* @param syntaxString syntax of this attribute type in dotted-string
* format (for example, "1.2.3.4.5")
* @param single <CODE>true</CODE> if the attribute type is single-valued
*/
public LDAPAttributeSchema( String name, String oid, String description,
String syntaxString, boolean single ) {
this( name, oid, description, syntaxString, single, null, null );
}
/**
* Constructs an attribute type definition, using the specified
* information.
* @param name name of the attribute type
* @param oid object identifier (OID) of the attribute type
* in dotted-string format (for example, "1.2.3.4")
* @param description description of attribute type
* @param syntaxString syntax of this attribute type in dotted-string
* format (for example, "1.2.3.4.5")
* @param single <CODE>true</CODE> if the attribute type is single-valued
* @param superior superior attribute as a name or OID; <CODE>null</CODE>
* if there is no superior
* @param aliases names which are to be considered aliases for this
* attribute; <CODE>null</CODE> if there are no aliases
*/
public LDAPAttributeSchema( String name, String oid, String description,
String syntaxString, boolean single,
String superior, String[] aliases ) {
super( name, oid, description );
attrName = "attributetypes";
syntaxElement.syntax = syntaxElement.syntaxCheck( syntaxString );
syntaxElement.syntaxString = syntaxString;
setQualifier( SYNTAX, syntaxElement.syntaxString );
if ( single ) {
setQualifier( SINGLE, "" );
}
if ( (superior != null) && (superior.length() > 0) ) {
setQualifier( SUPERIOR, superior );
}
if ( (aliases != null) && (aliases.length > 0) ) {
this.aliases = aliases;
}
}
/**
* Constructs an attribute type definition based on a description in
* the AttributeTypeDescription format. For information on this format,
* (see <A HREF="http://www.ietf.org/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A>. This is the format that LDAP servers
* and clients use to exchange schema information. (For example, when
* you search an LDAP server for its schema, the server returns an entry
* with the attributes "objectclasses" and "attributetypes". The
* values of "attributetypes" are attribute type descriptions
* in this format.)
* <P>
*
* @param raw definition of the attribute type in the
* AttributeTypeDescription format
*/
public LDAPAttributeSchema( String raw ) {
attrName = "attributetypes";
parseValue( raw );
String val = (String)properties.get( SYNTAX );
if ( val != null ) {
syntaxElement.syntaxString = val;
syntaxElement.syntax = syntaxElement.syntaxCheck( val );
}
}
/**
* Determines if the attribute type is single-valued.
* @return <code>true</code> if single-valued,
* <code>false</code> if multi-valued.
*/
public boolean isSingleValued() {
return (properties != null) ? properties.containsKey( SINGLE ) :
false;
}
/**
* Gets the name of the attribute that this attribute inherits from,
* if any.
* @return the name of the attribute from which this attribute
* inherits, or <CODE>null</CODE> if it does not have a superior.
*/
public String getSuperior() {
String[] val = getQualifier( SUPERIOR );
return ((val != null) && (val.length > 0)) ? val[0] : null;
}
/**
* Gets the syntax of the schema element
* @return one of the following values:
* <UL>
* <LI><CODE>cis</CODE> (case-insensitive string)
* <LI><CODE>ces</CODE> (case-exact string)
* <LI><CODE>binary</CODE> (binary data)
* <LI><CODE>int</CODE> (integer)
* <LI><CODE>telephone</CODE> (telephone number -- identical to cis,
* but blanks and dashes are ignored during comparisons)
* <LI><CODE>dn</CODE> (distinguished name)
* <LI><CODE>unknown</CODE> (not a known syntax)
* </UL>
*/
public int getSyntax() {
return syntaxElement.syntax;
}
/**
* Gets the syntax of the attribute type in dotted-decimal format,
* for example "1.2.3.4.5"
* @return The attribute syntax in dotted-decimal format.
*/
public String getSyntaxString() {
return syntaxElement.syntaxString;
}
/**
* Prepares a value in RFC 2252 format for submission to a server
*
* @param quotingBug <CODE>true</CODE> if SUP and SYNTAX values are to
* be quoted. This is required to work with bugs in certain LDAP servers.
* @return a String ready for submission to an LDAP server.
*/
String getValue( boolean quotingBug ) {
String s = getValuePrefix();
String val = getValue( SUPERIOR, false );
if ( val.length() > 0 ) {
s += val + ' ';
}
val = getOptionalValues( MATCHING_RULES );
if ( val.length() > 0 ) {
s += val + ' ';
}
val = getValue( SYNTAX, quotingBug );
if ( val.length() > 0 ) {
s += val + ' ';
}
if ( isSingleValued() ) {
s += SINGLE + ' ';
}
val = getOptionalValues( NOVALS );
if ( val.length() > 0 ) {
s += val + ' ';
}
val = getOptionalValues( new String[] {USAGE} );
if ( val.length() > 0 ) {
s += val + ' ';
}
val = getCustomValues();
if ( val.length() > 0 ) {
s += val + ' ';
}
s += ')';
return s;
}
/**
* Gets the definition of the attribute type in a user friendly format.
* This is the format that the attribute type definition uses when
* printing the attribute type or the schema.
* @return definition of the attribute type in a user friendly format.
*/
public String toString() {
String s = "Name: " + name + "; OID: " + oid + "; Type: ";
s += syntaxElement.syntaxToString();
s += "; Description: " + description + "; ";
if ( isSingleValued() ) {
s += "single-valued";
} else {
s += "multi-valued";
}
s += getQualifierString( IGNOREVALS );
s += getAliasString();
return s;
}
// Predefined qualifiers
public static final String EQUALITY = "EQUALITY";
public static final String ORDERING = "ORDERING";
public static final String SUBSTR = "SUBSTR";
public static final String SINGLE = "SINGLE-VALUE";
public static final String COLLECTIVE = "COLLECTIVE";
public static final String NO_USER_MODIFICATION = "NO-USER-MODIFICATION";
public static final String USAGE = "USAGE";
// Qualifiers known to not have values; prepare a Hashtable
static String[] NOVALS = { SINGLE,
COLLECTIVE,
NO_USER_MODIFICATION };
static {
for( int i = 0; i < NOVALS.length; i++ ) {
novalsTable.put( NOVALS[i], NOVALS[i] );
}
}
static final String[] MATCHING_RULES = { EQUALITY,
ORDERING,
SUBSTR };
// Qualifiers which we output explicitly in toString()
static final String[] IGNOREVALS = { SINGLE,
OBSOLETE,
SUPERIOR,
SINGLE,
COLLECTIVE,
NO_USER_MODIFICATION,
SYNTAX};
private LDAPSyntaxSchemaElement syntaxElement =
new LDAPSyntaxSchemaElement();
}

View File

@@ -1,400 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
/**
* Represents a set of attributes (for example, the set of attributes
* in an entry).
*
* @version 1.0
* @see netscape.ldap.LDAPAttribute
*/
public class LDAPAttributeSet implements Cloneable
{
Hashtable attrHash = null;
LDAPAttribute[] attrs = new LDAPAttribute[0];
/* If there are less attributes than this in the set, it's not worth
creating a Hashtable - faster and cheaper most likely to string
comparisons. Most applications fetch attributes once only, anyway */
static final int ATTR_COUNT_REQUIRES_HASH = 5;
/**
* Constructs a new set of attributes. This set is initially empty.
*/
public LDAPAttributeSet() {
}
/**
* Constructs an attribute set.
* @param attrs the list of attributes
*/
public LDAPAttributeSet( LDAPAttribute[] attrs ) {
this.attrs = attrs;
}
public synchronized Object clone() {
try {
LDAPAttributeSet attributeSet = new LDAPAttributeSet();
attributeSet.attrs = new LDAPAttribute[attrs.length];
for (int i = 0; i < attrs.length; i++) {
attributeSet.attrs[i] = new LDAPAttribute(attrs[i]);
}
return attributeSet;
} catch (Exception e) {
return null;
}
}
/**
* Returns an enumeration of the attributes in this attribute set.
* @return enumeration of the attributes in this set.
*/
public Enumeration getAttributes () {
Vector v = new Vector();
synchronized(this) {
for (int i=0; i<attrs.length; i++) {
v.addElement(attrs[i]);
}
}
return v.elements();
}
/**
* Creates a new attribute set containing only the attributes
* that have the specified subtypes.
* <P>
*
* For example, suppose an attribute set contains the following attributes:
* <P>
*
* <PRE>
* cn
* cn;lang-ja
* sn;phonetic;lang-ja
* sn;lang-us
* </PRE>
*
* If you call the <CODE>getSubset</CODE> method and pass
* <CODE>lang-ja</CODE> as the argument, the method returns
* an attribute set containing the following attributes:
* <P>
*
* <PRE>
* cn;lang-ja
* sn;phonetic;lang-ja
* </PRE>
*
* @param subtype semi-colon delimited list of subtypes
* to find within attribute names.
* For example:
* <PRE>
* "lang-ja" // Only Japanese language subtypes
* "binary" // Only binary subtypes
* "binary;lang-ja" // Only Japanese language subtypes
* which also are binary
* </PRE>
* @return attribute set containing the attributes that have
* the specified subtypes.
* @see netscape.ldap.LDAPAttribute
* @see netscape.ldap.LDAPAttributeSet#getAttribute
* @see netscape.ldap.LDAPEntry#getAttributeSet
*/
public LDAPAttributeSet getSubset(String subtype) {
LDAPAttributeSet attrs = new LDAPAttributeSet();
if ( subtype == null )
return attrs;
StringTokenizer st = new StringTokenizer(subtype, ";");
if( st.countTokens() < 1 )
return attrs;
String[] searchTypes = new String[st.countTokens()];
int i = 0;
while( st.hasMoreElements() ) {
searchTypes[i] = (String)st.nextElement();
i++;
}
Enumeration attrEnum = getAttributes();
while( attrEnum.hasMoreElements() ) {
LDAPAttribute attr = (LDAPAttribute)attrEnum.nextElement();
if( attr.hasSubtypes( searchTypes ) )
attrs.add( new LDAPAttribute( attr ) );
}
return attrs;
}
/**
* Returns a single attribute that exactly matches the specified attribute
* name.
* @param attrName name of attribute to return
* For example:
*<PRE>
* "cn" // Only a non-subtyped version of cn
* "cn;lang-ja" // Only a Japanese version of cn
*</PRE>
* @return attribute that has exactly the same name, or null
* (if no attribute in the set matches the specified name).
* @see netscape.ldap.LDAPAttribute
*/
public LDAPAttribute getAttribute( String attrName ) {
prepareHashtable();
if (attrHash != null) {
return (LDAPAttribute)attrHash.get( attrName.toLowerCase() );
} else {
for (int i = 0; i < attrs.length; i++) {
if (attrName.equalsIgnoreCase(attrs[i].getName())) {
return attrs[i];
}
}
return null;
}
}
/**
* Prepares hashtable for fast attribute lookups.
*/
private void prepareHashtable() {
if ((attrHash == null) && (attrs.length >= ATTR_COUNT_REQUIRES_HASH)) {
attrHash = new Hashtable();
for (int j = 0; j < attrs.length; j++) {
attrHash.put( attrs[j].getName().toLowerCase(), attrs[j] );
}
}
}
/**
* Returns the subtype that matches the attribute name specified
* by <CODE>attrName</CODE> and the language specificaton identified
* by <CODE>lang</CODE>.
* <P>
*
* If no attribute in the set has the specified name and subtype,
* the method returns <CODE>null</CODE>.
*
* Attributes containing subtypes other than <CODE>lang</CODE>
* (for example, <CODE>cn;binary</CODE>) are returned only if
* they contain the specified <CODE>lang</CODE> subtype and if
* the set contains no attribute having only the <CODE>lang</CODE>
* subtype. (For example, <CODE>getAttribute( "cn", "lang-ja" )</CODE>
* returns <CODE>cn;lang-ja;phonetic</CODE> only if the
* <CODE>cn;lang-ja</CODE> attribute does not exist.)
* <P>
*
* If null is specified for the <CODE>lang</CODE> argument,
* calling this method is the same as calling the
* <CODE>getAttribute(attrName)</CODE> method.
* <P>
*
* For example, suppose an entry contains only the following attributes:
* <P>
* <UL>
* <LI><CODE>cn;lang-en</CODE>
* <LI><CODE>cn;lang-ja-JP-kanji</CODE>
* <LI><CODE>sn</CODE>
* </UL>
* <P>
*
* Calling the following methods will return the following values:
* <P>
* <UL>
* <LI><CODE>getAttribute( "cn" )</CODE> returns <CODE>null</CODE>.
* <LI><CODE>getAttribute( "sn" )</CODE> returns the "<CODE>sn</CODE>" attribute.
* <LI><CODE>getAttribute( "cn", "lang-en-us" )</CODE> returns the "<CODE>cn;lang-en</CODE>" attribute.
* <LI><CODE>getAttribute( "cn", "lang-en" )</CODE> returns the "<CODE>cn;lang-en</CODE>" attribute.
* <LI><CODE>getAttribute( "cn", "lang-ja" )</CODE> returns <CODE>null</CODE>.
* <LI><CODE>getAttribute( "sn", "lang-en" )</CODE> returns the "<CODE>sn</CODE>" attribute.
*</UL>
* <P>
* @param attrName name of attribute to find in the entry
* @param lang a language specification
* @return the attribute that matches the base name and that best
* matches any specified language subtype.
* @see netscape.ldap.LDAPAttribute
*/
public LDAPAttribute getAttribute( String attrName, String lang ) {
if ( (lang == null) || (lang.length() < 1) )
return getAttribute( attrName );
String langLower = lang.toLowerCase();
if ((langLower.length() < 5) ||
( !langLower.substring( 0, 5 ).equals( "lang-" ) )) {
return null;
}
StringTokenizer st = new StringTokenizer( langLower, "-" );
// Skip first token, which is "lang-"
st.nextToken();
String[] langComponents = new String[st.countTokens()];
int i = 0;
while ( st.hasMoreTokens() ) {
langComponents[i] = st.nextToken();
i++;
}
String searchBasename = LDAPAttribute.getBaseName(attrName);
String[] searchTypes = LDAPAttribute.getSubtypes(attrName);
LDAPAttribute found = null;
int matchCount = 0;
for( i = 0; i < attrs.length; i++ ) {
boolean isCandidate = false;
LDAPAttribute attr = attrs[i];
// Same base name?
if ( attr.getBaseName().equalsIgnoreCase(searchBasename) ) {
// Accept any subtypes?
if( (searchTypes == null) || (searchTypes.length < 1) ) {
isCandidate = true;
} else {
// No, have to check each subtype for inclusion
if( attr.hasSubtypes( searchTypes ) )
isCandidate = true;
}
}
String attrLang = null;
if ( isCandidate ) {
attrLang = attr.getLangSubtype();
// At this point, the base name and subtypes are okay
if ( attrLang == null ) {
// If there are no language attributes, this one is okay
found = attr;
} else {
// We just have to check for language match
st = new StringTokenizer( attrLang.toLowerCase(), "-" );
// Skip first token, which is "lang-"
st.nextToken();
// No match if the attribute's language spec is longer
// than the target one
if ( st.countTokens() > langComponents.length )
continue;
// How many subcomponents of the language match?
int j = 0;
while ( st.hasMoreTokens() ) {
if ( !langComponents[j].equals( st.nextToken() ) ) {
j = 0;
break;
}
j++;
}
if ( j > matchCount ) {
found = attr;
matchCount = j;
}
}
}
}
return found;
}
/**
* Returns the attribute at the position specified by the index.
* For example, if you specify the index 0, the method returns the
* first attribute in the set. The index is 0-based.
*
* @param index index of the attribute to obtain
* @return attribute at the position specified by the index.
*/
public LDAPAttribute elementAt (int index) {
return attrs[index];
}
/**
* Removes the attribute at the position specified by the index.
* For example, if you specify the index 0, the method removes the
* first attribute in the set. The index is 0-based.
*
* @param index index of the attribute to remove
*/
public void removeElementAt (int index) {
if ((index >= 0) && (index < attrs.length)) {
synchronized(this) {
LDAPAttribute[] vals = new LDAPAttribute[attrs.length-1];
int j = 0;
for (int i = 0; i < attrs.length; i++) {
if (i != index) {
vals[j++] = attrs[i];
}
}
attrs = vals;
}
}
}
/**
* Returns the number of attributes in this set.
* @return number of attributes in this attribute set.
*/
public int size () {
return attrs.length;
}
/**
* Adds the specified attribute to this attribute set.
* @param attr attribute to add to this set
*/
public synchronized void add( LDAPAttribute attr ) {
if (attr != null) {
LDAPAttribute[] vals = new LDAPAttribute[attrs.length+1];
for (int i = 0; i < attrs.length; i++)
vals[i] = attrs[i];
vals[attrs.length] = attr;
attrs = vals;
if (attrHash != null) {
attrHash.put( attr.getName().toLowerCase(), attr );
}
}
}
/**
* Removes the specified attribute from the set.
* @param name name of the attribute to remove
*/
public synchronized void remove( String name ) {
for( int i = 0; i < attrs.length; i++ ) {
if ( name.equalsIgnoreCase( attrs[i].getName() ) ) {
removeElementAt(i);
break;
}
}
}
/**
* Retrieves the string representation of all attributes
* in the attribute set. For example:
*
* <PRE>
* LDAPAttributeSet: LDAPAttribute {type='cn', values='Barbara Jensen,Babs
* Jensen'}LDAPAttribute {type='sn', values='Jensen'}LDAPAttribute {type='
* givenname', values='Barbara'}LDAPAttribute {type='objectclass', values=
* 'top,person,organizationalPerson,inetOrgPerson'}LDAPAttribute {type='ou',
* values='Product Development,People'}
* </PRE>
*
* @return string representation of all attributes in the set.
*/
public String toString() {
StringBuffer sb = new StringBuffer("LDAPAttributeSet: ");
for( int i = 0; i < attrs.length; i++ ) {
if (i != 0) {
sb.append(" ");
}
sb.append(attrs[i].toString());
}
return sb.toString();
}
}

View File

@@ -1,44 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Performs explicit bind processing on a referral. A client may
* specify an instance of this class for use on a single operation
* (through the <CODE>LDAPConstraints</CODE> object) or all operations
* (through <CODE>LDAPConnection.setOption()</CODE>). It is typically used
* to control the authentication mechanism used on implicit referral
* handling.
*/
public interface LDAPBind {
/**
* This method is called by <CODE>LDAPConnection</CODE> when
* authenticating. An implementation of <CODE>LDAPBind</CODE> may access
* the host, port, credentials, and other information in the
* <CODE>LDAPConnection</CODE> in order to decide on an appropriate
* authentication mechanism.<BR>
* The bind method can also interact with a user or external module.
* @exception netscape.ldap.LDAPException
* @see netscape.ldap.LDAPConnection#bind
* @param conn an established connection to an LDAP server
*/
public void bind(LDAPConnection conn) throws LDAPException;
}

View File

@@ -1,760 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
import netscape.ldap.client.*;
import netscape.ldap.util.*;
import java.util.zip.CRC32;
/**
* <CODE>LDAPCache</CODE> represents an in-memory cache that you can use
* to reduce the number of search requests sent to the LDAP server.
* <P>
*
* Each item in the cache represents a search request and
* its results. Each item is uniquely identified by the
* search criteria, which includes:
* <P>
*
* <UL>
* <LI>the host name and port number of the LDAP server
* <LI>the base DN of the search
* <LI>the search filter
* <LI>the scope of the search
* <LI>the attributes to be returned in the search results
* <LI>the DN used to authenticate the client when binding
* to the server
* <LI>the LDAP v3 controls specified in the search request
* </UL>
* <P>
*
* After a search request is cached, the results of any
* subsequent search requests using the same criteria are
* read from the cache. Note that if any part of the
* criteria differs (for example, if a different DN is used
* when binding to the server or if a different set of
* attributes to be returned is specified), the search
* request is sent to the server.
* <P>
*
* When you create the cache, you specify the maximum amount
* of time that an item can be kept in the cache. When an
* item's age exceeds that time limit, the item is removed
* from the cache.
* <P>
*
* The cache also has a maximum size that you specify when
* creating the cache. If adding a new item exceeds the
* maximum size of the cache, the first entries in the cache
* are removed to make enough space for the new item.
* <P>
*
* Finally, when creating the cache, you can specify a list
* of the base DNs in search requests that you want to cache.
* For example, if you specify <CODE>o=Airius.com</CODE> as
* a base DN to cache, your client caches search requests
* where the base DN is <CODE>o=Airius.com</CODE>.
* <P>
*
* To specify that you want to use a cache for a particular
* LDAP session, call the <CODE>setCache</CODE> method of
* the <CODE>LDAPConnection</CODE> object that you are
* working with.
* <P>
*
* All clones of an <CODE>LDAPConnection</CODE> object share
* the same <CODE>LDAPCache</CODE> object.
* <P>
*
* Note that search requests that return referrals are not cached.
* <P>
*
* The <CODE>LDAPCache</CODE> class includes methods for
* getting statistics (such as hit rates) from the cache and
* for flushing entries from the cache.
* <P>
*
* @see netscape.ldap.LDAPConnection#setCache(netscape.ldap.LDAPCache)
* @see netscape.ldap.LDAPConnection#getCache
*/
public class LDAPCache {
private Hashtable m_cache;
private long m_timeToLive;
private long m_maxSize;
private String[] m_dns;
private Vector m_orderedStruct;
private long m_remainingSize = 0;
/**
* Delimiter used internally when creating keys
* for the cache.
*/
public static final String DELIM = "#";
private TTLTimer m_timer = null;
private long m_totalOpers = 0;
private long m_hits = 0;
private long m_flushes = 0;
// Debug can be activated by defining debug.cache property
private static boolean m_debug = false;
static {
try {
String traceProp = System.getProperty("debug.cache");
m_debug = (traceProp != null);
}
catch (Exception e) {
;// In browser access to property might not be allowed
}
}
/**
* Constructs a new <CODE>LDAPCache</CODE> object, using the
* specified maximum size of the cache (in bytes) and the maximum
* age of cached items (in seconds). When items in the cache
* exceed this age, they are removed from the cache.
* <P>
*
* @param ttl the maximum amount of time that an item can be cached
* (in seconds)
* @param size the maximum size of the cache (in bytes)
*/
public LDAPCache(long ttl, long size)
{
init(ttl, size);
}
/**
* Constructs a new <CODE>LDAPCache</CODE> object, using the
* specified maximum size of the cache (in bytes), and the maximum
* age of cached items (in seconds), and an array of the base DNs
* of searches that you want to cache. (For example,
* if the array of base DNs includes <CODE>o=Airius.com</CODE>,
* the cache stores search results if the base DN in the search
* request is <CODE>o=Airius.com</CODE>.)
* <P>
*
* @param ttl the maximum amount of time that an item can be cached
* (in seconds)
* @param size the maximum size of the cache (in bytes)
* @param dns the list of base DNs of searches that you want to cache.
*/
public LDAPCache(long ttl, long size, String[] dns)
{
init(ttl, size);
m_dns = new String[dns.length];
if ((dns != null) && (dns.length > 0))
for (int i=0; i<dns.length; i++) {
m_dns[i] = (new DN(dns[i])).toString();
}
}
/**
* Gets the maximum size of the cache (in bytes).
* <P>
*
* @return the maximum size of the cache (in bytes).
*/
public long getSize()
{
return m_maxSize;
}
/**
* Gets the maximum age allowed for cached items (in
* seconds). (Items that exceed this age are
* removed from the cache.)
* <P>
*
* @return the maximum age of items in the cache (in
* seconds).
*/
public long getTimeToLive()
{
return m_timeToLive/1000;
}
/**
* Gets the array of base DNs of searches to be cached.
* (Search requests with these base DNs are cached.)
* <P>
*
* @return the array of base DNs.
*/
public String[] getBaseDNs()
{
return m_dns;
}
/**
* Flush the entries identified by DN and scope from the cache.
* <P>
*
* @param dn the distinguished name (or base DN) of the entries
* to be removed from the cache. Use this parameter in conjunction
* with <CODE>scope</CODE> to identify the entries that you want
* removed from the cache. If this parameter is <CODE>null</CODE>,
* the entire cache is flushed.
* @param scope the scope identifying the entries that you want
* removed from the cache. The value of this parameter can be
* one of the following:
* <UL>
* <LI><CODE>LDAPv2.SCOPE_BASE</CODE> (to remove the entry identified
* by <CODE>dn</CODE>)
* <LI><CODE>LDAPv2.SCOPE_ONE</CODE> (to remove the entries that
* have <CODE>dn</CODE> as their parent entry)
* <LI><CODE>LDAPv2.SCOPE_SUB</CODE> (to remove the entries in the
* subtree under <CODE>dn</CODE> in the directory)
* </UL>
* <P>
* @return <CODE>true</CODE> if the entry is removed from the cache;
* <CODE>false</CODE> if the entry is not removed.
*/
public synchronized boolean flushEntries(String dn, int scope) {
if (m_debug)
System.out.println("DEBUG: User request for flushing entry: dn "+
dn+" and scope "+scope);
// if the dn is null, invalidate the whole cache
if (dn == null)
{
// reclaim all the cache spaces
m_remainingSize = m_maxSize;
m_cache.clear();
m_orderedStruct.removeAllElements();
// reset stats
m_totalOpers = m_hits = m_flushes = 0;
return true;
}
DN dn2 = new DN(dn);
Enumeration e = m_cache.keys();
while(e.hasMoreElements()) {
Long key = (Long)e.nextElement();
Vector val = (Vector)m_cache.get(key);
int j=1;
int size2=val.size();
for (; j<size2; j++) {
String d = ((LDAPEntry)val.elementAt(j)).getDN();
DN dn1 = new DN(d);
if (dn1.equals(dn2))
break;
if (scope == LDAPConnection.SCOPE_ONE) {
DN parentDN1 = dn1.getParent();
if (parentDN1.equals(dn2)) {
break;
}
}
if ((scope == LDAPConnection.SCOPE_SUB) &&
(dn1.isDescendantOf(dn2))) {
break;
}
}
if (j < size2) {
for (int k=0; k<m_orderedStruct.size(); k++) {
Vector v = (Vector)m_orderedStruct.elementAt(k);
if (key.equals((Long)v.elementAt(0))) {
m_orderedStruct.removeElementAt(k);
break;
}
}
m_cache.remove(key);
if (m_debug)
System.out.println("DEBUG: Successfully removed entry ->"+key);
return true;
}
}
if (m_debug)
System.out.println("DEBUG: The number of keys in the cache is "
+m_cache.size());
return false;
}
/**
* Gets the amount of available space (in bytes) left in the cache.
* <P>
*
* @return the available space (in bytes) in the cache.
*/
public long getAvailableSize() {
return m_remainingSize;
}
/**
* Gets the total number of requests for retrieving items from
* the cache. This includes both items successfully found in
* the cache and items not found in the cache.
* <P>
*
* @return the total number of requests for retrieving items from
* the cache.
*/
public long getTotalOperations() {
return m_totalOpers;
}
/**
* Gets the total number of requests which failed to find and
* retrieve an item from the cache.
* <P>
*
* @return the number of requests that did not find and retrieve
* an item in the cache.
*/
public long getNumMisses() {
return (m_totalOpers - m_hits);
}
/**
* Gets the total number of requests which successfully found and
* retrieved an item from the cache.
* @return the number of requests that successfully found and
* retrieved an item from the cache.
*/
public long getNumHits() {
return m_hits;
}
/**
* Gets the total number of entries that are flushed when timer expires
* and <CODE>flushEntries</CODE> is called.
* <P>
*
* @return the total number of entries that are flushed when timer
* expires.
*/
public long getNumFlushes() {
return m_flushes;
}
/**
* Create a key for a cache entry by concatenating all input parameters
* @return the key for a cache entry
* @exception LDAPException Thrown when failed to create key.
*/
Long createKey(String host, int port, String baseDN, String filter,
int scope, String[] attrs, String bindDN, LDAPConstraints cons)
throws LDAPException {
DN dn = new DN(baseDN);
baseDN = dn.toString();
if (m_dns != null) {
int i=0;
for (; i<m_dns.length; i++) {
if (baseDN.equals(m_dns[i]))
break;
}
if (i >= m_dns.length)
throw new LDAPException(baseDN+" is not a cached base DN",
LDAPException.OTHER);
}
String key = null;
key = appendString(baseDN);
key = key+appendString(scope);
key = key+appendString(host);
key = key+appendString(port);
key = key+appendString(filter);
key = key+appendString(attrs);
key = key+appendString(bindDN);
LDAPControl[] serverControls = null;
LDAPControl[] clientControls = null;
// get server and client controls
if (cons != null)
{
serverControls = cons.getServerControls();
clientControls = cons.getClientControls();
}
if ((serverControls != null) && (serverControls.length > 0))
{
String[] objID = new String[serverControls.length];
for (int i=0; i<serverControls.length; i++) {
LDAPControl ctrl = serverControls[i];
long val = getCRC32(ctrl.getValue());
objID[i] = ctrl.getID() + ctrl.isCritical() + new Long(val).toString();
}
key = key + appendString(objID);
}
else
key = key+appendString(0);
if ((clientControls != null) && (clientControls.length > 0))
{
String[] objID = new String[clientControls.length];
for (int i=0; i<clientControls.length; i++) {
LDAPControl ctrl = clientControls[i];
long val = getCRC32(ctrl.getValue());
objID[i] = ctrl.getID() + ctrl.isCritical() + new Long(val).toString();
}
key = key + appendString(objID);
}
else
key = key+appendString(0);
long val = getCRC32(key.getBytes());
if(m_debug) {
System.out.println("key="+val + " for "+key);
}
return new Long(val);
}
/**
* Gets the cache entry based on the specified key.
* @param key the key for the cache entry
* @return the cache entry.
*/
synchronized Object getEntry(Long key) {
Object obj = null;
obj = m_cache.get(key);
m_totalOpers++;
if (m_debug) {
if (obj == null)
System.out.println("DEBUG: Entry whose key -> "+key+
" not found in the cache.");
else
System.out.println("DEBUG: Entry whose key -> "+key+
" found in the cache.");
}
if (obj != null)
m_hits++;
return obj;
}
/**
* Flush entries which stay longer or equal to the time-to-live.
*/
synchronized void flushEntries()
{
Vector v = null;
boolean delete = false;
long currTime = System.currentTimeMillis();
m_flushes = 0;
while(true) {
if (m_orderedStruct.size() <= 0)
break;
v = (Vector)m_orderedStruct.firstElement();
long diff = currTime-((Long)v.elementAt(1)).longValue();
if (diff >= m_timeToLive) {
Long key = (Long)v.elementAt(0);
if (m_debug)
System.out.println("DEBUG: Timer flush entry whose key is "+key);
Vector entry = (Vector)m_cache.remove(key);
m_remainingSize = m_remainingSize + ((Long)entry.firstElement()).longValue();
// always delete the first one
m_orderedStruct.removeElementAt(0);
m_flushes++;
}
else
break;
}
if (m_debug)
System.out.println("DEBUG: The number of keys in the cache is "
+m_cache.size());
}
/**
* Add the entry to the hashtable cache and to the vector respectively.
* The vector is used to keep track of the order of the entries being added.
* @param key the key for the cache entry
* @param value the cache entry being added to the cache for the specified
* key
* @return a flag indicating whether the entry was added.
*/
synchronized boolean addEntry(Long key, Object value)
{
// if entry exists, dont perform add operation
if (m_cache.get(key) != null)
return false;
Vector v = (Vector)value;
long size = ((Long)v.elementAt(0)).longValue();
if (size > m_maxSize) {
if (m_debug) {
System.out.println("Failed to add an entry to the cache since the new entry exceeds the cache size");
}
return false;
}
// if the size of entry being added is bigger than the spare space in the
// cache
if (size > m_remainingSize) {
while (true) {
Vector element = (Vector)m_orderedStruct.firstElement();
Long str = (Long)element.elementAt(0);
Vector val = (Vector)m_cache.remove(str);
if (m_debug)
System.out.println("DEBUG: The spare size of the cache is not big enough "+
"to hold the new entry, deleting the entry whose key -> "+str);
// always remove the first one
m_orderedStruct.removeElementAt(0);
m_remainingSize = m_remainingSize +
((Long)val.elementAt(0)).longValue();
if (m_remainingSize >= size)
break;
}
}
m_remainingSize = m_remainingSize - size;
m_cache.put(key, v);
Vector element = new Vector();
element.addElement(key);
element.addElement(new Long(System.currentTimeMillis()));
m_orderedStruct.addElement(element);
// Start TTL Timer if first entry is added
if (m_orderedStruct.size() == 1) {
scheduleTTLTimer();
}
if (m_debug)
{
System.out.println("DEBUG: Adding a new entry whose key -> "+key);
System.out.println("DEBUG: The current number of keys in the cache "+
m_cache.size());
}
return true;
}
/**
* Flush entries which stayed longer or equal to the time-to-live, and
* Set up the TTLTimer for the next flush. Called when first entry is
* added to the cache and when the TTLTimer expires.
*/
synchronized void scheduleTTLTimer() {
if (m_orderedStruct.size() <= 0) {
return;
}
if (m_timer == null) {
m_timer = new TTLTimer(this);
}
Vector v = (Vector)m_orderedStruct.firstElement();
long currTime = System.currentTimeMillis();
long creationTime = ((Long)v.elementAt(1)).longValue();
long timeout = creationTime + m_timeToLive - currTime;
if (timeout > 0) {
m_timer.start(timeout);
}
else {
flushEntries();
scheduleTTLTimer();
}
}
/**
* Gets the number of entries being cached.
* @return the number of entries being cached.
*/
public int getNumEntries()
{
return m_cache.size();
}
/**
* Cleans up
*/
void cleanup() {
flushEntries(null, 0);
m_timer.stop();
m_timer = null;
}
/**
* Initialize the instance variables.
*/
private void init(long ttl, long size)
{
m_cache = new Hashtable();
m_timeToLive = ttl*1000;
m_maxSize = size;
m_remainingSize = size;
m_dns = null;
m_orderedStruct = new Vector();
}
/**
* Concatenates the specified integer with the delimiter.
* @param str the String to concatenate with the delimiter
* @return the concatenated string.
*/
private String appendString(String str) {
if (str == null)
return "null"+DELIM;
else
return str.trim()+DELIM;
}
/**
* Concatenates the specified integer with the delimiter.
* @param num the integer to concatenate with the delimiter
* @return the concatenated string.
*/
private String appendString(int num) {
return num+DELIM;
}
/**
* Concatenate the specified string array with the delimiter.
* @param str a string array
* @return the concatenated string.
*/
private String appendString(String[] str) {
if ((str == null) || (str.length < 1))
return "0"+DELIM;
else {
String[] sorted = new String[str.length];
System.arraycopy( str, 0, sorted, 0, str.length );
sortStrings(sorted);
String s = sorted.length+DELIM;
for (int i=0; i<sorted.length; i++)
s = s+sorted[i].trim()+DELIM;
return s;
}
}
/**
* Sorts the array of strings using bubble sort.
* @param str the array of strings to sort. The str parameter contains
* the sorted result.
*/
private void sortStrings(String[] str) {
for (int i=0; i<str.length; i++)
str[i] = str[i].trim();
for (int i=0; i<str.length-1; i++)
for (int j=i+1; j<str.length; j++)
{
if (str[i].compareTo(str[j]) > 0)
{
String t = str[i];
str[i] = str[j];
str[j] = t;
}
}
}
/**
* Create a 32 bits CRC from the given byte array.
*/
private long getCRC32(byte[] barray) {
if (barray==null) {
return 0;
}
CRC32 crcVal = new CRC32();
crcVal.update(barray);
return crcVal.getValue();
}
}
/**
* Represents a timer which will timeout for every certain interval. It
* provides methods to start, stop, or restart timer.
*/
class TTLTimer implements Runnable{
private long m_timeout;
private LDAPCache m_cache;
private Thread t = null;
/**
* Constructor with the specified timout.
* @param timeout the timeout value in milliseconds
*/
TTLTimer(LDAPCache cache) {
m_cache = cache;
}
/**
* (Re)start the timer.
*/
void start(long timeout) {
m_timeout = timeout;
if (Thread.currentThread() != t) {
stop();
}
t = new Thread(this, "LDAPCache-TTLTimer");
t.setDaemon(true);
t.start();
}
/**
* Stop the timer.
*/
void stop() {
if (t !=null) {
t.interrupt();
}
}
/**
* The runnable waits until the timeout period has elapsed. It then notify
* the registered listener who listens for the timeout event.
*/
public void run() {
synchronized(this) {
try {
this.wait(m_timeout);
} catch (InterruptedException e) {
// This happens if the timer is stopped
return;
}
}
m_cache.scheduleTTLTimer();
}
}

View File

@@ -1,62 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* This static class checks if the caller is an applet running in
* Netscape Communicator. If so, it returns the appropriate method.
*/
class LDAPCheckComm {
/**
* Returns the method whose name matches the specified argument.
* @param classPackage the class package
* @param name the method name
* @return the method.
* @exception LDAPException Gets thrown if the method is not found or
* the caller is not an applet running in Netscape
* Communicator.
*/
static java.lang.reflect.Method getMethod(String classPackage, String name) throws LDAPException {
SecurityManager sec = System.getSecurityManager();
if ( sec == null ) {
/* Not an applet, we can do what we want to */
return null;
} else if ( sec.toString().startsWith("java.lang.NullSecurityManager") ) {
/* Not an applet, we can do what we want to */
return null;
} else if (sec.toString().startsWith("netscape.security.AppletSecurity")) {
/* Running as applet. Is PrivilegeManager around? */
try {
Class c = Class.forName(classPackage);
java.lang.reflect.Method[] m = c.getMethods();
for( int i = 0; i < m.length; i++ ) {
if ( m[i].getName().equals(name) ) {
return m[i];
}
}
throw new LDAPException("no enable privilege in " + classPackage);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class not found");
}
}
return null;
}
}

View File

@@ -1,277 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.text.*;
import netscape.ldap.client.*;
/**
* Compares LDAP entries based on one or more attribute values.
* <P>
*
* To use this comparison for sorting search results, pass
* an object of this class to the <CODE>sort</CODE> method in
* <CODE>LDAPSearchResults</CODE>.
* <P>
*
* @version 1.0
* @see LDAPEntryComparator
* @see LDAPSearchResults#sort
*/
public class LDAPCompareAttrNames implements LDAPEntryComparator {
String m_attrs[];
boolean m_ascending[];
Locale m_locale = null;
Collator m_collator = null;
/**
* Constructs a comparator that compares the string values of
* a named attribute in LDAP entries and sorts the entries in
* ascending order.
* <P>
*
* @param attribute name of attribute for comparisons
*/
public LDAPCompareAttrNames (String attribute) {
m_attrs = new String[1];
m_attrs[0] = attribute;
m_ascending = new boolean[1];
m_ascending[0] = true;
}
/**
* Constructs a comparator that compares the string values of
* a named attribute in LDAP entries and that allows you to sort
* entries either in ascending or descending order.
* <P>
*
* @param attribute name of attribute for comparisons
* @param ascendingFlag if <CODE>true</CODE>, sort in ascending order
*/
public LDAPCompareAttrNames (String attribute,
boolean ascendingFlag) {
m_attrs = new String[1];
m_attrs[0] = attribute;
m_ascending = new boolean[1];
m_ascending[0] = ascendingFlag;
}
/**
* Constructs a comparator that compares the string values of
* a set of named attributes in LDAP entries and that sort
* the entries in ascending order.
* <P>
*
* Use an array of strings to specify the set of attributes
* to use for sorting. If the values of the first attribute
* (the name specified in <CODE>attribute[0]</CODE>) are equal,
* then the values of the next attribute are compared.
* <P>
*
* For example, if <CODE>attributes[0] = "cn"</CODE> and
* <CODE>attributes[1]="uid"</CODE>, results are first sorted
* by the <CODE>cn</CODE> attribute. If two entries have the
* same value for <CODE>cn</CODE>, then the <CODE>uid</CODE>
* attribute is used to sort the entries.
* <P>
*
* @param attributes array of the attribute names used for comparisons
*/
public LDAPCompareAttrNames (String[] attributes) {
m_attrs = attributes;
m_ascending = new boolean[attributes.length];
for( int i = 0; i < attributes.length; i++ )
m_ascending[i] = true;
}
/**
* Constructs a comparator that compares the string values of
* a set of named attributes in LDAP entries and allows you
* to sort the entries in ascending or descending order.
* <P>
*
* Use an array of strings to specify the set of attributes
* to use for sorting. If the values of the first attribute
* (the name specified in <CODE>attribute[0]</CODE>)
* are equal, then the values of the next attribute are compared.
* <P>
*
* For example, if <CODE>attributes[0] = "cn"</CODE> and
* <CODE>attributes[1]="uid"</CODE>, results are first sorted
* by the <CODE>cn</CODE> attribute. If two entries have the
* same value for <CODE>cn</CODE>, then the <CODE>uid</CODE>
* attribute is used to sort the entries.
* <P>
*
* Use an array of boolean values to specify whether each attribute
* should be sorted in ascending or descending order. For example,
* suppose that <CODE>attributes[0] = "cn"</CODE> and
* <CODE>attributes[1]="roomNumber"</CODE>. If
* <CODE>ascendingFlags[0]=true</CODE> and
* <CODE>ascendingFlags[1]=false</CODE>, attributes are sorted first by
* <CODE>cn</CODE> in ascending order, then by <CODE>roomNumber</CODE>
* in descending order.
* <P>
*
* If the size of the array of attribute names is not the same as
* the size of the array of boolean values, an
* <CODE>LDAPException</CODE> is thrown.
* <P>
*
* @param attribute array of the attribute names to use for comparisons
* @param ascendingFlags array of boolean values specifying ascending
* or descending order to use for each attribute name. If
* <CODE>true</CODE>, the attributes are sorted in ascending order.
*/
public LDAPCompareAttrNames (String[] attributes,
boolean[] ascendingFlags) {
m_attrs = attributes;
m_ascending = ascendingFlags;
if ( m_ascending == null ) {
m_ascending = new boolean[attributes.length];
for( int i = 0; i < attributes.length; i++ )
m_ascending[i] = true;
}
}
/**
* Gets the locale, if any, used for collation. If the locale is null,
* an ordinary string comparison is used for sorting.
*
* @return the locale used for collation, or null.
*/
public Locale getLocale() {
return m_locale;
}
/**
* Set the locale, if any, used for collation. If the locale is null,
* an ordinary string comparison is used for sorting.
*
* @param locale the locale used for collation, or null.
*/
public void setLocale( Locale locale ) {
m_locale = locale;
if ( m_locale == null ) {
m_collator = null;
} else {
m_collator = Collator.getInstance( m_locale );
}
}
/**
* Returns <CODE>true</CODE> if the value of the attribute in the first entry is greater
* than the value of the attribute in the second entry.
* <P>
*
* If one of the entries is missing the attribute, the other is
* considered greater. By default, the first entry is greater.
* <P>
*
* If either entry contains multiple values, only the first value
* is used for comparisons.
* <P>
*
* @param greater entry against which to test
* @param less entry to test
* @return <CODE>true</CODE> if (<CODE>greater &gt; less</CODE>).
*/
public boolean isGreater (LDAPEntry greater, LDAPEntry less) {
if (greater.equals (less)) return false;
return attrGreater (greater, less, 0);
}
/**
* Compares a particular attribute in both entries. If equal,
* moves on to the next.
* @param greater greater arg from isGreater
* @param less less arg from isGreater
* @param attrPos the index in an array of attributes, indicating
* the attribute to compare
* @return (greater > less)
*/
boolean attrGreater (LDAPEntry greater, LDAPEntry less,
int attrPos) {
Enumeration greaterAttrSet =
greater.getAttributeSet().getAttributes();
Enumeration lessAttrSet =
less.getAttributeSet().getAttributes();
String greaterValue = null;
String lessValue = null;
String attrName = m_attrs[attrPos];
boolean ascending = m_ascending[attrPos];
try {
while (lessAttrSet.hasMoreElements()) {
LDAPAttribute currAttr =
(LDAPAttribute)(lessAttrSet.nextElement());
if (!attrName.equalsIgnoreCase (currAttr.getName()))
continue;
lessValue =
(String)(currAttr.getStringValues().nextElement());
break;
}
while (greaterAttrSet.hasMoreElements()) {
LDAPAttribute currAttr =
(LDAPAttribute)(greaterAttrSet.nextElement());
if (!attrName.equalsIgnoreCase (currAttr.getName()))
continue;
greaterValue =
(String)(currAttr.getStringValues().nextElement());
break;
}
}
catch (ClassCastException cce) {
// i.e. one of the enumerations did not contain the
// right type !?
return false;
}
catch (NoSuchElementException nse) {
// i.e. one of the attributes had no values !?
return false;
}
if ((lessValue == null) ^ (greaterValue == null))
return greaterValue != null;
if (lessValue == null ||
lessValue.equalsIgnoreCase (greaterValue))
if (attrPos == m_attrs.length - 1)
return false;
else
return attrGreater (greater, less, attrPos+1);
if ( m_collator != null ) {
if ( ascending )
return ( m_collator.compare( greaterValue, lessValue ) > 0 );
else
return ( m_collator.compare( greaterValue, lessValue ) < 0 );
} else {
if ( ascending )
return (greaterValue.compareTo (lessValue) > 0);
else
return (greaterValue.compareTo (lessValue) < 0);
}
}
}

View File

@@ -1,423 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
import java.net.*;
/**
* Makes a connection to a server from a list using "smart" failover.
* Connection attempts can be made serially from the same thread, or
* in parallel by creating a separate thread after the specified delay.
* Connection setup status is preserved for later attempts, so that servers
* that are more likely to be available will be tried first.
* When a connection is successfully created, a socket is opened. The socket
* is passed to the LDAPConnThread. The LDAPConnThread must call
* invalidateConnection() if the connection is lost due to a network or
* server error, or disconnect() if the connection is deliberately terminated
* by the user.
*/
class LDAPConnSetupMgr implements Cloneable{
/**
* Policy for opening a connection when multiple servers are used
*/
private static final int SERIAL = 0;
private static final int PARALLEL = 1;
/**
* ServerEntry.connSetupStatus possible value. The values also represent
* the likelihood that the connection will be setup to a server. Lower
* values have higher priority. See sortDsList() method
*/
private static final int CONNECTED = 0;
private static final int DISCONNECTED = 1;
private static final int NEVER_USED = 2;
private static final int FAILED = 3;
/**
* Representation for a server in the server list.
*/
class ServerEntry {
String host;
int port;
int connSetupStatus;
Thread connSetupThread;
ServerEntry(String host, int port, int status) {
this.host = host;
this.port = port;
connSetupStatus = status;
connSetupThread = null;
}
public String toString() {
return "{" +host+":"+port + " status="+connSetupStatus+"}";
}
}
/**
* Socket to the connected server
*/
private Socket m_socket = null;
/**
* Last exception occured during connection setup
*/
private LDAPException m_connException = null;
/**
* List of server to use for the connection setup
*/
ServerEntry[] m_dsList;
/**
* Index of the last connected server
*/
private int m_dsIdx = -1;
/**
* Socket factory for SSL connections
*/
LDAPSocketFactory m_factory;
/**
* Connection setup policy (PARALLEL or SERIAL)
*/
int m_policy;
/**
* Delay in ms before another connection setup thread is started.
*/
int m_connSetupDelay;
/**
* Constructor
* @param host list of host names to which to connect
* @param port list of port numbers corresponding to the host list
* @param factory socket factory for SSL connections
* @param delay delay in seconds for the parallel connection setup policy.
* Possible values are: <br>(delay=-1) use serial policy,<br>
* (delay=0) start immediately concurrent threads to each specified server
* <br>(delay>0) create a new connection setup thread after delay seconds
*/
LDAPConnSetupMgr(String[] hosts, int[] ports, LDAPSocketFactory factory, int delay) {
m_dsList = new ServerEntry[hosts.length];
for (int i=0; i < hosts.length; i++) {
m_dsList[i] = new ServerEntry(hosts[i], ports[i], NEVER_USED);
}
m_factory = factory;
m_policy = (delay < 0) ? SERIAL : PARALLEL;
m_connSetupDelay = delay*1000;
}
/**
* Constructor used by clone()
*/
private LDAPConnSetupMgr() {}
/**
* Try to open the connection to any of the servers in the list.
*/
Socket openConnection() throws LDAPException{
m_socket = null;
m_connException = null;
// If reconnecting, sort dsList so that servers more likly to
// be available are tried first
sortDsList();
if (m_policy == SERIAL || m_dsList.length == 1) {
openSerial();
}
else {
openParallel();
}
if (m_socket != null) {
return m_socket;
}
if (m_connException != null) {
throw m_connException;
}
return null;
}
/**
* Called when the current connection is lost.
* Put the connected server at the end of the server list for
* the next connect attempt.
*/
void invalidateConnection() {
if (m_socket != null) {
m_dsList[m_dsIdx].connSetupStatus = FAILED;
// Move the entry to the end of the list
int srvCnt = m_dsList.length, j=0;
ServerEntry[] newDsList = new ServerEntry[m_dsList.length];
for (int i=0; i < srvCnt; i++) {
if (i != m_dsIdx) {
newDsList[j++] = m_dsList[i];
}
}
newDsList[j] = m_dsList[m_dsIdx];
m_dsList = newDsList;
m_dsIdx = j;
}
m_socket = null;
}
/**
* Called when the current connection is terminated by the user.
* Mark the connected server status as DISCONNECTED. This will
* put it at top of the server list for the next connect attempt.
*/
void disconnect() {
if (m_socket != null) {
m_dsList[m_dsIdx].connSetupStatus = DISCONNECTED;
}
m_socket = null;
}
Socket getSocket() {
return m_socket;
}
String getHost() {
if (m_dsIdx >= 0) {
return m_dsList[m_dsIdx].host;
}
return m_dsList[0].host;
}
int getPort() {
if (m_dsIdx >= 0) {
return m_dsList[m_dsIdx].port;
}
return m_dsList[0].port;
}
/**
* Check if the user has voluntarily closed the connection
*/
boolean isUserDisconnected() {
return (m_dsIdx >=0 &&
m_dsList[m_dsIdx].connSetupStatus == DISCONNECTED);
}
/**
* Try sequentially to open a new connection to a server.
*/
private void openSerial() {
for (int i=0; i < m_dsList.length; i++) {
m_dsList[i].connSetupThread = Thread.currentThread();
connectServer(i);
if (m_socket != null) {
return;
}
}
}
/**
* Try concurrently to open a new connection a server. Create a separate
* thread for each connection attempt.
*/
private synchronized void openParallel() {
for (int i=0; m_socket==null && i < m_dsList.length; i++) {
//Create a Thread to execute connectSetver()
final int dsIdx = i;
String threadName = "ConnSetupMgr " +
m_dsList[dsIdx].host + ":" + m_dsList[dsIdx].port;
Thread t = new Thread(new Runnable() {
public void run() {
connectServer(dsIdx);
}
}, threadName);
m_dsList[dsIdx].connSetupThread = t;
t.setDaemon(true);
t.start();
// Wait before starting another thread if the delay is not zero
if (m_connSetupDelay != 0 && i < (m_dsList.length-1)) {
try {
wait(m_connSetupDelay);
}
catch (InterruptedException e) {}
}
}
// At this point all threads are started. Wait until first thread
// succeeds to connect or all threads terminate
while (m_socket == null) {
// Check whether there are still running threads
boolean threadsRunning = false;
for (int i=0; i < m_dsList.length; i++) {
if (m_dsList[i].connSetupThread != null) {
threadsRunning = true;
break;
}
}
if (!threadsRunning) { return; }
// Wait for a thread to terminate
try {
wait();
}
catch (InterruptedException e) {}
}
}
/**
* Connect to the server at the given index
*/
private void connectServer(int idx) {
ServerEntry entry = m_dsList[idx];
Thread currThread = Thread.currentThread();
Socket sock = null;
LDAPException conex = null;
try {
/* If we are to create a socket ourselves, make sure it has
sufficient privileges to connect to the desired host */
if (m_factory == null) {
sock = new Socket (entry.host, entry.port);
//s.setSoLinger( false, -1 );
} else {
sock = m_factory.makeSocket(entry.host, entry.port);
}
}
catch (IOException e) {
conex = new LDAPException("failed to connect to server "
+ entry.host+":"+entry.port, LDAPException.CONNECT_ERROR);
}
catch (LDAPException e) {
conex = e;
}
if (currThread.isInterrupted()) {
return;
}
synchronized (this) {
if (m_socket == null && entry.connSetupThread == currThread) {
entry.connSetupThread = null;
if (sock != null) {
entry.connSetupStatus = CONNECTED;
m_socket = sock;
m_dsIdx = idx;
cleanup(); // Signal other concurrent threads to terminate
}
else {
entry.connSetupStatus = FAILED;
m_connException = conex;
}
notifyAll();
}
}
}
/**
* Terminate all concurrently running connection setup threads
*/
private synchronized void cleanup() {
Thread currThread = Thread.currentThread();
for (int i=0; i < m_dsList.length; i++) {
ServerEntry entry = m_dsList[i];
if (entry.connSetupThread != null && entry.connSetupThread != currThread) {
entry.connSetupStatus = FAILED;
//Thread.stop() is considered to be dangerous, use Thread.interrupt().
//interrupt() will however not work if the thread is blocked in the
//socket library native connect() call, but the connect() will
//eventually timeout and the thread will die.
entry.connSetupThread.interrupt();
entry.connSetupThread = null;
}
}
}
/**
* Sorts Server List so that servers which are more likely to be available
* are tried first. The likelihood of making a successful connection
* is determined by the connSetupStatus. Lower values have higher
* likelihood. Thus, the order of server access is (1) disconnected by
* the user (2) never used (3) connection setup failed/connection lost
*/
private void sortDsList() {
int srvCnt = m_dsList.length;
for (int i=1; i < srvCnt; i++) {
for (int j=0; j < i; j++) {
if (m_dsList[i].connSetupStatus < m_dsList[j].connSetupStatus) {
// swap entries
ServerEntry entry = m_dsList[j];
m_dsList[j] = m_dsList[i];
m_dsList[i] = entry;
}
}
}
}
/**
* This is used only by the ldapjdk test libaray to simulate a
* server problem and to test fail-over and rebind
* @return A flag whether the connection was closed
*/
boolean breakConnection() {
try {
m_socket.close();
return true;
}
catch (Exception e) {
return false;
}
}
public String toString() {
String str = "dsIdx="+m_dsIdx+ " dsList=";
for (int i=0; i < m_dsList.length; i++) {
str += m_dsList[i]+ " ";
}
return str;
}
public Object clone() {
LDAPConnSetupMgr cloneMgr = new LDAPConnSetupMgr();
cloneMgr.m_factory = m_factory;
cloneMgr.m_policy = m_policy;
cloneMgr.m_connSetupDelay = m_connSetupDelay;
cloneMgr.m_dsIdx = m_dsIdx;
cloneMgr.m_dsList = new ServerEntry[m_dsList.length];
cloneMgr.m_socket = m_socket;
for (int i=0; i<m_dsList.length; i++) {
ServerEntry e = m_dsList[i];
cloneMgr.m_dsList[i] = new ServerEntry(e.host, e.port, e.connSetupStatus);
}
return cloneMgr;
}
}

View File

@@ -1,607 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import netscape.ldap.ber.stream.*;
import netscape.ldap.util.*;
import java.io.*;
import java.net.*;
/**
* Multiple LDAPConnection clones can share a single physical connection,
* which is maintained by a thread.
*
* +----------------+
* | LDAPConnection | --------+
* +----------------+ |
* |
* +----------------+ | +----------------+
* | LDAPConnection | --------+------- | LDAPConnThread |
* +----------------+ | +----------------+
* |
* +----------------+ |
* | LDAPConnection | --------+
* +----------------+
*
* All LDAPConnections send requests and get responses from
* LDAPConnThread (a thread).
*/
class LDAPConnThread extends Thread {
/**
* Constants
*/
private final static int MAXMSGID = Integer.MAX_VALUE;
/**
* Internal variables
*/
transient private static int m_highMsgId;
transient private InputStream m_serverInput;
transient private OutputStream m_serverOutput;
transient private Hashtable m_requests;
transient private Hashtable m_messages = null;
transient private Vector m_registered;
transient private boolean m_disconnected = false;
transient private LDAPCache m_cache = null;
transient private boolean m_doRun = true;
private Socket m_socket = null;
transient private Thread m_thread = null;
transient Object m_sendRequestLock = new Object();
transient LDAPConnSetupMgr m_connMgr = null;
transient PrintWriter m_traceOutput = null;
/**
* Constructs a connection thread that maintains connection to the
* LDAP server.
* @param host LDAP host name
* @param port LDAP port number
* @param factory LDAP socket factory
*/
public LDAPConnThread(LDAPConnSetupMgr connMgr, LDAPCache cache, OutputStream traceOutput)
throws LDAPException {
super("LDAPConnThread " + connMgr.getHost() +":"+ connMgr.getPort());
m_requests = new Hashtable ();
m_registered = new Vector ();
m_connMgr = connMgr;
m_socket = connMgr.getSocket();
setCache( cache );
setTraceOutputStream(traceOutput);
setDaemon(true);
try {
m_serverInput = new BufferedInputStream (m_socket.getInputStream());
m_serverOutput = new BufferedOutputStream (m_socket.getOutputStream());
} catch (IOException e) {
// a kludge to make the thread go away. Since the thread has already
// been created, the only way to clean up the thread is to call the
// start() method. Otherwise, the exit method will be never called
// because the start() was never called. In the run method, the stop
// method calls right away if the m_doRun is set to false.
m_doRun = false;
start();
throw new LDAPException ( "failed to connect to server " +
m_connMgr.getHost(), LDAPException.CONNECT_ERROR );
}
start(); /* start the thread */
}
InputStream getInputStream() {
return m_serverInput;
}
void setInputStream( InputStream is ) {
m_serverInput = is;
}
OutputStream getOutputStream() {
return m_serverOutput;
}
void setOutputStream( OutputStream os ) {
m_serverOutput = os;
}
void setTraceOutputStream(OutputStream os) {
synchronized (m_sendRequestLock) {
m_traceOutput = (os == null) ? null : new PrintWriter(os);
}
}
/**
* Set the cache to use for searches.
* @param cache The cache to use for searches; <CODE>null</CODE> for no cache
*/
synchronized void setCache( LDAPCache cache ) {
m_cache = cache;
m_messages = (m_cache != null) ? new Hashtable() : null;
}
/**
* Allocates a new LDAP message ID. These are arbitrary numbers used to
* correlate client requests with server responses.
* @return new unique msgId
*/
private int allocateId () {
synchronized (m_sendRequestLock) {
m_highMsgId = (m_highMsgId + 1) % MAXMSGID;
return m_highMsgId;
}
}
/**
* Sends LDAP request via this connection thread.
* @param request request to send
* @param toNotify response listener to invoke when the response
* is ready
*/
void sendRequest (LDAPConnection conn, JDAPProtocolOp request,
LDAPMessageQueue toNotify, LDAPConstraints cons)
throws LDAPException {
if (m_serverOutput == null)
throw new LDAPException ( "not connected to a server",
LDAPException.SERVER_DOWN );
LDAPMessage msg =
new LDAPMessage(allocateId(), request, cons.getServerControls());
if ( toNotify != null ) {
if (!(request instanceof JDAPAbandonRequest ||
request instanceof JDAPUnbindRequest)) {
/* Only worry about toNotify if we expect a response... */
this.m_requests.put (new Integer (msg.getID()), toNotify);
/* Notify the backlog checker that there may be another outstanding
request */
resultRetrieved();
}
toNotify.addRequest(msg.getID(), conn, this, cons.getTimeLimit());
}
synchronized( m_sendRequestLock ) {
try {
if (m_traceOutput != null) {
m_traceOutput.println(msg.toTraceString());
m_traceOutput.flush();
}
msg.write (m_serverOutput);
m_serverOutput.flush ();
} catch (IOException e) {
networkError(e);
}
}
}
/**
* Register with this connection thread.
* @param conn LDAP connection
*/
public synchronized void register(LDAPConnection conn) {
if (!m_registered.contains(conn))
m_registered.addElement(conn);
}
synchronized int getClientCount() {
return m_registered.size();
}
/**
* De-Register with this connection thread. If all the connection
* is deregistered. Then, this thread should be killed.
* @param conn LDAP connection
*/
public synchronized void deregister(LDAPConnection conn) {
m_registered.removeElement(conn);
if (m_registered.size() == 0) {
try {
m_doRun =false;
if (!m_disconnected) {
LDAPSearchConstraints cons = conn.getSearchConstraints();
sendRequest (null, new JDAPUnbindRequest (), null, cons);
}
if ( m_thread != null && m_thread != Thread.currentThread()) {
m_thread.interrupt();
// Wait up to 1 sec for thread to accept disconnect
// notification. When the interrupt is accepted,
// m_thread is set to null. See run() method.
try {
wait(1000);
}
catch (InterruptedException e) {
}
}
cleanUp();
} catch (Exception e) {
LDAPConnection.printDebug(e.toString());
}
}
}
/**
* Clean ups before shutdown the thread.
*/
private void cleanUp() {
if (!m_disconnected) {
try {
m_serverOutput.close ();
} catch (Exception e) {
} finally {
m_serverOutput = null;
}
try {
m_serverInput.close ();
} catch (Exception e) {
} finally {
m_serverInput = null;
}
try {
m_socket.close ();
} catch (Exception e) {
} finally {
m_socket = null;
}
m_disconnected = true;
/**
* Notify the Connection Setup Manager that the connection was
* terminated by the user
*/
m_connMgr.disconnect();
/**
* Cancel all outstanding requests
*/
if (m_requests != null) {
Enumeration requests = m_requests.elements();
while (requests.hasMoreElements()) {
LDAPMessageQueue listener =
(LDAPMessageQueue)requests.nextElement();
listener.removeAllRequests(this);
}
}
/**
* Notify all the registered about this bad moment.
* IMPORTANT: This needs to be done at last. Otherwise, the socket
* input stream and output stream might never get closed and the whole
* task will get stuck in the stop method when we tried to stop the
* LDAPConnThread.
*/
if (m_registered != null) {
Vector registerCopy = (Vector)m_registered.clone();
Enumeration cancelled = registerCopy.elements();
while (cancelled.hasMoreElements ()) {
LDAPConnection c = (LDAPConnection)cancelled.nextElement();
c.deregisterConnection();
}
}
m_registered = null;
m_messages = null;
m_requests.clear();
}
}
/**
* Sleep if there is a backlog of search results
*/
private void checkBacklog() throws InterruptedException{
boolean doWait;
do {
doWait = false;
Enumeration listeners = m_requests.elements();
while( listeners.hasMoreElements() ) {
LDAPMessageQueue l =
(LDAPMessageQueue)listeners.nextElement();
// If there are any threads waiting for a regular response
// message, we have to go read the next incoming message
if ( !(l instanceof LDAPSearchListener) ) {
doWait = false;
break;
}
// If the backlog of any search thread is too great,
// wait for it to diminish, but if this is a synchronous
// search, then just keep reading
LDAPSearchListener sl = (LDAPSearchListener)l;
// Asynch operation ?
if (sl.isAsynchOp()) {
if (sl.getMessageCount() >= sl.getSearchConstraints().getMaxBacklog()) {
doWait = true;
}
}
// synch op with non-zero batch size ?
else if (sl.getSearchConstraints().getBatchSize() != 0) {
if (sl.getMessageCount() >= sl.getSearchConstraints().getMaxBacklog()) {
doWait = true;
}
}
}
if ( doWait ) {
synchronized(this) {
wait();
}
}
} while ( doWait );
}
/**
* This is called when a search result has been retrieved from the incoming
* queue. We use the notification to unblock the listener thread, if it
* is waiting for the backlog to lighten.
*/
synchronized void resultRetrieved() {
notifyAll();
}
/**
* Reads from the LDAP server input stream for incoming LDAP messages.
*/
public void run() {
// if there is a problem of establishing connection to the server,
// stop the thread right away...
if (!m_doRun) {
return;
}
m_thread = Thread.currentThread();
LDAPMessage msg = null;
JDAPBERTagDecoder decoder = new JDAPBERTagDecoder();
while (m_doRun) {
yield();
int[] nread = new int[1];
nread[0] = 0;
try {
// Avoid too great a backlog of results
checkBacklog();
BERElement element = BERElement.getElement(decoder,
m_serverInput,
nread);
msg = LDAPMessage.parseMessage(element);
if (m_traceOutput != null) {
synchronized( m_sendRequestLock ) {
m_traceOutput.println(msg.toTraceString());
m_traceOutput.flush();
}
}
// passed in the ber element size to approximate the size of the cache
// entry, thereby avoiding serialization of the entry stored in the
// cache
processResponse (msg, nread[0]);
} catch (Exception e) {
if (m_doRun) {
networkError(e);
m_doRun =false;
}
else {
synchronized (this) {
m_thread = null;
notifyAll();
}
}
}
}
}
/**
* When a response arrives from the LDAP server, it is processed by
* this routine. It will pass the message on to the listening object
* associated with the LDAP msgId.
* @param msg New message from LDAP server
*/
private void processResponse (LDAPMessage msg, int size) {
Integer messageID = new Integer (msg.getID());
LDAPMessageQueue l = (LDAPMessageQueue)m_requests.get (messageID);
if (l == null) {
return; /* nobody is waiting for this response (!) */
}
// For asynch operations controls are to be read from the LDAPMessage
// For synch operations controls are copied into the LDAPConnection
// For synch search operations, controls are also copied into
// LDAPSearchResults (see LDAPConnection.checkSearchMsg())
if ( ! l.isAsynchOp()) {
/* Were there any controls for this client? */
LDAPControl[] con = msg.getControls();
if (con != null) {
int msgid = msg.getID();
LDAPConnection ldc = l.getConnection(msgid);
if (ldc != null) {
ldc.setResponseControls( this,
new LDAPResponseControl(ldc, msgid, con));
}
}
}
if (m_cache != null && (l instanceof LDAPSearchListener)) {
cacheSearchResult((LDAPSearchListener)l, msg, size);
}
l.addMessage (msg);
if (msg instanceof LDAPResponse) {
m_requests.remove (messageID);
}
}
/**
* Collect search results to be added to the LDAPCache. Search results are
* packaged in a vector and temporary stored into a hashtable m_messages
* using the message id as the key. The vector first element (at index 0)
* is a Long integer representing the total size of all LDAPEntries entries.
* It is followed by the actual LDAPEntries.
* If the total size of entries exceeds the LDAPCache max size, or a referral
* has been received, caching of search results is disabled and the entry is
* not added to the LDAPCache. A disabled search request is denoted by setting
* the entry size to -1.
*/
private synchronized void cacheSearchResult (LDAPSearchListener l, LDAPMessage msg, int size) {
Integer messageID = new Integer (msg.getID());
Long key = l.getKey();
Vector v = null;
if ((m_cache == null) || (key == null)) {
return;
}
if (msg instanceof LDAPSearchResult) {
// get the vector containing the LDAPMessages for the specified messageID
v = (Vector)m_messages.get(messageID);
if (v == null) {
m_messages.put(messageID, v = new Vector());
v.addElement(new Long(0));
}
// Return if the entry size is -1, i.e. the caching is disabled
if (((Long)v.firstElement()).longValue() == -1L) {
return;
}
// add the size of the current LDAPMessage to the lump sum
// assume the size of LDAPMessage is more or less the same as the size
// of LDAPEntry. Eventually LDAPEntry object gets stored in the cache
// instead of LDAPMessage object.
long entrySize = ((Long)v.firstElement()).longValue() + size;
// If the entrySize exceeds the cache size, discard the collected
// entries and disble collecting of entries for this search request
// by setting the entry size to -1.
if (entrySize > m_cache.getSize()) {
v.removeAllElements();
v.addElement(new Long(-1L));
return;
}
// update the lump sum located in the first element of the vector
v.setElementAt(new Long(entrySize), 0);
// convert LDAPMessage object into LDAPEntry which is stored to the
// end of the Vector
v.addElement(((LDAPSearchResult)msg).getEntry());
} else if (msg instanceof LDAPSearchResultReference) {
// If a search reference is received disable caching of
// this search request
v = (Vector)m_messages.get(messageID);
if (v == null) {
m_messages.put(messageID, v = new Vector());
}
else {
v.removeAllElements();
}
v.addElement(new Long(-1L));
} else if (msg instanceof LDAPResponse) {
// The search request has completed. Store the cache entry
// in the LDAPCache if the operation has succeded and caching
// is not disabled due to the entry size or referrals
boolean fail = ((LDAPResponse)msg).getResultCode() > 0;
v = (Vector)m_messages.remove(messageID);
if (!fail) {
// If v is null, meaning there are no search results from the
// server
if (v == null) {
v = new Vector();
v.addElement(new Long(0));
}
// add the new entry if the entry size is not -1 (caching diabled)
if (((Long)v.firstElement()).longValue() != -1L) {
m_cache.addEntry(key, v);
}
}
}
}
/**
* Stop dispatching responses for a particular message ID.
* @param id Message ID for which to discard responses.
*/
void abandon (int id ) {
LDAPMessageQueue l = (LDAPMessageQueue)m_requests.remove(new Integer(id));
// Clean up cache if enabled
if (m_messages != null) {
m_messages.remove(new Integer(id));
}
if (l != null) {
l.removeRequest(id);
}
resultRetrieved(); // If LDAPConnThread is blocked in checkBacklog()
}
/**
* Handles network errors. Basically shuts down the whole connection.
* @param e The exception which was caught while trying to read from
* input stream.
*/
private synchronized void networkError (Exception e) {
// notify the Connection Setup Manager that the connection is lost
m_connMgr.invalidateConnection();
try {
// notify each listener that the server is down.
Enumeration requests = m_requests.elements();
while (requests.hasMoreElements()) {
LDAPMessageQueue listener =
(LDAPMessageQueue)requests.nextElement();
listener.setException(this, new LDAPException("Server down",
LDAPException.OTHER));
}
} catch (NullPointerException ee) {
System.err.println("Exception: "+ee.toString());
}
cleanUp();
}
}

View File

@@ -1,384 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Represents a set of operation preferences.
* You can set these preferences for a particular operation
* by creating an <CODE>LDAPConstraints</CODE> object,
* specifying your preferences, and passing the object to
* the proper <CODE>LDAPConnection</CODE> method.
* <P>
*
* @version 1.0
*/
public class LDAPConstraints implements Cloneable {
private int m_hop_limit;
private LDAPBind m_bind_proc;
private LDAPRebind m_rebind_proc;
private boolean referrals;
private int m_time_limit;
private LDAPControl[] m_clientControls;
private LDAPControl[] m_serverControls;
/**
* Constructs an <CODE>LDAPConstraints</CODE> object that specifies
* the default set of constraints.
*/
public LDAPConstraints() {
m_time_limit = 0;
referrals = false;
m_bind_proc = null;
m_rebind_proc = null;
m_hop_limit = 5;
m_clientControls = null;
m_serverControls = null;
}
/**
* Constructs a new <CODE>LDAPConstraints</CODE> object and allows you
* to specify the constraints in that object.
* <P>
* @param msLimit maximum time in milliseconds to wait for results (0
* by default, which means that there is no maximum time limit)
* @param doReferrals specify <CODE>true</CODE> to follow referrals
* automatically, or <CODE>False</CODE> to throw an
* <CODE>LDAPReferralException</CODE> error if the server sends back
* a referral (<CODE>False</CODE> by default)
* @param rebind_proc specifies the object that
* implements the <CODE>LDAPRebind</CODE> interface (you need to
* define this class). The object will be used when the client
* follows referrals automatically. The object provides the client
* with a method for getting the distinguished name and password
* used to authenticate to another LDAP server during a referral.
* (This field is <CODE>null</CODE> by default.)
* @param hop_limit maximum number of referrals to follow in a
* sequence when attempting to resolve a request
* @see netscape.ldap.LDAPConnection#setOption(int, java.lang.Object)
*/
public LDAPConstraints( int msLimit, boolean doReferrals,
LDAPRebind rebind_proc, int hop_limit) {
m_time_limit = msLimit;
referrals = doReferrals;
m_bind_proc = null;
m_rebind_proc = rebind_proc;
m_hop_limit = hop_limit;
m_clientControls = null;
m_serverControls = null;
}
/**
* Constructs a new <CODE>LDAPConstraints</CODE> object and allows you
* to specify the constraints in that object.
* <P>
* @param msLimit Mmaximum time in milliseconds to wait for results (0
* by default, which means that there is no maximum time limit)
* @param doReferrals specify <CODE>true</CODE> to follow referrals
* automatically, or <CODE>False</CODE> to throw an
* <CODE>LDAPReferralException</CODE> error if the server sends back
* a referral (<CODE>False</CODE> by default)
* @param bind_proc specifies the object that
* implements the <CODE>LDAPBind</CODE> interface (you need to
* define this class). The object will be used to authenticate to the
* server on referrals. (This field is <CODE>null</CODE> by default.)
* @param hop_limit maximum number of referrals to follow in a
* sequence when attempting to resolve a request
* @see netscape.ldap.LDAPConnection#setOption(int, java.lang.Object)
*/
public LDAPConstraints( int msLimit, boolean doReferrals,
LDAPBind bind_proc, int hop_limit) {
m_time_limit = msLimit;
referrals = doReferrals;
m_bind_proc = bind_proc;
m_rebind_proc = null;
m_hop_limit = hop_limit;
m_clientControls = null;
m_serverControls = null;
}
/**
* Returns the maximum number of milliseconds to wait for any operation
* under these constraints. If 0, there is no maximum time limit
* on waiting for the operation results.
* @return maximum number of milliseconds to wait for operation results.
*/
public int getTimeLimit() {
return m_time_limit;
}
/**
* Specifies whether nor not referrals are followed automatically.
* Returns <CODE>true</CODE> if referrals are to be followed automatically,
* or <CODE>false</CODE> if referrals throw an
* <CODE>LDAPReferralException</CODE>.
* @return <CODE>true</CODE> if referrals are followed automatically,
* <CODE>false</CODE> if referrals throw an
* <CODE>LDAPReferralException</CODE>.
*/
public boolean getReferrals() {
return referrals;
}
/**
* Returns the object that provides the mechanism for authenticating to the
* server on referrals. This object must implement the <CODE>LDAPBind</CODE>
* interface.
* @return object to use to authenticate to the server on referrals.
* @see netscape.ldap.LDAPBind
*/
public LDAPBind getBindProc() {
return m_bind_proc;
}
/**
* Returns the object that provides the method for getting
* authentication information. This object must
* implement the <CODE>LDAPRebind</CODE> interface.
* @return object to use to obtain information for
* authenticating to other LDAP servers during referrals.
* @see netscape.ldap.LDAPRebind
* @see netscape.ldap.LDAPRebindAuth
*/
public LDAPRebind getRebindProc() {
return m_rebind_proc;
}
/**
* Returns the maximum number of hops to follow during a referral.
* @return maximum number of hops to follow during a referral.
*/
public int getHopLimit() {
return m_hop_limit;
}
/**
* Returns any client controls to be applied by the client
* to LDAP operations.
* @return client controls for the client to apply to LDAP operations.
* @see netscape.ldap.LDAPControl
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public LDAPControl[] getClientControls() {
return m_clientControls;
}
/**
* Returns any server controls to be applied by the server
* to LDAP operations.
* @return server controls for the server to apply to LDAP operations.
* @see netscape.ldap.LDAPControl
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public LDAPControl[] getServerControls() {
return m_serverControls;
}
/**
* Sets the maximum number of milliseconds to wait for any operation
* under these constraints. If 0, there is no maximum time limit
* on waiting for the operation results. If the time limit is exceeded,
* an LDAPException with the result code <CODE>LDAPException.TIME_LIMIT
* </CODE> is thrown.
* @param msLimit Maximum number of milliseconds to wait for operation
* results (0 by default, which means that there is no maximum time
* limit.)
* @see netscape.ldap.LDAPException#LDAP_TIMEOUT
*/
public void setTimeLimit( int msLimit ) {
m_time_limit = msLimit;
}
/**
* Specifies whether or not referrals are followed automatically.
* Specify <CODE>true</CODE> if referrals are to be followed automatically,
* or <CODE>false</CODE> if referrals are to throw an
* <CODE>LDAPReferralException</CODE>.
* (By default, this is set to <CODE>false</CODE>.)
* <P>
* If you set this to <CODE>true</CODE>, you need to create an object of
* this class that implements either the <CODE>LDAPRebind</CODE> or
* <CODE>LDAPBind</CODE> interface. The <CODE>LDAPRebind</CODE> object
* identifies the method for retrieving authentication information which
* will be used when connecting to other LDAP servers during referrals.
* This object should be passed to the <CODE>setRebindProc</CODE> method.
* Alternatively, the <CODE>LDAPBind</CODE> object identifies an
* authentication mechanism to be used instead of the default
* authentication mechanism when following referrals. This
* object should be passed to the <CODE>setBindProc</CODE> method.
* @param doReferrals set to <CODE>true</CODE> if referrals should be
* followed automatically, or <CODE>False</CODE> if referrals should throw
* an <CODE>LDAPReferralException</CODE>
* @see netscape.ldap.LDAPBind
* @see netscape.ldap.LDAPRebind
* @see netscape.ldap.LDAPRebindAuth
*/
public void setReferrals( boolean doReferrals ) {
referrals = doReferrals;
}
/**
* Sets the object that provides the mechanism for authenticating
* to the server on referrals. This object must implement
* the <CODE>LDAPBind</CODE> interface.(By default, this is
* <CODE>null</CODE>.) This method sets the <CODE>LDAPRebind</CODE>
* object to null for this constraint.
* @param bind_proc object to use to authenticate to the server
* on referrals
* @see netscape.ldap.LDAPBind
*/
public void setBindProc( LDAPBind bind_proc ) {
m_bind_proc = bind_proc;
if (bind_proc != null) {
m_rebind_proc = null;
}
}
/**
* Specifies the object that provides the method for getting
* authentication information. This object must belong to a class
* that implements the <CODE>LDAPRebind</CODE> interface.
* (By default, this is <CODE>null</CODE>.) This method sets the
* <CODE>LDAPBind</CODE> object to null for this constraint.
* @param rebind_proc object to use to obtain information for
* authenticating to other LDAP servers during referrals
*/
public void setRebindProc( LDAPRebind rebind_proc ) {
m_rebind_proc = rebind_proc;
if (rebind_proc != null) {
m_bind_proc = null;
}
}
/**
* Sets maximum number of hops to follow in sequence during a referral.
* (By default, this is 5.)
* @param hop_limit maximum number of hops to follow during a referral
*/
public void setHopLimit( int hop_limit ) {
m_hop_limit = hop_limit;
}
/**
* Sets a client control for LDAP operations.
* @param control client control for LDAP operations
* @see netscape.ldap.LDAPControl
*/
public void setClientControls( LDAPControl control ) {
m_clientControls = new LDAPControl[1];
m_clientControls[0] = control;
}
/**
* Sets an array of client controls for LDAP operations.
* @param controls array of client controls for LDAP operations
* @see netscape.ldap.LDAPControl
*/
public void setClientControls( LDAPControl[] controls ) {
m_clientControls = controls;
}
/**
* Sets a server control for LDAP operations.
* @param control server control for LDAP operations
* @see netscape.ldap.LDAPControl
*/
public void setServerControls( LDAPControl control ) {
m_serverControls = new LDAPControl[1];
m_serverControls[0] = control;
}
/**
* Sets an array of server controls for LDAP operations.
* @param controls an array of server controls for LDAP operations
* @see netscape.ldap.LDAPControl
*/
public void setServerControls( LDAPControl[] controls ) {
m_serverControls = controls;
}
/**
* Return a string representation of the object for debugging
*
* @return A string representation of the object
*/
public String toString() {
StringBuffer sb = new StringBuffer("LDAPConstraints {");
sb.append("time limit " + getTimeLimit() + ", ");
sb.append("referrals " + getReferrals() + ", ");
sb.append("hop limit " + getHopLimit() + ", ");
sb.append("bind_proc " + getBindProc() + ", ");
sb.append("rebind_proc " + getRebindProc());
LDAPControl[] controls = getClientControls();
if ( controls != null ) {
sb.append(", client controls ");
for (int i =0; i < controls.length; i++) {
sb.append(controls[i].toString());
if ( i < (controls.length - 1) ) {
sb.append(" ");
}
}
}
controls = getServerControls();
if ( controls != null ) {
sb.append(", server controls ");
for (int i =0; i < controls.length; i++) {
sb.append(controls[i].toString());
if ( i < (controls.length - 1) ) {
sb.append(" ");
}
}
}
sb.append('}');
return sb.toString();
}
/**
* Makes a copy of an existing set of constraints.
* @returns a copy of an existing set of constraints
*/
public Object clone() {
LDAPConstraints o = new LDAPConstraints();
o.m_time_limit = this.m_time_limit;
o.referrals = this.referrals;
o.m_bind_proc = this.m_bind_proc;
o.m_rebind_proc = this.m_rebind_proc;
o.m_hop_limit = this.m_hop_limit;
if ( (this.m_clientControls != null) &&
(this.m_clientControls.length > 0) ) {
o.m_clientControls = new LDAPControl[this.m_clientControls.length];
for( int i = 0; i < this.m_clientControls.length; i++ )
o.m_clientControls[i] =
(LDAPControl)this.m_clientControls[i].clone();
}
if ( (this.m_serverControls != null) &&
(this.m_serverControls.length > 0) ) {
o.m_serverControls = new LDAPControl[this.m_serverControls.length];
for( int i = 0; i < this.m_serverControls.length; i++ )
o.m_serverControls[i] =
(LDAPControl)this.m_serverControls[i].clone();
}
return o;
}
}

View File

@@ -1,505 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.io.*;
import java.util.*;
import java.lang.reflect.*;
import netscape.ldap.ber.stream.*;
import netscape.ldap.client.*;
import netscape.ldap.util.*;
import netscape.ldap.controls.*;
/**
* Represents arbitrary control data that can be used with a
* a particular LDAP operation. LDAP controls are part of version 3
* of the LDAP protocol.
* <P>
*
* LDAP controls allow you to extend the functionality of
* an LDAP operation. For example, you can use an LDAP control
* for the search operation to sort search results on an LDAP server.
* <P>
*
* An LDAP control can be either a <B>server control</B> or
* a <B>client control</B>:
* <P>
* <UL>
* <LI><B>Server controls</B> can be sent to the LDAP server or returned
* by the server on any operation.
* <LI><B>Client controls</B> are intended to affect only the client side
* of the operation.
* </UL>
* <P>
*
* An LDAP control consists of the following information:
* <P>
* <UL>
* <LI>A unique object ID (OID) that identifies the control.<P>
* <LI>A &quot;criticality&quot; field, which indicates whether or
* not the control is critical to the operation. (If the control is
* critical to the operation and the server does not support the control,
* the server should not execute the operation.)<P>
* <LI>Data pertaining to the control.<P>
* </UL>
* <P>
*
* To determine which server controls are supported by a particular server,
* you need to search for the root DSE (DSA-specific entry, where DSA is
* another term for &quot;LDAP server&quot;) and find the values of the
* <CODE>supportedControl</CODE> attribute. This attribute contains the
* object IDs (OIDs) of the controls supported by this server.
* <P>
*
* The following section of code demonstrates how to get the list
* of the server controls supported by an LDAP server.
* <P>
*
* <PRE>
* public static void main( String[] args )
* {
* LDAPConnection ld = new LDAPConnection();
* try {
* String MY_HOST = "localhost";
* int MY_PORT = 389;
* ld.connect( MY_HOST, MY_PORT );
* try {
* ld.authenticate( 3, "cn=Directory Manager", "23skidoo" );
* } catch( LDAPException e ) {
* System.out.println( "LDAP server does not support v3." );
* ld.disconnect();
* System.exit(1);
* }
*
* String MY_FILT = "(objectclass=*)";
* String MY_BASE = "";
* String getAttrs[] = { "supportedControl" };
* LDAPSearchResults res = ld.search( MY_BASE,
* LDAPConnection.SCOPE_BASE, MY_FILT, getAttrs, false );
*
* while ( res.hasMoreElements() ) {
* LDAPEntry findEntry = (LDAPEntry)res.nextElement();
* LDAPAttributeSet findAttrs = findEntry.getAttributeSet();
* Enumeration enumAttrs = findAttrs.getAttributes();
*
* while ( enumAttrs.hasMoreElements() ) {
* LDAPAttribute anAttr = (LDAPAttribute)enumAttrs.nextElement();
* String attrName = anAttr.getName();
* System.out.println( attrName );
* Enumeration enumVals = anAttr.getStringValues();
*
* while ( enumVals.hasMoreElements() ) {
* String aVal = ( String )enumVals.nextElement();
* System.out.println( "\t" + aVal );
* }
* }
* }
* }
* catch( LDAPException e ) {
* System.out.println( "Error: " + e.toString() );
* }
* try {
* ld.disconnect();
* }
* catch( LDAPException e ) {
* System.exit(1);
* }
* System.exit(0);
* }
* </PRE>
* <P>
*
* If you compile and run this example against an LDAP server that
* supports v3 of the protocol, you might receive the following results:
* <P>
*
* <PRE>
* supportedcontrol
* 2.16.840.1.113730.3.4.2
* 2.16.840.1.113730.3.4.3
* 2.16.840.1.113730.3.4.4
* 2.16.840.1.113730.3.4.5
* 1.2.840.113556.1.4.473
* </PRE>
* <P>
*
* For more information on LDAP controls, see the Internet-Draft on
* the LDAP v3 protocol. (Note that this internet draft is still a
* work in progress. You can find the latest draft at the <A
* HREF="http://www.ietf.cnri.reston.va.us/html.charters/asid-charter.html"
* TARGET="_blank">ASID home page</A>.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPv3#CLIENTCONTROLS
* @see netscape.ldap.LDAPv3#SERVERCONTROLS
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPConnection#getResponseControls
* @see netscape.ldap.LDAPConstraints#getClientControls
* @see netscape.ldap.LDAPConstraints#getServerControls
* @see netscape.ldap.LDAPConstraints#setClientControls
* @see netscape.ldap.LDAPConstraints#setServerControls
*/
public class LDAPControl implements Cloneable {
public final static String MANAGEDSAIT = "2.16.840.1.113730.3.4.2";
/* Password information sent back to client */
public final static String PWEXPIRED = "2.16.840.1.113730.3.4.4";
public final static String PWEXPIRING = "2.16.840.1.113730.3.4.5";
/**
* Default constructor for the <CODE>LDAPControl</CODE> class.
*/
public LDAPControl()
{
}
/**
* Constructs a new <CODE>LDAPControl</CODE> object using the
* specified object ID (OID), &quot;criticality&quot; field, and
* data to be used by the control.
* <P>
*
* @param id the object ID (OID) identifying the control
* @param critical <CODE>true</CODE> if the LDAP operation should be
* cancelled when the server does not support this control (in other
* words, this control is critical to the LDAP operation)
* @param vals control-specific data
* @see netscape.ldap.LDAPConstraints#setClientControls
* @see netscape.ldap.LDAPConstraints#setServerControls
*/
public LDAPControl(String id,
boolean critical,
byte vals[]) {
m_oid = id;
m_critical = critical;
m_value = vals;
}
/**
* Gets the object ID (OID) of the control.
* @return object ID (OID) of the control.
*/
public String getID() {
return m_oid;
}
/**
* Specifies whether or not the control is critical to the LDAP operation.
* @return <CODE>true</CODE> if the LDAP operation should be cancelled when
* the server does not support this control.
*/
public boolean isCritical() {
return m_critical;
}
/**
* Gets the data in the control.
* @return the data in the control as a byte array.
*/
public byte[] getValue() {
return m_value;
}
/**
* Gets the ber representation of control.
* @return ber representation of control.
*/
BERElement getBERElement() {
BERSequence seq = new BERSequence();
seq.addElement(new BEROctetString (m_oid));
seq.addElement(new BERBoolean (m_critical));
if ( (m_value == null) || (m_value.length < 1) )
seq.addElement(new BEROctetString ((byte[])null));
else {
seq.addElement(new BEROctetString (m_value, 0, m_value.length));
}
return seq;
}
/**
* Associates a class with an oid. This class must be an extension of
* <CODE>LDAPControl</CODE>, and should implement the <CODE>LDAPControl(
* String oid, boolean critical, byte[] value)</CODE> constructor to
* instantiate the control.
* @param oid the string representation of the oid
* @param controlClass the class that instantatiates the control associated
* with oid
* @exception netscape.ldap.LDAPException If the class parameter is not
* a subclass of <CODE>LDAPControl</CODE> or the class parameter does not
* implement the <CODE>LDAPControl(String oid, boolean critical, byte[] value)
* </CODE> constructor.
*/
public static void register(String oid, Class controlClass) throws
LDAPException {
if (controlClass == null) {
return;
}
// 1. make sure controlClass is a subclass of LDAPControl
Class superClass = controlClass;
while (superClass != LDAPControl.class && superClass != null) {
superClass = superClass.getSuperclass();
}
if (superClass == null)
throw new LDAPException("controlClass must be a subclass of " +
"LDAPControl", LDAPException.PARAM_ERROR);
// 2. make sure controlClass has the proper constructor
Class[] cparams = { String.class, boolean.class, byte[].class };
try {
controlClass.getConstructor(cparams);
} catch (NoSuchMethodException e) {
throw new LDAPException("controlClass does not implement the " +
"correct contstructor",
LDAPException.PARAM_ERROR);
}
// 3. check if the hash table exists
if (m_controlClassHash == null) {
m_controlClassHash = new Hashtable();
}
// 4. add the controlClass
m_controlClassHash.put(oid, controlClass);
}
/**
* Returns the <CODE>Class</CODE> that has been registered to oid.
* @param oid a String that associates the control class to a control
* @return a <CODE>Class</CODE> that can instantiate a control of the
* type specified by oid.
* @see netscape.ldap.LDAPControl#register
*
*/
protected static Class lookupControlClass(String oid) {
if (m_controlClassHash == null) {
return null;
}
return (Class)m_controlClassHash.get(oid);
}
/**
* Returns a <CODE>LDAPControl</CODE> object instantiated by the Class
* associated by <CODE>LDAPControl.register</CODE> to the oid. If
* no Class is found for the given control, or an exception occurs when
* attempting to instantiate the control, a basic <CODE>LDAPControl</CODE>
* is instantiated using the parameters.
* @param oid the oid of the control to instantiate
* @param critical <CODE>true</CODE> if this is a critical control
* @param value the byte value for the control
* @return a newly instantiated <CODE>LDAPControl</CODE>.
* @see netscape.ldap.LDAPControl#register
*/
protected static LDAPControl createControl(String oid, boolean critical,
byte[] value) {
Class controlClass = lookupControlClass(oid);
if (controlClass == null) {
return new LDAPControl(oid, critical, value);
}
Class[] cparams = { String.class, boolean.class, byte[].class };
Constructor creator = null;
try {
creator = controlClass.getConstructor(cparams);
} catch (NoSuchMethodException e) {
//shouldn't happen, but...
System.err.println("Caught java.lang.NoSuchMethodException while" +
" attempting to instantiate a control of type " +
oid);
return new LDAPControl(oid, critical, value);
}
Object[] oparams = { oid, new Boolean(critical), value } ;
LDAPControl returnControl = null;
try {
returnControl = (LDAPControl)creator.newInstance(oparams);
} catch (Exception e) {
String eString = null;
if (e instanceof InvocationTargetException) {
eString = ((InvocationTargetException)
e).getTargetException().toString();
} else {
eString = e.toString();
}
System.err.println("Caught " + eString + " while attempting to" +
" instantiate a control of type " +
oid);
returnControl = new LDAPControl(oid, critical, value);
}
return returnControl;
}
/**
* Returns a <CODE>LDAPControl</CODE> object instantiated by the Class
* associated by <CODE>LDAPControl.register</CODE> to the oid. If
* no Class is found for the given control, or an exception occurs when
* attempting to instantiate the control, a basic <CODE>LDAPControl</CODE>
* is instantiated using the parameters.
* @param el the <CODE>BERElement</CODE> containing the control
* @return a newly instantiated <CODE>LDAPControl</CODE>.
* @see netscape.ldap.LPAPControl#register
*
* Note:
* This code was extracted from <CODE>JDAPControl(BERElement el)</CODE>
* constructor.
*/
static LDAPControl parseControl(BERElement el) {
BERSequence s = (BERSequence)el;
String oid = null;
boolean critical = false;
byte[] value = null;
try{
oid = new String(((BEROctetString)s.elementAt(0)).getValue(), "UTF8");
} catch(Throwable x) {}
Object obj = s.elementAt(1);
if (obj instanceof BERBoolean) {
critical = ((BERBoolean)obj).getValue();
}
else {
value = ((BEROctetString)obj).getValue();
}
if (s.size() >= 3) {
value = ((BEROctetString)s.elementAt(2)).getValue();
}
return createControl(oid, critical, value);
}
/**
* Instantiates all of the controls contained within the LDAP message
* fragment specified by data and returns them in an <CODE>LDAPControl</CODE>
* array. This fragment can be either the entire LDAP message or just the
* control section of the message.
* <P>
* If an exception occurs when instantiating a control, that control is
* returned as a basic <CODE>LDAPControl</CODE>.
* @param data the LDAP message fragment in raw BER format
* @return an <CODE>LDAPControl</CODE> array containing all of the controls
* from the message fragment.
* @exception java.lang.IOException If the data passed to this method
* is not a valid LDAP message fragment.
* @see netscape.ldap.LDAPControl#register
*/
public static LDAPControl[] newInstance(byte[] data) throws IOException {
int[] bread = { 0 };
BERElement el = BERElement.getElement(new JDAPBERTagDecoder(),
new ByteArrayInputStream(data),
bread);
LDAPControl[] jc = null;
try {
// see if data is a LDAP message
LDAPMessage msg = LDAPMessage.parseMessage(el);
return msg.getControls();
} catch (IOException e) {
// that didn't work; let's see if its just the controls
BERTag tag = (BERTag)el;
if ( tag.getTag() == (BERTag.CONSTRUCTED|BERTag.CONTEXT|0) ) {
BERSequence controls = (BERSequence)tag.getValue();
jc = new LDAPControl[controls.size()];
for (int i = 0; i < controls.size(); i++) {
jc[i] = parseControl(controls.elementAt(i));
}
}
}
return jc;
}
/**
* Creates a copy of the control.
* @return copy of the control.
*/
public Object clone() {
byte[] vals = null;
if ( m_value != null ) {
vals = new byte[m_value.length];
for( int i = 0; i < m_value.length; i++ )
vals[i] = m_value[i];
}
LDAPControl control = new LDAPControl( m_oid, m_critical, vals );
return control;
}
/**
* Create a "flattened" BER encoding from a BER,
* and return it as a byte array.
* @param ber a BER encoded sequence
* @return the byte array of encoded data.
*/
protected byte[] flattenBER( BERSequence ber ) {
/* Suck out the data and return it */
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
try {
ber.write( outStream );
} catch ( IOException e ) {
return null;
}
return outStream.toByteArray();
}
/**
* Return a string representation of the control for debugging
*
* @return a string representation of the control.
*/
public String toString() {
String s = getID() + ' ' + isCritical();
if ( m_value != null ) {
s += ' ' + LDIF.toPrintableString( m_value );
}
return "LDAPControl {" + s + '}';
}
private String m_oid;
protected boolean m_critical = false;
protected byte[] m_value = null;
static private Hashtable m_controlClassHash = null;
static {
try {
LDAPControl.register( LDAPPasswordExpiringControl.EXPIRING,
LDAPPasswordExpiringControl.class );
LDAPControl.register( LDAPPasswordExpiredControl.EXPIRED,
LDAPPasswordExpiredControl.class );
LDAPControl.register( LDAPEntryChangeControl.ENTRYCHANGED,
LDAPEntryChangeControl.class );
LDAPControl.register( LDAPSortControl.SORTRESPONSE,
LDAPSortControl.class );
LDAPControl.register( LDAPVirtualListResponse.VIRTUALLISTRESPONSE,
LDAPVirtualListResponse.class );
} catch (LDAPException e) {
}
}
}

View File

@@ -1,132 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.util.*;
import java.io.*;
/**
* Represents a distinguished name in LDAP.
* <P>
*
* You can use objects of this class to split a distinguished name
* (DN) into its individual components. You can also escape the
* characters in a DN.
* <P>
*
* @version 1.0
*/
public class LDAPDN {
/**
* Returns the individual components of a distinguished name (DN).
* @param dn distinguished name of which you want to get the components.
* @param noTypes if <CODE>true</CODE>, returns only the values of the
* components and not the names (such as 'cn=')
* @return an array of strings representing the components of the DN.
* @see netscape.ldap.LDAPDN#explodeRDN(java.lang.String, boolean)
*/
public static String[] explodeDN (String dn, boolean noTypes) {
DN name = new DN(dn);
return name.explodeDN(noTypes);
}
/**
* Returns the individual components of a relative distinguished name (RDN).
* @param rdn relative distinguished name of which you want to get the components.
* @param noTypes if <CODE>true</CODE>, returns only the values of the
* components and not the names (such as 'cn=')
* @return an array of strings representing the components of the RDN.
* @see netscape.ldap.LDAPDN#explodeDN(java.lang.String, boolean)
*/
public static String[] explodeRDN (String rdn, boolean noTypes) {
RDN name = new RDN(rdn);
return name.explodeRDN(noTypes);
}
/**
* Returns the RDN after escaping the characters specified
* by <CODE>netscape.ldap.util.DN.ESCAPED_CHAR</CODE>.
* <P>
*
* @param rdn the RDN to escape
* @return the RDN with the characters escaped.
* @see netscape.ldap.util.DN#ESCAPED_CHAR
* @see netscape.ldap.LDAPDN#unEscapeRDN(java.lang.String)
*/
public static String escapeRDN(String rdn) {
RDN name = new RDN(rdn);
String val = name.getValue();
if (val == null)
return rdn;
StringBuffer buffer = new StringBuffer(val);
int i=0;
while (i<buffer.length()) {
if (isEscape(buffer.charAt(i))) {
buffer.insert(i, '\\');
i++;
}
i++;
}
return name.getType()+"="+(new String(buffer));
}
/**
* Returns the RDN after unescaping any escaped characters.
* For a list of characters that are typically escaped in a
* DN, see <CODE>netscape.ldap.LDAPDN.ESCAPED_CHAR</CODE>.
* <P>
*
* @param rdn the RDN to unescape
* @return the unescaped RDN.
* @see netscape.ldap.util.DN#ESCAPED_CHAR
* @see netscape.ldap.LDAPDN#escapeRDN(java.lang.String)
*/
public static String unEscapeRDN(String rdn) {
RDN name = new RDN(rdn);
String val = name.getValue();
if (val == null)
return rdn;
StringBuffer buffer = new StringBuffer(val);
StringBuffer copy = new StringBuffer();
int i=0;
while (i<buffer.length()) {
char c = buffer.charAt(i);
if (c != '\\')
copy.append(c);
i++;
}
return name.getType()+"="+(new String(copy));
}
private static boolean isEscape(char c) {
for (int i=0; i<DN.ESCAPED_CHAR.length; i++)
if (c == DN.ESCAPED_CHAR[i])
return true;
return false;
}
}

View File

@@ -1,201 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* Represents an entry in the directory.
*
* @version 1.0
*/
public class LDAPEntry {
private String dn = null;
private LDAPAttributeSet attrSet = null;
/**
* Constructs an empty entry.
*/
public LDAPEntry() {
dn = null;
attrSet = null;
}
/**
* Constructs a new entry with the specified distinguished name and with
* an empty attribute set.
* @param distinguishedName the distinguished name of the new entry
*/
public LDAPEntry( String distinguishedName ) {
dn = distinguishedName;
attrSet = null;
}
/**
* Constructs a new entry with the specified distinguished name and
* set of attributes.
* @param distinguishedName the distinguished name of the new entry
* @param attrs the set of attributes to assign to the new entry
* @see netscape.ldap.LDAPAttributeSet
*/
public LDAPEntry( String distinguishedName, LDAPAttributeSet attrs ) {
dn = distinguishedName;
attrSet = attrs;
}
/**
* Returns the distinguished name of the current entry.
* @return distinguished name of the current entry.
*/
public String getDN() {
return dn;
}
void setDN(String name) {
dn = name;
}
/**
* Returns the attribute set of the entry.
* @return set of attributes in the entry.
* @see netscape.ldap.LDAPAttributeSet
*/
public LDAPAttributeSet getAttributeSet() {
return attrSet;
}
/**
* Creates a new attribute set containing only the attributes
* that have the specified subtypes.
* <P>
*
* For example, suppose an entry contains the following attributes:
* <P>
*
* <PRE>
* cn
* cn;lang-ja
* sn;phonetic;lang-ja
* sn;lang-us
* </PRE>
*
* If you call the <CODE>getAttributeSet</CODE> method and pass
* <CODE>lang-ja</CODE> as the argument, the method returns
* an attribute set containing the following attributes:
* <P>
*
* <PRE>
* cn;lang-ja
* sn;phonetic;lang-ja
* </PRE>
*
* @param subtype semi-colon delimited list of subtypes
* that you want to find in attribute names.
*<PRE>
* "lang-ja" // Only Japanese language subtypes
* "binary" // Only binary subtypes
* "binary;lang-ja" // Only Japanese language subtypes
* which also are binary
*</PRE>
* @return attribute set containing the attributes that have
* the specified subtypes.
* @see netscape.ldap.LDAPAttributeSet
* @see netscape.ldap.LDAPAttributeSet#getSubset
*/
public LDAPAttributeSet getAttributeSet(String subtype) {
return attrSet.getSubset(subtype);
}
/**
* In an entry, returns the single attribute that exactly matches the
* specified attribute name.
* @param attrName name of attribute to return
* For example:
*<PRE>
* "cn" // Only a non-subtyped version of cn
* "cn;lang-ja" // Only a Japanese version of cn, will not
* // return "cn;lang-ja-JP-kanji", for example
*</PRE>
* @return attribute in the current entry that has exactly the same name,
* or null (if no attribute in the entry matches the specified name).
* @see netscape.ldap.LDAPAttribute
*/
public LDAPAttribute getAttribute(String attrName) {
return attrSet.getAttribute(attrName);
}
/**
* Returns the subtype that matches "attrName" and that best matches
* a language specification "lang". If there are subtypes other than
* "lang" subtypes included in attrName, e.g. "cn;binary", only
* attributes with all of those subtypes are returned. If lang is
* null or empty, the method behaves as getAttribute(attrName). If
* there are no matching attributes, null is returned.
*
* Example:<PRE>
* Assume the entry contains only the following attributes:
* <CODE>cn;lang-en</CODE>
* <CODE>cn;lang-ja-JP-kanji</CODE>
* <CODE>sn</CODE>
* getAttribute( "cn" ) returns <CODE>null</CODE>.
* getAttribute( "sn" ) returns the "<CODE>sn</CODE>" attribute.
* getAttribute( "cn", "lang-en-us" ) returns the "<CODE>cn;lang-en</CODE>" attribute.
* getAttribute( "cn", "lang-en" ) returns the "<CODE>cn;lang-en</CODE>" attribute.
* getAttribute( "cn", "lang-ja" ) returns <CODE>null</CODE>.
* getAttribute( "sn", "lang-en" ) returns the "<CODE>sn</CODE>" attribute.
*</PRE>
* <P>
* @param attrName name of attribute to find in the entry
* @param lang a language specification (for example, <CODE>lang-en</CODE>)
* @return the attribute that matches the base name and that best
* matches any specified language subtype.
* @see netscape.ldap.LDAPAttribute
*/
public LDAPAttribute getAttribute( String attrName, String lang ) {
return attrSet.getAttribute( attrName, lang );
}
/**
* Retrieves the string representation of the entry's
* distinguished name (DN) and its attributes.
* For example:
*
* <PRE>
* LDAPEntry: uid=bjensen, ou=People, o=airius.com; LDAPAttributeSet:
* LDAPAttribute {type='cn', values='Barbara Jensen,Babs Jensen'}
* LDAPAttribute {type='sn', values='Jensen'}LDAPAttribute {type='givenname',
* values='Barbara'}LDAPAttribute {type='objectclass', values='top,person,
* organizationalPerson,inetOrgPerson'}LDAPAttribute {type='ou',
* values='Product Development,People'}
* </PRE>
*
* @return string representation of the entry's DN and its attributes.
*/
public String toString() {
StringBuffer sb = new StringBuffer("LDAPEntry: ");
if ( dn != null ) {
sb.append(dn);
sb.append("; ");
}
if ( attrSet != null ) {
sb.append(attrSet.toString());
}
return sb.toString();
}
}

View File

@@ -1,62 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* The <CODE>LDAPEntryComparator</CODE> interface represents the
* algorithm used to sort the search results. This interface specifies
* one method, <CODE>isGreater</CODE>, which compares two entries and
* determines the order in which the two entries should be sorted.
* <P>
*
* The <CODE>netscape.ldap</CODE> package includes a class that
* implements this interface. The <CODE>LDAPCompareAttrNames</CODE>
* class represents a comparator that sorts the two entries alphabetically,
* based on the value of one or more attributes.
* <P>
*
* When calling the <CODE>sort</CODE> method of the
* <CODE>LDAPSearchResults</CODE> class, you need to specify
* a class that implements the <CODE>LDAPEntryComparator</CODE>
* interface.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPCompareAttrNames
* @see netscape.ldap.LDAPSearchResults#sort
*/
public interface LDAPEntryComparator {
/**
* Specifies the algorithm used to
* compare entries when sorting search results.
* <P>
*
* <CODE>isGreater</CODE> returns <CODE>true</CODE>
* if the entry specified in the first argument should
* be sorted before the entry specified in the second
* argument.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPCompareAttrNames
* @see netscape.ldap.LDAPSearchResults#sort
*/
public boolean isGreater (LDAPEntry greater, LDAPEntry less);
}

View File

@@ -1,893 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import java.io.*;
/**
* Indicates that an error has occurred. An <CODE>LDAPException</CODE>
* can result from physical problems (such as network errors) as well as
* problems with LDAP operations (for example, if the LDAP add operation
* fails because of duplicate entry).
* <P>
*
* Most errors that occur throw this type of exception. In order to determine
* the cause of the error, you can call the <CODE>getLDAPResultCode()</CODE>
* method to get the specific result code and compare this code against
* the result codes defined as fields in this class. (For example, if
* the result code matches the value of the field
* <CODE>LDAPException.TIME_LIMIT_EXCEEDED</CODE>, the time limit passed
* before the search operation could be completed.)
* <P>
*
* This exception includes methods for getting an error message that
* corresponds to the LDAP result code (for example, "Timelimit exceeded"
* for <CODE>LDAPException.TIME_LIMIT_EXCEEDED</CODE>). These error
* messages are specified in the following files:
* <PRE>netscape/ldap/errors/ErrorCodes_<I>locale_string</I>.props</PRE>
* where <I>locale_string</I> is the name of the locale that includes
* the language and country, but not the variant.
* <P>
*
* For example:
* <PRE>netscape/ldap/errors/ErrorCodes_en_US.props</PRE>
*
* The LDAP Java classes get this locale name by calling the
* <CODE>java.util.Locale.toString</CODE> method for the specified
* locale and ignoring the variant. If no locale is specified, the
* LDAP Java classes use the <CODE>java.util.Locale.getDefault</CODE>
* method to get the locale of the local host system.
* <P>
*
* In order to get error messages for different locales, you need to
* provide files containing the error messages for those locales.
* The files should be located in the <CODE>netscape/ldap/errors</CODE>
* directory and should use the naming convention specified above.
* <P>
*
* The following is a list of LDAP result codes:
* <PRE>
* Result
* Code Defined Value
* ====== =============
* 0 <A HREF="#SUCCESS">SUCCESS</A>
* 1 <A HREF="#OPERATION_ERROR">OPERATION_ERROR</A>
* 2 <A HREF="#PROTOCOL_ERROR">PROTOCOL_ERROR</A>
* 3 <A HREF="#TIME_LIMIT_EXCEEDED">TIME_LIMIT_EXCEEDED</A>
* 4 <A HREF="#SIZE_LIMIT_EXCEEDED">SIZE_LIMIT_EXCEEDED</A>
* 5 <A HREF="#COMPARE_FALSE">COMPARE_FALSE</A>
* 6 <A HREF="#COMPARE_TRUE">COMPARE_TRUE</A>
* 7 <A HREF="#AUTH_METHOD_NOT_SUPPORTED">AUTH_METHOD_NOT_SUPPORTED</A>
* 8 <A HREF="#STRONG_AUTH_REQUIRED">STRONG_AUTH_REQUIRED</A>
* 9 <A HREF="#LDAP_PARTIAL_RESULTS">LDAP_PARTIAL_RESULTS</A>
* 10 <A HREF="#REFERRAL">REFERRAL</A> (LDAP v3)
* 11 <A HREF="#ADMIN_LIMIT_EXCEEDED">ADMIN_LIMIT_EXCEEDED</A> (LDAP v3)
* 12 <A HREF="#UNAVAILABLE_CRITICAL_EXTENSION">UNAVAILABLE_CRITICAL_EXTENSION</A> (LDAP v3)
* 13 <A HREF="#CONFIDENTIALITY_REQUIRED">CONFIDENTIALITY_REQUIRED</A> (LDAP v3)
* 14 <A HREF="#SASL_BIND_IN_PROGRESS">SASL_BIND_IN_PROGRESS</A> (LDAP v3)
* 16 <A HREF="#NO_SUCH_ATTRIBUTE">NO_SUCH_ATTRIBUTE</A>
* 17 <A HREF="#UNDEFINED_ATTRIBUTE_TYPE">UNDEFINED_ATTRIBUTE_TYPE</A>
* 18 <A HREF="#INAPPROPRIATE_MATCHING">INAPPROPRIATE_MATCHING</A>
* 19 <A HREF="#CONSTRAINT_VIOLATION">CONSTRAINT_VIOLATION</A>
* 20 <A HREF="#ATTRIBUTE_OR_VALUE_EXISTS">ATTRIBUTE_OR_VALUE_EXISTS</A>
* 21 <A HREF="#INVALID_ATTRIBUTE_SYNTAX">INVALID_ATTRIBUTE_SYNTAX</A>
* 32 <A HREF="#NO_SUCH_OBJECT">NO_SUCH_OBJECT</A>
* 33 <A HREF="#ALIAS_PROBLEM">ALIAS_PROBLEM</A>
* 34 <A HREF="#INVALID_DN_SYNTAX">INVALID_DN_SYNTAX</A>
* 35 <A HREF="#IS_LEAF">IS_LEAF</A>
* 36 <A HREF="#ALIAS_DEREFERENCING_PROBLEM">ALIAS_DEREFERENCING_PROBLEM</A>
* 48 <A HREF="#INAPPROPRIATE_AUTHENTICATION">INAPPROPRIATE_AUTHENTICATION</A>
* 49 <A HREF="#INVALID_CREDENTIALS">INVALID_CREDENTIALS</A>
* 50 <A HREF="#INSUFFICIENT_ACCESS_RIGHTS">INSUFFICIENT_ACCESS_RIGHTS</A>
* 51 <A HREF="#BUSY">BUSY</A>
* 52 <A HREF="#UNAVAILABLE">UNAVAILABLE</A>
* 53 <A HREF="#UNWILLING_TO_PERFORM">UNWILLING_TO_PERFORM</A>
* 54 <A HREF="#LOOP_DETECT">LOOP_DETECT</A>
* 64 <A HREF="#NAMING_VIOLATION">NAMING_VIOLATION</A>
* 65 <A HREF="#OBJECT_CLASS_VIOLATION">OBJECT_CLASS_VIOLATION</A>
* 66 <A HREF="#NOT_ALLOWED_ON_NONLEAF">NOT_ALLOWED_ON_NONLEAF</A>
* 67 <A HREF="#NOT_ALLOWED_ON_RDN">NOT_ALLOWED_ON_RDN</A>
* 68 <A HREF="#ENTRY_ALREADY_EXISTS">ENTRY_ALREADY_EXISTS</A>
* 69 <A HREF="#OBJECT_CLASS_MODS_PROHIBITED">OBJECT_CLASS_MODS_PROHIBITED</A>
* 71 <A HREF="#AFFECTS_MULTIPLE_DSAS">AFFECTS_MULTIPLE_DSAS</A> (LDAP v3)
* 80 <A HREF="#OTHER">OTHER</A>
* 81 <A HREF="#SERVER_DOWN">SERVER_DOWN</A>
* 85 <A HREF="#LDAP_TIMEOUT">LDAP_TIMEOUT</A>
* 89 <A HREF="#PARAM_ERROR">PARAM_ERROR</A>
* 91 <A HREF="#CONNECT_ERROR">CONNECT_ERROR</A>
* 92 <A HREF="#LDAP_NOT_SUPPORTED">LDAP_NOT_SUPPORTED</A>
* 93 <A HREF="#CONTROL_NOT_FOUND">CONTROL_NOT_FOUND</A>
* 94 <A HREF="#NO_RESULTS_RETURNED">NO_RESULTS_RETURNED</A>
* 95 <A HREF="#MORE_RESULTS_TO_RETURN">MORE_RESULTS_TO_RETURN</A>
* 96 <A HREF="#CLIENT_LOOP">CLIENT_LOOP</A>
* 97 <A HREF="#REFERRAL_LIMIT_EXCEEDED">REFERRAL_LIMIT_EXCEEDED</A>
* </PRE>
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPReferralException
*/
public class LDAPException extends java.lang.Exception {
/**
* (0) The operation completed successfully.
*/
public final static int SUCCESS = 0;
/**
* (1) An internal error occurred in the LDAP server.
*/
public final static int OPERATION_ERROR = 1;
/**
* (2) A LDAP server could not correctly interpret the request
* sent by your client because the request does not strictly
* comply with the LDAP protocol. (For example, the data
* was not correctly BER-encoded, or a specified value -- such
* as the search scope or modification type -- does not
* comply with the LDAP protocol. If you invent your own
* search scope, for instance, this result code might be returned.<P>
*/
public final static int PROTOCOL_ERROR = 2;
/**
* (3) The search operation could not be completed within
* the maximum time limit. You can specify the maximum time
* limit by calling the <CODE>LDAPConnection.setOption</CODE>
* method or the <CODE>LDAPSearchConstraints.setServerTimeLimit</CODE>
* method.<P>
*
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPSearchConstraints#setServerTimeLimit
*/
public final static int TIME_LIMIT_EXCEEDED = 3;
/**
* (4) The search found more than the maximum number of results.
* You can specify the maximum number of results by calling the
* <CODE>LDAPConnection.setOption</CODE> method or the
* <CODE>LDAPSearchConstraints.setSizeLimit</CODE> method.<P>
*
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPSearchConstraints#setMaxResults
*/
public final static int SIZE_LIMIT_EXCEEDED = 4;
/**
* (5) Value returned by an LDAP compare operation if the
* specified attribute and value is not found in the entry
* (no matching value found).
*
* @see netscape.ldap.LDAPConnection#compare
*/
public final static int COMPARE_FALSE = 5;
/**
* (6) Value returned by an LDAP compare operation if the
* specified attribute and value is found in the entry
* (matching value found).
*
* @see netscape.ldap.LDAPConnection#compare
*/
public final static int COMPARE_TRUE = 6;
/**
* (7) The specified authentication method is not supported
* by the LDAP server that you are connecting to. The
* <CODE>LDAPConnection</CODE> class is implemented so that
* <CODE>LDAPConnection.authenticate</CODE> always
* uses the LDAP_AUTH_SIMPLE method of authentication.
* (<CODE>LDAPConnection.authenticate</CODE> does not
* allow you to select the method of authentication.)<P>
*/
public final static int AUTH_METHOD_NOT_SUPPORTED = 7;
/**
* (8) A stronger authentication method (more than LDAP_AUTH_SIMPLE)
* is required by the LDAP server that you are connecting to.
* The <CODE>LDAPConnection</CODE> class is implemented so that
* <CODE>LDAPConnection.authenticate</CODE> always
* uses the LDAP_AUTH_SIMPLE method of authentication.
* (<CODE>LDAPConnection.authenticate</CODE> does not
* allow you to select the method of authentication.)<P>
*/
public final static int STRONG_AUTH_REQUIRED = 8;
/**
* (9) The LDAP server is referring your client to another
* LDAP server. If you set up the <CODE>LDAPConnection</CODE>
* options or the <CODE>LDAPConstraints</CODE> options
* for automatic referral, your client will automatically
* connect and authenticate to the other LDAP server.
* (This <CODE>LDAPException</CODE> will not be raised.)
* <P>
*
* (To set up automatic referrals in an <CODE>LDAPConnection</CODE>
* object, set the <CODE>LDAPConnection.REFERRALS</CODE> option
* to <CODE>true</CODE> and the LDAPConnection.REFERRALS_REBIND_PROC</CODE>
* option to the object containing the method for retrieving
* authentication information (in other words, the distinguished
* name and password to use when authenticating to other LDAP servers).
* <P>
*
* If instead you set <CODE>LDAPConnection.REFERRALS</CODE>
* to <CODE>false</CODE> (or if you set
* <CODE>LDAPConstraints.setReferrals</CODE> to <CODE>false</CODE>,
* an <CODE>LDAPReferralException</CODE> is raised.
* <P>
*
* If an error occurs during the referral process, an
* <CODE>LDAPException</CODE> with this result code
* (<CODE>LDAP_PARTIAL_RESULTS</CODE>) is raised.
* <P>
*
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPConstraints#setReferrals
* @see netscape.ldap.LDAPConstraints#setRebindProc
* @see netscape.ldap.LDAPRebind
* @see netscape.ldap.LDAPRebindAuth
* @see netscape.ldap.LDAPReferralException
*/
public final static int LDAP_PARTIAL_RESULTS = 9;
/**
* (10) [LDAP v3] The server does not hold the requested entry.
* The referral field of the server's response contains a
* reference to another server (or set of servers), which
* your client can access through LDAP or other protocols.
* Typically, these references are LDAP URLs that identify
* the server that may contain the requested entry.
* <P>
*
* When this occurs, a <CODE>LDAPReferralException</CODE>
* is thrown. You can catch this exception and call the
* <CODE>getURLs</CODE> method to get the list of LDAP
* URLs from the exception.
* <P>
*
* @see netscape.ldap.LDAPReferralException
*/
public final static int REFERRAL = 10;
/**
* (11) [LDAP v3] The adminstrative limit on the
* maximum number of entries to return was exceeded.
* In the Netscape Directory Server 3.0, this
* corresponds to the "look through limit" for
* the server. This is the maximum number of
* entries that the server will check through
* when determining which entries match the
* search filter and scope.
* <P>
*/
public final static int ADMIN_LIMIT_EXCEEDED = 11;
/**
* (12) [LDAP v3] The server received an LDAP v3 control
* that is marked critical and either (1) is not
* recognized or supported by the server, or
* (2) is inappropriate for the operation requested.
* The Netscape Directory Server 3.0 also returns
* this result code if the client specifies a
* matching rule that is not supported by the server.
* <P>
*
* @see netscape.ldap.LDAPControl
*/
public final static int UNAVAILABLE_CRITICAL_EXTENSION = 12;
/**
* (13) [LDAP v3] A secure connection is required for
* this operation.
*/
public final static int CONFIDENTIALITY_REQUIRED = 13;
/**
* (14) [LDAP v3] While authenticating your client
* by using a SASL (Simple Authentication Security Layer)
* mechanism, the server requires the client to send
* a new SASL bind request (specifying the same SASL
* mechanism) to continue the authentication process.
*/
public final static int SASL_BIND_IN_PROGRESS = 14;
/**
* (16) The specified attribute could not be found.
*/
public final static int NO_SUCH_ATTRIBUTE = 16;
/**
* (17) The specified attribute is not defined.
*/
public final static int UNDEFINED_ATTRIBUTE_TYPE = 17;
/**
* (18) An inappropriate type of matching was used.
*/
public final static int INAPPROPRIATE_MATCHING = 18;
/**
* (19) An internal error occurred in the LDAP server.
*/
public final static int CONSTRAINT_VIOLATION = 19;
/**
* (20) The value that you are adding to an attribute
* already exists in the attribute.
*/
public final static int ATTRIBUTE_OR_VALUE_EXISTS = 20;
/**
* (21) The request contains invalid syntax.
*/
public final static int INVALID_ATTRIBUTE_SYNTAX = 21;
/**
* (32) The entry specified in the request does not exist.
*/
public final static int NO_SUCH_OBJECT = 32;
/**
* (33) An problem occurred with an alias.
*/
public final static int ALIAS_PROBLEM = 33;
/**
* (34) The specified distinguished name (DN) uses invalid syntax.
*/
public final static int INVALID_DN_SYNTAX = 34;
/**
* (35) The specified entry is a "leaf" entry (it has no entries
* beneath it in the directory tree).
*/
public final static int IS_LEAF = 35;
/**
* (36) An error occurred when dereferencing an alias.
*/
public final static int ALIAS_DEREFERENCING_PROBLEM = 36;
/**
* (48) The authentication presented to the server is inappropriate.
* This result code might occur, for example, if your client
* presents a password and the corresponding entry has no
* userpassword attribute.
*/
public final static int INAPPROPRIATE_AUTHENTICATION = 48;
/**
* (49) The credentials presented to the server for authentication
* are not valid. (For example, the password sent to the server
* does not match the user's password in the directory.)
*/
public final static int INVALID_CREDENTIALS = 49;
/**
* (50) The client is authenticated as a user who does not have the
* access privileges to perform this operation.
*/
public final static int INSUFFICIENT_ACCESS_RIGHTS = 50;
/**
* (51) The LDAP server is busy.
*/
public final static int BUSY = 51;
/**
* (52) The LDAP server is unavailable.
*/
public final static int UNAVAILABLE = 52;
/**
* (53) The LDAP server is unable to perform the specified operation.
*/
public final static int UNWILLING_TO_PERFORM = 53;
/**
* (54) A loop has been detected.
*/
public final static int LOOP_DETECT = 54;
/**
* (60) The "server-side sorting" control
* was not included with the "virtual list view"
* control in the search request.
*/
public final static int SORT_CONTROL_MISSING = 60;
/**
* (61) An index range error occurred.
*/
public final static int INDEX_RANGE_ERROR = 61;
/**
* (64) A naming violation has occurred.
*/
public final static int NAMING_VIOLATION = 64;
/**
* (65) The requested operation will add or change
* data so that the data no longer complies with
* the schema.
*/
public final static int OBJECT_CLASS_VIOLATION = 65;
/**
* (66) The requested operation can only be performed
* on an entry that has no entries beneath it in the
* directory tree (in other words, a "leaf" entry).
* <P>
*
* For example, you cannot delete or rename an entry
* if the entry has subentries beneath it.
* <P>
*/
public final static int NOT_ALLOWED_ON_NONLEAF = 66;
/**
* (67) The specified operation cannot be performed on
* a relative distinguished name (RDN).
*/
public final static int NOT_ALLOWED_ON_RDN = 67;
/**
* (68) The specified entry already exists. You might receive
* this error if, for example, you attempt to add an entry
* that already exists or if you attempt to change the name
* of an entry to the name of an entry that already exists.
*/
public final static int ENTRY_ALREADY_EXISTS = 68;
/**
* (69) You cannot modify the specified object class.
*/
public final static int OBJECT_CLASS_MODS_PROHIBITED = 69;
/**
* (71) [LDAP v3] The client attempted to move an entry
* from one LDAP server to another by requesting a "modify
* DN" operation. In general, clients should not be able
* to arbitrarily move entries and subtrees between servers.
* <P>
*
* @see netscape.ldap.LDAPConnection#rename(java.lang.String, java.lang.String, java.lang.String, boolean)
* @see netscape.ldap.LDAPConnection#rename(java.lang.String, java.lang.String, java.lang.String, boolean, LDAPConstraints)
*/
public final static int AFFECTS_MULTIPLE_DSAS = 71;
/**
* (80) General result code for other types of errors
* that may occur.
*/
public final static int OTHER = 80;
/**
* (81) The LDAP server cannot be contacted.
*/
public final static int SERVER_DOWN = 0x51;
/**
* (85) The operation could not be completed within the
* maximum time limit. You can specify the maximum time limit
* by calling the <CODE>LDAPConstraints.setTimeLimit</CODE>
* method.<P>
*
* @see netscape.ldap.LDAPConstraints#setTimeLimit
*/
public final static int LDAP_TIMEOUT = 0x55;
/**
* (89) When calling a constructor or method from your client,
* one or more parameters were incorrectly specified.
*/
public final static int PARAM_ERROR = 0x59;
/**
* (91) Your LDAP client failed to connect to the LDAP server.
*/
public final static int CONNECT_ERROR = 0x5b;
/**
* (92) The request is not supported by this version of the LDAP protocol.
*/
public final static int LDAP_NOT_SUPPORTED = 0x5c;
/**
* (93) The requested control is not found.
* <P>
*
* @see netscape.ldap.LDAPControl
*/
public final static int CONTROL_NOT_FOUND = 0x5d;
/**
* (94) No results have been returned from the server.
*/
public final static int NO_RESULTS_RETURNED = 0x5e;
/**
* (95) More results are being returned from the server.
*/
public final static int MORE_RESULTS_TO_RETURN = 0x5f;
/**
* (96) Your LDAP client detected a loop in the referral.
*/
public final static int CLIENT_LOOP = 0x60;
/**
* (97) The number of sequential referrals (for example,
* the client may be referred first from LDAP server A to
* LDAP server B, then from LDAP server B to LDAP server C,
* and so on) has exceeded the maximum number of referrals
* (the <CODE>LDAPv2.REFERRALS_HOP_LIMIT</CODE> option).
* <P>
*
* @see netscape.ldap.LDAPv2#REFERRALS_HOP_LIMIT
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public final static int REFERRAL_LIMIT_EXCEEDED = 0x61;
/**
* Internal variables
*/
private int resultCode = -1;
private String errorMessage = null;
private String matchedDN = null;
private Locale m_locale = Locale.getDefault();
private static Hashtable cacheResource = new Hashtable();
private static final String baseName = "netscape/ldap/errors/ErrorCodes";
/**
* Constructs a default exception with no specific error information.
*/
public LDAPException() {
}
/**
* Constructs a default exception with a specified string of
* additional information. This string appears if you call
* the <CODE>toString()</CODE> method.
* <P>
*
* This form is used for lower-level errors.
* It is recommended that you always use one of the constructors
* that takes a result code as a parameter. (If your exception is
* thrown, any code that catches the exception may need to extract
* the result code from the exception.)
* <P>
* @param message the additional error information
* @see netscape.ldap.LDAPException#toString()
*/
public LDAPException( String message ) {
super( message );
}
/**
* Constructs a default exception with a result code and
* a specified string of additional information. This string
* appears if you call the <CODE>toString()</CODE> method.
* The result code that you set is accessible through the
* <CODE>getLDAPResultCode()</CODE> method.
* <P>
*
* @param message the additional error information to specify
* @param resultCode the result code returned from the
* operation that caused this exception
* @see netscape.ldap.LDAPException#toString()
* @see netscape.ldap.LDAPException#getLDAPResultCode()
*/
public LDAPException( String message, int resultCode ) {
super( message );
this.resultCode = resultCode;
}
/**
* Constructs a default exception with a result code, a specified
* string of additional information, and a string containing
* information passed back from the server.
* <P>
*
* After you construct the <CODE>LDAPException</CODE> object,
* the result code and messages will be accessible through the
* following ways:
* <P>
* <UL>
* <LI>The first string of additional information appears if you
* call the <CODE>toString()</CODE> method. <P>
* <LI>The result code that you set is accessible through the
* <CODE>getLDAPResultCode()</CODE> method. <P>
* <LI>The string of server error information that you set
* is accessible through the <CODE>getLDAPErrorMessage</CODE>
* method. <P>
* </UL>
* <P>
*
* Use this form of the constructor
* for higher-level LDAP operational errors.
* @param message the additional error information to specify
* @param resultCode the result code returned from the
* operation that caused this exception
* @param serverErrorMessage error message specifying additional
* information returned from the server
* @see netscape.ldap.LDAPException#toString()
* @see netscape.ldap.LDAPException#getLDAPResultCode()
* @see netscape.ldap.LDAPException#getLDAPErrorMessage()
*/
public LDAPException( String message, int resultCode,
String serverErrorMessage ) {
super( message );
this.resultCode = resultCode;
this.errorMessage = serverErrorMessage;
}
/**
* Constructs a default exception with a result code, a specified
* string of additional information, a string containing
* information passed back from the server, and the DN of the
* closest matching entry, if the exception was thrown because
* an entry could not be found (for example, if <CODE>cn=Babs Jensen,
* ou=People, c=Airius.com</CODE> could not be found but
* <CODE>ou=People, c=Airius.com</CODE> is a valid directory entry,
* the &quot;matched DN&quot; is <CODE>ou=People, c=Airius.com</CODE>.
* <P>
*
* After you construct the <CODE>LDAPException</CODE> object,
* the result code and messages will be accessible through the
* following ways:
* <P>
* <UL>
* <LI>This string of additional information appears if you
* call the <CODE>toString()</CODE> method. <P>
* <LI>The result code that you set is accessible through the
* <CODE>getLDAPResultCode()</CODE> method. <P>
* <LI>The string of server error information that you set
* is accessible through the <CODE>getLDAPErrorMessage</CODE>
* method. <P>
* <LI>The matched DN that you set is accessible through the
* <CODE>getMatchedDN</CODE> method.<P>
* </UL>
* <P>
*
* This form is used for higher-level LDAP operational errors.
* @param message the additional error information
* @param resultCode the result code returned
* @param serverErrorMessage error message specifying additional information
* returned from the server
* @param matchedDN maximal subset of a specified DN which could be
* matched by the server
* @see netscape.ldap.LDAPException#toString()
* @see netscape.ldap.LDAPException#getLDAPResultCode()
* @see netscape.ldap.LDAPException#getLDAPErrorMessage()
* @see netscape.ldap.LDAPException#getMatchedDN()
*/
public LDAPException( String message, int resultCode,
String serverErrorMessage, String matchedDN ) {
super( message );
this.resultCode = resultCode;
this.errorMessage = serverErrorMessage;
this.matchedDN = matchedDN;
}
/**
* Returns the result code from the last error that occurred.
* This result code is defined as a public final static int member
* of this class. Note that this value is not always valid.
* -1 indicates that the result code is invalid.
* @return the LDAP result code of the last operation.
*/
public int getLDAPResultCode () {
return resultCode;
}
/**
* Returns the error message from the last error, if this message
* is available (that is, if this message was set). If the message
* was not set, this method returns <CODE>null</CODE>.
* <P>
*
* Note that this message is rarely set. (In order to set this message,
* the code constructing this exception must have called the constructor
* <CODE>LDAPException(String, int, String)</CODE>. The last argument,
* which is additional error information returned from the server,
* is the string returned by <CODE>getLDAPErrorMessage</CODE>.
* <P>
*
* In most cases, if you want information about
* the error generated, you should call the <CODE>toString()</CODE>
* method instead.
* <P>
*
* @return the error message of the last error (or <CODE>null</CODE>
* if no message was set).
* @see netscape.ldap.LDAPException#toString()
*/
public String getLDAPErrorMessage () {
return errorMessage;
}
/**
* Returns the maximal subset of a DN which could be matched by the
* server, if the server returned one of the following errors:
* <UL>
* <LI><CODE>NO_SUCH_OBJECT</CODE>
* <LI><CODE>ALIAS_PROBLEM</CODE>
* <LI><CODE>INVALID_DN_SYNTAX</CODE>
* <LI><CODE>ALIAS_DEREFERENCING_PROBLEM</CODE>
* </UL>
* </PRE>
* For example, if the DN <CODE>cn=Babs Jensen, o=People, c=Airius.com</CODE>
* could not be found by the DN <CODE>o=People, c=Airius.com</CODE>
* could be found, the matched DN is
* <CODE>o=People, c=Airius.com</CODE>.
* <P>
*
* If the exception does not specify a matching DN,
* this method returns <CODE>null</CODE>.
* @return the maximal subset of a DN which could be matched,
* or <CODE>null</CODE> if the error is not one of the above.
*/
public String getMatchedDN () {
return matchedDN;
}
/**
* Gets the string representation of the exception, which
* includes the result code, the message sent back from
* the LDAP server, the portion of the DN that the server
* could find in the directory (if applicable), and the
* error message corresponding to this result code.
* <P>
*
* For example:
*
* <PRE>netscape.ldap.LDAPException: error result (32); server error message; matchedDN = ou=people,o=airius.com; No such object</PRE>
*
* In this example, <CODE>error result</CODE> is the string of
* additional information specified in the exception, <CODE>32</CODE> is
* the result code, <CODE>server error message</CODE> is the additional
* information from the server specified in the exception, the
* matched DN is <CODE>ou=people,o=airius.com</CODE>, and the error message
* corresponding to the result code <CODE>32</CODE> is <CODE>No such
* object</CODE>.
* <P>
*
* The error message corresponding to the error code can also be
* retrieved by using the <CODE>errorCodeToString</CODE> method.
* Note that this method can generate error messages specific to
* a current locale.
* <P>
*
* @return string representation of exception.
* @see netscape.ldap.LDAPException#errorCodeToString(int)
*/
public String toString() {
String str = super.toString() + " (" + resultCode + ")" ;
if ( (errorMessage != null) && (errorMessage.length() > 0) )
str += "; " + errorMessage;
if ( (matchedDN != null) && (matchedDN.length() > 0) )
str += "; matchedDN = " + matchedDN;
String errorStr = null;
if (((errorStr = errorCodeToString(m_locale)) != null) &&
(errorStr.length() > 0))
str += "; " + errorStr;
return str;
}
/**
* Returns the error message describing the error code (for this
* exception). The error message is specific to the default locale
* for this system. (The LDAP Java classes determine the default
* locale by calling the <CODE>java.util.Locale.getDefault</CODE>
* method and retrieve the error messages from the following file:
* <PRE>netscape/ldap/error/ErrorCodes_<I>locale_name</I>.props</PRE>
* where <I>locale_name</I> is the language and country (concatenated
* and delimited by an underscore) of the default locale. For example:
* <PRE>netscape/ldap/error/ErrorCodes_en_US.props</PRE>
*
* @return the error message describing the error code for this
* exception in the default locale.
*/
public String errorCodeToString() {
return errorCodeToString(resultCode, m_locale);
}
/**
* Returns the error message describing the error code for this
* exception. The error message for the specified locale is retrieved
* from the following file:
* <PRE>netscape/ldap/error/ErrorCodes_<I>locale_name</I>.props</PRE>
* where <I>locale_name</I> is the language and country (concatenated
* and delimited by an underscore) of the default locale. For example:
* <PRE>netscape/ldap/error/ErrorCodes_en_US.props</PRE>
*
* @param l the <CODE>java.util.Locale</CODE> object representing the
* locale of the error message to retrieve
* @return the error message describing the current error code
* in the specified locale.
*/
public String errorCodeToString(Locale l) {
return errorCodeToString(resultCode, l);
}
/**
* Returns the error message describing the specified error code.
* The error message is specific to the default locale
* for this system. (The LDAP Java classes determine the default
* locale by calling the <CODE>java.util.Locale.getDefault</CODE>
* method and retrieve the error messages from the following file:
* <PRE>netscape/ldap/error/ErrorCodes_<I>locale_name</I>.props</PRE>
* where <I>locale_name</I> is the language and country (concatenated
* and delimited by an underscore) of the default locale. For example:
* <PRE>netscape/ldap/error/ErrorCodes_en_US.props</PRE>
*
* @param code the error code for which to get the
* corresponding error message
* @return error message describing the specified error code for
* the default locale.
*/
public static String errorCodeToString(int code) {
return errorCodeToString(code, Locale.getDefault());
}
/**
* Returns the error message describing the specified error code.
* The error message for the specified locale is retrieved from
* the following file:
* <PRE>netscape/ldap/error/ErrorCodes_<I>locale_name</I>.props</PRE>
* where <I>locale_name</I> is the language and country (concatenated
* and delimited by an underscore) of the default locale. For example:
* <PRE>netscape/ldap/error/ErrorCodes_en_US.props</PRE>
*
* @param code the error code for which to get the
* corresponding error
* @param locale the <CODE>java.util.Locale</CODE> object representing the
* locale of the error message that you want to retrieve
* @return error message describing the specified error code for
* the specified locale.
*/
public synchronized static String errorCodeToString(int code, Locale locale) {
try {
String localeStr = locale.toString();
PropertyResourceBundle p =
(PropertyResourceBundle)cacheResource.get(localeStr);
if (p == null) {
p = LDAPResourceBundle.getBundle(baseName);
if (p != null)
cacheResource.put(localeStr, p);
}
if (p != null) {
return (String)p.handleGetObject(Integer.toString(code));
}
} catch (IOException e) {
System.out.println("Cannot open resource file for LDAPException "+
baseName);
}
return null;
}
}

View File

@@ -1,152 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Version 3 of the LDAP protocol include the means to define additional
* operations (&quot;extended operations&quot;) beyond the standard LDAP
* operations. An LDAP v3 client can send an extended operation request,
* identifying the operation by its unique object ID (OID). The server
* receives the request and if OID corresponds to an operation supported
* by the server, the server procoess the request and sends an extended
* operation response back to the client.
* <P>
*
* Objects of this class can be used to represent extended operation
* requests (sent by your client) or extended operation responses
* (returned by an LDAP v3 server).
* <P>
*
* To determine which extended operations are supported by a server,
* you need to search for the root DSE (DSA-specific entry, where DSA is
* another term for &quot;LDAP server&quot;) and find the values of the
* <CODE>supportedExtension</CODE> attribute. This attribute contains the
* object IDs (OIDs) of the extended operations supported by this server.
* <P>
*
* The following section of code demonstrates how to get the list
* of the extended operations supported by an LDAP server.
* <P>
*
* <PRE>
* public static void main( String[] args )
* {
* LDAPConnection ld = new LDAPConnection();
* try {
* String MY_HOST = "localhost";
* int MY_PORT = 389;
* ld.connect( MY_HOST, MY_PORT );
* try {
* ld.authenticate( 3, "cn=Directory Manager", "23skidoo" );
* } catch( LDAPException e ) {
* System.out.println( "LDAP server does not support v3." );
* ld.disconnect();
* System.exit(1);
* }
*
* String MY_FILT = "(objectclass=*)";
* String MY_BASE = "";
* String getAttrs[] = { "supportedExtension" };
* LDAPSearchResults res = ld.search( MY_BASE,
* LDAPConnection.SCOPE_BASE, MY_FILT, getAttrs, false );
*
* while ( res.hasMoreElements() ) {
* LDAPEntry findEntry = (LDAPEntry)res.nextElement();
* LDAPAttributeSet findAttrs = findEntry.getAttributeSet();
* Enumeration enumAttrs = findAttrs.getAttributes();
*
* while ( enumAttrs.hasMoreElements() ) {
* LDAPAttribute anAttr = (LDAPAttribute)enumAttrs.nextElement();
* String attrName = anAttr.getName();
* System.out.println( attrName );
* Enumeration enumVals = anAttr.getStringValues();
*
* while ( enumVals.hasMoreElements() ) {
* String aVal = ( String )enumVals.nextElement();
* System.out.println( "\t" + aVal );
* }
* }
* }
* }
* catch( LDAPException e ) {
* System.out.println( "Error: " + e.toString() );
* }
* try {
* ld.disconnect();
* }
* catch( LDAPException e ) {
* System.exit(1);
* }
* System.exit(0);
* }
* </PRE>
* <P>
*
* If you compile and run this example against an LDAP server that
* supports v3 of the protocol, you might receive the following results:
* <P>
*
* <PRE>
* supportedextension
* 1.2.3.4
* </PRE>
* <P>
*
* For more information on LDAP controls, see the Internet-Draft on
* the LDAP v3 protocol. (Note that this internet draft is still a
* work in progress. You can find the latest draft at the <A
* HREF="http://www.ietf.cnri.reston.va.us/html.charters/asid-charter.html"
* TARGET="_blank">ASID home page</A>.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPConnection#extendedOperation(netscape.ldap.LDAPExtendedOperation)
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
*
*/
public class LDAPExtendedOperation {
/**
* Construct an object
* @param oid identifier for the particular operation
* @param vals operation-specific data
*/
public LDAPExtendedOperation( String oid, byte[] vals ) {
m_oid = oid;
m_vals = vals;
}
/**
* Get the identifier for this operation.
* @return oid identifier for the particular operation.
*/
public String getID() {
return m_oid;
}
/**
* Get the data for this operation.
* @return vals operation-specific data.
*/
public byte[] getValue() {
return m_vals;
}
private String m_oid;
private byte[] m_vals;
}

View File

@@ -1,59 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import netscape.ldap.client.opers.JDAPExtendedResponse;
/**
* Represents a server response to an extended operation request.
*
* @version 1.0
*/
public class LDAPExtendedResponse extends LDAPResponse {
/**
* Constructor
*
* @param msgid message identifier
* @param rsp extended operation response
* @paarm controls array of controls or null
*/
LDAPExtendedResponse(int msgid, JDAPExtendedResponse rsp, LDAPControl controls[]) {
super(msgid, rsp, controls);
}
/**
* Returns the OID of the response.
*
* @return the response OID.
*/
public String getOID() {
JDAPExtendedResponse result = (JDAPExtendedResponse)getProtocolOp();
return result.getID();
}
/**
* Returns the raw bytes of the value part of the response.
*
* @return response as a raw array of bytes.
*/
public byte[] getValue() {
JDAPExtendedResponse result = (JDAPExtendedResponse)getProtocolOp();
return result.getValue();
}
}

View File

@@ -1,53 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* An exception thrown when the LDAP operation being invoked has
* been interrupted. For example, an application might interrupt a thread that
* is performing a search.
*
* @version 1.0
*/
public class LDAPInterruptedException extends LDAPException {
/**
* Constructs a default exception with a specified string of
* additional information. This string appears if you call
* the <CODE>toString()</CODE> method.
* <P>
*
* @param message the additional information
* @see netscape.ldap.LDAPInterruptedException#toString()
*/
LDAPInterruptedException( String message ) {
super( message, LDAPException.OTHER, null);
}
/**
* Gets the string representation of the exception.
*/
public String toString() {
String str = "netscape.ldap.LDAPInterruptedException: ";
String msg = super.getMessage();
if (msg != null) {
str +=msg;
}
return str;
}
}

View File

@@ -1,397 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* The definition of a matching rule in the schema.
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A> covers the types of information
* that need to be specified in the definition of a matching rule.
* According to the RFC, the description of a matching rule can
* include the following information:
* <P>
*
* <UL>
* <LI>an OID identifying the matching rule
* <LI>a name identifying the matching rule
* <LI>a description of the matching rule
* <LI>the syntax of the matching rule
* </UL>
* <P>
*
* The <CODE>LDAPMatchingRuleSchema</CODE> class also specifies
* the matching rule "use description", which describes the
* attributes which can be used with the matching rule.
* <P>
*
* When you construct an <CODE>LDAPMatchingRuleSchema</CODE> object, you can
* specify these types of information as arguments to the constructor or
* in the MatchingRuleDescription and MatchingRuleUseDescription formats
* specified in RFC 2252.
* When an LDAP client searches an LDAP server for the schema, the server
* returns schema information as an object with attribute values in this
* format.
* <P>
*
* You can get the name, OID, and description of this matching rule
* definition by using the <CODE>getName</CODE>, <CODE>getOID</CODE>, and
* <CODE>getDescription</CODE> methods inherited from the abstract class
* <CODE>LDAPSchemaElement</CODE>. Custom qualifiers are
* accessed with <CODE>getQualifier</CODE> and <CODE>getQualifierNames</CODE>
* from <CODE>LDAPSchemaElement</CODE>.
* <P>
*
* To add or remove this matching rule definition from the
* schema, use the <CODE>add</CODE> and <CODE>remove</CODE>
* methods, which this class inherits from the <CODE>LDAPSchemaElement</CODE>
* abstract class.
* <P>
* RFC 2252 defines MatchingRuleDescription and MatchingRuleUseDescription
* as follows:
* <P>
* <PRE>
* MatchingRuleDescription = "(" whsp
* numericoid whsp ; MatchingRule identifier
* [ "NAME" qdescrs ]
* [ "DESC" qdstring ]
* [ "OBSOLETE" whsp ]
* "SYNTAX" numericoid
* whsp ")"
*
* Values of the matchingRuleUse list the attributes which are suitable
* for use with an extensible matching rule.
*
* MatchingRuleUseDescription = "(" whsp
* numericoid whsp ; MatchingRule identifier
* [ "NAME" qdescrs ]
* [ "DESC" qdstring ]
* [ "OBSOLETE" ]
* "APPLIES" oids ; AttributeType identifiers
* whsp ")"
* </PRE>
* <P>
* <CODE>LDAPMatchingRuleSchema</CODE> abstracts away from the two types and
* manages their relationships transparently.
*
* @version 1.0
* @see netscape.ldap.LDAPSchemaElement
**/
public class LDAPMatchingRuleSchema extends LDAPSchemaElement {
/**
* Constructs a matching rule definition, using the specified
* information.
* @param name name of the matching rule
* @param oid object identifier (OID) of the matching rule
* in dotted-decimal format (for example, "1.2.3.4")
* @param description description of the matching rule
* @param attributes array of the OIDs of the attributes for which
* the matching rule is applicable
* @param syntax syntax of this matching rule. The value of this
* argument can be one of the following:
* <UL>
* <LI><CODE>cis</CODE> (case-insensitive string)
* <LI><CODE>ces</CODE> (case-exact string)
* <LI><CODE>binary</CODE> (binary data)
* <LI><CODE>int</CODE> (integer)
* <LI><CODE>telephone</CODE> (telephone number -- identical to cis,
* but blanks and dashes are ignored during comparisons)
* <LI><CODE>dn</CODE> (distinguished name)
* </UL>
*/
public LDAPMatchingRuleSchema( String name, String oid,
String description,
String[] attributes, int syntax ) {
this( name, oid, description, attributes, cisString );
syntaxElement.syntax = syntax;
String syntaxType = syntaxElement.internalSyntaxToString( syntax );
if ( syntaxType != null ) {
syntaxElement.syntaxString = syntaxType;
}
setQualifier( SYNTAX, syntaxElement.syntaxString );
}
/**
* Constructs a matching rule definition, using the specified
* information.
* @param name name of the matching rule.
* @param oid object identifier (OID) of the matching rule
* in dotted-decimal format (for example, "1.2.3.4").
* @param description description of the matching rule.
* @param attributes array of the OIDs of the attributes for which
* the matching rule is applicable.
* @param syntaxString syntax of this matching rule in dotted-decimal
* format
*/
public LDAPMatchingRuleSchema( String name, String oid,
String description,
String[] attributes,
String syntaxString ) {
this( name, oid, description, attributes, syntaxString, null );
}
/**
* Constructs a matching rule definition, using the specified
* information.
* @param name name of the matching rule.
* @param oid object identifier (OID) of the matching rule
* in dotted-decimal format (for example, "1.2.3.4").
* @param description description of the matching rule.
* @param attributes array of the OIDs of the attributes for which
* the matching rule is applicable.
* @param syntaxString syntax of this matching rule in dotted-decimal
* format
* @param aliases names which are to be considered aliases for this
* matching rule; <CODE>null</CODE> if there are no aliases
*/
public LDAPMatchingRuleSchema( String name, String oid,
String description,
String[] attributes,
String syntaxString,
String[] aliases ) {
super( name, oid, description );
attrName = "matchingrules";
syntaxElement.syntax = syntaxElement.syntaxCheck( syntaxString );
syntaxElement.syntaxString = syntaxString;
setQualifier( SYNTAX, syntaxElement.syntaxString );
this.attributes = new String[attributes.length];
for( int i = 0; i < attributes.length; i++ ) {
this.attributes[i] = attributes[i];
}
if ( (aliases != null) && (aliases.length > 0) ) {
this.aliases = aliases;
}
}
/**
* Constructs a matching rule definition based on descriptions in
* the MatchingRuleDescription format and MatchingRuleUseDescription
* format. For information on this format,
* (see <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A>. This is the format that LDAP servers
* and clients use to exchange schema information. For example, when
* you search an LDAP server for its schema, the server returns an entry
* with attributes that include "matchingrule" and "matchingruleuse".
* The values of these attributes are matching rule descriptions
* in this format.
* <P>
*
* @param raw definition of the matching rule in the
* MatchingRuleDescription format
* @param use definition of the use of the matching rule in the
* MatchingRuleUseDescription format
*/
public LDAPMatchingRuleSchema( String raw, String use ) {
attrName = "matchingrules";
if ( raw != null ) {
parseValue( raw );
}
if ( use != null ) {
parseValue( use );
}
Vector v = (Vector)properties.get( "APPLIES" );
if ( v != null ) {
attributes = new String[v.size()];
v.copyInto( attributes );
v.removeAllElements();
}
String val = (String)properties.get( "SYNTAX" );
if ( val != null ) {
syntaxElement.syntaxString = val;
syntaxElement.syntax = syntaxElement.syntaxCheck( val );
}
}
/**
* Gets the list of the OIDs of the attribute types which can be used
* with the matching rule.
* @return array of the OIDs of the attribute types which can be used
* with the matching rule.
*/
public String[] getAttributes() {
return attributes;
}
/**
* Gets the syntax of the schema element
* @return One of the following values:
* <UL>
* <LI><CODE>cis</CODE> (case-insensitive string)
* <LI><CODE>ces</CODE> (case-exact string)
* <LI><CODE>binary</CODE> (binary data)
* <LI><CODE>int</CODE> (integer)
* <LI><CODE>telephone</CODE> (telephone number -- identical to cis,
* but blanks and dashes are ignored during comparisons)
* <LI><CODE>dn</CODE> (distinguished name)
* <LI><CODE>unknown</CODE> (not a known syntax)
* </UL>
*/
public int getSyntax() {
return syntaxElement.syntax;
}
/**
* Gets the syntax of the attribute type in dotted-decimal format,
* for example "1.2.3.4.5"
* @return The attribute syntax in dotted-decimal format.
*/
public String getSyntaxString() {
return syntaxElement.syntaxString;
}
/**
* Prepare a value in RFC 2252 format for submitting to a server
*
* @param quotingBug <CODE>true</CODE> if SUP and SYNTAX values are to
* be quoted; that is to satisfy bugs in certain LDAP servers.
* @return a String ready to be submitted to an LDAP server
*/
String getValue( boolean quotingBug ) {
String s = getValuePrefix();
if ( syntaxElement.syntaxString != null ) {
s += "SYNTAX ";
if ( quotingBug ) {
s += '\'';
}
s += syntaxElement.syntaxString;
if ( quotingBug ) {
s += '\'';
}
s += ' ';
}
String val = getCustomValues();
if ( val.length() > 0 ) {
s += val + ' ';
}
s += ')';
return s;
}
/**
* Gets the matching rule definition in the string representation
* of the MatchingRuleDescription data type defined in X.501 (see
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol
* (v3): Attribute Syntax Definitions</A>
* for a description of these formats).
* This is the format that LDAP servers and clients use to exchange
* schema information. (For example, when
* you search an LDAP server for its schema, the server returns an entry
* with the attributes "matchingrules" and "matchingruleuse". The
* values of these attributes are matching rule description and
* matching rule use description in these formats.)
* <P>
*
* @return a string in a format that can be used as the value of
* the <CODE>matchingrule</CODE> attribute (which describes
* a matching rule in the schema) of a <CODE>subschema</CODE> object
*/
public String getValue() {
return getValue( false );
}
/**
* Gets the matching rule use definition in the string representation
* of the MatchingRuleUseDescription data type defined in X.501 (see
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol
* (v3): Attribute Syntax Definitions</A>
* for a description of these formats).
* This is the format that LDAP servers and clients use to exchange
* schema information. (For example, when
* you search an LDAP server for its schema, the server returns an entry
* with the attributes "matchingrules" and "matchingruleuse". The
* values of these attributes are matching rule description and
* matching rule use description in these formats.)
* <P>
*
* @return a string in a format that can be used as the value of
* the <CODE>matchingruleuse</CODE> attribute (which describes the use of
* a matching rule in the schema) of a <CODE>subschema</CODE> object
*/
public String getUseValue() {
String s = getValuePrefix();
if ( (attributes != null) && (attributes.length > 0) ) {
s += "APPLIES ( ";
for( int i = 0; i < attributes.length; i++ ) {
if ( i > 0 )
s += " $ ";
s += attributes[i];
}
s += " ) ";
}
s += ')';
return s;
}
/**
* Adds, removes or modifies the definition from a Directory.
* @param ld an open connection to a Directory Server. Typically the
* connection must have been authenticated to add a definition.
* @param op type of modification to make
* @param name name of attribute in the schema entry to modify. This
* is ignored here.
* @param dn the entry at which to update the schema
* @exception LDAPException if the definition can't be added/removed
*/
protected void update( LDAPConnection ld, int op, String name, String dn )
throws LDAPException {
LDAPAttribute[] attrs = new LDAPAttribute[2];
attrs[0] = new LDAPAttribute( "matchingRules",
getValue() );
/* Must update the matchingRuleUse value as well */
attrs[1] = new LDAPAttribute( "matchingRuleUse",
getUseValue() );
update( ld, op, attrs, dn );
}
/**
* Gets the definition of the matching rule in a user friendly format.
* This is the format that the matching rule definition uses when
* you print the matching rule or the schema.
* @return definition of the matching rule in a user friendly format.
*/
public String toString() {
String s = "Name: " + name + "; OID: " + oid + "; Type: ";
s += syntaxElement.syntaxToString();
s += "; Description: " + description;
if ( attributes != null ) {
s += "; Applies to: ";
for( int i = 0; i < attributes.length; i++ ) {
if ( i > 0 )
s += ", ";
s += attributes[i];
}
}
s += getQualifierString( EXPLICIT );
s += getAliasString();
return s;
}
// Qualifiers tracked explicitly
static final String[] EXPLICIT = { OBSOLETE,
SYNTAX };
private String[] attributes = null;
private LDAPSyntaxSchemaElement syntaxElement =
new LDAPSyntaxSchemaElement();
}

View File

@@ -1,280 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.opers.*;
import netscape.ldap.ber.stream.*;
import java.io.*;
import java.net.*;
import java.text.SimpleDateFormat;
/**
* Base class for LDAP request and response messages.
* This class represents the LDAPMessage in RFC2251. The
* message is the entity that got transferred back and
* fro between the server and the client interface. Each
* message has a protocol operation. The protocol operation
* indicates if it is a request or response.
* <pre>
* LDAPMessage ::= SEQUENCE {
* messageID MessageID,
* protocolOp CHOICE {
* bindRequest BindRequest,
* ...
* }
* controls [0] Controls OPTIONAL
* }
* </pre>
*
* @version 1.0
*/
public class LDAPMessage {
public final static int BIND_REQUEST = 0;
public final static int BIND_RESPONSE = 1;
public final static int UNBIND_REQUEST = 2;
public final static int SEARCH_REQUEST = 3;
public final static int SEARCH_RESPONSE = 4;
public final static int SEARCH_RESULT = 5;
public final static int MODIFY_REQUEST = 6;
public final static int MODIFY_RESPONSE = 7;
public final static int ADD_REQUEST = 8;
public final static int ADD_RESPONSE = 9;
public final static int DEL_REQUEST = 10;
public final static int DEL_RESPONSE = 11;
public final static int MODIFY_RDN_REQUEST = 12;
public final static int MODIFY_RDN_RESPONSE = 13;
public final static int COMPARE_REQUEST = 14;
public final static int COMPARE_RESPONSE = 15;
public final static int ABANDON_REQUEST = 16;
public final static int SEARCH_RESULT_REFERENCE = 19;
public final static int EXTENDED_REQUEST = 23;
public final static int EXTENDED_RESPONSE = 24;
/**
* Internal variables
*/
private int m_msgid;
private JDAPProtocolOp m_protocolOp = null;
private LDAPControl m_controls[] = null;
// Time Stemp format Hour(0-23):Minute:Second.Milliseconds used for trace msgs
static SimpleDateFormat m_timeFormat = new SimpleDateFormat("HH:mm:ss.SSS");
/**
* Constructs a ldap message.
* @param msgid message identifier
* @param op operation protocol
*/
LDAPMessage(int msgid, JDAPProtocolOp op) {
m_msgid = msgid;
m_protocolOp = op;
}
LDAPMessage(int msgid, JDAPProtocolOp op, LDAPControl controls[]) {
m_msgid = msgid;
m_protocolOp = op;
m_controls = controls; /* LDAPv3 additions */
}
/**
* Creates a ldap message from a BERElement. This method is used
* to parse LDAP response messages
*
* @param element ber element constructed from incoming byte stream
*/
static LDAPMessage parseMessage(BERElement element) throws IOException {
int l_msgid;
JDAPProtocolOp l_protocolOp = null;
LDAPControl l_controls[] = null;
if (element.getType() != BERElement.SEQUENCE)
throw new IOException("SEQUENCE in jdap message expected");
BERSequence seq = (BERSequence)element;
BERInteger msgid = (BERInteger)seq.elementAt(0);
l_msgid = msgid.getValue();
BERElement protocolOp = (BERElement)seq.elementAt(1);
if (protocolOp.getType() != BERElement.TAG) {
throw new IOException("TAG in protocol operation is expected");
}
BERTag tag = (BERTag)protocolOp;
switch (tag.getTag()&0x1f) {
case JDAPProtocolOp.BIND_RESPONSE:
l_protocolOp = new JDAPBindResponse(protocolOp);
break;
case JDAPProtocolOp.SEARCH_RESPONSE:
l_protocolOp = new JDAPSearchResponse(protocolOp);
break;
/*
* If doing search without bind,
* x500.arc.nasa.gov returns tag SEARCH_REQUEST tag
* in SEARCH_RESULT.
*/
case JDAPProtocolOp.SEARCH_REQUEST:
case JDAPProtocolOp.SEARCH_RESULT:
l_protocolOp = new JDAPSearchResult(protocolOp);
break;
case JDAPProtocolOp.MODIFY_RESPONSE:
l_protocolOp = new JDAPModifyResponse(protocolOp);
break;
case JDAPProtocolOp.ADD_RESPONSE:
l_protocolOp = new JDAPAddResponse(protocolOp);
break;
case JDAPProtocolOp.DEL_RESPONSE:
l_protocolOp = new JDAPDeleteResponse(protocolOp);
break;
case JDAPProtocolOp.MODIFY_RDN_RESPONSE:
l_protocolOp = new JDAPModifyRDNResponse(protocolOp);
break;
case JDAPProtocolOp.COMPARE_RESPONSE:
l_protocolOp = new JDAPCompareResponse(protocolOp);
break;
case JDAPProtocolOp.SEARCH_RESULT_REFERENCE:
l_protocolOp = new JDAPSearchResultReference(protocolOp);
break;
case JDAPProtocolOp.EXTENDED_RESPONSE:
l_protocolOp = new JDAPExtendedResponse(protocolOp);
break;
default:
throw new IOException("Unknown protocol operation");
}
/* parse control */
if (seq.size() >= 3) {
tag = (BERTag)seq.elementAt(2);
if ( tag.getTag() == (BERTag.CONSTRUCTED|BERTag.CONTEXT|0) ) {
BERSequence controls = (BERSequence)tag.getValue();
l_controls = new LDAPControl[controls.size()];
for (int i = 0; i < controls.size(); i++) {
l_controls[i] = LDAPControl.parseControl(controls.elementAt(i));
}
}
}
if (l_protocolOp instanceof JDAPSearchResponse) {
return new LDAPSearchResult(l_msgid,
(JDAPSearchResponse) l_protocolOp, l_controls);
}
else if (l_protocolOp instanceof JDAPSearchResultReference) {
return new LDAPSearchResultReference(l_msgid,
(JDAPSearchResultReference) l_protocolOp, l_controls);
}
else if (l_protocolOp instanceof JDAPExtendedResponse) {
return new LDAPExtendedResponse(l_msgid,
(JDAPExtendedResponse) l_protocolOp, l_controls);
}
else {
return new LDAPResponse(l_msgid, l_protocolOp, l_controls);
}
}
/**
* Returns the message identifer.
* @return message identifer.
*/
public int getID(){
return m_msgid;
}
/**
* Returns the LDAP operation type of the message
* @return message type.
*/
public int getType(){
return m_protocolOp.getType();
}
/**
* Retrieves the protocol operation.
* @return protocol operation.
*/
JDAPProtocolOp getProtocolOp() {
return m_protocolOp;
}
/**
* Retrieves list of controls.
* @return controls.
*/
public LDAPControl[] getControls() {
return m_controls;
}
/**
* Writes the ber encoding to stream.
* @param s output stream
*/
void write(OutputStream s) throws IOException {
BERSequence seq = new BERSequence();
BERInteger i = new BERInteger(m_msgid);
seq.addElement(i);
BERElement e = m_protocolOp.getBERElement();
if (e == null) {
throw new IOException("Bad BER element");
}
seq.addElement(e);
if (m_controls != null) { /* LDAPv3 additions */
BERSequence c = new BERSequence();
for (int j = 0; j < m_controls.length; j++) {
c.addElement(m_controls[j].getBERElement());
}
BERTag t = new BERTag(BERTag.CONTEXT|BERTag.CONSTRUCTED|0, c, true);
seq.addElement(t);
}
seq.write(s);
}
/**
* Returns string representation of an LDAP message.
* @return LDAP message.
*/
public String toString() {
StringBuffer sb = new StringBuffer("[LDAPMessage] ");
sb.append(m_msgid);
sb.append(" ");
sb.append(m_protocolOp.toString());
for (int i =0; m_controls != null && i < m_controls.length; i++) {
sb.append(" ");
sb.append(m_controls[i].toString());
}
return sb.toString();
}
/**
* Returns string representation of a ldap message with
* the time stamp. Used for message trace
* @return ldap message with the time stamp
*/
String toTraceString() {
String timeStamp = m_timeFormat.format(new Date());
StringBuffer sb = new StringBuffer(timeStamp);
sb.append(" ");
sb.append(m_msgid);
sb.append(" ");
sb.append(m_protocolOp.toString());
for (int i =0; m_controls != null && i < m_controls.length; i++) {
sb.append(" ");
sb.append(m_controls[i].toString());
}
return sb.toString();
}
}

View File

@@ -1,484 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.Vector;
/**
* A queue of response messsages from the server. Multiple requests
* can be multiplexed on the same queue. For synchronous LDAPConnection
* requests, there will be only one request per queue. For asynchronous
* LDAPConnection requests, the user can add multiple request to the
* same queue.
*
* Superclass for LDAResponseListener and LDAPSearchListener
*
*/
class LDAPMessageQueue {
/**
* Request entry encapsulates request parameters
*/
private static class RequestEntry {
int id;
LDAPConnection connection;
LDAPConnThread connThread;
long timeToComplete;
RequestEntry(int id, LDAPConnection connection,
LDAPConnThread connThread, int timeLimit) {
this.id= id;
this.connection = connection;
this.connThread = connThread;
this.timeToComplete = (timeLimit == 0) ?
Long.MAX_VALUE : (System.currentTimeMillis() + timeLimit);
}
}
/**
* Internal variables
*/
private /*LDAPMessage */ Vector m_messageQueue = new Vector(1);
private /*RequestEntry*/ Vector m_requestList = new Vector(1);
private LDAPException m_exception; /* For network errors */
private boolean m_asynchOp;
// A flag whether there are time constrained requests
private boolean m_timeConstrained;
/**
* Constructor
* @param asynchOp a boolean flag that is true if the object is used
* for asynchronous LDAP operations
* @see netscape.ldap.LDAPAsynchronousConnection
*/
LDAPMessageQueue (boolean asynchOp) {
m_asynchOp = asynchOp;
}
/**
* Returns a flag whether the listener is used for asynchronous LDAP
* operations
* @return asynchronous operation flag.
* @see netscape.ldap.LDAPAsynchronousConnection
*/
boolean isAsynchOp() {
return m_asynchOp;
}
/**
* Blocks until a response is available or until all operations
* associated with the object have completed or been canceled.
* @return LDAP message or null if there are no more outstanding requests.
* @exception LDAPException Network error exception
* @exception LDAPInterruptedException The invoking thread was interrupted
*/
synchronized LDAPMessage nextMessage () throws LDAPException {
while(m_requestList.size() != 0 && m_exception == null && m_messageQueue.size() == 0) {
waitForMessage();
}
// Network exception occurred ?
if (m_exception != null) {
LDAPException ex = m_exception;
m_exception = null;
throw ex;
}
// Are there any outstanding requests left
if (m_requestList.size() == 0) {
return null; // No outstanding requests
}
// Dequeue the first entry
LDAPMessage msg = (LDAPMessage) m_messageQueue.elementAt(0);
m_messageQueue.removeElementAt(0);
// Is the ldap operation completed?
if (msg instanceof LDAPResponse) {
removeRequest(msg.getID());
}
return msg;
}
/**
* Wait for request to complete. This method blocks until a message of
* type LDAPResponse has been received. Used by synchronous search
* with batch size of zero (block until all results are received)
* @return LDAPResponse message or null if there are no more outstanding requests.
* @exception LDAPException Network error exception
* @exception LDAPInterruptedException The invoking thread was interrupted
*/
synchronized LDAPResponse completeRequest () throws LDAPException {
while (true) {
while(m_requestList.size() != 0 && m_exception == null && m_messageQueue.size() == 0) {
waitForMessage();
}
// Network exception occurred ?
if (m_exception != null) {
LDAPException ex = m_exception;
m_exception = null;
throw ex;
}
// Are there any outstanding requests left?
if (m_requestList.size() == 0) {
return null; // No outstanding requests
}
// Search an instance of LDAPResponse
for (int i= m_messageQueue.size()-1; i >=0; i--) {
LDAPMessage msg = (LDAPMessage) m_messageQueue.elementAt(i);
if (msg instanceof LDAPResponse) {
// Dequeue the entry and return
m_messageQueue.removeElementAt(i);
return (LDAPResponse)msg;
}
}
// Not found, wait for the next message
waitForMessage();
}
}
/**
* Wait for a response message. Process interrupts and honor
* time limit if set for any request
*/
synchronized private void waitForMessage () throws LDAPException{
if (!m_timeConstrained) {
try {
wait ();
return;
} catch (InterruptedException e) {
throw new LDAPInterruptedException("Interrupted LDAP operation");
}
}
/**
* Perform time constrained wait
*/
long minTimeToComplete = Long.MAX_VALUE;
long now = System.currentTimeMillis();
for (int i=0; i < m_requestList.size(); i++) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
// time limit exceeded ?
if (entry.timeToComplete <= now) {
entry.connection.abandon(entry.id);
throw new LDAPException("Time to complete operation exceeded",
LDAPException.LDAP_TIMEOUT);
}
if (entry.timeToComplete < minTimeToComplete) {
minTimeToComplete = entry.timeToComplete;
}
}
long timeLimit = (minTimeToComplete == Long.MAX_VALUE)?
0 :(minTimeToComplete - now);
try {
m_timeConstrained = (timeLimit != 0);
wait (timeLimit);
} catch (InterruptedException e) {
throw new LDAPInterruptedException("Interrupted LDAP operation");
}
}
/**
* Merge two message queues.
* Move/append the content from another message queue to this one.
*
* To be used for synchronization of asynchronous LDAP operations where
* requests are sent by one thread but processed by another one
*
* A client may be implemented in such a way that one thread makes LDAP
* requests and calls l.getIDs(), while another thread is responsible for
* processing of responses (call l.getResponse()). Both threads are using
* the same listener objects. In such a case, a race
* condition may occur, where a LDAP response message is retrieved and
* the request terminated (request ID removed) before the first thread
* has a chance to execute l.getIDs().
* The proper way to handle this scenario is to create a separate listener
* for each new request, and after l.getIDs() has been invoked, merge the
* new request with the existing one.
* @param mq2 message queue to merge with this one
*/
synchronized void merge(LDAPMessageQueue mq2) {
synchronized (mq2) {
for (int i=0; i < mq2.m_requestList.size(); i++) {
m_requestList.addElement(mq2.m_requestList.elementAt(i));
}
for (int i=0; i < mq2.m_messageQueue.size(); i++) {
m_messageQueue.addElement(mq2.m_messageQueue.elementAt(i));
}
if (mq2.m_exception != null) {
m_exception = mq2.m_exception;
}
mq2.reset();
notifyAll(); // notify for mq2
}
notifyAll(); // notify this mq
}
/**
* Retrieves all messages currently in the queue without blocking
* @return vector of messages.
*/
synchronized Vector getAllMessages() {
Vector result = m_messageQueue;
m_messageQueue = new Vector(1);
return result;
}
/**
* Queues the LDAP server's response. This causes anyone waiting
* in nextMessage() to unblock.
* @param msg response message
*/
synchronized void addMessage (LDAPMessage msg) {
m_messageQueue.addElement(msg);
// Mark conn as bound for asych bind operations
if (isAsynchOp() && msg.getType() == msg.BIND_RESPONSE) {
if (((LDAPResponse) msg).getResultCode() == 0) {
getConnection(msg.getID()).markConnAsBound();
}
}
notifyAll ();
}
/**
* Signals that a network exception occured while servicing the
* request. This exception will be throw to any thread waiting
* in nextMessage()
* @param connThread LDAPConnThread on which the exception occurred
* @param e exception
*/
synchronized void setException (LDAPConnThread connThread, LDAPException e) {
m_exception = e;
removeAllRequests(connThread);
notifyAll ();
}
/**
* Checks if response message is received.
* @return true or false.
*/
boolean isMessageReceived() {
return m_messageQueue.size() != 0;
}
/**
* Returns the count of queued messages
* @return message count.
*/
public int getMessageCount () {
return m_messageQueue.size();
}
/**
* Remove all queued messages associated with the request ID
* Called when a LDAP operation is abandoned
*
* Not synchronized as its private and can be called only by
* abandon() and removeAllRequests()
*
* @return count of removed messages.
*/
private int removeAllMessages(int id) {
int removeCount=0;
for (int i=(m_messageQueue.size()-1); i>=0; i--) {
LDAPMessage msg = (LDAPMessage)m_messageQueue.elementAt(i);
if (msg.getID() == id) {
m_messageQueue.removeElementAt(i);
removeCount++;
}
}
return removeCount;
}
/**
* Resets the state of this object, so it can be recycled.
* Used by LDAPConnection synchronous operations.
* @see netscape.ldap.LDAPConnection#getResponseListener
* @see netscape.ldap.LDAPConnection#getSearchListener
*/
void reset () {
m_exception = null;
m_messageQueue.removeAllElements();
m_requestList.removeAllElements();
m_timeConstrained = false;
}
/**
* Returns the connection associated with the specified request id
* @param id request id
* @return connection.
*/
synchronized LDAPConnection getConnection(int id) {
for (int i=0; i < m_requestList.size(); i++) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
if (id == entry.id) {
return entry.connection;
}
}
return null;
}
/**
* Returns the connection thread associated with the specified request id
* @param id request id.
* @return connection thread.
*/
synchronized LDAPConnThread getConnThread(int id) {
for (int i=0; i < m_requestList.size(); i++) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
if (id == entry.id) {
return entry.connThread;
}
}
return null;
}
/**
* Returns message ID of the last request
* @return message ID.
*/
synchronized int getID() {
int reqCnt = m_requestList.size();
if ( reqCnt == 0) {
return -1;
}
else {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(reqCnt-1);
return entry.id;
}
}
/**
* Returns a list of message IDs for all outstanding requests
* @return message ID array.
*/
synchronized int[] getIDs() {
int[] ids = new int[m_requestList.size()];
for (int i=0; i < ids.length; i++) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
ids[i] = entry.id;
}
return ids;
}
/**
* Registers a LDAP request
* @param id LDAP request message ID
* @param connection LDAP Connection for the message ID
* @param connThread a physical connection to the server
* @param timeLimit the maximum number of milliseconds to wait for
* the request to complete
*/
synchronized void addRequest(int id, LDAPConnection connection,
LDAPConnThread connThread, int timeLimit) {
m_requestList.addElement(new RequestEntry(id, connection,
connThread, timeLimit));
if (timeLimit != 0) {
m_timeConstrained = true;
}
notifyAll();
}
/**
* Returns the number of outstanding requests.
* @return outstanding request count.
*/
public int getRequestCount() {
return m_requestList.size();
}
/**
* Remove request with the specified ID
* Called when a LDAP operation is abandoned (called from
* LDAPConnThread), or terminated (called by nextMessage() when
* LDAPResponse message is received)
* @return flag indicating whether the request was removed.
*/
synchronized boolean removeRequest(int id) {
for (int i=0; i < m_requestList.size(); i++) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
if (id == entry.id) {
m_requestList.removeElementAt(i);
removeAllMessages(id);
notifyAll();
return true;
}
}
return false;
}
/**
* Remove all requests associated with the specified connThread
* Called when a connThread has a network error
* @return number of removed requests.
*/
synchronized int removeAllRequests(LDAPConnThread connThread) {
int removeCount=0;
for (int i=(m_requestList.size()-1); i>=0; i--) {
RequestEntry entry = (RequestEntry)m_requestList.elementAt(i);
if (connThread == entry.connThread) {
m_requestList.removeElementAt(i);
removeCount++;
// remove all queued messages as well
removeAllMessages(entry.id);
}
}
notifyAll();
return removeCount;
}
/**
* String representation of the object
*/
public String toString() {
StringBuffer sb = new StringBuffer("LDAPMessageQueue:");
sb.append(" requestIDs={");
for (int i=0; i < m_requestList.size(); i++) {
if (i>0) {
sb.append(",");
}
sb.append(((RequestEntry)m_requestList.elementAt(i)).id);
}
sb.append("} messageCount="+m_messageQueue.size());
return sb.toString();
}
}

View File

@@ -1,142 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import netscape.ldap.ber.stream.*;
/**
* Specifies changes to be made to the values of an attribute. The change is
* specified in terms of the following aspects:
* <P>
*
* <UL>
* <LI>the type of modification (add, replace, or delete the value of an attribute)
* <LI>the type of value being modified (string or binary)
* <LI>the name of the attribute being modified
* <LI>the actual value
* </UL>
* <P>
*
* After you specify a change to an attribute, you can execute the change
* by calling the <CODE>LDAPConnection.modify</CODE> method and specifying
* the DN of the entry that you want to modify.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPConnection#modify(java.lang.String, netscape.ldap.LDAPModification)
*/
public class LDAPModification {
/**
* Specifies that a value should be added to an attribute.
*/
public static final int ADD = 0;
/**
* Specifies that a value should be removed from an attribute.
*/
public static final int DELETE = 1;
/**
* Specifies that a value should replace the existing value in an attribute.
*/
public static final int REPLACE = 2;
/**
* Internal variables
*/
private int operation;
private LDAPAttribute attribute;
/**
* Specifies a modification to be made to an attribute.
* @param op the type of modification to make. This can be one of the following:
* <P>
* <UL>
* <LI><CODE>LDAPModification.ADD</CODE> (the value should be added to the attribute)
* <LI><CODE>LDAPModification.DELETE</CODE> (the value should be removed from the attribute)
* <LI><CODE>LDAPModification.REPLACE</CODE> (the value should replace the existing value of the attribute)
* </UL><P>
* @param attr the attribute (possibly with values) to modify
* @see netscape.ldap.LDAPAttribute
*/
public LDAPModification( int op, LDAPAttribute attr ) {
operation = op;
attribute = attr;
}
/**
* Returns the type of modification specified by this object.
* @return one of the following types of modifications:
* <P>
* <UL>
* <LI><CODE>LDAPModification.ADD</CODE> (the value should be added to the attribute)
* <LI><CODE>LDAPModification.DELETE</CODE> (the value should be removed from the attribute)
* <LI><CODE>LDAPModification.REPLACE</CODE> (the value should replace the existing value of the attribute)
* </UL><P>
*/
public int getOp() {
return operation;
}
/**
* Returns the attribute (possibly with values) to be modified.
* @return the attribute to be modified.
* @see netscape.ldap.LDAPAttribute
*/
public LDAPAttribute getAttribute() {
return attribute;
}
/**
* Retrieves the BER (Basic Encoding Rules) representation
* of the current modification.
* @return BER representation of the modification.
*/
public BERElement getBERElement() {
BERSequence seq = new BERSequence();
seq.addElement(new BEREnumerated(operation));
seq.addElement(attribute.getBERElement());
return seq;
}
/**
* Retrieves the string representation of the current
* modification. For example:
*
* <PRE>
* LDAPModification: REPLACE, LDAPAttribute {type='mail', values='babs@ace.com'}
* LDAPModification: ADD, LDAPAttribute {type='description', values='This entry was modified with the modattrs program'}
* </PRE>
*
* @return string representation of the current modification.
*/
public String toString() {
String s = "LDAPModification: ";
if ( operation == ADD )
s += "ADD, ";
else if ( operation == DELETE )
s += "DELETE, ";
else if ( operation == REPLACE )
s += "REPLACE, ";
else
s += "INVALID OP, ";
s += attribute;
return s;
}
}

View File

@@ -1,135 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* Represents a set of modifications to be made to attributes in an entry.
* A set of modifications is made up of <CODE>LDAPModification</CODE> objects.
* <P>
*
* After you specify a change to an attribute, you can execute the change
* by calling the <CODE>LDAPConnection.modify</CODE> method and specifying
* the DN of the entry that you want to modify.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPModification
* @see netscape.ldap.LDAPConnection#modify(java.lang.String, netscape.ldap.LDAPModificationSet)
*/
public class LDAPModificationSet {
private int current = 0;
private Vector modifications;
/**
* Constructs a new, empty set of modifications.
* You can add modifications to this set by calling the
* <CODE>LDAPModificationsSet.add</CODE> method.
*/
public LDAPModificationSet() {
modifications = new Vector();
current = 0;
}
/**
* Retrieves the number of <CODE>LDAPModification</CODE>
* objects in this set.
* @return the number of <CODE>LDAPModification</CODE>
* objects in this set.
*/
public int size () {
return modifications.size();
}
/**
* Retrieves a particular <CODE>LDAPModification</CODE> object at
* the position specified by the index.
* @param index position of the <CODE>LDAPModification</CODE>
* object that you want to retrieve.
* @return <CODE>LDAPModification</CODE> object representing
* a change to make to an attribute.
*/
public LDAPModification elementAt (int index) {
return (LDAPModification)modifications.elementAt(index);
}
/**
* Removes a particular <CODE>LDAPModification</CODE> object at
* the position specified by the index.
* @param index position of the <CODE>LDAPModification</CODE>
* object that you want to remove
*/
public void removeElementAt( int index ) {
modifications.removeElementAt(index);
}
/**
* Specifies another modification to be added to the set of modifications.
* @param op the type of modification to make. This can be one of the following:
* <P>
* <UL>
* <LI><CODE>LDAPModification.ADD</CODE> (the value should be added to the attribute)
* <LI><CODE>LDAPModification.DELETE</CODE> (the value should be removed from the attribute)
* <LI><CODE>LDAPModification.REPLACE</CODE> (the value should replace the existing value of the attribute)
* </UL><P>
* If you are working with a binary value (not a string value), you need to bitwise OR (|) the
* modification type with <CODE>LDAPModification.BVALUES</CODE>.
* <P>
*
* @param attr the attribute (possibly with values) to modify
*/
public synchronized void add( int op, LDAPAttribute attr ) {
LDAPModification mod = new LDAPModification( op, attr );
modifications.addElement( mod );
}
/**
* Removes the first attribute with the specified name in the set of modifications.
* @param name name of the attribute to remove
*/
public synchronized void remove( String name ) {
for( int i = 0; i < modifications.size(); i++ ) {
LDAPModification mod = (LDAPModification)modifications.elementAt( i );
LDAPAttribute attr = mod.getAttribute();
if ( name.equalsIgnoreCase( attr.getName() ) ) {
modifications.removeElementAt( i );
break;
}
}
}
/**
* Retrieves the string representation of the
* modification set.
*
* @return string representation of the modification set.
*/
public String toString() {
String s = "LDAPModificationSet: {";
for( int i = 0; i < modifications.size(); i++ ) {
s += (LDAPModification)modifications.elementAt(i);
if ( i < modifications.size()-1 ) {
s += ", ";
}
}
s += "}";
return s;
}
}

View File

@@ -1,407 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* The definition of an object class in the schema.
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A> covers the types of information
* that need to be specified in the definition of an object class.
* According to the RFC, the description of an object class can
* include the following information:
* <P>
*
* <UL>
* <LI>an OID identifying the object class
* <LI>a name identifying the object class
* <LI>a description of the object class
* <LI>the name of the parent object class
* <LI>the list of attribute types that are required in this object class
* <LI>the list of attribute types that are allowed (optional) in this
* object class
* </UL>
* <P>
*
* When you construct an <CODE>LDAPObjectSchema</CODE> object, you can specify
* these types of information as arguments to the constructor or in the
* ObjectClassDescription format specified in RFC 2252.
* When an LDAP client searches an LDAP server for the schema, the server
* returns schema information as an object with attribute values in this
* format.
* <P>
*
* RFC 2252 also notes that you can specify whether or not an object class
* is abstract, structural, or auxiliary in the object description.
* Abstract object classes are used only to derive other object classes.
* Entries cannot belong to an abstract object class. <CODE>top</CODE>
* is an abstract object class. Entries must belong to a structural
* object class, so most object classes are structural object classes.
* Objects of the <CODE>LDAPObjectClassSchema</CODE> class are structural
* object classes by default. Auxiliary object classes can be used to
* add attributes to entries of different types. For example, an
* auxiliary object class might be used to specify personal preference
* attributes. An entry can not contain just that object class, but may
* include it along with a structural object class, for example
* inetOrgPerson.
* If the definition of an object (in ObjectClassDescription format)
* specifies the AUXILIARY keyword, an <CODE>LDAPObjectClassSchema</CODE>
* object created from that description represents an auxiliary object class.
* <P>
*
* You can get the name, OID, and description of this object class
* definition by using the <CODE>getName</CODE>, <CODE>getOID</CODE>, and
* <CODE>getDescription</CODE> methods inherited from the abstract class
* <CODE>LDAPSchemaElement</CODE>. Optional and custom qualifiers are
* accessed with <CODE>getQualifier</CODE> and <CODE>getQualifierNames</CODE>
* from <CODE>LDAPSchemaElement</CODE>.
* <P>
*
* To add or remove this object class definition from the
* schema, use the <CODE>add</CODE> and <CODE>remove</CODE>
* methods, which this class inherits from the <CODE>LDAPSchemaElement</CODE>
* abstract class.
* <P>
* RFC 2252 defines ObjectClassDescription as follows:
* <P>
* <PRE>
* ObjectClassDescription = "(" whsp
* numericoid whsp ; ObjectClass identifier
* [ "NAME" qdescrs ]
* [ "DESC" qdstring ]
* [ "OBSOLETE" whsp ]
* [ "SUP" oids ] ; Superior ObjectClasses
* [ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ]
* ; default structural
* [ "MUST" oids ] ; AttributeTypes
* [ "MAY" oids ] ; AttributeTypes
* whsp ")"
* </PRE>
*
* @version 1.0
* @see netscape.ldap.LDAPSchemaElement
**/
public class LDAPObjectClassSchema extends LDAPSchemaElement {
/**
* Constructs an object class definition, using the specified
* information. The type of the object class will be STRUCTURAL.
* @param name name of the object class
* @param oid object identifier (OID) of the object class
* in dotted-string format (for example, "1.2.3.4")
* @param description description of the object class
* @param superior name of the parent object class
* (the object class that the new object class inherits from)
* @param required array of names of attributes required
* in this object class
* @param optional array of names of optional attributes
* allowed in this object class
*/
public LDAPObjectClassSchema( String name, String oid, String superior,
String description,
String[] required, String[] optional ) {
super( name, oid, description );
attrName = "objectclasses";
setQualifier( SUPERIOR, superior );
if ( required != null ) {
for( int i = 0; i < required.length; i++ ) {
must.addElement( required[i] );
}
}
if ( optional != null ) {
for( int i = 0; i < optional.length; i++ ) {
may.addElement( optional[i] );
}
}
}
/**
* Constructs an object class definition, using the specified
* information.
* @param name name of the object class
* @param oid object identifier (OID) of the object class
* in dotted-string format (for example, "1.2.3.4")
* @param description description of the object class
* @param superiors names of parent object classes
* (the object classes that this object class inherits from)
* @param required array of names of attributes required
* in this object class
* @param optional array of names of optional attributes
* allowed in this object class
* @param type either ABSTRACT, STRUCTURAL, or AUXILIARY
* @param aliases names which are to be considered aliases for this
* object class; <CODE>null</CODE> if there are no aliases
*/
public LDAPObjectClassSchema( String name, String oid,
String[] superiors,
String description,
String[] required, String[] optional,
int type, String[] aliases ) {
this( name, oid,
((superiors != null) && (superiors.length > 0)) ?
superiors[0] : null,
description, required, optional );
if ( (superiors != null) && (superiors.length > 1) ) {
setQualifier( SUPERIOR, superiors );
}
setQualifier( TYPE, typeToString( type ) );
if ( (aliases != null) && (aliases.length > 0) ) {
this.aliases = aliases;
}
}
/**
* Constructs an object class definition based on a description in
* the ObjectClassDescription format. For information on this format,
* (see <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A>. This is the format that LDAP servers
* and clients use to exchange schema information. (For example, when
* you search an LDAP server for its schema, the server returns an entry
* with the attributes "objectclasses" and "attributetypes". The
* values of the "objectclasses" attribute are object class descriptions
* in this format.)
* <P>
*
* @param raw definition of the object in the ObjectClassDescription
* format
*/
public LDAPObjectClassSchema( String raw ) {
attrName = "objectclasses";
parseValue( raw );
setQualifier( TYPE, typeToString( getType() ) );
Object o = properties.get( "MAY" );
if ( o != null ) {
if ( o instanceof Vector ) {
may = (Vector)o;
} else {
may.addElement( o );
}
}
o = properties.get( "MUST" );
if ( o != null ) {
if ( o instanceof Vector ) {
must = (Vector)o;
} else {
must.addElement( o );
}
}
}
/**
* Gets the name of the object class from which this class inherits.
* @return the name of the object class from which this class
* inherits. If it inherits from more than one class, only one
* is returned.
* @see netscape.ldap.LDAPObjectClassSchema#getSuperiors
*/
public String getSuperior() {
String[] superiors = getSuperiors();
return (superiors != null) ? superiors[0] : null;
}
/**
* Gets the names of all object classes that this class inherits
* from. Typically only one, but RFC 2252 allows multiple
* inheritance.
* @return the names of the object classes from which this class
* inherits.
*/
public String[] getSuperiors() {
return getQualifier( SUPERIOR );
}
/**
* Gets an enumeration of the names of the required attributes for
* this object class.
* @return an enumeration of the names of the required attributes
* for this object class.
*/
public Enumeration getRequiredAttributes() {
return must.elements();
}
/**
* Gets an enumeration of names of optional attributes allowed
* in this object class.
* @return an enumeration of the names of optional attributes
* allowed in this object class.
*/
public Enumeration getOptionalAttributes() {
return may.elements();
}
/**
* Gets the type of the object class.
* @return STRUCTURAL, ABSTRACT, or AUXILIARY.
*/
public int getType() {
int type = STRUCTURAL;
if ( properties.containsKey( "AUXILIARY" ) ) {
type = AUXILIARY;
} else if ( properties.containsKey( "ABSTRACT" ) ) {
type = ABSTRACT;
}
return type;
}
/**
* Prepares a value in RFC 2252 format for submitting to a server.
*
* @param quotingBug <CODE>true</CODE> if SUP and SYNTAX values are to
* be quoted. That is to satisfy bugs in certain LDAP servers.
* @return a String ready for submission to an LDAP server.
*/
String getValue( boolean quotingBug ) {
String s = getValuePrefix();
String val = getValue( SUPERIOR, quotingBug );
if ( (val != null) && (val.length() > 0) ) {
s += val + ' ';
}
String[] vals = getQualifier( TYPE );
if ( (vals != null) && (vals.length > 0) ) {
s += vals[0] + ' ';
}
val = getOptionalValues( NOVALS );
if ( val.length() > 0 ) {
s += val + ' ';
}
if ( must.size() > 0 ) {
s += "MUST " + vectorToList( must );
s += ' ';
}
if ( may.size() > 0 ) {
s += "MAY " + vectorToList( may );
s += ' ';
}
val = getCustomValues();
if ( val.length() > 0 ) {
s += val + ' ';
}
s += ')';
return s;
}
/**
* Gets the definition of the object class in a user friendly format.
* This is the format that the object class definition uses when
* you print the object class or the schema.
* @return definition of the object class in a user friendly format.
*/
public String toString() {
String s = "Name: " + name + "; OID: " + oid +
"; Superior: ";
String[] superiors = getSuperiors();
if ( superiors != null ) {
for( int i = 0; i < superiors.length; i++ ) {
s += superiors[i];
if ( i < (superiors.length-1) ) {
s += ", ";
}
}
}
s += "; Description: " + description + "; Required: ";
int i = 0;
Enumeration e = getRequiredAttributes();
while( e.hasMoreElements() ) {
if ( i > 0 )
s += ", ";
i++;
s += (String)e.nextElement();
}
s += "; Optional: ";
e = getOptionalAttributes();
i = 0;
while( e.hasMoreElements() ) {
if ( i > 0 )
s += ", ";
i++;
s += (String)e.nextElement();
}
String[] vals = getQualifier( TYPE );
if ( (vals != null) && (vals.length > 0) ) {
s += "; " + vals[0];
}
if ( isObsolete() ) {
s += "; OBSOLETE";
}
s += getQualifierString( IGNOREVALS );
s += getAliasString();
return s;
}
/**
* Creates a list within parentheses, with $ as delimiter
*
* @param vals values for list
* @return a String with a list of values.
*/
protected String vectorToList( Vector vals ) {
String val = "( ";
for( int i = 0; i < vals.size(); i++ ) {
val += (String)vals.elementAt(i) + ' ';
if ( i < (vals.size() - 1) ) {
val += "$ ";
}
}
val += ')';
return val;
}
/**
* Returns the object class type as a String
*
* @param type one of STRUCTURAL, ABSTRACT, or AUXILIARY
* @return one of "STRUCTURAL", "ABSTRACT", "AUXILIARY", or <CODE>null</CODE>
*/
protected String typeToString( int type ) {
switch( type ) {
case STRUCTURAL: return "STRUCTURAL";
case ABSTRACT: return "ABSTRACT";
case AUXILIARY: return "AUXILIARY";
default: return null;
}
}
public static final int STRUCTURAL = 0;
public static final int ABSTRACT = 1;
public static final int AUXILIARY = 2;
private Vector must = new Vector();
private Vector may = new Vector();
private int type = STRUCTURAL;
// Qualifiers known to not have values; prepare a Hashtable
static final String[] NOVALS = { "ABSTRACT", "STRUCTURAL",
"AUXILIARY", "OBSOLETE" };
static {
for( int i = 0; i < NOVALS.length; i++ ) {
novalsTable.put( NOVALS[i], NOVALS[i] );
}
}
// Qualifiers which we output explicitly in toString()
static final String[] IGNOREVALS = { "ABSTRACT", "STRUCTURAL",
"AUXILIARY", "MUST", "MAY",
"SUP", "OBSOLETE"};
// Key for type in the properties Hashtable
static final String TYPE = "TYPE";
}

View File

@@ -1,74 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
/**
* Specifies how to retrieve authentication information automatically
* for referrals. If you have set up the search constraints (or the options
* in the <CODE>LDAPConnection</CODE> object) to use automatic referral,
* you must define a class that implements this interface.
* <P>
*
* If no class implements this interface, clients that follow automatic
* referrals are authenticated anonymously to subsequent LDAP servers.
* The following example is a simple class that implements this interface.
* Objects of the myLDAPRebind class check the host and port of the
* referred LDAP server. If the host and port are "alway.mcom.com:389",
* the directory manager's name and password are used to authenticate.
* For all other LDAP servers, anonymous authentication is used.
*
* <PRE>
* public class myLDAPRebind implements netscape.ldap.LDAPRebind
* {
* private String myDN;
* private String myPW;
* private LDAPRebindAuth myRebindInfo;
* public myLDAPRebind () {
* myDN = "c=Directory Manager,o=Universal Exports,c=UK";
* myPW = "alway4444";
* }
*
* public LDAPRebindAuth getRebindAuthentication( String host, int port ) {
* if ( host.equalsIgnoreCase( "alway.mcom.com" ) && ( port == 389 ) ) {
* myRebindInfo = new LDAPRebindAuth( myDN, myPW );
* } else {
* myRebindInfo = new LDAPRebindAuth( "", "" );
* }
* return myRebindInfo;
* }
* } </PRE>
*
*
* @version 1.0
*/
public interface LDAPRebind {
/**
* Returns an <CODE>LDAPRebindAuth</CODE> object, which the calling function
* can use to get the DN and password to use for authentication (if the client
* is set up to follow referrals automatically).
* @return LDAPRebindAuth object containing authentication information.
* @see netscape.ldap.LDAPRebindAuth
*/
public LDAPRebindAuth getRebindAuthentication(String host,
int port);
}

View File

@@ -1,91 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
/**
* Represents information used to authenticate the client in cases where
* the client follows referrals automatically. If you are defining a class
* that implements the <CODE>LDAPRebind</CODE> interface, your implementation
* of the <CODE>LDAPRebind.getRebindAuthentication</CODE> method needs to
* construct and return an object of this class.
* <P>
*
* For example, the following method sets up authentication information based
* on the LDAP server identified in the referral. Ideally, this method would be
* defined as part of a class implementing the <CODE>LDAPRebind</CODE> interface.
*
* <PRE>
* private String myDN = "cn=Directory Manager,o=Ace Industry,c=US";
* private String myPW = "alway4444";
* private LDAPRebindAuth myRebindInfo;
* ...
* public LDAPRebindAuth getRebindAuthentication( String host, int port ) {
* if ( host.equalsIgnoreCase( "alway.mcom.com" ) && ( port == 389 ) ) {
* myRebindInfo = new LDAPRebindAuth( myDN, myPW );
* } else {
* myRebindInfo = new LDAPRebindAuth( "", "" );
* }
* return myRebindInfo;
* } </PRE>
*
* @version 1.0
* @see netscape.ldap.LDAPRebind
*/
public class LDAPRebindAuth {
private String m_dn;
private String m_password;
/**
* Constructs information that is used by the client
* for authentication when following referrals automatically.
* @param dn distinguished name to use for authenticating to
* the LDAP server during an automatic referral (if the client
* is set up to follow referrals automatically)
* @param password password to use for authenticating to
* the LDAP server during an automatic referral (if the client
* is set up to follow referrals automatically)
*/
public LDAPRebindAuth(String dn, String password) {
m_dn = dn;
m_password = password;
}
/**
* Returns the distinguished name to be used for reauthentication,
* if the client is set up to follow referrals automatically.
* @return distinguished name to use when authenticating to
* other LDAP servers during referrals.
*/
public String getDN() {
return m_dn;
}
/**
* Returns the password to be used for reauthentication,
* if the client is set up to follow referrals automatically.
* @return password to use when authenticating to other
* LDAP servers during referrals.
*/
public String getPassword() {
return m_password;
}
}

View File

@@ -1,147 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import java.io.*;
/**
* Represents the situation in which the LDAP server refers the client to
* another LDAP server. This exception constructs a list of referral URLs from
* the LDAP error message returned by the server. You can get this list by
* using the <CODE>getURLs</CODE> method.
*
* @version 1.0
* @see netscape.ldap.LDAPException
*/
public class LDAPReferralException extends LDAPException {
private String m_referrals[] = null; /* modified for LDAPv3 */
/**
* Constructs a default exception with no specific error information.
*/
public LDAPReferralException() {
}
/**
* Constructs a default exception with a specified string as
* additional information. This form is used for lower-level errors.
* @param message the additional error information
*/
public LDAPReferralException( String message ) {
super( message );
}
/**
* Constructs a default exception with a specified string as
* additional information. This form is used for higher-level LDAP
* operational errors.
* @param message the additional error information
* @param resultCode result code
* @param serverErrorMessage error message
*/
public LDAPReferralException( String message, int resultCode,
String serverErrorMessage ) {
super(message, resultCode, serverErrorMessage);
}
/**
* Constructs an exception with a list of LDAP URLs to other LDAP servers.
* This list of referrals points the client to LDAP servers that may
* contain the requested entries.
* @param message the additional error information
* @param resultCode result code
* @param referrals array of LDAP URLs identifying other LDAP servers that
* may contain the requested entries
*/
public LDAPReferralException( String message, int resultCode,
String referrals[] ) {
super(message, resultCode, null);
m_referrals = referrals;
}
/**
* Gets the list of referrals (LDAP URLs to other servers) returned by the LDAP server.
* You can use this list to find the LDAP server that can fulfill your request.
*
* If you have set up your search constraints (or the <CODE>LDAPConnection</CODE> object)
* to follow referrals automatically, any operation that results in a referral will use
* this list to create new connections to the LDAP servers in this list.
*
* @return list of LDAP URLs to other LDAP servers.
*/
public LDAPUrl[] getURLs() {
if (getLDAPErrorMessage() == null) {
return constructsURL(m_referrals);
} else {
return constructsURL(extractReferrals(getLDAPErrorMessage()));
}
}
private LDAPUrl[] constructsURL(String referrals[]) {
if (referrals == null) {
return null;
}
LDAPUrl u[] = new LDAPUrl[referrals.length];
if (u == null) {
return null;
}
for (int i = 0; i < referrals.length; i++) {
try {
u[i] = new LDAPUrl(referrals[i]);
} catch (Exception e) {
return null;
}
}
return u;
}
/**
* Extract referral string from the error message. The
* error string is based on "Referrals Within the
* LDAPv2 Protocol".
* @param error string
*/
private String[] extractReferrals(String error) {
if (error == null)
return null;
StringTokenizer st = new StringTokenizer(error, "\n");
Vector v = new Vector();
boolean referrals = false;
while (st.hasMoreTokens()) {
String token = st.nextToken();
if (referrals) {
v.addElement(token);
} else {
if (token.startsWith("Referral:"))
referrals = true;
}
}
if (v.size() == 0)
return null;
String res[] = new String[v.size()];
for (int i = 0; i < v.size(); i++) {
res[i] = (String)v.elementAt(i);
}
return res;
}
}

View File

@@ -1,116 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
/**
* This class represents a locale-specific resource for a property file.
* It retrieves the property file for the given base name including the
* absolute path name and locale. The property file has to be located in the
* CLASSPATH and the property file's suffix is .props.
* <p>
* If the specified locale is en and us and the base name of the file is
* netscape/ldap/errors/ErrorCodes, then the class loader will search for
* the file in the following order:
* <pre>
*
* ErrorCodes_en_us.props
* ErrorCodes_en.props
* ErrorCodes.props
*
* </pre>
* @see java.util.Locale
*/
class LDAPResourceBundle {
private static final boolean m_debug = false;
private static final String m_suffix = ".props";
private static final String m_locale_separator = "_";
/**
* Return the property resource bundle according to the base name of the
* property file and the locale. The class loader will find the closest match
* with the given locale.
* @return the property resource bundle.
* @exception IOException Gets thrown when failed to open the resource
* bundle file.
*/
static PropertyResourceBundle getBundle(String baseName)
throws IOException {
return getBundle(baseName, Locale.getDefault());
}
/**
* Return the property resource bundle according to the base name of the
* property file and the locale. The class loader will find the closest match
* with the given locale.
* @param baseName the base name of the property file. The base name contains
* no locale context and no . suffix.
* @param l the locale
* @return the property resource bundle.
* @exception IOException Gets thrown when failed to create a property
* resource
*/
static PropertyResourceBundle getBundle(String baseName, Locale l)
throws IOException {
String localeStr = m_locale_separator+l.toString();
InputStream fin = null;
while (true) {
if ((fin=getStream(baseName, localeStr)) != null) {
PropertyResourceBundle p = new PropertyResourceBundle(fin);
return p;
} else {
int index = localeStr.lastIndexOf(m_locale_separator);
if (index == -1) {
printDebug("File "+baseName+localeStr+m_suffix+" not found");
return null;
} else
localeStr = localeStr.substring(0, index);
}
}
}
/**
* Constructs the whole absolute path name of a property file and retrieves
* an input stream on the file.
* @param baseName the base name of the property file. The base name contains
* no locale context and no . suffix.
* @param the locale string to insert into the file name
* @return the input stream of the property file.
*/
private static InputStream getStream(String baseName, String locale) {
String fStr = baseName+locale+m_suffix;
return (ClassLoader.getSystemResourceAsStream(fStr));
}
/**
* Prints debug messages if the debug mode is on.
* @param str the message that is printed
*/
private static void printDebug(String str) {
if (m_debug)
System.out.println(str);
}
}

View File

@@ -1,82 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import netscape.ldap.client.opers.JDAPProtocolOp;
import netscape.ldap.client.opers.JDAPResult;
/**
* Represents the response to a particular LDAP operation.
*
* @version 1.0
*/
public class LDAPResponse extends LDAPMessage {
/**
* Constructor
*
* @param msgid message identifier
* @param rsp operation response
* @param controls array of controls or null
*/
LDAPResponse(int msgid, JDAPProtocolOp rsp, LDAPControl controls[]) {
super(msgid, rsp, controls);
}
/**
* Returns any error message in the response.
*
* @return the error message of the last error (or <CODE>null</CODE>
* if no message was set).
*/
public String getErrorMessage() {
JDAPResult result = (JDAPResult) getProtocolOp();
return result.getErrorMessage();
}
/**
* Returns the partially matched DN field, if any, in a server response.
*
* @return the maximal subset of a DN to match,
* or <CODE>null</CODE>.
*/
public String getMatchedDN() {
JDAPResult result = (JDAPResult) getProtocolOp();
return result.getMatchedDN();
}
/**
* Returns all referrals, if any, in a server response.
*
* @return a list of referrals or <CODE>null</CODE>.
*/
public String[] getReferrals() {
JDAPResult result = (JDAPResult) getProtocolOp();
return result.getReferrals();
}
/**
* Returns the result code in a server response.
*
* @return the result code.
*/
public int getResultCode() {
JDAPResult result = (JDAPResult) getProtocolOp();
return result.getResultCode();
}
}

View File

@@ -1,51 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/*
* This object represents the value of the LDAPConnection.m_responseControlTable hashtable.
* It stores the response controls and its corresponding LDAPConnection and
* the message ID for its corresponding LDAPMessage.
*/
class LDAPResponseControl {
private LDAPConnection m_connection;
private int m_messageID;
private LDAPControl[] m_controls;
public LDAPResponseControl(LDAPConnection conn, int msgID,
LDAPControl[] controls) {
m_connection = conn;
m_messageID = msgID;
m_controls = new LDAPControl[controls.length];
for (int i=0; i<controls.length; i++)
m_controls[i] = controls[i];
}
public int getMsgID() {
return m_messageID;
}
public LDAPControl[] getControls() {
return m_controls;
}
public LDAPConnection getConnection() {
return m_connection;
}
}

View File

@@ -1,91 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Represents the message queue associated with a particular LDAP
* operation or operations.
*
*/
public class LDAPResponseListener extends LDAPMessageQueue{
/**
* Constructor
* @param asynchOp a boolean flag that is true if the object is used for
* asynchronous LDAP operations
* @see netscape.ldap.LDAPAsynchronousConnection
*/
LDAPResponseListener(boolean asynchOp) {
super(asynchOp);
}
/**
* Blocks until a response is available, or until all operations
* associated with the object have completed or been canceled, and
* returns the response.
*
* @return a response for an LDAP operation or null if there are no
* more outstanding requests.
* @exception LDAPException Network error exception
* @exception LDAPInterruptedException The invoking thread was interrupted
*/
public LDAPResponse getResponse() throws LDAPException {
return (LDAPResponse)nextMessage();
}
/**
* Merge two response listeners
* Move/append the content from another response listener to this one.
*
* To be used for synchronization of asynchronous LDAP operations where
* requests are sent by one thread but processed by another one
*
* A client may be implemented in such a way that one thread makes LDAP
* requests and calls l.getIDs(), while another thread is responsible for
* processing of responses (call l.getResponse()). Both threads are using
* the same listener objects. In such a case, a race
* condition may occur, where a LDAP response message is retrieved and
* the request terminated (request ID removed) before the first thread
* has a chance to execute l.getIDs().
* The proper way to handle this scenario is to create a separate listener
* for each new request, and after l.getIDs() has been invoked, merge the
* new request with the existing one.
* @param listener2 the listener with which to merge
*/
public void merge(LDAPSearchListener listener2) {
super.merge(listener2);
}
/**
* Reports true if a response has been received from the server.
*
* @return a flag indicating whether the response message queue is empty.
*/
public boolean isResponseReceived() {
return super.isMessageReceived();
}
/**
* Returns message IDs for all outstanding requests
* @return message ID array.
*/
public int[] getIDs() {
return super.getIDs();
}
}

View File

@@ -1,307 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.io.*;
import java.net.*;
/**
* Creates an SSL socket connection to an LDAP Server. This class
* implements the <CODE>LDAPSSLSocketFactoryExt</CODE> interface.
* <P>
*
* To construct an object of this class, you need to specify the
* name of a class that implements the <CODE>javax.net.ssl.SSLSocket</CODE>
* interface. If you do not specify a class name, the class
* <CODE>netscape.net.SSLSocket</CODE> is used by default. This
* class is included with Netscape Communicator 4.05 and up.
* <P>
*
* If you are using a Java VM that provides certificate database
* management (such as Netscape Communicator), you can authenticate
* your client to a secure LDAP server by using certificates.
* <P>
*
* @version 1.0
* @see LDAPSSLSocketFactoryExt
* @see LDAPConnection#LDAPConnection(netscape.ldap.LDAPSocketFactory)
*/
public class LDAPSSLSocketFactory implements LDAPSSLSocketFactoryExt {
/**
* Indicates if client authentication is on.
*/
private boolean m_clientAuth = false;
/**
* Name of class implementing SSLSocket.
*/
private String m_packageName = "netscape.net.SSLSocket";
/**
* The cipher suites
*/
private Object m_cipherSuites = null;
/**
* Constructs an <CODE>LDAPSSLSocketFactory</CODE> object using
* the default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>. (This class is provided
* with Netscape Communicator 4.05 and higher.)
*/
public LDAPSSLSocketFactory() {
}
/**
* Constructs an <CODE>LDAPSSLSocketFactory</CODE> object using
* the default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>. (This class is provided
* with Netscape Communicator 4.05 and up.)
* @param clientAuth <CODE>true</CODE> if certificate-based client
* authentication is desired. By default, client authentication is
* not used.
*/
public LDAPSSLSocketFactory(boolean clientAuth) {
m_clientAuth = clientAuth;
}
/**
* Constructs an <CODE>LDAPSSLSocketFactory</CODE> object using
* the specified class. The class must implement the interface
* <CODE>javax.net.ssl.SSLSocket</CODE>.
* @param className the name of a class implementing
* the <CODE>javax.net.ssl.SSLSocket</CODE> interface.
* Pass <code>null</code> for this parameter to use the
* default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>, which is included with
* Netscape Communicator 4.05 and higher.
*/
public LDAPSSLSocketFactory(String className) {
m_packageName = new String(className);
}
/**
* Constructs an <CODE>LDAPSSLSocketFactory</CODE> object using
* the specified class. The class must implement the interface
* <CODE>javax.net.ssl.SSLSocket</CODE>.
* @param className the name of a class implementing
* the <CODE>javax.net.ssl.SSLSocket</CODE> interface.
* Pass <code>null</code> for this parameter to use the
* default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>, which is included with
* Netscape Communicator 4.05 and higher.
* @param clientAuth <CODE>true</CODE> if certificate-based client
* authentication is desired. By default, client authentication is
* not used.
*/
public LDAPSSLSocketFactory(String className, boolean clientAuth) {
m_packageName = new String(className);
m_clientAuth = clientAuth;
}
/**
* The constructor with the specified package for security and the specified
* cipher suites.
* @param className the name of a class implementing the interface
* <CODE>javax.net.ssl.SSLSocket</CODE>.
* Pass <code>null</code> for this parameter to use the
* default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>, which is included with
* Netscape Communicator 4.05 and higher.
* @param cipherSuites the cipher suites to use for SSL connections
*/
public LDAPSSLSocketFactory(String className, Object cipherSuites) {
m_packageName = new String(className);
m_cipherSuites = cipherSuites;
}
/**
* The constructor with the specified package for security and the specified
* cipher suites.
* @param className the name of a class implementing the interface
* <CODE>javax.net.ssl.SSLSocket</CODE>.
* Pass <code>null</code> for this parameter to use the
* default SSL socket implementation,
* <CODE>netscape.net.SSLSocket</CODE>, which is included with
* Netscape Communicator 4.05 and higher.
* @param cipherSuites the cipher suites to use for SSL connections
* @param clientAuth <CODE>true</CODE> if certificate-based client
* authentication is desired. By default, client authentication is
* not used.
*/
public LDAPSSLSocketFactory(String className, Object cipherSuites,
boolean clientAuth) {
m_packageName = new String(className);
m_cipherSuites = cipherSuites;
m_clientAuth = clientAuth;
}
/**
* Enables certificate-based client authentication for an
* application. The application must be running in a Java VM
* that provides transparent certificate database management
* (for example, Netscape Communicator's Java VM).
* Call this method before you call <CODE>makeSocket</CODE>.
* @see netscape.ldap.LDAPSSLSocketFactory#isClientAuth
* @see netscape.ldap.LDAPSSLSocketFactory#makeSocket
* Note: enableClientAuth() is deprecated. This method is replaced
* by any one of the following constructors:
* <p>
* <CODE>LDAPSSLSocketFactory(boolean)</CODE>
* <CODE>LDAPSSLSocketFactory(java.lang.String, boolean)</CODE>
* <CODE>LDAPSSLSocketFactory(java.lang.String, java.lang.Object, boolean)</CODE>
*/
public void enableClientAuth() {
m_clientAuth = true;
}
/**
* <B>This method is currently not implemented.</B>
* Enables client authentication for an application that uses
* an external (file-based) certificate database.
* Call this method before you call <CODE>makeSocket</CODE>.
* @param certdb the pathname for the certificate database
* @param keydb the pathname for the private key database
* @param keypwd the password for the private key database
* @param certnickname the alias for the certificate
* @param keynickname the alias for the key
* @see netscape.ldap.LDAPSSLSocketFactory#isClientAuth
* @see netscape.ldap.LDAPSSLSocketFactory#makeSocket
* @exception LDAPException Since this method is not yet implemented,
* calling this method throws an exception.
* Note: <CODE>enableClientAuth(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)</CODE> is deprecated.
* This method is replaced by any one of the following constructors:
* <p>
* <CODE>LDAPSSLSocketFactory(boolean)</CODE>
* <CODE>LDAPSSLSocketFactory(java.lang.String, boolean)</CODE>
* <CODE>LDAPSSLSocketFactory(java.lang.String, java.lang.Object, boolean)</CODE>
*/
public void enableClientAuth(String certdb, String keydb, String keypwd,
String certnickname, String keynickname) throws LDAPException {
throw new LDAPException("Client auth not supported now");
}
/**
* Returns <code>true</code> if client authentication is enabled.
* @see netscape.ldap.LDAPSSLSocketFactory
*/
public boolean isClientAuth() {
return m_clientAuth;
}
/**
* Returns the name of the class that implements SSL sockets for this factory.
*
* @return the name of the class that implements SSL sockets for this factory.
*/
public String getSSLSocketImpl() {
return m_packageName;
}
/**
* Returns the suite of ciphers used for SSL connections made through
* sockets created by this factory.
*
* @return the suite of ciphers used.
*/
public Object getCipherSuites() {
return m_cipherSuites;
}
/**
* Returns a socket to the LDAP server with the specified
* host name and port number.
* @param host the host to connect to
* @param port the port number
* @return the socket to the host name and port number.
* @exception LDAPException A socket to the specified host and port
* could not be created.
* @see netscape.ldap.LDAPSSLSocketFactory
*/
public Socket makeSocket(String host, int port)
throws LDAPException {
Socket s = null;
if (m_clientAuth) {
try {
/* Check if running in Communicator; if so, enable client
auth */
String[] types = { "java.lang.String" };
java.lang.reflect.Method m =
DynamicInvoker.getMethod(
"netscape.security.PrivilegeManager",
"enablePrivilege",
types );
if (m != null) {
Object[] args = new Object[1];
args[0] = new String("ClientAuth");
m.invoke( null, args);
}
} catch (Exception e) {
String msg = "LDAPSSLSocketFactory.makeSocket: invoking " +
"enablePrivilege: " + e.toString();
throw new LDAPException(msg, LDAPException.PARAM_ERROR);
}
}
try {
String cipherClassName = null;
if (m_cipherSuites != null)
cipherClassName = m_cipherSuites.getClass().getName();
/* Instantiate the SSLSocketFactory implementation, and
find the right constructor */
Class c = Class.forName(m_packageName);
java.lang.reflect.Constructor[] m = c.getConstructors();
for (int i = 0; i < m.length; i++) {
/* Check if the signature is right: String, int */
Class[] params = m[i].getParameterTypes();
if ( (m_cipherSuites == null) && (params.length == 2) &&
(params[0].getName().equals("java.lang.String")) &&
(params[1].getName().equals("int")) ) {
Object[] args = new Object[2];
args[0] = host;
args[1] = new Integer(port);
s = (Socket)(m[i].newInstance(args));
return s;
} else if ( (m_cipherSuites != null) && (params.length == 3) &&
(params[0].getName().equals("java.lang.String")) &&
(params[1].getName().equals("int")) &&
(params[2].getName().equals(cipherClassName)) ) {
Object[] args = new Object[3];
args[0] = host;
args[1] = new Integer(port);
args[2] = m_cipherSuites;
s = (Socket)(m[i].newInstance(args));
return s;
}
}
throw new LDAPException("No appropriate constructor in " +
m_packageName,
LDAPException.PARAM_ERROR);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class " + m_packageName + " not found",
LDAPException.PARAM_ERROR);
} catch (Exception e) {
throw new LDAPException("Failed to create SSL socket",
LDAPException.CONNECT_ERROR);
}
}
}

View File

@@ -1,46 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Represents an SSL socket connection that you can use to connect to an
* LDAP server. This interface extends the base interface LDAPSocketFactory
* and provides SSL-specific methods.
* <P>
*
* @version 1.0
* @see LDAPSocketFactory
* @see LDAPConnection#LDAPConnection(netscape.ldap.LDAPSocketFactory)
*/
public interface LDAPSSLSocketFactoryExt extends LDAPSocketFactory {
/**
* Returns the suite of ciphers used for SSL connections. These connections
* are made through sockets created by the LDAPSSLSocketFactory.
*
* @return the suite of ciphers used.
*/
public Object getCipherSuites();
/**
* Returns <code>true</code> if client authentication is enabled.
* @see netscape.ldap.LDAPSSLSocketFactory#enableClientAuth
*/
public boolean isClientAuth();
}

View File

@@ -1,348 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.io.*;
import java.net.*;
import java.util.Hashtable;
/**
* Creates an SSL socket connection to an LDAP Server. This class is provided
* by the package in which the SSL socket does not extend Socket object.
* The class internally provides a wrapper to convert the SSL socket extending
* the Object class to the one extending the Socket class.
* This factory class implements the <CODE>LDAPSocketFactory</CODE> interface.
* <P>
*
* To use this class, pass the instance of this factory object to the
* <CODE>LDAPConnection</CODE> constructor.
*
* @version 1.0
* @see LDAPSocketFactory
* @see LDAPConnection#LDAPConnection(netscape.ldap.LDAPSocketFactory)
*/
public class LDAPSSLSocketWrapFactory implements LDAPSSLSocketFactoryExt {
/**
* The constructor with the specified package for security
* @param className the name of a class which has an implementation
* of the SSL Socket extending Object class
*/
public LDAPSSLSocketWrapFactory(String className) {
m_packageName = new String(className);
}
/**
* The constructor with the specified package for security and the
* specified cipher suites.
* @param className the name of a class which has an implementation
* of the SSL Socket extending Object class
* @param cipherSuites the cipher suites
*/
public LDAPSSLSocketWrapFactory(String className, Object cipherSuites) {
m_packageName = new String(className);
m_cipherSuites = cipherSuites;
}
/**
* Returns socket to the specified host name and port number.
* @param host the host to connect to
* @param port the port number
* @return the socket to the host name and port number as passed in.
* @exception LDAPException A socket to the specified host and port
* could not be created.
*/
public Socket makeSocket(String host, int port) throws LDAPException {
LDAPSSLSocket s = null;
try {
if (m_cipherSuites == null)
s = new LDAPSSLSocket(host, port, m_packageName);
else
s = new LDAPSSLSocket(host, port, m_packageName,
m_cipherSuites);
return s;
} catch (Exception e) {
System.err.println("Exception: "+e.toString());
throw new LDAPException("Failed to create SSL socket",
LDAPException.CONNECT_ERROR);
}
}
/**
* Returns <code>true</code> if client authentication is to be used.
* @return <code>true</code> if client authentication is enabled;
* <code>false</code>if client authentication is disabled.
*/
public boolean isClientAuth() {
return m_clientAuth;
}
/**
* <B>(Not implemented yet)</B> <BR>
* Enables client authentication for an application running in
* a java VM which provides transparent certificate database management.
* Calling this method has no effect after makeSocket() has been
* called.
* @exception LDAPException Since this method is not yet implemented,
* calling this method throws an exception.
*/
public void enableClientAuth() throws LDAPException {
throw new LDAPException("Client Authentication is not implemented yet.");
}
/**
* Returns the name of the class that implements SSL sockets for this factory.
*
* @return the name of the class that implements SSL sockets for this factory.
*/
public String getSSLSocketImpl() {
return m_packageName;
}
/**
* Returns the suite of ciphers used for SSL connections made through
* sockets created by this factory.
*
* @return the suite of ciphers used.
*/
public Object getCipherSuites() {
return m_cipherSuites;
}
/**
* Indicates if client authentication is on.
*/
private boolean m_clientAuth = false;
/**
* Name of class implementing SSLSocket.
*/
private String m_packageName = null;
/**
* The cipher suites
*/
private Object m_cipherSuites = null;
}
// LDAPSSLSocket class wraps the implementation of the SSL socket
class LDAPSSLSocket extends Socket {
public LDAPSSLSocket(String host, int port, String packageName)
throws LDAPException {
super();
m_packageName = packageName;
try {
// instantiate the SSLSocketFactory implementation, and
// find the right constructor
Class c = Class.forName(m_packageName);
java.lang.reflect.Constructor[] m = c.getConstructors();
for (int i = 0; i < m.length; i++) {
/* Check if the signature is right: String, int */
Class[] params = m[i].getParameterTypes();
if ((params.length == 2) &&
(params[0].getName().equals("java.lang.String")) &&
(params[1].getName().equals("int"))) {
Object[] args = new Object[2];
args[0] = host;
args[1] = new Integer(port);
m_socket = (Object)(m[i].newInstance(args));
return;
}
}
throw new LDAPException("No appropriate constructor in " +
m_packageName, LDAPException.PARAM_ERROR);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class " + m_packageName + " not found",
LDAPException.OTHER);
} catch (Exception e) {
throw new LDAPException("Failed to create SSL socket",
LDAPException.CONNECT_ERROR);
}
}
public LDAPSSLSocket(String host, int port, String packageName,
Object cipherSuites) throws LDAPException {
super();
m_packageName = packageName;
String cipherClassName = null;
if (cipherSuites != null)
cipherClassName = cipherSuites.getClass().getName();
try {
// instantiate the SSLSocketFactory implementation, and
// find the right constructor
Class c = Class.forName(m_packageName);
java.lang.reflect.Constructor[] m = c.getConstructors();
for (int i = 0; i < m.length; i++) {
/* Check if the signature is right: String, int */
Class[] params = m[i].getParameterTypes();
if (cipherSuites == null)
throw new LDAPException("Cipher Suites is required");
if ((params.length == 3) &&
(params[0].getName().equals("java.lang.String")) &&
(params[1].getName().equals("int")) &&
(params[2].getName().equals(cipherClassName))) {
Object[] args = new Object[3];
args[0] = host;
args[1] = new Integer(port);
args[2] = cipherSuites;
m_socket = (Object)(m[i].newInstance(args));
return;
}
}
throw new LDAPException("No appropriate constructor in " +
m_packageName, LDAPException.PARAM_ERROR);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class " + m_packageName + " not found",
LDAPException.OTHER);
} catch (Exception e) {
throw new LDAPException("Failed to create SSL socket",
LDAPException.CONNECT_ERROR);
}
}
public InputStream getInputStream() {
try {
Object obj = invokeMethod(m_socket, "getInputStream", null);
return (InputStream)obj;
} catch (LDAPException e) {
printDebug(e.toString());
}
return null;
}
public OutputStream getOutputStream() {
try {
Object obj = invokeMethod(m_socket, "getOutputStream", null);
return (OutputStream)obj;
} catch (LDAPException e) {
printDebug(e.toString());
}
return null;
}
public void close() throws IOException {
try {
invokeMethod(m_socket, "close", null);
} catch (LDAPException e) {
printDebug(e.toString());
}
}
public void close(boolean wait) throws IOException {
try {
Object[] args = new Object[1];
args[0] = new Boolean(wait);
invokeMethod(m_socket, "close", args);
} catch (LDAPException e) {
printDebug(e.toString());
}
}
public InetAddress getInetAddress() {
try {
Object obj = invokeMethod(m_socket, "getInetAddress", null);
return (InetAddress)obj;
} catch (LDAPException e) {
printDebug(e.toString());
}
return null;
}
public int getLocalPort() {
try {
Object obj = invokeMethod(m_socket, "getLocalPort", null);
return ((Integer)obj).intValue();
} catch (LDAPException e) {
printDebug(e.toString());
}
return -1;
}
public int getPort() {
try {
Object obj = invokeMethod(m_socket, "getPort", null);
return ((Integer)obj).intValue();
} catch (LDAPException e) {
printDebug(e.toString());
}
return -1;
}
private Object invokeMethod(Object obj, String name, Object[] args) throws
LDAPException {
try {
java.lang.reflect.Method m = getMethod(name);
if (m != null) {
return (m.invoke(obj, args));
}
} catch (Exception e) {
throw new LDAPException("Invoking "+name+": "+
e.toString(), LDAPException.PARAM_ERROR);
}
return null;
}
private java.lang.reflect.Method getMethod(String name) throws
LDAPException {
try {
java.lang.reflect.Method method = null;
if ((method = (java.lang.reflect.Method)(m_methodLookup.get(name)))
!= null)
return method;
Class c = Class.forName(m_packageName);
java.lang.reflect.Method[] m = c.getMethods();
for (int i = 0; i < m.length; i++ ) {
if (m[i].getName().equals(name)) {
m_methodLookup.put(name, m[i]);
return m[i];
}
}
throw new LDAPException("Method " + name + " not found in " +
m_packageName);
} catch (ClassNotFoundException e) {
throw new LDAPException("Class "+ m_packageName + " not found");
}
}
private void printDebug(String msg) {
if (m_debug) {
System.out.println(msg);
}
}
private final boolean m_debug = true;
private Object m_socket;
private Hashtable m_methodLookup = new Hashtable();
private String m_packageName = null;
}

View File

@@ -1,279 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import netscape.ldap.ber.stream.*;
import netscape.ldap.util.*;
import java.io.*;
import java.net.*;
//import javax.security.auth.callback.CallbackHandler;
/**
* Authenticates to a server using SASL
*/
public class LDAPSaslBind implements LDAPBind, Serializable {
/**
* Construct an object which can authenticate to an LDAP server
* using the specified name and a specified SASL mechanism.
*
* @param dn if non-null and non-empty, specifies that the connection and
* all operations through it should authenticate with dn as the
* distinguished name
* @param mechanisms array of mechanism names, e.g. { "GSSAPI", "SKEY" }
* @param props optional additional properties of the desired
* authentication mechanism, e.g. minimum security level
* @param cbh a class which may be called by the SASL framework to
* obtain additional required information
*/
public LDAPSaslBind( String dn,
String[] mechanisms,
String packageName,
Hashtable props,
/*CallbackHandler*/ Object cbh ) {
_dn = dn;
_mechanisms = mechanisms;
_packageName = packageName;
_props = props;
_cbh = cbh;
if ( (cbh != null) &&
!(cbh instanceof javax.security.auth.callback.CallbackHandler) ) {
throw new IllegalArgumentException(
"Callback argument must implement " +
"javax.security.auth.callback.CallbackHandler" );
}
}
/**
* Authenticates to the LDAP server (that the object is currently
* connected to) using the parameter that were provided to the
* constructor. If the requested SASL mechanism is not
* available, an exception is thrown. If the object has been
* disconnected from an LDAP server, this method attempts to reconnect
* to the server. If the object had already authenticated, the old
* authentication is discarded.
*
* @param ldc an active connection to a server, which will have
* the new authentication state on return from the method
* @exception LDAPException Failed to authenticate to the LDAP server.
*/
public void bind( LDAPConnection ldc ) throws LDAPException {
if ( _props == null ) {
_props = new Hashtable();
}
if ( (!_props.containsKey( CLIENTPKGS )) &&
(System.getProperty( CLIENTPKGS ) == null) ) {
_props.put( CLIENTPKGS, ldc.DEFAULT_SASL_PACKAGE );
}
_saslClient = getClient( ldc, _packageName );
if ( _saslClient != null ) {
bind( ldc, true );
return;
} else {
ldc.printDebug( "LDAPSaslBind.bind: getClient " +
"returned null" );
}
}
/**
* Get a SaslClient object from the Sasl framework
*
* @param ldc contains the host name
* @param packageName package containing a ClientFactory
* @return a SaslClient supporting one of the mechanisms
* of the member variable _mechanisms.
* @exception LDAPException on error producing a client
*/
private Object getClient( LDAPConnection ldc, String packageName )
throws LDAPException {
try {
Object[] args = new Object[6];
args[0] = _mechanisms;
args[1] = _dn;
args[2] = "ldap";
args[3] = ldc.getHost();
args[4] = _props;
args[5] = _cbh;
String[] argNames = new String[6];
argNames[0] = "[Ljava.lang.String;";
argNames[1] = "java.lang.String";
argNames[2] = "java.lang.String";
argNames[3] = "java.lang.String";
argNames[4] = "java.util.Hashtable";
argNames[5] = CALLBACK_HANDLER;
// Get a mechanism driver
return DynamicInvoker.invokeMethod(null,
packageName+".Sasl",
"createSaslClient",
args, argNames);
} catch (Exception e) {
ldc.printDebug( "LDAPSaslBind.getClient: " +
packageName+".Sasl.createSaslClient: " +
e );
throw new LDAPException(e.toString(), LDAPException.OTHER);
}
}
void bind(LDAPConnection ldc, boolean rebind)
throws LDAPException {
if ((ldc.isConnected() && rebind) ||
!ldc.isConnected()) {
try {
// Get the initial request to start authentication
String className = _saslClient.getClass().getName();
ldc.printDebug( "LDAPSaslBind.bind: calling " +
className+".createInitialResponse" );
byte[] outVals =
(byte[])DynamicInvoker.invokeMethod(
_saslClient,
className,
"createInitialResponse", null, null);
String mechanismName =
(String)DynamicInvoker.invokeMethod(
_saslClient,
className,
"getMechanismName", null, null);
ldc.printDebug( "LDAPSaslBind.bind: mechanism " +
"name is " +
mechanismName );
boolean isExternal = isExternalMechanism(mechanismName);
int resultCode = LDAPException.SASL_BIND_IN_PROGRESS;
JDAPBindResponse response = null;
while (!checkForSASLBindCompletion(resultCode)) {
ldc.printDebug( "LDAPSaslBind.bind: calling " +
"saslBind" );
response = saslBind(ldc, mechanismName, outVals);
resultCode = response.getResultCode();
ldc.printDebug( "LDAPSaslBind.bind: saslBind " +
"returned " + resultCode );
if (isExternal) {
continue;
}
String challenge = response.getCredentials();
byte[] b = challenge.getBytes();
Object[] args = {b};
String[] argNames = {"[B"}; // class name for byte array
outVals =
(byte[])DynamicInvoker.invokeMethod(
_saslClient,
mechanismName, "evaluateChallenge",
args, argNames);
}
// Make sure authentication REALLY is complete
Boolean bool =
(Boolean)DynamicInvoker.invokeMethod(
_saslClient,
mechanismName, "isComplete", null, null);
if (!bool.booleanValue()) {
// Authentication session hijacked!
throw new LDAPException("The server indicates that " +
"authentication is successful" +
", but the SASL driver " +
"indicates that authentication" +
" is not yet done.",
LDAPException.OTHER);
}
Object[] args = {ldc.getInputStream()};
String[] argNames = {"java.io.InputStream"};
InputStream is =
(InputStream)DynamicInvoker.invokeMethod(
_saslClient,
mechanismName, "getInputStream", args, argNames);
ldc.setInputStream(is);
args[0] = ldc.getOutputStream();
argNames[0] = "java.io.OutputStream";
OutputStream os =
(OutputStream)DynamicInvoker.invokeMethod(
_saslClient,
mechanismName, "getOutputStream", args, argNames);
ldc.setOutputStream(os);
ldc.markConnAsBound();
} catch (LDAPException e) {
throw e;
} catch (Exception e) {
throw new LDAPException(e.toString(), LDAPException.OTHER);
}
}
}
boolean isExternalMechanism(String name) {
return name.equalsIgnoreCase( LDAPConnection.EXTERNAL_MECHANISM );
}
private boolean checkForSASLBindCompletion(int resultCode)
throws LDAPException{
if (resultCode == LDAPException.SUCCESS) {
return true;
} else if (resultCode == LDAPException.SASL_BIND_IN_PROGRESS) {
return false;
} else {
throw new LDAPException("Authentication failed", resultCode);
}
}
private JDAPBindResponse saslBind(LDAPConnection ldc,
String mechanismName,
byte[] credentials)
throws LDAPException {
LDAPResponseListener myListener = ldc.getResponseListener ();
try {
ldc.sendRequest(new JDAPBindRequest(3,
_dn,
mechanismName,
credentials),
myListener, ldc.getConstraints());
LDAPMessage response = myListener.getResponse();
JDAPProtocolOp protocolOp = response.getProtocolOp();
if (protocolOp instanceof JDAPBindResponse) {
return (JDAPBindResponse)protocolOp;
} else {
throw new LDAPException("Unknown response from the " +
"server during SASL bind",
LDAPException.OTHER);
}
} finally {
ldc.releaseResponseListener(myListener);
}
}
private static final String CALLBACK_HANDLER =
"javax.security.auth.callback.CallbackHandler";
private static final String CLIENTPKGS =
"javax.security.sasl.client.pkgs";
private String _dn;
private String[] _mechanisms;
private String _packageName;
private Hashtable _props;
private /*CallbackHandler*/ Object _cbh;
private Object _saslClient = null;
}

View File

@@ -1,614 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* This object represents the schema of an LDAP v3 server.
* You can use the <CODE>fetchSchema</CODE> method to retrieve
* the schema used by a server. (The server must support LDAP v3
* and the capability to retrieve the schema over the LDAP protocol.)
* <P>
*
* After you retrieve the schema, you can use this object to get
* the object class, attribute type, and matching rule descriptions
* in the schema. You can also add your own object classes,
* attribute types, and matching rules to the schema.
* <P>
*
* To remove any object classes, attribute types, and matching rules
* that you added, call the <CODE>remove</CODE> methods of the
* <CODE>LDAPObjectClassSchema</CODE>, <CODE>LDAPAttributeSchema</CODE>,
* and <CODE>LDAPMatchingRuleSchema</CODE> classes. (This method is
* inherited from the <CODE>LDAPSchemaElement</CODE> class.)
* <P>
*
* The following class is an example of an LDAP client that can
* fetch the schema, get and print object class descriptions and
* attribute type descriptions, and add object classes and attribute
* types to the schema over the LDAP protocol.
* <P>
*
* <PRE>
* import netscape.ldap.*;
* public class TestSchema {
* public static void main( String[] args ) {
* String HOSTNAME = "ldap.netscape.com";
* int PORT_NUMBER = DEFAULT_PORT;
* String ROOT_DN = "cn=Directory Manager";
* String ROOT_PASSWORD = "23skidoo";
*
* LDAPConnection ld = new LDAPConnection();
*
* // Construct a new <CODE>LDAPSchema</CODE> object to get the schema.
* LDAPSchema dirSchema = new LDAPSchema();
*
* try {
* // Connect to the server.
* ld.connect( HOSTNAME, PORT_NUMBER );
*
* // Get the schema from the directory.
* dirSchema.fetchSchema( ld );
*
* // Get and print the inetOrgPerson object class description.
* LDAPObjectClassSchema objClass = dirSchema.getObjectClass(
* "inetOrgPerson" );
* if ( objClass != null ) {
* System.out.println("inetOrgPerson := "+objClass.toString());
* }
*
* // Get and print the definition of the userPassword attribute.
* LDAPAttributeSchema attrType = dirSchema.getAttribute(
* "userpassword" );
* if ( attrType != null ) {
* System.out.println("userPassword := " + attrType.toString());
* }
*
* // Create a new object class definition.
* String[] requiredAttrs = {"cn", "mail"};
* String[] optionalAttrs = {"sn", "phoneNumber"};
* LDAPObjectClassSchema newObjClass =
* new LDAPObjectClassSchema( "newInetOrgPerson",
* "1.2.3.4.5.6.7",
* "top",
* "Experiment",
* requiredAttrs,
* optionalAttrs );
*
* // Authenticate as root DN to get permissions to edit the schema.
* ld.authenticate( ROOT_DN, ROOT_PASSWORD );
*
* // Add the new object class to the schema.
* newObjClass.add( ld );
*
* // Create a new attribute type "hairColor".
* LDAPAttributeSchema newAttrType =
* new LDAPAttributeSchema( "hairColor",
* "1.2.3.4.5.4.3.2.1",
* "Blonde, red, etc",
* LDAPAttributeSchema.cis,
* false );
* // Add a custom qualifier
* newObjClass.setQualifier( "X-OWNER", "John Jacobson" );
*
* // Add the new attribute type to the schema.
* newAttrType.add( ld );
*
* // Fetch the schema again to verify that changes were made.
* dirSchema.fetchSchema( ld );
*
* // Get and print the new attribute type.
* newAttrType = dirSchema.getAttribute( "hairColor" );
* if ( newAttrType != null ) {
* System.out.println("hairColor := " + newAttrType.toString());
* }
*
* // Get and print the new object class.
* newObjClass = dirSchema.getObjectClass( "newInetOrgPerson" );
* if ( newObjClass != null ) {
* System.out.println("newInetOrgPerson := " +newObjClass.toString());
* }
*
* ld.disconnect();
*
* } catch ( Exception e ) {
* System.err.println( e.toString() );
* System.exit( 1 );
* }
*
* System.exit( 0 );
* }
* }
* </PRE>
*
* If you are using the Netscape Directory Server 3.0, you can also
* verify that the class and attribute type have been added through
* the directory server manager (go to Schema | Edit or View Attributes
* or Schema | Edit or View Object Classes).
* <P>
*
* To remove the classes and attribute types added by the example,
* see the examples under the <CODE>LDAPSchemaElement</CODE> class.
* <P>
*
* @see netscape.ldap.LDAPAttributeSchema
* @see netscape.ldap.LDAPObjectClassSchema
* @see netscape.ldap.LDAPMatchingRuleSchema
* @see netscape.ldap.LDAPSchemaElement
* @version 1.0
* @author Rob Weltman
**/
public class LDAPSchema {
/**
* Constructs a new <CODE>LDAPSchema</CODE> object.
* Once you construct the object, you can get
* the schema by calling <CODE>fetchSchema</CODE>.
* <P>
*
* You can also print out the schema by using the
* <CODE>main</CODE> method. For example, you can enter
* the following command:
* <PRE>
* java netscape.ldap.LDAPSchema myhost.mydomain.com 389
* </PRE>
*
* Note that you need to call <CODE>fetchSchema</CODE>
* to get the schema from the server. Constructing the
* object does not fetch the schema.
* <P>
*
* @see netscape.ldap.LDAPSchema#fetchSchema
* @see netscape.ldap.LDAPSchema#main
*/
public LDAPSchema() {
}
/**
* Adds an object class schema definition to the current schema.
* You can also add object class schema definitions by calling the
* <CODE>add</CODE> method of your newly constructed
* <CODE>LDAPObjectClassSchema</CODE> object.
* <P>
*
* To remove an object class schema definition that you have added,
* call the <CODE>getObjectClass</CODE> method to get the
* <CODE>LDAPObjectClassSchema</CODE> object representing your
* object class and call the <CODE>remove</CODE> method.
* <P>
*
* <B>NOTE: </B>For information on the <CODE>add</CODE> and
* <CODE>remove</CODE> methods of <CODE>LDAPObjectClassSchema</CODE>,
* see the documentation for <CODE>LDAPSchemaElement</CODE>.
* (These methods are inherited from <CODE>LDAPSchemaElement</CODE>.)
* <P>
*
* @param objectSchema <CODE>LDAPObjectClassSchema</CODE> object
* representing the object class schema definition to add
* @see netscape.ldap.LDAPObjectClassSchema
* @see netscape.ldap.LDAPSchemaElement#add
* @see netscape.ldap.LDAPSchemaElement#remove
*/
protected void addObjectClass( LDAPObjectClassSchema objectSchema ) {
objectClasses.put( objectSchema.getName().toLowerCase(),
objectSchema );
}
/**
* Add an attribute type schema definition to the current schema.
* You can also add attribute type schema definitions by calling the
* <CODE>add</CODE> method of your newly constructed
* <CODE>LDAPAttributeSchema</CODE> object.
* <P>
*
* To remove an attribute type schema definition that you have added,
* call the <CODE>getAttribute</CODE> method to get the
* <CODE>LDAPAttributeSchema</CODE> object representing your
* attribute type and call the <CODE>remove</CODE> method.
* <P>
*
* <B>NOTE: </B>For information on the <CODE>add</CODE> and
* <CODE>remove</CODE> methods of <CODE>LDAPAttributeSchema</CODE>,
* see the documentation for <CODE>LDAPSchemaElement</CODE>.
* (These methods are inherited from <CODE>LDAPSchemaElement</CODE>.)
* <P>
*
* @param attrSchema <CODE>LDAPAttributeSchema</CODE> object
* representing the attribute type schema definition to add
* @see netscape.ldap.LDAPAttributeSchema
* @see netscape.ldap.LDAPSchemaElement#add
* @see netscape.ldap.LDAPSchemaElement#remove
*/
protected void addAttribute( LDAPAttributeSchema attrSchema ) {
attributes.put( attrSchema.getName().toLowerCase(), attrSchema );
}
/**
* Add a matching rule schema definition to the current schema.
* You can also add matching rule schema definitions by calling the
* <CODE>add</CODE> method of your newly constructed
* <CODE>LDAPMatchingRuleSchema</CODE> object.
* <P>
*
* To remove an attribute type schema definition that you have added,
* call the <CODE>getMatchingRule</CODE> method to get the
* <CODE>LDAPMatchingRuleSchema</CODE> object representing your
* matching rule and call the <CODE>remove</CODE> method.
* <P>
*
* <B>NOTE: </B>For information on the <CODE>add</CODE> and
* <CODE>remove</CODE> methods of <CODE>LDAPMatchingRuleSchema</CODE>,
* see the documentation for <CODE>LDAPSchemaElement</CODE>.
* (These methods are inherited from <CODE>LDAPSchemaElement</CODE>.)
* <P>
*
* @param matchSchema <CODE>LDAPMatchingRuleSchema</CODE> object
* representing the matching rule schema definition to add
* @see netscape.ldap.LDAPMatchingRuleSchema
* @see netscape.ldap.LDAPSchemaElement#add
* @see netscape.ldap.LDAPSchemaElement#remove
*/
protected void addMatchingRule( LDAPMatchingRuleSchema matchSchema ) {
matchingRules.put( matchSchema.getName().toLowerCase(), matchSchema );
}
/**
* Gets an enumeration ofthe object class definitions in this schema.
* @return an enumeration of object class definitions.
*/
public Enumeration getObjectClasses() {
return objectClasses.elements();
}
/**
* Gets an enumeration ofthe attribute type definitions in this schema.
* @return an enumeration of attribute type definitions.
*/
public Enumeration getAttributes() {
return attributes.elements();
}
/**
* Gets an enumeration ofthe matching rule definitions in this schema.
* @return an enumeration of matching rule definitions.
*/
public Enumeration getMatchingRules() {
return matchingRules.elements();
}
/**
* Gets the definition of the object class with the specified name.
* @param name name of the object class to find
* @return an <CODE>LDAPObjectClassSchema</CODE> object representing
* the object class definition, or <CODE>null</CODE> if not found.
*/
public LDAPObjectClassSchema getObjectClass( String name ) {
return (LDAPObjectClassSchema)objectClasses.get( name.toLowerCase() );
}
/**
* Gets the definition of the attribute type with the specified name.
* @param name name of the attribute type to find
* @return an <CODE>LDAPAttributeSchema</CODE> object representing
* the attribute type definition, or <CODE>null</CODE> if not found.
*/
public LDAPAttributeSchema getAttribute( String name ) {
return (LDAPAttributeSchema)attributes.get( name.toLowerCase() );
}
/**
* Gets the definition of a matching rule with the specified name.
* @param name name of the matching rule to find
* @return an <CODE>LDAPMatchingRuleSchema</CODE> object representing
* the matching rule definition, or <CODE>null</CODE> if not found.
*/
public LDAPMatchingRuleSchema getMatchingRule( String name ) {
return (LDAPMatchingRuleSchema)matchingRules.get( name.toLowerCase() );
}
/**
* Get an enumeration of the names of the object classes in this schema.
* @return an enumeration of object class names (all lower-case).
*/
public Enumeration getObjectClassNames() {
return objectClasses.keys();
}
/**
* Get an enumeration of the names of the attribute types in this schema.
* @return an enumeration of attribute names (all lower-case).
*/
public Enumeration getAttributeNames() {
return attributes.keys();
}
/**
* Get an enumeration of the names of the matching rules in this schema.
* @return an enumeration of matching rule names (all lower-case).
*/
public Enumeration getMatchingRuleNames() {
return matchingRules.keys();
}
/**
* Retrieve the schema for a specific entry.
* @param ld an active connection to a Directory Server
* @param dn the entry for which to fetch schema
* @exception LDAPException on failure.
*/
public void fetchSchema( LDAPConnection ld, String dn )
throws LDAPException {
/* Find the subschemasubentry value for this DN */
String entryName = getSchemaDN( ld, dn );
Enumeration en;
/* Get the entire schema definition entry */
LDAPEntry entry = readSchema( ld, entryName );
/* Get all object class definitions */
LDAPAttribute attr = entry.getAttribute( "objectclasses" );
if ( attr != null ) {
en = attr.getStringValues();
while( en.hasMoreElements() ) {
LDAPObjectClassSchema sch =
new LDAPObjectClassSchema( (String)en.nextElement() );
addObjectClass( sch );
}
}
/* Get all attribute definitions */
attr = entry.getAttribute( "attributetypes" );
if ( attr != null ) {
en = attr.getStringValues();
while( en.hasMoreElements() ) {
LDAPAttributeSchema sch =
new LDAPAttributeSchema( (String)en.nextElement() );
addAttribute( sch );
}
}
/* Matching rules are tricky, because we have to match up a
rule with its use. First get all the uses. */
Hashtable h = new Hashtable();
attr = entry.getAttribute( "matchingruleuse" );
if ( attr != null ) {
en = attr.getStringValues();
while( en.hasMoreElements() ) {
String use = (String)en.nextElement();
LDAPMatchingRuleSchema sch =
new LDAPMatchingRuleSchema( null, use );
h.put( sch.getOID(), use );
}
}
/* Now get the rules, and assign uses to them */
attr = entry.getAttribute( "matchingrules" );
if ( attr != null ) {
en = attr.getStringValues();
while( en.hasMoreElements() ) {
String raw = (String)en.nextElement();
LDAPMatchingRuleSchema sch =
new LDAPMatchingRuleSchema( raw, null );
String use = (String)h.get( sch.getOID() );
if ( use != null )
sch = new LDAPMatchingRuleSchema( raw, use );
addMatchingRule( sch );
}
}
}
/**
* Retrieve the entire schema from the root of a Directory Server.
* @param ld an active connection to a Directory Server
* @exception LDAPException on failure.
*/
public void fetchSchema( LDAPConnection ld ) throws LDAPException {
fetchSchema( ld, "" );
}
/**
* Read one attribute definition from a server to determine if
* attribute syntaxes are quoted (a bug, present in Netscape
* and Novell servers).
* @param ld an active connection to a Directory Server
* @return <CODE>true</CODE> if standards-compliant.
* @exception LDAPException on failure.
*/
static boolean isAttributeSyntaxStandardsCompliant( LDAPConnection ld )
throws LDAPException {
/* Check if this has already been investigated */
String schemaBug = (String)ld.getProperty( ld.SCHEMA_BUG_PROPERTY );
if ( schemaBug != null ) {
return schemaBug.equalsIgnoreCase( "standard" );
}
boolean compliant = true;
/* Get the schema definitions for attributes */
String entryName = getSchemaDN( ld, "" );
String[] attrs = { "attributetypes" };
LDAPEntry entry = ld.read( entryName, attrs );
/* Get all attribute definitions, and check the first one */
LDAPAttribute attr = entry.getAttribute( "attributetypes" );
if ( attr != null ) {
Enumeration en = attr.getStringValues();
if( en.hasMoreElements() ) {
compliant = !isSyntaxQuoted( (String)en.nextElement() );
}
}
ld.setProperty( ld.SCHEMA_BUG_PROPERTY, compliant ? "standard" :
"NetscapeBug" );
return compliant;
}
/**
* Parses an attribute schema definition to see if the SYNTAX value
* is quoted. It shouldn't be (according to RFC 2252), but it is for
* some LDAP servers. It will either be:<BR>
* <CODE>SYNTAX 1.3.6.1.4.1.1466.115.121.1.15</CODE> or<BR>
* <CODE>SYNTAX '1.3.6.1.4.1.1466.115.121.1.15'</CODE>
* @param raw Definition of the attribute type in the
* AttributeTypeDescription format.
*/
static boolean isSyntaxQuoted( String raw ) {
int ind = raw.indexOf( " SYNTAX " );
if ( ind >= 0 ) {
ind += 8;
int l = raw.length() - ind;
// Extract characters
char[] ch = new char[l];
raw.getChars( ind, raw.length(), ch, 0 );
ind = 0;
// Skip to ' or start of syntax value
while( (ind < ch.length) && (ch[ind] == ' ') ) {
ind++;
}
if ( ind < ch.length ) {
return ( ch[ind] == '\'' );
}
}
return false;
}
/**
* Displays the schema (including the descriptions of its object
* classes, attribute types, and matching rules) in an easily
* readable format (not the same as the format expected by
* an LDAP server).
* @return a string containing the schema in printable format.
*/
public String toString() {
String s = "Object classes:\n";
Enumeration en = getObjectClasses();
while( en.hasMoreElements() ) {
s += en.nextElement().toString();
s += '\n';
}
s += "Attributes:\n";
en = getAttributes();
while( en.hasMoreElements() ) {
s += en.nextElement().toString();
s += '\n';
}
s += "Matching rules:\n";
en = getMatchingRules();
while( en.hasMoreElements() ) {
s += en.nextElement().toString();
s += '\n';
}
return s;
}
/**
* Retrieve the DN of the schema definitions for a specific entry.
* @param ld an active connection to a Directory Server
* @param dn the entry for which to fetch schema
* @exception LDAPException on failure.
*/
static String getSchemaDN( LDAPConnection ld, String dn )
throws LDAPException {
if ( (ld == null) || !ld.isConnected() ) {
throw new LDAPException( "No connection", LDAPException.OTHER );
}
String[] attrs = { "subschemasubentry" };
LDAPEntry entry = ld.read( dn, attrs );
if ( entry == null ) {
throw new LDAPException( "", LDAPException.NO_SUCH_OBJECT );
}
LDAPAttribute attr = entry.getAttribute( attrs[0] );
String entryName = "cn=schema";
if ( attr != null ) {
Enumeration en = attr.getStringValues();
if ( en.hasMoreElements() ) {
entryName = (String)en.nextElement();
}
}
return entryName;
}
private static LDAPEntry readSchema( LDAPConnection ld, String dn,
String[] attrs )
throws LDAPException {
LDAPSearchResults results = ld.search (dn, ld.SCOPE_BASE,
"objectclass=subschema",
attrs, false);
if ( !results.hasMoreElements() ) {
throw new LDAPException( "Cannot read schema",
LDAPException.INSUFFICIENT_ACCESS_RIGHTS );
}
return results.next ();
}
private static LDAPEntry readSchema( LDAPConnection ld, String dn )
throws LDAPException {
return readSchema( ld, dn, null );
}
/**
* Helper for "main" to print out schema elements.
* @param en enumeration of schema elements
*/
private static void printEnum( Enumeration en ) {
while( en.hasMoreElements() ) {
LDAPSchemaElement s = (LDAPSchemaElement)en.nextElement();
System.out.println( " " + s );
// System.out.println( " " + s.getValue() );
}
}
/**
* Fetch the schema from the LDAP server at the specified
* host and port, and print out the schema (including descriptions
* of its object classes, attribute types, and matching rules).
* The schema is printed in an easily readable format (not the
* same as the format expected by an LDAP server). For example,
* you can enter the following command to print the schema:
* <PRE>
* java netscape.ldap.LDAPSchema myhost.mydomain.com 389
* </PRE>
*
* @param args the host name and the port number of the LDAP server
* (for example, <CODE>netscape.ldap.LDAPSchema directory.netscape.com
* 389</CODE>)
*/
public static void main( String[] args ) {
if ( args.length < 2 ) {
System.err.println( "Usage: netscape.ldap.LDAPSchema HOST PORT" );
System.exit(1 );
}
int port = Integer.parseInt( args[1] );
LDAPConnection ld = new LDAPConnection();
try {
ld.connect( args[0], port );
LDAPSchema schema = new LDAPSchema();
schema.fetchSchema( ld );
ld.disconnect();
System.out.println( "Object classes: " );
printEnum( schema.getObjectClasses() );
System.out.println( "\nAttributes: " );
printEnum( schema.getAttributes() );
System.out.println( "\nMatching rules: " );
printEnum( schema.getMatchingRules() );
System.exit( 0 );
} catch ( LDAPException e ) {
System.err.println( e );
}
}
private Hashtable objectClasses = new Hashtable();
private Hashtable attributes = new Hashtable();
private Hashtable matchingRules = new Hashtable();
}

View File

@@ -1,767 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
*
* Abstract class representing an element (such as an object class
* definition, an attribute type definition, or a matching rule
* definition) in the schema. The specific types of elements are
* represented by the <CODE>LDAPObjectClassSchema</CODE>,
* <CODE>LDAPAttributeSchema</CODE>, and <CODE>LDAPMatchingRuleSchema</CODE>
* subclasses.
* <P>
*
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* TARGET="_blank">RFC 2252, Lightweight Directory Access Protocol (v3):
* Attribute Syntax Definitions</A> covers the types of information
* that need to be specified in the definition of an object class,
* attribute type, or matching rule. All of these schema elements
* can specify the following information:
* <P>
*
* <UL>
* <LI>a name identifying the element
* <LI>an OID identifying the element
* <LI>a description of the element
* <LI>a qualifier "OBSOLETE"
* </UL>
* <P>
*
* In addition, there are optional standard qualifiers for attribute
* types (see LDAPAttributeSchema), and implementation-specific
* qualifiers may be added. Non-standard qualifiers must have names
* starting with X-, e.g. "X-OWNER 'John Jacobson'". Optional and
* non-standard qualifiers can be accessed with <CODE>getQualifier</CODE> and
* <CODE>setQualifier</CODE>, and enumerated with
* <CODE>getQualifierNames</CODE>.
* <P>
*
* The <CODE>LDAPSchemaElement</CODE> class implements methods that
* you can use with different types of schema elements (object class
* definitions, attribute type definitions, and matching rule definitions).
* You can do the following:
* <UL>
* <LI>get the name of a schema element
* <LI>get the OID of a schema element
* <LI>get the description of a schema element
* <LI>add an element to the schema
* <LI>remove an element from the schema
* </UL>
* <P>
*
* @see netscape.ldap.LDAPObjectClassSchema
* @see netscape.ldap.LDAPAttributeSchema
* @see netscape.ldap.LDAPMatchingRuleSchema
* @version 1.0
**/
public abstract class LDAPSchemaElement {
/**
* Constructs a blank element.
*/
protected LDAPSchemaElement() {
}
/**
* Constructs a definition explicitly.
* @param name name of element
* @param oid dotted-string object identifier
* @param description description of element
*/
protected LDAPSchemaElement( String name, String oid,
String description ) {
if ( (oid == null) || (oid.trim().length() < 1) ) {
throw new IllegalArgumentException( "OID required" );
}
this.name = name;
this.oid = oid;
this.description = description;
}
/**
* Gets the name of the object class, attribute type, or matching rule.
* @return the name of the object class, attribute type, or
* matching rule.
*/
public String getName() {
return name;
}
/**
* Gets the object ID (OID) of the object class, attribute type,
* or matching rule in dotted-string format (for example, "1.2.3.4").
* @return the OID of the object class, attribute type,
* or matching rule.
*/
public String getOID() {
return oid;
}
/**
* Gets the description of the object class, attribute type,
* or matching rule.
* @return the description of the object class, attribute type,
* or matching rule.
*/
public String getDescription() {
return description;
}
/**
* Adds, removes or modifies the definition from a Directory.
* @param ld an open connection to a Directory Server. Typically the
* connection must have been authenticated to add a definition.
* @param op type of modification to make
* @param attr attribute in the schema entry to modify
* @exception LDAPException if the definition can't be added/removed
*/
protected void update( LDAPConnection ld, int op, LDAPAttribute attr,
String dn )
throws LDAPException {
LDAPAttribute[] attrs = new LDAPAttribute[1];
attrs[0] = attr;
update( ld, op, attrs, dn );
}
/**
* Adds, removes or modifies the definition from a Directory.
* @param ld an open connection to a Directory Server. Typically the
* connection must have been authenticated to add a definition.
* @param op type of modification to make
* @param attrs attributes in the schema entry to modify
* @exception LDAPException if the definition can't be added/removed.
*/
protected void update( LDAPConnection ld, int op, LDAPAttribute[] attrs,
String dn )
throws LDAPException {
LDAPModificationSet mods = new LDAPModificationSet();
for( int i = 0; i < attrs.length; i++ ) {
mods.add( op, attrs[i] );
}
String entryName = LDAPSchema.getSchemaDN( ld, dn );
ld.modify( entryName, mods );
}
/**
* Adds, removes or modifies the definition from a Directory.
* @param ld an open connection to a Directory Server. Typically the
* connection must have been authenticated to add a definition.
* @param op type of modification to make
* @param name name of attribute in the schema entry to modify
* @exception LDAPException if the definition can't be added/removed
*/
protected void update( LDAPConnection ld, int op, String name,
String dn )
throws LDAPException {
boolean quotingBug =
!LDAPSchema.isAttributeSyntaxStandardsCompliant( ld );
LDAPAttribute attr = new LDAPAttribute( name,
getValue( quotingBug ) );
update( ld, op, attr, dn );
}
/**
* Adds the current object class, attribute type, or matching rule
* definition to the schema. Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @param dn the entry at which to add the schema definition
* @exception LDAPException if the specified definition cannot be
* added to the schema
*/
public void add( LDAPConnection ld, String dn ) throws LDAPException {
update( ld, LDAPModification.ADD, attrName, dn );
}
/**
* Adds the current object class, attribute type, or matching rule
* definition to the schema at the root DSE. Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @exception LDAPException if the specified definition cannot be
* added to the schema.
*/
public void add( LDAPConnection ld ) throws LDAPException {
add( ld, "" );
}
/**
* Replaces a single value of the object class, attribute type,
* or matching rule definition in the schema. Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @param newValue the new value
* @param dn the entry at which to modify the schema definition
* @exception LDAPException if the specified definition cannot be
* modified.
*/
public void modify( LDAPConnection ld, LDAPSchemaElement newValue,
String dn )
throws LDAPException {
boolean quotingBug =
!LDAPSchema.isAttributeSyntaxStandardsCompliant( ld );
LDAPModificationSet mods = new LDAPModificationSet();
mods.add( LDAPModification.DELETE,
new LDAPAttribute( attrName, getValue( quotingBug ) ) );
mods.add( LDAPModification.ADD,
new LDAPAttribute( attrName,
newValue.getValue( quotingBug ) ) );
String entryName = LDAPSchema.getSchemaDN( ld, dn );
ld.modify( entryName, mods );
}
/**
* Replaces a single value of the object class, attribute type,
* or matching rule definition in the schema at the root DSE.
* Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @param newValue the new value
* @exception LDAPException if the specified definition cannot be
* modified.
*/
public void modify( LDAPConnection ld, LDAPSchemaElement newValue )
throws LDAPException {
modify( ld, newValue, "" );
}
/**
* Removes the current object class, attribute type, or matching rule
* definition from the schema. Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @param dn the entry at which to remove the schema definition
* @exception LDAPException if the specified definition cannot be
* removed from the schema.
*/
public void remove( LDAPConnection ld, String dn ) throws LDAPException {
update( ld, LDAPModification.DELETE, attrName, dn );
}
/**
* Removes the current object class, attribute type, or matching rule
* definition from the schema at the root DSE. Typically, most servers
* will require you to authenticate before allowing you to
* edit the schema.
* @param ld the <CODE>LDAPConnection</CODE> object representing
* a connection to an LDAP server
* @exception LDAPException if the specified definition cannot be
* removed from the schema
*/
public void remove( LDAPConnection ld ) throws LDAPException {
remove( ld, "" );
}
/**
* Reports if the element is marked as obsolete.
* @return <CODE>true<CODE> if the element is defined as obsolete.
*/
public boolean isObsolete() {
return properties.containsKey(OBSOLETE);
}
/**
* Parses a raw schema value into OID, name, description, and
* a Hashtable of other qualifiers and values.
*
* @param raw a raw schema definition
*/
protected void parseValue( String raw ) {
if ( properties == null ) {
properties = new Hashtable();
}
int l = raw.length();
// Processing is faster in char array than in String
char[] ch = new char[l];
raw.getChars( 0, l, ch, 0 );
// Trim leading and trailing space
l--;
while( ch[l] == ' ' ) {
l--;
}
int start = 0;
while( ch[start] == ' ' ) {
start++;
}
// Skip past "( " and ")" to start of OID
start += 2;
// Find end of OID
int ind = start + 1;
while( ch[ind] != ' ' ) {
ind++;
}
oid = new String( ch, start, ind - start );
ind = ind + 1;
String s;
String val;
while ( ind < l ) {
// Skip past blanks to start of next token
while( ch[ind] == ' ' ) {
ind++;
}
// Find end of token
int last = ind + 1;
while( (last < l) && (ch[last] != ' ') )
last++;
if ( last < l ) {
// Found a token
s = new String( ch, ind, last-ind );
ind = last;
if ( novalsTable.containsKey( s ) ) {
properties.put( s, "" );
continue;
}
} else {
// Reached end of string with no end of token
s = "";
ind = l;
break;
}
// Find the start of the value of the token
while( (ind < l) && (ch[ind] == ' ') ) {
ind++;
}
last = ind + 1;
if ( ind >= l ) {
break;
}
boolean quoted = false;
boolean list = false;
if ( ch[ind] == '\'' ) {
// The value is quoted
quoted = true;
ind++;
while( (last < l) && (ch[last] != '\'') ) {
last++;
}
} else if ( ch[ind] == '(' ) {
// The value is a list
list = true;
ind++;
while( (last < l) && (ch[last] != ')') ) {
last++;
}
} else {
// The value is not quoted
while( (last < l) && (ch[last] != ' ') ) {
last++;
}
}
if ( (ind < last) && (last <= l) ) {
if ( list ) {
Vector v = new Vector();
if ( ch[ind] == ' ' ) {
ind++;
}
val = new String( ch, ind, last-ind-1 );
// Is this a quoted list? If so, use ' as delimiter,
// otherwise use ' '. The space between quoted
// values will be returned as tokens containing only
// white space. White space is not valid in a list
// value, so we just remove all tokens containing
// only white space.
String delim = (val.indexOf( '\'' ) >= 0) ? "'" : " ";
StringTokenizer st = new StringTokenizer( val, delim );
while ( st.hasMoreTokens() ) {
String tok = st.nextToken().trim();
if ( (tok.length() > 0) && !tok.equals( "$" ) ) {
v.addElement( tok );
}
}
properties.put( s, v );
} else {
val = new String( ch, ind, last-ind );
if ( s.equals( "NAME" ) ) {
name = val;
} else if ( s.equals( "DESC" ) ) {
description = val;
} else {
properties.put( s, val );
}
if ( quoted ) {
last++;
}
}
}
ind = last + 1;
}
// Aliases end up as values of NAME
String[] vals = getQualifier( "NAME" );
if ( (vals != null) && (vals.length > 0) ) {
name = vals[0];
if ( vals.length > 1 ) {
aliases = new String[vals.length-1];
System.arraycopy( vals, 1, aliases, 0, aliases.length );
}
}
}
/**
* Formats a String in the format defined in X.501 (see
* <A HREF="http://ds.internic.net/rfc/rfc2252.txt"
* >RFC 2252, Lightweight Directory Access Protocol
* (v3): Attribute Syntax Definitions</A>
* for a description of this format).
* This is the format that LDAP servers and clients use to exchange
* schema information. For example, when
* you search an LDAP server for its schema, the server returns an entry
* with the attributes "objectclasses" and "attributetypes". The
* values of the "attributetypes" attribute are attribute type
* descriptions in this format.
* <P>
* @param quotingBug <CODE>true</CODE> if single quotes are to be
* supplied around the SYNTAX and SUP value
* @return a formatted String for defining a schema element.
*/
public String getValue() {
return getValue( false );
}
String getValue( boolean quotingBug ) {
return null;
}
/**
* Prepares the initial common part of a schema element value in
* RFC 2252 format for submitting to a server
*
* @return the OID, name, description, and possibly OBSOLETE
* fields of a schema element definition.
*/
String getValuePrefix() {
String s = "( " + oid + ' ';
if ( name != null ) {
s += "NAME ";
if ( aliases != null ) {
s += "( " + '\'' + name + "\' ";
for( int i = 0; i < aliases.length; i++ ) {
s += '\'' + aliases[i] + "\' ";
}
s += ") ";
} else {
s += '\'' + name + "\' ";
}
}
if ( description != null ) {
s += "DESC \'" + description + "\' ";
}
if ( isObsolete() ) {
s += OBSOLETE + ' ';
}
return s;
}
/**
* Gets qualifiers which may or may not be present
*
* @param names list of qualifiers to look up
* @return String in RFC 2252 format containing any values
* found, not terminated with ' '.
*/
protected String getOptionalValues( String[] names ) {
String s = "";
for( int i = 0; i < names.length; i++ ) {
String[] vals = getQualifier( names[i] );
if ( (vals != null) && (vals.length > 0) ) {
s += names[i] + ' ' + vals[0];
}
}
return s;
}
/**
* Gets any qualifiers marked as custom (starting with "X-")
*
* @return string in RFC 2252 format, without a terminating
* ' '.
*/
protected String getCustomValues() {
String s = "";
Enumeration en = properties.keys();
while( en.hasMoreElements() ) {
String key = (String)en.nextElement();
if ( !key.startsWith( "X-" ) ) {
continue;
}
s += getValue( key, true, false ) + ' ';
}
// Strip trailing ' '
if ( (s.length() > 0) && (s.charAt( s.length() - 1 ) == ' ') ) {
s = s.substring( 0, s.length() - 1 );
}
return s;
}
/**
* Gets a qualifier's value or values, if present, and formats
* the String according to RFC 2252
*
* @param key the qualifier to get
* @param doQuote <CODE>true</CODE> if values should be enveloped
* with single quotes
* @param doDollar <CODE>true</CODE> if a list of values should use
* " $ " as separator; that is true for object class attribute lists
* @return String in RFC 2252 format, without a terminating
* ' '.
*/
String getValue( String key, boolean doQuote, boolean doDollar ) {
String s = "";
Object o = properties.get( key );
if ( o == null ) {
return s;
}
if ( o instanceof String ) {
if ( ((String)o).length() > 0 ) {
s += key + ' ';
if ( doQuote ) {
s += '\'';
}
s += (String)o;
if ( doQuote ) {
s += '\'';
}
}
} else {
s += key + " ( ";
Vector v = (Vector)o;
for( int i = 0; i < v.size(); i++ ) {
if ( doQuote ) {
s += '\'';
}
s += (String)v.elementAt(i);
if ( doQuote ) {
s += '\'';
}
s += ' ';
if ( doDollar && (i < (v.size() - 1)) ) {
s += "$ ";
}
}
s += ')';
}
return s;
}
/**
* Gets a qualifier's value or values, if present, and format
* the String according to RFC 2252.
*
* @param key the qualifier to get
* @param doQuote <CODE>true</CODE> if values should be enveloped
* with single quotes
* @return String in RFC 2252 format, without a terminating
* ' '.
*/
String getValue( String key, boolean doQuote ) {
return getValue( key, doQuote, true );
}
/**
* Keeps track of qualifiers which are not predefined.
* @param name name of qualifier
* @param value value of qualifier. "" for no value, <CODE>null</CODE>
* to remove the qualifier
*/
public void setQualifier( String name, String value ) {
if ( properties == null ) {
properties = new Hashtable();
}
if ( value != null ) {
properties.put( name, value );
} else {
properties.remove( name );
}
}
/**
* Keeps track of qualifiers which are not predefined.
* @param name name of qualifier
* @param values array of values
*/
public void setQualifier( String name, String[] values ) {
if ( values == null ) {
return;
}
if ( properties == null ) {
properties = new Hashtable();
}
Vector v = new Vector();
for( int i = 0; i < values.length; i++ ) {
v.addElement( values[i] );
}
properties.put( name, v );
}
/**
* Gets the value of a qualifier which is not predefined.
* @param name name of qualifier
* @return value or values of qualifier; <CODE>null</CODE> if not
* present, a zero-length array if present but with no value.
*/
public String[] getQualifier( String name ) {
if ( properties == null ) {
return null;
}
Object o = properties.get( name );
if ( o == null ) {
return null;
}
if ( o instanceof Vector ) {
Vector v = (Vector)o;
String[] vals = new String[v.size()];
v.copyInto( vals );
return vals;
}
String s = (String)o;
if ( s.length() < 1 ) {
return new String[0];
} else {
return new String[] { s };
}
}
/**
* Gets an enumeration of all qualifiers which are not predefined.
* @return enumeration of qualifiers.
*/
public Enumeration getQualifierNames() {
return properties.keys();
}
/**
* Gets the aliases of the attribute, if any
* @return the aliases of the attribute, or <CODE>null</CODE> if
* it does not have any aliases
*/
public String[] getAliases() {
return aliases;
}
/**
* Creates a string for use in toString with any qualifiers of the element.
*
* @param ignore any qualifiers to NOT include
* @return a String with any known qualifiers.
*/
String getQualifierString( String[] ignore ) {
Hashtable toIgnore = null;
if ( ignore != null ) {
toIgnore = new Hashtable();
for( int i = 0; i < ignore.length; i++ ) {
toIgnore.put( ignore[i], ignore[i] );
}
}
String s = "";
Enumeration en = getQualifierNames();
while( en.hasMoreElements() ) {
String qualifier = (String)en.nextElement();
if ( (toIgnore != null) && toIgnore.containsKey( qualifier ) ) {
continue;
}
s += "; " + qualifier;
String[] vals = getQualifier( qualifier );
if ( vals == null ) {
s += ' ';
continue;
}
s += ": ";
for( int i = 0; i < vals.length; i++ ) {
s += vals[i] + ' ';
}
}
// Strip trailing ' '
if ( (s.length() > 0) && (s.charAt( s.length() - 1 ) == ' ') ) {
s = s.substring( 0, s.length() - 1 );
}
return s;
}
/**
* Gets any aliases for this element
*
* @return a string with any aliases, for use in toString()
*/
String getAliasString() {
if ( aliases != null ) {
String s = "; aliases:";
for( int i = 0; i < aliases.length; i++ ) {
s += ' ' + aliases[i];
}
return s;
}
return "";
}
// Constants for known syntax types
public static final int unknown = 0;
public static final int cis = 1;
public static final int binary = 2;
public static final int telephone = 3;
public static final int ces = 4;
public static final int dn = 5;
public static final int integer = 6;
protected static final String cisString =
"1.3.6.1.4.1.1466.115.121.1.15";
protected static final String binaryString =
"1.3.6.1.4.1.1466.115.121.1.5";
protected static final String telephoneString =
"1.3.6.1.4.1.1466.115.121.1.50";
protected static final String cesString =
"1.3.6.1.4.1.1466.115.121.1.26";
protected static final String intString =
"1.3.6.1.4.1.1466.115.121.1.27";
protected static final String dnString =
"1.3.6.1.4.1.1466.115.121.1.12";
// Predefined qualifiers which apply to any schema element type
public static final String OBSOLETE = "OBSOLETE";
public static final String SUPERIOR = "SUP";
// Predefined qualifiers
public static final String SYNTAX = "SYNTAX";
// Properties which are common to all schema elements
protected String oid = null;
protected String name = "";
protected String description = "";
protected String attrName = null;
protected String rawValue = null;
protected String[] aliases = null;
// Additional qualifiers
protected Hashtable properties = null;
// Qualifiers known to not have values
static protected Hashtable novalsTable = new Hashtable();
}

View File

@@ -1,358 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Represents a set of search preferences.
* You can set these preferences for a particular search
* by creating an <CODE>LDAPSearchConstraints</CODE> object,
* specifying your preferences, and passing the object to
* the <CODE>LDAPConnection.search</CODE> method.
* <P>
*
* @version 1.0
*/
public class LDAPSearchConstraints extends LDAPConstraints
implements Cloneable {
private int deref;
private int maxRes;
private int batch;
private int serverTimeLimit;
transient private int m_maxBacklog = 100;
/**
* Constructs an <CODE>LDAPSearchConstraints</CODE> object that specifies
* the default set of search constraints.
*/
public LDAPSearchConstraints() {
super();
deref = 0;
maxRes = 1000;
batch = 1;
serverTimeLimit = 0;
}
/**
* Constructs a new <CODE>LDAPSearchConstraints</CODE> object and allows you
* to specify the search constraints in that object.
* <P>
* @param msLimit maximum time in milliseconds to wait for results (0
* by default, which means that there is no maximum time limit)
* @param dereference either <CODE>LDAPv2.DEREF_NEVER</CODE>,
* <CODE>LDAPv2.DEREF_FINDING</CODE>,
* <CODE>LDAPv2.DEREF_SEARCHING</CODE>, or
* <CODE>LDAPv2.DEREF_ALWAYS</CODE> (see LDAPConnection.setOption).
* <CODE>LDAPv2.DEREF_NEVER</CODE> is the default.
* @param maxResults maximum number of search results to return
* (1000 by default)
* @param doReferrals specify <CODE>true</CODE> to follow referrals
* automatically, or <CODE>false</CODE> to throw an
* <CODE>LDAPReferralException</CODE> error if the server sends back
* a referral (<CODE>false</CODE> by default)
* @param batchSize specify the number of results to return at a time
* (1 by default)
* @param rebind_proc specifies the object of the class that
* implements the <CODE>LDAPRebind</CODE> interface (you need to
* define this class). The object will be used when the client
* follows referrals automatically. The object provides the client
* with a method for getting the distinguished name and password
* used to authenticate to another LDAP server during a referral.
* (This field is <CODE>null</CODE> by default.)
* @param hop_limit maximum number of referrals to follow in a
* sequence when attempting to resolve a request
* @see netscape.ldap.LDAPConnection#setOption(int, java.lang.Object)
* @see netscape.ldap.LDAPConnection#search(netscape.ldap.LDAPUrl, netscape.ldap.LDAPSearchConstraints)
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints)
*/
public LDAPSearchConstraints( int msLimit, int dereference,
int maxResults, boolean doReferrals, int batchSize,
LDAPRebind rebind_proc, int hop_limit) {
super(msLimit, doReferrals, rebind_proc, hop_limit);
deref = dereference;
maxRes = maxResults;
batch = batchSize;
}
/**
* Constructs a new <CODE>LDAPSearchConstraints</CODE> object and allows you
* to specify the search constraints in that object.
* <P>
* @param msLimit maximum time in milliseconds to wait for results (0
* by default, which means that there is no maximum time limit)
* @param timeLimit maximum time in seconds for the server to spend
* processing a search request (the default value is 0, indicating that there
* is no limit)
* @param dereference either <CODE>LDAPv2.DEREF_NEVER</CODE>,
* <CODE>LDAPv2.DEREF_FINDING</CODE>,
* <CODE>LDAPv2.DEREF_SEARCHING</CODE>, or
* <CODE>LDAPv2.DEREF_ALWAYS</CODE> (see LDAPConnection.setOption).
* <CODE>LDAPv2.DEREF_NEVER</CODE> is the default.
* @param maxResults maximum number of search results to return
* (1000 by default)
* @param doReferrals specify <CODE>true</CODE> to follow referrals
* automatically, or <CODE>false</CODE> to throw an
* <CODE>LDAPReferralException</CODE> error if the server sends back
* a referral (<CODE>false</CODE> by default)
* @param batchSize specify the number of results to return at a time
* (1 by default)
* @param rebind_proc specifies the object that
* implements the <CODE>LDAPRebind</CODE> interface.
* The object will be used when the client
* follows referrals automatically. The object provides the client
* with a method for getting the distinguished name and password
* used to authenticate to another LDAP server during a referral.
* (This field is <CODE>null</CODE> by default.)
* @param hop_limit maximum number of referrals to follow in a
* sequence when attempting to resolve a request
* @see netscape.ldap.LDAPConnection#setOption(int, java.lang.Object)
* @see netscape.ldap.LDAPConnection#search(netscape.ldap.LDAPUrl, netscape.ldap.LDAPSearchConstraints)
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints)
*/
public LDAPSearchConstraints( int msLimit, int timeLimit,
int dereference,
int maxResults, boolean doReferrals,
int batchSize,
LDAPRebind rebind_proc,
int hop_limit) {
super(msLimit, doReferrals, rebind_proc, hop_limit);
serverTimeLimit = timeLimit;
deref = dereference;
maxRes = maxResults;
batch = batchSize;
}
/**
* Constructs a new <CODE>LDAPSearchConstraints</CODE> object and allows you
* to specify the search constraints in that object.
* <P>
* @param msLimit maximum time in milliseconds to wait for results (0
* by default, which means that there is no maximum time limit)
* @param timeLimit maximum time in seconds for the server to spend
* processing a search request (the default value is 0, indicating that there
* is no limit)
* @param dereference either <CODE>LDAPv2.DEREF_NEVER</CODE>,
* <CODE>LDAPv2.DEREF_FINDING</CODE>,
* <CODE>LDAPv2.DEREF_SEARCHING</CODE>, or
* <CODE>LDAPv2.DEREF_ALWAYS</CODE> (see LDAPConnection.setOption).
* <CODE>LDAPv2.DEREF_NEVER</CODE> is the default.
* @param maxResults maximum number of search results to return
* (1000 by default)
* @param doReferrals specify <CODE>true</CODE> to follow referrals
* automatically, or <CODE>false</CODE> to throw an
* <CODE>LDAPReferralException</CODE> error if the server sends back
* a referral (<CODE>false</CODE> by default)
* @param batchSize specify the number of results to return at a time
* (1 by default)
* @param bind_proc specifies the object that
* implements the <CODE>LDAPBind</CODE> interface (you need to
* define this class). The object will be used to authenticate
* to the server on referrals.
* (This field is <CODE>null</CODE> by default.)
* @param hop_limit maximum number of referrals to follow in a
* sequence when attempting to resolve a request
* @see netscape.ldap.LDAPConnection#setOption(int, java.lang.Object)
* @see netscape.ldap.LDAPConnection#search(netscape.ldap.LDAPUrl, netscape.ldap.LDAPSearchConstraints)
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints)
*/
public LDAPSearchConstraints( int msLimit, int timeLimit,
int dereference,
int maxResults, boolean doReferrals,
int batchSize,
LDAPBind bind_proc,
int hop_limit) {
super(msLimit, doReferrals, bind_proc, hop_limit);
serverTimeLimit = timeLimit;
deref = dereference;
maxRes = maxResults;
batch = batchSize;
}
/**
* Returns the maximum number of seconds to wait for the server to
* spend on a search operation.If 0, there is no time limit.
* @return maximum number of seconds for the server to spend.
*/
public int getServerTimeLimit() {
return serverTimeLimit;
}
/**
* Specifies how aliases should be dereferenced.
* @return <CODE>LDAPv2.DEREF_NEVER</CODE> to
* never follow ("dereference") aliases,
* <CODE>LDAPv2.DEREF_FINDING</CODE> to dereference when finding
* the starting point for the search (but not when searching
* under that starting entry), <CODE>LDAPv2.DEREF_SEARCHING</CODE>
* to dereference when searching the entries beneath the
* starting point of the search (but not when finding the starting
* entry), or <CODE>LDAPv2.DEREF_ALWAYS</CODE> to always
* dereference aliases.
*/
public int getDereference() {
return deref;
}
/**
* Returns the maximum number of search results that are to be returned; 0 means
* there is no limit.
* @return maximum number of search results to be returned.
*/
public int getMaxResults() {
return maxRes;
}
/**
* Returns the suggested number of results to return at a time during
* search. This should be 0 if intermediate results are not needed, and
* 1 if results are to be processed as they come in.
* @return number of results to return at a time.
*/
public int getBatchSize() {
return batch;
}
/**
* Sets the maximum number of seconds for the server to spend
* returning search results. If 0, there is no time limit.
* @param limit maximum number of seconds for the server to spend.
* (0 by default, which means that there is no maximum time limit.)
*/
public void setServerTimeLimit( int limit ) {
serverTimeLimit = limit;
}
/**
* Sets a preference indicating how aliases should be dereferenced.
* @param dereference <CODE>LDAPv2.DEREF_NEVER</CODE> to
* never follow ("dereference") aliases,
* <CODE>LDAPv2.DEREF_FINDING</CODE> to dereference when finding
* the starting point for the search (but not when searching
* under that starting entry), <CODE>LDAPv2.DEREF_SEARCHING</CODE>
* to dereference when searching the entries beneath the
* starting point of the search (but not when finding the starting
* entry), or <CODE>LDAPv2.DEREF_ALWAYS</CODE> to always
* dereference aliases
*/
public void setDereference( int dereference ) {
deref = dereference;
}
/**
* Sets the maximum number of search results to return; 0 means
* there is no limit. (By default, this is set to 1000.)
* @param maxResults maximum number of search results to return
*/
public void setMaxResults( int maxResults ) {
maxRes = maxResults;
}
/**
* Sets the suggested number of results to return at a time during search.
* This should be 0 if intermediate results are not needed, and 1 if
* results are to be processed as they come in. (By default, this is 1.)
* @param batchSize number of results to return at a time
*/
public void setBatchSize( int batchSize ) {
batch = batchSize;
}
/**
* Set the maximum number of unread entries any search listener can
* have before we stop reading from the server.
* @param backlog the maximum number of unread entries per listener
* @deprecated Use <CODE>LDAPConnection.getOption()</CODE>
*/
public void setMaxBacklog( int backlog ) {
m_maxBacklog = backlog;
}
/**
* Get the maximum number of unread entries any search listener can
* have before we stop reading from the server.
* @return the maximum number of unread entries per listener.
* @deprecated Use <CODE>LDAPConnection.setOption()</CODE>
*/
public int getMaxBacklog() {
return m_maxBacklog;
}
/**
* Makes a copy of an existing set of search constraints.
* @return a copy of an existing set of search constraints.
*/
public Object clone() {
LDAPSearchConstraints o = new LDAPSearchConstraints();
o.serverTimeLimit = this.serverTimeLimit;
o.deref = this.deref;
o.maxRes = this.maxRes;
o.batch = this.batch;
o.setHopLimit(this.getHopLimit());
o.setReferrals(this.getReferrals());
o.setTimeLimit(this.getTimeLimit());
if (this.getBindProc() != null) {
o.setBindProc(this.getBindProc());
} else {
o.setRebindProc(this.getRebindProc());
}
LDAPControl[] tClientControls = this.getClientControls();
LDAPControl[] oClientControls;
if ( (tClientControls != null) &&
(tClientControls.length > 0) ) {
oClientControls = new LDAPControl[tClientControls.length];
for( int i = 0; i < tClientControls.length; i++ )
oClientControls[i] = (LDAPControl)tClientControls[i].clone();
o.setClientControls(oClientControls);
}
LDAPControl[] tServerControls = this.getServerControls();
LDAPControl[] oServerControls;
if ( (tServerControls != null) &&
(tServerControls.length > 0) ) {
oServerControls = new LDAPControl[tServerControls.length];
for( int i = 0; i < tServerControls.length; i++ )
oServerControls[i] = (LDAPControl)tServerControls[i].clone();
o.setServerControls(oServerControls);
}
return o;
}
/**
* Return a string representation of the object for debugging
*
* @return A string representation of the object
*/
public String toString() {
StringBuffer sb = new StringBuffer("LDAPSearchConstraints {");
sb.append( super.toString() + ' ' );
sb.append("size limit " + maxRes + ", ");
sb.append("server time limit " + serverTimeLimit + ", ");
sb.append("aliases " + deref + ", ");
sb.append("batch size " + batch);
sb.append('}');
return sb.toString();
}
}

View File

@@ -1,158 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
/**
* Manages search results, references and responses returned on one or
* more search requests
*
*/
public class LDAPSearchListener extends LDAPMessageQueue {
// this instance variable is only for cache purpose
private Long m_key = null;
private LDAPSearchConstraints m_constraints;
/**
* Constructs a LDAP search listener.
* @param asynchOp a boolean flag indicating whether the object is used
* for asynchronous LDAP operations
* @param cons LDAP search constraints
* @see netscape.ldap.LDAPAsynchronousConnection
*/
LDAPSearchListener ( boolean asynchOp,
LDAPSearchConstraints cons ) {
super ( asynchOp );
m_constraints = cons;
}
/**
* Block until all results are in. Used for synchronous search with
* batch size of zero.
* @return search response message.
* @exception Network exception error
*/
LDAPResponse completeSearchOperation () throws LDAPException{
return completeRequest();
}
/**
* Blocks until a search result, reference or response is available,
* or until all operations associated with the object have completed
* or been canceled.
*
* @return a search result, search reference, search response message,
* or null if there are no more outstanding requests.
* @exception LDAPException Network error exception
* @exception LDAPInterruptedException The invoking thread was interrupted
* @see LDAPResponse
* @see LDAPSearchResult
* @see LDAPSearchResultReference
*/
public LDAPMessage getResponse () throws LDAPException{
return nextMessage();
}
/**
* Override nextMessage to wake up the LDAPConnThread if
* backlog limit has been reached
*/
LDAPMessage nextMessage() throws LDAPException{
LDAPMessage result = super.nextMessage();
// Notify LDAPConnThread to wake up if backlog limit has been reached
if (result instanceof LDAPSearchResult || result instanceof LDAPSearchResultReference) {
LDAPConnection ld = getConnection(result.getID());
if (ld != null) {
ld.resultRetrieved();
}
}
return result;
}
/**
* Merge two search listeners
* Move/append the content from another search listener to this one.
*
* To be used for synchronization of asynchronous LDAP operations where
* requests are sent by one thread but processed by another one
*
* A client may be implemented in such a way that one thread makes LDAP
* requests and calls l.getIDs(), while another thread is responsible for
* processing of responses (call l.getResponse()). Both threads are using
* the same listener objects. In such a case, a race
* condition may occur, where a LDAP response message is retrieved and
* the request terminated (request ID removed) before the first thread
* has a chance to execute l.getIDs().
* The proper way to handle this scenario is to create a separate listener
* for each new request, and after l.getIDs() has been invoked, merge the
* new request with the existing one.
* @param listener2 the listener with which to merge
*/
public void merge(LDAPSearchListener listener2) {
super.merge(listener2);
}
/**
* Reports true if a response has been received from the server.
*
* @return a flag indicating whether the response message queue is empty.
*/
public boolean isResponseReceived() {
return super.isMessageReceived();
}
/**
* Returns message IDs for all outstanding requests
* @return message ID array.
*/
public int[] getIDs() {
return super.getIDs();
}
/**
* Return the search constraints used to create this object.
* @return the search constraints used to create this object.
*/
LDAPSearchConstraints getSearchConstraints() {
return m_constraints;
}
/**
* Set the key of the cache entry. The listener needs to know this value
* when the results get processed in the queue. After the results have been
* saved in the vector, then the key and a vector of results are put in
* the cache.
* @param key the key of the cache entry
*/
void setKey(Long key) {
m_key = key;
}
/**
* Get the key of the cache entry.
* @return the key of the cache entry.
*/
Long getKey() {
return m_key;

View File

@@ -1,68 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import netscape.ldap.client.opers.JDAPSearchResponse;
/**
* A LDAPSearchResult object encapsulates a single search result.
*
* @version 1.0
*/
public class LDAPSearchResult extends LDAPMessage {
/**
* LDAPEntry
*/
private LDAPEntry m_entry;
/**
* Constructor
*
* @param msgid message identifier
* @param rsp search operation response
* @param controls array of controls or null
* @see netscape.ldap.LDAPEntry
*/
LDAPSearchResult(int msgid, JDAPSearchResponse rsp, LDAPControl[]controls) {
super(msgid, rsp, controls);
}
/**
* Returns the entry of a server search response.
* @return an entry returned by the server in response to a search
* request.
* @see netscape.ldap.LDAPEntry
*/
public LDAPEntry getEntry() {
if (m_entry == null) {
JDAPSearchResponse rsp = (JDAPSearchResponse)getProtocolOp();
LDAPAttribute[] lattrs = rsp.getAttributes();
LDAPAttributeSet attrs;
if ( lattrs != null ) {
attrs = new LDAPAttributeSet( lattrs );
}
else {
attrs = new LDAPAttributeSet();
}
String dn = rsp.getObjectName();
m_entry = new LDAPEntry( dn, attrs );
}
return m_entry;
}
}

View File

@@ -1,54 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import netscape.ldap.client.opers.JDAPSearchResultReference;
/**
* An LDAPSearchResultReference object encapsulates a continuation
* reference from a search operation.
*
* @version 1.0
*/
public class LDAPSearchResultReference extends LDAPMessage {
/**
* A list of LDAP URLs that are referred to.
*/
private String m_URLs[];
/**
* Constructor
*
* @param msgid message identifier
* @param resRef search result reference response
* @param controls array of controls or null
* @see netscape.ldap.LDAPEntry
*/
LDAPSearchResultReference(int msgid, JDAPSearchResultReference resRef, LDAPControl[]controls) {
super(msgid, resRef, controls);
m_URLs = resRef.getUrls();
}
/**
* Returns a list of LDAP URLs that are referred to.
* @return a list of URLs.
*/
public String[] getUrls() {
return m_URLs;
}
}

View File

@@ -1,548 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import java.io.*;
/**
* The results of an LDAP search operation, represented as an enumeration.
* Note that you can only iterate through this enumeration once: if you
* need to use these results more than once, make sure to save the
* results in a separate location.
* <P>
*
* You can also use the results of a search in progress to abandon that search
* operation.
* <P>
*
* @version 1.0
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
* @see netscape.ldap.LDAPConnection#abandon(netscape.ldap.LDAPSearchResults)
*/
public class LDAPSearchResults implements Enumeration {
private Vector entries = null;
private LDAPSearchListener resultSource;
private boolean searchComplete = false;
private LDAPConnection connectionToClose;
private LDAPConnection currConn;
private boolean persistentSearch = false;
private LDAPSearchConstraints currCons;
private String currBase;
private int currScope;
private String currFilter;
private String[] currAttrs;
private boolean currAttrsOnly;
private Vector referralResults = new Vector();
private Vector exceptions;
private int msgID = -1;
// only used for the persistent search
private boolean firstResult = false;
/**
* Constructs an enumeration of search results.
* Note that this does not actually generate the results;
* you need to call <CODE>LDAPConnection.search</CODE> to
* perform the search and get the results.
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
*/
public LDAPSearchResults() {
entries = new Vector();
connectionToClose = null;
searchComplete = true;
}
LDAPSearchResults(LDAPConnection conn, LDAPSearchConstraints cons,
String base, int scope, String filter, String[] attrs, boolean attrsOnly) {
this();
currConn = conn;
currCons = cons;
currBase = base;
currScope = scope;
currFilter = filter;
currAttrs = attrs;
currAttrsOnly = attrsOnly;
}
/**
* Constructs an enumeration of search results. Used when returning results
* from a cache.
* @param v the vector containing LDAPEntries
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean)
*/
LDAPSearchResults(Vector v) {
this();
entries = (Vector)v.clone();
if ((entries != null) && (entries.size() >= 1)) {
// Each cache value is represented by a vector. The first element
// represents the size of all the LDAPEntries. This needs to be
// removed before we iterate through each LDAPEntry.
entries.removeElementAt(0);
}
}
LDAPSearchResults(Vector v, LDAPConnection conn, LDAPSearchConstraints cons,
String base, int scope, String filter, String[] attrs, boolean attrsOnly) {
this(v);
currConn = conn;
currCons = cons;
currBase = base;
currScope = scope;
currFilter = filter;
currAttrs = attrs;
currAttrsOnly = attrsOnly;
}
/**
* Add search entry of referral
* @param msg LDAPSearchResult or LDAPsearchResultReference
*/
void add( LDAPMessage msg ) {
if (msg instanceof LDAPSearchResult) {
entries.addElement( ((LDAPSearchResult)msg).getEntry());
}
else if (msg instanceof LDAPSearchResultReference) {
/* convert to LDAPReferralException */
String urls[] = ((LDAPSearchResultReference)msg).getUrls();
if (urls != null) {
if (exceptions == null) {
exceptions = new Vector();
}
exceptions.addElement(new LDAPReferralException(null, 0, urls));
}
}
}
/**
* Add exception
* @param e exception
*/
void add(LDAPException e) {
if (exceptions == null) {
exceptions = new Vector();
}
exceptions.addElement(e);
}
/**
* Prepares to return asynchronous results from a search
* @param l Listener which will provide results
*/
void associate( LDAPSearchListener l) {
resultSource = l;
searchComplete = false;
}
void associatePersistentSearch( LDAPSearchListener l) {
resultSource = l;
persistentSearch = true;
searchComplete = false;
firstResult = true;
}
void addReferralEntries(LDAPSearchResults res) {
referralResults.addElement(res);
}
/**
* For asynchronous search, this mechanism allows the programmer to
* close a connection whenever the search completes.
* @param toClose connection to close when the search terminates
*/
void closeOnCompletion (LDAPConnection toClose) {
if (searchComplete) {
try {
toClose.disconnect();
} catch (LDAPException e) {
}
} else {
connectionToClose = toClose;
}
}
/**
* Basic quicksort algorithm.
*/
void quicksort (LDAPEntry[] toSort, LDAPEntryComparator compare,
int low, int high) {
if (low >= high)
return;
LDAPEntry pivot = toSort[low];
int slow = low-1, shigh = high+1;
while (true) {
do
shigh--;
while (compare.isGreater (toSort[shigh], pivot));
do
slow++;
while (compare.isGreater (pivot, toSort[slow]));
if (slow >= shigh)
break;
LDAPEntry temp = toSort[slow];
toSort[slow] = toSort[shigh];
toSort[shigh] = temp;
}
quicksort (toSort, compare, low, shigh);
quicksort (toSort, compare, shigh+1, high);
}
/**
* Sets the message ID for this search request. msgID is used
* to retrieve response controls.
* @param msgID Message ID for this search request
*/
void setMsgID(int msgID) {
this.msgID = msgID;
}
/**
* Returns the controls returned with this search result. If any control
* is registered with <CODE>LDAPControl</CODE>, an attempt is made to
* instantiate the control. If the instantiation fails, the control is
* returned as a basic <CODE>LDAPControl</CODE>.
* @return an array of type <CODE>LDAPControl</CODE>.
* @see netscape.ldap.LDAPControl#register
*/
public LDAPControl[] getResponseControls() {
return currConn.getResponseControls(msgID);
}
/**
* Sorts the search results.
* <P>
*
* The comparator (<CODE>LDAPEntryComparator</CODE>) determines the
* sort order used. For example, if the comparator uses the <CODE>uid</CODE>
* attribute for comparison, the search results are sorted according to
* <CODE>uid</CODE>.
* <P>
*
* The following section of code sorts results in ascending order,
* first by surname and then by common name.
*
* <PRE>
* String[] sortAttrs = {"sn", "cn"};
* boolean[] ascending = {true, true};
*
* LDAPConnection ld = new LDAPConnection();
* ld.connect( ... );
* LDAPSearchResults res = ld.search( ... );
* res.sort( new LDAPCompareAttrNames(sortAttrs, ascending) );
* </PRE>
* NOTE: If the search results arrive asynchronously, the <CODE>sort</CODE>
* method blocks until all the results are returned.
* <P>
*
* If some of the elements of the Enumeration have already been fetched,
* the cursor is reset to the (new) first element.
* <P>
*
* @param compare comparator used to determine the sort order of the results
* @see LDAPEntryComparator
*/
public synchronized void sort(LDAPEntryComparator compare) {
while (!searchComplete) {
fetchResult();
}
// if automatic referral, then add to the entries, otherwise, dont do it
// since the elements in referralResults are LDAPReferralException.
if (currCons.getReferrals())
while (referralResults.size() > 0) {
Object obj = null;
if ((obj=nextReferralElement()) != null)
entries.addElement(obj);
}
int numEntries = entries.size();
if (numEntries <= 0)
return;
LDAPEntry[] toSort = new LDAPEntry[numEntries];
entries.copyInto (toSort);
if (toSort.length > 1)
quicksort (toSort, compare, 0, numEntries-1);
entries.removeAllElements();
for (int i = 0; i < numEntries; i++)
entries.addElement (toSort[i]);
}
/**
* Returns the next LDAP entry from the search results
* and throws an exception if the next result is a referral, or
* if a sizelimit or timelimit error occurred.
* <P>
*
* You can use this method in conjunction with the
* <CODE>hasMoreElements</CODE> method to iterate through
* each entry in the search results. For example:
* <PRE>
* LDAPSearchResults res = ld.search( MY_SEARCHBASE,
* LDAPConnection.SCOPE_BASE, MY_FILTER,
* null, false );
* while ( res.hasMoreElements() ) {
* try {
* LDAPEntry findEntry = res.next();
* } catch ( LDAPReferralException e ) {
* LDAPUrl refUrls[] = e.getURLs();
* for ( int i = 0; i < refUrls.length; i++ ) {
* // Your code for handling referrals
* }
* continue;
* } catch ( LDAPException e ) {
* // Your code for handling errors on limits exceeded
* continue;
* }
* ...
* }
* </PRE>
* @return the next LDAP entry in the search results.
* @exception LDAPReferralException A referral (thrown
* if the next result is a referral), or LDAPException
* if a limit on the number of entries or the time was
* exceeded.
* @see netscape.ldap.LDAPSearchResults#hasMoreElements()
*/
public LDAPEntry next() throws LDAPException {
Object o = nextElement();
if ((o instanceof LDAPReferralException) ||
(o instanceof LDAPException))
throw (LDAPException)o;
if (o instanceof LDAPEntry)
return (LDAPEntry)o;
return null;
}
/**
* Returns the next result from a search. You can use this method
* in conjunction with the <CODE>hasMoreElements</CODE> method to
* iterate through all elements in the search results.
* <P>
*
* Make sure to cast the
* returned element as the correct type. For example:
* <PRE>
* LDAPSearchResults res = ld.search( MY_SEARCHBASE,
* LDAPConnection.SCOPE_BASE, MY_FILTER,
* null, false );
* while ( res.hasMoreElements() ) {
* Object o = res.nextElement();
* if ( o instanceof LDAPEntry ) {
* LDAPEntry findEntry = (LDAPEntry)o;
* ...
* } else if ( o instanceof LDAPReferralException ) {
* LDAPReferralException e = (LDAPReferralException)o;
* LDAPUrl refUrls[] = e.getURLs();
* ...
* } else if ( o instanceof LDAPException ) {
* LDAPException e = (LDAPException)o;
* ...
* }
* }
* </PRE>
* @return the next element in the search results.
* @see netscape.ldap.LDAPSearchResults#hasMoreElements()
*/
public Object nextElement() {
if ( entries.size() > 0 ) {
Object obj = entries.elementAt(0);
entries.removeElementAt(0);
return obj;
}
if (referralResults.size() > 0) {
return nextReferralElement();
}
if ((exceptions != null) && (exceptions.size() > 0)) {
Object obj = exceptions.elementAt(0);
exceptions.removeElementAt(0);
return obj;
}
return null;
}
Object nextReferralElement() {
LDAPSearchResults res =
(LDAPSearchResults)referralResults.elementAt(0);
if ((!res.persistentSearch && res.hasMoreElements()) ||
(res.persistentSearch)) {
Object obj = res.nextElement();
if (obj != null) {
return obj;
}
if ((obj == null) || (!res.hasMoreElements()))
referralResults.removeElementAt(0);
}
else
referralResults.removeElementAt(0);
return null;
}
/**
* Returns <CODE>true</CODE> if there are more search results
* to be returned. You can use this method in conjunction with the
* <CODE>nextElement</CODE> or <CODE>next</CODE> methods to iterate
* through each entry in the results. For example:
* <PRE>
* LDAPSearchResults res = ld.search( MY_SEARCHBASE,
* LDAPConnection.SCOPE_BASE, MY_FILTER,
* null, false );
* while ( res.hasMoreElements() ) {
* LDAPEntry findEntry = (LDAPEntry)res.nextElement();
* ...
* }
* </PRE>
* @return <CODE>true</CODE> if there are more search results.
* @see netscape.ldap.LDAPSearchResults#nextElement()
* @see netscape.ldap.LDAPSearchResults#next()
*/
public boolean hasMoreElements() {
while ((entries.size() == 0) && (!searchComplete))
fetchResult();
if ((entries.size() == 0) &&
((exceptions == null) || (exceptions.size() == 0))) {
while (referralResults.size() > 0) {
LDAPSearchResults res =
(LDAPSearchResults)referralResults.elementAt(0);
if (res.hasMoreElements())
return true;
else
referralResults.removeElementAt(0);
}
}
return ((entries.size() > 0) ||
((exceptions != null) && (exceptions.size() > 0)));
}
/**
* Returns a count of the entries in the search results.
* @return count of entries found by the search.
*/
public int getCount() {
int totalReferralEntries = 0;
int count = 0;
for (int i=0; i<referralResults.size(); i++) {
LDAPSearchResults res =
(LDAPSearchResults)referralResults.elementAt(i);
totalReferralEntries = totalReferralEntries+res.getCount();
}
if (resultSource != null) {
count = resultSource.getMessageCount();
} else {
count = entries.size();
}
if (exceptions != null)
return (count + exceptions.size() + totalReferralEntries);
return (count + totalReferralEntries);
}
/**
* Returns message ID.
* @return Message ID.
*/
int getID() {
if ( resultSource == null )
return -1;
return resultSource.getID();
}
/**
* Terminates the iteration; called on LDAPConnection.abandon().
*/
void abandon() {
synchronized( this ) {
searchComplete = true;
}
}
/**
* Fetchs the next result, for asynchronous searches.
*/
private synchronized void fetchResult() {
/* Asynchronous case */
if ( resultSource != null ) {
synchronized( this ) {
if (searchComplete || firstResult)
{
firstResult = false;
return;
}
LDAPMessage msg = null;
try {
msg = resultSource.nextMessage();
} catch (LDAPException e) {
add(e);
currConn.releaseSearchListener(resultSource);
searchComplete = true;
return;
}
if (msg instanceof LDAPResponse) {
try {
// check response and see if we need to do referral
// v2: referral stored in the JDAPResult
currConn.checkSearchMsg(this, msg, currCons,
currBase, currScope, currFilter, currAttrs, currAttrsOnly);
} catch (LDAPException e) {
System.err.println("Exception: "+e);
} finally {
currConn.releaseSearchListener(resultSource);
}
searchComplete = true;
if (connectionToClose != null) {
try {
connectionToClose.disconnect ();
} catch (LDAPException e) {
}
connectionToClose = null;
}
return;
} else {
try {
currConn.checkSearchMsg(this, msg, currCons,
currBase, currScope, currFilter, currAttrs, currAttrsOnly);
} catch (LDAPException e) {
System.err.println("Exception: "+e);
}
}
}
}
}
}

View File

@@ -1,55 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
import java.net.*;
/**
* Represents a socket connection that you can use to connect to an
* LDAP server. You can write a class that implements this interface
* if you want to use a TLS socket to connect to a secure server.
* (The <CODE>LDAPSSLSocketFactory class</CODE>, which is included
* in the <CODE>netscape.ldap</CODE> package, implements this
* interface for SSL connections.)
* <P>
*
* When you construct a new <CODE>LDAPConnection</CODE>
* object, you can specify that the connection use this socket.
* To do this, pass the constructor an object of the class that
* implements this interface.
* <P>
*
* @version 1.0
* @see LDAPConnection#LDAPConnection(netscape.ldap.LDAPSocketFactory)
* @see LDAPSSLSocketFactory
*/
public interface LDAPSocketFactory {
/**
* Returns a socket to the specified host name and port number.
* <P>
*
* @param host name of the host to which you want to connect
* @param port port number to which you want to connect
* @exception LDAPException Failed to create the socket.
* @see LDAPSSLSocketFactory#makeSocket(java.lang.String,int)
*/
public Socket makeSocket(String host, int port)
throws LDAPException;
}

View File

@@ -1,164 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
/**
* Represents sorting instructions for a particular attribute.
*
* @version 1.0
*/
public class LDAPSortKey {
public final static int REVERSE = 0x81;
/**
* Constructs a new <CODE>LDAPSortKey</CODE> object that will
* sort based on the specified instructions.
* @param keyDescription a single attribute specification by which to sort
* If preceded by a hyphen ("-"), the attribute is sorted in reverse order.
* You can also specify the object ID (OID) of a matching rule after
* a colon (":"). For example:
* <P>
* <UL>
* <LI><CODE>"cn"</CODE> (sort by the <CODE>cn</CODE> attribute) <P>
* <LI><CODE>"-cn"</CODE> (sort by the <CODE>cn</CODE> attribute in
* reverse order) <P>
* <LI><CODE>"-cn:1.2.3.4"</CODE> (sort by the <CODE>cn</CODE>
* attribute in reverse order and use the matching rule identified
* by the OID 1.2.3.4) <P>
*</UL>
* @see netscape.ldap.controls.LDAPSortControl
* @see netscape.ldap.controls.LDAPVirtualListControl
*/
public LDAPSortKey( String keyDescription ) {
if ( (keyDescription != null) && (keyDescription.length() > 0) ) {
if ( keyDescription.charAt( 0 ) == '-' ) {
m_reverse = true;
m_key = keyDescription.substring( 1 );
} else {
m_reverse = false;
m_key = keyDescription;
}
int colonIndex = m_key.indexOf( ':' );
if ( colonIndex == 0 )
m_key = null;
else if ( colonIndex > 0 ) {
m_matchRule = m_key.substring( colonIndex+1 );
m_key = m_key.substring( 0, colonIndex );
}
}
}
/**
* Constructs a new <CODE>LDAPSortKey</CODE> object that will
* sort based on the specified attribute and sort order.
* @param key a single attribute by which to sort. For example:
* <P>
* <UL>
* <LI><CODE>"cn"</CODE> (sort by the <CODE>cn</CODE> attribute)
* <LI><CODE>"givenname"</CODE> (sort by the <CODE>givenname</CODE>
* attribute)
* </UL>
* @param reverse if <CODE>true</CODE>, the sorting is done in
* descending order
* @see netscape.ldap.controls.LDAPSortControl
* @see netscape.ldap.controls.LDAPVirtualListControl
*/
public LDAPSortKey( String key,
boolean reverse) {
m_key = key;
m_reverse = reverse;
m_matchRule = null;
}
/**
* Constructs a new <CODE>LDAPSortKey</CODE> object that will
* sort based on the specified attribute, sort order, and matching
* rule.
* @param key a single attribute by which to sort. For example:
* <P>
* <UL>
* <LI><CODE>"cn"</CODE> (sort by the <CODE>cn</CODE> attribute)
* <LI><CODE>"givenname"</CODE> (sort by the <CODE>givenname</CODE>
* attribute)
* </UL>
* @param reverse if <CODE>true</CODE>, the sorting is done in
* descending order
* @param matchRule object ID (OID) of the matching rule for
* the attribute (for example, <CODE>1.2.3.4</CODE>)
* @see netscape.ldap.controls.LDAPSortControl
* @see netscape.ldap.controls.LDAPVirtualListControl
*/
public LDAPSortKey( String key,
boolean reverse,
String matchRule) {
m_key = key;
m_reverse = reverse;
m_matchRule = matchRule;
}
/**
* Returns the attribute by which to sort.
* @return a single attribute by which to sort.
*/
public String getKey() {
return m_key;
}
/**
* Returns <CODE>true</CODE> if sorting is to be done in descending order.
* @return <CODE>true</CODE> if sorting is to be done in descending order.
*/
public boolean getReverse() {
return m_reverse;
}
/**
* Returns the object ID (OID) of the matching rule used for sorting.
* If no matching rule is specified, <CODE>null</CODE> is returned.
* @return the object ID (OID) of the matching rule, or <CODE>null</CODE>
* if the sorting instructions specify no matching rule.
*/
public String getMatchRule() {
return m_matchRule;
}
public String toString() {
StringBuffer sb = new StringBuffer("{SortKey:");
sb.append(" key=");
sb.append(m_key);
sb.append(" reverse=");
sb.append(m_reverse);
if (m_matchRule != null) {
sb.append(" matchRule=");
sb.append(m_matchRule);
}
sb.append("}");
return sb.toString();
}
private String m_key;
private boolean m_reverse;
private String m_matchRule;
}

View File

@@ -1,146 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
/**
* Helper class supporting schema elements that include syntax
* definitions - attributes and matching rules
*
* @version 1.0
* @see netscape.ldap.LDAPAttributeSchema
* @see netscape.ldap.LDAPMatchingRuleSchema
**/
class LDAPSyntaxSchemaElement extends LDAPSchemaElement {
/**
* Construct a blank element.
*/
LDAPSyntaxSchemaElement() {
super();
}
/**
* Gets the syntax of the schema element
* @return One of the following values:
* <UL>
* <LI><CODE>cis</CODE> (case-insensitive string)
* <LI><CODE>ces</CODE> (case-exact string)
* <LI><CODE>binary</CODE> (binary data)
* <LI><CODE>int</CODE> (integer)
* <LI><CODE>telephone</CODE> (telephone number -- identical to cis,
* but blanks and dashes are ignored during comparisons)
* <LI><CODE>dn</CODE> (distinguished name)
* <LI><CODE>unknown</CODE> (not a known syntax)
* </UL>
*/
int getSyntax() {
return syntax;
}
/**
* Gets the syntax of the attribute type in dotted-decimal format,
* for example "1.2.3.4.5"
* @return The attribute syntax in dotted-decimal format.
*/
String getSyntaxString() {
return syntaxString;
}
/**
* Convert from enumerated syntax types to an OID
* @param syntax One of the enumerated syntax types
* @return The OID corresponding to the internal type
*/
static String internalSyntaxToString( int syntax ) {
String s;
if ( syntax == cis ) {
s = cisString;
} else if ( syntax == binary ) {
s = binaryString;
} else if ( syntax == ces ) {
s = cesString;
} else if ( syntax == telephone ) {
s = telephoneString;
} else if ( syntax == dn ) {
s = dnString;
} else if ( syntax == integer ) {
s = intString;
} else {
s = null;
}
return s;
}
/**
* Convert from enumerated syntax type to a user-friendly
* string
* @param syntax One of the enumerated syntax types
* @return A user-friendly syntax description
*/
String syntaxToString() {
String s;
if ( syntax == cis ) {
s = "case-insensitive string";
} else if ( syntax == binary ) {
s = "binary";
} else if ( syntax == integer ) {
s = "integer";
} else if ( syntax == ces ) {
s = "case-exact string";
} else if ( syntax == telephone ) {
s = "telephone";
} else if ( syntax == dn ) {
s = "distinguished name";
} else {
s = syntaxString;
}
return s;
}
/**
* Convert from an OID to one of the enumerated syntax types
* @param syntax A dotted-decimal OID
* @return The internal enumerated type corresponding to the
* OID; <CODE>unknown</CODE> if it is not one of the known
* types
*/
int syntaxCheck( String syntax ) {
int i = unknown;
if ( syntax == null ) {
} else if ( syntax.equals( cisString ) ) {
i = cis;
} else if ( syntax.equals( binaryString ) ) {
i = binary;
} else if ( syntax.equals( cesString ) ) {
i = ces;
} else if ( syntax.equals( intString ) ) {
i = integer;
} else if ( syntax.equals( telephoneString ) ) {
i = telephone;
} else if ( syntax.equals( dnString ) ) {
i = dn;
}
return i;
}
int syntax = unknown;
String syntaxString = null;
}

View File

@@ -1,642 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
import java.net.MalformedURLException;
/**
* Represents an LDAP URL. The complete specification for LDAP URLs is in
* <A HREF="http://ds.internic.net/rfc/rfc1959.txt"
* TARGET="_blank">RFC 1959</A>. LDAP URLs have the following format:
*
* <PRE>
* "ldap://" [ <I>hostName</I> [":" <I>portNumber</I>] ] "//"
* <I>distinguishedName</I>
* ["?" <I>attributeList</I> ["?" <I>scope</I>
* "?" <I>filterString</I> ] ]
* </PRE>
* where
* <P>
* <UL>
* <LI>all text within double-quotes are literal<P>
* <LI><CODE><I>hostName</I></CODE> and <CODE><I>portNumber</I></CODE>
* identify the location of the LDAP server.<P>
* <LI><CODE><I>distinguishedName</I></CODE> is the name of an entry
* within the given directory (the entry represents the starting point
* of the search)<P>
* <LI><CODE><I>attributeList</I></CODE> contains a list of attributes
* to retrieve (if null, fetch all attributes). This is a comma-delimited
* list of attribute names.<P>
* <LI><CODE><I>scope</I></CODE> is one of the following:
* <UL>
* <LI><CODE>base</CODE> indicates that this is a search only for the
* specified entry
* <LI><CODE>one</CODE> indicates that this is a search for matching entries
* one level under the specified entry (and not including the entry itself)
* <LI><CODE>sub</CODE> indicates that this is a search for matching entries
* at all levels under the specified entry (including the entry itself)
* </UL>
* <P>
* If not specified, <CODE><I>scope</I></CODE> is <CODE>base</CODE> by
* default. <P>
* <LI><CODE><I>filterString</I></CODE> is a human-readable representation
* of the search criteria. This value is used only for one-level or subtree
* searches.<P>
* </UL>
* <P>
* Note that if <CODE><I>scope</I></CODE> and <CODE><I>filterString</I></CODE>
* are not specified, an LDAP URL identifies exactly one entry in the
* directory. <P>
* The same encoding rules for other URLs (e.g. HTTP) apply for LDAP
* URLs. Specifically, any "illegal" characters are escaped with
* <CODE>%<I>HH</I></CODE>, where <CODE><I>HH</I></CODE> represent the
* two hex digits which correspond to the ASCII value of the character.
* This encoding is only legal (or necessary) on the DN and filter portions
* of the URL.
*
* @version 1.0
*/
public class LDAPUrl {
public static String defaultFilter = "(objectClass=*)";
private String hostName;
private int portNumber;
private String DN;
private Vector attributes;
private int scope;
private String filter;
private String URL;
/**
* Constructs a URL object with the specified string as URL.
* @param url LDAP search expression in URL form
* @exception MalformedURLException failed to parse URL
*/
public LDAPUrl (String url) throws java.net.MalformedURLException {
StringTokenizer urlParser = new StringTokenizer (url, ":/?", true);
String currentToken;
String attributeList = null;
attributes = null;
scope = LDAPv2.SCOPE_BASE;
filter = defaultFilter;
URL = url;
try {
currentToken = urlParser.nextToken();
if (!currentToken.equalsIgnoreCase ("LDAP"))
throw new MalformedURLException ();
urlParser.nextToken(); // ":"
urlParser.nextToken(); // "/"
urlParser.nextToken(); // "/"
currentToken = urlParser.nextToken();
if (currentToken.equals ("/")) {
hostName = null;
portNumber = LDAPv2.DEFAULT_PORT;
} else {
hostName = currentToken;
if (urlParser.countTokens() == 0) {
portNumber = LDAPv2.DEFAULT_PORT;
return;
}
currentToken = urlParser.nextToken (); // either ":" or "/"
if (currentToken.equals (":")) {
portNumber = Integer.parseInt (urlParser.nextToken());
if (urlParser.countTokens() == 0) {
return;
}
urlParser.nextToken (); // "/"
} else
portNumber = LDAPv2.DEFAULT_PORT;
}
if (urlParser.countTokens() == 0)
return;
DN = decode (urlParser.nextToken ());
// it retrieves the ? token, meaning no DN is supplied
if (DN.equals("?"))
DN = "";
else if (DN.equals("/"))
throw new MalformedURLException ();
if (urlParser.hasMoreTokens ()) {
// we have a "?attributeList" portion
String str = null;
str = readNextConstruct(urlParser);
// if attribute
if ((str != null) && (isAttribute(str))) {
// it retrieves the ? token, meaning no attribute is supplied
if (str.equals("?")) {
attributeList = null;
str = urlParser.nextToken();
}
else {
attributeList = decode(str);
str = readNextConstruct(urlParser);
}
}
// if scope
if ((str != null) && ((scope = getScope(str)) != -1))
str = readNextConstruct(urlParser);
// no scope is supplied
else if ((str != null) && (str.equals("?"))) {
scope = LDAPv2.SCOPE_BASE;
str = urlParser.nextToken();
} else {
scope = LDAPv2.SCOPE_BASE;
}
// if filter
if ((str != null) && (isFilter(str))) {
filter = decode(str);
str = readNextConstruct(urlParser);
}
}
} catch (NumberFormatException nf) {
throw new MalformedURLException ();
}
if (attributeList != null) {
StringTokenizer attributeParser = new
StringTokenizer (attributeList, ", ");
attributes = new Vector ();
while (attributeParser.hasMoreTokens())
attributes.addElement (attributeParser.nextToken());
}
}
/**
* Constructs with the specified host, port, and DN. This form is used to
* create URL references to a particular object in the directory.
* @param host host name of the LDAP server, or null for "nearest X.500/LDAP"
* @param port port number of the LDAP server (use LDAPv2.DEFAULT_PORT for
* the default port)
* @param DN distinguished name of the object
*/
public LDAPUrl (String host, int port, String DN) {
if (host != null) {
if (port != LDAPv2.DEFAULT_PORT)
URL = "LDAP://" + host + ":" + String.valueOf (port) +
"/" + encode (DN);
else
URL = "LDAP://" + host + "/" + encode (DN);
} else
URL = "LDAP:///" + encode (DN);
this.hostName = host;
this.DN = DN;
portNumber = port;
filter = defaultFilter;
attributes = null;
scope = LDAPv2.SCOPE_BASE;
}
/**
* Constructs a full-blown LDAP URL to specify an LDAP search operation.
* @param host host name of the LDAP server, or null for "nearest X.500/LDAP"
* @param port port number of the LDAP server (use LDAPv2.DEFAULT_PORT for
* the default port)
* @param DN distinguished name of the object
* @param attributes list of attributes to return. Use null for "all
* attributes."
* @param scope depth of search (in DN namespace). Use one of the LDAPv2 scopes:
* SCOPE_BASE, SCOPE_ONE, or SCOPE_SUB.
* @param filter LDAP filter string (as defined in RFC 1558). Use null for
* no filter (this effectively makes the URL reference a single object).
*/
public LDAPUrl (String host, int port, String DN,
String attributes[], int scope, String filter) {
if (attributes != null) {
Vector list = new Vector();
for (int k = 0; k < attributes.length; k++) {
list.addElement(attributes[k]);
}
initialize(host, port, DN, list.elements(), scope, filter);
} else {
initialize(host, port, DN, null, scope, filter);
}
}
/**
* Constructs a full-blown LDAP URL to specify an LDAP search operation.
* @param host host name of the LDAP server, or null for "nearest X.500/LDAP"
* @param port port number of the LDAP server (use LDAPv2.DEFAULT_PORT for
* the default port)
* @param DN distinguished name of the object
* @param attributes list of the attributes to return. Use null for "all
* attributes."
* @param scope depth of the search (in DN namespace). Use one of the LDAPv2 scopes:
* SCOPE_BASE, SCOPE_ONE, or SCOPE_SUB.
* @param filter LDAP filter string (as defined in RFC 1558). Use null for
* no filter (this effectively makes the URL reference a single object).
*/
public LDAPUrl (String host, int port, String DN,
Enumeration attributes, int scope, String filter) {
initialize(host, port, DN, attributes, scope, filter);
}
/**
* Initializes URL object.
*/
private void initialize (String host, int port, String DN,
Enumeration attributes, int scope, String filter) {
this.hostName = host;
this.DN = DN;
portNumber = port;
this.filter = (filter != null) ? filter : defaultFilter;
this.scope = scope;
if (attributes != null) {
this.attributes = new Vector ();
while (attributes.hasMoreElements()) {
this.attributes.addElement (attributes.nextElement());
}
} else
this.attributes = null;
StringBuffer url = new StringBuffer ("LDAP://");
if (host != null) {
url.append (host);
if (port != LDAPv2.DEFAULT_PORT) {
url.append (':');
url.append (String.valueOf (port));
}
}
url.append ('/');
url.append (encode (DN));
if (attributes != null) {
url.append ('?');
Enumeration attrList = this.attributes.elements();
boolean firstElement = true;
while (attrList.hasMoreElements()) {
if (!firstElement)
url.append (',');
else
firstElement = false;
url.append ((String)attrList.nextElement());
}
}
if (filter != null) {
if (attributes == null)
url.append ('?');
url.append ('?');
switch (scope) {
default:
case LDAPv2.SCOPE_BASE:
url.append ("base"); break;
case LDAPv2.SCOPE_ONE:
url.append ("one"); break;
case LDAPv2.SCOPE_SUB:
url.append ("sub"); break;
}
url.append ('?');
url.append (filter);
}
URL = url.toString();
}
/**
* Return the host name of the LDAP server
* @return LDAP host.
*/
public String getHost () {
return hostName;
}
/**
* Return the port number for the LDAP server
* @return port number.
*/
public int getPort () {
return portNumber;
}
/**
* Return the distinguished name encapsulated in the URL
* @return target distinguished name.
*/
public String getDN () {
return DN;
}
/**
* Return the collection of attributes specified in the URL, or null
* for "every attribute"
* @return enumeration of attributes.
*/
public Enumeration getAttributes () {
if (attributes == null)
return null;
else
return attributes.elements();
}
/**
* Return the collection of attributes specified in the URL, or null
* for "every attribute"
* @return string array of attributes.
*/
public String[] getAttributeArray () {
if (attributes == null)
return null;
else {
String[] attrNames = new String[attributes.size()];
Enumeration attrs = getAttributes();
int i = 0;
while (attrs.hasMoreElements())
attrNames[i++] = (String)attrs.nextElement();
return attrNames;
}
}
/**
* Returns the scope of the search, according to the values
* SCOPE_BASE, SCOPE_ONE, SCOPE_SUB as defined in LDAPv2. This refers
* to how deep within the directory namespace the search will look
* @return search scope.
*/
public int getScope () {
return scope;
}
/**
* Returns the scope of the search. If the scope returned is -1, then
* the given string is not for the scope.
* @param str the string against which to compare the scope type
* @returns the scope of the search, -1 is returned if the given string is
* not SUB, ONE or BASE (the acceptable LDAPv2 values for scope).
*/
private int getScope(String str) {
int s = -1;
if (str.equalsIgnoreCase("base"))
s = LDAPv2.SCOPE_BASE;
else if (str.equalsIgnoreCase("one"))
s = LDAPv2.SCOPE_ONE;
else if (str.equalsIgnoreCase("sub"))
s = LDAPv2.SCOPE_SUB;
return s;
}
/**
* Returns the search filter (RFC 1558), or the default if none was
* specified.
* @return the search filter.
*/
public String getFilter () {
return filter;
}
/**
* Returns a valid string representation of this LDAP URL.
* @return the LDAP search expression in URL form.
*/
public String getUrl () {
return URL;
}
/**
* Checks if the given string is a filter expression.
* @param the string which is checked
* @return <code>true</code> if the given string is a filter expression; otherwise,
* <code>false</code>.
*/
private boolean isFilter(String str) {
if (str.startsWith("("))
return true;
else
return false;
}
/**
* Checks if the given string is an attribute expression.
* @param the string which is checked
* @return <code>true</code> if the given string is an attribute expression; otherwise,
* <code>false</code>.
*/
private boolean isAttribute(String str) {
if ((!str.startsWith("(")) && (!str.equalsIgnoreCase("base")) &&
(!str.equalsIgnoreCase("one")) && (!str.equalsIgnoreCase("sub")))
return true;
else
return false;
}
/**
* Reads next construct from the given string parser.
* @param parser the string parser
* @return the next construct which can be an attribute, scope or filter.
* @exception java.net.MalformedURLException Get thrown when the url format
* is incorrect.
*/
private String readNextConstruct(StringTokenizer parser) throws
MalformedURLException {
try {
if (parser.hasMoreTokens()) {
parser.nextToken(); // "?"
return parser.nextToken();
}
} catch (NoSuchElementException e) {
throw new MalformedURLException();
}
return null;
}
/**
* Parses hex character into integer.
*/
private static int hexValue (char hexChar) throws MalformedURLException {
if (hexChar >= '0' && hexChar <= '9')
return hexChar - '0';
if (hexChar >= 'A' && hexChar <= 'F')
return hexChar - 'A' + 10;
if (hexChar >= 'a' && hexChar <= 'f')
return hexChar - 'a' + 10;
throw new MalformedURLException ();
}
private static char hexChar (int hexValue) {
if (hexValue < 0 || hexValue > 0xF)
return 'x';
if (hexValue < 10)
return (char)(hexValue + '0');
return (char)((hexValue - 10) + 'a');
}
/**
* Decodes a URL-encoded string. Any occurences of %HH are decoded to the
* hex value represented. However, this routine does NOT decode "+"
* into " ". See RFC 1738 for full details about URL encoding/decoding.
* @param URLEncoded a segment of a URL which was encoded using the URL
* encoding rules
* @exception MalformedURLException failed to parse URL
*/
public static String decode (String URLEncoded) throws
MalformedURLException {
StringBuffer decoded = new StringBuffer (URLEncoded);
int srcPos = 0, dstPos = 0;
try {
while (srcPos < decoded.length()) {
if (decoded.charAt (srcPos) != '%') {
if (srcPos != dstPos)
decoded.setCharAt (dstPos, decoded.charAt (srcPos));
srcPos++;
dstPos++;
continue;
}
decoded.setCharAt (dstPos, (char)
((hexValue(decoded.charAt (srcPos+1))<<4) |
(hexValue(decoded.charAt (srcPos+2)))));
dstPos++;
srcPos += 3;
}
} catch (StringIndexOutOfBoundsException sioob) {
// Indicates that a "%" character occured without the following HH
throw new MalformedURLException ();
}
/* 070497 Url problems submitted by Netscape */
/* decoded.setLength (dstPos+1); */
decoded.setLength (dstPos);
return decoded.toString ();
}
/**
* Encodes an arbitrary string. Any illegal characters are encoded as
* %HH. However, this routine does NOT decode "+" into " " (this is a HTTP
* thing, not a general URL thing). Note that, because Sun's URLEncoder
* does do this encoding, we can't use it.
* See RFC 1738 for full details about URL encoding/decoding.
* @param toEncode an arbitrary string to encode for embedding within a URL
*/
public static String encode (String toEncode) {
StringBuffer encoded = new StringBuffer (toEncode.length()+10);
for (int currPos = 0; currPos < toEncode.length(); currPos++) {
char currChar = toEncode.charAt (currPos);
if ((currChar >= 'a' && currChar <= 'z') ||
(currChar >= 'A' && currChar <= 'Z') ||
(currChar >= '0' && currChar <= '9') ||
("$-_.+!*'(),".indexOf (currChar) > 0)) {
// this is the criteria for "doesn't need to be encoded" (whew!)
encoded.append (currChar);
} else {
encoded.append ("%");
encoded.append (hexChar ((currChar & 0xF0) >> 4));
encoded.append (hexChar (currChar & 0x0F));
}
}
return encoded.toString();
}
/**
* Returns the URL in String format
*
* @return the URL in String format
*/
public String toString() {
return getUrl();
}
/**
* Reports if the two objects represent the same URL
*
* @param url the object to be compared to
* @return <CODE>true</CODE> if the two are equivalent
*/
public boolean equals( LDAPUrl url ) {
if ( getHost() == null ) {
if ( url.getHost() != null ) {
return false;
}
} else if ( !getHost().equals( url.getHost() ) ) {
return false;
}
if ( getPort() != url.getPort() ) {
return false;
}
if ( getDN() == null ) {
if ( url.getDN() != null ) {
return false;
}
} else if ( !getDN().equals( url.getDN() ) ) {
return false;
}
if ( getFilter() == null ) {
if ( url.getFilter() != null ) {
return false;
}
} else if ( !getFilter().equals( url.getFilter() ) ) {
return false;
}
if ( getScope() != url.getScope() ) {
return false;
}
if ( attributes == null ) {
if ( url.attributes != null ) {
return false;
}
} else if ( attributes.size() != url.attributes.size() ) {
return false;
} else {
for( int i = 0; i < attributes.size(); i++ ) {
if ( attributes.elementAt( i ) !=
url.attributes.elementAt( i ) ) {
return false;
}
}
}
return true;
}
}

View File

@@ -1,479 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import java.io.*;
/**
* This interface summarizes the basic functionality available in the
* Lightweight Directory Access Protocol (LDAP) version 2. (See
* <A HREF="http://www.cis.ohio-state.edu/htbin/rfc/rfc1777.html" TARGET="_blank">RFC 1777</A>
* for the definition of the protocol.)
* <P>
*
* In the general model for this protocol, objects exist under a directory
* in a particular server. Objects are identified by unique, hierarchical names
* called Distinguished Names, commonly abreviated "DN". An example of a DN:
* <pre>
* cn=Barbara Jensen,ou=Product Development,o=Ace Industry,c=us
* </pre>
* Objects have attributes, of the form
* <pre>
* attributeName = attributeValue(s)
* </pre>
* Attribute names must be Strings, and attribute values can be any 8-bit
* sequence (Strings or binary values).
*
* @version 1.0
*/
public interface LDAPv2 {
/**
* The default port number for LDAP servers. You can specify
* this identifier when calling the <CODE>LDAPConnection.connect</CODE>
* method to connect to an LDAP server.
* @see netscape.ldap.LDAPConnection#connect
*/
public final static int DEFAULT_PORT = 389;
/**
* Option specifying how aliases are dereferenced.
* <P>
*
* This option can have one of the following values:
* <UL>
* <LI><A HREF="#DEREF_NEVER"><CODE>DEREF_NEVER</CODE></A>
* <LI><A HREF="#DEREF_FINDING"><CODE>DEREF_FINDING</CODE></A>
* <LI><A HREF="#DEREF_SEARCHING"><CODE>DEREF_SEARCHING</CODE></A>
* <LI><A HREF="#DEREF_ALWAYS"><CODE>DEREF_ALWAYS</CODE></A>
* </UL>
* <P>
*
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int DEREF = 2;
/**
* Option specifying the maximum number of search results to
* return.
* <P>
*
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int SIZELIMIT = 3;
/**
* Option specifying the maximum number of milliseconds to
* wait for an operation to complete.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int TIMELIMIT = 4;
/**
* Option specifying the maximum number of milliseconds the
* server should spend returning search results before aborting
* the search.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int SERVER_TIMELIMIT = 5;
/**
* Option specifying whether or not referrals to other LDAP
* servers are followed automatically.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPRebind
* @see netscape.ldap.LDAPRebindAuth
*/
public static final int REFERRALS = 8;
/**
* Option specifying the object containing the method for
* getting authentication information (the distinguished name
* and password) used during a referral. For example, when
* referred to another LDAP server, your client uses this object
* to obtain the DN and password. Your client authenticates to
* the LDAP server using this DN and password.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPRebind
* @see netscape.ldap.LDAPRebindAuth
*/
public static final int REFERRALS_REBIND_PROC = 9;
/**
* Option specifying the maximum number of referrals to follow
* in a sequence when requesting an LDAP operation.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int REFERRALS_HOP_LIMIT = 10;
/**
* Option specifying the object containing the method for
* authenticating to the server.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPBind
*/
public static final int BIND = 13;
/**
* Option specifying the version of the LDAP protocol
* used by your client when interacting with the LDAP server.
* If no version is set, the default version is 2. If you
* are planning to use LDAP v3 features (such as controls
* or extended operations), you should set this version to 3
* or specify version 3 as an argument to the <CODE>authenticate</CODE>
* method of the <CODE>LDAPConnection</CODE> object.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
* @see netscape.ldap.LDAPConnection#authenticate(int, java.lang.String, java.lang.String)
*/
public static final int PROTOCOL_VERSION = 17;
/**
* Option specifying the number of results to return at a time.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int BATCHSIZE = 20;
/*
* Valid options for Scope
*/
/**
* Specifies that the scope of a search includes
* only the base DN (distinguished name).
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints)
*/
public static final int SCOPE_BASE = 0;
/**
* Specifies that the scope of a search includes
* only the entries one level below the base DN (distinguished name).
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints) */
public static final int SCOPE_ONE = 1;
/**
* Specifies that the scope of a search includes
* the base DN (distinguished name) and all entries at all levels
* beneath that base.
* @see netscape.ldap.LDAPConnection#search(java.lang.String, int, java.lang.String, java.lang.String[], boolean, netscape.ldap.LDAPSearchConstraints) */
public static final int SCOPE_SUB = 2;
/*
* Valid options for Dereference
*/
/**
* Specifies that aliases are never dereferenced.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int DEREF_NEVER = 0;
/**
* Specifies that aliases are dereferenced when searching the
* entries beneath the starting point of the search (but
* not when finding the starting entry).
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int DEREF_SEARCHING = 1;
/**
* Specifies that aliases are dereferenced when finding the
* starting point for the search (but not when searching
* under that starting entry).
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int DEREF_FINDING = 2;
/**
* Specifies that aliases are always dereferenced.
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int DEREF_ALWAYS = 3;
/**
* Connects to the LDAP server.
* @param host hostname of the LDAP server
* @param port port number of the LDAP server. To specify the
* default port, use <CODE>DEFAULT_PORT</CODE>.
* @exception LDAPException Failed to connect to the server.
*/
public void connect (String host, int port) throws LDAPException;
/**
* Connects and authenticates to the LDAP server.
* @param host hostname of the LDAP server
* @param port port number of the LDAP server. To specify the
* default port, use <CODE>DEFAULT_PORT</CODE>.
* @param dn distinguished name to use for authentication
* @param passwd password for authentication
* @exception LDAPException Failed to connect and authenticate to the server.
*/
public void connect (String host, int port, String dn, String passwd)
throws LDAPException;
/**
* Disconnects from the LDAP server. Subsequent operational calls
* will first try to re-establish the connection to the same LDAP server.
* @exception LDAPException Failed to disconnect from the server.
*/
public void disconnect() throws LDAPException;
/**
* Notifies the server to not send additional results associated with this
* <CODE>LDAPSearchResults</CODE> object, and discards any results already
* received.
* @param results LDAPSearchResults object returned from a search
* @exception LDAPException Failed to notify the server.
*/
public void abandon(LDAPSearchResults results) throws LDAPException;
/**
* Authenticates user with the LDAP server.
* @param DN distinguished name to use for authentication
* @param passwd password for authentication
* @exception LDAPException Failed to authenticate to the server.
*/
public void authenticate (String DN, String passwd) throws LDAPException;
/**
* Authenticates user with the LDAP server.
* @param DN distinguished name to use for authentication
* @param passwd password for authentication
* @exception LDAPException Failed to authenticate to the server.
*/
public void bind (String DN, String passwd) throws LDAPException;
/**
* Read the entry corresponding to the specified distinguished name (DN).
* @param DN distinguished name of the entry to retrieve
* @exception LDAPException Failed to retrieve the specified entry.
*/
public LDAPEntry read (String DN) throws LDAPException;
/**
* Read the entry corresponding to the specified distinguished name (DN),
* and retrieve only the specified attributes.
* @param DN distinguished name of the entry to retrieve
* @param attrs names of attributes to retrieve
* @exception LDAPException Failed to retrieve the specified entry.
*/
public LDAPEntry read (String DN, String attrs[]) throws LDAPException;
/**
* Read the entry corresponding to the specified distinguished name (DN),
* and retrieve only the specified attributes.
* @param DN distinguished name of the entry to retrieve
* @param attrs names of attributes to retrieve
* @param cons the constraints set for the read operation
* @exception LDAPException Failed to retrieve the specified entry.
*/
public LDAPEntry read (String DN, String attrs[], LDAPSearchConstraints cons)
throws LDAPException;
/**
* Searches for entries in the directory.
* @param base starting point for the search in the directory
* (distinguished name)
* @param scope indicates whether the scope of the search includes
* only the base DN (equivalent to a read operation), only the entries
* one level below the base DN, or all entries at all levels beneath
* the base DN (including the base DN itself)
* @param filter String which describes the search criteria. The format
* of the string is described fully in
* <A HREF="http://www.cis.ohio-state.edu/htbin/rfc/rfc1558.html" TARGET="_blank">RFC 1558</A>.
* @param attrs names of the attributes to return for each matching
* directory entry. If <CODE>null</CODE>, all attributes are returned.
* @param attrsOnly if <CODE>true</CODE>, the search will return only the names of
* the attributes (and not their values)
* @exception LDAPException Failed to complete the requested search.
*/
public LDAPSearchResults search (String base, int scope, String filter,
String[] attrs, boolean attrsOnly) throws LDAPException;
/**
* Searches for entries in the directory.
* @param base starting point for the search in the directory
* (distinguished name)
* @param scope indicates whether the scope of the search includes
* only the base DN (equivalent to a read operation), only the entries
* one level below the base DN, or all entries at all levels beneath
* the base DN (including the base DN itself)
* @param filter String which describes the search criteria. The format
* of the string is described fully in
* <A HREF="http://www.cis.ohio-state.edu/htbin/rfc/rfc1558.html" TARGET="_blank">RFC 1558</A>.
* @param attrs names of the attributes to return for each matching
* directory entry. If <CODE>null</CODE>, all attributes are returned.
* @param attrsOnly if <CODE>true</CODE>, the search will return only the names of
* the attributes (and not their values)
* @param cons constraints specific to the search (for example, the maximum number
* of entries to return or the maximum time to wait for the search operation to complete)
* @exception LDAPException Failed to complete the requested search.
*/
public LDAPSearchResults search (String base, int scope, String filter,
String[] attrs, boolean attrsOnly, LDAPSearchConstraints cons)
throws LDAPException;
/**
* Compares the given entry's attribute value to the specified
* attribute value.
* @param DN distinguished name of the entry that you want compared
* against the specified attribute value
* @param attr attribute name and value to use in the comparison
* @exception LDAPException Failed to perform the comparison.
*/
public boolean compare (String DN, LDAPAttribute attr) throws LDAPException;
/**
* Compares the given entry's attribute value to the specified
* attribute value.
* @param DN distinguished name of the entry that you want compared
* against the specified attribute value
* @param attr attribute name and value to use in the comparison
* @param cons the constraints set for the compare operation
* @exception LDAPException Failed to perform the comparison.
*/
public boolean compare (String DN, LDAPAttribute attr,
LDAPConstraints cons) throws LDAPException;
/**
* Adds an entry to the directory.
* @param entry new entry to add to the directory
* @exception LDAPException Failed to add the entry to the directory.
*/
public void add (LDAPEntry entry) throws LDAPException;
/**
* Adds an entry to the directory.
* @param entry new entry to add to the directory
* @param cons the constraints set for the add operation
* @exception LDAPException Failed to add the entry to the directory.
*/
public void add (LDAPEntry entry, LDAPConstraints cons)
throws LDAPException;
/**
* Modifies an attribute of a directory entry.
* @param DN distinguished name identifying the entry to modify
* @param mod the modification to make
* @exception LDAPException Failed to modify the specified entry.
*/
public void modify (String DN, LDAPModification mod) throws LDAPException;
/**
* Modifies an attribute of a directory entry.
* @param DN distinguished name identifying the entry to modify
* @param mod the modification to make
* @param cons the constraints set for the modify operation
* @exception LDAPException Failed to modify the specified entry.
*/
public void modify (String DN, LDAPModification mod,
LDAPConstraints cons) throws LDAPException;
/**
* Modifies the attributes of a directory entry.
* @param DN distinguished name identifying the entry to modify
* @param mod list of the modifications to make
* @exception LDAPException Failed to modify the specified entry.
*/
public void modify (String DN, LDAPModificationSet mods ) throws LDAPException;
/**
* Modifies the attributes of a directory entry.
* @param DN distinguished name identifying the entry to modify
* @param mod list of the modifications to make
* @param cons the constraints set for the modify operation
* @exception LDAPException Failed to modify the specified entry.
*/
public void modify (String DN, LDAPModificationSet mods,
LDAPConstraints cons ) throws LDAPException;
/**
* Removes an entry from the directory.
* @param DN distinguished name identifying the entry to remove
* @exception LDAPException Failed to remove the entry from the directory.
*/
public void delete( String DN ) throws LDAPException;
/**
* Removes an entry from the directory.
* @param DN distinguished name identifying the entry to remove
* @param cons the constraints set for the delete operation
* @exception LDAPException Failed to remove the entry from the directory.
*/
public void delete( String DN, LDAPConstraints cons )
throws LDAPException;
/**
* Changes the name of an entry in the directory.
* @param DN distinguished name (DN) of entry
* @param newRDN the new relative distinguished name (RDN) of the entry
* @param deleteOldRDN <CODE>true</CODE> if the original RDN should no longer
* be an attribute of the entry; <CODE>false</CODE> if it should
* @exception LDAPException Failed to rename the entry in the directory.
*/
public void rename ( String DN, String newRDN, boolean deleteOldRDN )
throws LDAPException;
/**
* Changes the name of an entry in the directory.
* @param DN distinguished name (DN) of entry
* @param newRDN new relative distinguished name (RDN) of the entry
* @param deleteOldRDN specifies whether or not the original RDN remains
* as an attribute of the entry. If <CODE>true</CODE>, the original RDN
* is no longer an attribute of the entry.
* @param cons the constraints set for the rename operation
* @exception LDAPException Failed to rename the entry in the directory.
*/
public void rename ( String DN, String newRDN, boolean deleteOldRDN,
LDAPConstraints cons ) throws LDAPException;
/**
* Retrieves an option that applies to the connection.
* The particular meaning may be implementation-dependent.
* The standard options are the options described by
* the <CODE>LDAPSearchConstraints</CODE> and <CODE>LDAPConstraints</CODE>
* classes.
* @exception LDAPException Failed to retrieve the value of the specified option.
*/
public Object getOption( int option ) throws LDAPException;
/**
* Sets an option that applies to the connection.
* The particular meaning may be implementation-dependent.
* The standard options are the options described by
* the <CODE>LDAPSearchConstraints</CODE> and <CODE>LDAPConstraints</CODE>
* classes.
* @exception LDAPException Failed to set the specified option.
*/
public void setOption( int option, Object value ) throws LDAPException;
}

View File

@@ -1,193 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap;
import java.util.*;
import netscape.ldap.client.*;
import netscape.ldap.client.opers.*;
import java.io.*;
/**
* Specifies additional features available in version 3 of the
* LDAP protocol. (To view preliminary information on this work
* in progress, see the LDAP v3 internet draft. You can find the
* latest version of this document listed under the Internet-Drafts
* section of the
* <A HREF="http://www.ietf.cnri.reston.va.us/html.charters/asid-charter.html"
* TARGET=_blank">ASID home page</A>.)
*
* @version 1.0
*/
public interface LDAPv3 extends LDAPv2 {
/**
* Connects and authenticates to the LDAP server using the specified version of the
* LDAP protocol.
* @param version requested version of the LDAP protocol: currently 2 or 3
* @param host hostname of the LDAP server
* @param port port number of the LDAP server. To specify the
* default port, use <CODE>DEFAULT_PORT</CODE>.
* @param dn distinguished name to use for authentication
* @param passwd password for authentication
* @exception LDAPException Failed to connect and authenticate to the server.
*/
public void connect(int version, String host, int port, String dn,
String passwd) throws LDAPException;
/**
* Authenticates to the LDAP server (to which the object is currently
* connected) using the specified name, password, and version
* of the LDAP protocol. If the server does not support the requested
* protocol version, an exception is thrown. If the object has been
* disconnected from an LDAP server, this method attempts to reconnect
* to the server. If the object had already authenticated, the old
* authentication is discarded.
* @param version requested LDAP protocol version: currently 2 or 3.
* @param dn if non-null and non-empty, specifies that the
* connection and all operations through it should
* authenticate with dn as the distinguished name
* @param passwd if non-null and non-empty, specifies that the
* connection and all operations through it should
* authenticated with passwd as password
* @exception LDAPException Failed to authenticate to the LDAP server.
*/
public void authenticate(int version,
String dn,
String passwd)
throws LDAPException;
/**
* Authenticates to the LDAP server (to which the object is currently
* connected) using the specified name, password, and version of the
* LDAP protocol. If the server does not support the requested
* version of the protocol, an exception is thrown. If the
* object has been disconnected from an LDAP server, this method
* attempts to reconnect to the server. If the object had already
* authenticated, the old authentication is discarded.
* @param version requested LDAP protocol version: currently 2 or 3.
* @param dn if non-null and non-empty, specifies that the
* connection and all operations through it should authenticate
* with dn as the distinguished name
* @param passwd if non-null and non-empty, specifies that the
* connection and all operations through it should authenticate
* with passwd as password
* @exception LDAPException Failed to authenticate to the LDAP server.
*/
public void bind(int version,
String dn,
String passwd)
throws LDAPException;
/**
* Performs an extended operation on the directory. Extended operations
* are part of version 3 of the LDAP protocol.
* <P>
*
* @param op LDAPExtendedOperation object specifying the OID of the
* extended operation and the data to use in the operation
* @exception LDAPException Failed to execute the operation
* @return LDAPExtendedOperation object representing the extended response
* returned by the server.
* @see LDAPExtendedOperation
*/
public LDAPExtendedOperation extendedOperation( LDAPExtendedOperation op )
throws LDAPException;
/**
* Renames and moves an entry in the directory.
* @param DN original distinguished name (DN) for the entry
* @param newRDN new relative distinguished name (RDN) for the entry
* @param newParentDN distinguished name of the new parent entry of the
* specified entry
* @param deleteOldRDN specifies whether or not to remove the old RDN
* when renaming and moving the entry. If <code>true</code>, the old RDN will be deleted.
* @exception LDAPException Failed to rename the specified entry.
*/
public void rename( String DN, String newRDN, String newParentDN,
boolean deleteOldRDN ) throws LDAPException;
/**
* Renames and moves an entry in the directory.
* @param DN original distinguished name (DN) for the entry
* @param newRDN new relative distinguished name (RDN) for the entry
* @param newParentDN distinguished name of the new parent entry of the
* specified entry
* @param deleteOldRDN specifies whether or not to remove the old RDN
* when renaming and moving the entry. If <code>true</code>, the old RDN will be deleted.
* @param cons the constraints set for the rename operation
* @exception LDAPException Failed to rename the specified entry.
*/
public void rename( String DN, String newRDN, String newParentDN,
boolean deleteOldRDN, LDAPConstraints cons ) throws LDAPException;
/**
* Returns an array of the latest controls (if any) from the server.
* @return an array of the controls returned by an operation,
* or <CODE>null</CODE> if none.
* @see netscape.ldap.LDAPControl
*/
public LDAPControl[] getResponseControls();
/**
* Option specifying client controls for LDAP operations. These
* controls are interpreted by the client and are not passed
* to the LDAP server.
* @see netscape.ldap.LDAPControl
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int CLIENTCONTROLS = 11;
/**
* Option specifying server controls for LDAP operations. These
* controls are passed to the LDAP server. They may also be returned by
* the server.
* @see netscape.ldap.LDAPControl
* @see netscape.ldap.LDAPConnection#getOption
* @see netscape.ldap.LDAPConnection#setOption
*/
public static final int SERVERCONTROLS = 12;
/**
* Attribute type that you can specify in the LDAPConnection
* search method if you don't want to retrieve any of the
* attribute types for entries found by the search.
* @see netscape.ldap.LDAPConnection#search
*/
public static final String NO_ATTRS = "1.1";
/**
* Attribute type that you can specify in the LDAPConnection
* search method if you want to retrieve all attribute types.
* You can use this if you want to retrieve all attributes in
* addition to an operational attribute. For example:
* <P>
*
* <PRE>
* ...
* String [] MY_ATTRS = { LDAPv3.ALL_USER_ATTRS, "modifiersName",
* "modifyTimestamp" };
* LDAPSearchResults res = ld.search( MY_SEARCHBASE,
* LDAPConnection.SCOPE_SUB, MY_FILTER, MY_ATTRS, false, cons );
* ...
* </PRE>
* @see netscape.ldap.LDAPConnection#search
*/
public static final String ALL_USER_ATTRS = "*";
}

View File

@@ -1,87 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the "any" object that is unknown to the
* BER package but conforms to BER rules.
*
* <pre>
* Encoding Rule:
* The encoding is that of the particular implementation.
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERAny extends BERElement {
/**
* Internal variables
*/
private BERElement m_value = null;
/**
* Constructs an "any" element.
* @param value BERElement value
*/
public BERAny(BERElement value) {
m_value = value;
}
/**
* Constructs an "any" element from an input stream.
* Note that with the current decoding architecture "any" types
* will not be decoded as any's but rather as the particular
* implementation. The following method will never be called.
* @param stream input stream
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERAny(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
m_value = getElement(decoder, stream, bytes_read);
}
/**
* Sends the BER encoding directly to an output stream.
* @param stream output stream
*/
public void write(OutputStream stream) throws IOException {
m_value.write(stream);
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.ANY;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "ANY {" + m_value + "}";
}
}

View File

@@ -1,279 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.util.BitSet;
import java.io.*;
/**
* This class is for the BitString object. Note that the BitSet class
* has a bug: size() returns the size of the internal allocated memory
* rather than the number of bits. Current work-around is to maintain
* the number of bits ourselves in m_value_num_bits.
* Change is required when BitSet is fixed.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x03
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERBitString extends BERElement {
/**
* Internal variables
*/
private BitSet m_value;
private int m_value_num_bits;
/**
* Constructs a boolean element.
* @param value boolean value
*/
public BERBitString(BitSet value) {
m_value = value;
}
/**
* Constructs a bitstring element from an input stream
* (for constructed encodings).
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERBitString(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
int octet;
int contents_length = super.readLengthOctets(stream, bytes_read);
int[] component_length = new int[1];
BERElement element = null;
if (contents_length == -1) {
/* Constructed - indefinite length. */
{
component_length[0] = 0;
element = getElement(decoder,stream,component_length);
if (element != null) {
/* element is a bitstring - add it to the existing BitSet */
BERBitString bit_string_element = (BERBitString)element;
BitSet new_bit_set = new BitSet(m_value_num_bits +
bit_string_element.getSize());
for (int i = 0; i<m_value_num_bits; i++)
if (m_value.get(i))
new_bit_set.set(i);
for (int j = 0; j<bit_string_element.getSize(); j++)
if (bit_string_element.getValue().get(j))
new_bit_set.set(m_value_num_bits+j);
m_value = new_bit_set;
m_value_num_bits += bit_string_element.getSize();
}
} while (element != null);
} else {
/* Constructed - definite length */
bytes_read[0] += contents_length;
while (contents_length > 0) {
component_length[0] = 0;
element = getElement(decoder,stream,component_length);
if (element != null) {
/* element is a bitstring - add it to the existing BitSet */
BERBitString bit_string_element = (BERBitString)element;
BitSet new_bit_set = new BitSet(m_value_num_bits +
bit_string_element.getSize());
for (int i = 0; i<m_value_num_bits; i++)
if (m_value.get(i))
new_bit_set.set(i);
for (int j = 0; j<bit_string_element.getSize(); j++)
if (bit_string_element.getValue().get(j))
new_bit_set.set(m_value_num_bits+j);
m_value = new_bit_set;
m_value_num_bits += bit_string_element.getSize();
}
contents_length -= component_length[0];
}
}
}
/**
* Constructs a bitstring element from an input stream
* (for primitive encodings).
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERBitString(InputStream stream, int[] bytes_read)
throws IOException {
/* Primitive - definite length content octets string. */
int octet;
int contents_length = super.readLengthOctets(stream, bytes_read);
/* First content octect doesn't encode any of
* the string - it encodes the number of unused
* bits in the final content octet.
*/
int last_unused_bits = stream.read();
bytes_read[0]++;
contents_length--;
m_value_num_bits = ((contents_length-1)*8) + (8-last_unused_bits);
m_value = new BitSet();
int bit_num = 0;
for (int i = 0; i < contents_length-1; i++) {
octet = stream.read();
int mask = 0x80;
for (int j = 0; j < 8; j++) {
if ((octet & mask) > 0) {
m_value.set(bit_num);
}
else
m_value.clear(bit_num);
bit_num++;
mask = mask / 2;
}
}
octet = stream.read(); /* last content octet */
int mask = 0x80;
for (int j = 0; j < 8-last_unused_bits; j++) {
if ((octet & mask) > 0)
m_value.set(bit_num);
else
m_value.clear(bit_num);
bit_num++;
mask = mask / 2;
}
bytes_read[0] += contents_length;
}
/**
* Sends the BER encoding directly to a stream.
* Always sends in primitive form.
* @param stream output stream
*/
public void write(OutputStream stream) throws IOException {
stream.write(BERElement.BITSTRING);
//int num_bits = m_value.size(); /* number of bits to send */
int num_bits = m_value_num_bits;
/* Number of bits unused int the last contents octet */
int last_unused_bits = 8 - (num_bits % 8);
/* Figure out the number of content octets */
int num_content_octets = (int)(num_bits/8) + 1;
if (last_unused_bits > 0)
num_content_octets += 1;
stream.write(num_content_octets); /* length octet */
stream.write(last_unused_bits); /* first content octet */
for (int i = 0; i < (int)(num_bits/8); i++) {
int new_octet = 0;
int bit = 0x80;
for (int j = 0; j < 8; j++) {
if (m_value.get(i*8+j))
new_octet += bit;
bit = bit/2;
}
stream.write(new_octet);
}
/*
* Last octet may not use all bits. If last octet DOES use all
* bits then it has already been written above.
*/
if (last_unused_bits > 0) {
int new_octet = 0;
int bit = 0x80;
for (int j = 0; j < last_unused_bits; j++) {
if (m_value.get(((int)(num_bits/8))*8+j))
new_octet += bit;
bit = bit/2;
}
stream.write(new_octet);
}
}
/**
* Gets the bitstring value.
* @param element type
*/
public BitSet getValue() {
return m_value;
}
/**
* Gets the number of bits.
* @return bit numbers.
*/
public int getSize() {
return m_value_num_bits;
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.BITSTRING;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
String hex_string = "";
int octet;
//int num_bits = m_value.size();
int num_bits = m_value_num_bits;
for (int i = 0; i < (int)(num_bits/8); i++) {
octet = 0;
int bit = 0x80;
for (int j = 0; j < 8; j++) {
if (m_value.get(i*8+j))
octet += bit;
bit = bit/2;
}
hex_string += " " + (byte)octet;
}
int bit = 0x80;
octet = 0;
for (int k = 0; k < num_bits-(int)(num_bits/8); k++) {
if (m_value.get(((int)(num_bits/8))*8+k))
octet += bit;
bit = bit/2;
}
hex_string += " " + (byte)octet;
return "Bitstring {" + hex_string + " }";
}
}

View File

@@ -1,110 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Boolean object.
*
* <pre>
* ENCODING RULE:
* tag = 0x01
* length = 0x01
* one contents octet (non-zero indicates TRUE).
*
* Example 1: (false)
* 01 01 00
* Example 2: (true)
* 01 01 FF
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERBoolean extends BERElement {
/**
* Internal variables
*/
private boolean m_value = true;
/**
* Constructs a boolean element.
* @param value boolean value
*/
public BERBoolean(boolean value) {
m_value = value;
}
/**
* Constructs a boolean element from an input stream.
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERBoolean(InputStream stream, int[] bytes_read) throws IOException {
int octet = stream.read(); /* skip length */
bytes_read[0]++;
octet = stream.read(); /* content octet */
bytes_read[0]++;
if (octet > 0)
m_value = true;
else
m_value = false;
}
/**
* Sends the BER encoding directly to a stream.
* @param stream output stream
*/
public void write(OutputStream stream) throws IOException {
stream.write(BERElement.BOOLEAN);
stream.write(0x01);
if (m_value)
stream.write(0xFF); /* non-zero means true. */
else
stream.write(0x00); /* zero means false. */
}
/**
* Gets the boolean value.
* @param element type
*/
public boolean getValue() {
return m_value;
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.BOOLEAN;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "Boolean {" + m_value + "}";
}
}

View File

@@ -1,177 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This is an abstract base class for character string types.
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public abstract class BERCharacterString extends BERElement {
/**
* Internal variables
*/
protected String m_value = null;
/**
* Constructs a character string element containing a buffer.
*/
public BERCharacterString() {
}
/**
* Constructs a character string element containing buffer.
* @param buffer a string value
*/
public BERCharacterString(String string) {
m_value = string;
}
/**
* Constructs a character string element from a byte array.
* @param buffer buffer containing UTF8 data
*/
public BERCharacterString(byte[] buffer) {
try{
m_value = new String(buffer,"UTF8");
} catch(Throwable x)
{}
}
/**
* Constructs a character string element from an input stream
* (for constructed encoding)
* @param stream input stream
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERCharacterString(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
int octet;
int contents_length = super.readLengthOctets(stream, bytes_read);
int[] component_length = new int[1];
BERElement element = null;
if (contents_length == -1) {
/* Constructed - indefinite length content octets. */
do {
component_length[0] = 0;
element = getElement(decoder,stream,component_length);
if (element != null) {
/* element is a string of same type
* - add it to the existing buffer */
BERCharacterString octet_element = (BERCharacterString)element;
String string_buffer = octet_element.getValue();
if (m_value == null) {
m_value = string_buffer;
} else {
m_value = m_value + string_buffer;
}
}
} while (element != null);
} else {
/* Definite length content octets string. */
bytes_read[0] += contents_length;
while (contents_length > 0) {
component_length[0] = 0;
element = getElement(decoder,stream,component_length);
if (element != null) {
/* element is a string of the same type
* - add it to the existing buffer */
BERCharacterString octet_element = (BERCharacterString)element;
String string_buffer = octet_element.getValue();
if (m_value == null) {
m_value = string_buffer;
} else {
m_value = m_value + string_buffer;
}
}
contents_length -= component_length[0];
}
}
}
/**
* Constructs a character string element from an input stream
* (for primitive encoding)
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERCharacterString(InputStream stream, int[] bytes_read)
throws IOException {
int contents_length = super.readLengthOctets(stream, bytes_read);
/* Definite length content octets string. */
if (contents_length > 0) {
byte[] buffer = new byte[contents_length];
for (int i = 0; i < contents_length; i++) {
buffer[i] = (byte) stream.read();
}
bytes_read[0] += contents_length;
try {
m_value = new String(buffer,"UTF8");
} catch(Throwable x)
{}
}
}
private byte[] byte_buf;
/**
* Writes BER to stream.
* @param stream output stream
*/
public void write(OutputStream stream) throws IOException {
stream.write(getType()); /* tag */
if (m_value == null) {
sendDefiniteLength(stream, 0);
} else {
try {
byte_buf = m_value.getBytes("UTF8");
sendDefiniteLength(stream, byte_buf.length); /* length */
} catch(Throwable x)
{}
stream.write(byte_buf,0,byte_buf.length); /* contents */
}
}
/**
* Gets the element value.
* @param element value
*/
public String getValue() {
return m_value;
}
/**
* Gets the element type.
* @param element type
*/
public abstract int getType();
/**
* Gets the string representation.
* @return string representation.
*/
public abstract String toString();
}

View File

@@ -1,96 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Choice object. Note that this class may be
* used by a client.
*
* <pre>
* ENCODING RULE:
* Encoding is the encoding of the specific type used.
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERChoice extends BERElement {
/**
* Internal variables
*/
private BERElement m_value = null;
/**
* Constructs a choice element.
* @param value any BERElement value
*/
public BERChoice(BERElement value) {
m_value = value;
}
/**
* Constructs a choice element from an input stream.
* Note that with the current decoding architecture choice types
* will not be decoded as choices but rather as the types
* chosen. The following method will never be called.
* @param stream input stream
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERChoice(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
m_value = getElement(decoder, stream, bytes_read);
}
/**
* Sends the BER encoding of the chosen type directly to a stream.
* @param stream output stream
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
m_value.write(stream);
}
/**
* Gets the value of the chosen type.
* @param element type
*/
public BERElement getValue() {
return m_value;
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.CHOICE;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "CHOICE {" + m_value + "}";
}
}

View File

@@ -1,130 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This abstract class serves as a based class for constructed
* types such as sequence or set.
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public abstract class BERConstruct extends BERElement {
/**
* List of BER elements in the construct.
*/
private Vector m_elements = new Vector();
/**
* Constructs a construct element.
*/
public BERConstruct() {
}
/**
* Constructs a construct element from an input stream.
* @param decoder decoder for application specific BER
* @param stream input stream from socket
* @param bytes_read array of 1 int; value incremented by number
* of bytes read from stream
* @exception IOException failed to construct
*/
public BERConstruct(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
int contents_length = super.readLengthOctets(stream,bytes_read);
int[] component_length = new int[1];
if (contents_length == -1) {
/* Constructed - indefinite length */
BERElement element = null;
{
component_length[0] = 0;
element = getElement(decoder, stream, component_length);
if (element != null)
addElement(element);
} while (element != null);
} else {
/* Constructed - definite length */
bytes_read[0] += contents_length;
while (contents_length > 0)
{
component_length[0] = 0;
addElement(getElement(decoder, stream,component_length));
contents_length -= component_length[0];
}
}
}
/**
* Adds an element to the list.
* @return BER encoding of the element.
*/
public void addElement(BERElement element) {
m_elements.addElement(element);
}
/**
* Retrieves number of elements.
* @return number of elements.
*/
public int size() {
return m_elements.size();
}
/**
* Gets ber element at specific position.
* @param index index of the element to get
* @return BER element.
*/
public BERElement elementAt(int index) {
return (BERElement)m_elements.elementAt(index);
}
/**
* Sends the BER encoding directly to a stream.
* @param stream output stream
* @exception IOException failed to send
*/
public void write(OutputStream stream) throws IOException {
stream.write(getType());
ByteArrayOutputStream contents_stream = new ByteArrayOutputStream();
for (int i = 0; i < m_elements.size(); i++) {
BERElement e = elementAt(i);
e.write(contents_stream);
}
byte[] contents_buffer = contents_stream.toByteArray();
sendDefiniteLength(stream, contents_buffer.length);
stream.write(contents_buffer);
}
/**
* Gets the element type.
* @param element type
*/
public abstract int getType();
/**
* Gets the string representation.
* @return string representation of tag.
*/
public abstract String toString();
}

View File

@@ -1,318 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the tagged object type. A nested tag is
* allowed. A tagged element contains another BER element.
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public abstract class BERElement implements Serializable {
/**
* Possible element types.
*/
public final static int BOOLEAN = 0x01;
public final static int INTEGER = 0x02;
public final static int BITSTRING = 0x03;
public final static int OCTETSTRING = 0x04;
public final static int NULL = 0x05;
public final static int OBJECTID = 0x06;
public final static int REAL = 0x09;
public final static int ENUMERATED = 0x0a;
public final static int SET = 0x31; /* always constructed */
public final static int SEQUENCE = 0x30; /* always constructed */
public final static int NUMERICSTRING = 0x12;
public final static int PRINTABLESTRING = 0x13;
public final static int TELETEXSTRING = 0x14;
public final static int VIDEOTEXSTRING = 0x15;
public final static int IA5STRING = 0x16;
public final static int UTCTIME = 0x17;
public final static int GRAPHICSTRING = 0x19;
public final static int VISIBLESTRING = 0x1A;
public final static int GENERALSTRING = 0x1B;
/**
* Internal (non-transmitted) tags.
*/
public final static int TAG = -1;
public final static int CHOICE = -2;
public final static int ANY = -3;
/**
* Possible tags.
*/
public final static int EOC = 0x00; /* End Of Construction */
public final static int UNIVERSAL = 0x00;
public final static int APPLICATION = 0x40;
public final static int CONTEXT = 0x80;
public final static int SASLCONTEXT = 0xa0;
public final static int PRIVATE = 0xC0;
public final static int PRIMITIVE = 0x00;
public final static int CONSTRUCTED = 0x20;
public final static int MRA_OID = 0x01;
public final static int MRA_TYPE = 0x02;
public final static int MRA_VALUE = 0x03;
public final static int MRA_DNATTRS = 0x04;
public final static int EXOP_REQ_OID = 0x00;
public final static int EXOP_REQ_VALUE = 0x01;
public final static int EXOP_RES_OID = 0x0a;
public final static int EXOP_RES_VALUE = 0x0b;
public final static int SK_MATCHRULE = 0x00;
public final static int SK_REVERSE = 0x01;
public final static int SR_ATTRTYPE = 0x00;
/**
* Gets a ber element from the input stream.
* @param decoder decoder for application specific BER
* @param stream source of ber encoding
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to decode an element.
*/
public static BERElement getElement(BERTagDecoder decoder,
InputStream stream, int[] bytes_read) throws IOException {
BERElement element = null;
int tag = stream.read();
bytes_read[0] = 1;
if (tag == EOC) {
stream.read(); /* length octet (always zero) */
bytes_read[0] = 1;
element = null;
} else if (tag == BOOLEAN) {
element = new BERBoolean(stream, bytes_read);
} else if (tag == INTEGER) {
element = new BERInteger(stream, bytes_read);
} else if (tag == BITSTRING) {
element = new BERBitString(stream, bytes_read);
} else if (tag == (BITSTRING | CONSTRUCTED)) {
element = new BERBitString(decoder, stream, bytes_read);
} else if (tag == OCTETSTRING) {
element = new BEROctetString(stream, bytes_read);
} else if (tag == (OCTETSTRING | CONSTRUCTED)) {
element = new BEROctetString(decoder, stream, bytes_read);
} else if (tag == NULL) {
element = new BERNull(stream, bytes_read);
} else if (tag == OBJECTID) {
element = new BERObjectId(stream, bytes_read);
} else if (tag == REAL) {
element = new BERReal(stream, bytes_read);
} else if (tag == ENUMERATED) {
element = new BEREnumerated(stream, bytes_read);
} else if (tag == SEQUENCE) {
element = new BERSequence(decoder, stream, bytes_read);
} else if (tag == SET) {
element = new BERSet(decoder, stream, bytes_read);
} else if (tag == NUMERICSTRING) {
element = new BERNumericString(stream, bytes_read);
} else if (tag == (NUMERICSTRING | CONSTRUCTED)) {
element = new BERNumericString(decoder, stream, bytes_read);
} else if (tag == PRINTABLESTRING) {
element = new BERPrintableString(stream, bytes_read);
} else if (tag == (PRINTABLESTRING | CONSTRUCTED)) {
element = new BERPrintableString(decoder, stream, bytes_read);
} else if (tag == UTCTIME) {
element = new BERUTCTime(stream, bytes_read);
} else if (tag == (UTCTIME | CONSTRUCTED)) {
element = new BERUTCTime(decoder, stream, bytes_read);
} else if (tag == VISIBLESTRING) {
element = new BERVisibleString(stream, bytes_read);
} else if (tag == (VISIBLESTRING | CONSTRUCTED)) {
element = new BERVisibleString(decoder, stream, bytes_read);
} else if ((tag & (APPLICATION | PRIVATE | CONTEXT)) > 0) {
element = new BERTag(decoder, tag, stream, bytes_read);
} else
throw new IOException("invalid tag " + tag);
return element;
}
/**
* Reads and decodes a length byte and then that many octets
* from the input stream.
* @param stream input stream from which to read
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @return length of contents or -1 if indefinite length.
* @exception IOException failed to read octets
*/
public static int readLengthOctets(InputStream stream, int[] bytes_read)
throws IOException {
int contents_length = 0;
int octet = stream.read();
bytes_read[0]++;
if (octet == 0x80)
/* Indefinite length */
contents_length = -1;
else if ((octet & 0x80) > 0) {
/* Definite (long form) - num octets encoded in 7 rightmost bits */
int num_length_octets = (octet & 0x7F);
for (int i = 0; i < num_length_octets; i++) {
octet = stream.read();
bytes_read[0]++;
contents_length = (contents_length<<8) + octet;
}
} else {
/* Definite (short form) - one length octet. Value encoded in */
/* 7 rightmost bits. */
contents_length = octet;
}
return contents_length;
}
/**
* Writes length octets (definite length only) to stream.
* Uses shortform whenever possible.
* @param stream output stream to write to
* @param num_content_octets value to be encode into length octets
* @return number of bytes sent to stream.
* @exception IOException failed to read octets
*/
public static void sendDefiniteLength(OutputStream stream,
int num_content_octets) throws IOException {
int bytes_written = 0;
if (num_content_octets <= 127) {
/* Use short form */
stream.write(num_content_octets);
} else {
/* Using long form:
* Need to determine how many octets are required to
* encode the length.
*/
int num_length_octets = 0;
int num = num_content_octets;
while (num >= 0) {
num_length_octets++;
num = (num>>8);
if (num <= 0)
break;
}
byte[] buffer = new byte[num_length_octets+1];
buffer[0] = (byte)(0x80 | num_length_octets);
num = num_content_octets;
for (int i = num_length_octets; i > 0; i--) {
buffer[i] = (byte)(num & 0xFF);
num = (num>>8);
}
stream.write(buffer);
}
}
/**
* Reads a number of bytes from an input stream and form
* an integer..
* @param stream source of data
* @param bytes_read number of bytes read
* @param length number of bytes to be read (1 to 4)
* @return the value of the data as two's complement.
* @exception IOException failed to read octets
*/
protected int readUnsignedBinary(InputStream stream,
int[] bytes_read, int length) throws IOException {
int value = 0;
int octet;
for (int i = 0; i < length; i++) {
octet = stream.read();
bytes_read[0]++;
value = (value<<8) + octet;
}
return value;
}
/**
* Reads the two's complement representation of an integer from
* an input stream.
* @param stream source of data
* @param bytes_read number of bytes read
* @param length number of bytes to be read
* @return the integer value as two's complement.
* @exception IOException failed to read octets
*/
protected int readTwosComplement(InputStream stream,
int[] bytes_read, int length) throws IOException {
int value = 0;
if (length > 0) {
boolean negative = false;
int octet = stream.read();
bytes_read[0]++;
if ((octet & 0x80) > 0) /* left-most bit is 1. */
negative = true;
for (int i = 0; i < length; i++) {
if (i > 0) {
octet = stream.read();
bytes_read[0]++;
}
if (negative)
value = (value<<8) + (int)(octet^0xFF)&0xFF;
else
value = (value<<8) + (int)(octet&0xFF);
}
if (negative) /* convert to 2's complement */
value = (value + 1) * -1;
}
return value;
}
/**
* Converts byte to hex string.
* @param value byte value
* @return string representation of Hex String
*/
public String byteToHexString(byte value) {
if (value < 0)
return Integer.toHexString((value & 0x7F) + 128);
else
return Integer.toHexString(value);
}
/**
* Sends the BER encoding directly to a stream.
* @param stream output stream
* @return bytes written to stream.
*/
public abstract void write(OutputStream stream) throws IOException;
/**
* Gets the element type.
* @return element type.
*/
public abstract int getType();
/**
* Gets the string representation.
* @return string representation of an element.
*/
public abstract String toString();
}

View File

@@ -1,78 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Enumerated object.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x0a
* length = (short or long form)
* one or more contents octets hold integral value
* value in two's complement
*
* Example: (Enumerated - 1)
* 0A 01 01
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BEREnumerated extends BERIntegral {
/**
* Constructs an enumerated element with a value.
* @param value integral value
*/
public BEREnumerated(int value) {
super(value);
}
/**
* Constructs an enumerated element with the input stream.
* @param stream input stream from which to decode
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from array
* @exception IOException failed to construct
*/
public BEREnumerated(InputStream stream, int[] bytes_read)
throws IOException {
super(stream, bytes_read);
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.ENUMERATED;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "Enumerated {" + getValue() + "}";
}
}

View File

@@ -1,83 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Integer object.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x02
* length = (short or long form)
* one or more contents octets hold integer
* value in two's complement
*
* Example 1: (zero)
* 02 01 00
* Example 2: (1)
* 02 01 01
* Example 3: (300 - short form)
* 02 02 01 2C
* Example 4: (300 - long form)
* 02 84 00 00 01 2C
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERInteger extends BERIntegral {
/**
* Constructs a integer element.
* @param value integer value
*/
public BERInteger(int value) {
super(value);
}
/**
* Constructs an integer element with the input stream.
* @param stream input stream
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERInteger(InputStream stream, int[] bytes_read) throws IOException {
super(stream, bytes_read);
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.INTEGER;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "Integer {" + getValue() + "}";
}
}

View File

@@ -1,175 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This is the base class for integral types such as Integer and
* Enumerated.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = << depends on type >>
* length = (short or long form)
* one or more contents octets hold integral value
* value in two's complement
*
* Example 1: (Integer - zero)
* 02 01 00
* Example 2: (Enumerated - 1)
* 0A 01 01
* Example 3: (Integer - 300, short form)
* 02 02 01 2C
* Example 4: (Integer - 300, long form)
* 02 84 00 00 01 2C
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public abstract class BERIntegral extends BERElement {
/**
* Value of element
*/
private int m_value;
/**
* Constructs an integral type with a value.
* @param value integer value
*/
public BERIntegral(int value) {
m_value = value;
}
/**
* Constructs an integral element from an input stream.
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERIntegral(InputStream stream, int[] bytes_read) throws IOException {
int contents_length = super.readLengthOctets(stream, bytes_read);
/* Definite length content octets string. */
if (contents_length > 0) {
boolean negative = false;
int octet = stream.read();
bytes_read[0]++;
if ((octet & 0x80) > 0) /* left-most bit is 1. */
negative = true;
for (int i = 0; i < contents_length; i++) {
if (i > 0) {
octet = stream.read();
bytes_read[0]++;
}
if (negative)
m_value = (m_value<<8) + (int)(octet^0xFF)&0xFF;
else
m_value = (m_value<<8) + (int)(octet&0xFF);
}
if (negative) /* convert to 2's complement */
m_value = (m_value + 1) * -1;
}
}
/**
* Writes BER to stream.
* @param stream output stream
* @exception IOException on failure to write
*/
public void write(OutputStream stream) throws IOException {
int binary_value = m_value;
int num_content_octets = 0;
int total_ber_octets;
int offset=1;
int lead;
int i;
byte[] content_octets = new byte[10]; /* should be plenty big */
byte[] net_octets = new byte[10]; /* pse need this in network order */
/* Get content octets - need to determine length */
if (m_value == 0) {
num_content_octets = 1;
content_octets[offset] = (byte)0x00;
net_octets[offset] = (byte)0x00;
} else {
if (m_value < 0) /* convert from 2's complement */
binary_value = (m_value * -1) -1;
do {
if (m_value < 0)
content_octets[num_content_octets+offset] =
(byte)((binary_value^0xFF)&0xFF);
else
content_octets[num_content_octets+offset] =
(byte)(binary_value&0xFF);
binary_value = (binary_value>>8);
num_content_octets++;
} while (binary_value > 0);
/* pse 1/16/96 we've just created a string that is in non-network order
flip it for net order */
for (i=0; i<num_content_octets; i++)
net_octets[offset+num_content_octets-1-i] = content_octets[offset+i];
/* pse 1/16/96 if we have the value encoded and the leading encoding bit is set
then stuff in a leading zero byte */
lead = (int)net_octets[offset];
if ((m_value > 0) && ((lead & 0x80) > 0)) {
offset = 0;
net_octets[offset] = (byte)0x00;
num_content_octets++;
}
}
stream.write(getType());
sendDefiniteLength(stream, num_content_octets);
stream.write(net_octets,offset,num_content_octets); /* contents */
}
/**
* Gets the integral value.
* @return element value.
*/
public int getValue() {
return m_value;
}
/**
* Gets the element type.
* @return element type.
*/
public abstract int getType();
/**
* Gets the string representation.
* @return string representation of tag.
*/
public abstract String toString();
}

View File

@@ -1,87 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the NULL type.
*
* <pre>
* ENCODING RULE:
* tag = 0x05
* length value is zero (short or long form).
* no contents
*
* Example 1: (short form)
* 05 00
* Example 2: (long form)
* 05 81 00
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERNull extends BERElement {
/**
* Constructs a NULL element.
*/
public BERNull() {
}
/**
* Constructs a null element from an input stream.
* @param stream input stream from socket
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERNull(InputStream stream, int[] bytes_read) throws IOException {
/* The result should be zero of course */
readLengthOctets(stream,bytes_read);
}
/**
* Sends the BER encoding directly to stream.
* @param stream output stream
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
byte[] buffer = new byte[2];
buffer[0] = (byte)BERElement.NULL; /* NULL tag */
buffer[1] = 0x00; /* length */
stream.write(buffer);
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.NULL;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
return "Null {}";
}
}

View File

@@ -1,98 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the NumericString type.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x12
* length = (short or long form)
* one or more contents octets
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERNumericString extends BERCharacterString {
/**
* Constructs a numeric string element from a string
* @param buffer string with value of element
*/
public BERNumericString(String string) {
m_value = string;
}
/**
* Constructs a numeric string element from a byte array
* @param buffer buffer
*/
public BERNumericString(byte[] buffer) {
super(buffer);
}
/**
* Constructs a numeric string element from an input stream
* (for constructed encoding)
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERNumericString(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
super(decoder,stream,bytes_read);
}
/**
* Constructs a numericstring element from an input stream
* (for primitive encoding)
* @param stream input stream
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERNumericString(InputStream stream, int[] bytes_read)
throws IOException {
super(stream,bytes_read);
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.NUMERICSTRING;
}
/**
* Gets the string representation. Note that currently prints out
* values in decimal form.
* @return string representation of tag.
*/
public String toString() {
if (m_value == null)
return "NumericString (null)";
else
return "NumericString {" + m_value + "}";
}
}

View File

@@ -1,188 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.util.StringTokenizer;
import java.io.*;
/**
* This class is for the Object ID object.
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERObjectId extends BERElement {
/**
* Values of each component of the OID
*/
private int[] m_value = null;
/**
* Constructs an object ID element from an array of values.
* @param value object ID value as array of components
*/
public BERObjectId(int[] value) {
m_value = new int[value.length];
System.arraycopy(value,0,m_value,0,value.length);
}
/**
* Constructs an object id element from a string.
* @param value object id value in format "2.100.3"
*/
public BERObjectId(String value) {
StringTokenizer tokenizer = new StringTokenizer(value, ".");
m_value = new int[tokenizer.countTokens()];
for (int i=0; i<m_value.length; i++)
m_value[i] = Integer.parseInt(tokenizer.nextToken());
}
/**
* Constructs an object id element from an input stream.
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERObjectId(InputStream stream, int[] bytes_read) throws IOException {
int contents_length = super.readLengthOctets(stream, bytes_read);
bytes_read[0] += contents_length;
int[] contents_read = new int[1];
Vector oid = new Vector(10);
contents_read[0] = 0;
int sub_id = readSubIdentifier(stream, contents_read);
contents_length -= contents_read[0];
if (sub_id < 40)
oid.addElement(new Integer(0));
else if (sub_id < 80)
oid.addElement(new Integer(1));
else
oid.addElement(new Integer(2));
oid.addElement(new Integer(
sub_id - (((Integer)oid.elementAt(
oid.size()-1)).intValue() * 40)));
while (contents_length > 0) {
contents_read[0] = 0;
sub_id = readSubIdentifier(stream, contents_read);
contents_length -= contents_read[0];
oid.addElement(new Integer(sub_id));
}
m_value = new int[oid.size()];
for (int i = 0; i<oid.size(); i++)
m_value[i] = ((Integer)oid.elementAt(i)).intValue();
}
/**
* Sends the BER encoding directly to a stream. Note that OID must
* have >= 2 identifier components (values).
* @param stream output stream
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
stream.write(BERElement.OBJECTID);
ByteArrayOutputStream contents_stream = new ByteArrayOutputStream();
/* first subidentifier packs two component values */
writeSubIdentifier(contents_stream,m_value[0]*40 + m_value[1]);
for (int i = 2; i < m_value.length; i++) {
writeSubIdentifier(contents_stream,m_value[i]);
}
byte[] contents_buffer = contents_stream.toByteArray();
sendDefiniteLength(stream, contents_buffer.length);
stream.write(contents_buffer);
}
/**
* Reads a sub identifier from stream.
* @param stream input stream
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream
*/
private int readSubIdentifier(InputStream stream, int[] bytes_read)
throws IOException {
int octet;
int sub_id = 0;
do {
octet = stream.read();
bytes_read[0]++;
sub_id = (sub_id << 7) | (octet & 0x7F);
} while ((octet & 0x80) > 0);
return sub_id;
}
/**
* Sends the BER encoding of a sub identifier directly to stream.
* @param stream output stream
* @param value sub-identifier value
*/
private void writeSubIdentifier(OutputStream stream, int value)
throws IOException {
ByteArrayOutputStream sub_id_stream = new ByteArrayOutputStream();
/* gather octets in reverse order */
while (value > 0) {
sub_id_stream.write(value & 0x7F);
value = value >> 7;
}
byte[] sub_id_buffer = sub_id_stream.toByteArray();
for (int i=sub_id_buffer.length-1; i>0; i--) {
/* all but last octet have bit 8 = 1 */
stream.write(sub_id_buffer[i] | 0x80);
}
stream.write(sub_id_buffer[0]); /* last octet has bit 8 = 0 */
}
/**
* Gets the element value.
* @return element value.
*/
public int[] getValue() {
return m_value;
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.OBJECTID;
}
/**
* Gets the string representation.
* @return string representation of element.
*/
public String toString() {
if (m_value == null)
return "ObjectIdentifier (null)";
String oid = "";
for (int i = 0; i < m_value.length; i++) {
if (i != 0)
oid = oid + " ";
oid = oid + m_value[i];
}
return "ObjectIdentifier {" + oid + "}";
}
}

View File

@@ -1,197 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the OctetString type.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x04
* length = (short or long form)
* one or more contents octets
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BEROctetString extends BERElement {
/**
* Raw value of element
*/
private byte[] m_value = null;
/**
* Constructs an octet string element containing a copy of
* the contents of buffer.
* @param buffer a UCS-2 String
*/
public BEROctetString(String buffer) {
if (buffer == null)
return;
try {
m_value = buffer.getBytes( "UTF8" );
} catch (Throwable xxx){};
}
/**
* Constructs an octet string element containing a reference to
* buffer.
* @param buffer a byte array, which must be in UTF-8 format if
* it is string data
*/
public BEROctetString(byte[] buffer) {
m_value = buffer;
}
/**
* Constructs an octet string element containing a
* subset of buffer.
* @param buffer buffer containing 'octets'
* @param start start of buffer range to copy
* @param end end of buffer range to copy
*/
public BEROctetString(byte[] buffer, int start, int end) {
m_value = new byte[end - start];
for (int i = 0; i < end - start; i++)
m_value[i] = buffer[start + i];
}
/**
* Constructs an octet string element from an input stream
* (for constructed encoding)
* @param decoder a decode that understands the specific tags
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BEROctetString(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
int octet;
int contents_length = super.readLengthOctets(stream, bytes_read);
int[] component_length = new int[1];
BERElement element = null;
if (contents_length == -1) {
/* Constructed - indefinite length content octets. */
do {
component_length[0] = 0;
element = getElement(decoder,stream,component_length);
if (element != null) {
/* element is an octetstring - add it to the existing buffer */
BEROctetString octet_element = (BEROctetString)element;
byte[] octet_buffer = octet_element.getValue();
if (m_value == null) {
m_value = new byte[octet_buffer.length];
System.arraycopy(octet_buffer,0,
m_value,0,octet_buffer.length);
} else {
byte[] new_buffer = new byte[m_value.length +
octet_buffer.length];
System.arraycopy(m_value,0,new_buffer,0,m_value.length);
System.arraycopy(octet_buffer,0,
new_buffer,m_value.length,
octet_buffer.length);
m_value = new_buffer;
}
}
} while (element != null);
} else {
/* Definite length content octets string. */
bytes_read[0] += contents_length;
m_value = new byte[contents_length];
stream.read(m_value, 0, contents_length);
}
}
/**
* Constructs an octet string element from an input stream
* (for primitive encoding)
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BEROctetString(InputStream stream, int[] bytes_read)
throws IOException {
int contents_length = super.readLengthOctets(stream, bytes_read);
/* Definite length content octets string. */
if (contents_length > 0) {
m_value = new byte[contents_length];
for (int i = 0; i < contents_length; i++) {
m_value[i] = (byte) stream.read();
}
bytes_read[0] += contents_length;
}
}
/**
* Writes BER to stream
* @return number of bytes written to stream.
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
stream.write((byte)BERElement.OCTETSTRING); /* OCTETSTRING tag */
if (m_value == null) {
sendDefiniteLength(stream, 0);
} else {
sendDefiniteLength(stream, m_value.length); /* length */
stream.write(m_value,0,m_value.length); /* contents */
}
}
/**
* Gets the element value.
* @param element value
*/
public byte[] getValue() {
return m_value;
}
/**
* Gets the element type.
* @param element type
*/
public int getType() {
return BERElement.OCTETSTRING;
}
/**
* Gets the string representation.
* NOTE: currently prints out values in decimal form.
* @return string representation of tag.
*/
public String toString() {
if (m_value == null)
return "OctetString (null)";
String octets = "";
for (int i = 0; i < m_value.length; i++) {
if (i != 0)
octets = octets + " ";
octets = octets + byteToHexString(m_value[i]);
}
return "OctetString {" + octets + "}";
}
}

View File

@@ -1,98 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the PrintableString type.
*
* <pre>
* ENCODING RULE:
* Primitive Definite length.
* tag = 0x13
* length = (short or long form)
* one or more contents octets
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERPrintableString extends BERCharacterString {
/**
* Constructs a printable string element containing buffer.
* @param buffer string value
*/
public BERPrintableString(String string) {
m_value = string;
}
/**
* Constructs a printables tring element from buffer.
* @param buffer byte array value
*/
public BERPrintableString(byte[] buffer) {
super(buffer);
}
/**
* Constructs a printable string element from an input stream
* (for constructed encoding)
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERPrintableString(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
super(decoder,stream,bytes_read);
}
/**
* Constructs a printablestring element from an input stream
* (for primitive encoding)
* @param stream source
* @param bytes_read array of 1 int, incremented by number of bytes read
* @exception IOException failed to construct
*/
public BERPrintableString(InputStream stream, int[] bytes_read)
throws IOException {
super(stream,bytes_read);
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.PRINTABLESTRING;
}
/**
* Gets the string representation. Note that it prints out
* values in decimal form.
* @return string representation of tag.
*/
public String toString() {
if (m_value == null)
return "PrintableString (null)";
else
return "PrintableString {" + m_value + "}";
}
}

View File

@@ -1,209 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Real object.
*
* <pre>
* ENCODING RULE:
* tag = 0x09
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERReal extends BERElement {
/**
* Constants: special ASN.1 real values
*/
public final static float PLUS_INFINITY = 1.0f/0.0f;
public final static float MINUS_INFINITY = -1.0f/0.0f;
/**
* Value of element
*/
private float m_value = 0;
/**
* Constructs a real element with a value
* @param value float value
*/
public BERReal(float value) {
m_value = value;
}
/**
* Constructs a real element from an input stream.
* @param stream source
* @param bytes_read array of 1 int; value incremented by
* number of bytes read from stream.
* @exception IOException failed to construct
*/
public BERReal(InputStream stream, int[] bytes_read) throws IOException {
int length = super.readLengthOctets(stream, bytes_read);
if (length == 0)
/* zero length indicates value is zero */
m_value = 0;
else {
int octet = stream.read(); /* first content octet */
bytes_read[0]++;
if (octet == 0x40) /* bit 8 = 1 */
m_value = PLUS_INFINITY;
else if (octet == 0x41) /* bit 8 = 1 and bit 1 = 1 */
m_value = MINUS_INFINITY;
else if ((octet & 0x80) > 0) {
/* bit 8 = 1 */
/* Binary encoding */
/* M = S*N*2F where S = -1 or 1, 0<= F <= 3. */
int sign;
int base;
int number;
int f; /* binary scaling factor */
int exponent;
int mantissa;
int num_exponent_octets;
int contents_length_left;
if ((octet & 0x40) > 0) sign = -1;
else sign = 1;
if ((octet & 0x20) > 0) {
if ((octet & 0x10) > 0) {
/* bits 6+5 = 11 */
/* reserved for future use */
base = 0;
} else {
/* bits 6+5 = 10 */
base = 16;
}
} else if ((octet & 0x10) > 0) {
/* bits 6+5 = 01 */
base = 8;
} else {
/* bits 6+5 = 00 */
base = 2;
}
if ((octet & 0x08) > 0) {
if ((octet & 0x04) > 0) {
/* bits 4+3 = 11 */
f = 3;
} else {
/* bits 4+3 = 10 */
f = 2;
}
} else if ((octet & 0x04) > 0) {
/* bits 4+3 = 01 */
f = 1;
} else {
/* bits 4+3 = 00 */
f = 0;
}
if ((octet & 0x02) > 0) {
if ((octet & 0x01) > 0) {
/* bits 2+1 = 11 */
/* Following octet encodes the number of octets used to
* encode the exponent.
*/
num_exponent_octets = stream.read();
bytes_read[0]++;
exponent = readTwosComplement(stream,bytes_read,num_exponent_octets);
} else {
/* bits 2+1 = 10 */
num_exponent_octets = 3;
exponent = readTwosComplement(stream,bytes_read,num_exponent_octets);
}
} else if ((octet & 0x01) > 0) {
/* bits 2+1 = 01 */
num_exponent_octets = 2;
exponent = readTwosComplement(stream,bytes_read,num_exponent_octets);
} else {
/* bits 2+1 = 00 */
num_exponent_octets = 1;
exponent = readTwosComplement(stream,bytes_read,num_exponent_octets);
}
contents_length_left = length - 1 - num_exponent_octets;
number = readUnsignedBinary(stream, bytes_read, contents_length_left);
mantissa = (int)(sign * number * Math.pow(2, f));
m_value = mantissa * (float)Math.pow((double)base,(double)exponent);
} else {
/* bits 8 + 7 = 00 */
/* ISO 6093 field */
/*** NOTE: It has been agreed that this feature will
* not be provided right now.
*/
throw new IOException("real ISO6093 not supported. ");
}
}
}
/**
* Sends the BER encoding directly to a stream.
* @param stream output stream
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
if (m_value == 0) {
stream.write(BERElement.REAL);
stream.write(0x00); /* length */
} else if (m_value == PLUS_INFINITY) {
stream.write(BERElement.REAL);
stream.write(0x01); /* length */
stream.write(0x40); /* contents */
} else if (m_value == MINUS_INFINITY) {
stream.write(BERElement.REAL);
stream.write(0x01); /* length */
stream.write(0x41); /* contents */
} else {
/* Non-special real value */
/* NOTE: currently always sends as a base 2 binary encoding
* (see X.2 09 section 10.5.)
*
* M = S * N * 2F
*
* Simple encoding always uses F = 1.
*/
// bcm - incomplete.
}
}
/**
* Gets the element type.
* @return element type
*/
public int getType() {
return BERElement.REAL;
}
/**
* Gets the string representation.
* @return string representation of tag
*/
public String toString() {
return "Real {" + m_value + "}";
}
}

View File

@@ -1,78 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Sequence object. A sequence object can
* contains a sequence of BER Elements.
*
* <pre>
* ENCODING RULE:
* tag = 0x30 (always constructed)
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERSequence extends BERConstruct {
/**
* Constructs a sequence element.
*/
public BERSequence() {
super();
}
/**
* Constructs a sequence element from an input stream.
* @param decoder application-specific BER decoder
* @param stream input stream from which to read BER
* @param bytes_read array of 1 int; value is incremented by
* number of bytes read from stream
* @exception IOException failed to construct
*/
public BERSequence(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
super(decoder, stream, bytes_read);
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.SEQUENCE;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
String elements = "";
for (int i = 0; i < super.size(); i++) {
if (i != 0)
elements = elements + ", ";
elements = elements + ((BERElement)super.elementAt(i)).toString();
}
return "Sequence {" + elements + "}";
}
}

View File

@@ -1,86 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1999 Netscape Communications Corporation. All Rights
* Reserved.
*/
package netscape.ldap.ber.stream;
import java.util.*;
import java.io.*;
/**
* This class is for the Set object. A set object can contain
* a set of BER elements.
*
* <pre>
* ENCODING RULE:
* tag = 0x31 (always constructed)
* </pre>
*
* @version 1.0
* @seeAlso CCITT X.209
*/
public class BERSet extends BERConstruct {
/**
* Constructs a set element.
* @exception failed to construct
*/
public BERSet() throws IOException {
}
/**
* Constructs a set element from an input stream.
* @param decoder decoder for application-specific BER
* @param stream source
* @param bytes_read array of 1 int; value incremented by number
* of bytes read from stream
* @exception IOException failed to construct
*/
public BERSet(BERTagDecoder decoder, InputStream stream,
int[] bytes_read) throws IOException {
super(decoder, stream,bytes_read);
}
/**
* Sends the BER encoding directly to a stream.
* @param stream output stream
* @exception IOException failed to write
*/
public void write(OutputStream stream) throws IOException {
super.write(stream);
}
/**
* Gets the element type.
* @return element type.
*/
public int getType() {
return BERElement.SET;
}
/**
* Gets the string representation.
* @return string representation of tag.
*/
public String toString() {
String elements = "";
for (int i = 0; i < super.size(); i++) {
if (i != 0)
elements = elements + ", ";
elements = elements + ((BERElement)super.elementAt(i)).toString();
}
return "Set {" + elements + "}";
}
}

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