Compare commits

..

2060 Commits

Author SHA1 Message Date
(no author)
e7686eebad This commit was manufactured by cvs2svn to create tag 'WHH-6-17_BASE'.
git-svn-id: svn://10.0.0.236/tags/WHH-6-17_BASE@35819 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 21:41:27 +00:00
warren%netscape.com
8ebb857660 Made MakeAbsolute just return the input URI if it's already absolute.
git-svn-id: svn://10.0.0.236/trunk@35818 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 21:41:26 +00:00
mcmullen%netscape.com
d9766367d5 Fix for #7902 and #8090
git-svn-id: svn://10.0.0.236/trunk@35817 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 21:35:59 +00:00
slamm%netscape.com
927b24dc40 Hack link on panel so it loads in the main content area for M7.
git-svn-id: svn://10.0.0.236/trunk@35816 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 20:50:52 +00:00
waterson%netscape.com
a1126bff88 Bug 8221. Fix false positive on the leak grep radar.
git-svn-id: svn://10.0.0.236/trunk@35813 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:49:05 +00:00
waterson%netscape.com
f89f2a350d Bug 8221. Fix to get off the leak radar.
git-svn-id: svn://10.0.0.236/trunk@35812 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:47:21 +00:00
varada%netscape.com
7883b5d2a2 adding help to show example pages
git-svn-id: svn://10.0.0.236/trunk@35811 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:25:42 +00:00
rickg%netscape.com
9972377ad2 fixed ToInteger (again) and eliminate bug 8140
git-svn-id: svn://10.0.0.236/trunk@35810 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:15:57 +00:00
andreas.otte%primus-online.de
daf6861e60 adding hack to change PUBLIC variable
This has no effect until some other changes to SeaMonkey


git-svn-id: svn://10.0.0.236/trunk@35809 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:07:58 +00:00
varada%netscape.com
eca7a6ae1e clhelp.txt
git-svn-id: svn://10.0.0.236/trunk@35808 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:06:53 +00:00
varada%netscape.com
0016d15c84 help ini files
git-svn-id: svn://10.0.0.236/trunk@35807 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:06:29 +00:00
andreas.otte%primus-online.de
06481dcaab some more ignorance
git-svn-id: svn://10.0.0.236/trunk@35806 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 19:00:56 +00:00
varada%netscape.com
4a73019098 wizardmachine.rc
git-svn-id: svn://10.0.0.236/trunk@35805 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 18:49:51 +00:00
andreas.otte%primus-online.de
8565f8d329 adding resource makefiles
git-svn-id: svn://10.0.0.236/trunk@35804 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 18:21:05 +00:00
andreas.otte%primus-online.de
11f082290c renaming library from fileprotocol to resourceprotocol
adding hack to change PUBLIC variable


git-svn-id: svn://10.0.0.236/trunk@35803 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 18:20:13 +00:00
varada%netscape.com
bb00cb0945 change to button name
git-svn-id: svn://10.0.0.236/trunk@35802 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 17:56:19 +00:00
sspitzer%netscape.com
e621136f16 change the start page until #7417 gets fixed. a=hofmann
git-svn-id: svn://10.0.0.236/trunk@35801 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 15:16:47 +00:00
morse%netscape.com
ee3621104d fix M7 bug 8341 -- approved chofmann
git-svn-id: svn://10.0.0.236/trunk@35800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 14:38:56 +00:00
warren%netscape.com
fce56036f0 Fixed refcount problem in Clone.
git-svn-id: svn://10.0.0.236/trunk@35799 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 10:11:58 +00:00
warren%netscape.com
d3663c46e3 Fixed refcount problem.
git-svn-id: svn://10.0.0.236/trunk@35798 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 10:11:35 +00:00
warren%netscape.com
a4f314b7ff Added resource: protocol.
git-svn-id: svn://10.0.0.236/trunk@35797 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 09:24:31 +00:00
warren%netscape.com
b00e37509d cleanup
git-svn-id: svn://10.0.0.236/trunk@35796 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 09:24:11 +00:00
warren%netscape.com
3243f56af3 fixed refcount problem
git-svn-id: svn://10.0.0.236/trunk@35795 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 09:23:34 +00:00
warren%netscape.com
a946fddf22 Added QI for nsIURL
git-svn-id: svn://10.0.0.236/trunk@35794 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 09:23:05 +00:00
sspitzer%netscape.com
fcc87d468e clean up README a little
git-svn-id: svn://10.0.0.236/trunk@35787 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 08:24:57 +00:00
sspitzer%netscape.com
a40b125986 not part of build.
git-svn-id: svn://10.0.0.236/trunk@35785 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 08:21:10 +00:00
rpotts%netscape.com
f5545d55c1 I'm beginning to rework this test to handle multiple URL loads... This is WIP :-)
git-svn-id: svn://10.0.0.236/trunk@35784 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 07:46:00 +00:00
rickg%netscape.com
9cc8c710fd approved update
git-svn-id: svn://10.0.0.236/trunk@35783 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 07:24:13 +00:00
rickg%netscape.com
e9da222324 approved fix
git-svn-id: svn://10.0.0.236/trunk@35782 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 07:08:30 +00:00
dveditz%netscape.com
3da4ad9be3 commenting out XPIDLSRCS until mystery CVS problem on Tinderbox is solved. We aren't building on Unix yet anyway
git-svn-id: svn://10.0.0.236/trunk@35777 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 06:01:12 +00:00
racham%netscape.com
c063552f59 Modified page title.
git-svn-id: svn://10.0.0.236/trunk@35776 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 05:29:06 +00:00
racham%netscape.com
bf6586b554 Modified page title. Modified some command parameters
git-svn-id: svn://10.0.0.236/trunk@35775 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 05:20:45 +00:00
racham%netscape.com
89b2ecc807 Removed the title to the base dialog to make it dynamic. inifile supplies the value.
git-svn-id: svn://10.0.0.236/trunk@35774 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:48:16 +00:00
racham%netscape.com
5691564e80 Fixed bug 4975 and enabled picking page titles from ini files
git-svn-id: svn://10.0.0.236/trunk@35773 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:44:53 +00:00
racham%netscape.com
8c6130f264 Fixed bugs 8258, 6218
git-svn-id: svn://10.0.0.236/trunk@35772 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:42:40 +00:00
kin%netscape.com
3c230ce015 Fix for bug #8375: Editor API Log fails to set paragraph style.
Changed "window.editorShell.SetParagraphStyle(" to "window.editorShell.paragraphStyle =".
Approved by chofmann.


git-svn-id: svn://10.0.0.236/trunk@35771 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:40:08 +00:00
waterson%netscape.com
eb2017c427 Bug 8367. Remove cruft after '#endif' to make HP compiler happy. Thanks, Bruce. a=chofmann
git-svn-id: svn://10.0.0.236/trunk@35770 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:37:05 +00:00
waterson%netscape.com
9faa9cb223 Bug 7026. Make GetTarget() return the first child of a directory. Plus clean up the mess I've made of RJC's spaces.
git-svn-id: svn://10.0.0.236/trunk@35769 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:13:39 +00:00
pierre%netscape.com
76630b14c1 In GetDrawingSurface(), erase the drawing surface when it is re-used.
3455: [PP] mac/linux, dual toolbars appear after surfing.
6989: Multiple window drawing gets messed up.
6678: [PP]clipping/port problems in child dialogs.
5560: [PP] CornerView displays garbage.


git-svn-id: svn://10.0.0.236/trunk@35768 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 04:01:50 +00:00
dougt%netscape.com
1f099440ac Bug 8311 mac project files
git-svn-id: svn://10.0.0.236/trunk@35767 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 03:51:17 +00:00
warren%netscape.com
b955f8f621 Added missing addref
git-svn-id: svn://10.0.0.236/trunk@35766 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 03:38:49 +00:00
warren%netscape.com
a92a6d3b89 Fixed GetPort
git-svn-id: svn://10.0.0.236/trunk@35765 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 03:38:23 +00:00
dveditz%netscape.com
253c1dcf34 Bug #8311 XPInstall triggers not working. a chofmann, r cathleen
git-svn-id: svn://10.0.0.236/trunk@35764 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 03:36:50 +00:00
amasri%netscape.com
7b33bcaa8e added extra tests for version 2.0
added timing changes to help stabilize bitmap
added functional tests for version 2.0
added error handling to account for windows not opening completely
changed default URL loading method to Mozilla.LoadURL() NOTE: Smoketest is now dependant only on correct button positions for "OpenFile" dialog.
added full path OpenFile() capabilities on mac, plus String2List utility to permit graphic file interface to be manipulated


git-svn-id: svn://10.0.0.236/trunk@35763 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:53:18 +00:00
amasri%netscape.com
e3ad6958f9 changed Invoke() method to give better error messages
changed iBitmapWait to 90 to account for i18n sites
changed default home page to "Navigator Help"
changed sDir to full path from relative path NOTE: must be changed for each machine it runs on


git-svn-id: svn://10.0.0.236/trunk@35762 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:53:15 +00:00
amasri%netscape.com
2915043876 added extra tests for version 2.0
added i18n tests
changed expected file names
added ender tests
added functional tests for version 2.0


git-svn-id: svn://10.0.0.236/trunk@35761 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:53:12 +00:00
pinkerton%netscape.com
ae3e96aa5e remove NEW_DRAG_AND_DROP define since it's obsolete now. reviewed mcafee, appr chofmann.
git-svn-id: svn://10.0.0.236/trunk@35760 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:48:29 +00:00
saari%netscape.com
5a4b85ed88 Fixing Bug #8328, keybinding fix
git-svn-id: svn://10.0.0.236/trunk@35759 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:48:22 +00:00
mcafee%netscape.com
063677e6e9 Adding beeptest to XPToolkit test menu, a=leaf.
git-svn-id: svn://10.0.0.236/trunk@35758 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:21:08 +00:00
slamm%netscape.com
4fc3ad4e08 Prefs have some problems with our windows builds. Bug #8265. Make so the sidebar can be opened even when prefs cannot save the open/close state.
git-svn-id: svn://10.0.0.236/trunk@35756 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:18:53 +00:00
mcafee%netscape.com
57eaa41a12 Adding beeptest.html to the test suite.
git-svn-id: svn://10.0.0.236/trunk@35755 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 01:12:15 +00:00
beard%netscape.com
f348dd8ed2 Bug #5677: Reenabled drawing images referenced by <OBJECT> tags, fixed a crashing bug on the Mac as a result.
a=chofmann, r=pierre


git-svn-id: svn://10.0.0.236/trunk@35754 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 00:58:07 +00:00
cbegle%netscape.com
a910491319 Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=7635.
Rename files for consistency.

These files are not part of the client.


git-svn-id: svn://10.0.0.236/trunk@35753 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 00:20:04 +00:00
mcafee%netscape.com
ab08e086d4 Adding nsSound. Fixing NT bustage
git-svn-id: svn://10.0.0.236/trunk@35752 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 00:12:43 +00:00
mcafee%netscape.com
29d756c2f5 Adding nsSound. Fixing linux bustage
git-svn-id: svn://10.0.0.236/trunk@35750 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-17 00:12:18 +00:00
sfraser%netscape.com
53026171ea Fix for bug 8317 -- leaked caret causes crash. r mjudge, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35749 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:55:48 +00:00
beard%netscape.com
9d49b0ba5e bug #5352: navigator.javaEnabled() now returns false if the "security.enable_java" preference is undefined, which it is if the "Advanced" preferences dialog has never been run, or you're running under viewer.
a=chofmann, r=vidur


git-svn-id: svn://10.0.0.236/trunk@35748 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:40:41 +00:00
jfrancis%netscape.com
fab90f1e90 bug 8300; rvd: floppy moose; aprvd: chofmann
git-svn-id: svn://10.0.0.236/trunk@35747 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:40:16 +00:00
sdagley%netscape.com
0003b6a218 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35745 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:24:25 +00:00
sdagley%netscape.com
c44cbc1fa7 Finish landing XP Beep() functionality (bug #6911). Approved chofmann, reviewed saari & mcafee.
git-svn-id: svn://10.0.0.236/trunk@35744 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 23:23:45 +00:00
ducarroz%netscape.com
22c674eb88 Fix for bug 7508, A=chofmann, R=bienvenu
git-svn-id: svn://10.0.0.236/trunk@35743 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 22:58:02 +00:00
joki%netscape.com
487055f223 Fix for bug 8270. A:chofmann Reenable key events to control tabbing/scrolling
git-svn-id: svn://10.0.0.236/trunk@35742 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 22:52:16 +00:00
ramiro%netscape.com
9de8beddf7 Fix for bug 6159. Reviewed by pollmann and approved by leaf.
Form check boxes were out of whack by one.  I removed the pathetically lame
hack i added before (which didn't work) and added a new and improved
pathetically dumb hack that really fixes the problem.  Yes folks, toggle
the toggle button 3 times to work around artificial intelligence in the
gtktogglebutton widget.


git-svn-id: svn://10.0.0.236/trunk@35740 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 22:24:18 +00:00
evaughan%netscape.com
34263a8ca6 Added some scrollbar samples.
git-svn-id: svn://10.0.0.236/trunk@35739 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 22:20:29 +00:00
ssu%netscape.com
d983fb8d2e backed out previous checkin due to tree closure
git-svn-id: svn://10.0.0.236/trunk@35738 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:54:13 +00:00
ssu%netscape.com
d852045e1f ifdef'ed all calls to PR_Seek() for the standalone build
git-svn-id: svn://10.0.0.236/trunk@35737 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:47:58 +00:00
cmanske%netscape.com
8fd6a9796d Fixed bug 8281. Reviewed by sfraser, approved by chofmann
git-svn-id: svn://10.0.0.236/trunk@35736 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:45:38 +00:00
jfrancis%netscape.com
a84649ba07 bug 8287; rvd sfraser; aprvd buster; aprvd chofmann
git-svn-id: svn://10.0.0.236/trunk@35735 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:38:51 +00:00
jfrancis%netscape.com
1b33a49066 bug 8303; rvd kin; aprvd buster; aprvd chofmann
git-svn-id: svn://10.0.0.236/trunk@35734 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:38:04 +00:00
kin%netscape.com
ba3ef45bce Fix for bug #8306: [PP] Need to enable Editor API Logging on the Mac
Uncommented out define for ENABLE_JS_EDITOR_LOG.
Approved by chofmann@netscape.com.


git-svn-id: svn://10.0.0.236/trunk@35733 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:30:16 +00:00
briano%netscape.com
2ebf347236 Automated update
git-svn-id: svn://10.0.0.236/trunk@35732 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:29:54 +00:00
kin%netscape.com
00d6da8b0d Fix for bug #8309: Need to Flush() during Editor API Logging.
git-svn-id: svn://10.0.0.236/trunk@35731 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:27:46 +00:00
briano%netscape.com
50606b8e34 Duh. Forgot to add the AC_SUBST line for MOZ_NSPRENV_CLASSIC_NSPR. Kind of necessary to complete bug 7567....
git-svn-id: svn://10.0.0.236/trunk@35730 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:27:14 +00:00
sfraser%netscape.com
b798ce46a3 Fix for 6345 - opening local files in editor. r kin, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35729 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:05:08 +00:00
akkana%netscape.com
e413aafe07 8283: Fix crash because selectin wasn't initialized. r=sfraser/a=leaf
git-svn-id: svn://10.0.0.236/trunk@35728 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 21:02:25 +00:00
sspitzer%netscape.com
f3fe6c6d13 fix for #8249 to get card pane to work on linux.
I had to remove NO_GET_XPT=1 line from Makefile.in.

This was causing the following error at run time:

JavaScript error: uncaught exception: Could not convert JavaScript argument (NULL value can not be used for a C++ reference type) arg 0 [nsIRDFResource.QueryInterface, {file: file:////builds/sspitzer/MOZILLA/06.16.1999/04.30/mozilla/dist/bin/chrome/addressbook/content/default/resultPane.xul, line: 160}]


git-svn-id: svn://10.0.0.236/trunk@35727 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 20:14:31 +00:00
andreas.otte%primus-online.de
8f551f726b adding urltest and TestFileInput2 to the unix build
git-svn-id: svn://10.0.0.236/trunk@35726 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 19:51:14 +00:00
cbegle%netscape.com
e5616ebbdb Add regression test for http://bugzilla.mozilla.org/show_bug.cgi?id=4088,
Date.parse.

Not built in the client.


git-svn-id: svn://10.0.0.236/trunk@35725 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 19:25:05 +00:00
andreas.otte%primus-online.de
b103483ab5 resurrected
git-svn-id: svn://10.0.0.236/trunk@35723 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 17:43:28 +00:00
valeski%netscape.com
a248ada3dd CHECKIN NOT ON MAIN PULL: removed the cookie module dependency on the HTTPResponse interface.
git-svn-id: svn://10.0.0.236/trunk@35722 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 14:49:25 +00:00
rpotts%netscape.com
fd02c25f8b Added an if check around the call out through the event sink...
git-svn-id: svn://10.0.0.236/trunk@35721 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 09:50:30 +00:00
rpotts%netscape.com
18957e4484 Separated the Event Sink from the nsIStreamListener...
git-svn-id: svn://10.0.0.236/trunk@35720 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 09:40:40 +00:00
dveditz%netscape.com
9c2c527f01 chasing the tree, not part of build
git-svn-id: svn://10.0.0.236/trunk@35719 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 07:03:36 +00:00
sspitzer%netscape.com
e19ef83fb5 clean up the interfaces I'll need to remove the message from the db after
the user hits cancel.  add newlines to ends of files.  remove old bogus code.


git-svn-id: svn://10.0.0.236/trunk@35718 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 07:00:47 +00:00
rjc%netscape.com
39691919cd Work around bug #8278.
git-svn-id: svn://10.0.0.236/trunk@35717 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:58:40 +00:00
sfraser%netscape.com
34c398fd4f delete[] -> PR_Free. r bruce
git-svn-id: svn://10.0.0.236/trunk@35716 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:57:53 +00:00
dveditz%netscape.com
a59404197c eliminate extra startup file i/o
git-svn-id: svn://10.0.0.236/trunk@35714 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:50:37 +00:00
dveditz%netscape.com
9d8448f9db use standard XPCOM macros
git-svn-id: svn://10.0.0.236/trunk@35713 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:49:42 +00:00
dveditz%netscape.com
1bbd739131 Updating utility for mozilla world
git-svn-id: svn://10.0.0.236/trunk@35712 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:47:06 +00:00
rjc%netscape.com
3ec32b01ec Try and ensure that we're actually looking at proper search datasets by checking file type and creator on Mac.
git-svn-id: svn://10.0.0.236/trunk@35711 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:46:51 +00:00
waterson%netscape.com
8bc32bab29 When destroying an RDFElement, call SetParent(nsnull) on each of its children so that there aren't any dangling reference back to us (should a child leak, or be referred to by somebody else).
git-svn-id: svn://10.0.0.236/trunk@35710 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:44:23 +00:00
sspitzer%netscape.com
3e326c02c9 fix warnings.
also Back() and Back(nsIWebShell *) existed, and this is bad.
Renamed Back(nsIWebShell *) to GoBack(nsIWebShell *).


git-svn-id: svn://10.0.0.236/trunk@35709 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:38:44 +00:00
pierre%netscape.com
0f43ffca1d Removed the NSPR event queue from nsMacMessagePump (and keep the one in nsToolkit).
git-svn-id: svn://10.0.0.236/trunk@35708 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:30:38 +00:00
pierre%netscape.com
bb778ecb1f set the caret at the right location after a cut
git-svn-id: svn://10.0.0.236/trunk@35707 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:26:38 +00:00
pierre%netscape.com
6d043a28a5 Fixed a crash in HandleMenuCommand(). It could especially happen on Quit.
git-svn-id: svn://10.0.0.236/trunk@35706 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:22:11 +00:00
peterl%netscape.com
a86f4802a3 fixed re-resolve style contexts to handle local pseudo elements
and capture style change information


git-svn-id: svn://10.0.0.236/trunk@35705 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:17:21 +00:00
peterl%netscape.com
5770b2f9a6 dont emit error messages when sheets canceled after doc disconnect
git-svn-id: svn://10.0.0.236/trunk@35704 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:16:53 +00:00
peterl%netscape.com
262c024b61 changed initialization of basefont so as not to override font style on HTML elements
git-svn-id: svn://10.0.0.236/trunk@35703 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:15:01 +00:00
alecf%netscape.com
994f4f4c20 fix depth to appease shrike
git-svn-id: svn://10.0.0.236/trunk@35702 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:14:51 +00:00
waterson%netscape.com
cf8d4effe1 Add '-chrome' flag to load alternative chrome.
git-svn-id: svn://10.0.0.236/trunk@35701 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:14:28 +00:00
rjc%netscape.com
bd7b75801d Only save data in graph if its not already there. Also, resolve aliases to search datasets on Mac.
git-svn-id: svn://10.0.0.236/trunk@35700 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 06:01:04 +00:00
briano%netscape.com
dab091fda9 Automated update
git-svn-id: svn://10.0.0.236/trunk@35699 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:59:52 +00:00
despotdaemon%netscape.com
ac36a93d5a Pseudo-automatic update of changes made by zuperdee@penguinpowered.com.
git-svn-id: svn://10.0.0.236/trunk@35698 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:59:06 +00:00
bienvenu%netscape.com
1659b03f62 don't continue applying filters after move
git-svn-id: svn://10.0.0.236/trunk@35697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:58:02 +00:00
alecf%netscape.com
f278c932b4 fix makefiles to enter "skin" directory
git-svn-id: svn://10.0.0.236/trunk@35696 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:57:20 +00:00
bienvenu%netscape.com
056b8eb71d fix filter success determination
git-svn-id: svn://10.0.0.236/trunk@35695 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:56:33 +00:00
waterson%netscape.com
c5e85cb531 Fix unintialized memory read.
git-svn-id: svn://10.0.0.236/trunk@35694 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:52:42 +00:00
mcafee%netscape.com
07ce5cf20b Removing --enable-new-drag-and-drop, NEW_DRAG_AND_DROP is on by default now.
git-svn-id: svn://10.0.0.236/trunk@35693 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:50:32 +00:00
sfraser%netscape.com
14abd86023 Fix some really weird casting bugs. Details are in bug 8277.
git-svn-id: svn://10.0.0.236/trunk@35692 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:44:07 +00:00
alecf%netscape.com
e4854bd257 localize the dialog title
git-svn-id: svn://10.0.0.236/trunk@35691 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:37:21 +00:00
alecf%netscape.com
dba13afe57 add FilterListDialog.js to makefiles
git-svn-id: svn://10.0.0.236/trunk@35688 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:35:51 +00:00
alecf%netscape.com
b49938cfcc set column widths appropriately
git-svn-id: svn://10.0.0.236/trunk@35687 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:35:33 +00:00
alecf%netscape.com
34329cf783 add some logic for Filters
git-svn-id: svn://10.0.0.236/trunk@35686 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:34:36 +00:00
rjc%netscape.com
9c97726dbc Set a white background.
git-svn-id: svn://10.0.0.236/trunk@35685 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:32:48 +00:00
alecf%netscape.com
31a6da33c0 remove some excess XUL that used to have templates for combo boxes
git-svn-id: svn://10.0.0.236/trunk@35684 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:32:17 +00:00
rjc%netscape.com
0e7aa68bd8 Use case-insignificant string comparisons now that we can.
git-svn-id: svn://10.0.0.236/trunk@35683 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:32:13 +00:00
talisman%anamorphic.com
ed8ac7c79c Set the default build to debug (javac -g) so we can do a better job of quality control;
Set max stack size to 64MB during compile phase - we have enough classes now that the compiler runs out of memory occasionally without the -mx64m flag.


git-svn-id: svn://10.0.0.236/trunk@35682 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:24:21 +00:00
bienvenu%netscape.com
545ded29f5 fix warnings
git-svn-id: svn://10.0.0.236/trunk@35680 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:23:05 +00:00
rjc%netscape.com
d908baf252 If we already have the results from a search, just return them; don't bother re-doing the search.
git-svn-id: svn://10.0.0.236/trunk@35679 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:22:14 +00:00
talisman%anamorphic.com
72661a376b *Lots* of bug fixes:
- Fixed problem of showing Look & Feel sets that won't run on a given
	  platform;

	- Fixed font bugs

	- Updated deprecated methods to be JDK 1.1 compliant


git-svn-id: svn://10.0.0.236/trunk@35678 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:21:42 +00:00
talisman%anamorphic.com
9c842315ec Author severely broke compatibility with JDK 1.1 - only fix so far is changing Vector.add(Object) to Vector.addElement(Object). As far as I know, we still want to be compatible with JDK 1.1.
git-svn-id: svn://10.0.0.236/trunk@35677 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:20:12 +00:00
pollmann%netscape.com
3512f5a5f9 Bug 2195: select[n] == select.options[n], new idlc-generated glue for nonstandard DOM interface
git-svn-id: svn://10.0.0.236/trunk@35676 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:20:00 +00:00
pollmann%netscape.com
7ff45ac8f5 Bug 2195: select[n] == select.options[n], new implementation for nonstandard DOM interface
git-svn-id: svn://10.0.0.236/trunk@35675 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:19:08 +00:00
mcafee%netscape.com
1ce5a1bf28 Removing NEW_DRAG_AND_DROP ifdef, this is on by default now.
git-svn-id: svn://10.0.0.236/trunk@35674 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:18:53 +00:00
talisman%anamorphic.com
1c53aaec59 Yet more font bug fixes.
git-svn-id: svn://10.0.0.236/trunk@35673 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:17:33 +00:00
talisman%anamorphic.com
05c4a4b604 More font bug fixes.
git-svn-id: svn://10.0.0.236/trunk@35672 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:16:29 +00:00
talisman%anamorphic.com
1e068fe4e0 More bug fixes - would throw a FileNotFound exception at startup if the $HOME/.grendel/grendel.pref file didn't exist. Now it creates it if it doesn't already exist.
git-svn-id: svn://10.0.0.236/trunk@35671 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:15:31 +00:00
pollmann%netscape.com
80638fa053 Bug 2195: select[n] == select.options[n], new nonstandard DOM interface
git-svn-id: svn://10.0.0.236/trunk@35670 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:15:30 +00:00
talisman%anamorphic.com
5301f90f8b Font bug fixes - default font was too big (may be platform specific to linux, but Helvetica-plain-12 is a safe bet for any system).
git-svn-id: svn://10.0.0.236/trunk@35669 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:13:53 +00:00
rjc%netscape.com
203c0c7631 Less memory intensiveness: now only load/save data into memory store as needed instead of upfront.
git-svn-id: svn://10.0.0.236/trunk@35668 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:11:54 +00:00
waterson%netscape.com
6b475c686a Bug 8272. Assert when writing RDF file. This probably had to do with the fact that we were writing out ID= attributes on the RDF containers. I changed to write an illegal 'about=' construct to get Matt alive.
git-svn-id: svn://10.0.0.236/trunk@35667 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:11:05 +00:00
jfrancis%netscape.com
ca6c1a3d36 editor rules framework for {make list, indent, outdent, change alignment}
git-svn-id: svn://10.0.0.236/trunk@35666 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:02:43 +00:00
pollmann%netscape.com
0af1f8f6d1 Bug 2195: select[n] == select.options[n], new header for nonstandard DOM interface
git-svn-id: svn://10.0.0.236/trunk@35665 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 05:02:21 +00:00
ramiro%netscape.com
43674ab48e Make it work with gnu libc 2.1. On glibc 2.1, the Dl_info api defined in
<dlfcn.h> is only exposed __USE_GNU is defined.  I suppose its some kind of
standards adherence thing.


git-svn-id: svn://10.0.0.236/trunk@35664 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:55:36 +00:00
matt%netscape.com
c24a0ef0ee adding files for dialog window for sidebar
git-svn-id: svn://10.0.0.236/trunk@35663 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:55:32 +00:00
matt%netscape.com
b670993976 Adding dialog for sidebar
git-svn-id: svn://10.0.0.236/trunk@35662 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:54:36 +00:00
matt%netscape.com
6ea8276e99 adding files for customize dialog
git-svn-id: svn://10.0.0.236/trunk@35661 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:53:30 +00:00
mcafee%netscape.com
e481f068c2 Removing NEW_DRAG_AND_DROP ifdef, this is on by default now.
git-svn-id: svn://10.0.0.236/trunk@35660 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:52:05 +00:00
pierre%netscape.com
c4d1ac9b9b File Removed.
git-svn-id: svn://10.0.0.236/trunk@35659 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:51:34 +00:00
waterson%netscape.com
7f4b857914 Bug 8174. Remove PR_EXTERN for private symbols.
git-svn-id: svn://10.0.0.236/trunk@35658 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:45:36 +00:00
waterson%netscape.com
fcac155fcb Juggle headers a bit so that we can build on VC5.0 and gcc-2.7.2.3 (need definition of classes for use with nsCOMPtr).
git-svn-id: svn://10.0.0.236/trunk@35657 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:42:45 +00:00
joki%netscape.com
9314e8c0fd Fixing event clientx/y coords to have the right value even in subviews
git-svn-id: svn://10.0.0.236/trunk@35656 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:39:51 +00:00
erik%netscape.com
43e3606d63 Pass null terminator to converter now that Frank has fixed it.
git-svn-id: svn://10.0.0.236/trunk@35655 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:36:33 +00:00
sspitzer%netscape.com
1da755d932 More build breakage fixes....
git-svn-id: svn://10.0.0.236/trunk@35654 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:34:25 +00:00
rjc%netscape.com
4932cde3cf Add "Save Search" button with appropriate disabling/enabling.
git-svn-id: svn://10.0.0.236/trunk@35653 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:27:16 +00:00
davidm%netscape.com
b0ed737d4e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35652 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:23:37 +00:00
sfraser%netscape.com
f839256ffb Pinkterton removed the wrong line. He meant to remove nsIDOMToolbarCore.h, not nsIDOMToolkitCore.h
git-svn-id: svn://10.0.0.236/trunk@35651 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:17:12 +00:00
warren%netscape.com
6cb3c62ff9 New and improved.
git-svn-id: svn://10.0.0.236/trunk@35650 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:29 +00:00
warren%netscape.com
003486244b Changed nsAutoMonitor to nsAutoCMonitor (cached).
git-svn-id: svn://10.0.0.236/trunk@35649 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:25 +00:00
warren%netscape.com
b3ec99f296 Added NewChannelFromNativePath for convenience.
git-svn-id: svn://10.0.0.236/trunk@35648 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:22 +00:00
warren%netscape.com
ff5039c9f6 Fixed bug causing Flush to block forever. Changed nsAutoMonitor to nsAutoCMonitor (cached monitors).
git-svn-id: svn://10.0.0.236/trunk@35647 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:15 +00:00
warren%netscape.com
1221ac1cc0 Upped max pages because there's some sort of PRMonitor bug when you run out of VM space.
git-svn-id: svn://10.0.0.236/trunk@35646 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:12 +00:00
warren%netscape.com
1fafa621b4 Changed nsAutoMonitor to nsAutoCMonitor (cached monitors).
git-svn-id: svn://10.0.0.236/trunk@35645 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:15:08 +00:00
erik%netscape.com
480d812687 Fix for bug 7822. Remove the code that strips the high byte off of the
Unicode string for menu items that have a submenu.


git-svn-id: svn://10.0.0.236/trunk@35644 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:13:58 +00:00
davidm%netscape.com
285d776c21 I am going blind. Was calling register rather than unregister function
git-svn-id: svn://10.0.0.236/trunk@35643 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:13:03 +00:00
tague%netscape.com
bf790334ec Fixed #5438 - Mac Buttons not displaying Japanese correctly.
git-svn-id: svn://10.0.0.236/trunk@35642 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:12:14 +00:00
alecf%netscape.com
9abea099f4 fix vc5 bustage - don't use nsCOMPtr on implementations, only on interfaces
git-svn-id: svn://10.0.0.236/trunk@35641 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 04:09:33 +00:00
erik%netscape.com
4e612f7bce Fix for bug 7841. Some fonts return bad glyph IDs. Now checking for these.
It turns out that GulimChe is one of those bad fonts.


git-svn-id: svn://10.0.0.236/trunk@35640 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:57:55 +00:00
sspitzer%netscape.com
9081dcee74 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@35639 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:51:08 +00:00
sspitzer%netscape.com
85e0830ca5 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@35638 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:50:00 +00:00
syd%netscape.com
1a6de599ba One change: if user sets ncols, ignore installcmap. The two collide
(they both set thresholds) and we can assume if the user is setting
the ncols that he/she is doing some fine tune control over the more
granular control installcmap gives.


git-svn-id: svn://10.0.0.236/trunk@35637 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:41:52 +00:00
pierre%netscape.com
43b859ff7b #8214 "[PP] Mac - Closing browser window with text field focused crashes apprunner". Removed an extra addRef in nsBaseWidget::Enumerator::CurrentItem()
git-svn-id: svn://10.0.0.236/trunk@35636 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:34:44 +00:00
sspitzer%netscape.com
549f5a4fe6 fix windows build bustage.
git-svn-id: svn://10.0.0.236/trunk@35635 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:34:37 +00:00
hangas%netscape.com
7f1d1f85e8 Updated code to match the changes in the address book back-end.
git-svn-id: svn://10.0.0.236/trunk@35634 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:32:26 +00:00
hangas%netscape.com
725e1658f7 Added box around card view pane as an example to demonstrate a bug
git-svn-id: svn://10.0.0.236/trunk@35633 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:31:49 +00:00
alecf%netscape.com
6b5779bcf8 fix mac bustage, this was supposed to be in #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@35632 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:28:42 +00:00
dveditz%netscape.com
6ee73b8ff9 Adding NS_RELEASE_THIS()
git-svn-id: svn://10.0.0.236/trunk@35631 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:28:25 +00:00
dveditz%netscape.com
8b1ee7529d proxy can now find main thread
git-svn-id: svn://10.0.0.236/trunk@35630 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:26:37 +00:00
syd%netscape.com
1784850441 Support for ncols and installcmap prefs.
Currently, 8 bit pseudocolor visual users are going to get a private cmap
installed base on design of gdk_rgb* code design. We want the default to
really be that we share with the server default colormap; if that looks
too bad (e.g., can't get enough colors, user can set the browser.installcmap
pref to "true" to get a priviate cmap installed.

Gdk determines if to install a private cmap based on being able to allocate
a certain number of colors from the default colormap. If that fails, a
private cmap is installed. The default gdk threshold is 5 * 5 * 5. If we
see browser.installcmap == true, we set to 255 to force it. If we see
browser.installcmap == false, we set it to 0. Also added browser.ncols
pref, which allows fine-grained control of this; the user can set the
threshold value and control when gdk will use shared colormap vs. private.


git-svn-id: svn://10.0.0.236/trunk@35629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:24:55 +00:00
syd%netscape.com
fb779f6f02 Add browser.ncols and browser.installcmap preferences
git-svn-id: svn://10.0.0.236/trunk@35628 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:18:44 +00:00
mscott%netscape.com
65ae0724c3 After creating an imap url from create instance, we need to initialize it.
git-svn-id: svn://10.0.0.236/trunk@35627 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:10:22 +00:00
mscott%netscape.com
de04424f72 Add initialize support
git-svn-id: svn://10.0.0.236/trunk@35626 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:09:12 +00:00
mscott%netscape.com
76338689e7 Add interface method for initialize.
git-svn-id: svn://10.0.0.236/trunk@35625 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:08:49 +00:00
blizzard%redhat.com
c94ea9d669 xlib renders, baby.
git-svn-id: svn://10.0.0.236/trunk@35624 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:07:55 +00:00
sdagley%netscape.com
99e28f20cf First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35623 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 03:02:41 +00:00
alecf%netscape.com
4f9901c5fe return XP_AssertAtLine
git-svn-id: svn://10.0.0.236/trunk@35622 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:41:15 +00:00
sspitzer%netscape.com
f643d8223c more build bustage fixes. burn, hollywood, burn.
git-svn-id: svn://10.0.0.236/trunk@35621 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:37:48 +00:00
sspitzer%netscape.com
12bd64e970 more fixes for build bustage
git-svn-id: svn://10.0.0.236/trunk@35620 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:25:34 +00:00
alecf%netscape.com
3c715fd75b second attempt to eliminate useless functions
git-svn-id: svn://10.0.0.236/trunk@35619 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:23:26 +00:00
sspitzer%netscape.com
c3b3f2fb2f more build bustage fixes
git-svn-id: svn://10.0.0.236/trunk@35618 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:21:19 +00:00
mscott%netscape.com
488588081e Don't attempt to read from the file we are sending unless the file stream is in fact open.
git-svn-id: svn://10.0.0.236/trunk@35617 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:19:49 +00:00
bienvenu%netscape.com
1b72cfee5b check for null mdb row when setting property, perhaps fix #7443
git-svn-id: svn://10.0.0.236/trunk@35616 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:17:08 +00:00
rjc%netscape.com
cdc6027941 Add in search datasource in bookmarks.
git-svn-id: svn://10.0.0.236/trunk@35615 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:14:56 +00:00
waterson%netscape.com
aface37a9e Bug 8267. Add nsIRDFContainer::RemoveElementAt() implementation.
git-svn-id: svn://10.0.0.236/trunk@35614 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:08:54 +00:00
waterson%netscape.com
dcf90fba85 Bug 6665. Hack to addref resources before doing the sort. This saves mailnews from having to recreate them.
git-svn-id: svn://10.0.0.236/trunk@35613 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:07:56 +00:00
bienvenu%netscape.com
6d767e7900 add commit after deleting msg
git-svn-id: svn://10.0.0.236/trunk@35612 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:07:00 +00:00
waterson%netscape.com
9fea56b5f8 Remove Window.Equals() hack.
git-svn-id: svn://10.0.0.236/trunk@35611 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:06:48 +00:00
waterson%netscape.com
daeb84e9fe Add WalkTheStack() implementation for i386 Linux. Tip o' the hat to kipp for the stack walking code, and shaver for the dladdr() hint. Replace PR_snprintf() with nsIToA().
git-svn-id: svn://10.0.0.236/trunk@35610 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:05:32 +00:00
alecf%netscape.com
cac896e871 remove unnecessary functions
git-svn-id: svn://10.0.0.236/trunk@35609 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 02:04:53 +00:00
sspitzer%netscape.com
0143851e83 fix build bustage. sending mail to rahda so she can back this out, if necessary
git-svn-id: svn://10.0.0.236/trunk@35608 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:50:17 +00:00
rjc%netscape.com
a72551e11b More Search changes.
git-svn-id: svn://10.0.0.236/trunk@35607 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:47:02 +00:00
pollmann%netscape.com
48590ea9b6 Bug 2195: select[n] == select.options[n], new IID for nonstandard DOM interface
git-svn-id: svn://10.0.0.236/trunk@35606 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:41:13 +00:00
pavlov%pavlov.net
b01d95c15d initial context menu stuff.. not finished
git-svn-id: svn://10.0.0.236/trunk@35605 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:34:29 +00:00
mcmullen%netscape.com
6433e00bb3 Fix the profile logic now that a default profile is not created by pref->StartUp().
git-svn-id: svn://10.0.0.236/trunk@35604 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:33:02 +00:00
nisheeth%netscape.com
b9c9cc95a1 Do not include nsXMLTokenizer.h any more.
git-svn-id: svn://10.0.0.236/trunk@35603 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:31:55 +00:00
jband%netscape.com
d862ba14f3 updaing TODO list
git-svn-id: svn://10.0.0.236/trunk@35602 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:30:13 +00:00
jband%netscape.com
e5880c8aa6 fix for bug 8248. Not setting the VAL_IS_IFACE flag for purely out params when calling native from JS. All interfaces that return an interface (e.g. QueryInterface) were getting left with one extra ref. Yuck!
git-svn-id: svn://10.0.0.236/trunk@35601 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:29:49 +00:00
nisheeth%netscape.com
7d86f7a5e9 Fixed a crash that resulted from trying to access freed memory in CSSLoaderImpl::DidLoadStyle(). I was trying to access aLoadData to print out an error message after aLoadData had been freed. Moved the error printing code to where aLoadData still has valid content.
git-svn-id: svn://10.0.0.236/trunk@35600 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:29:27 +00:00
pierre%netscape.com
e5c0d34d91 #8264 "[PP] Mac GFX draws lines one pixel too long"
git-svn-id: svn://10.0.0.236/trunk@35599 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:18:15 +00:00
waterson%netscape.com
b911cdf0ae No longer need to special case comparison of XPConnect and DOM objects.
git-svn-id: svn://10.0.0.236/trunk@35598 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:12:37 +00:00
nisheeth%netscape.com
bf550f5348 We no longer need to check an environment variable before instantiating the expat tokenizer. The next step is to remove the XML tokenizer from the build system.
git-svn-id: svn://10.0.0.236/trunk@35597 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:11:48 +00:00
jdunn%netscape.com
3a94d4f0be Use C comment delims and not C++
git-svn-id: svn://10.0.0.236/trunk@35596 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:08:26 +00:00
radha%netscape.com
86b169912d Fix the GetURL() bustage in windows
git-svn-id: svn://10.0.0.236/trunk@35595 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:02:19 +00:00
alecf%netscape.com
f46902fa6b remove unused functions
git-svn-id: svn://10.0.0.236/trunk@35594 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:01:09 +00:00
alecf%netscape.com
7f042a583d remove some unused functions
git-svn-id: svn://10.0.0.236/trunk@35593 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 01:00:29 +00:00
rjc%netscape.com
0ad5ad4b4b Add checks for NULL before using mInner. It could be NULL, for example, if JavaScript creates the datasource but forgets to Init() the datasource.
git-svn-id: svn://10.0.0.236/trunk@35592 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:59:43 +00:00
alecf%netscape.com
ff6ad9e181 back out previous checkin - busts on windows
git-svn-id: svn://10.0.0.236/trunk@35591 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:59:24 +00:00
alecf%netscape.com
111a3af6d6 back out last checkin, busts on windows
git-svn-id: svn://10.0.0.236/trunk@35590 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:58:16 +00:00
akkana%netscape.com
8154b700e1 Add a comment and an acute entity, for testing purposes
git-svn-id: svn://10.0.0.236/trunk@35589 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:53:54 +00:00
akkana%netscape.com
a9a778be57 Oh, drat. Previous fix for const problem also threw away the result
of UnicodeToHTMLString.  This fixes that.


git-svn-id: svn://10.0.0.236/trunk@35588 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:52:47 +00:00
alecf%netscape.com
362a835691 if 0 and static a bunch of functions that aren't used anywhere
git-svn-id: svn://10.0.0.236/trunk@35587 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:51:20 +00:00
gagan%netscape.com
dd250dc838 Removed the temporary Open call on nsIChannel. Inspite of the misnomer, the AsyncRead is the one to use.
git-svn-id: svn://10.0.0.236/trunk@35586 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:49:01 +00:00
hangas%netscape.com
99bc4ff232 Updated mac projects to reflect Candice' changes to windows/unix.
git-svn-id: svn://10.0.0.236/trunk@35585 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:47:36 +00:00
hangas%netscape.com
f4ec91d3ec Commented out Mac breakage
git-svn-id: svn://10.0.0.236/trunk@35584 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:46:12 +00:00
vidur%netscape.com
aba7d2a324 sink now creates content for BASE element
git-svn-id: svn://10.0.0.236/trunk@35583 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:44:50 +00:00
pierre%netscape.com
6889524375 #4084 "JS events: Mac form element events"
git-svn-id: svn://10.0.0.236/trunk@35582 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:41:30 +00:00
pierre%netscape.com
1cc9deab39 #4084 "JS events: Mac form element events"
A little cleanup in key events too


git-svn-id: svn://10.0.0.236/trunk@35581 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:41:02 +00:00
pierre%netscape.com
955ffba2a9 #4084 "JS events: Mac form element events"
#7100 "JS change state (enabled/checked) of html:checkbox doesn't redraw"


git-svn-id: svn://10.0.0.236/trunk@35580 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:40:20 +00:00
danm%netscape.com
cd06b36af7 more careful with dialog webshellwindow member variable. fixes bug 7858. also, release appshell service correctly
git-svn-id: svn://10.0.0.236/trunk@35579 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:38:22 +00:00
blizzard%redhat.com
f4816602ee use PR_LOG for debugging
git-svn-id: svn://10.0.0.236/trunk@35578 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:37:57 +00:00
radha%netscape.com
e5fe173125 OOps. Commented out NS_NewSessionHistory() by mistake in the previous checkin
git-svn-id: svn://10.0.0.236/trunk@35577 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:35:53 +00:00
danm%netscape.com
15d3d4ef10 released modal dialog windows after use
git-svn-id: svn://10.0.0.236/trunk@35576 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:34:11 +00:00
dp%netscape.com
767d4f61b3 Using default autoregistration
git-svn-id: svn://10.0.0.236/trunk@35575 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:34:08 +00:00
pinkerton%netscape.com
632800454c remove the toolbar appCore from the build.
git-svn-id: svn://10.0.0.236/trunk@35574 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:32:12 +00:00
dp%netscape.com
e7840a0ada Using default autoregistration.
git-svn-id: svn://10.0.0.236/trunk@35573 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:29:34 +00:00
danm%netscape.com
ec8fd288c2 just added some usage notes and a bit of extra care during window initialization
git-svn-id: svn://10.0.0.236/trunk@35572 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:27:41 +00:00
dp%netscape.com
4f64ef995b Removing xcDllStore.cpp from the build.
git-svn-id: svn://10.0.0.236/trunk@35571 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:27:13 +00:00
dp%netscape.com
b28116e9b0 Registry location and filename added.
git-svn-id: svn://10.0.0.236/trunk@35570 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:26:43 +00:00
dp%netscape.com
c8118dee3e Removing nsIComponentManager.h from nsIFileSpec.h to prevent circular
header dependencies in preparation for component manager using nsIFileSpec.


git-svn-id: svn://10.0.0.236/trunk@35569 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:26:02 +00:00
bienvenu%netscape.com
936c5ca3d7 work around gcc bug with MI
git-svn-id: svn://10.0.0.236/trunk@35568 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:25:14 +00:00
blizzard%redhat.com
1278260f3c use PR_LOG for debugging messages
git-svn-id: svn://10.0.0.236/trunk@35567 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:25:10 +00:00
sspitzer%netscape.com
7fd43d6316 no newline at the end of the file
git-svn-id: svn://10.0.0.236/trunk@35566 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:24:39 +00:00
ssu%netscape.com
abd1750bd2 ifdef'ed call to PR_Seek() for the standalone build
git-svn-id: svn://10.0.0.236/trunk@35565 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:24:37 +00:00
alecf%netscape.com
ad66b78a7f remove HashTable routines (we're only using HashLists)
git-svn-id: svn://10.0.0.236/trunk@35564 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:24:31 +00:00
sspitzer%netscape.com
629185ee2a rename s to s2 to stop shadowing. we don't need to get the prefs service again, we already have it.
git-svn-id: svn://10.0.0.236/trunk@35563 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:24:17 +00:00
alecf%netscape.com
551717687a hide some symbols from the build
git-svn-id: svn://10.0.0.236/trunk@35562 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:23:21 +00:00
sspitzer%netscape.com
ab994e28c8 missing newlines at the end of the file
git-svn-id: svn://10.0.0.236/trunk@35561 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:23:12 +00:00
alecf%netscape.com
0a8ec439ba xp_qsort is gone, so remove it from the build
git-svn-id: svn://10.0.0.236/trunk@35560 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:22:48 +00:00
danm%netscape.com
efff0ea4f1 fix hidden virtual function bustage
git-svn-id: svn://10.0.0.236/trunk@35559 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:14:04 +00:00
sspitzer%netscape.com
de3211f6d6 fix build bustage for chuang
git-svn-id: svn://10.0.0.236/trunk@35558 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:13:25 +00:00
chuang%netscape.com
a3de261c42 Add address book database code and other fixes
git-svn-id: svn://10.0.0.236/trunk@35556 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:04:49 +00:00
sfraser%netscape.com
7d9456c22e Get rid of stuplid warnings.
git-svn-id: svn://10.0.0.236/trunk@35555 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:02:27 +00:00
mscott%netscape.com
1ebf77ee79 Bug #8221 fix memory problems with nsCOMPtr & using do_QI around methods. We were also making a com ptr out of a non interface so I added a dirty hack to fix that.
git-svn-id: svn://10.0.0.236/trunk@35554 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-16 00:00:55 +00:00
sfraser%netscape.com
ecfb2ed35b Don't release the selection that you didn't addref, mister document encoder.
git-svn-id: svn://10.0.0.236/trunk@35553 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:58:41 +00:00
nisheeth%netscape.com
346f6ea4e8 Fix for bug 4196. Clicking on anchors now targets frames properly. We were being too eager in truncating the target in nsGenericHTMLElement::GetBaseTarget().
git-svn-id: svn://10.0.0.236/trunk@35552 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:58:07 +00:00
akkana%netscape.com
6d203047f2 Fix const problem
git-svn-id: svn://10.0.0.236/trunk@35551 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:56:44 +00:00
briano%netscape.com
aa13f89293 Fix for QNX/NTO.
git-svn-id: svn://10.0.0.236/trunk@35550 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:56:05 +00:00
putterman%netscape.com
619bc2db1d use chrome url for PrefsWindow.js
git-svn-id: svn://10.0.0.236/trunk@35549 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:54:32 +00:00
sfraser%netscape.com
8258d8059c Fix GetViewForRendering() in the window coordinates case.
git-svn-id: svn://10.0.0.236/trunk@35548 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:54:26 +00:00
chuang%netscape.com
7f2ab75e9b First time check in
git-svn-id: svn://10.0.0.236/trunk@35547 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:52:52 +00:00
chuang%netscape.com
604c92205e First check in
git-svn-id: svn://10.0.0.236/trunk@35546 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:50:33 +00:00
putterman%netscape.com
b24409e014 use chrome url to use PrefsWindow.js
git-svn-id: svn://10.0.0.236/trunk@35545 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:47:08 +00:00
hangas%netscape.com
17a3cc4628 Added empty treecell's so that we don't assert.
git-svn-id: svn://10.0.0.236/trunk@35544 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:45:01 +00:00
rogerl%netscape.com
d7d1246bf2 Fixed bug #7635. instanceof now starts the chain walk from the object
prototype.


git-svn-id: svn://10.0.0.236/trunk@35543 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:44:30 +00:00
hangas%netscape.com
08a46b7c92 Added xul fragment includes for extra tab in edit card.
git-svn-id: svn://10.0.0.236/trunk@35542 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:44:12 +00:00
slamm%netscape.com
7c6f901d03 Remove nsIDocumentViewer.h from EXPORTS. It does not live here. Thanks to 'David Gardiner' <david.gardiner@unisa.edu.au> for the patch.
git-svn-id: svn://10.0.0.236/trunk@35541 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:42:32 +00:00
ftang%netscape.com
7db8a03581 fix bug 8201 by adding GetIID()
git-svn-id: svn://10.0.0.236/trunk@35540 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:41:40 +00:00
pollmann%netscape.com
01652fd586 Bug 2195: Make select[n] == select.options[n] (idlc bugfix courtesy of Vidur)
git-svn-id: svn://10.0.0.236/trunk@35539 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:41:30 +00:00
mscott%netscape.com
3c2f155cb4 Bug #8221 fix memory problems with nsCOMPtr & using do_QI around methods.
git-svn-id: svn://10.0.0.236/trunk@35538 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:39:56 +00:00
sfraser%netscape.com
d33f176f98 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35537 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:39:46 +00:00
mscott%netscape.com
5e0305dc22 Bug #8221 fix memory problems with nsCOMPtr & using do_QI around methods.
git-svn-id: svn://10.0.0.236/trunk@35536 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:34:52 +00:00
ftang%netscape.com
487e3ebceb fix bug 8055 by adding 0x00-0x20 conversion to all the conversion table
git-svn-id: svn://10.0.0.236/trunk@35535 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:34:47 +00:00
jdunn%netscape.com
06b2eb17f9 When ORing enums, it must be done in the domain of the enum type
git-svn-id: svn://10.0.0.236/trunk@35533 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:33:59 +00:00
bienvenu%netscape.com
ed352aa541 use base class implementation of FindSubFolder
git-svn-id: svn://10.0.0.236/trunk@35532 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:33:32 +00:00
hangas%netscape.com
23025c4b77 Changed nsMailboxGetURI to use nsFileSpec. Fixes Mac.
git-svn-id: svn://10.0.0.236/trunk@35531 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:33:29 +00:00
saari%netscape.com
494308738b adding in a piece of keybinding I forgot
git-svn-id: svn://10.0.0.236/trunk@35530 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:33:21 +00:00
jdunn%netscape.com
0c7b20876a need to declare friend class
git-svn-id: svn://10.0.0.236/trunk@35529 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:33:19 +00:00
jdunn%netscape.com
b9b1d37baa HP requires a Newline at end of file
git-svn-id: svn://10.0.0.236/trunk@35528 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:32:44 +00:00
ducarroz%netscape.com
a356eafdaa add search folder to project
git-svn-id: svn://10.0.0.236/trunk@35527 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:32:34 +00:00
blizzard%redhat.com
229f3ae1ff fix bug where the ConfigureNotify wasn't setting the event members properly
git-svn-id: svn://10.0.0.236/trunk@35526 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:31:56 +00:00
bienvenu%netscape.com
b595db6509 add search.lib
git-svn-id: svn://10.0.0.236/trunk@35522 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:31:52 +00:00
bienvenu%netscape.com
d187228592 add search to base
git-svn-id: svn://10.0.0.236/trunk@35520 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:31:32 +00:00
ftang%netscape.com
f27330cb72 fix 7973. Do correct conversion for non ASCII for multipart posting
git-svn-id: svn://10.0.0.236/trunk@35519 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:31:05 +00:00
hangas%netscape.com
8fe0901f17 Added nsImapMoveCoalescer.cpp
git-svn-id: svn://10.0.0.236/trunk@35518 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:30:01 +00:00
ftang%netscape.com
b018cf10ce push SetParserFilter from nsParser.h to nsIParser.h
git-svn-id: svn://10.0.0.236/trunk@35517 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:29:54 +00:00
radha%netscape.com
6e6f661619 More changes related to session History
A
A
A


git-svn-id: svn://10.0.0.236/trunk@35516 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:29:38 +00:00
radha%netscape.com
c4cdce5bfc Session History interface changes.
git-svn-id: svn://10.0.0.236/trunk@35514 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:27:10 +00:00
rhp%netscape.com
7506dbb643 Changes for quoting
git-svn-id: svn://10.0.0.236/trunk@35509 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:37 +00:00
pinkerton%netscape.com
98bf47bfd6 fix memory leaks (bug# 8221)
git-svn-id: svn://10.0.0.236/trunk@35508 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:32 +00:00
akkana%netscape.com
245bf1d96e 6671: map dom codes back to entity form on output
git-svn-id: svn://10.0.0.236/trunk@35507 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:13 +00:00
tao%netscape.com
80023948c4 8152: MLK in string bundle
git-svn-id: svn://10.0.0.236/trunk@35506 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:08 +00:00
radha%netscape.com
82ed772c77 Better behavior with nested frames
git-svn-id: svn://10.0.0.236/trunk@35505 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:26:06 +00:00
ducarroz%netscape.com
a5ae9d3197 add build instruction for mime:src:MANIFEST and mime:emitters:src:MANIFEST (rhp landind)
git-svn-id: svn://10.0.0.236/trunk@35504 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:25:55 +00:00
rhp%netscape.com
1e5929f8fa changes for quoting
git-svn-id: svn://10.0.0.236/trunk@35503 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:25:52 +00:00
sfraser%netscape.com
47b1e6f67f Don't pass "null" strings in from JavaScript.
git-svn-id: svn://10.0.0.236/trunk@35502 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:25:18 +00:00
akkana%netscape.com
e12a8361e4 Fix for the crasher part of 7801: don't use nsAutoSelectionReset in InsertList
git-svn-id: svn://10.0.0.236/trunk@35501 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:24:24 +00:00
sfraser%netscape.com
33bd604dc3 Add TextEditor xul file.
git-svn-id: svn://10.0.0.236/trunk@35500 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:24:21 +00:00
ducarroz%netscape.com
7a16600f50 update project for rhp landing
git-svn-id: svn://10.0.0.236/trunk@35499 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:24:09 +00:00
putterman%netscape.com
e0616d471d Remove an extra AddRef.
git-svn-id: svn://10.0.0.236/trunk@35498 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:23:13 +00:00
putterman%netscape.com
4070a8ae6d Return NS_OK for DoCommand.
git-svn-id: svn://10.0.0.236/trunk@35497 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:22:59 +00:00
rhp%netscape.com
f6aa6e376b New quoting functionality
git-svn-id: svn://10.0.0.236/trunk@35472 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:22:34 +00:00
putterman%netscape.com
9e5a50f9b5 Set the webshell's default character set.
git-svn-id: svn://10.0.0.236/trunk@35471 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:22:12 +00:00
putterman%netscape.com
9e9f61c249 Only AddRef servMgr if we're going to assign it to *result. Approved by dp.
git-svn-id: svn://10.0.0.236/trunk@35470 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:21:12 +00:00
cata%netscape.com
42c5df2c1b External DTD support. (but wrapped in #ifdef EXTERNAL_ENTITY_SUPPORT)
git-svn-id: svn://10.0.0.236/trunk@35469 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:20:01 +00:00
putterman%netscape.com
0ede68b054 Close the filespec's stream so we don't keep appending to pref file. Approved by
mcmullen.


git-svn-id: svn://10.0.0.236/trunk@35468 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:19:58 +00:00
bienvenu%netscape.com
fc2be00a11 implement FindSubFolder
git-svn-id: svn://10.0.0.236/trunk@35467 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:18:57 +00:00
bienvenu%netscape.com
ad879aac73 add imap move coalescer to filter code
git-svn-id: svn://10.0.0.236/trunk@35466 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:17:49 +00:00
edwin%woudt.nl
dbc99486c1 Oops, forgot this one. The preferred Look&Feel is set on startup.
git-svn-id: svn://10.0.0.236/trunk@35465 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 23:08:07 +00:00
edwin%woudt.nl
a2c7181b37 Adding Look&Feel support to the prefs
git-svn-id: svn://10.0.0.236/trunk@35463 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 22:33:14 +00:00
slamm%netscape.com
728f632f68 Add timezone to time at top of page.
git-svn-id: svn://10.0.0.236/trunk@35462 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 22:20:31 +00:00
sfraser%netscape.com
4a9ad9e17e Fix the multiple reflow problem which makes page rendering very slow. r hyatt, a leaf.
git-svn-id: svn://10.0.0.236/trunk@35461 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 21:30:14 +00:00
bienvenu%netscape.com
0dec58089e not part of build, initial entry into cvs of helper class for coalescing moves
git-svn-id: svn://10.0.0.236/trunk@35460 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 21:20:08 +00:00
rpotts%netscape.com
da58e766e1 Fixed header parsing to prevent an endless loop. Moved the code to handle header completion into a new function - FireOnHeadersAvailable. This function notifies the event sink and external modules interested in headers. previously, external modules were being notified multiple times...
git-svn-id: svn://10.0.0.236/trunk@35459 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 20:59:39 +00:00
valeski%netscape.com
ea63443208 added thread locking functionality back into ftp
git-svn-id: svn://10.0.0.236/trunk@35458 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 20:49:56 +00:00
cbegle%netscape.com
9f05c83fb9 Fix errors in liveconnect tests per furman@netscape.com. Renaming files
to not have a "-n" filename, since they are no longer negative tests.


git-svn-id: svn://10.0.0.236/trunk@35457 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 20:03:30 +00:00
rpotts%netscape.com
69449663c2 Fix build bustage... nsIDocumentLoaderObserver interface was changed :-(
git-svn-id: svn://10.0.0.236/trunk@35456 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 19:33:29 +00:00
putterman%netscape.com
24b6e72c12 Fix for 8197. Can't read pref file. Approved by leaf and reviewed by mscott.
git-svn-id: svn://10.0.0.236/trunk@35454 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 18:39:33 +00:00
bruce%cybersight.com
0b5d36e888 APPROVED BY leaf@mozilla.org
This fixes the use of 'false' instead of PR_FALSE.  This was killing the Solaris native compiler build.  (Probably would've killed others if they weren't so horrked that they don't get to this file.)

Also, it adds a linefeed at the end of the file for those same native unix compilers.

This won't mess up Mozilla any more than it already is this morning.


git-svn-id: svn://10.0.0.236/trunk@35451 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 18:07:58 +00:00
terry%mozilla.org
61576acec0 Explain some history.
git-svn-id: svn://10.0.0.236/trunk@35450 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:44:42 +00:00
terry%mozilla.org
1d7008c9a1 Patch by Christopher Kline <ckline@media.mit.edu> -- wasn't sending
right password to mysql.


git-svn-id: svn://10.0.0.236/trunk@35449 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:32:25 +00:00
shaver%netscape.com
8450083be8 flail lightly trying to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@35448 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:21:00 +00:00
shaver%netscape.com
0f4f0817ff try to bix build bustage, and start on fixing 8183
git-svn-id: svn://10.0.0.236/trunk@35447 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:13:38 +00:00
jefft%netscape.com
865b17ff04 fixed Mac build bustage
git-svn-id: svn://10.0.0.236/trunk@35446 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:12:52 +00:00
jefft%netscape.com
023eb2dd77 fix linux build bustage
git-svn-id: svn://10.0.0.236/trunk@35445 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 15:05:48 +00:00
rods%netscape.com
dcc4eb02da Changed special MULTI_MIME to be used by both classes
git-svn-id: svn://10.0.0.236/trunk@35444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 14:26:23 +00:00
rods%netscape.com
42dab97dc9 Changed "unsigned int" to PRUint32
git-svn-id: svn://10.0.0.236/trunk@35443 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 14:25:31 +00:00
ducarroz%netscape.com
c94a71dbb9 replace /*nsIDOMEditorAppCore*/nsISupports by nsIEditorShell
git-svn-id: svn://10.0.0.236/trunk@35442 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 14:25:26 +00:00
shaver%netscape.com
c367066727 fix 8184: don't get stuck on %{ that's not at the beginning of the line, and mind end of data
git-svn-id: svn://10.0.0.236/trunk@35441 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 14:17:21 +00:00
rhp%netscape.com
5a2807f3a0 Checking in changes for new files (not in build yet)
git-svn-id: svn://10.0.0.236/trunk@35440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 14:11:56 +00:00
bruce%cybersight.com
02fc3ead24 Replace NULL with nsnull in 8 initializations as NULL is void* on Solaris Workshop 4.2 compilers and it dies on using NULL here.
git-svn-id: svn://10.0.0.236/trunk@35439 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:51:50 +00:00
bruce%cybersight.com
9ac574ec89 Fix HP build bustage. Must comment out text after an #endif
git-svn-id: svn://10.0.0.236/trunk@35438 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:38:14 +00:00
rhp%netscape.com
24dd9edced Changes for internal mime emitter
git-svn-id: svn://10.0.0.236/trunk@35437 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:29:00 +00:00
rhp%netscape.com
b996c1fe1b updates for internal mime emitter
git-svn-id: svn://10.0.0.236/trunk@35436 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:27:49 +00:00
jefft%netscape.com
2fed9e535c added files: mozilla/mailnews/imap/src/nsImapUndoTxn.cpp
git-svn-id: svn://10.0.0.236/trunk@35435 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:20:34 +00:00
jefft%netscape.com
5d2b212757 added files: mozilla/mailnews/base/util/nsMsgTxn.cpp
git-svn-id: svn://10.0.0.236/trunk@35434 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:17:46 +00:00
jefft%netscape.com
171e4f9689 more on unod work - added SetCopyResponseUid() method; nsImapMoveCopyMsgTxn class; fix set message flags not working problem
git-svn-id: svn://10.0.0.236/trunk@35433 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:16:51 +00:00
jefft%netscape.com
f6e93b5e44 added SetCopyResponseUid interface
git-svn-id: svn://10.0.0.236/trunk@35432 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:12:54 +00:00
jefft%netscape.com
55f7a45355 added nsImapUidExpunge action
git-svn-id: svn://10.0.0.236/trunk@35431 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:12:08 +00:00
jefft%netscape.com
5de58f08ab more on undowork -- adding base nsMsgTxn class for base undo object
git-svn-id: svn://10.0.0.236/trunk@35430 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:10:47 +00:00
jefft%netscape.com
1a7d105d8d more on undo work - remove transaction manager from folder array after retrieving it
git-svn-id: svn://10.0.0.236/trunk@35429 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 13:08:12 +00:00
edwin%woudt.nl
875ea9b499 New prefs landing
git-svn-id: svn://10.0.0.236/trunk@35428 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 11:44:40 +00:00
mccabe%netscape.com
f959eb5d1b Added a warning for using an (ignored) '%{' or '%{whatever' escape instead of using '%{C++'.
git-svn-id: svn://10.0.0.236/trunk@35427 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 11:18:03 +00:00
mccabe%netscape.com
31c384cdf8 Added -w to calls to xpidl. It's been in rules.mk for a while; I was shocked (shocked!) to find it wasn't here.
git-svn-id: svn://10.0.0.236/trunk@35426 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 11:14:49 +00:00
mcmullen%netscape.com
88a6f93e78 Alias resolution makes directory iteration tricky: You can't use SetLeafName to convert one sibling to another. Fixing parsing of pref-init files, which broke when I fixed aliases a while back.
git-svn-id: svn://10.0.0.236/trunk@35425 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 10:42:05 +00:00
mcmullen%netscape.com
4964d69d07 Fix windows bustage.
git-svn-id: svn://10.0.0.236/trunk@35424 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 09:35:20 +00:00
mcmullen%netscape.com
54664adf4e Added a null test
git-svn-id: svn://10.0.0.236/trunk@35423 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 09:31:49 +00:00
mccabe%netscape.com
a94ba34321 Removed unused declaration for (cvs rm'ed) stub mode, and added an explanatory comment as to what 'basename' actually means. (Not what I thought...)
git-svn-id: svn://10.0.0.236/trunk@35422 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 09:22:04 +00:00
mcmullen%netscape.com
82b6f8f370 Using nsIFileSpec, leaks and stuff now become possible. Fixing one problem...
git-svn-id: svn://10.0.0.236/trunk@35421 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 09:09:17 +00:00
mcmullen%netscape.com
802236a201 Fix up registration of nsIFileLocator to use ProgIDs
git-svn-id: svn://10.0.0.236/trunk@35420 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 08:52:23 +00:00
warren%netscape.com
c67c7c66b8 Fixed buffer tests.
git-svn-id: svn://10.0.0.236/trunk@35419 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 08:36:27 +00:00
mcmullen%netscape.com
e11f39047b Remove the trailing space in the module name.
git-svn-id: svn://10.0.0.236/trunk@35418 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 08:22:10 +00:00
mcmullen%netscape.com
be46092e74 Fix up registration of nsIFileLocator to use ProgIDs
git-svn-id: svn://10.0.0.236/trunk@35417 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 08:07:58 +00:00
sspitzer%netscape.com
44c9798e7c fix for #8126. crashing when posting to a non-existant newsgroup.
git-svn-id: svn://10.0.0.236/trunk@35416 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 07:28:54 +00:00
mcmullen%netscape.com
ea88e50957 trying to fix windows bustage with new parameters = set 'em to null!
git-svn-id: svn://10.0.0.236/trunk@35415 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 07:19:16 +00:00
rjc%netscape.com
babaad9c18 Small fix for non-Mac platforms in terms of where to look for search datafiles.
git-svn-id: svn://10.0.0.236/trunk@35414 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 07:07:09 +00:00
hyatt%netscape.com
b29b58e27b Fixing a bug in the distribution of excess space to multiple row groups.
git-svn-id: svn://10.0.0.236/trunk@35413 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 07:06:55 +00:00
ftang%netscape.com
c2b67434da add ascii converters
git-svn-id: svn://10.0.0.236/trunk@35412 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:56:19 +00:00
ftang%netscape.com
fc33fc3474 fix CID.h file misspell and repeat CID. add ASCII to the factory
git-svn-id: svn://10.0.0.236/trunk@35411 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:49:47 +00:00
mcafee%netscape.com
ae3420fb17 nsWindows are now drag destinations.
git-svn-id: svn://10.0.0.236/trunk@35410 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:46:37 +00:00
ftang%netscape.com
7522dc5bb4 add ascii converter to the file list
git-svn-id: svn://10.0.0.236/trunk@35409 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:45:08 +00:00
mcmullen%netscape.com
e49b19a538 Seems when CVS merged this for me, it did so in such a way that I backed out some of hangas's changes. Restoring this the way I think he wanted it.
git-svn-id: svn://10.0.0.236/trunk@35408 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:44:56 +00:00
mcmullen%netscape.com
2f50472c00 conflict with profile checkin
git-svn-id: svn://10.0.0.236/trunk@35407 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:42:23 +00:00
ftang%netscape.com
88283344c4 add ASCII converter to window makefile
git-svn-id: svn://10.0.0.236/trunk@35406 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:41:05 +00:00
ftang%netscape.com
762729d03b add ASCII converter and unix makefile
git-svn-id: svn://10.0.0.236/trunk@35405 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:37:33 +00:00
endico%mozilla.org
d0fddb49f8 attempt to dissuade robots from indexing the entire lxr.mozilla.org site
git-svn-id: svn://10.0.0.236/trunk@35404 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:34:45 +00:00
mcmullen%netscape.com
bfc8154d7d My fix collided with somebody else's. Fixing it the way I want it.
git-svn-id: svn://10.0.0.236/trunk@35403 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:30:33 +00:00
ftang%netscape.com
48791d631e add CID for ASCII
git-svn-id: svn://10.0.0.236/trunk@35402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:27:37 +00:00
mcafee%netscape.com
78a4313ef0 Moving worked declaration to the beginning of function to get around goto error. Fixes linux bustage.
git-svn-id: svn://10.0.0.236/trunk@35401 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:24:34 +00:00
peterl%netscape.com
5acfa76172 sync to css loader api change (default namespace)
git-svn-id: svn://10.0.0.236/trunk@35400 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:22:46 +00:00
mcafee%netscape.com
458004adb3 Fixing some of the Linux breakage.
git-svn-id: svn://10.0.0.236/trunk@35399 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:22:35 +00:00
peterl%netscape.com
d05da63300 better medium testing api
git-svn-id: svn://10.0.0.236/trunk@35398 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:22:07 +00:00
peterl%netscape.com
44dd0a04bd added better medium testing api
git-svn-id: svn://10.0.0.236/trunk@35397 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:21:47 +00:00
peterl%netscape.com
c3453e4f35 added faster medium testing support
added default namespace support
WIP for faster cascade


git-svn-id: svn://10.0.0.236/trunk@35396 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:20:46 +00:00
peterl%netscape.com
0b9d193a00 changed medium testing API
git-svn-id: svn://10.0.0.236/trunk@35395 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:19:57 +00:00
peterl%netscape.com
04e4d15221 added default namespace id
added safety checks when loading is aborted


git-svn-id: svn://10.0.0.236/trunk@35394 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:19:21 +00:00
peterl%netscape.com
64aa772a58 added default namespace id
git-svn-id: svn://10.0.0.236/trunk@35393 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:18:37 +00:00
peterl%netscape.com
da190bcd66 added default namespace ID to loading
git-svn-id: svn://10.0.0.236/trunk@35392 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:18:23 +00:00
peterl%netscape.com
82c9e7225a added namespace definitions
git-svn-id: svn://10.0.0.236/trunk@35391 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:17:17 +00:00
peterl%netscape.com
ba3297bfed delete floaters before regular children
git-svn-id: svn://10.0.0.236/trunk@35390 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:16:29 +00:00
peterl%netscape.com
eb90ef2c8a use new medium testing api
use enumeration func for faster rule matching


git-svn-id: svn://10.0.0.236/trunk@35389 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:15:51 +00:00
peterl%netscape.com
8b5a5bc0d9 added create child namespace by id
git-svn-id: svn://10.0.0.236/trunk@35388 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:14:59 +00:00
peterl%netscape.com
1721617943 added UseForMedium (for faster medium testing)
git-svn-id: svn://10.0.0.236/trunk@35387 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:14:31 +00:00
peterl%netscape.com
1e96c5e167 added new create child namespace
git-svn-id: svn://10.0.0.236/trunk@35386 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 06:14:09 +00:00
mcmullen%netscape.com
353309812c oh, that ./ again.
git-svn-id: svn://10.0.0.236/trunk@35385 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:57:17 +00:00
mcmullen%netscape.com
e340b53e30 oh, that ./ again.
git-svn-id: svn://10.0.0.236/trunk@35384 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:56:33 +00:00
sspitzer%netscape.com
092f276537 change to get the message ID and the message number to show up in the message pane
when the user displays a message that has been cancelled.


git-svn-id: svn://10.0.0.236/trunk@35383 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:55:36 +00:00
mcmullen%netscape.com
9bd79920cc More nsIFileSpec/Locator changes (merge conflicts with profile stuff messed this up)
git-svn-id: svn://10.0.0.236/trunk@35382 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:51:29 +00:00
rjc%netscape.com
baeb3ea890 Fix depth.
git-svn-id: svn://10.0.0.236/trunk@35381 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:32:53 +00:00
mcmullen%netscape.com
11d23ef644 idlized now
git-svn-id: svn://10.0.0.236/trunk@35380 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:29:54 +00:00
rjc%netscape.com
cf6795d693 Put Search resources into res/samples
git-svn-id: svn://10.0.0.236/trunk@35379 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:28:46 +00:00
av%netscape.com
593e7ef293 Hooking up event passing to winless plugins
git-svn-id: svn://10.0.0.236/trunk@35378 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:28:23 +00:00
waterson%netscape.com
29e6fa110d Clean up stack trace output: add displacements and remove spaces that sometimes appear in demangled symbols (so my perl script doesn't barf).
git-svn-id: svn://10.0.0.236/trunk@35377 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:27:09 +00:00
rjc%netscape.com
eb7e1a1ec1 Add search resources into res/samples.
git-svn-id: svn://10.0.0.236/trunk@35376 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:26:33 +00:00
mcmullen%netscape.com
0c1ba60273 Changed to use nsIFileSpec
git-svn-id: svn://10.0.0.236/trunk@35375 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:25:28 +00:00
mcmullen%netscape.com
f2e6c8d4de nsIFileLocator's API has changed.
git-svn-id: svn://10.0.0.236/trunk@35374 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:25:03 +00:00
warren%netscape.com
7325d54d58 New file transport test using nsFileChannels instead.
git-svn-id: svn://10.0.0.236/trunk@35373 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:22:25 +00:00
rjc%netscape.com
b2ed125d6e Add in appropriate MANIFEST and makefiles.
git-svn-id: svn://10.0.0.236/trunk@35372 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:21:47 +00:00
mcmullen%netscape.com
7cbe853773 idlized nsIFileLocator, created appshellIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@35371 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:20:48 +00:00
warren%netscape.com
0a96edf3cb Removed file transport, now consolidated with file channel. Various buffer(stream) cleanup.
git-svn-id: svn://10.0.0.236/trunk@35370 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:18:40 +00:00
mcmullen%netscape.com
64e43d4fee Added inline convenience methods.
git-svn-id: svn://10.0.0.236/trunk@35369 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:18:04 +00:00
mcmullen%netscape.com
05116a2914 idlized nsIFileLocator
git-svn-id: svn://10.0.0.236/trunk@35368 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:18:02 +00:00
mcmullen%netscape.com
ab933eb087 Changed API to nsIPref
git-svn-id: svn://10.0.0.236/trunk@35367 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:18:01 +00:00
mcmullen%netscape.com
7e5a37fddc Changed API for nsIFileLocator
git-svn-id: svn://10.0.0.236/trunk@35366 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:18:00 +00:00
mcmullen%netscape.com
da5a1f912c Made write and read do an implicit open. Added a FileContents attribute to allow simple conversion between an entire file and a string.
git-svn-id: svn://10.0.0.236/trunk@35365 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:17:59 +00:00
mcmullen%netscape.com
b2485f0c47 Changed API to nsIFileLocator
git-svn-id: svn://10.0.0.236/trunk@35364 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:17:58 +00:00
mcmullen%netscape.com
8ca5588a22 idlized nsIFileLocator.
git-svn-id: svn://10.0.0.236/trunk@35363 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:17:57 +00:00
mcmullen%netscape.com
548a10029e Call pref->ReadUserPrefs()
git-svn-id: svn://10.0.0.236/trunk@35362 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:17:56 +00:00
mcmullen%netscape.com
f5e5ff2fe2 Use nsIFileSpec. Also added ReadUserPrefs() method.
git-svn-id: svn://10.0.0.236/trunk@35361 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:17:55 +00:00
rjc%netscape.com
265453b5a7 Check-in search UI.
git-svn-id: svn://10.0.0.236/trunk@35360 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:14:37 +00:00
rjc%netscape.com
67b4b2ccc8 Cleanup a bit.
git-svn-id: svn://10.0.0.236/trunk@35359 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:11:05 +00:00
rjc%netscape.com
0e15eff54e Added HTTP POST support for searching.
git-svn-id: svn://10.0.0.236/trunk@35358 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:07:29 +00:00
sspitzer%netscape.com
2f0909d91e remove the "." from Subscribe. it launches subscribe.xul (in all it's glory) now.
git-svn-id: svn://10.0.0.236/trunk@35357 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 05:03:40 +00:00
mccabe%netscape.com
f5f92fe30e Fix number of arguments to the fprintf format string I changed yesterday.
git-svn-id: svn://10.0.0.236/trunk@35356 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:59:19 +00:00
warren%netscape.com
07f8f36a84 Added PR_LOG stuff.
git-svn-id: svn://10.0.0.236/trunk@35355 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:57:07 +00:00
jband%netscape.com
cc65384092 removing an assert that is no longer appropriate
git-svn-id: svn://10.0.0.236/trunk@35354 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:46:18 +00:00
mcafee%netscape.com
7c1443cdd0 Remove bogus commented service deletion.
git-svn-id: svn://10.0.0.236/trunk@35353 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:36:41 +00:00
mcafee%netscape.com
678fa54119 Enabling nsDragService factory creation.
git-svn-id: svn://10.0.0.236/trunk@35352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:30:36 +00:00
gagan%netscape.com
3008a4f872 Added nsIChannel::Open temporarily to get the test working. There is a problem with the nsIBuffer search routine (see news://npm.netlib) which causes an assertion since refcnt gets reset after a Read following a Search on nsIBuffer.
git-svn-id: svn://10.0.0.236/trunk@35351 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:30:34 +00:00
bryce-mozilla%nextbus.com
febafd9e44 Assorted minor UI cleanups (mostly putting navigation headers in, and
rewording "return to query page" for pages where that is not always true.
Also add two options to the main index.html


git-svn-id: svn://10.0.0.236/trunk@35350 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:29:05 +00:00
sspitzer%netscape.com
5ff037aa9e add the ".\" so the resources get exported.
git-svn-id: svn://10.0.0.236/trunk@35349 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:26:01 +00:00
bryce-mozilla%nextbus.com
68a4a1e8e1 Fix several browsers, Lynx and Opera at least. HTML syntax errors here
and there were fixed, and serverpush was restricted only to the versions
of Mozilla known to support it.


git-svn-id: svn://10.0.0.236/trunk@35348 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:25:29 +00:00
sspitzer%netscape.com
823e0fcb39 launch the subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@35347 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:22:41 +00:00
blizzard%redhat.com
449c08cbfa more gfx work
git-svn-id: svn://10.0.0.236/trunk@35346 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:19:11 +00:00
sfraser%netscape.com
5e982a0832 Added nsScrollbarButtonFrame.cpp, and fix constness of MouseClicked param.
git-svn-id: svn://10.0.0.236/trunk@35345 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:10:27 +00:00
mcafee%netscape.com
c09a0a2dd8 Minor reformatting.
git-svn-id: svn://10.0.0.236/trunk@35344 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:07:36 +00:00
cmanske%netscape.com
1f35ff9acd HLine dialog improvements
git-svn-id: svn://10.0.0.236/trunk@35343 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:03:22 +00:00
evaughan%netscape.com
228c4d1aef Integrated a new XP scrollbar
Added tri state behavior to titled buttons.


git-svn-id: svn://10.0.0.236/trunk@35342 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 04:02:43 +00:00
alecf%netscape.com
a5d51bf47d add type attribute to nsIMsgIncomingServer, and reduce warnings by not using "value"
git-svn-id: svn://10.0.0.236/trunk@35341 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:47:59 +00:00
briano%netscape.com
4f17293d1a Change to support platforms that don't have fchmod().
git-svn-id: svn://10.0.0.236/trunk@35340 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:43:46 +00:00
briano%netscape.com
044d4d3556 Automated update
git-svn-id: svn://10.0.0.236/trunk@35339 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:41:07 +00:00
bienvenu%netscape.com
6e7a02d30b use character set stored in dbfolderino
git-svn-id: svn://10.0.0.236/trunk@35338 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:41:05 +00:00
briano%netscape.com
b95b589d49 Initial changes to support BeOS.
git-svn-id: svn://10.0.0.236/trunk@35337 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:35:49 +00:00
mscott%netscape.com
33f5fa6cb0 Mark the url as finished AFTER we are done with the url in the nsMailboxProtocol::OnStopBinding call. We were marking the url as done and then cleaning up our file state (such as closing the temp file).
git-svn-id: svn://10.0.0.236/trunk@35336 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:35:30 +00:00
alecf%netscape.com
f2d254d1bd use new code for opening preferences with a specific pref page
git-svn-id: svn://10.0.0.236/trunk@35335 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:32:02 +00:00
alecf%netscape.com
8c03177cde search dialog is now active
git-svn-id: svn://10.0.0.236/trunk@35334 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:31:28 +00:00
vidur%netscape.com
d35239d364 More graceful handling of the orphaned window case.
git-svn-id: svn://10.0.0.236/trunk@35333 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:25:41 +00:00
waterson%netscape.com
3fecdf8813 Add MOZ_TRACE_REFCNT to allow you to instrument individual implementations of AddRef() & Release().
git-svn-id: svn://10.0.0.236/trunk@35332 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:25:27 +00:00
briano%netscape.com
b0d6138e47 Added support for BeOS. Contributed by Duncan Wilcox (duncan@be.com).
git-svn-id: svn://10.0.0.236/trunk@35331 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:24:25 +00:00
waterson%netscape.com
7a3806e659 Spit out a mapfile, for kicks.
git-svn-id: svn://10.0.0.236/trunk@35330 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:21:49 +00:00
waterson%netscape.com
e83567c0f1 Add REF into the element map so that the generic builder sees it in OnAssert() and OnUnassert(). Resolve it to an absolute URI before using so that ref='foo/bar.rdf#bing' works.
git-svn-id: svn://10.0.0.236/trunk@35329 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:21:20 +00:00
waterson%netscape.com
167d4bc642 Bug 7385. Open datasources asynchronously by default.
git-svn-id: svn://10.0.0.236/trunk@35328 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:19:33 +00:00
vidur%netscape.com
752bdba383 Changed reference counting rules for nsGlobalWindow - now its JSObject maintains a reference to it. The root for the global JSObject is now removed in SetWebShell when we're going away. Lots of null checks so that standalone global window doesn't crash.
git-svn-id: svn://10.0.0.236/trunk@35327 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:17:11 +00:00
vidur%netscape.com
447eb03126 Fixed memory leak when new windows were opened
git-svn-id: svn://10.0.0.236/trunk@35326 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:15:37 +00:00
joki%netscape.com
1b13b0f841 Fixes for event going to frames which have changes as a result of other event handlers. (loosely bug 1283)
git-svn-id: svn://10.0.0.236/trunk@35325 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:14:28 +00:00
shaver%netscape.com
b98a4b3425 xpidl_idl.c rewrite for improved maintenance, fixed bugs and whiter teeth
git-svn-id: svn://10.0.0.236/trunk@35324 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 03:07:44 +00:00
jband%netscape.com
0fd8424124 fix for bug 7940. Notification in xpconnect of JSContext about to be destroyed was zeroing out information later used to remove gc root. This was keeping JS_RemoveRoot from being called for those objects. So, the JSRuntime was getting left with pointers to roots for stuff on JSContexts long since destroyed and for which memory had been recycled. The fix is to be *sure* to do all the proper cleanup in xpconnect upon notification that a JSContext is about to be destroyed.
git-svn-id: svn://10.0.0.236/trunk@35323 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:48:26 +00:00
rhp%netscape.com
b0f5c6fefe Fixes for completion code checking
git-svn-id: svn://10.0.0.236/trunk@35322 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:31:27 +00:00
rhp%netscape.com
7bf867f8e8 Correct usage of return codes
git-svn-id: svn://10.0.0.236/trunk@35321 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:30:55 +00:00
hyatt%netscape.com
5cacc78db3 fixing a bug in getframeforpoint for nested row groups
git-svn-id: svn://10.0.0.236/trunk@35320 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:27:17 +00:00
ftang%netscape.com
c12062ec71 fix bug 7544
git-svn-id: svn://10.0.0.236/trunk@35319 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:21:03 +00:00
ducarroz%netscape.com
ee0ad1d392 fix for bug 8029. ResolveAlias should not set the nsFileSpe's internal error mError if the file doesn't exist which is a legal state during the creation of an nsFileSpec object.
git-svn-id: svn://10.0.0.236/trunk@35318 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:19:23 +00:00
sspitzer%netscape.com
7a434edbb3 check for null before deferencing.
git-svn-id: svn://10.0.0.236/trunk@35317 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:11:56 +00:00
rickg%netscape.com
1e824d81bc more error reporting in ToInteger()
git-svn-id: svn://10.0.0.236/trunk@35316 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:03:33 +00:00
phillip%netscape.com
56837741f7 smoke.pl now changes to apprunner_bin before invoking apprunner
git-svn-id: svn://10.0.0.236/trunk@35315 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 02:02:58 +00:00
hangas%netscape.com
61e2cc35f8 Removed hack to work around bug 7803.
git-svn-id: svn://10.0.0.236/trunk@35314 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:57:49 +00:00
akkana%netscape.com
ae46c37f43 6180: Use proper Mac linebreaks on Mac; 6083: Don't output '=value' in attributes unless there is a value
git-svn-id: svn://10.0.0.236/trunk@35313 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:42:16 +00:00
ftang%netscape.com
68ed891b0f fix bug 5565
git-svn-id: svn://10.0.0.236/trunk@35312 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:27:44 +00:00
putterman%netscape.com
d4d748d801 Get summary totals for all folders on startup, not just leaf folders.
git-svn-id: svn://10.0.0.236/trunk@35311 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:25:46 +00:00
putterman%netscape.com
fdffe24292 Commit after setting charset.
git-svn-id: svn://10.0.0.236/trunk@35310 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:25:15 +00:00
putterman%netscape.com
8583ae8b7d Add charset method.
git-svn-id: svn://10.0.0.236/trunk@35309 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:24:56 +00:00
tague%netscape.com
7d9a2e947d backed out last change.
git-svn-id: svn://10.0.0.236/trunk@35308 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:24:23 +00:00
mcafee%netscape.com
7ec1fd3f8b Patch for BeOS, thanks to Duncan Wilcox.
git-svn-id: svn://10.0.0.236/trunk@35307 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:24:06 +00:00
putterman%netscape.com
88922114e0 Add back charset method.
git-svn-id: svn://10.0.0.236/trunk@35306 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:23:34 +00:00
hyatt%netscape.com
b91d25c962 Added support for incremental reflow of nested row groups (yeah, baby, yeah, baby, YEAH).
git-svn-id: svn://10.0.0.236/trunk@35305 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:19:18 +00:00
sspitzer%netscape.com
45bd135183 fix windows build bustage.
git-svn-id: svn://10.0.0.236/trunk@35304 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:03:44 +00:00
tague%netscape.com
0eb2d25a55 Modified logic so that shortcut keys are actually returns an NS_OK when the keydown handler handels them.
git-svn-id: svn://10.0.0.236/trunk@35303 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 01:02:14 +00:00
rogerl%netscape.com
b5540991c3 Changes to get traditional functions with args. working
git-svn-id: svn://10.0.0.236/trunk@35302 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:57:05 +00:00
alecf%netscape.com
26c8590a2b add extra <treecell> tags so entire row selection works
git-svn-id: svn://10.0.0.236/trunk@35301 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:56:30 +00:00
davidm%netscape.com
c16321300c 8008 Task Menu | Services A-D do not work
git-svn-id: svn://10.0.0.236/trunk@35300 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:55:31 +00:00
alecf%netscape.com
a6224ff4c3 hook up close button
git-svn-id: svn://10.0.0.236/trunk@35299 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:52:49 +00:00
alecf%netscape.com
bada5688fd add code to open Search and Filter dialogs from menus, and put functions in the right place
git-svn-id: svn://10.0.0.236/trunk@35298 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:49:23 +00:00
alecf%netscape.com
b7844aad20 fix filter list dialog - preftree.css is gone, etc..
git-svn-id: svn://10.0.0.236/trunk@35297 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:48:19 +00:00
waterson%netscape.com
9ff1127f25 Add MPL. Alter registry loading code to insulate from whatever policy needs to be used for loading RDF/XML from the RDF service.
git-svn-id: svn://10.0.0.236/trunk@35296 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:44:33 +00:00
waterson%netscape.com
8273c8bced Use RDF/XML datasource directly, rather than loading through RDF service. The separates this from whatever policy RDF service ends up needing to use for RDF/XML. Chrome registry _must_ be loaded synchronously no matter what.
git-svn-id: svn://10.0.0.236/trunk@35295 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:42:45 +00:00
mccabe%netscape.com
26b14e1548 Remove reference to the f_noscript field, which gets set when libIDL sees a bare 'noscript' keyword.
This fixes compiling against libIDL 0.6.8, which has changed the field to __f_noscript to deprecate.  Rightly so, as noscript is expressible as a bracketed [property], and we want it to go away too.  Ignoring it rather than #ifdef'ing saves us future maintenance hassle.


git-svn-id: svn://10.0.0.236/trunk@35294 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:37:46 +00:00
sspitzer%netscape.com
3c147e85aa alerts are too broken to use at this point. #7770 and other bugs. argh.
git-svn-id: svn://10.0.0.236/trunk@35293 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:35:43 +00:00
gagan%netscape.com
f2395ad7bf Fixes to urltest.cpp.
git-svn-id: svn://10.0.0.236/trunk@35292 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:34:37 +00:00
hangas%netscape.com
330d5159f4 Removed parameter from onchange= in address book window and select address dialog.
git-svn-id: svn://10.0.0.236/trunk@35291 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:30:56 +00:00
ducarroz%netscape.com
d3e870d992 fix bug #8124, catch JS execption while setting the wrapColumn.
git-svn-id: svn://10.0.0.236/trunk@35290 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:24:10 +00:00
ducarroz%netscape.com
5a325382c8 update Editor toolbar
git-svn-id: svn://10.0.0.236/trunk@35289 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:23:00 +00:00
rhp%netscape.com
b720dccaeb Fix for GMT offset bug
git-svn-id: svn://10.0.0.236/trunk@35288 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:10:34 +00:00
alecf%netscape.com
d3e57ed0c9 fix capital E
git-svn-id: svn://10.0.0.236/trunk@35287 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:04:40 +00:00
alecf%netscape.com
2285a919a0 update menus, add search menu, etc
git-svn-id: svn://10.0.0.236/trunk@35286 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-15 00:01:23 +00:00
jj%netscape.com
dd2c0b7fd4 changed completion log string from "Build NGLayout complete" to "Build complete" to match changes made in release scripts ("BuildNGLayout.pl" and "BuildNGLayoutDebug.pl") --jj.
git-svn-id: svn://10.0.0.236/trunk@35285 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:49:45 +00:00
hyatt%netscape.com
5b1e30c2d8 More nested row group work.
git-svn-id: svn://10.0.0.236/trunk@35284 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:45:14 +00:00
briano%netscape.com
83bd1d2db2 Automated update
git-svn-id: svn://10.0.0.236/trunk@35283 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:44:52 +00:00
hyatt%netscape.com
18e1eab082 More nested row group changes.
git-svn-id: svn://10.0.0.236/trunk@35282 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:42:16 +00:00
rpotts%netscape.com
75b59e64ac Changed printf(...) to puts(...) in OnDataAvailable(...) calls. This allows % characters to be present in the output stream without crashing the test app... Added call to AsyncRead(... )in Testprotocols.cpp to get http working again...
git-svn-id: svn://10.0.0.236/trunk@35281 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:42:12 +00:00
cbegle%netscape.com
f8e8a60864 Fix error in test. Arrays should be sorted by the string value of their
members, even if they're numbers.


git-svn-id: svn://10.0.0.236/trunk@35280 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:39:14 +00:00
radha%netscape.com
a48894abaf New arguments to OnEndDocumentLoad()
git-svn-id: svn://10.0.0.236/trunk@35279 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:37:37 +00:00
briano%netscape.com
96c9d37399 Fix for non-pthreadable Linux libc5/glibc1 builds (bug 7567). Thanks to tenthumbs@cybernex.net for the fix.
git-svn-id: svn://10.0.0.236/trunk@35278 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:37:06 +00:00
radha%netscape.com
57e6c8e9b2 New arguments to OnEndDocumentLoad() added
git-svn-id: svn://10.0.0.236/trunk@35277 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:36:24 +00:00
despotdaemon%netscape.com
3c20bcb00f Pseudo-automatic update of changes made by brendan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@35276 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:30:42 +00:00
despotdaemon%netscape.com
14a2270e1c Pseudo-automatic update of changes made by brendan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@35275 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:28:05 +00:00
buster%netscape.com
e9933eba30 fixed keydown event processing to return NS_OK when a key is not handled.
git-svn-id: svn://10.0.0.236/trunk@35274 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:25:48 +00:00
sfraser%netscape.com
fa083d6e2a Add JS logging files for kin.
git-svn-id: svn://10.0.0.236/trunk@35273 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:21:03 +00:00
blizzard%redhat.com
479be36988 merge erik's changes
git-svn-id: svn://10.0.0.236/trunk@35272 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:20:51 +00:00
sfraser%netscape.com
546d03c21a Include new config file
git-svn-id: svn://10.0.0.236/trunk@35271 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:20:36 +00:00
sfraser%netscape.com
3b8a6cc841 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35270 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:20:24 +00:00
vidur%netscape.com
9c6cbaff82 Implemented Set/GetValue for Select elements
git-svn-id: svn://10.0.0.236/trunk@35269 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:14:17 +00:00
sspitzer%netscape.com
1c9d68fcb2 ignore the generated Makefile
git-svn-id: svn://10.0.0.236/trunk@35268 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:05:23 +00:00
slamm%netscape.com
810c303a52 Use chrome URLs. Fix for bug #6369.
git-svn-id: svn://10.0.0.236/trunk@35267 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:01:15 +00:00
akkana%netscape.com
9d72b542eb Change NS_ASSERTION to NS_VERIFY -- not a fatal condition
git-svn-id: svn://10.0.0.236/trunk@35266 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 23:00:50 +00:00
slamm%netscape.com
d0e35f79c5 Add entry for Sidebar skin. Fix for bug #6369.
git-svn-id: svn://10.0.0.236/trunk@35265 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:59:42 +00:00
erik%netscape.com
c26865436d Added support for CP 1251 and KOI8-R fonts (Cyrillic).
git-svn-id: svn://10.0.0.236/trunk@35264 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:55:39 +00:00
mcmullen%netscape.com
eace9f2cd3 Fix casting problem
git-svn-id: svn://10.0.0.236/trunk@35263 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:55:24 +00:00
alecf%netscape.com
ff1427278d implement GetPrettyName() correctly - return the hostname if no prettyname is known
git-svn-id: svn://10.0.0.236/trunk@35262 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:53:09 +00:00
alecf%netscape.com
7e47cd0829 fix leak in case it fails (GetLocalPath might return nsnull)
git-svn-id: svn://10.0.0.236/trunk@35261 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:51:41 +00:00
alecf%netscape.com
13af06acae add searchdialog.js to the build
git-svn-id: svn://10.0.0.236/trunk@35260 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:49:05 +00:00
alecf%netscape.com
3c9ca436f3 implement more/less and add strawman for auto-updating combo boxes when search terms change
git-svn-id: svn://10.0.0.236/trunk@35259 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:47:42 +00:00
ducarroz%netscape.com
c74a5a88b4 add nsICopyMsgStreamListener.idl
git-svn-id: svn://10.0.0.236/trunk@35258 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:47:38 +00:00
mscott%netscape.com
f9b8092054 Fix for Bug #8117 --> aborting a connection was causing an error condition to get passed into the
nsDocumentLoader::OnStopBinding. But an abort is not an error condition. the document loader
was incorrectly complaining that we had an error when we really didn't.


git-svn-id: svn://10.0.0.236/trunk@35257 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:47:15 +00:00
alecf%netscape.com
ab2f4d08b2 localize this file
git-svn-id: svn://10.0.0.236/trunk@35256 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:46:28 +00:00
putterman%netscape.com
606d7774a4 use nsICopyMsgStreamListener.
git-svn-id: svn://10.0.0.236/trunk@35255 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:44:33 +00:00
putterman%netscape.com
8e3a860ed7 use nsICopyMsgStreamListener.idl
git-svn-id: svn://10.0.0.236/trunk@35254 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:44:03 +00:00
putterman%netscape.com
39a0ff2bde changed nsICopyMessageStreamListener.idl to nsICopyMsgStreamListener.idl
git-svn-id: svn://10.0.0.236/trunk@35253 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:43:45 +00:00
kin%netscape.com
ede67127dc Fixed "===" typo.
git-svn-id: svn://10.0.0.236/trunk@35252 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:42:35 +00:00
radha%netscape.com
e0e4bffb67 Added nsISessionHistory.h
git-svn-id: svn://10.0.0.236/trunk@35251 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:36:46 +00:00
edwin%woudt.nl
2ec00ce50f Oops, lameness. Also: switch the two comments on the previous commits of these two files.
git-svn-id: svn://10.0.0.236/trunk@35250 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:36:19 +00:00
av%netscape.com
2ce886b9fe Cleaning up
git-svn-id: svn://10.0.0.236/trunk@35249 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:35:46 +00:00
ssu%netscape.com
e068d78c95 updated makefile to define USE_NON_MT_LIBS (use libc.lib)
git-svn-id: svn://10.0.0.236/trunk@35248 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:35:21 +00:00
jband%netscape.com
c2465637b3 updating status page
git-svn-id: svn://10.0.0.236/trunk@35247 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:33:18 +00:00
rpotts%netscape.com
611aedf097 Temporary implementation of AsyncRead(...). Fixed some ref-counting bugs with the NS_WITH_SERVICE macro...
git-svn-id: svn://10.0.0.236/trunk@35246 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:32:54 +00:00
radha%netscape.com
257dd26c58 Increase the height of the location bar as per request from QA. BUG # 3805
git-svn-id: svn://10.0.0.236/trunk@35245 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:32:22 +00:00
slamm%netscape.com
119c6c4a82 Defaults are good enough for margin, padding, and border.
git-svn-id: svn://10.0.0.236/trunk@35244 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:31:52 +00:00
slamm%netscape.com
6bbdbf71b6 Use one generic sidebar.css that everyone shares.
git-svn-id: svn://10.0.0.236/trunk@35243 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:28:32 +00:00
slamm%netscape.com
48b0222d5d simplify sidebar styles. Inherit more from xul.css
git-svn-id: svn://10.0.0.236/trunk@35242 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:27:40 +00:00
sspitzer%netscape.com
df34a26f31 fix my debugging printfs. if we are on a PC, allow the dialogs to show up.
git-svn-id: svn://10.0.0.236/trunk@35241 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:27:34 +00:00
sspitzer%netscape.com
ec710c89b2 if we are on a PC, allow the dialogs to pop up.
git-svn-id: svn://10.0.0.236/trunk@35240 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:26:47 +00:00
putterman%netscape.com
cfcf136257 Added deleteStorage parameter.
git-svn-id: svn://10.0.0.236/trunk@35239 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:25:10 +00:00
putterman%netscape.com
d56278b0bd Add deleteStorage parameter.
git-svn-id: svn://10.0.0.236/trunk@35238 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:24:52 +00:00
putterman%netscape.com
897f278d3d Move messages to trash on delete.
git-svn-id: svn://10.0.0.236/trunk@35237 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:24:35 +00:00
putterman%netscape.com
d1f5db2195 DeleteStorage on delete message.
git-svn-id: svn://10.0.0.236/trunk@35236 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:24:16 +00:00
putterman%netscape.com
4a352f4269 Added GetRootFolder.
git-svn-id: svn://10.0.0.236/trunk@35235 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:22:51 +00:00
putterman%netscape.com
5e4ac05bb8 nsCopyMessageStreamListener can be created from the factory, and deleting a message
doesn't deleteStorage.


git-svn-id: svn://10.0.0.236/trunk@35231 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:22:19 +00:00
rhp%netscape.com
45b77f8744 Fix for Bug#: 5866 ... I think this is fixed...again
git-svn-id: svn://10.0.0.236/trunk@35230 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:21:01 +00:00
putterman%netscape.com
23594e80f4 created nsICopyMessageStreamListener interface and added deleteStorage and GetRootFolder
to nsIMsgFolder.


git-svn-id: svn://10.0.0.236/trunk@35229 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:20:19 +00:00
ssu%netscape.com
3b9be65438 added USE_NON_MT_LIBS definition
git-svn-id: svn://10.0.0.236/trunk@35228 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:19:41 +00:00
putterman%netscape.com
7b0e5aeeda nsCopymessageStreamListener can be created through the factory.
git-svn-id: svn://10.0.0.236/trunk@35226 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:19:22 +00:00
mcafee%netscape.com
91b047854d Fixing Solaris memory problem, patch supplied by bruce@cybersight.com. a=mcmullen (6098)
git-svn-id: svn://10.0.0.236/trunk@35225 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:18:29 +00:00
jband%netscape.com
d320ba1de8 adding BeOS x86 changes from Duncan Wilcox <duncan@be.com>
git-svn-id: svn://10.0.0.236/trunk@35224 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:17:41 +00:00
mcmullen%netscape.com
cb3ce29e0b Added nsSessionHistory.cpp for radha.
git-svn-id: svn://10.0.0.236/trunk@35223 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:16:18 +00:00
ducarroz%netscape.com
0619184fed do not export an auto-generated interface file (nsIDBFolderInfo.h)
git-svn-id: svn://10.0.0.236/trunk@35222 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:13:56 +00:00
radha%netscape.com
61370baba7 New arguments for OnEndDocumentLoad()
git-svn-id: svn://10.0.0.236/trunk@35221 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:13:00 +00:00
radha%netscape.com
3c239c8b1a OnEndDocumentLoad now has a handle to the observer
git-svn-id: svn://10.0.0.236/trunk@35220 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:12:19 +00:00
radha%netscape.com
6bc9c37235 New methods for session history
git-svn-id: svn://10.0.0.236/trunk@35219 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:11:47 +00:00
radha%netscape.com
7a44de9e4e OnEndDocumentLoad() now has a handle to the caller in the argument list. Need it
for session History


git-svn-id: svn://10.0.0.236/trunk@35218 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:11:22 +00:00
radha%netscape.com
2ed23c55c0 Few new methods to support session history
git-svn-id: svn://10.0.0.236/trunk@35217 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:10:41 +00:00
radha%netscape.com
31defc43b0 OnEndDocumentLoad() now has a pointer to the caller in the argument list
git-svn-id: svn://10.0.0.236/trunk@35216 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:09:55 +00:00
vidur%netscape.com
3035417772 Fix for bug 6154. Unqualified references in the context of a form are now resolved.
git-svn-id: svn://10.0.0.236/trunk@35215 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:09:25 +00:00
radha%netscape.com
9ec09955af Implement Session history interfaces
git-svn-id: svn://10.0.0.236/trunk@35214 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:09:13 +00:00
radha%netscape.com
54b85a6eeb Add session History to the factory list
git-svn-id: svn://10.0.0.236/trunk@35213 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:08:21 +00:00
saari%netscape.com
547a56c0e5 Fixed some bugs in key listeners
git-svn-id: svn://10.0.0.236/trunk@35212 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:06:50 +00:00
radha%netscape.com
48e3773fb4 Add Session History to the factory
git-svn-id: svn://10.0.0.236/trunk@35211 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:06:49 +00:00
saari%netscape.com
56f053a605 Adding nsXULKeyListener again...
git-svn-id: svn://10.0.0.236/trunk@35210 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:06:24 +00:00
mcmullen%netscape.com
2df6c9fa5c Registered nsIDirectoryIterator
git-svn-id: svn://10.0.0.236/trunk@35209 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:06:22 +00:00
radha%netscape.com
378b503e34 OnEndDocumentLoad() now has the caller as an argument
git-svn-id: svn://10.0.0.236/trunk@35208 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:06:13 +00:00
mcmullen%netscape.com
547167bb7c Made write and read do an implicit open. Added a FileContents attribute to allow simple conversion between an entire file and a string.
git-svn-id: svn://10.0.0.236/trunk@35207 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:05:41 +00:00
radha%netscape.com
6eaeee69dd Add session History to build list
git-svn-id: svn://10.0.0.236/trunk@35206 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:05:30 +00:00
karnaze%netscape.com
beb5583b23 fixed images referenced in regression tests
git-svn-id: svn://10.0.0.236/trunk@35205 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:05:29 +00:00
radha%netscape.com
1be1c85f5b Initial Checkin
git-svn-id: svn://10.0.0.236/trunk@35204 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:05:07 +00:00
saari%netscape.com
061e0a72af Adding nsXULKeyListener to the Win and GTK builds
git-svn-id: svn://10.0.0.236/trunk@35203 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:04:32 +00:00
mcmullen%netscape.com
7d58679f65 Added constructors from new nsIFileSpec
git-svn-id: svn://10.0.0.236/trunk@35202 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:04:27 +00:00
radha%netscape.com
d4925d7a68 Session History. Initial checkins
git-svn-id: svn://10.0.0.236/trunk@35201 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:04:15 +00:00
bienvenu%netscape.com
eb380feb54 remove nsIDBFolderInfo.h from exports
git-svn-id: svn://10.0.0.236/trunk@35200 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 22:02:20 +00:00
ducarroz%netscape.com
c5a84d91e8 add build instruction for mailnews:base:search:public:MANIFEST and for mailnews:db:macbuild:msgDBIDL.mcp
git-svn-id: svn://10.0.0.236/trunk@35199 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:53:34 +00:00
edwin%woudt.nl
a7e8033a85 Fix to get viewing readonly folders working
git-svn-id: svn://10.0.0.236/trunk@35198 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:52:28 +00:00
law%netscape.com
478e7c417a Wiring up More Info... button
git-svn-id: svn://10.0.0.236/trunk@35197 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:52:23 +00:00
frankm%eng.sun.com
293ea440fe Add "fast" make target, to compile only changed files.
git-svn-id: svn://10.0.0.236/trunk@35196 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:51:52 +00:00
bienvenu%netscape.com
1de3516033 convert to idl for nsIDBFolderInfo
git-svn-id: svn://10.0.0.236/trunk@35194 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:46:37 +00:00
edwin%woudt.nl
b68b57c213 remove the message header because it is already displayed in the body itself
git-svn-id: svn://10.0.0.236/trunk@35193 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:44:55 +00:00
ducarroz%netscape.com
a14c604b99 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35192 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:41:14 +00:00
cata%netscape.com
39549a02b1 Bugfix.
git-svn-id: svn://10.0.0.236/trunk@35191 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:38:50 +00:00
edwin%woudt.nl
8b557774b7 performance improvement
git-svn-id: svn://10.0.0.236/trunk@35190 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:36:00 +00:00
edwin%woudt.nl
7151575972 .newsrc filename issues
git-svn-id: svn://10.0.0.236/trunk@35189 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:35:17 +00:00
sspitzer%netscape.com
6d53c488b5 clean up the cancel code. clean up the html error message that show up in the
message pane if you are viewing a cancelled message.  move alerts from the
nntp service and into the nntp protocol code.  print out any alerts, since bug #7770 isn't fixed.  check "us" vs. "them" before cancelling if the server
doesn't support the CANCELCHK extension.


git-svn-id: svn://10.0.0.236/trunk@35188 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:30:07 +00:00
erik%netscape.com
10005f91eb Removed the ifdef by making the BeOS-specific stuff common to both Unix
and BeOS.


git-svn-id: svn://10.0.0.236/trunk@35187 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:25:04 +00:00
jband%netscape.com
dc57448f3a fix DOM native -> JSObject convert to not leak on failure and to fail fully rather than spuriously fall back and create an xpconnect wrapper
git-svn-id: svn://10.0.0.236/trunk@35186 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:23:46 +00:00
sspitzer%netscape.com
266bdeb26b add NPL.
git-svn-id: svn://10.0.0.236/trunk@35185 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:23:01 +00:00
sspitzer%netscape.com
7d683638d7 make the alert messages show up in the console window. this is just
a hack until 7770 gets fixed.  note:  it only works for single byte languages.


git-svn-id: svn://10.0.0.236/trunk@35184 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:22:13 +00:00
jdunn%netscape.com
45f901db00 fixing macro syntax. HP flagged the construct as an error.
git-svn-id: svn://10.0.0.236/trunk@35183 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:16:05 +00:00
karnaze%netscape.com
99038ad54d regression test images
git-svn-id: svn://10.0.0.236/trunk@35182 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:15:46 +00:00
waterson%netscape.com
fec604c3ef Fix leak of tree element.
git-svn-id: svn://10.0.0.236/trunk@35181 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:15:29 +00:00
tague%netscape.com
caec41a883 Update patch for BeOS.
git-svn-id: svn://10.0.0.236/trunk@35180 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:09:35 +00:00
cbegle%netscape.com
2d17ff5ace Fix test case -- remove commas from the expected result.
git-svn-id: svn://10.0.0.236/trunk@35179 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:06:54 +00:00
mscott%netscape.com
b8d8e91a46 Fix a memory leak.
git-svn-id: svn://10.0.0.236/trunk@35178 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:05:37 +00:00
bienvenu%netscape.com
b8353f02b7 convert to idl for nsIDBFolderInfo
git-svn-id: svn://10.0.0.236/trunk@35177 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 21:03:45 +00:00
briano%netscape.com
feed155138 Automated update
git-svn-id: svn://10.0.0.236/trunk@35176 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:59:52 +00:00
dbragg%netscape.com
133c9a6fb2 Added resources to DIRS macro
git-svn-id: svn://10.0.0.236/trunk@35175 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:58:57 +00:00
dbragg%netscape.com
e6362da180 Changed name to work on Mac
git-svn-id: svn://10.0.0.236/trunk@35174 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:58:18 +00:00
tague%netscape.com
ff9f954cba Fix problem for people building in obj-dir's outside of the tree.
git-svn-id: svn://10.0.0.236/trunk@35173 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:58:14 +00:00
dbragg%netscape.com
be3aed93b1 Changed an include from nsPrefMigrationProgressDialog.h to nsPMProgressDlg.h
git-svn-id: svn://10.0.0.236/trunk@35172 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:57:04 +00:00
mcmullen%netscape.com
e9e6473499 Removed base targets (this change got lost in another checkin, owing to a merge conflict).
git-svn-id: svn://10.0.0.236/trunk@35171 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:55:37 +00:00
mcmullen%netscape.com
ded043986c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35170 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:53:23 +00:00
briano%netscape.com
ebfd198db2 Fix/hack for Linux variants that don't define _dl_loaded.
git-svn-id: svn://10.0.0.236/trunk@35169 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:52:39 +00:00
jband%netscape.com
e16e9c75be adding strlen replacement that brendan suggested to allow for passing (oneway) JSStrings with embedded NULLs. Also added comment to Makefile.in for Unixish x86
git-svn-id: svn://10.0.0.236/trunk@35168 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:35:26 +00:00
hangas%netscape.com
186eacb62f Added mimEmitter project which is a combination of html, xml, and raw emitter projects. These last three have been removed from the build.
git-svn-id: svn://10.0.0.236/trunk@35167 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:28:42 +00:00
dbragg%netscape.com
4082dcf7d6 Progress Dialog source files name shortening for Mac platform.
git-svn-id: svn://10.0.0.236/trunk@35166 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:27:11 +00:00
hangas%netscape.com
e13c6913c1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35165 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:25:33 +00:00
dbragg%netscape.com
84161663ef Progress meter xul and css files initial checkin
git-svn-id: svn://10.0.0.236/trunk@35164 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:25:12 +00:00
dougt%netscape.com
5fa77fef77 Adding IsQueueOnCurrentThread().
git-svn-id: svn://10.0.0.236/trunk@35163 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:20:33 +00:00
dougt%netscape.com
9a352b81fd Be OS patch from Duncan Wilcox <duncan@be.com> Thank you.
git-svn-id: svn://10.0.0.236/trunk@35162 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:18:35 +00:00
mscott%netscape.com
d4db300cba Part of emitter re-org. Don't build xml, raw and html directories. Build emitters\build directory.
git-svn-id: svn://10.0.0.236/trunk@35161 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:17:44 +00:00
mscott%netscape.com
aba6216161 Part of emitter re-org. don't build xml, raw & emitter directories. Add build directory.
git-svn-id: svn://10.0.0.236/trunk@35160 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:17:02 +00:00
mscott%netscape.com
a300a2fa69 Part of emitter re-org. Build new emitter files.
git-svn-id: svn://10.0.0.236/trunk@35159 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:16:34 +00:00
mscott%netscape.com
c065ac8c9c Part of emitter re-org landing. Use prog IDs instead of class IDs.
git-svn-id: svn://10.0.0.236/trunk@35158 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:16:04 +00:00
mscott%netscape.com
1d15736fc8 Part of emitter re-org landing. Remove class ids from public interface.
git-svn-id: svn://10.0.0.236/trunk@35157 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:15:14 +00:00
mscott%netscape.com
d044bd2640 Part of emitter re-org landing. Don't build html, xml and raw directories anymore. build new build directory.
git-svn-id: svn://10.0.0.236/trunk@35156 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:14:49 +00:00
mscott%netscape.com
ff70cb0460 Part of emitter re-org landing. Build new emitter files.
git-svn-id: svn://10.0.0.236/trunk@35155 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:14:20 +00:00
mscott%netscape.com
5c4a619463 Part of emitter re-org landing. Move header display types here. I'm using this header file as a common include file.
git-svn-id: svn://10.0.0.236/trunk@35154 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:14:07 +00:00
mcafee%netscape.com
c15b5f2c86 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@35153 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:11:24 +00:00
mcafee%netscape.com
16cfc2fcf3 Spelling error
git-svn-id: svn://10.0.0.236/trunk@35152 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:08:13 +00:00
tague%netscape.com
137476cbfb Portability fix for BeOS. Thanks to duncan@be.com.
git-svn-id: svn://10.0.0.236/trunk@35151 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:06:57 +00:00
tague%netscape.com
e03cefd7c7 Fixed bug #8097 and added a portability patch for BeOS. Thanks to duncan@be.os and david.gardiner@unisa.edu.au for their patches.
git-svn-id: svn://10.0.0.236/trunk@35150 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:06:24 +00:00
kin%netscape.com
38bb3e3ed2 * Added StartLogging() and StopLogging() methods to nsIEditor,
nsIHTMLEditor, nsITextEditor, and nsIEditorShell and enabled
  the "Start Log" and "End Log" menu items in the editor test bed.

* Modified makefiles for Unix and Win32 to turn on  Editor API Logging.

* Added action argument to the DeleteSelection() method in nsIEditorShell.

* Modified nsJSTxnLog to use nsJSEditorLog when writing it's output.


git-svn-id: svn://10.0.0.236/trunk@35149 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 20:02:46 +00:00
matt%netscape.com
5704751b88 Updated css files from german. Addes fixes for titledbuttons
git-svn-id: svn://10.0.0.236/trunk@35148 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 19:14:37 +00:00
beard%netscape.com
7876dc239b support more "java_" prefixed attributes.
git-svn-id: svn://10.0.0.236/trunk@35147 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 18:41:33 +00:00
beard%netscape.com
47d69e47b5 added "application/x-java-applet;version=1.1" for Java plugin compatibility, when will it end?
git-svn-id: svn://10.0.0.236/trunk@35146 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 18:41:18 +00:00
larryh%netscape.com
62a6ee8570 BugZilla #8018
git-svn-id: svn://10.0.0.236/trunk@35143 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 18:07:59 +00:00
terry%mozilla.org
71b813e43c A null quip file was causing errors.
git-svn-id: svn://10.0.0.236/trunk@35142 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 17:37:02 +00:00
terry%mozilla.org
544d8d9cef Added the ability to configure bugzilla so that we only allow local
usernames for email addresses.


git-svn-id: svn://10.0.0.236/trunk@35141 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 17:33:52 +00:00
beard%netscape.com
fcc1f4f5cb support "java_CODE" and "CLASSID" attributes.
git-svn-id: svn://10.0.0.236/trunk@35140 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 16:56:11 +00:00
beard%netscape.com
cf41488e53 added "application/x-java-applet;version=1.1.2" for Java plugin compatibility
git-svn-id: svn://10.0.0.236/trunk@35139 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 16:55:23 +00:00
beard%netscape.com
a0bf3fbecd now looks for MIME types that merely start with NS_APPLET_MIME_TYPE for better Sun Java plugin compatibility. changed MRJPlugin::CreateInstance() to use QueryInterface() rather than checking for interfaces itself.
git-svn-id: svn://10.0.0.236/trunk@35138 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 16:54:44 +00:00
beard%netscape.com
7d84137a79 simplified external access paths to point into dist
git-svn-id: svn://10.0.0.236/trunk@35137 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 16:51:34 +00:00
terry%mozilla.org
2960acc2b6 Added BeOS to the list of OS's.
git-svn-id: svn://10.0.0.236/trunk@35136 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 16:46:40 +00:00
rjc%netscape.com
887ac00407 Check for URLs that need to be massaged to be absolute URLs.
git-svn-id: svn://10.0.0.236/trunk@35135 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 09:54:19 +00:00
gagan%netscape.com
2f35eadb9b Added urltest.cpp. Hasn't been compiled as yet.
git-svn-id: svn://10.0.0.236/trunk@35134 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:45:27 +00:00
gagan%netscape.com
078256dba8 Added the urltest program as well.
git-svn-id: svn://10.0.0.236/trunk@35133 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:44:22 +00:00
mccabe%netscape.com
8e7082b3aa Removed misleading /* interface scooby */ comment in generated #include "scooby.h" line.
git-svn-id: svn://10.0.0.236/trunk@35132 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:28:23 +00:00
hyatt%netscape.com
e2c320e27d More nested row group work.
git-svn-id: svn://10.0.0.236/trunk@35131 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:22:47 +00:00
rjc%netscape.com
7a84203930 Unset column sorting attributes instead of setting them to false if they aren't active.
git-svn-id: svn://10.0.0.236/trunk@35130 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:20:35 +00:00
hyatt%netscape.com
7ea32ee2c4 More changes to allow tables to support nested row groups.
git-svn-id: svn://10.0.0.236/trunk@35129 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 08:01:00 +00:00
rjc%netscape.com
c28700cf2d More search support.
git-svn-id: svn://10.0.0.236/trunk@35128 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 07:14:38 +00:00
beard%netscape.com
ad7eb2da6d bug #7018: conditionally initializing LiveConnect classes only if Java is truly enabled.
git-svn-id: svn://10.0.0.236/trunk@35127 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 06:41:09 +00:00
bruce%cybersight.com
3bed02e2d0 Interface classes really do need to define |GetIID()|. 5 of these files are just being switched over to the macro. The others were all lacking |GetIID()| implementations.
git-svn-id: svn://10.0.0.236/trunk@35126 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 06:16:08 +00:00
rhp%netscape.com
887db136b0 New quoting interface
git-svn-id: svn://10.0.0.236/trunk@35125 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 05:23:06 +00:00
rhp%netscape.com
0e4268630c Adding new quoting interface
git-svn-id: svn://10.0.0.236/trunk@35121 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 05:22:07 +00:00
tague%netscape.com
b3fa226dff Fixed conditional problem when i turned on my keyobard patch.
git-svn-id: svn://10.0.0.236/trunk@35120 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 04:39:03 +00:00
mscott%netscape.com
5a7cb82de1 Fix copy messages which I broke when I cleaned up some of this code. *oops*
git-svn-id: svn://10.0.0.236/trunk@35119 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 04:30:31 +00:00
talisman%anamorphic.com
3aa1b2e565 Minor modifications in response to but #8067. This file was not part of the bug.
git-svn-id: svn://10.0.0.236/trunk@35118 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 03:57:55 +00:00
talisman%anamorphic.com
280ce3deb8 Fixed edwin's code in response to his bug report(#8067). Bug was caused by not setting the button sizes correctly (Dimension.setSize() is not for setting component sizes).
git-svn-id: svn://10.0.0.236/trunk@35117 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 03:57:04 +00:00
tague%netscape.com
32033e0a82 Removed empty export lists from files. This breaks older versions of nmake
git-svn-id: svn://10.0.0.236/trunk@35116 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 03:49:31 +00:00
karnaze%netscape.com
e0745dafd7 regression test
git-svn-id: svn://10.0.0.236/trunk@35115 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 03:46:21 +00:00
erik%netscape.com
d183933e3e Added GetIID.
git-svn-id: svn://10.0.0.236/trunk@35114 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:59:55 +00:00
waterson%netscape.com
e8f30d5f43 Add MISCDEP so that DLL gets rebuilt if a static lib changes.
git-svn-id: svn://10.0.0.236/trunk@35113 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:22:52 +00:00
bienvenu%netscape.com
16822a2715 prepare for msgdb idl
git-svn-id: svn://10.0.0.236/trunk@35112 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:20:41 +00:00
blizzard%redhat.com
b0b65db96c Make sure this interface has a GetIID() method. Approved by Shaver.
git-svn-id: svn://10.0.0.236/trunk@35111 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:11:02 +00:00
danm%netscape.com
98e80ada70 adding extensions/wallet/editor for morse
git-svn-id: svn://10.0.0.236/trunk@35110 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:09:29 +00:00
dp%netscape.com
9d7270fb87 - NS_RegistryGetFactory API changed
git-svn-id: svn://10.0.0.236/trunk@35109 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:08:49 +00:00
dp%netscape.com
aef0c9821c - NS_RegistryGetFactory API Change
- QuickRegister eliminated


git-svn-id: svn://10.0.0.236/trunk@35108 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:07:03 +00:00
danm%netscape.com
16ae30744d First Checked In.
git-svn-id: svn://10.0.0.236/trunk@35107 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 02:04:37 +00:00
blizzard%redhat.com
5826a92dd7 let mouse events flow...
git-svn-id: svn://10.0.0.236/trunk@35106 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 01:53:52 +00:00
blizzard%redhat.com
96b698384d always flush the X event queue before going back into select and always process X events as long as they are available.
git-svn-id: svn://10.0.0.236/trunk@35105 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 00:48:30 +00:00
blizzard%redhat.com
5d0bd2fa3d a slightly more sane nsDrawingSurface
git-svn-id: svn://10.0.0.236/trunk@35104 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-14 00:47:37 +00:00
talisman%anamorphic.com
92c010d4f7 Added handlers for mousePressed() and mouseReleased() so the border paints appropriately.
git-svn-id: svn://10.0.0.236/trunk@35103 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 23:57:19 +00:00
rhp%netscape.com
3f4d75b8c3 New files for StreamConverter interface - not part of the build yet
git-svn-id: svn://10.0.0.236/trunk@35102 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 22:15:14 +00:00
rickg%netscape.com
16b12398ad fixed build error; accidently left debug code exposed
git-svn-id: svn://10.0.0.236/trunk@35101 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 22:13:16 +00:00
rhp%netscape.com
6d5a0b4004 Cleanup of test harness
git-svn-id: svn://10.0.0.236/trunk@35100 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 22:08:55 +00:00
tague%netscape.com
824db2e9b4 Fixed build bustage.
git-svn-id: svn://10.0.0.236/trunk@35099 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 21:53:27 +00:00
rickg%netscape.com
0bae0c1a04 faster viewing of text, bugs: 7889, 7892, 8047, 3795
git-svn-id: svn://10.0.0.236/trunk@35098 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 21:24:25 +00:00
rickg%netscape.com
08109ed280 perf improvements, bug fix in insert(), better error reporting in ToInteger()
git-svn-id: svn://10.0.0.236/trunk@35097 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 21:23:04 +00:00
tague%netscape.com
58fc1493f9 Turned on bug fix for #6896: Windows editorinterprets the period key as a forward delete.
git-svn-id: svn://10.0.0.236/trunk@35096 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 21:13:12 +00:00
syd%netscape.com
c009860f8f Add SetModal() widget interface to nsIWidget, and provide an implementation
for Gtk+. Now, when we do modal dialogs, Gtk+ calls a routine that makes the
dialog modal within Gtk+; this is in addition to the code in nsWebShellWindow
that is being invoked to support modals on the other platforms. For Gtk+, the
nsWebShellWindow code doesn't appear to be enough; in order for the event
plumbing to stay alive, we need to call into Gtk+, and unless we actually make
the dialog modal using Gtk+ mechanisms, the user can still get to the menu bar, which is not good.


git-svn-id: svn://10.0.0.236/trunk@35095 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 20:56:08 +00:00
sspitzer%netscape.com
4ac61e25d3 clean up my original hack to display error messages in the message pane.
before I was using a .eml file, and so I need the error message to be an
rfc 822 message for things to work.  Now, the file is a .htm file, so I can
just write normal html to the file, and it will work.

all this will go away when we don't have to use files, and we can write
directly to the stream.


git-svn-id: svn://10.0.0.236/trunk@35094 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 20:37:56 +00:00
blizzard%redhat.com
55d85cf2d6 merge in Erik's changes to gtk fonts
git-svn-id: svn://10.0.0.236/trunk@35093 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 20:34:56 +00:00
rhp%netscape.com
690b6ec969 A new test harness for libmime's new nsIStreamConverter.h interface
git-svn-id: svn://10.0.0.236/trunk@35091 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 20:11:37 +00:00
morse%netscape.com
b1232288a8 fix minor bug
git-svn-id: svn://10.0.0.236/trunk@35090 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 19:53:51 +00:00
jband%netscape.com
ece5c35801 changing JS_AddRoot calls to JS_AddNamedRoot calls to satisfy request in bug 8070
git-svn-id: svn://10.0.0.236/trunk@35089 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 19:19:44 +00:00
morse%netscape.com
ade032357b minor editing changes
git-svn-id: svn://10.0.0.236/trunk@35088 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 19:10:48 +00:00
sspitzer%netscape.com
d80b856b2b initialize previously uninitialized memory
git-svn-id: svn://10.0.0.236/trunk@35087 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 19:04:19 +00:00
morse%netscape.com
8120857730 CANCEL from safe-form-fill dialog was not working
git-svn-id: svn://10.0.0.236/trunk@35086 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 18:42:39 +00:00
erik%netscape.com
85a9783e7a Started using Frank's 64K bit array code and the Unicode converters.
The euro now displays on Linux.


git-svn-id: svn://10.0.0.236/trunk@35085 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 18:33:37 +00:00
waterson%netscape.com
9929a02b24 Remove crufty code that wasn't doing anything. Fix refcounting on the database.
git-svn-id: svn://10.0.0.236/trunk@35084 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 18:31:06 +00:00
waterson%netscape.com
5e45b132b9 Remove crufty code that wasn't doing anything.
git-svn-id: svn://10.0.0.236/trunk@35083 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 18:30:47 +00:00
morse%netscape.com
e4497eb7a4 use new get-password and get-user dialog
git-svn-id: svn://10.0.0.236/trunk@35082 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 17:25:56 +00:00
morse%netscape.com
3142059e02 use new get-password dialog
git-svn-id: svn://10.0.0.236/trunk@35081 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 17:25:35 +00:00
morse%netscape.com
8f094cf52a add dialogs needed by wallet
git-svn-id: svn://10.0.0.236/trunk@35080 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 17:23:12 +00:00
sspitzer%netscape.com
5149a29f46 changes to get news cancel working. more to be done, but the basics of
news cancel works for now.


git-svn-id: svn://10.0.0.236/trunk@35079 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 17:14:05 +00:00
morse%netscape.com
3c5f4d4fc1 remove wallet-related stuff from appcores
git-svn-id: svn://10.0.0.236/trunk@35078 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 15:01:07 +00:00
morse%netscape.com
5f4e33d089 remove wallet previewer from appcores
git-svn-id: svn://10.0.0.236/trunk@35077 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 14:57:15 +00:00
morse%netscape.com
8c6ba6cf4e remove signon viewer from appcores
git-svn-id: svn://10.0.0.236/trunk@35076 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 14:51:08 +00:00
morse%netscape.com
e897b52b25 remove cookie viewer from appcores
git-svn-id: svn://10.0.0.236/trunk@35075 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 14:47:09 +00:00
edwin%woudt.nl
795e08719f forgot MPL
git-svn-id: svn://10.0.0.236/trunk@35074 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 12:43:32 +00:00
edwin%woudt.nl
d90680d892 Display quoted stuff correctly
git-svn-id: svn://10.0.0.236/trunk@35073 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 12:42:47 +00:00
edwin%woudt.nl
a7302a2c7b Upgrade to version 1.0 of the knife NNTP provider
git-svn-id: svn://10.0.0.236/trunk@35072 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 10:14:03 +00:00
jfrancis%netscape.com
486a69592f ssssh, it's a secret
git-svn-id: svn://10.0.0.236/trunk@35071 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 07:50:17 +00:00
av%netscape.com
3c05823443 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@35070 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 06:18:35 +00:00
av%netscape.com
13c3ea8078 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@35069 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 06:11:33 +00:00
av%netscape.com
3c69310de5 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@35068 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 06:06:12 +00:00
av%netscape.com
f32ee28abb *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@35067 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 06:00:56 +00:00
jj%netscape.com
593324ca66 [sfraser] Really remove nsDialog.cpp. Hacking the binary doesn't work.
git-svn-id: svn://10.0.0.236/trunk@35066 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 04:55:06 +00:00
mcafee%netscape.com
8fc7522955 Removing nsDialog.cpp
git-svn-id: svn://10.0.0.236/trunk@35065 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 04:24:21 +00:00
mcafee%netscape.com
8c3e6bc3e6 Removing obsolete nsIDialog interface.
git-svn-id: svn://10.0.0.236/trunk@35064 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 04:00:06 +00:00
mcafee%netscape.com
ad4a86e123 Removing nsIDialog interface.
git-svn-id: svn://10.0.0.236/trunk@35063 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:59:10 +00:00
mcafee%netscape.com
aa8f2be5b5 Removing nsDialog from the build.
git-svn-id: svn://10.0.0.236/trunk@35062 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:57:24 +00:00
mcafee%netscape.com
1250df240e Removing nsDialog from the build.
git-svn-id: svn://10.0.0.236/trunk@35061 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:41:31 +00:00
danm%netscape.com
fb18842156 moved GetPrimordialThread from nsAppShellService to nsThread, as suggested by warren
git-svn-id: svn://10.0.0.236/trunk@35060 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:30:38 +00:00
kin%netscape.com
d4f390e372 Added support for nsIFileSpec writing. We now write out the log to a file
called journal.js.NEW. Changed all calls to printf to Write() and WriteInt().


git-svn-id: svn://10.0.0.236/trunk@35059 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 03:09:00 +00:00
morse%netscape.com
99f911359a fix bug 8050
git-svn-id: svn://10.0.0.236/trunk@35058 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 02:05:14 +00:00
mcafee%netscape.com
7b8faf0fff Removing nsDialog from the build.
git-svn-id: svn://10.0.0.236/trunk@35057 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 01:01:26 +00:00
talisman%anamorphic.com
aab9750f21 Changed from using plain-jane JButtons to the new ToolBarButton class I wrote.
git-svn-id: svn://10.0.0.236/trunk@35056 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:45:40 +00:00
talisman%anamorphic.com
0518e43e5b Implements the standard Netscape toolbar button behaviour of painting a raised border when the mouse is passed over it.
git-svn-id: svn://10.0.0.236/trunk@35055 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:44:28 +00:00
mcafee%netscape.com
92c8d64f45 Removing nsDialog from the build.
git-svn-id: svn://10.0.0.236/trunk@35054 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:18:39 +00:00
mcafee%netscape.com
584ee3314f Removing nsDialog from the build, cleanup.
git-svn-id: svn://10.0.0.236/trunk@35053 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:17:00 +00:00
sspitzer%netscape.com
845376db4f fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@35052 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:09:00 +00:00
mcafee%netscape.com
a6064ea48f Removing nsDialog.cpp from the build.
git-svn-id: svn://10.0.0.236/trunk@35051 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:08:55 +00:00
mcafee%netscape.com
4dbc274d59 Backing out pavlov's change to ressurect the menubar. pavlov, please test your changes before you check them in!
git-svn-id: svn://10.0.0.236/trunk@35050 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-13 00:06:38 +00:00
sspitzer%netscape.com
878bcdd7ad fix build breakage for steve clark
git-svn-id: svn://10.0.0.236/trunk@35049 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 23:14:37 +00:00
buster%netscape.com
e3eef553a7 fixed a syntax problem, just a typo
git-svn-id: svn://10.0.0.236/trunk@35048 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 23:13:54 +00:00
cmanske%netscape.com
4d52292017 More improvements to HLine dialog
git-svn-id: svn://10.0.0.236/trunk@35047 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:35:39 +00:00
buster%netscape.com
a64d14749a added style for disabled text controls
git-svn-id: svn://10.0.0.236/trunk@35046 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:33:45 +00:00
buster%netscape.com
5c2c4b30e5 added support for ender GFX-Rendered text control
git-svn-id: svn://10.0.0.236/trunk@35045 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:32:41 +00:00
buster%netscape.com
0143d6a3fa added support for getting and setting default background and font info
git-svn-id: svn://10.0.0.236/trunk@35043 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:31:57 +00:00
buster%netscape.com
a450d1bfba added support for style contexts getting background and font defaults from
the pres context.


git-svn-id: svn://10.0.0.236/trunk@35042 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:31:15 +00:00
buster%netscape.com
cf0489fb83 added support for Ender GFX-rendered text control
made nsTextControlFrame an abstract base class for nsGfxTextControlFrame and
nsNativeTextControlFrame


git-svn-id: svn://10.0.0.236/trunk@35041 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:29:54 +00:00
buster%netscape.com
b020694215 added support for Ender GFX-rendered text control
git-svn-id: svn://10.0.0.236/trunk@35040 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:28:11 +00:00
buster%netscape.com
33fb4efaef used by ender GFX-rendered text widget as the default document to edit
git-svn-id: svn://10.0.0.236/trunk@35039 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:26:22 +00:00
cmanske%netscape.com
762cc1d3ee Fixed bug in HLine code. Replaced itoa with PR_snprintf
git-svn-id: svn://10.0.0.236/trunk@35038 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 22:11:59 +00:00
mcafee%netscape.com
edad965b29 Removing NS_CreateDialog(), nsDialog is obsolete.
git-svn-id: svn://10.0.0.236/trunk@35037 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:40:10 +00:00
av%netscape.com
e21e1c0c2f *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@35036 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:32:49 +00:00
cmanske%netscape.com
11dac7bbef Horizontal Line dialog and setting/getting hline settings from prefs implemented. Masked effect of bug 8058 by removing popupanchor attribute.
git-svn-id: svn://10.0.0.236/trunk@35035 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:22:12 +00:00
waterson%netscape.com
d1e9762b93 Change GetElementRefResource() to use rdf_MakeAbsoluteURI() to resolve attribute names. This makes it work more like '<a href=...>', which seems right (and fixes some problems that will occur with sitemaps). Inline code in GetElementResource() that was previously shared between the two.
git-svn-id: svn://10.0.0.236/trunk@35034 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:21:47 +00:00
buster%netscape.com
91f2070891 changed the way nsEditProperty is used. Right now, it's our placeholder
for HTML and CSS atoms, since we can't get these from layout yet.  The old
use assumed one editor, but as we know many editors can exist simultaneously.
Now, the editors share a singleton which is fetched from a factory method,
saving memory and allocation overhead.


git-svn-id: svn://10.0.0.236/trunk@35033 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:15:14 +00:00
waterson%netscape.com
803a0f175d Add a rdf_MakeAboluteURI() that's overloaded to take an nsIURL.
git-svn-id: svn://10.0.0.236/trunk@35032 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:14:32 +00:00
buster%netscape.com
589baef929 minor cleanup, removal of old code
git-svn-id: svn://10.0.0.236/trunk@35031 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:13:15 +00:00
erik%netscape.com
ad810909f0 Support for non-Latin-1 menus. We now convert from Unicode to the locale's
encoding, and use a set of default fonts in the non-Latin-1 case only.


git-svn-id: svn://10.0.0.236/trunk@35030 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:09:16 +00:00
erik%netscape.com
192fe6b11a Was crashing when property already existed. Fixed now, by ignoring
subsequent attempts.


git-svn-id: svn://10.0.0.236/trunk@35029 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 21:07:22 +00:00
erik%netscape.com
bf056c0f5d LC_ALL -> LC_CTYPE (LC_ALL returns multiple values on some Unixes).
"" -> NULL (pass NULL to setlocale to query).
"locale." -> "locale.all." (someone forgot the "all." part of the key).


git-svn-id: svn://10.0.0.236/trunk@35028 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 20:56:45 +00:00
bruce%cybersight.com
02e0f80d71 This file depends directly upon nsFileSpec .. with an upcoming checkin, that include may not be happening in one of the files currently included here, so we best include it here directly.
git-svn-id: svn://10.0.0.236/trunk@35027 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 20:40:29 +00:00
waterson%netscape.com
54296b02ac Fix incorrect usage of dont_QueryInterface(). Fix bogus refcounting cruft in the nsIContent manipulators that must've been left over from when mChildren was an nsVoidArray.
git-svn-id: svn://10.0.0.236/trunk@35026 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 19:39:11 +00:00
waterson%netscape.com
5b2039fa07 Fix incorrect use of dont_QueryInterface() that was causing massive leakage.
git-svn-id: svn://10.0.0.236/trunk@35025 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 19:35:54 +00:00
waterson%netscape.com
1c99019f97 Fix incorrect use of dont_QueryInterface() with dont_AddRef(). Use nsCOMPtr in broadcast hookup code.
git-svn-id: svn://10.0.0.236/trunk@35024 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 19:33:37 +00:00
waterson%netscape.com
5258e10cb1 Fix incorrect use of dont_QueryInterface() with dont_AddRef().
git-svn-id: svn://10.0.0.236/trunk@35023 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 19:31:36 +00:00
sspitzer%netscape.com
c8e83135e1 ignore the generated Makefile
git-svn-id: svn://10.0.0.236/trunk@35022 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 19:23:17 +00:00
mcafee%netscape.com
0453db72f5 Removing NS_CreateDialog(), nsDialog is obsolete. a=rickg
git-svn-id: svn://10.0.0.236/trunk@35021 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 18:57:22 +00:00
sspitzer%netscape.com
23a4d59c0a set the default nntp server to "news.mozilla.org". I'll change it back to "news" before beta. (see bug #8053)
git-svn-id: svn://10.0.0.236/trunk@35020 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 18:38:53 +00:00
sspitzer%netscape.com
27bac3add4 initial work to make posting to any news host.
currently, you can only post to the server specified by the
"network.hosts.nntp_server" pref.  by default, the value of this pref "news".

more work needs to be done to complete this.

fix for #6655


git-svn-id: svn://10.0.0.236/trunk@35019 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 18:10:58 +00:00
sspitzer%netscape.com
f19ca56b72 fix for #7891. commit db after we mark a header read.
git-svn-id: svn://10.0.0.236/trunk@35018 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 18:07:21 +00:00
sspitzer%netscape.com
d1bf76337e rewrite to use nsString.
git-svn-id: svn://10.0.0.236/trunk@35017 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 17:51:55 +00:00
morse%netscape.com
14554c98cd fix regression -- bug 8052
git-svn-id: svn://10.0.0.236/trunk@35016 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 17:43:42 +00:00
bruce%cybersight.com
304d735c7e Add newline at end of file for commercial unix compilers.
git-svn-id: svn://10.0.0.236/trunk@35015 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 16:59:57 +00:00
waterson%netscape.com
67cbb9dcf8 Ensure that mBuf <-- 0 before assignment begins. Otherwise we run the rise of a failed assignment causing a duplicate free.
git-svn-id: svn://10.0.0.236/trunk@35014 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 16:39:11 +00:00
dp%netscape.com
b077529bb9 Removing unused prototype NS_RegistryGetFactory()
git-svn-id: svn://10.0.0.236/trunk@35013 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 15:55:54 +00:00
dp%netscape.com
5354fabe84 Removing obsolete files from xpcom.
git-svn-id: svn://10.0.0.236/trunk@35012 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 15:54:46 +00:00
dp%netscape.com
7c1bb8d6a8 Removing unused NS_RegistryGetFactory() prototype.
git-svn-id: svn://10.0.0.236/trunk@35011 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 15:36:22 +00:00
dp%netscape.com
70cb14677e Removing obsoleted files from xpcom/ post xpcom2.0 landing
git-svn-id: svn://10.0.0.236/trunk@35010 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 14:59:16 +00:00
despotdaemon%netscape.com
fc93994c84 Pseudo-automatic update of changes made by shaver@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@35009 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 14:49:42 +00:00
briano%netscape.com
61c2a72e45 Automated update
git-svn-id: svn://10.0.0.236/trunk@35008 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 12:59:51 +00:00
ramiro%netscape.com
ed30adc2d7 Conditionally ifdef out some dtd debugging code that chokes some
compilers because of badly broken streams code in prstrm.cpp.


git-svn-id: svn://10.0.0.236/trunk@35007 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 12:49:04 +00:00
ramiro%netscape.com
9b5ccff7e3 Add *.rpo - g++ -frepo template repository files.
git-svn-id: svn://10.0.0.236/trunk@35006 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 12:37:49 +00:00
mccabe%netscape.com
e5b993dd76 Resurrected this somehow. Beating it back down.
git-svn-id: svn://10.0.0.236/trunk@35005 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:44:11 +00:00
briano%netscape.com
d70a6d276b Automated update
git-svn-id: svn://10.0.0.236/trunk@35004 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:30:21 +00:00
mccabe%netscape.com
1c543f3a5e Remove vestiges of BUILD_XPIDL and USE_XPIDL from the build.
git-svn-id: svn://10.0.0.236/trunk@35003 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:29:46 +00:00
kin%netscape.com
3070792cff Added functions to run the journal.js file.
Replaced all ocurrences of "appCore" with "window.editorAppShell".


git-svn-id: svn://10.0.0.236/trunk@35002 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:18:14 +00:00
kin%netscape.com
8823a7e8df Added Start/Stop/Run Journal menu items to Debug menu.
git-svn-id: svn://10.0.0.236/trunk@35001 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:15:39 +00:00
kin%netscape.com
0e39838f57 Changed all occurrences of "appCore" to "window.editorShell" to sync up
with sfraser@netscape.com's changes to switch the editor over to XPIDL.


git-svn-id: svn://10.0.0.236/trunk@35000 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 09:14:19 +00:00
rpotts%netscape.com
3648ddb21c Added FillStream(...) which exposes nsIBuffer::WriteSegments()
git-svn-id: svn://10.0.0.236/trunk@34999 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:56:05 +00:00
rpotts%netscape.com
4b5583cc5b Changed doRead() to fill the stream using the IBuffer::WriteSegments api rather than Fill()... This removes an intermediate buffer copy and cleans up the code...
git-svn-id: svn://10.0.0.236/trunk@34998 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:54:56 +00:00
rpotts%netscape.com
a0d76bf639 Changed WriteSegments(...) to return NS_BASE_STREAM_FULL if a WriteSegment cannot be allocated. And to propagate WOULD_BLOCK if it is returned by the reader() function....
git-svn-id: svn://10.0.0.236/trunk@34997 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:52:59 +00:00
rpotts%netscape.com
13a476a717 Added a new stream return code - NS_BASE_STREAM_FULL. This is returned when a stream is full and must be read before more data can be added...
git-svn-id: svn://10.0.0.236/trunk@34996 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:50:24 +00:00
andreas.otte%primus-online.de
4be1360692 fix to get Makefile.in working again
git-svn-id: svn://10.0.0.236/trunk@34995 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:46:44 +00:00
dp%netscape.com
458f9dbaf6 adding back for doc purpose
git-svn-id: svn://10.0.0.236/trunk@34994 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:08:15 +00:00
warren%netscape.com
a7a7b53d04 Removed link dependency on netwerk.dll.
git-svn-id: svn://10.0.0.236/trunk@34993 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 08:07:05 +00:00
dp%netscape.com
5bf3f0bc32 Removing obsoleted files from xpcom/ post xpcom2.0 landing
git-svn-id: svn://10.0.0.236/trunk@34992 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:54:05 +00:00
dp%netscape.com
e95ac5d9c9 Removing obsoleted files from xpcom/ post xpcom2.0 landing
git-svn-id: svn://10.0.0.236/trunk@34991 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:42:48 +00:00
warren%netscape.com
a294d9658a Fixed build problem.
git-svn-id: svn://10.0.0.236/trunk@34990 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:17:02 +00:00
warren%netscape.com
1e293abb2c removed
git-svn-id: svn://10.0.0.236/trunk@34989 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:15:18 +00:00
warren%netscape.com
0ba20d9f37 Merged in file transport stuff (now file transport is obsolete).
git-svn-id: svn://10.0.0.236/trunk@34988 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:14:19 +00:00
warren%netscape.com
98c9c247be Added NS_NET to export global functions.
git-svn-id: svn://10.0.0.236/trunk@34987 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 07:14:12 +00:00
andreas.otte%primus-online.de
7a5e16657b fix to get Makefile.in working again
git-svn-id: svn://10.0.0.236/trunk@34986 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 06:53:45 +00:00
beard%netscape.com
09b1df7600 fixed "rescued items" problem
git-svn-id: svn://10.0.0.236/trunk@34985 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 06:27:00 +00:00
jband%netscape.com
7d3b16d3ab fix Mac breakage
git-svn-id: svn://10.0.0.236/trunk@34984 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 06:00:03 +00:00
sfraser%netscape.com
fc2f70d298 Export plain text XUL file
git-svn-id: svn://10.0.0.236/trunk@34983 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 05:18:02 +00:00
beard%netscape.com
b338b9c54d bug #6676: fixed inconsistent use of kControlEditTextPasswordTag vs. kControlEditTextTextTag in the GetText/SetText methods.
git-svn-id: svn://10.0.0.236/trunk@34982 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 04:55:08 +00:00
warren%netscape.com
b49c227b08 Changes to allow hack in necko makefiles so that header names don't collide.
git-svn-id: svn://10.0.0.236/trunk@34981 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 04:30:44 +00:00
jband%netscape.com
38a217c93a added forced linkage to another xptcall file and moved the prototypes to the dummies to xptcall.h
git-svn-id: svn://10.0.0.236/trunk@34980 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 04:30:13 +00:00
jband%netscape.com
8620f6315b another try for this code needed to make Irix work (with fixed dll export stuff this time)
git-svn-id: svn://10.0.0.236/trunk@34979 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 04:29:12 +00:00
hangas%netscape.com
cd5d9af34f Made buttons localizable
git-svn-id: svn://10.0.0.236/trunk@34978 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:34:02 +00:00
hangas%netscape.com
9ee198ea26 Glued in the address bucket in the address picker dialog
git-svn-id: svn://10.0.0.236/trunk@34977 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:32:56 +00:00
pavlov%pavlov.net
81c648b8eb since we now have nsWindow::ShowMenuBar(), we don't need to forcefully create
the menubar when it is created.


git-svn-id: svn://10.0.0.236/trunk@34976 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:15:47 +00:00
pavlov%pavlov.net
7f62283d43 simplify nsWidget::IsVisible and a few minor indentation changes
git-svn-id: svn://10.0.0.236/trunk@34975 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:13:16 +00:00
pavlov%pavlov.net
6629bfcb04 rename the menubar member
git-svn-id: svn://10.0.0.236/trunk@34974 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:02:57 +00:00
tao%netscape.com
9ac86c73cd 7821:make strres locale-sensitive. r=erik@netscape.com. Add api:
nsStringBundleService::CreateBundle(const char* aURLSpec, nsILocale* aLocale,
  nsIStringBundle** aResult)


git-svn-id: svn://10.0.0.236/trunk@34973 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 03:02:10 +00:00
warren%netscape.com
bb10182347 Added nsDNSService factory.
git-svn-id: svn://10.0.0.236/trunk@34972 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:59:02 +00:00
warren%netscape.com
1f4be17602 Replaced with idl files.
git-svn-id: svn://10.0.0.236/trunk@34971 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:53:57 +00:00
warren%netscape.com
8ecacf5ff9 Added dns to the build. Factored Cancel/Suspend/Resume into nsIRequest.
git-svn-id: svn://10.0.0.236/trunk@34970 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:53:21 +00:00
rjc%netscape.com
ba33e73da3 Get bookmarks.idl and bookmarks projects into the Mac build.
git-svn-id: svn://10.0.0.236/trunk@34969 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:32:12 +00:00
tague%netscape.com
0643946696 Conditionalized Fix for #6896. Modified the nsMacEventHandler.cpp to generate NS_KEY_PRESS events in addition to NS_KEY_DOWN.
git-svn-id: svn://10.0.0.236/trunk@34968 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:29:52 +00:00
rjc%netscape.com
f9e5e07768 Be sure to write out bookmarks.html to the same place we read it in from! Bookmarks were moved from mozilla/rdf/ to mozilla/xpfe/components/bookmarks and bookmarks.html is now stored inside of $DIST/res/samples instead of the old $DIST/res/rdf
git-svn-id: svn://10.0.0.236/trunk@34967 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:29:16 +00:00
tague%netscape.com
650b890778 More work on #6896. Removed a debuging printf and fixed keysym translation.
git-svn-id: svn://10.0.0.236/trunk@34966 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:25:27 +00:00
bienvenu%netscape.com
c06c83b299 more work on imap filters
git-svn-id: svn://10.0.0.236/trunk@34965 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:04:29 +00:00
bienvenu%netscape.com
e995e7bec0 move comment nearer code it refers to
git-svn-id: svn://10.0.0.236/trunk@34964 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 02:04:08 +00:00
sgehani%netscape.com
79d2b5abd5 Included strres lib required by LoadResources().
git-svn-id: svn://10.0.0.236/trunk@34963 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:55:35 +00:00
sgehani%netscape.com
8fc8b5803f 1> Added LoadResources().
2> Fixed UNIX Makefile.in although it's not being built by the regular build system yet.


git-svn-id: svn://10.0.0.236/trunk@34962 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:54:29 +00:00
warren%netscape.com
ea46aeb77e Rule to create netwerk/dist/include.
git-svn-id: svn://10.0.0.236/trunk@34961 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:47:13 +00:00
frankm%eng.sun.com
5496bbae3d Revamp NativeJavaObject.coerceType and associated methods to make code
more maintainable, and to pass lc3/JSObject/ToChar-001.js.


git-svn-id: svn://10.0.0.236/trunk@34960 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:41:20 +00:00
warren%netscape.com
1e6b7a34c2 Made Create constructor and used GenericFactory.
git-svn-id: svn://10.0.0.236/trunk@34959 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:41:16 +00:00
warren%netscape.com
32a9207366 More work on file: protocol.
git-svn-id: svn://10.0.0.236/trunk@34958 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:41:12 +00:00
warren%netscape.com
347f675454 Hack to make necko co-exist with seamonkey so headers don't collide.
git-svn-id: svn://10.0.0.236/trunk@34957 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:41:08 +00:00
ftang%netscape.com
005c5554ca add new support for GL
git-svn-id: svn://10.0.0.236/trunk@34956 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:38:30 +00:00
ftang%netscape.com
a16b45eba6 fix bug 5893
git-svn-id: svn://10.0.0.236/trunk@34955 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:37:46 +00:00
slamm%netscape.com
2bea8089b5 Remove unused sidebar files.
git-svn-id: svn://10.0.0.236/trunk@34954 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:32:47 +00:00
mcmullen%netscape.com
251d87362d Moved the idl flag down to match the build order (both occurrences).
git-svn-id: svn://10.0.0.236/trunk@34953 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:25:21 +00:00
ftang%netscape.com
fdc371a715 remove nsUnicharUtil for win, ifdef XP_MAC untill we verify
git-svn-id: svn://10.0.0.236/trunk@34952 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:21:50 +00:00
sspitzer%netscape.com
870349fc7b fix mac build bustage. saari made nsXULKeyListener.cpp part of the mac build,
but hasn't defined this CID yet.


git-svn-id: svn://10.0.0.236/trunk@34951 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:21:10 +00:00
bryce-mozilla%nextbus.com
ec7719fef6 Give administrators a clue that upgrading is possible, even straightforward.
git-svn-id: svn://10.0.0.236/trunk@34950 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:16:44 +00:00
mcmullen%netscape.com
8b8115d8ad This file differs from others only in the flag settings, and we cannot afford to maintain 2**n files with everybody's favorite settings (discussed in macdev meetings). Removing this.
git-svn-id: svn://10.0.0.236/trunk@34949 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:15:44 +00:00
mcmullen%netscape.com
46fbcf1bc9 Added a ruled announcement for Simon's new idl grouping.
git-svn-id: svn://10.0.0.236/trunk@34946 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:09:05 +00:00
mcmullen%netscape.com
68d2cf91ea Added simon's new idl flag to the "most" list. Restored the clobber flags to make this safe for newbies.
git-svn-id: svn://10.0.0.236/trunk@34945 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:07:44 +00:00
mscott%netscape.com
2a978ae6bd Initialize mFilePath to nsnull. I was crashing in the dtor of the url because it was pointing to unitialized memory
whenever I tried to get msgs from a newsgroup on win32.


git-svn-id: svn://10.0.0.236/trunk@34944 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:06:22 +00:00
mcmullen%netscape.com
1e8a5e3015 This file differs from others only in the flag settings, and we cannot afford to maintain 2**n files with everybody's favorite settings (discussed in macdev meetings). Removing this.
git-svn-id: svn://10.0.0.236/trunk@34943 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:03:30 +00:00
racham%netscape.com
ae5d2ae35e Adding Profile Manager calls
git-svn-id: svn://10.0.0.236/trunk@34942 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 01:03:01 +00:00
racham%netscape.com
a85af68895 Can't free the input param. fixed it
git-svn-id: svn://10.0.0.236/trunk@34941 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:56:31 +00:00
racham%netscape.com
7d6e1fb81f Modified renaming page
git-svn-id: svn://10.0.0.236/trunk@34940 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:53:48 +00:00
racham%netscape.com
644ab58052 Cleared some dump statements
git-svn-id: svn://10.0.0.236/trunk@34939 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:52:55 +00:00
mscott%netscape.com
394a4b9160 Fix memory leak of file name.
git-svn-id: svn://10.0.0.236/trunk@34938 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:52:06 +00:00
racham%netscape.com
0d20ff493d Profile Manager UI with new functions
git-svn-id: svn://10.0.0.236/trunk@34937 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:52:03 +00:00
racham%netscape.com
ea17ec1289 New interfaces to profiles
git-svn-id: svn://10.0.0.236/trunk@34936 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:50:17 +00:00
racham%netscape.com
a110a85aaa New Interfaces for profiles
git-svn-id: svn://10.0.0.236/trunk@34935 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:48:12 +00:00
sspitzer%netscape.com
104e0c915d we only nsIMsgSendLater.h once
git-svn-id: svn://10.0.0.236/trunk@34934 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:47:09 +00:00
racham%netscape.com
f0b60a4301 Add pref-migrator module to the build windows only for now
git-svn-id: svn://10.0.0.236/trunk@34933 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:47:00 +00:00
cyeh%netscape.com
e9c8e018e2 fixing fullcircle enabling through MOZ_PROFILE (turned off pdb file generation)
git-svn-id: svn://10.0.0.236/trunk@34932 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:43:11 +00:00
racham%netscape.com
f140537ba6 Method to forget the existing profile dir
git-svn-id: svn://10.0.0.236/trunk@34931 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:42:38 +00:00
racham%netscape.com
a672c8316c Modified to fit the new flow
git-svn-id: svn://10.0.0.236/trunk@34930 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:38:31 +00:00
vidur%netscape.com
1746b524c7 Fix for bug 6785. Incorrect reinitializing of mData.
git-svn-id: svn://10.0.0.236/trunk@34929 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:37:36 +00:00
racham%netscape.com
d6b293d17b Finish now appears on the 2nd page
git-svn-id: svn://10.0.0.236/trunk@34928 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:36:55 +00:00
racham%netscape.com
a6b72bcc45 Added a xul file and a css file with tree widget info
git-svn-id: svn://10.0.0.236/trunk@34927 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:34:45 +00:00
racham%netscape.com
823c780a87 modified error statement
git-svn-id: svn://10.0.0.236/trunk@34926 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:33:28 +00:00
racham%netscape.com
4111ecea19 Create Profile Wiz of profile manager
git-svn-id: svn://10.0.0.236/trunk@34925 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:32:12 +00:00
racham%netscape.com
a1e8558bb9 Modified to fit the new modal. Closed some dump statements
git-svn-id: svn://10.0.0.236/trunk@34924 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:30:44 +00:00
mscott%netscape.com
4ce152489f Fix memory leak of nsVoidArray.
git-svn-id: svn://10.0.0.236/trunk@34923 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:30:04 +00:00
racham%netscape.com
93f1506365 Added default profile name mozProfile
git-svn-id: svn://10.0.0.236/trunk@34922 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:28:43 +00:00
mscott%netscape.com
90360081fd Fix free memory write by freeing string after we call atol on it.
git-svn-id: svn://10.0.0.236/trunk@34921 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:27:09 +00:00
ducarroz%netscape.com
7feead6cde re-add nsIMsgSendLater.h as rhp has removed it from the idl project
git-svn-id: svn://10.0.0.236/trunk@34920 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:25:19 +00:00
racham%netscape.com
e572ff0c73 Added new interfaces
git-svn-id: svn://10.0.0.236/trunk@34919 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:21:23 +00:00
racham%netscape.com
86fefbf8d3 Added references to required modules (pref, prefm)
git-svn-id: svn://10.0.0.236/trunk@34918 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:20:24 +00:00
racham%netscape.com
5a6f8cbfab Adding more features to the ProfileManager Service. Cleaned up the comments.
git-svn-id: svn://10.0.0.236/trunk@34917 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:19:35 +00:00
davidm%netscape.com
b8f0991e89 5487 window title is blank for pages with no title tags ...
git-svn-id: svn://10.0.0.236/trunk@34916 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:18:07 +00:00
sspitzer%netscape.com
f6b302546a second half of mac build bustage fix for rhp.
git-svn-id: svn://10.0.0.236/trunk@34915 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:17:25 +00:00
sspitzer%netscape.com
2072e2e55d firsh have of fix for rhp build bustage.
git-svn-id: svn://10.0.0.236/trunk@34914 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:16:25 +00:00
neeti%netscape.com
e4e049e502 More of the Cookie Module Stuff
git-svn-id: svn://10.0.0.236/trunk@34913 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:01:52 +00:00
ftang%netscape.com
24458bb27e add additional charset name
git-svn-id: svn://10.0.0.236/trunk@34912 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-12 00:01:32 +00:00
vidur%netscape.com
e3e3cf2a9f Added confirm and prompt to window object.
git-svn-id: svn://10.0.0.236/trunk@34911 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:57:25 +00:00
slamm%netscape.com
d1abca605f Clear out the borders for the grippy. Requested by german@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@34910 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:49:39 +00:00
morse%netscape.com
7bb2fa955d fixed faulty logic re: pressing cancel in order not to use database passwords
git-svn-id: svn://10.0.0.236/trunk@34909 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:48:57 +00:00
sfraser%netscape.com
67d6e29690 Fix case of Exit().
git-svn-id: svn://10.0.0.236/trunk@34908 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:45:34 +00:00
rhp%netscape.com
180d65b855 new feature work
git-svn-id: svn://10.0.0.236/trunk@34907 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:44:44 +00:00
rhp%netscape.com
7a50fe57f5 New send later functionality
git-svn-id: svn://10.0.0.236/trunk@34906 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:42:45 +00:00
slamm%netscape.com
27fe865f17 bm-props.js splitting JavaScript into separate file.
git-svn-id: svn://10.0.0.236/trunk@34905 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:37:28 +00:00
karnaze%netscape.com
373eefa5ee new regression test
git-svn-id: svn://10.0.0.236/trunk@34904 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:36:58 +00:00
leaf%mozilla.org
264904f68e mozbot should report test failures in the brief report
git-svn-id: svn://10.0.0.236/trunk@34903 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:36:46 +00:00
slamm%netscape.com
878cad6586 Fix for bug #6371, Adding entity tags for strings. Also, splitting javascript into separate file.
git-svn-id: svn://10.0.0.236/trunk@34902 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:35:56 +00:00
morse%netscape.com
5d767f7ccd fixed uninitialized variable
git-svn-id: svn://10.0.0.236/trunk@34901 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:34:02 +00:00
mcafee%netscape.com
c5a8dad98f Purging nsDialog from the code, robot & test site menu items were the last straggler users, rickg says purge & fix these two usages later.
git-svn-id: svn://10.0.0.236/trunk@34900 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:26:59 +00:00
matt%netscape.com
a50a425d9b Adding the navigator.css and xul.css files for xul changes
git-svn-id: svn://10.0.0.236/trunk@34899 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:23:22 +00:00
ducarroz%netscape.com
8390819f32 don't declare a variable into a for loop!
git-svn-id: svn://10.0.0.236/trunk@34898 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:15:34 +00:00
nisheeth%netscape.com
742180e73b Fix for bug 7401. Made error message more descriptive.
git-svn-id: svn://10.0.0.236/trunk@34897 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:13:03 +00:00
nisheeth%netscape.com
154020439c Fix for bug 7401. Output an error when a URL load fails.
git-svn-id: svn://10.0.0.236/trunk@34896 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:10:59 +00:00
ducarroz%netscape.com
95110c8caa export all idl files from base/public
git-svn-id: svn://10.0.0.236/trunk@34895 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:08:53 +00:00
ducarroz%netscape.com
749a0eca23 add nsMailnewsTypes2.idl
git-svn-id: svn://10.0.0.236/trunk@34894 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:08:52 +00:00
leaf%mozilla.org
64ddb83767 Mozbot should be able to see the difference between red and orange builds.
git-svn-id: svn://10.0.0.236/trunk@34893 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:08:47 +00:00
nisheeth%netscape.com
17b8c6a58e Fix for bug 7401. Output an error message to the console when a URL load fails.
git-svn-id: svn://10.0.0.236/trunk@34892 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:07:09 +00:00
rogerl%netscape.com
e7d38e04ed Mucking about with stuff.
git-svn-id: svn://10.0.0.236/trunk@34891 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 23:05:16 +00:00
sspitzer%netscape.com
c94bac5a24 turn off alert code because of #7770.
git-svn-id: svn://10.0.0.236/trunk@34890 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:58:46 +00:00
av%netscape.com
15d3b09d55 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34889 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:48:50 +00:00
sfraser%netscape.com
aa9de216b9 File Removed.
git-svn-id: svn://10.0.0.236/trunk@34888 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:45:32 +00:00
sfraser%netscape.com
29857082ee Rename nsISpellCheck to nsIEditorSpellCheck
git-svn-id: svn://10.0.0.236/trunk@34887 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:43:19 +00:00
ducarroz%netscape.com
986c8c9ed0 add nsIMsgFolder.idl, fix build bustage on Mac
git-svn-id: svn://10.0.0.236/trunk@34886 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:42:41 +00:00
sfraser%netscape.com
c7ac1263c0 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34885 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:40:44 +00:00
sspitzer%netscape.com
45988c086f fix for #7795. get news posting to work again.
git-svn-id: svn://10.0.0.236/trunk@34884 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:39:17 +00:00
vidur%netscape.com
4823ea99ad JS_GetPrivate calls now go through a nsJSUtils wrapper that checks up the prototype chain. This is useful for applets where the JSClass instance is set as the proto of the LiveConnect-generated object.
git-svn-id: svn://10.0.0.236/trunk@34883 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:38:35 +00:00
mscott%netscape.com
e96b64ef1f first created. export new header files.
git-svn-id: svn://10.0.0.236/trunk@34882 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:37:51 +00:00
hangas%netscape.com
a14cf049ee Big additions to the selectaddress.xul functionality.
git-svn-id: svn://10.0.0.236/trunk@34881 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:34:17 +00:00
ducarroz%netscape.com
9d28d69f9a update manifest
git-svn-id: svn://10.0.0.236/trunk@34880 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:19:33 +00:00
putterman%netscape.com
d4ded7fcb4 added files: mozilla/mailnews/base/src/nsMsgNotificationManager.cpp
git-svn-id: svn://10.0.0.236/trunk@34879 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:17:13 +00:00
putterman%netscape.com
09fbfa9c3e Add new idl manifest for mailnews/public
git-svn-id: svn://10.0.0.236/trunk@34878 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:15:46 +00:00
putterman%netscape.com
6b1fcf8009 Add a new parameter for CheckNewMail
git-svn-id: svn://10.0.0.236/trunk@34877 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:14:35 +00:00
putterman%netscape.com
9d7c000d4e More work on Biff. Use standard BiffTypes enum.
git-svn-id: svn://10.0.0.236/trunk@34876 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:14:08 +00:00
putterman%netscape.com
14688fcbfe Add methods for Biff.
git-svn-id: svn://10.0.0.236/trunk@34875 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:13:18 +00:00
putterman%netscape.com
5e142c23f9 Add MailNewsTypes2.idl
git-svn-id: svn://10.0.0.236/trunk@34874 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:12:51 +00:00
putterman%netscape.com
5a48a3a6d0 Add gif for Biff.
git-svn-id: svn://10.0.0.236/trunk@34873 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:12:03 +00:00
putterman%netscape.com
7e4b358a9e Work on UnsentMessages.
git-svn-id: svn://10.0.0.236/trunk@34872 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:11:32 +00:00
putterman%netscape.com
407e992f48 More work on Biff.
git-svn-id: svn://10.0.0.236/trunk@34871 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:10:42 +00:00
ftang%netscape.com
22b8cf7615 fix Batlic , add ) for 1254, add several charset
git-svn-id: svn://10.0.0.236/trunk@34870 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:10:06 +00:00
putterman%netscape.com
25b556e8bf Add work for SentUnsentMessages.
git-svn-id: svn://10.0.0.236/trunk@34869 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:10:02 +00:00
putterman%netscape.com
ba23b98a81 Add more work on Biff.
git-svn-id: svn://10.0.0.236/trunk@34868 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:09:47 +00:00
putterman%netscape.com
8cd10323ee add nsMsgNotificationManager.
git-svn-id: svn://10.0.0.236/trunk@34867 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:08:09 +00:00
putterman%netscape.com
33ad8b3f41 removed MailNewsTypes.idl
git-svn-id: svn://10.0.0.236/trunk@34866 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:07:08 +00:00
putterman%netscape.com
6dda78bed8 Add Messenger Biff Notifications.
git-svn-id: svn://10.0.0.236/trunk@34865 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 22:06:20 +00:00
jband%netscape.com
faa5d08633 fix for bug 8017. We were allowing JS null and void to get converted into C++ NULL for pointer types even when the target was declared as a C++ reference. This was bad. Now we check for this and fail with a nice explanatory message in the JS exception.
git-svn-id: svn://10.0.0.236/trunk@34864 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:59:56 +00:00
dougt%netscape.com
2323fc89fd simplify, simplify, simplify. Changes submitted by brendan@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@34863 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:56:12 +00:00
saari%netscape.com
1da36d7c08 Adding nsXULKeyListener.cpp to RDF on Mac
git-svn-id: svn://10.0.0.236/trunk@34862 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:53:49 +00:00
vidur%netscape.com
1e71bfb687 Fixes for bug 927. JS timer code can deal with the window closing in a timer callback. NamedItem gets called for unknown integer property values as well. Added nsCOMPtr generation option to idlc. Fixed warnings in generated code.
git-svn-id: svn://10.0.0.236/trunk@34861 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:49:41 +00:00
ftang%netscape.com
c0d13f7322 remove nsUnicharUtil since it is a componment, the #ifdef will take out after we verify w/ mac and win
git-svn-id: svn://10.0.0.236/trunk@34860 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:44:15 +00:00
ftang%netscape.com
c998cb5738 include european characters in text transform test
git-svn-id: svn://10.0.0.236/trunk@34859 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:37:08 +00:00
mscott%netscape.com
0f68404ed3 Not part of the build yet. manifest file for new mime\emitter\build directory.
git-svn-id: svn://10.0.0.236/trunk@34858 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:30:16 +00:00
mscott%netscape.com
6fdf1db1ee Not part of the build yet. makefile for building the emitter library.
git-svn-id: svn://10.0.0.236/trunk@34857 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:28:24 +00:00
davidm%netscape.com
5f5d573afc Bug 1877 implimented some of the screen object functions
git-svn-id: svn://10.0.0.236/trunk@34856 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:19:24 +00:00
saari%netscape.com
a1afa0e362 exporting nsIXULKeyListener.h on Win and Linux builds
git-svn-id: svn://10.0.0.236/trunk@34855 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:08:38 +00:00
mscott%netscape.com
cfcf775019 (Not part of the build yet). This file used to be mailnews\mime\emitters\xml\nsMimeEmitter.h/.cpp if you need to look up a
log for the file.


git-svn-id: svn://10.0.0.236/trunk@34851 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:03:15 +00:00
mscott%netscape.com
1f1b934bb9 (Not part of the build yet). This file used to be mailnews\mime\raw\nsMimeEmitter.h/.cpp if you need to look up a
log for the file.


git-svn-id: svn://10.0.0.236/trunk@34850 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:02:27 +00:00
mscott%netscape.com
ff04a581e1 (Not part of the build yet). This file used to be mailnews\mime\html\nsMimeEmitter.h/.cpp if you need to look up a
log for the file.


git-svn-id: svn://10.0.0.236/trunk@34849 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:01:56 +00:00
mscott%netscape.com
323629b0bf not part of the build yet. A new factory which registers our mime emitters.
git-svn-id: svn://10.0.0.236/trunk@34848 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:00:49 +00:00
mscott%netscape.com
20f6884924 First checked in. NOT part of the build yet. These are the beginning of a new structure for the mime emitters
which basically compresses all of them into one library instead of 3 separate shared libraries.


git-svn-id: svn://10.0.0.236/trunk@34847 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 21:00:20 +00:00
saari%netscape.com
4a6d29e716 Adding more to nsXULKeyListener.cpp. About to be in the build system.
git-svn-id: svn://10.0.0.236/trunk@34846 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:36:14 +00:00
saari%netscape.com
1b01001342 Adding nsIXULKeyListener.h to Mac export
git-svn-id: svn://10.0.0.236/trunk@34845 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:35:26 +00:00
tague%netscape.com
6ba2eff004 More work on bug #6896
git-svn-id: svn://10.0.0.236/trunk@34844 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:32:09 +00:00
sfraser%netscape.com
356bdb0d29 Fix include nsIDOMEditorAppCore -> nsIEditorShell
git-svn-id: svn://10.0.0.236/trunk@34843 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:28:39 +00:00
blizzard%redhat.com
1982076de0 add workaround for lame values from layout engine. fix size of checkboxes.
git-svn-id: svn://10.0.0.236/trunk@34842 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:27:07 +00:00
blizzard%redhat.com
68a71d3ca6 remove nsDialog
git-svn-id: svn://10.0.0.236/trunk@34841 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:26:27 +00:00
mcafee%netscape.com
a78c50d6cc Fixing alltags rule. patch from Jim Nance.
git-svn-id: svn://10.0.0.236/trunk@34840 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 20:21:48 +00:00
sfraser%netscape.com
84fb39f532 More build fixes.
git-svn-id: svn://10.0.0.236/trunk@34839 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:57:05 +00:00
sfraser%netscape.com
25a37673a3 Fix the build.
git-svn-id: svn://10.0.0.236/trunk@34838 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:56:35 +00:00
Dale.Stansberry%Nexwarecorp.com
acbc3f414b - Put in buffer "zeroing" code
git-svn-id: svn://10.0.0.236/trunk@34837 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:56:14 +00:00
Dale.Stansberry%Nexwarecorp.com
3eea2bc60e - Added manual widget damage routines
git-svn-id: svn://10.0.0.236/trunk@34836 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:49:52 +00:00
sfraser%netscape.com
89d8dfb35e Remove obsolete includes
git-svn-id: svn://10.0.0.236/trunk@34835 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:49:05 +00:00
mcmullen%netscape.com
ead627bdd4 Has been idlized
git-svn-id: svn://10.0.0.236/trunk@34834 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:48:21 +00:00
rpotts%netscape.com
9b4c334efb removed whitespace after the backslash to fix the build :-)
git-svn-id: svn://10.0.0.236/trunk@34833 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:32:15 +00:00
sfraser%netscape.com
2233633bb2 Fix depth slash
git-svn-id: svn://10.0.0.236/trunk@34832 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:32:13 +00:00
kin%netscape.com
c80876db1d Added various PrintNode methods to support elements that are manually inserted via JavaScript.
git-svn-id: svn://10.0.0.236/trunk@34831 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:29:05 +00:00
sfraser%netscape.com
13507e9f98 Fix Makefile stupidity.
git-svn-id: svn://10.0.0.236/trunk@34830 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:28:17 +00:00
jband%netscape.com
15a24b995e fix for bug 7698. Have the prop state object call the right object when doing the JSENUMERATE_DESTROY and make sure that the object does not get gc'd first
git-svn-id: svn://10.0.0.236/trunk@34829 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:19:22 +00:00
pollmann%netscape.com
b1e77dc6a3 bug 2105: Textarea no longer inherits text color from parent.
git-svn-id: svn://10.0.0.236/trunk@34828 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:15:20 +00:00
pollmann%netscape.com
957e7f0de9 bug 3720: <LABEL> background draws properly now.
git-svn-id: svn://10.0.0.236/trunk@34827 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:10:56 +00:00
sfraser%netscape.com
bf060b62ab Remove EditorAppCore files
git-svn-id: svn://10.0.0.236/trunk@34826 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:10:51 +00:00
sfraser%netscape.com
533e62e5ab Removed EditorAppCore files
git-svn-id: svn://10.0.0.236/trunk@34825 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:08:51 +00:00
nisheeth%netscape.com
ae1de07242 Patch from Johny Stenback (jst@citec.fi). Thanks a lot.
git-svn-id: svn://10.0.0.236/trunk@34824 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:08:39 +00:00
sfraser%netscape.com
fa1a40c2e3 This should be a pascal string.
git-svn-id: svn://10.0.0.236/trunk@34823 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:05:17 +00:00
sfraser%netscape.com
1f4eadfe4d Fix case of GetEditorMonitor call
git-svn-id: svn://10.0.0.236/trunk@34822 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:04:20 +00:00
sfraser%netscape.com
2b1560421a Synch with editorAppCore -> editorShell changes
git-svn-id: svn://10.0.0.236/trunk@34821 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:04:04 +00:00
sfraser%netscape.com
87435a585d Remove return param from InsertElement
git-svn-id: svn://10.0.0.236/trunk@34820 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:03:37 +00:00
sfraser%netscape.com
6d56b78e87 GetLocalFileURL has moved to the editorShell
git-svn-id: svn://10.0.0.236/trunk@34819 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:03:05 +00:00
kin%netscape.com
bf89c14459 We now check the return result from the call to DeleteSelectionAndPrepareToCreateNode()
in InsertElement(). It was causing a bug that prevented the InsertLink dialog from closing.


git-svn-id: svn://10.0.0.236/trunk@34818 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:02:04 +00:00
sfraser%netscape.com
35179bbb64 Fix case of GetMonitor call.
git-svn-id: svn://10.0.0.236/trunk@34817 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:02:03 +00:00
sfraser%netscape.com
5fd75ab919 Add editor idl directory to build
git-svn-id: svn://10.0.0.236/trunk@34816 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:01:36 +00:00
sfraser%netscape.com
84c77414a8 Add factory for EditorShell, and fix case of GetMonitor call.
git-svn-id: svn://10.0.0.236/trunk@34815 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:01:07 +00:00
sfraser%netscape.com
e21d74eb6e Add EditorShell and its factory to build, and add idl dir to makefiles.
git-svn-id: svn://10.0.0.236/trunk@34814 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 19:00:22 +00:00
sfraser%netscape.com
511c24cd17 EditorAppCore is dead. Long live EditorAppCore!
git-svn-id: svn://10.0.0.236/trunk@34813 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:59:41 +00:00
sfraser%netscape.com
69918ef5ab editorAppCore is no more; use XPIDL'd editorShell instead.
git-svn-id: svn://10.0.0.236/trunk@34812 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:59:09 +00:00
sfraser%netscape.com
5c0fb77eeb Get editorShell from window.opener now that editorAppCore is no more.
git-svn-id: svn://10.0.0.236/trunk@34811 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:58:32 +00:00
sfraser%netscape.com
663c4a42c1 Add stubs for range and selection interfaces
git-svn-id: svn://10.0.0.236/trunk@34810 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:57:54 +00:00
sfraser%netscape.com
7c4a361bb0 Various minor changes to synch with others
git-svn-id: svn://10.0.0.236/trunk@34809 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:57:33 +00:00
sfraser%netscape.com
0d0d1f8ebb Fixing header output directory
git-svn-id: svn://10.0.0.236/trunk@34808 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:57:03 +00:00
sfraser%netscape.com
acc02f0d74 Add editor IDL project to build
git-svn-id: svn://10.0.0.236/trunk@34807 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:56:47 +00:00
valeski%netscape.com
71cf485ae8 some const build problems are now fixed
git-svn-id: svn://10.0.0.236/trunk@34806 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:48:10 +00:00
matt%netscape.com
27123daf77 fixing bug 7907
git-svn-id: svn://10.0.0.236/trunk@34804 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 18:22:51 +00:00
terry%mozilla.org
de649aac98 Display components in alphabetical order.
git-svn-id: svn://10.0.0.236/trunk@34803 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 17:39:38 +00:00
terry%mozilla.org
44e7ebf5dd Some apache servers seem not to deliever the REMOTE_HOST environment var.
git-svn-id: svn://10.0.0.236/trunk@34802 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 17:39:19 +00:00
terry%mozilla.org
3e0f62ac95 Was choking if not using qacontact field.
git-svn-id: svn://10.0.0.236/trunk@34801 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 17:37:43 +00:00
terry%mozilla.org
c73c766cb1 Update some things for more modern mysql's.
git-svn-id: svn://10.0.0.236/trunk@34800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 17:37:11 +00:00
bryce-mozilla%nextbus.com
5757dcaf2f Make nospam comparison case insensitive, since BugZilla keeps the
case of the login, which might differ from the case in the database.


git-svn-id: svn://10.0.0.236/trunk@34799 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 16:07:32 +00:00
andreas.otte%primus-online.de
891f537f8e conversion to wstring / PRUnichar
some cosmetics to various Makefiles


git-svn-id: svn://10.0.0.236/trunk@34798 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 15:50:14 +00:00
dcone%netscape.com
c035592fb5 background Image speed up
Commented out the box around the printout until Troy returns


git-svn-id: svn://10.0.0.236/trunk@34797 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 14:43:14 +00:00
rhp%netscape.com
62bfd35b35 New test program for back end functionality
git-svn-id: svn://10.0.0.236/trunk@34796 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 14:21:23 +00:00
briano%netscape.com
b3ecf00132 Automated update
git-svn-id: svn://10.0.0.236/trunk@34795 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 12:59:52 +00:00
ramiro%netscape.com
810a48e65e Add --disable-pic-dso-cflags.
git-svn-id: svn://10.0.0.236/trunk@34794 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 12:49:54 +00:00
ftang%netscape.com
d81eea5f61 add factory for ISO-IR -111 userdefined charset ad cns11643 p3-7
git-svn-id: svn://10.0.0.236/trunk@34793 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 12:39:57 +00:00
ramiro%netscape.com
2cb4248bd9 Remove duplicate timer interfaces. Left over from the xpcom 2.0 landing.
git-svn-id: svn://10.0.0.236/trunk@34792 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 11:59:44 +00:00
andreas.otte%primus-online.de
cb059620b1 first checked in
git-svn-id: svn://10.0.0.236/trunk@34791 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 11:02:57 +00:00
briano%netscape.com
31f03e8a7a Automated update
git-svn-id: svn://10.0.0.236/trunk@34790 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 10:59:52 +00:00
ramiro%netscape.com
f8d28d310e Factor out the PIC flags into their own autoconf variable.
git-svn-id: svn://10.0.0.236/trunk@34789 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 10:55:36 +00:00
rpotts%netscape.com
6229edb430 Fixed up the event-sink-getter to correctly addref and QI the InputTestConsumer...
git-svn-id: svn://10.0.0.236/trunk@34788 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 09:18:25 +00:00
rpotts%netscape.com
f8eaf156e2 Fixed a memory corruption where a buffer was allocated with new[] but freed with PL_strfree()...
git-svn-id: svn://10.0.0.236/trunk@34787 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 09:17:11 +00:00
rpotts%netscape.com
822b809174 changed some printf around...
git-svn-id: svn://10.0.0.236/trunk@34786 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:36:40 +00:00
rpotts%netscape.com
af2b091f9a Changes to get transport streams working with the new BufferInputStream implementations...
git-svn-id: svn://10.0.0.236/trunk@34785 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:35:26 +00:00
rjc%netscape.com
ee5df66612 Fix importing of "IE favorites" on Windows which was broken by mcmullen when he checked in a supposed fix for something that wasn't broken.
git-svn-id: svn://10.0.0.236/trunk@34784 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:34:50 +00:00
rpotts%netscape.com
7e5fed03fa Fixed deadlock if another thread holds the transport lock when Process is called...
git-svn-id: svn://10.0.0.236/trunk@34783 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:34:21 +00:00
rpotts%netscape.com
0846133faf moved the test for being suspended inside of the main Process() loop since doRead() can suspend the transport... Also call nsSocketTransportStream::GetWriteAmount() to determine how much data can be written to the stream...
git-svn-id: svn://10.0.0.236/trunk@34782 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:28:22 +00:00
rpotts%netscape.com
273643c438 if no more data is available when reading a non-blocking input stream then return either WOULD_BLOCK or NS_OK... But exit the loop to prevent spinning!
git-svn-id: svn://10.0.0.236/trunk@34781 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:25:57 +00:00
rpotts%netscape.com
24d54b41d8 initialize the [out] parameters in GetWriteSegment so they are correct even if NS_OK is not returned...
git-svn-id: svn://10.0.0.236/trunk@34780 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:22:17 +00:00
waterson%netscape.com
9dee4dbd73 Fix crash parsing IE favorites.
git-svn-id: svn://10.0.0.236/trunk@34779 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 08:06:53 +00:00
andreas.otte%primus-online.de
aafa0183ad adding protocol/file makefiles
git-svn-id: svn://10.0.0.236/trunk@34778 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:43:54 +00:00
waterson%netscape.com
acfdf93b87 Whoops. Forgot to update URL shortcuts to use the XPIDL-ized bookmarks service. Fixed now.
git-svn-id: svn://10.0.0.236/trunk@34777 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:32:29 +00:00
waterson%netscape.com
c621d053c6 Move history resources to xpfe/components.
git-svn-id: svn://10.0.0.236/trunk@34776 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:25:10 +00:00
waterson%netscape.com
45ab5d5b13 Move history resources here from rdf/resources.
git-svn-id: svn://10.0.0.236/trunk@34775 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:22:37 +00:00
waterson%netscape.com
f288e775fc Move history resources to xpfe/components/history/resources.
git-svn-id: svn://10.0.0.236/trunk@34774 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:22:03 +00:00
bienvenu%netscape.com
2c4876217b restructure filter code to start on imap filters
git-svn-id: svn://10.0.0.236/trunk@34773 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:07:04 +00:00
bienvenu%netscape.com
8c0c378a37 remove offline code which isn't used yet to get rid of mac warnings, add bulletproofing on header copy
git-svn-id: svn://10.0.0.236/trunk@34772 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:04:22 +00:00
bienvenu%netscape.com
2e045d8315 restructure filter application to do imap filters
git-svn-id: svn://10.0.0.236/trunk@34771 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 07:01:39 +00:00
gagan%netscape.com
fd1e6f9ec2 Expiring old protocols stuff. Everything is now moved to protocol directory.
git-svn-id: svn://10.0.0.236/trunk@34770 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:51:56 +00:00
gagan%netscape.com
199d4363fd Ignore .class files for CVS.
git-svn-id: svn://10.0.0.236/trunk@34769 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:25:11 +00:00
gagan%netscape.com
3fdb13e2f4 Added the test server for testing anamalous responses from HTTP servers. For more details read http://lxr.mozilla.org/mozilla/source/netwerk/testserver/docs/help.html
git-svn-id: svn://10.0.0.236/trunk@34768 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:21:16 +00:00
waterson%netscape.com
4f7f2794c5 Add bookmarks.css to the style sheets we load in the panel.
git-svn-id: svn://10.0.0.236/trunk@34767 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:19:27 +00:00
waterson%netscape.com
0b76a73962 Change bookmarks service progid slightly.
git-svn-id: svn://10.0.0.236/trunk@34766 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:18:49 +00:00
waterson%netscape.com
b209dc74b5 Bookmarks now XPConnected and living in xpfe/components.
git-svn-id: svn://10.0.0.236/trunk@34765 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:18:11 +00:00
waterson%netscape.com
4369ac38be Make bookmarks functionality part of an XPIDL interface.
git-svn-id: svn://10.0.0.236/trunk@34764 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:17:46 +00:00
waterson%netscape.com
45b16a8baf Move bookmarks to xpfe/components.
git-svn-id: svn://10.0.0.236/trunk@34763 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:17:15 +00:00
waterson%netscape.com
6bda33f40e Add xpfe/components/bookmarks to the build.
git-svn-id: svn://10.0.0.236/trunk@34762 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:16:32 +00:00
waterson%netscape.com
b66e35f9d6 Build xpfe/components/bookmarks makefiles.
git-svn-id: svn://10.0.0.236/trunk@34761 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:16:22 +00:00
waterson%netscape.com
5d64000a40 Add xpfe/bookmarks/component to the build.
git-svn-id: svn://10.0.0.236/trunk@34760 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 06:15:28 +00:00
waterson%netscape.com
a15bfc2588 Clean up compiler warning.
git-svn-id: svn://10.0.0.236/trunk@34759 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:58:42 +00:00
waterson%netscape.com
490b197f4a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34758 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:50:55 +00:00
sspitzer%netscape.com
4e86df49a1 wrap printf with #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@34757 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:50:13 +00:00
dougt%netscape.com
c1ef30a561 Adding default UI thread posting if user passes nsnull as the destQ
git-svn-id: svn://10.0.0.236/trunk@34756 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:49:11 +00:00
waterson%netscape.com
0e36b2aa60 Debug to get running properly.
git-svn-id: svn://10.0.0.236/trunk@34755 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:47:19 +00:00
waterson%netscape.com
16ec1828f5 Add some missing resources. Update stuff to point to the res/samples dir.
git-svn-id: svn://10.0.0.236/trunk@34754 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:46:45 +00:00
sspitzer%netscape.com
22fdffeab1 comment out alert code until #7770 is fixed. sigh.
git-svn-id: svn://10.0.0.236/trunk@34753 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:46:31 +00:00
sspitzer%netscape.com
5bc13cc1cc temporary hack to fix #6912. still more work to be done here, obviously.
git-svn-id: svn://10.0.0.236/trunk@34752 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 05:37:54 +00:00
waterson%netscape.com
328c9c6999 Add read-only accessors to get at the datasource and container elements.
git-svn-id: svn://10.0.0.236/trunk@34751 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 04:56:18 +00:00
mcafee%netscape.com
19c17d1d6a Updating last-changed date to match cvs log.
git-svn-id: svn://10.0.0.236/trunk@34750 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 04:01:22 +00:00
morse%netscape.com
57d9268011 clean up some of the dialog messages
git-svn-id: svn://10.0.0.236/trunk@34749 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:54:23 +00:00
danm%netscape.com
42ab29c131 adding access to primordial thread
git-svn-id: svn://10.0.0.236/trunk@34748 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:44:52 +00:00
morse%netscape.com
1a4f197fa7 allow for null database password -- means user doesn't get prompted for password
git-svn-id: svn://10.0.0.236/trunk@34747 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:41:01 +00:00
morse%netscape.com
6905e258db again fix logic for when to give notification of feature
git-svn-id: svn://10.0.0.236/trunk@34746 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:39:44 +00:00
waterson%netscape.com
fca2426bc3 Add null checks.
git-svn-id: svn://10.0.0.236/trunk@34745 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:32:02 +00:00
waterson%netscape.com
e29b721cf7 Bug 7781, part deux. Be paranoid about checking the result from the zombie pool.
git-svn-id: svn://10.0.0.236/trunk@34744 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:15:40 +00:00
briano%netscape.com
d36d5053b7 Automated update
git-svn-id: svn://10.0.0.236/trunk@34743 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:09:49 +00:00
briano%netscape.com
64b16e4168 Fix for bug 3250.
git-svn-id: svn://10.0.0.236/trunk@34742 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 03:09:15 +00:00
waterson%netscape.com
7b94de64b6 Initial revision. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@34741 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:50:47 +00:00
mscott%netscape.com
0cfef23aaa When displaying a message (writing it to a file), we should skip the first line of the message which is part of the
dummy envelope for the message. We don't want to include this line.


git-svn-id: svn://10.0.0.236/trunk@34740 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:44:06 +00:00
sgehani%netscape.com
842f16e8a0 Surfaced enumeration service added in PersistentProperties.
git-svn-id: svn://10.0.0.236/trunk@34739 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:22:34 +00:00
sgehani%netscape.com
8997c2364f Updated tests to reflect newly added enumeration service in PersistentProperties.
git-svn-id: svn://10.0.0.236/trunk@34738 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:21:34 +00:00
mcafee%netscape.com
40f9b76016 Protecting a null pointer dereference.
git-svn-id: svn://10.0.0.236/trunk@34737 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:20:54 +00:00
sgehani%netscape.com
68a3a5bc2f Added enumeration service to PersistentProperties which returns an enumeration of
PropertyElement objects.


git-svn-id: svn://10.0.0.236/trunk@34736 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:20:36 +00:00
jband%netscape.com
637446e2bc 1) adding the fix for 7926 from brendan and sfraser (with cleanup from me).
2) added where I was not checking for JSVAL_NULL from brendan.
3) got rid of 'xpcom32' references.
4) added nsIEcho::ReturnInterface as a loopback for testing the above.
5) removed some redundant retval setting code.


git-svn-id: svn://10.0.0.236/trunk@34734 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 02:04:42 +00:00
warren%netscape.com
f1300adcbe Added range offsets to open stream methods.
git-svn-id: svn://10.0.0.236/trunk@34733 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:37:43 +00:00
warren%netscape.com
772a460bd4 Added start of file: protocol.
git-svn-id: svn://10.0.0.236/trunk@34732 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:37:24 +00:00
frankm%eng.sun.com
5f4bba2ae5 Fixes for LC3 regression tests, including:
- check static members of instances in JavaMembers.put

- do not unwrap Wrappers before calling NativeJavaMethod.findFunction
     or NativeJavaObject.coerceType; both methods may need extra information
     provided by the wrapper.

- separate Java signatures for resolving overloaded methods and script
     signatures for error messages, so we can distinguish primitive types
     from classes.

- separate Java signatures for resolving overloaded methods and script
     signatures for error messages, so we can distinguish primitive types
     from classes.

- prevent a NativeJavaClass from being treated as a wrapped instance of
     java.lang.Class

- correct bug which preferred the *less* specific of two classes in
     NativeJavaMethod.preferSignature

- add new LC3 conversion rules to  NativeJavaObject.coerceTypes.

- coerce JS numbers to Java numbers or chars only if the JS number is in
     range.


git-svn-id: svn://10.0.0.236/trunk@34731 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:24:40 +00:00
bsharma%netscape.com
8e360f9516 changed the sleep time to 90 seconds
git-svn-id: svn://10.0.0.236/trunk@34730 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:20:50 +00:00
pollmann%netscape.com
61b4a19b82 Bug 7935: Resizing frames beyond edge doesn't cause offset anymore.
git-svn-id: svn://10.0.0.236/trunk@34729 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 01:18:50 +00:00
pollmann%netscape.com
48ebbb6439 Bug 4711: Retain frameset resize information through reflows.
git-svn-id: svn://10.0.0.236/trunk@34727 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:51:05 +00:00
sspitzer%netscape.com
e1f4704793 remove the "." from these menu items. they are working now.
git-svn-id: svn://10.0.0.236/trunk@34726 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:42:38 +00:00
sfraser%netscape.com
a58ff3889b Remove duplicate BuildIDLProject for mozcomps
git-svn-id: svn://10.0.0.236/trunk@34725 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:41:33 +00:00
ftang%netscape.com
8d2476ca0e add cid for cp936
git-svn-id: svn://10.0.0.236/trunk@34724 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:41:23 +00:00
ftang%netscape.com
185ba1e56a add cp949 cid
git-svn-id: svn://10.0.0.236/trunk@34723 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:38:52 +00:00
dougt%netscape.com
e30570a54f File Removed.
git-svn-id: svn://10.0.0.236/trunk@34722 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:38:49 +00:00
dougt%netscape.com
42762abad9 Updates the project to use the new xpcom 2.
git-svn-id: svn://10.0.0.236/trunk@34721 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:37:35 +00:00
dougt%netscape.com
f8dddcae9c First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34720 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:37:05 +00:00
ftang%netscape.com
6ea6adbcc2 add CP932 cid
git-svn-id: svn://10.0.0.236/trunk@34719 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:36:45 +00:00
dougt%netscape.com
dd310396c9 Fixing some releasing object bugs.
git-svn-id: svn://10.0.0.236/trunk@34718 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:35:39 +00:00
ftang%netscape.com
6f1a3ec464 add cid for CP950
git-svn-id: svn://10.0.0.236/trunk@34717 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:34:54 +00:00
ducarroz%netscape.com
5c55f8281f Replace MsgComposeAppCore by a XPConnect object
git-svn-id: svn://10.0.0.236/trunk@34716 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:34:32 +00:00
ftang%netscape.com
154dca77cb add cid for cns11643 p3-7 encoder
git-svn-id: svn://10.0.0.236/trunk@34715 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:32:52 +00:00
ftang%netscape.com
44280723a0 add CID for ISOIR111 and UserDefined
git-svn-id: svn://10.0.0.236/trunk@34714 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:28:47 +00:00
pollmann%netscape.com
2bc61c5523 Bug 7934: Calculate frameset percentage widths/heights correctly.
git-svn-id: svn://10.0.0.236/trunk@34713 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:28:00 +00:00
sspitzer%netscape.com
1f1d370348 changes for ducarroz's checkin
git-svn-id: svn://10.0.0.236/trunk@34712 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:31 +00:00
ducarroz%netscape.com
f01f4d4177 Add more IDL files
git-svn-id: svn://10.0.0.236/trunk@34711 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:26 +00:00
ducarroz%netscape.com
b3b2492e39 need to include "nsMsgComposeBE.h" as it not include by the interface anymore
git-svn-id: svn://10.0.0.236/trunk@34710 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:21 +00:00
ducarroz%netscape.com
aa460cdfdb Replace ComposeMessageWithType by ComposeMessage
git-svn-id: svn://10.0.0.236/trunk@34709 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:20 +00:00
ducarroz%netscape.com
68e7778cb1 Replace ComposeAppcore stuff by nsIMsgComposeService & nsIMsgCompose
git-svn-id: svn://10.0.0.236/trunk@34708 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:19 +00:00
ducarroz%netscape.com
ea74392715 Replace Compose Appcore by nsIMsgComposeService/nsIMsgCompose
git-svn-id: svn://10.0.0.236/trunk@34707 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:18 +00:00
ducarroz%netscape.com
bf39d98a64 update make file
git-svn-id: svn://10.0.0.236/trunk@34706 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:16 +00:00
ducarroz%netscape.com
7ece6b4552 Replace Compose Appcore by XPConnect object nsIMsgComposeService & nsIMsgCompose.
git-svn-id: svn://10.0.0.236/trunk@34705 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:15 +00:00
ducarroz%netscape.com
503c346630 Add Message Compose Service CID
git-svn-id: svn://10.0.0.236/trunk@34704 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:25:14 +00:00
rogerl%netscape.com
17cd7246b8 Function calling begun.
git-svn-id: svn://10.0.0.236/trunk@34703 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:21:26 +00:00
sfraser%netscape.com
9899611910 Add a new parameter.
git-svn-id: svn://10.0.0.236/trunk@34702 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:04:46 +00:00
sfraser%netscape.com
1eafb358d4 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34701 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:04:24 +00:00
mcafee%netscape.com
26bab3f988 Removing obsolete nsDialog. a=rickg
git-svn-id: svn://10.0.0.236/trunk@34700 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-11 00:00:58 +00:00
mcmullen%netscape.com
0e1b8c7aad Updated to changed prefwindow interface.
git-svn-id: svn://10.0.0.236/trunk@34699 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:55:54 +00:00
ftang%netscape.com
5db9ab231b add real implementation for user defined charset
git-svn-id: svn://10.0.0.236/trunk@34698 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:55:12 +00:00
ftang%netscape.com
8959bd9a9f add mapping for user defined charset, we use private zone F780-F7FF to map 80-FF
git-svn-id: svn://10.0.0.236/trunk@34697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:52:09 +00:00
sfraser%netscape.com
5a9be56e76 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34696 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:50:26 +00:00
ftang%netscape.com
0cdd42f7e4 add NPL
git-svn-id: svn://10.0.0.236/trunk@34695 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:49:49 +00:00
law%netscape.com
fa95e6aa23 added files: mozilla/xpfe/components/ucth/public/nsIUnkContentTypeHandler.idl, removed files: mozilla/xpfe/components/ucth/public/nsIUnknownContentTypeHandler.idl
git-svn-id: svn://10.0.0.236/trunk@34694 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:48:24 +00:00
waterson%netscape.com
35b452e6bd Add a bit of documentation.
git-svn-id: svn://10.0.0.236/trunk@34693 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:46:30 +00:00
law%netscape.com
c56e10044b Fix mac build bustage (file name was too long)
git-svn-id: svn://10.0.0.236/trunk@34692 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:45:54 +00:00
mscott%netscape.com
1ca7ce2b8d Remove assertion as we are finding that it doesn't apply.
git-svn-id: svn://10.0.0.236/trunk@34691 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:45:16 +00:00
mcafee%netscape.com
2b92caea80 Removing obsolete nsDialog. a=rickg
git-svn-id: svn://10.0.0.236/trunk@34690 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:43:25 +00:00
waterson%netscape.com
8069f262bb Add entity references to make localizable.
git-svn-id: svn://10.0.0.236/trunk@34689 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:42:18 +00:00
waterson%netscape.com
f6d643c709 Bug 6374. Add entity refs to make flash panel localizable.
git-svn-id: svn://10.0.0.236/trunk@34688 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:38:54 +00:00
ftang%netscape.com
0b4a10a109 add implementation for ISO-8859-10
git-svn-id: svn://10.0.0.236/trunk@34687 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:31:51 +00:00
ducarroz%netscape.com
eb58989f6b don't addref a null ptr, that hurts!
git-svn-id: svn://10.0.0.236/trunk@34686 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:31:44 +00:00
ftang%netscape.com
a9b121ca89 add mapping table for ISO-8859-10 which based on the charmaps on ftp://dkuug.dk/i18n/charmaps
git-svn-id: svn://10.0.0.236/trunk@34685 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:31:02 +00:00
waterson%netscape.com
5db8306557 Bug 7781. Don't add nodes without ID attributes to the zombie pool. Oh, per selmer's suggestion, improved some of the variable and method names ;-).
git-svn-id: svn://10.0.0.236/trunk@34684 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:29:41 +00:00
putterman%netscape.com
2fdd8a3e81 Use onclick until onchange gets fixed.
git-svn-id: svn://10.0.0.236/trunk@34683 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:26:37 +00:00
harishd%netscape.com
c876f21ef3 Fix for bug#5682
Propagating error to nsParser.


git-svn-id: svn://10.0.0.236/trunk@34682 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:25:01 +00:00
harishd%netscape.com
f8e87704a2 Propagating NS_ERROR_HTMLPARSER_STOPPARSING on XML error.
git-svn-id: svn://10.0.0.236/trunk@34681 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:23:50 +00:00
harishd%netscape.com
56c5880014 Capturing parser STOP error.
Fix for bug# 5682


git-svn-id: svn://10.0.0.236/trunk@34680 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:22:37 +00:00
harishd%netscape.com
7462438cbe *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34679 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:21:39 +00:00
harishd%netscape.com
a3fb3e7196 Added a new member variable "mParserTerminated" to stop the parser
on an error.


git-svn-id: svn://10.0.0.236/trunk@34678 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 23:20:51 +00:00
mcafee%netscape.com
144f073c62 Removing obsolete nsDialog. a=rickg
git-svn-id: svn://10.0.0.236/trunk@34677 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:52:29 +00:00
law%netscape.com
45ed3c204e Switching xpfe components to use XPIDL
git-svn-id: svn://10.0.0.236/trunk@34676 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:43:08 +00:00
ftang%netscape.com
6465965ac8 put the real implementation of ISO-IR-111 converters into the empty file
git-svn-id: svn://10.0.0.236/trunk@34675 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:39:46 +00:00
briano%netscape.com
2900f3eb31 Ifdef hack to get this to compile on SunOS 4.x.
git-svn-id: svn://10.0.0.236/trunk@34674 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:37:27 +00:00
law%netscape.com
89ffb93ec5 added files: mozilla/xpfe/components/find/public/nsIFindComponent.idl, mozilla/xpfe/components/ucth/public/nsIUnknownContentTypeHandler.idl, mozilla/xpfe/components/xfer/public/nsIStreamTransfer.idl
git-svn-id: svn://10.0.0.236/trunk@34673 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:36:27 +00:00
valeski%netscape.com
52869d557a making the nsNetModuleMgr a singleton
git-svn-id: svn://10.0.0.236/trunk@34672 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:26:37 +00:00
neeti%netscape.com
5324b574d3 initial checkin for cookie module
git-svn-id: svn://10.0.0.236/trunk@34671 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:20:14 +00:00
ftang%netscape.com
085672396d add iso-ir-111 table based on ftp://dkuug.dk/i18n/charmaps/ECMA-CYRILLIC
git-svn-id: svn://10.0.0.236/trunk@34670 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:09:29 +00:00
ducarroz%netscape.com
ad623a0b59 make it scriptable, sync. with current implementation
git-svn-id: svn://10.0.0.236/trunk@34669 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:09:17 +00:00
neeti%netscape.com
15bff55a66 The Cookie Module: Initial Version
git-svn-id: svn://10.0.0.236/trunk@34668 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:08:59 +00:00
ducarroz%netscape.com
21ad463edf Add a temporary hack to make the reply/forward kind of work
git-svn-id: svn://10.0.0.236/trunk@34667 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:08:35 +00:00
mscott%netscape.com
699b88c3e1 Finish save messsage to disk work --> reworked mailbox protocol to use an nsIFileSpec for the temp message
we write in order to display messages. Also added code to set the temp file to be the save message to disk
file if that was the type of url we are running.


git-svn-id: svn://10.0.0.236/trunk@34666 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:08:32 +00:00
law%netscape.com
f5f3627aff Preparing for switch to XPIDL
git-svn-id: svn://10.0.0.236/trunk@34665 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:07:26 +00:00
mscott%netscape.com
3decfd668d Be sure to set byte range for mailbox urls where the action is save file to disk.
git-svn-id: svn://10.0.0.236/trunk@34664 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:06:19 +00:00
ducarroz%netscape.com
1d24b7f8c3 Add temporary an argument to OpenComposeWindow
git-svn-id: svn://10.0.0.236/trunk@34663 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:06:01 +00:00
ducarroz%netscape.com
29dc256a4f total rewrite
git-svn-id: svn://10.0.0.236/trunk@34662 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:04:21 +00:00
ducarroz%netscape.com
d1906eec9a make it scriptable
git-svn-id: svn://10.0.0.236/trunk@34661 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:03:28 +00:00
mcafee%netscape.com
f1e024f67f Removing usages of obsolete nsDialog. a=rickg
git-svn-id: svn://10.0.0.236/trunk@34660 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:03:27 +00:00
ducarroz%netscape.com
b22bd6219d export more IDL files
git-svn-id: svn://10.0.0.236/trunk@34659 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 22:02:24 +00:00
valeski%netscape.com
b1b4ed9c0c added external module http hooks
git-svn-id: svn://10.0.0.236/trunk@34658 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:58:26 +00:00
valeski%netscape.com
330ce1a68a added some comments and thread safety fixes
git-svn-id: svn://10.0.0.236/trunk@34657 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:57:47 +00:00
kin%netscape.com
1e231ecd86 Fix build bustage on Win32.
git-svn-id: svn://10.0.0.236/trunk@34656 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:56:47 +00:00
law%netscape.com
bb05876536 Preparing for switch to XPIDL
git-svn-id: svn://10.0.0.236/trunk@34655 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:55:36 +00:00
mjudge%netscape.com
b2a2c02eac minor changes to tweak fix from before. GetPositionSlowly was returning wrong thing causing small caps and other wierd spacing letters to be selected incorrectly.
git-svn-id: svn://10.0.0.236/trunk@34654 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:55:14 +00:00
ftang%netscape.com
a5d081eae5 return the correct error code, and do not return error when no reload is necessary
git-svn-id: svn://10.0.0.236/trunk@34653 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:48:16 +00:00
law%netscape.com
2dc6f4fa0f Preparing for switch to XPIDL
git-svn-id: svn://10.0.0.236/trunk@34652 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:47:30 +00:00
sfraser%netscape.com
d10cf0b444 Comment out useless assert.
git-svn-id: svn://10.0.0.236/trunk@34651 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:43:08 +00:00
tague%netscape.com
ce27e666ad Additional work on conditionalized fiex for #7629. Fix problems with ctrl-keys not being dispatched.
git-svn-id: svn://10.0.0.236/trunk@34650 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:38:05 +00:00
danm%netscape.com
fdc23ccb1b implement show/hide menubar
git-svn-id: svn://10.0.0.236/trunk@34649 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:34:43 +00:00
akkana%netscape.com
4f0476dd20 Remove unused third argument from InsertElement
git-svn-id: svn://10.0.0.236/trunk@34648 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:32:30 +00:00
briano%netscape.com
643ea17272 Automated update
git-svn-id: svn://10.0.0.236/trunk@34647 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:32:05 +00:00
briano%netscape.com
a921fca398 Fixed my stupid mistake that broke FreeBSD. Thanks to reg@shale.csir.co.za (Jeremy Lea) for pointing this out to me.
git-svn-id: svn://10.0.0.236/trunk@34646 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:31:43 +00:00
akkana%netscape.com
91f72d1f82 Implement InsertHTML.
Also, some minor fixes, like warning removal and addition of error checking
in files which needed it.


git-svn-id: svn://10.0.0.236/trunk@34645 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:31:42 +00:00
ftang%netscape.com
7d34375077 add new files to mac project files
git-svn-id: svn://10.0.0.236/trunk@34644 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:24:06 +00:00
mjudge%netscape.com
8650f1059b adding kins fix for the bitrotted addrange code. never was used before
git-svn-id: svn://10.0.0.236/trunk@34643 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:24:04 +00:00
ftang%netscape.com
26b26b4ab0 add new files to Unix makefiles
git-svn-id: svn://10.0.0.236/trunk@34642 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:21:08 +00:00
ftang%netscape.com
ca2a634d97 add new files into makefiles
git-svn-id: svn://10.0.0.236/trunk@34641 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:19:48 +00:00
mjudge%netscape.com
21a15def92 fixing table selection again. also adding parameter to nsIFocusTracker that allows us to get the current caret location. I am also stopping nsTableRowFrame from putting blue border around itself since cells are a high enough granularity. made a change to nsIFrame GetPosition to remove some useless parameters ect. this caused me to change nsDOMEvent.cpp and some other places.
MJ


git-svn-id: svn://10.0.0.236/trunk@34640 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:08:17 +00:00
Jerry.Kirk%Nexwarecorp.com
4062735a01 - Fixes Typo on MenuBar
git-svn-id: svn://10.0.0.236/trunk@34639 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:07:56 +00:00
Jerry.Kirk%Nexwarecorp.com
73afde7b71 -Fixes for Test12.html
git-svn-id: svn://10.0.0.236/trunk@34638 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:07:26 +00:00
Jerry.Kirk%Nexwarecorp.com
684bb08a8d - Fixes for test12.html
git-svn-id: svn://10.0.0.236/trunk@34637 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 21:07:11 +00:00
tague%netscape.com
3554e0b087 Additional fix for re-distpach of char+modifier key as a character, part of the conditionalized fix for #6896
git-svn-id: svn://10.0.0.236/trunk@34636 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:49:29 +00:00
waterson%netscape.com
976a72c833 Fix depend build bustage.
git-svn-id: svn://10.0.0.236/trunk@34635 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:46:25 +00:00
dougt%netscape.com
c7ff7ab896 Fixes bug 7763. now exporting the xpinstall.js file to the components directory.
git-svn-id: svn://10.0.0.236/trunk@34634 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:33:20 +00:00
mcmullen%netscape.com
a1b1cb2963 Removed an unused variable.
git-svn-id: svn://10.0.0.236/trunk@34633 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:32:35 +00:00
sspitzer%netscape.com
11829db7ca clean up for nsIMsgHdr and nsIMessage header and idl insanity
git-svn-id: svn://10.0.0.236/trunk@34632 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:26:32 +00:00
sspitzer%netscape.com
3c226bb99f clean up the nsIMsgHdr and nIMessage idl and header insanity.
git-svn-id: svn://10.0.0.236/trunk@34631 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:25:23 +00:00
sspitzer%netscape.com
b8adaad7e3 clean up the nsIMsgHdr & nsIMessage idl and header insanity
git-svn-id: svn://10.0.0.236/trunk@34630 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:24:43 +00:00
dougt%netscape.com
0de862590b Adding Autoproxification.
git-svn-id: svn://10.0.0.236/trunk@34629 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:24:15 +00:00
mcmullen%netscape.com
140dd409d2 Fix the mailnews pref-window-showing code to work with the prefwindow changes.
git-svn-id: svn://10.0.0.236/trunk@34628 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:23:06 +00:00
waterson%netscape.com
71bfb9d7d8 Remove nsStringImpl and nsIString.
git-svn-id: svn://10.0.0.236/trunk@34627 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:20:32 +00:00
law%netscape.com
e35d7746b7 Switching to XPIDL (this isn't actually used quite yet)
git-svn-id: svn://10.0.0.236/trunk@34626 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:20:21 +00:00
cata%netscape.com
aea528655a Bug fix.
git-svn-id: svn://10.0.0.236/trunk@34625 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:19:58 +00:00
waterson%netscape.com
915a67d0c4 Remove nsStringImpl.cpp.
git-svn-id: svn://10.0.0.236/trunk@34624 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:19:52 +00:00
akkana%netscape.com
85e947383a Fix 5968 -- I got tired of seeing a bazillion warnings about the parameter index shadowing the globally defined string function
git-svn-id: svn://10.0.0.236/trunk@34623 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:18:17 +00:00
cata%netscape.com
6c7fbe0271 Bug fixes in the UTF-7 converters.
git-svn-id: svn://10.0.0.236/trunk@34622 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:06:00 +00:00
sfraser%netscape.com
9ce368c9e1 Clean up building of IDL projects, adding separate IDL group.
git-svn-id: svn://10.0.0.236/trunk@34621 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 20:02:53 +00:00
mcmullen%netscape.com
a1a83a4ea7 Fixed the -pref code to (1) use the new lowerStartInterCaps method names (and use the combined init() and showWindow() method), and (2) to release the prefwindow object.
git-svn-id: svn://10.0.0.236/trunk@34620 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:57:02 +00:00
mcmullen%netscape.com
c7f5e5d0c9 Converted method names to lowerStartInterCaps, following the JS convention. Combined init() and showWindow to reduce pointless verbosity in javascript usage (since they are always called together). Added a third parameter, an initial panel url, though this is as yet unsupported.
git-svn-id: svn://10.0.0.236/trunk@34619 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:55:08 +00:00
sfraser%netscape.com
1bde299d6f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34618 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:52:49 +00:00
mcmullen%netscape.com
50600ebfb0 Added bulletproofing for null buffer parameters
git-svn-id: svn://10.0.0.236/trunk@34617 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:51:36 +00:00
waterson%netscape.com
de4ae79cf3 Back out Hyatt's changes to use DOM APIs. This is busting mailnews. Use content APIs until we figure out persistence story.
git-svn-id: svn://10.0.0.236/trunk@34616 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:51:35 +00:00
mcmullen%netscape.com
945fc61529 Compromise. On other platforms, NS_WARNING does not call break. So we'll do the same. So for NS_WARNING, we'll simply print to the console and continue, a la mode de Pierre, while for other forms of NS_BLOWCHUNKS, we'll break into the debugger, as of old.
git-svn-id: svn://10.0.0.236/trunk@34615 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:50:56 +00:00
rjc%netscape.com
de84938fce XUL templates now look for any attribute (other than "uri") which equals "..." and substitutes the URI of the attached node.
git-svn-id: svn://10.0.0.236/trunk@34614 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:44:59 +00:00
kin%netscape.com
29d7d10d5b Added EditorGetNodeFromOffsets() and EditorSetSelectionFromOffsets().
git-svn-id: svn://10.0.0.236/trunk@34613 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:43:43 +00:00
rjc%netscape.com
db8176ecc1 More search support.
git-svn-id: svn://10.0.0.236/trunk@34612 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:42:53 +00:00
kin%netscape.com
87f40affc1 First pass checkin of the JavaScript editor logging mechanism. All changes are
ifdef'd with ENABLE_JS_EDITOR_LOG.


git-svn-id: svn://10.0.0.236/trunk@34611 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:41:40 +00:00
mscott%netscape.com
9dec3904ca Fix smtp send problem. I was over zealous in fixing a memory leak and we were appending an extra
comma to the list of recipients.


git-svn-id: svn://10.0.0.236/trunk@34610 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 19:37:18 +00:00
briano%netscape.com
e7eb31ad48 Automated update
git-svn-id: svn://10.0.0.236/trunk@34609 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 16:29:51 +00:00
ramiro%netscape.com
25d0cce0ca Fix something that was very with the last checkin. Dont strip .a files
dumbass.  Approved by the Bastard Operator From Hell.


git-svn-id: svn://10.0.0.236/trunk@34608 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 16:27:39 +00:00
briano%netscape.com
c7689ec171 Automated update
git-svn-id: svn://10.0.0.236/trunk@34607 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 15:29:51 +00:00
ramiro%netscape.com
d4bf0bf877 Add a configure flag --enable-strip-libs to make it easy to force the
libraries to strip.


git-svn-id: svn://10.0.0.236/trunk@34606 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 15:18:02 +00:00
valeski%netscape.com
aa6822fa14 I was continuing through a loop when I wasn't supposed to be
git-svn-id: svn://10.0.0.236/trunk@34605 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 15:13:37 +00:00
briano%netscape.com
9c2b61909b Automated update
git-svn-id: svn://10.0.0.236/trunk@34604 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:59:53 +00:00
ramiro%netscape.com
f769e571e4 Cleanup the ClientWallet, SingleSignon and CookieManagement mess.
git-svn-id: svn://10.0.0.236/trunk@34603 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:59:06 +00:00
jefft%netscape.com
274ee6d1a2 undo framework
git-svn-id: svn://10.0.0.236/trunk@34602 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:55:36 +00:00
ftang%netscape.com
3b73f6690e add real implementation for Unicode To CNS p3-p7 converters
git-svn-id: svn://10.0.0.236/trunk@34601 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:36:31 +00:00
ftang%netscape.com
164bf71469 chang variable name and fix Unicode to CNS plan 2 conversion mapping
git-svn-id: svn://10.0.0.236/trunk@34600 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:27:40 +00:00
ftang%netscape.com
2a0d18cf41 add CNS 11643 p3-7 to EUCTW
git-svn-id: svn://10.0.0.236/trunk@34599 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 14:14:50 +00:00
ftang%netscape.com
b5568edd02 remove incorrect checkin
git-svn-id: svn://10.0.0.236/trunk@34598 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:59:27 +00:00
ftang%netscape.com
b0442d0ce8 add cns[3-7].u[ft] which generated by the file uni2cns.txt created by Koichi Yasuoka <yasukoda@kudpc.kyoto.u.ac.jp>. Notice the CNS plan 1 and 2 are not based on this file but the John Jenkin's one. There are some difference between these two file in p1
git-svn-id: svn://10.0.0.236/trunk@34597 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:56:29 +00:00
dcone%netscape.com
2acb7fb2aa Fixed a solaris bug, took out a URL call until I can find the real cause
of the problem


git-svn-id: svn://10.0.0.236/trunk@34596 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:53:14 +00:00
briano%netscape.com
e8fe0cf3c4 Automated update
git-svn-id: svn://10.0.0.236/trunk@34595 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:29:51 +00:00
ramiro%netscape.com
9096a6f51c Remove USE_STRING2 hack. No longer needed since nsString2 is the default.
git-svn-id: svn://10.0.0.236/trunk@34594 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:28:26 +00:00
ramiro%netscape.com
827f1e3b3f Add #ifdef use of graphics state pool.
git-svn-id: svn://10.0.0.236/trunk@34593 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 13:11:22 +00:00
ftang%netscape.com
c7e1211fb1 add functionality to uscan and ugen so we can add CNS11643 p3-7 into euc-tw
git-svn-id: svn://10.0.0.236/trunk@34592 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 12:56:33 +00:00
ramiro%netscape.com
76cabb03d3 Factor out the graphics state struct into its own header and implementation
files.


git-svn-id: svn://10.0.0.236/trunk@34591 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 12:45:14 +00:00
hyatt%netscape.com
8723410029 Popup menus animate and shag in the correct directions, baby.
git-svn-id: svn://10.0.0.236/trunk@34590 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 09:41:14 +00:00
hyatt%netscape.com
e95c0a1e71 Tweak to the tree frame construction code.
git-svn-id: svn://10.0.0.236/trunk@34589 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 09:31:30 +00:00
mccabe%netscape.com
786e0eb5ce Various touchups and warning fixes.
git-svn-id: svn://10.0.0.236/trunk@34588 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 09:18:59 +00:00
mccabe%netscape.com
ae16bfb2d8 Fix many warnings, remove legacy -h option.
git-svn-id: svn://10.0.0.236/trunk@34587 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 08:21:35 +00:00
sspitzer%netscape.com
29a200f6f3 fix the crashing when I post news.
git-svn-id: svn://10.0.0.236/trunk@34586 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 08:08:22 +00:00
waterson%netscape.com
510168afe3 Oops. I'd screwed up the Release() method.
git-svn-id: svn://10.0.0.236/trunk@34585 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 08:01:13 +00:00
mscott%netscape.com
f27ffb8efc Remove references to mailnews header files.
git-svn-id: svn://10.0.0.236/trunk@34584 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 07:41:35 +00:00
mscott%netscape.com
89a37950cc change the start page. don't point to www.mozilla.org. this is only until #7417 gets fixed.
git-svn-id: svn://10.0.0.236/trunk@34583 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 07:26:38 +00:00
mscott%netscape.com
65dff35e1e Change comment to reflect tthe appropriate interface. (it was confusing before).
git-svn-id: svn://10.0.0.236/trunk@34582 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 07:21:06 +00:00
mscott%netscape.com
c2956c6b83 Trying to clear some stuff up to make it easier for Seth and I to track down the build breakage.
git-svn-id: svn://10.0.0.236/trunk@34581 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 06:55:14 +00:00
waterson%netscape.com
b32f67a8a9 Enable aggregation on the in-memory datasource.
git-svn-id: svn://10.0.0.236/trunk@34580 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 06:47:28 +00:00
waterson%netscape.com
0d88744fb8 Fix build bustage: make sure overloaded function uses identical return
type.


git-svn-id: svn://10.0.0.236/trunk@34579 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 06:40:43 +00:00
hyatt%netscape.com
177f37d06f Using DOM calls for setting/removing selection and hover attributes.
git-svn-id: svn://10.0.0.236/trunk@34578 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:53:01 +00:00
mscott%netscape.com
4dbdaef4cf Fix for SunOS build. we were using a nsCOMPtr on two interfaces without explicitly including the interface header file.
git-svn-id: svn://10.0.0.236/trunk@34577 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:49:17 +00:00
sspitzer%netscape.com
0b8541733b nsINNTPProtocol.h is going away, since it is not being used.
the only thing that uses nsNNTPProtocol is nsNntpService.
remove it from the news factory.

changes to get mark message read on display working.


git-svn-id: svn://10.0.0.236/trunk@34576 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:39:09 +00:00
sspitzer%netscape.com
bdc1298557 work to get this test working again. it's not building right now.
git-svn-id: svn://10.0.0.236/trunk@34575 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:33:55 +00:00
peterl%netscape.com
f7f8d0f24e added code to ignore unknown namespace prefix for attributes
(actually the parser should've rejected it before here)


git-svn-id: svn://10.0.0.236/trunk@34574 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:33:47 +00:00
peterl%netscape.com
7f52ade062 added files: mozilla/layout/html/style/src/nsCSSRule.cpp, mozilla/layout/html/style/src/nsCSSRules.cpp
git-svn-id: svn://10.0.0.236/trunk@34573 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:32:57 +00:00
peterl%netscape.com
df059bed47 added new rule interfaces & base class
git-svn-id: svn://10.0.0.236/trunk@34572 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:32:38 +00:00
sspitzer%netscape.com
0913b8ef91 the tests are going to break, so I am turning them off. I'll be turning them back on once I figure out what to do.
git-svn-id: svn://10.0.0.236/trunk@34571 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:32:37 +00:00
peterl%netscape.com
bd8c71d3d0 better namespace support
made descend from nsICSSRule


git-svn-id: svn://10.0.0.236/trunk@34570 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:30:36 +00:00
peterl%netscape.com
4dbbd3e8c7 removed cruft
git-svn-id: svn://10.0.0.236/trunk@34569 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:29:53 +00:00
peterl%netscape.com
68d8d61fec added support for other rule types
cleaned up api


git-svn-id: svn://10.0.0.236/trunk@34568 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:29:22 +00:00
peterl%netscape.com
4c99a1649d better namespace support
made descend from nsCSSRule base class


git-svn-id: svn://10.0.0.236/trunk@34567 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:28:32 +00:00
peterl%netscape.com
a56e7c62ac added helper method to token
git-svn-id: svn://10.0.0.236/trunk@34566 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:27:01 +00:00
peterl%netscape.com
f7d2222f18 added support for @namespace & @media
stubbed out support for other @rules
sync to sheet api changes


git-svn-id: svn://10.0.0.236/trunk@34565 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:25:23 +00:00
peterl%netscape.com
0c076004c8 added support for attribute namespaces on generated content
stubed out improvements to style change painting code


git-svn-id: svn://10.0.0.236/trunk@34564 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:24:00 +00:00
peterl%netscape.com
bf9b5f28c1 Cleanup API
Added support for other rule types
Added namespace support


git-svn-id: svn://10.0.0.236/trunk@34563 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:22:13 +00:00
peterl%netscape.com
9465779a16 sync to style sheet api change
added support for detecting other css rule types


git-svn-id: svn://10.0.0.236/trunk@34562 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:21:22 +00:00
peterl%netscape.com
8e2b932b12 made query for attributes in other namespaces legal, just not work
git-svn-id: svn://10.0.0.236/trunk@34561 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:20:28 +00:00
peterl%netscape.com
6d72b15356 added code to ignore unknown namespace prefix for attributes
(actually the parser should've rejected it before here)


git-svn-id: svn://10.0.0.236/trunk@34560 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:18:46 +00:00
peterl%netscape.com
a9ba7b2cdd removed equals and hashvalue methods
git-svn-id: svn://10.0.0.236/trunk@34559 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 05:17:27 +00:00
sspitzer%netscape.com
d59e2a9e54 get this to link on IRIX. thanks to Jason Heirtzler <jasonh@engr.sgi.com> for the patch.
git-svn-id: svn://10.0.0.236/trunk@34558 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 04:32:46 +00:00
briano%netscape.com
ee41abd1a8 Changed the platform-specific ifdefs wrt XP_RANDOM to use HAVE_RANDOM instead.
git-svn-id: svn://10.0.0.236/trunk@34557 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 04:07:09 +00:00
briano%netscape.com
207c218a16 Changed all the platform-specific ifdefs wrt XP_RANDOM to use HAVE_RANDOM instead.
git-svn-id: svn://10.0.0.236/trunk@34556 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 04:05:28 +00:00
briano%netscape.com
9980d10c96 Automated update
git-svn-id: svn://10.0.0.236/trunk@34555 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:59:50 +00:00
briano%netscape.com
e0af9c3bb9 Added a check for random().
git-svn-id: svn://10.0.0.236/trunk@34554 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:56:41 +00:00
karnaze%netscape.com
1827bdff68 removed temp windows code added by accident
git-svn-id: svn://10.0.0.236/trunk@34553 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:48:06 +00:00
peterl%netscape.com
691ead1e2f #ifdef'd out windows specific timer code
git-svn-id: svn://10.0.0.236/trunk@34552 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:43:43 +00:00
mscott%netscape.com
f6a998a901 fix memory leak
git-svn-id: svn://10.0.0.236/trunk@34551 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:06:28 +00:00
ducarroz%netscape.com
9c6c376512 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@34550 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:05:22 +00:00
ducarroz%netscape.com
9af17368af add a missing declarations, fix build bustage
git-svn-id: svn://10.0.0.236/trunk@34549 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 03:04:54 +00:00
mscott%netscape.com
c3780a7ecb Fix memory leaks.
git-svn-id: svn://10.0.0.236/trunk@34548 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:47:29 +00:00
mscott%netscape.com
a583b6d8e4 Fix memory leaks of messenger & msg composer bootstraps. Also removed 2 noisy printfs for bootstrapping
messenger code.


git-svn-id: svn://10.0.0.236/trunk@34547 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:46:06 +00:00
mcmullen%netscape.com
61b5c92698 XML is case sensitive, and that's why the "Save" button didn't work!
git-svn-id: svn://10.0.0.236/trunk@34546 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:32:06 +00:00
morse%netscape.com
55c8ea8e59 acceptable workaround for bug 6928
git-svn-id: svn://10.0.0.236/trunk@34545 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:29:58 +00:00
karnaze%netscape.com
16daf5e57c bug 6459 - incremental reflow methods call DeleteFrame instead of RemoveFrame
git-svn-id: svn://10.0.0.236/trunk@34544 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:29:34 +00:00
mcmullen%netscape.com
7b74874945 Don't try to call strlen() on a null string.
git-svn-id: svn://10.0.0.236/trunk@34543 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:24:21 +00:00
alecf%netscape.com
9fab568c18 fix leak
git-svn-id: svn://10.0.0.236/trunk@34542 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:19:01 +00:00
alecf%netscape.com
7319ebd433 fix some leaks
git-svn-id: svn://10.0.0.236/trunk@34541 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:17:33 +00:00
law%netscape.com
2394f4f4a9 Switching to XPIDL (this isn't actually used quite yet)
git-svn-id: svn://10.0.0.236/trunk@34540 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:15:58 +00:00
ducarroz%netscape.com
30f70faf68 add some missing declarations
git-svn-id: svn://10.0.0.236/trunk@34539 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:02:14 +00:00
ducarroz%netscape.com
51ef58fbae remove any use of nsMsgCompose (it's the old one nsMsgCompose will conflic with the new one I will add soon!)
git-svn-id: svn://10.0.0.236/trunk@34538 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:01:37 +00:00
ssu%netscape.com
c1080e7459 Fix AddDirectory bug
git-svn-id: svn://10.0.0.236/trunk@34537 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 02:00:19 +00:00
ssu%netscape.com
9c3d2350ea Moving result #defines out where others can use them
git-svn-id: svn://10.0.0.236/trunk@34536 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:58:50 +00:00
ssu%netscape.com
ac23eae97a Fixing ShExp use (0 means true)
git-svn-id: svn://10.0.0.236/trunk@34535 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:58:06 +00:00
rogerl%netscape.com
900de8bfd5 Added base to ScriptRuntime.numberToString, NativeNumber.toString()
Bug #7625


git-svn-id: svn://10.0.0.236/trunk@34534 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:54:28 +00:00
ducarroz%netscape.com
aacdb6f80f use CreateAndSendMessage instance of SendMessage
git-svn-id: svn://10.0.0.236/trunk@34533 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:50:05 +00:00
law%netscape.com
bc23621d00 Switching to XPIDL
git-svn-id: svn://10.0.0.236/trunk@34532 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:35:04 +00:00
ftang%netscape.com
0260f0de34 add empty file as placeholder
git-svn-id: svn://10.0.0.236/trunk@34531 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:32:35 +00:00
danm%netscape.com
6946d5cf8b adding show/hide support for interior chrome and menubars
git-svn-id: svn://10.0.0.236/trunk@34530 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:27:47 +00:00
ftang%netscape.com
f4ec424590 add empty as placeholder
git-svn-id: svn://10.0.0.236/trunk@34529 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:25:26 +00:00
ftang%netscape.com
cefc7c0917 add file placeholder for VIQR, VNI, ISO885910, ISO885913, ISO-IR-111
git-svn-id: svn://10.0.0.236/trunk@34528 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:17:03 +00:00
ducarroz%netscape.com
8aa7ef3e42 need to addref/release the object pass to the callback to avoid crash
git-svn-id: svn://10.0.0.236/trunk@34527 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:11:12 +00:00
ftang%netscape.com
c3d6c39406 add empty file (npl) as placeholder for converters
git-svn-id: svn://10.0.0.236/trunk@34526 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:08:14 +00:00
kostello%netscape.com
e3bdb359ea Fix build bustage: changed include to be the right case
git-svn-id: svn://10.0.0.236/trunk@34525 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:06:35 +00:00
ftang%netscape.com
22ae5f4890 add empty file as place holder
git-svn-id: svn://10.0.0.236/trunk@34524 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 01:00:45 +00:00
rhp%netscape.com
0d6ce1ad8c Changes for composition reorg
git-svn-id: svn://10.0.0.236/trunk@34523 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:52:47 +00:00
ducarroz%netscape.com
a56404d38e First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34522 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:41:28 +00:00
mscott%netscape.com
4e26d7b668 Quiet a noisy printf.
git-svn-id: svn://10.0.0.236/trunk@34521 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:40:53 +00:00
mscott%netscape.com
007a26d085 clean up work for pop3 protocol --> remove useage of the 8K output buffer which got ported over from the 4.x days. I use nsAutoString isntead (most of the data we write into the buffer is very small...it's protocol cmd data). This should help improve the memory footprint for pop.
Mad command_response, password and username all nsStrings instead of char *s.


git-svn-id: svn://10.0.0.236/trunk@34520 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:40:28 +00:00
law%netscape.com
7cb420c2c1 Stop onload handler firing twice
git-svn-id: svn://10.0.0.236/trunk@34519 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:36:08 +00:00
kostello%netscape.com
e69948ccbb Akkana set up a service for encoding a document.
This checkin adds the implementations for encoding
HTML and plain text:

nsTextEncoder::EncodeToString(..)
nsHTMLEncoder::EncodeToStream(..)

Hooked these services into the nsHTMLEditor implemenation

We probably want to update the clipboard code to
use the same pattern as in nsHTMLEditor.cpp


git-svn-id: svn://10.0.0.236/trunk@34518 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:35:02 +00:00
dp%netscape.com
af3775cbc9 openVMS changes. Thanks to Colin Blake <colin@theblakes.com>
git-svn-id: svn://10.0.0.236/trunk@34516 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:19:36 +00:00
mcmullen%netscape.com
78555a50e8 Hurrumph. So now we have to use about= instead of ID=? Well, CVS should have fixed my new stuff as well :-)
git-svn-id: svn://10.0.0.236/trunk@34515 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-10 00:06:59 +00:00
ftang%netscape.com
0193878767 add ibm866, UTF-7, x-imap4-modified-utf7, t61, ucs2, ucs4
git-svn-id: svn://10.0.0.236/trunk@34514 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 23:50:03 +00:00
ftang%netscape.com
71cdad332b correct the number of encoder
git-svn-id: svn://10.0.0.236/trunk@34513 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 23:48:30 +00:00
dbragg%netscape.com
16260c15d6 There was a lower case r in the macro OBJDIr for nsJARFactory.obj
git-svn-id: svn://10.0.0.236/trunk@34512 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:51:13 +00:00
kin%netscape.com
4edfa78bd0 First pass attempt to write out JavaScript. nsJSEditorLog now inherits from nsIHTMLEditor.
git-svn-id: svn://10.0.0.236/trunk@34511 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:33:30 +00:00
slamm%netscape.com
55fea45ed8 Reverse the order of the notes. Put the most recent on top. Remove unnecessary check for bad mail time.
git-svn-id: svn://10.0.0.236/trunk@34510 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:32:42 +00:00
kin%netscape.com
ec98adf0d2 Initial checkin of file. Not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@34509 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:31:44 +00:00
tague%netscape.com
c9e25b38a8 Conditionalized fix for #6896. Will only be compiled with a particular directive from my build environment
git-svn-id: svn://10.0.0.236/trunk@34508 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:07:53 +00:00
sspitzer%netscape.com
902bb9b25e fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@34507 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 22:01:00 +00:00
ssu%netscape.com
753c50eb70 fixed problem with AddSubcomponent() not accepting an empty string for the target name parameter. It now defaults to the jarSource parameter
git-svn-id: svn://10.0.0.236/trunk@34506 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:45:56 +00:00
mscott%netscape.com
e6aed221a9 MLK fixes. Free the line returned by calling ReadNextLine until I have time to come back and make ReadNextLine
not allocate a new buffer for the returned line.


git-svn-id: svn://10.0.0.236/trunk@34505 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:44:01 +00:00
ftang%netscape.com
e8e07b6461 change the hack to make it easier to add new CID, add CID for 7 XLFD charset and cp1255 1256, 866, UCS2/4 T61
git-svn-id: svn://10.0.0.236/trunk@34504 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:41:24 +00:00
mcmullen%netscape.com
41100bb362 Removed PrefsCore from appcores - it's now an autoregistered, idlized component.
git-svn-id: svn://10.0.0.236/trunk@34503 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:28:47 +00:00
briano%netscape.com
4d4340aa36 Fix for FreeBSD 2.x.
git-svn-id: svn://10.0.0.236/trunk@34502 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:28:28 +00:00
ftang%netscape.com
05dbc4f660 add cp1255,1256,866, UCS2/4, T61 to the factory
git-svn-id: svn://10.0.0.236/trunk@34501 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:20:28 +00:00
mscott%netscape.com
088a2c2da9 Remove warning introduced by an unused variabled into NS_NewFileSpecWithSpec.
git-svn-id: svn://10.0.0.236/trunk@34500 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:09:55 +00:00
mcmullen%netscape.com
5b63d649f7 Removed PrefsCore
git-svn-id: svn://10.0.0.236/trunk@34499 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:08:30 +00:00
mcmullen%netscape.com
54626dd29f Removed PrefsCore from appcores - it's now an autoregistered, idlized component.
git-svn-id: svn://10.0.0.236/trunk@34498 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:06:48 +00:00
mscott%netscape.com
3bb77e930d Code clean up --> added methods for building and running a mailbox url. This simplified a lot of the command methods like display message, copy message, etc.
save msg to disk work went in as well.


git-svn-id: svn://10.0.0.236/trunk@34497 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:05:53 +00:00
mscott%netscape.com
125fa1898a save msg to disk work. --> added getter/setting for msg nsIFileSpec
git-svn-id: svn://10.0.0.236/trunk@34496 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:05:10 +00:00
mscott%netscape.com
544c2d7b04 Add save msg to file action to mailbox actions. Add getter/setter for nsIFileSpec used to store the message when
git-svn-id: svn://10.0.0.236/trunk@34495 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:03:36 +00:00
mcmullen%netscape.com
02f7c40f1a Prefs core is gone
git-svn-id: svn://10.0.0.236/trunk@34494 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:01:40 +00:00
ftang%netscape.com
f9d06510a0 add T61, UCS2/UCS4 converters
git-svn-id: svn://10.0.0.236/trunk@34493 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 21:00:06 +00:00
mcafee%netscape.com
b6e4528902 Adding TAG_PROGRAM abstraction, thanks to Jim Nance for this fix.
git-svn-id: svn://10.0.0.236/trunk@34492 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:58:33 +00:00
Jerry.Kirk%Nexwarecorp.com
2cace3b020 - adding IsMenuBarVisible to get code to compile because nsWidget is our
base class not nsWindow


git-svn-id: svn://10.0.0.236/trunk@34491 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:55:48 +00:00
ftang%netscape.com
c373864370 change UCS2/4 CID into UCS2/4BE CID and add LE cid
git-svn-id: svn://10.0.0.236/trunk@34490 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:50:04 +00:00
mscott%netscape.com
a516c9660b Adding NS_NewFileSpecWithSpec for C++ code which allows you to create a nsIFileSpec given a nsFileSpec.
git-svn-id: svn://10.0.0.236/trunk@34489 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:49:39 +00:00
mcmullen%netscape.com
954322bbde PrefsCore now replaced by prefwindow object (idl) in xpfe/components
git-svn-id: svn://10.0.0.236/trunk@34488 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:47:50 +00:00
mcmullen%netscape.com
8ebb55a444 Added chrome://pref for the prefs window.
git-svn-id: svn://10.0.0.236/trunk@34487 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:45:15 +00:00
mcmullen%netscape.com
a406af3879 Removed PrefsCore and all its remaining stuff.
git-svn-id: svn://10.0.0.236/trunk@34486 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:44:31 +00:00
mcmullen%netscape.com
7ec609c4ed Support the -pref command-line option.
git-svn-id: svn://10.0.0.236/trunk@34485 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:44:04 +00:00
mcmullen%netscape.com
a0e3953a87 Use the xulified, idlized prefwindow object instead of PrefsCore
git-svn-id: svn://10.0.0.236/trunk@34484 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:43:29 +00:00
mcmullen%netscape.com
d980ad10cf Removed PrefsCore from appcores - it's now an autoregistered, idlized component.
git-svn-id: svn://10.0.0.236/trunk@34483 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:42:55 +00:00
andreas.otte%primus-online.de
093f16cf4e some cosmetics
git-svn-id: svn://10.0.0.236/trunk@34482 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:41:58 +00:00
andreas.otte%primus-online.de
8478385a66 remove export of header files
some cosmetics


git-svn-id: svn://10.0.0.236/trunk@34481 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:40:59 +00:00
mcmullen%netscape.com
533bb1d574 Added xpfe/components/prefwindow to unix build
git-svn-id: svn://10.0.0.236/trunk@34480 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:40:18 +00:00
ftang%netscape.com
910d64f269 add UCS2, UCS4, T61
git-svn-id: svn://10.0.0.236/trunk@34479 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:39:35 +00:00
andreas.otte%primus-online.de
748a144747 use LOCAL_INCLUDES to access base/src header files
some cosmetics


git-svn-id: svn://10.0.0.236/trunk@34478 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:39:08 +00:00
andreas.otte%primus-online.de
a4901508aa adding XPIDL_MODUL
some cosmetics


git-svn-id: svn://10.0.0.236/trunk@34477 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:37:42 +00:00
ftang%netscape.com
29694ff3f4 add UCS2/UCS4 and T61 to the makefile
git-svn-id: svn://10.0.0.236/trunk@34476 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:33:57 +00:00
ftang%netscape.com
cae1f83a53 add T61, UCS2, UCS4 converters
git-svn-id: svn://10.0.0.236/trunk@34475 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:33:07 +00:00
ftang%netscape.com
24d077ce8a fix incorrect GetMaxLength
git-svn-id: svn://10.0.0.236/trunk@34474 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:32:00 +00:00
ftang%netscape.com
785ce7670b add nsUConvDll.h
git-svn-id: svn://10.0.0.236/trunk@34473 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:26:48 +00:00
mang%subcarrier.org
972f33b580 fixed broken mailto: links
git-svn-id: svn://10.0.0.236/trunk@34472 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:23:35 +00:00
ftang%netscape.com
5c986abf57 add new scanner/generate type to support UCS2/4
git-svn-id: svn://10.0.0.236/trunk@34471 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:22:26 +00:00
ftang%netscape.com
a33b33f71f integrate rule base Thai line breaker (60% accurate)
git-svn-id: svn://10.0.0.236/trunk@34470 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:20:58 +00:00
pnunn%netscape.com
dd36038d2d with bug fix for #6045.pnunn.
git-svn-id: svn://10.0.0.236/trunk@34469 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:19:29 +00:00
dbragg%netscape.com
a1b6551e73 Added a progress bar
git-svn-id: svn://10.0.0.236/trunk@34468 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:16:59 +00:00
pnunn%netscape.com
e006b4b058 fix for bugz#6045 in if.cpp. pnunn.
git-svn-id: svn://10.0.0.236/trunk@34467 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:16:03 +00:00
pnunn%netscape.com
2988c8bcbb Clean up in IL_GetImage(). bugz#6045. pnunn.
git-svn-id: svn://10.0.0.236/trunk@34466 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:15:01 +00:00
mcmullen%netscape.com
445df872a7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34465 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:14:24 +00:00
harishd%netscape.com
dccdd615d3 Fix for Bug# 6749
git-svn-id: svn://10.0.0.236/trunk@34464 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:10:30 +00:00
harishd%netscape.com
2b7f6ba4fb Fix for Bug#6749
Made </SCRIPT> and </STYLE> to represent document's case in viewsource.


git-svn-id: svn://10.0.0.236/trunk@34463 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:09:52 +00:00
slamm%netscape.com
86de352d6a Start with Sidebar closed by default. Bug #7851.
git-svn-id: svn://10.0.0.236/trunk@34462 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:06:09 +00:00
rjc%netscape.com
6cc072bdd8 Adding RDF Search datasource into build.
git-svn-id: svn://10.0.0.236/trunk@34461 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:04:23 +00:00
rjc%netscape.com
9cba895395 Adding RDF Search datasource.
git-svn-id: svn://10.0.0.236/trunk@34460 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:03:20 +00:00
law%netscape.com
a7a5e1a496 Adding for Mac
git-svn-id: svn://10.0.0.236/trunk@34459 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 20:00:36 +00:00
harishd%netscape.com
94e5aabc39 Fix for Bug#6056
git-svn-id: svn://10.0.0.236/trunk@34458 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:54:09 +00:00
Jerry.Kirk%Nexwarecorp.com
21de2e9959 - Bug 7794 Move $(TK_LIBS) further down in the library list.
git-svn-id: svn://10.0.0.236/trunk@34457 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:48:58 +00:00
harishd%netscape.com
35928d7fde Fix for Bug#7462.
<TEXTAREA> was collecting skipped content twice.


git-svn-id: svn://10.0.0.236/trunk@34456 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:47:37 +00:00
Jerry.Kirk%Nexwarecorp.com
13161996b7 - Bug 7794 Moving $(TK_LIBS) further down in the library list
git-svn-id: svn://10.0.0.236/trunk@34455 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:46:31 +00:00
nhotta%netscape.com
1500892775 Bug fix #7715, removing the hack (rev 3.95).
git-svn-id: svn://10.0.0.236/trunk@34454 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:45:00 +00:00
Jerry.Kirk%Nexwarecorp.com
b9a5a999cb - Adding support for Clipboard
git-svn-id: svn://10.0.0.236/trunk@34453 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:44:28 +00:00
Jerry.Kirk%Nexwarecorp.com
a4c96eb91a - Adding support for Clipboard under Photon
git-svn-id: svn://10.0.0.236/trunk@34452 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:43:53 +00:00
valeski%netscape.com
03943f1585 gave http it's own xpt module
git-svn-id: svn://10.0.0.236/trunk@34451 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:38:03 +00:00
valeski%netscape.com
596814c9b4 gave ftp it's own xpt module
git-svn-id: svn://10.0.0.236/trunk@34450 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:37:17 +00:00
rhp%netscape.com
30bbac4481 New file for back end reorganization
git-svn-id: svn://10.0.0.236/trunk@34449 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:34:33 +00:00
morse%netscape.com
31de283bea fixup logic regarding notification
git-svn-id: svn://10.0.0.236/trunk@34448 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:29:49 +00:00
law%netscape.com
6f521027d4 Fix openLocation dialog
git-svn-id: svn://10.0.0.236/trunk@34447 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:27:18 +00:00
Jerry.Kirk%Nexwarecorp.com
77b4440471 - Set an uninitialized variable that was breaking test08 + other rips
git-svn-id: svn://10.0.0.236/trunk@34446 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:24:25 +00:00
dp%netscape.com
d13afcc15a Switching to use Component Registry
git-svn-id: svn://10.0.0.236/trunk@34445 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:19:14 +00:00
dp%netscape.com
d1f07ef339 Using new Component Registry
git-svn-id: svn://10.0.0.236/trunk@34444 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:18:24 +00:00
dp%netscape.com
a334563929 Cleaning up silliness.
git-svn-id: svn://10.0.0.236/trunk@34443 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:17:50 +00:00
ssu%netscape.com
7dd5543dda Fixed bugs #6612 and #6910.
6612: AddSubcomponent now works when only one parameter is used.
  6910: Added Install.SetValueNumber() and Install.GetValueNumber()

Also fixed Install.GetValueString().


git-svn-id: svn://10.0.0.236/trunk@34442 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:17:24 +00:00
dp%netscape.com
725b2f99ce Well Known Component Registry in <exedir>/component.reg implemented.
git-svn-id: svn://10.0.0.236/trunk@34441 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:16:38 +00:00
dp%netscape.com
370efa8a1d Code cleanup
git-svn-id: svn://10.0.0.236/trunk@34440 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:15:08 +00:00
akkana%netscape.com
cabff886d3 Add alt-X and alt-shift-x for debug output html and text
git-svn-id: svn://10.0.0.236/trunk@34439 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:12:28 +00:00
danm%netscape.com
4ecbd9dacb add Bar properties to DOMWindow
git-svn-id: svn://10.0.0.236/trunk@34438 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:04:18 +00:00
danm%netscape.com
771acb9497 teach top-level windows to show/hide and query visible state of menubars
git-svn-id: svn://10.0.0.236/trunk@34437 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:03:24 +00:00
danm%netscape.com
55cfe73afc teach (or stub) nsWidget to show/hide and query visible state of menubars
git-svn-id: svn://10.0.0.236/trunk@34436 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 19:01:55 +00:00
danm%netscape.com
082ba71455 adding domwindow barproperty object
git-svn-id: svn://10.0.0.236/trunk@34435 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 18:59:04 +00:00
petitta%netscape.com
48c664666b updated to match changes in source code
git-svn-id: svn://10.0.0.236/trunk@34434 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 17:18:21 +00:00
petitta%netscape.com
58c89f189a updated to much new source code
git-svn-id: svn://10.0.0.236/trunk@34433 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 17:17:36 +00:00
valeski%netscape.com
91b099c77c added thread safety back in
git-svn-id: svn://10.0.0.236/trunk@34432 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 17:12:34 +00:00
slamm%netscape.com
ecc03beffb Update with changes from Ken Estes <kestes@staff.mail.com>.
git-svn-id: svn://10.0.0.236/trunk@34431 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 17:06:56 +00:00
andreas.otte%primus-online.de
1c95641985 nsNetModuleMgr.h has to be exported to be used by nsNetFactory
git-svn-id: svn://10.0.0.236/trunk@34430 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:52:28 +00:00
valeski%netscape.com
67fc1e3129 moved up into public dir
git-svn-id: svn://10.0.0.236/trunk@34429 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:33:46 +00:00
valeski%netscape.com
77295483a3 added nsNetModuleMgr.h to the src dir and added the Create method to the modMgr impl so it can be in the factory
git-svn-id: svn://10.0.0.236/trunk@34428 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:30:20 +00:00
valeski%netscape.com
965b29cd14 removed nsNetModuleMgr.h from the expport list. it now lives where it should in base/src
git-svn-id: svn://10.0.0.236/trunk@34427 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:28:54 +00:00
valeski%netscape.com
f8346bb575 added the external module manager to the factory for autoregistration
git-svn-id: svn://10.0.0.236/trunk@34426 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:28:12 +00:00
valeski%netscape.com
fbe83f8adc moved over to base/src
git-svn-id: svn://10.0.0.236/trunk@34425 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:21:00 +00:00
valeski%netscape.com
6cd3181afe no longer needed
git-svn-id: svn://10.0.0.236/trunk@34424 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:20:17 +00:00
valeski%netscape.com
32a2989a04 we weren't initializing the request
git-svn-id: svn://10.0.0.236/trunk@34423 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:01:50 +00:00
valeski%netscape.com
074e50bb58 api changes
git-svn-id: svn://10.0.0.236/trunk@34422 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:00:50 +00:00
valeski%netscape.com
ed61bcca4d compile issues
git-svn-id: svn://10.0.0.236/trunk@34421 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 14:00:05 +00:00
valeski%netscape.com
444754f752 interface changes
git-svn-id: svn://10.0.0.236/trunk@34420 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 13:58:51 +00:00
valeski%netscape.com
83a809c62a moved to base/src
git-svn-id: svn://10.0.0.236/trunk@34419 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 13:56:12 +00:00
ramiro%netscape.com
78c3d043eb Add ti_files.
git-svn-id: svn://10.0.0.236/trunk@34418 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 13:11:03 +00:00
Jerry.Kirk%Nexwarecorp.com
82f918aa99 - Changing #ifdef to support both GCC 2.7 and 2.8 and adding support
for NTO platform.


git-svn-id: svn://10.0.0.236/trunk@34417 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 12:34:07 +00:00
ramiro%netscape.com
adb0d9b5f1 Patch from Tomi Leppikangas <tomilepp@rak046.oulu.fi>.
Here is small patch for gtk to make it look a little better.
Size 15 gets checkboxes and radiobuttons centered nicely.


git-svn-id: svn://10.0.0.236/trunk@34416 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 12:27:38 +00:00
Jerry.Kirk%Nexwarecorp.com
efa71cc9a7 -Bug 6648 Added NTO define for color byte ordering. NTO defines
- XP_UNIX but it prefers the colors in the same order as Windows and Mac


git-svn-id: svn://10.0.0.236/trunk@34415 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 12:12:03 +00:00
Jerry.Kirk%Nexwarecorp.com
74fbbc42b1 -Bug 7541 Added inclusion of sys/select.h for NTO platform to define fd_set
git-svn-id: svn://10.0.0.236/trunk@34414 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 12:07:32 +00:00
ramiro%netscape.com
041dc1ae54 One last tweak to make this thing work.
git-svn-id: svn://10.0.0.236/trunk@34413 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 11:50:57 +00:00
ramiro%netscape.com
ad4c790544 Motif Ressurection. Thanks to Daniel Roberts <zuperdee@yahoo.com> for
doing the painful job of identifying everything that is missing and
stubbing it out.


git-svn-id: svn://10.0.0.236/trunk@34412 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 11:35:26 +00:00
hyatt%netscape.com
b0df24e48c %^&%^&%&^
git-svn-id: svn://10.0.0.236/trunk@34411 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:21:27 +00:00
ramiro%netscape.com
9b2e86a5c3 Port to KCC.
git-svn-id: svn://10.0.0.236/trunk@34410 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:20:12 +00:00
hyatt%netscape.com
d0c8de6da2 Berating myself in one of my comments.
git-svn-id: svn://10.0.0.236/trunk@34409 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:18:32 +00:00
hyatt%netscape.com
3e5f66f671 Enabling some sample popup menus.
git-svn-id: svn://10.0.0.236/trunk@34408 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:14:30 +00:00
hyatt%netscape.com
9afad6ed83 Ok.
git-svn-id: svn://10.0.0.236/trunk@34407 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:13:46 +00:00
hyatt%netscape.com
b3adcfe170 More oops.
git-svn-id: svn://10.0.0.236/trunk@34406 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:10:18 +00:00
ramiro%netscape.com
1337494985 Port to KCC.
git-svn-id: svn://10.0.0.236/trunk@34405 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:09:47 +00:00
hyatt%netscape.com
4a776d4d0b Sigh.
git-svn-id: svn://10.0.0.236/trunk@34404 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:08:35 +00:00
ramiro%netscape.com
58110cdb96 This is all C code.
git-svn-id: svn://10.0.0.236/trunk@34403 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 10:08:12 +00:00
mccabe%netscape.com
08eb72105b removed files: mozilla/xpcom/typelib/xpidl/xpidl_stub.c
git-svn-id: svn://10.0.0.236/trunk@34402 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:46:07 +00:00
mccabe%netscape.com
a6da7e3cd8 Removing remnants of stubs-generation mode.
git-svn-id: svn://10.0.0.236/trunk@34401 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:45:49 +00:00
hyatt%netscape.com
4091439102 Oops.
git-svn-id: svn://10.0.0.236/trunk@34400 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:44:01 +00:00
hyatt%netscape.com
554e18d05b Context menus on windows now know about alignment.
git-svn-id: svn://10.0.0.236/trunk@34399 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:39:06 +00:00
hyatt%netscape.com
c3866c9e79 Teaching context menus about alignment.
git-svn-id: svn://10.0.0.236/trunk@34398 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:30:40 +00:00
hyatt%netscape.com
eb3ae6604b Passing the popup alignment info along.
git-svn-id: svn://10.0.0.236/trunk@34397 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:24:10 +00:00
hyatt%netscape.com
c36988d177 The editor popups are positioned properly.
git-svn-id: svn://10.0.0.236/trunk@34396 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:09:58 +00:00
hyatt%netscape.com
85cb484926 The translate menu is the master of evil.
git-svn-id: svn://10.0.0.236/trunk@34395 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:06:33 +00:00
hyatt%netscape.com
67b0713a62 Popups know how to shag, baby.
git-svn-id: svn://10.0.0.236/trunk@34394 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:05:53 +00:00
hyatt%netscape.com
c25770fedd Popups put the "grrrr!" in "swinger", baby!
git-svn-id: svn://10.0.0.236/trunk@34393 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:03:15 +00:00
hyatt%netscape.com
bfb714e576 Yeah, baby, yeah, baby, YEAH.
git-svn-id: svn://10.0.0.236/trunk@34392 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 09:02:35 +00:00
briano%netscape.com
5b61273847 Fix for FreeBSD 2.x builds.
git-svn-id: svn://10.0.0.236/trunk@34391 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:43:51 +00:00
hyatt%netscape.com
a7f06431d9 Ok, everything's peachy on the RDF end. Time to work on the front end.
git-svn-id: svn://10.0.0.236/trunk@34390 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:39:10 +00:00
hyatt%netscape.com
5b2065032e Altering the args for createPopup.
git-svn-id: svn://10.0.0.236/trunk@34389 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:36:06 +00:00
waterson%netscape.com
3e05078ed6 Add nsRDFContentUtils fns to dlldeps, as they are used from rdfdatasource_s.lib now.
git-svn-id: svn://10.0.0.236/trunk@34388 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:32:17 +00:00
waterson%netscape.com
32b80e3a09 Fix incorrect RDF usage; replace 'ID=' with 'about=' where appropriate.
git-svn-id: svn://10.0.0.236/trunk@34387 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:31:47 +00:00
waterson%netscape.com
a7e3640191 Don't rely on rdf_PossiblyMake[Relative|Absolute](); rather, use XUL-specific functions to do it.
git-svn-id: svn://10.0.0.236/trunk@34386 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:30:47 +00:00
briano%netscape.com
a56f472adf Automated update
git-svn-id: svn://10.0.0.236/trunk@34385 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:29:52 +00:00
waterson%netscape.com
75fa8d657f Bug 7440. Replace rdf_PossiblyMakeRelative() and rdf_PossiblyMakeAbsolute(); use NS_MakeAbsoluteURL() to create absolute URLs, when constructing relative, distinguish between 'name' and 'ref' sites (e.g., 'foo' vs. '#foo'). Misc other fixes to the RDF content sink.
git-svn-id: svn://10.0.0.236/trunk@34384 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:29:51 +00:00
hyatt%netscape.com
5632d597ba Altering the idl for createPopup.
git-svn-id: svn://10.0.0.236/trunk@34383 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:25:07 +00:00
briano%netscape.com
cf71c2e029 Oops, left out one of the two dashes.
git-svn-id: svn://10.0.0.236/trunk@34382 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:22:26 +00:00
briano%netscape.com
0636ecea47 Added a patch for IRIX 6.x submitted by jasonh@engr.sgi.com.
git-svn-id: svn://10.0.0.236/trunk@34381 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:17:01 +00:00
hyatt%netscape.com
de91f5ae9b Updating popups to use screen coordinates instead of being hardcoded to (50,50).
git-svn-id: svn://10.0.0.236/trunk@34380 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 08:00:27 +00:00
hyatt%netscape.com
a4990a8363 Fixing build bustage.
git-svn-id: svn://10.0.0.236/trunk@34379 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 07:51:52 +00:00
joki%netscape.com
7cb2ba1a65 Fixing event coordinates to give screen based info. Also fixing direct reference to frames via their names.
git-svn-id: svn://10.0.0.236/trunk@34378 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 07:38:26 +00:00
warren%netscape.com
a6626ea66d Removed nsIByteBufferInputStream - obsolete.
git-svn-id: svn://10.0.0.236/trunk@34377 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 06:48:38 +00:00
warren%netscape.com
0a220b88ad Cleaned up the nsIBuffer interface, added comments, etc.
git-svn-id: svn://10.0.0.236/trunk@34376 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 06:41:32 +00:00
mscott%netscape.com
3817aa452b Use NS_WITH_SERVICE1 which uses the service manager that was passed in to
NSRegisterSelf / NSUnregisterSelf.


git-svn-id: svn://10.0.0.236/trunk@34375 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 06:40:48 +00:00
sspitzer%netscape.com
e0486d146d fix windows build breakage.
git-svn-id: svn://10.0.0.236/trunk@34374 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 06:18:08 +00:00
hyatt%netscape.com
a056c0dfa5 More content model tweaks.
git-svn-id: svn://10.0.0.236/trunk@34373 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 05:45:15 +00:00
sspitzer%netscape.com
9091203500 more fix for SunOS and other UNIX platform build bustage.
I don't need to include the .idl file since I'm not deriving from it.
but as I side effect, I need to add the include to the other .h file.


git-svn-id: svn://10.0.0.236/trunk@34372 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 05:42:57 +00:00
sspitzer%netscape.com
4555b39ff0 fix for build bustage on SunOS and other unix platforms..(but curiously, not
windows, mac, or linux.)

since we aren't deriving from these interfaces, I only need to declare
them as interfaces.  I don't have to include the idl files.


git-svn-id: svn://10.0.0.236/trunk@34370 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 05:22:30 +00:00
warren%netscape.com
14d73e7f5b Added ReadSegments and WriteSegments to nsIBuffer to avoid the need to allocate intermediate buffers.
git-svn-id: svn://10.0.0.236/trunk@34369 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:52:47 +00:00
ftang%netscape.com
7dc5c992ea add cp1255, 1256, 866 converters
git-svn-id: svn://10.0.0.236/trunk@34368 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:19:13 +00:00
ftang%netscape.com
41dd2f7332 add 1255, 1256, 866
git-svn-id: svn://10.0.0.236/trunk@34367 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:05:12 +00:00
ftang%netscape.com
6e9718443a add cp1255,1256,866 converter files
git-svn-id: svn://10.0.0.236/trunk@34366 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:02:18 +00:00
mcafee%netscape.com
e179eabb97 Ignore generated files.
git-svn-id: svn://10.0.0.236/trunk@34365 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:02:15 +00:00
mcafee%netscape.com
3278bc46f4 Proper use of parens.
git-svn-id: svn://10.0.0.236/trunk@34364 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 04:00:57 +00:00
ftang%netscape.com
f524f0e259 add new mapping tables
git-svn-id: svn://10.0.0.236/trunk@34363 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:50:07 +00:00
ftang%netscape.com
5354c5e7b5 add GB2312 GL converter
git-svn-id: svn://10.0.0.236/trunk@34362 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:42:03 +00:00
ramiro%netscape.com
5e3d81475b Remove cruft.
git-svn-id: svn://10.0.0.236/trunk@34361 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:37:05 +00:00
warren%netscape.com
d2b1868514 Added nscore.h to nsrootidl.idl for PRUnichar.
git-svn-id: svn://10.0.0.236/trunk@34360 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:19:10 +00:00
tague%netscape.com
c14a08ca40 Conditional fix for #7629. Only builds with a conditional set in my environment
git-svn-id: svn://10.0.0.236/trunk@34359 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:17:56 +00:00
ftang%netscape.com
74bd7637a5 add cid and class mapping
git-svn-id: svn://10.0.0.236/trunk@34358 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:17:50 +00:00
rogerl%netscape.com
44ea3bf179 New
git-svn-id: svn://10.0.0.236/trunk@34357 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:30 +00:00
rogerl%netscape.com
06986144aa tried adding some lexical scoping to the leftmost identifier
git-svn-id: svn://10.0.0.236/trunk@34356 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:10:09 +00:00
selmer%netscape.com
39394063cf Fix dialog conditionals
git-svn-id: svn://10.0.0.236/trunk@34355 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 03:02:49 +00:00
selmer%netscape.com
6fdb7aa05b fixed dialog for rename
git-svn-id: svn://10.0.0.236/trunk@34354 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:56:07 +00:00
selmer%netscape.com
c19c6afa08 rename dialog
git-svn-id: svn://10.0.0.236/trunk@34353 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:55:49 +00:00
hangas%netscape.com
286f876bf7 Changed Address Book window to show selected card only when a single card is selected. Multi-selection and no selection shows no card.
git-svn-id: svn://10.0.0.236/trunk@34352 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:39:56 +00:00
tague%netscape.com
f8488c360a Fix for #7798: Spelling error in locale GetCategory API. Made one change to mailnews to reflect new spelling
git-svn-id: svn://10.0.0.236/trunk@34351 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:37:14 +00:00
cmanske%netscape.com
f46ece1554 Fixed fingers-to-quick checkin error
git-svn-id: svn://10.0.0.236/trunk@34350 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:28:47 +00:00
cmanske%netscape.com
45befba712 Moved destination of editor string bundle file to editor's chrome directory
git-svn-id: svn://10.0.0.236/trunk@34349 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:26:48 +00:00
cmanske%netscape.com
298e72c3e6 Added string bundle file to Mac manifest file
git-svn-id: svn://10.0.0.236/trunk@34348 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:16:48 +00:00
cmanske%netscape.com
bb01c623c9 Added string bundle file
git-svn-id: svn://10.0.0.236/trunk@34347 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:12:52 +00:00
sfraser%netscape.com
0d7d3f799e Added Network shared lib to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@34346 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 02:09:24 +00:00
jefft%netscape.com
75db693647 added GetTransactionManager() method
git-svn-id: svn://10.0.0.236/trunk@34345 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:31:01 +00:00
jefft%netscape.com
f41673bfbd added readonly attribute nsITransactionManager transactionManager
git-svn-id: svn://10.0.0.236/trunk@34344 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:30:27 +00:00
cmanske%netscape.com
5cc87fa56e Added support for prefs and string bundles for editor, various bug fixes, preliminary Horizontal Line dialog work
git-svn-id: svn://10.0.0.236/trunk@34343 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:27:08 +00:00
cmanske%netscape.com
9ee8cd5583 Changed back to '.' selector for titledbutton class. Simplified borderless titlebutton CSS
git-svn-id: svn://10.0.0.236/trunk@34342 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:26:00 +00:00
hyatt%netscape.com
b92179cf5c Changed event names to "create" and "destroy"
git-svn-id: svn://10.0.0.236/trunk@34341 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:11:39 +00:00
hyatt%netscape.com
7af8deae73 Changed events names to "create" and "destroy".
git-svn-id: svn://10.0.0.236/trunk@34340 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:11:22 +00:00
hyatt%netscape.com
0f2b50816a Fix that makes the blur handler ultra-paranoid. It sanity checks its target before
closing the window.  (I'm having to do this since focus/blur events bubble. @#$@#$%#)


git-svn-id: svn://10.0.0.236/trunk@34339 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:07:31 +00:00
cyeh%netscape.com
d5e0d681e5 create toplevel chrome directory in $(DIST)/bin per hyatt spec
git-svn-id: svn://10.0.0.236/trunk@34338 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:05:52 +00:00
valeski%netscape.com
637c0c4cf7 added nsIHTTPNotify.idl to the idl list on unix
git-svn-id: svn://10.0.0.236/trunk@34337 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:02:37 +00:00
valeski%netscape.com
ac3516569d added external module files to unix builds
git-svn-id: svn://10.0.0.236/trunk@34336 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:01:59 +00:00
valeski%netscape.com
0168c86d7a added idl srcs to unix mkfile
git-svn-id: svn://10.0.0.236/trunk@34335 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:01:17 +00:00
hyatt%netscape.com
7f719b4853 Added some box stuff for selmer.
git-svn-id: svn://10.0.0.236/trunk@34334 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 01:00:04 +00:00
akkana%netscape.com
c9c1296e38 7720: fix regression caused by attempting to fix XIF handling of comments
git-svn-id: svn://10.0.0.236/trunk@34333 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:48:21 +00:00
ftang%netscape.com
b7e01cc097 add new CIDs
git-svn-id: svn://10.0.0.236/trunk@34332 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:40:18 +00:00
hyatt%netscape.com
302054f955 Tweaking interface for focus stuff.
git-svn-id: svn://10.0.0.236/trunk@34331 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:35:46 +00:00
alecf%netscape.com
ac11dad736 remove unnecessary files, and fixup includes to avoid use of %{C++
git-svn-id: svn://10.0.0.236/trunk@34330 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:34:51 +00:00
briano%netscape.com
284cb51917 Automated update
git-svn-id: svn://10.0.0.236/trunk@34329 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:29:53 +00:00
briano%netscape.com
8db344082f Override the results of the archive extraction flag test for NetBSD and older FreeBSDs.
git-svn-id: svn://10.0.0.236/trunk@34328 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:28:05 +00:00
selmer%netscape.com
35e195d338 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34327 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:26:56 +00:00
briano%netscape.com
0f2b0cb13a Looks like FreeBSD needs to exclude __.SYMDEF as well.
git-svn-id: svn://10.0.0.236/trunk@34326 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:26:27 +00:00
selmer%netscape.com
ab433ffa4a row selection works!
git-svn-id: svn://10.0.0.236/trunk@34325 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:25:33 +00:00
selmer%netscape.com
9f4e82f302 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34324 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:24:52 +00:00
alecf%netscape.com
f1782c29bd don't export these files on unix
git-svn-id: svn://10.0.0.236/trunk@34323 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:23:37 +00:00
alecf%netscape.com
413a2af13e these files are now generated
git-svn-id: svn://10.0.0.236/trunk@34322 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:23:01 +00:00
alecf%netscape.com
8585d8b4fa start doing XPIDL on windows in local
git-svn-id: svn://10.0.0.236/trunk@34321 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:20:38 +00:00
ftang%netscape.com
6f17d10149 add new CIDs
git-svn-id: svn://10.0.0.236/trunk@34320 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:15:50 +00:00
hyatt%netscape.com
5079f0a9d2 Fixing a bug with allowevents in the tree view.
git-svn-id: svn://10.0.0.236/trunk@34319 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-09 00:04:25 +00:00
ftang%netscape.com
9167b84331 add new CIDs
git-svn-id: svn://10.0.0.236/trunk@34318 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:53:22 +00:00
ftang%netscape.com
1af875416f fix typo
git-svn-id: svn://10.0.0.236/trunk@34317 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:44:51 +00:00
ftang%netscape.com
10fa44a00a add new CIDs
git-svn-id: svn://10.0.0.236/trunk@34316 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:44:50 +00:00
ftang%netscape.com
7446424a69 add x window font charset converters
git-svn-id: svn://10.0.0.236/trunk@34315 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:31:56 +00:00
mcmullen%netscape.com
df063c42e1 Fix the typo in the name of unix.js, and fix the asserts.
git-svn-id: svn://10.0.0.236/trunk@34314 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:31:15 +00:00
ftang%netscape.com
576bea3a90 add no CNS 11643 p1 and p2
git-svn-id: svn://10.0.0.236/trunk@34313 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:25:15 +00:00
ftang%netscape.com
55df9d517b add no ASCII Big5
git-svn-id: svn://10.0.0.236/trunk@34312 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:24:05 +00:00
ftang%netscape.com
372a20dfd5 add KSC5601
git-svn-id: svn://10.0.0.236/trunk@34311 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:23:07 +00:00
ftang%netscape.com
721983551c add GB2312 GL
git-svn-id: svn://10.0.0.236/trunk@34310 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:22:23 +00:00
mcmullen%netscape.com
eb1ffa3a60 Updated URLs to the new .xul files.
git-svn-id: svn://10.0.0.236/trunk@34309 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:20:28 +00:00
mcmullen%netscape.com
69ecff015f Fixed an entity reference
git-svn-id: svn://10.0.0.236/trunk@34308 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:19:07 +00:00
mcmullen%netscape.com
25463565c0 Bulletproofing.
git-svn-id: svn://10.0.0.236/trunk@34307 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:18:27 +00:00
ftang%netscape.com
4d49aeac5e add CNS11643 converters
git-svn-id: svn://10.0.0.236/trunk@34306 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:14:26 +00:00
valeski%netscape.com
4f596d061e removing this as it's been depricated to public dir
git-svn-id: svn://10.0.0.236/trunk@34305 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:14:08 +00:00
ftang%netscape.com
62c337e5d0 add No ASCII big5 converters
git-svn-id: svn://10.0.0.236/trunk@34304 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:13:06 +00:00
ftang%netscape.com
b340c92cd2 add convert to GB2312 GL files
git-svn-id: svn://10.0.0.236/trunk@34303 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:11:46 +00:00
ftang%netscape.com
e78377edd1 add KSC5601 converter files
git-svn-id: svn://10.0.0.236/trunk@34302 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:10:54 +00:00
ftang%netscape.com
3f952e455e add Unicode to JIS converters files
git-svn-id: svn://10.0.0.236/trunk@34301 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:09:50 +00:00
hyatt%netscape.com
d3cca3c5db Controller stuff.
git-svn-id: svn://10.0.0.236/trunk@34300 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 23:04:24 +00:00
alecf%netscape.com
17c3d0b033 get rid of generated headers
git-svn-id: svn://10.0.0.236/trunk@34299 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:50:58 +00:00
hangas%netscape.com
bb3197f863 Added code to clear the card view when changing address books.
git-svn-id: svn://10.0.0.236/trunk@34298 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:50:43 +00:00
hangas%netscape.com
d14d046cc5 Cleaned up row selection styles.
git-svn-id: svn://10.0.0.236/trunk@34297 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:50:01 +00:00
jband%netscape.com
da45e7f10c Fix build bustage. Will come back and do it right
git-svn-id: svn://10.0.0.236/trunk@34296 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:49:01 +00:00
briano%netscape.com
f3ae589f0e Fix for bug 7756. Thanks to jim_nance@yahoo.com for the original idea.
git-svn-id: svn://10.0.0.236/trunk@34295 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:32:31 +00:00
hyatt%netscape.com
cb3af301d3 Fix Linux bustage.
git-svn-id: svn://10.0.0.236/trunk@34294 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:29:58 +00:00
jefft%netscape.com
48ce9c78b2 added Undo/Redo method
git-svn-id: svn://10.0.0.236/trunk@34293 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:15:58 +00:00
jefft%netscape.com
3992aeebeb added Undo/Redo method; construct instance of nsTransactionManager in InitializeFolderRoot()
git-svn-id: svn://10.0.0.236/trunk@34292 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:15:04 +00:00
sfraser%netscape.com
da9bcac667 Back out pierre change, so that NS_ASSERTION calls DebugStr once again. Doing this on the basis of consensus at 7/6 macdev meeting.
git-svn-id: svn://10.0.0.236/trunk@34291 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:13:40 +00:00
hyatt%netscape.com
5002510d43 added files: mozilla/rdf/base/idl/nsIController.idl, mozilla/rdf/base/idl/nsIGenericCommandSet.idl
git-svn-id: svn://10.0.0.236/trunk@34290 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 22:00:58 +00:00
hyatt%netscape.com
587bb51013 Woo woo. Focus implementation.
git-svn-id: svn://10.0.0.236/trunk@34289 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:58:55 +00:00
hyatt%netscape.com
d83c36dd0f Adding new idl.
git-svn-id: svn://10.0.0.236/trunk@34288 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:58:32 +00:00
akkana%netscape.com
d0bcfd4327 5380: middle-mouse paste to correct position in the editor
git-svn-id: svn://10.0.0.236/trunk@34287 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:51:40 +00:00
jband%netscape.com
c27bc67a4b Adding Irix implementation from Jason Heirtzler <jasonh@cthulhu.engr.sgi.com>
git-svn-id: svn://10.0.0.236/trunk@34286 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:49:30 +00:00
hyatt%netscape.com
b60353da3f Fix for bug #7786.
git-svn-id: svn://10.0.0.236/trunk@34285 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:48:41 +00:00
amasri%netscape.com
7a12fa043a added extra tests for version 2.0
added timing changes to help stabilize bitmap


git-svn-id: svn://10.0.0.236/trunk@34284 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:44:48 +00:00
phillip%netscape.com
0a0bb4ed48 mad script executable, fixed relative path issues.
git-svn-id: svn://10.0.0.236/trunk@34283 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:38:35 +00:00
mcmullen%netscape.com
14ecefdf5e Turned on building of the prefwindow component for Macintosh
git-svn-id: svn://10.0.0.236/trunk@34282 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:36:36 +00:00
amasri%netscape.com
81ddf5fe49 changed Invoke() method to give better error messages
changed iBitmapWait to 90 to account for i18n sites


git-svn-id: svn://10.0.0.236/trunk@34281 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:35:30 +00:00
selmer%netscape.com
0c64adbeaf working on popups
git-svn-id: svn://10.0.0.236/trunk@34280 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:34:19 +00:00
mcmullen%netscape.com
f4b80d5fd8 Turned on the prefwindow subdirectory on windows
git-svn-id: svn://10.0.0.236/trunk@34279 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:33:56 +00:00
amasri%netscape.com
aa5b1f951b added extra tests for version 2.0
added i18n tests


git-svn-id: svn://10.0.0.236/trunk@34278 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:32:22 +00:00
amasri%netscape.com
423ddcdaf9 added extra tests for version 2.0
added i18n tests


git-svn-id: svn://10.0.0.236/trunk@34277 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:30:39 +00:00
waterson%netscape.com
3b9fc69f44 Obsolete. Generated from nsICollection.idl now.
git-svn-id: svn://10.0.0.236/trunk@34276 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:28:42 +00:00
mcmullen%netscape.com
3d04c0bad5 Fixed the module names
git-svn-id: svn://10.0.0.236/trunk@34275 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:28:23 +00:00
matt%netscape.com
c14a8e16ad Fixeing bug 4795
git-svn-id: svn://10.0.0.236/trunk@34274 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:27:57 +00:00
waterson%netscape.com
16a5ea4c15 Obsolete. Generated from nsIEnumerator.idl now.
git-svn-id: svn://10.0.0.236/trunk@34273 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:27:47 +00:00
sfraser%netscape.com
bb7532935e Turn off debugging table border.
git-svn-id: svn://10.0.0.236/trunk@34272 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:27:05 +00:00
sspitzer%netscape.com
e88ec76817 turn off my debugging printfs.
git-svn-id: svn://10.0.0.236/trunk@34271 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:25:39 +00:00
mcmullen%netscape.com
3bcdf27e45 added a cast
git-svn-id: svn://10.0.0.236/trunk@34270 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:23:41 +00:00
pinkerton%netscape.com
ebc2d06273 File Removed.
git-svn-id: svn://10.0.0.236/trunk@34269 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:23:36 +00:00
law%netscape.com
2d45ab829d XPIDLifying app shell components
git-svn-id: svn://10.0.0.236/trunk@34268 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:23:21 +00:00
pinkerton%netscape.com
36c6cca200 don't export imagebutton or menu button stuff, again. obsolete.
git-svn-id: svn://10.0.0.236/trunk@34267 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:23:18 +00:00
matt%netscape.com
992229e94a fixing bug 7155
git-svn-id: svn://10.0.0.236/trunk@34266 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:21:15 +00:00
mcmullen%netscape.com
98e6c376ad Added MODULE=
git-svn-id: svn://10.0.0.236/trunk@34265 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:19:07 +00:00
ftang%netscape.com
bf6f829561 add rulebrk.c back
git-svn-id: svn://10.0.0.236/trunk@34264 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:18:52 +00:00
mcmullen%netscape.com
1d4e4f09e4 ...
git-svn-id: svn://10.0.0.236/trunk@34263 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:18:05 +00:00
mcmullen%netscape.com
2408e32596 Forgot the damned ./
git-svn-id: svn://10.0.0.236/trunk@34262 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:13:56 +00:00
ftang%netscape.com
c4362cd5f8 change the fake lang string to null to improve performance
git-svn-id: svn://10.0.0.236/trunk@34261 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:13:06 +00:00
ftang%netscape.com
b1c3f1b226 do bit compar before do string compare to imporve performance
git-svn-id: svn://10.0.0.236/trunk@34260 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:12:20 +00:00
alla%lysator.liu.se
e0ac832aab Now compiles with HEAD
Had to do a ugly -DMOD_DLL_SUFFIX=\".so\" in the Makefile.
Will break on some platforms, but i suck at autoconf...


git-svn-id: svn://10.0.0.236/trunk@34259 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:10:18 +00:00
ftang%netscape.com
087e93c985 add nspr3 to the lib list
git-svn-id: svn://10.0.0.236/trunk@34258 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:09:51 +00:00
ftang%netscape.com
31d6d1c9a5 add new locale to charset mapping
git-svn-id: svn://10.0.0.236/trunk@34257 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:09:33 +00:00
putterman%netscape.com
eb1d5ccb9f Use onchange in threadPane and make selected color white.
git-svn-id: svn://10.0.0.236/trunk@34256 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:08:12 +00:00
ftang%netscape.com
c83f3a7da6 fix Chinease/Korean encoder problem
git-svn-id: svn://10.0.0.236/trunk@34255 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:06:47 +00:00
morse%netscape.com
258538bee2 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@34254 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:06:22 +00:00
jband%netscape.com
fcf49b32de removing unused file
git-svn-id: svn://10.0.0.236/trunk@34253 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:05:19 +00:00
putterman%netscape.com
832e50712e Check in fix for hyatt. Don't crash when closing a window after onchange
has been called.


git-svn-id: svn://10.0.0.236/trunk@34252 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 21:04:02 +00:00
law%netscape.com
e8100f1ad2 Display links in status bar when moused over
git-svn-id: svn://10.0.0.236/trunk@34251 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:59:41 +00:00
mcmullen%netscape.com
3ada190f0c Continuing development. (Still not in build).
git-svn-id: svn://10.0.0.236/trunk@34250 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:54 +00:00
warren%netscape.com
d9b1c6a72f Moved WriteFrom to nsIBufferOutputStream. Made necko pass around buffer streams.
git-svn-id: svn://10.0.0.236/trunk@34249 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:32 +00:00
norris%netscape.com
83c191892d Small reduction in code size.
git-svn-id: svn://10.0.0.236/trunk@34248 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:57:19 +00:00
matt%netscape.com
7037f23f47 fixing bug 6894 for the security guys
git-svn-id: svn://10.0.0.236/trunk@34247 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:52:33 +00:00
mcmullen%netscape.com
61c06327eb Continuing development (not yet in build).
git-svn-id: svn://10.0.0.236/trunk@34246 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:51:34 +00:00
mcmullen%netscape.com
2cbcddde7f Continuing development (not yet in build)
git-svn-id: svn://10.0.0.236/trunk@34245 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:48:34 +00:00
matt%netscape.com
0395ecfb60 adding pref-advanced.xul 6894
git-svn-id: svn://10.0.0.236/trunk@34244 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:45:37 +00:00
morse%netscape.com
9002ae199a fix wallet editor
git-svn-id: svn://10.0.0.236/trunk@34243 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:42:55 +00:00
matt%netscape.com
fa8e80aa1d Taking out prefbottom.xul from makefiles
git-svn-id: svn://10.0.0.236/trunk@34242 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:38:35 +00:00
matt%netscape.com
c710d1e279 fixing bug 6483
git-svn-id: svn://10.0.0.236/trunk@34241 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:33:40 +00:00
matt%netscape.com
48ab4f6525 fixing bugs 6468 and
6482


git-svn-id: svn://10.0.0.236/trunk@34240 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:30:08 +00:00
morse%netscape.com
642b2f087f fix wallet editor
git-svn-id: svn://10.0.0.236/trunk@34239 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:27:58 +00:00
matt%netscape.com
7f2b1c8a75 removing prefbottom.html since we don't use it anymore
git-svn-id: svn://10.0.0.236/trunk@34238 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:23:38 +00:00
hangas%netscape.com
69ec94f111 Cleaned up results pane of address book. Added select entire line code.
git-svn-id: svn://10.0.0.236/trunk@34237 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:21:53 +00:00
morse%netscape.com
c2374d293f BrowserAppCore.idl
git-svn-id: svn://10.0.0.236/trunk@34236 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:19:03 +00:00
valeski%netscape.com
7afe7bd16b updated the external module stuff
git-svn-id: svn://10.0.0.236/trunk@34235 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:15:26 +00:00
valeski%netscape.com
bf64c89334 added nsNetModuleMgr.cpp to the necko library. also made various changes to modEntry and modMgr implementations.
git-svn-id: svn://10.0.0.236/trunk@34234 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:12:53 +00:00
morse%netscape.com
399120094b editor
git-svn-id: svn://10.0.0.236/trunk@34233 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:12:36 +00:00
valeski%netscape.com
ab9a793482 added moduelMgr and ModRegEntry idls to the idl list. also updated the nsINetModuleMgr.idl interface
git-svn-id: svn://10.0.0.236/trunk@34232 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:11:53 +00:00
valeski%netscape.com
9d4154956a we were freeing a static buf
git-svn-id: svn://10.0.0.236/trunk@34231 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:09:43 +00:00
valeski%netscape.com
3c272f6406 adding the module registery entry idl file
git-svn-id: svn://10.0.0.236/trunk@34230 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:03:48 +00:00
valeski%netscape.com
7c86760dbe adding the module mgr header and the entry header
git-svn-id: svn://10.0.0.236/trunk@34228 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 20:02:53 +00:00
valeski%netscape.com
1318c22b6b we were erroneously freeing static mem.
git-svn-id: svn://10.0.0.236/trunk@34227 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:59:43 +00:00
matt%netscape.com
9de36f5fa3 Adding navigator.xul fix for bug 7035
git-svn-id: svn://10.0.0.236/trunk@34226 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:53:48 +00:00
locka%iol.ie
caf3065e01 Added some dynamic window resizing
git-svn-id: svn://10.0.0.236/trunk@34225 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:29:52 +00:00
joki%netscape.com
90d260e83f Fixing coords for click event since by not setting them at all before they were unlikely to be correct.
git-svn-id: svn://10.0.0.236/trunk@34224 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:28:52 +00:00
alecf%netscape.com
b32e651c72 ignore generated files
git-svn-id: svn://10.0.0.236/trunk@34223 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:20:01 +00:00
alecf%netscape.com
89d4fb8624 localize this file by using entities
git-svn-id: svn://10.0.0.236/trunk@34222 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:18:44 +00:00
jefft%netscape.com
bd0cbfa235 make sure we destroy the nsMessenger object after we close down the messenger window; call Release() in OnUnload() method
git-svn-id: svn://10.0.0.236/trunk@34221 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:05:40 +00:00
warren%netscape.com
6342442bae Added back in user agent stuff.
git-svn-id: svn://10.0.0.236/trunk@34220 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:04:13 +00:00
alecf%netscape.com
f6b4993bd9 remove the stupid dialog opening code
git-svn-id: svn://10.0.0.236/trunk@34219 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:02:43 +00:00
joki%netscape.com
f9357bc0c0 Fix hover state crash at document change. Bug 6580
git-svn-id: svn://10.0.0.236/trunk@34218 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 19:01:56 +00:00
alecf%netscape.com
592da646d0 open account manager with window.openDialog()
git-svn-id: svn://10.0.0.236/trunk@34217 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:57:55 +00:00
alecf%netscape.com
eee7aa5d60 add search makefiles to list (doesn't make search part of the build)
git-svn-id: svn://10.0.0.236/trunk@34216 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:44:48 +00:00
sspitzer%netscape.com
b18e748574 25 is the right max for Mac. from ns/lib/libmsg/newshost.cpp in the old world.
git-svn-id: svn://10.0.0.236/trunk@34215 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:33:30 +00:00
warren%netscape.com
36282c2a4a Added NewChannel method.
git-svn-id: svn://10.0.0.236/trunk@34214 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:28:10 +00:00
jefft%netscape.com
5befe20b98 accomodate alecf's name change for CloseMessenger()
git-svn-id: svn://10.0.0.236/trunk@34213 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:15:01 +00:00
hyatt%netscape.com
406ce053f6 Fix for a crash in the onchange handler of tree views on exit.
git-svn-id: svn://10.0.0.236/trunk@34212 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:12:47 +00:00
kmcclusk%netscape.com
1395c98675 Replaced reference with pointer for accessing plainFont in nsTextFrame::Reflow.
git-svn-id: svn://10.0.0.236/trunk@34211 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:12:20 +00:00
cbegle%netscape.com
bfd3a64713 Fix constructor test to match the constructors in DataTypeClass.java
git-svn-id: svn://10.0.0.236/trunk@34210 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:07:15 +00:00
cbegle%netscape.com
a076943e46 Add constructor tests.
git-svn-id: svn://10.0.0.236/trunk@34209 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:06:28 +00:00
mscott%netscape.com
9393d67233 Bug #6722 -- part of PR_Open removal.
git-svn-id: svn://10.0.0.236/trunk@34208 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 18:04:30 +00:00
putterman%netscape.com
f97f887fd5 Selection now selects the entire line. Folder pane no longer wraps.
git-svn-id: svn://10.0.0.236/trunk@34207 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 17:47:28 +00:00
valeski%netscape.com
d50b9b4b58 removed this one. good one is in mozilla/netwerk/protocol/http/public
git-svn-id: svn://10.0.0.236/trunk@34206 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 17:10:25 +00:00
selmer%netscape.com
eaeb84e88f use correct css file - duh.
git-svn-id: svn://10.0.0.236/trunk@34205 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 17:08:18 +00:00
valeski%netscape.com
c153a60bfd added root notification idl
git-svn-id: svn://10.0.0.236/trunk@34204 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 17:07:39 +00:00
valeski%netscape.com
a71f6c15f1 added nsINetNotify.idl to idl list
git-svn-id: svn://10.0.0.236/trunk@34203 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 17:07:09 +00:00
valeski%netscape.com
021800d963 added nsIHttpNotify.idl to the idl srcs list
git-svn-id: svn://10.0.0.236/trunk@34202 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 16:40:44 +00:00
valeski%netscape.com
bb715f5868 changed method names to match new symantics
git-svn-id: svn://10.0.0.236/trunk@34201 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 16:39:48 +00:00
cbegle%netscape.com
1654607cbd Object getters should return the same object set in the object setters,
and not create a new object.


git-svn-id: svn://10.0.0.236/trunk@34200 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 16:27:43 +00:00
andreas.otte%primus-online.de
7b8754c15c removed obsolete (I think) endless while loop from run method
added check for file size zero in SerialTest


git-svn-id: svn://10.0.0.236/trunk@34199 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 12:28:27 +00:00
andreas.otte%primus-online.de
d35bdc33a8 use new HandleEvent method of EventQueue
removed obselete stuff from manual registration
added two printf failure messages


git-svn-id: svn://10.0.0.236/trunk@34198 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 12:26:12 +00:00
andreas.otte%primus-online.de
3cd96278fb use new HandleEvent method of EventQueue
git-svn-id: svn://10.0.0.236/trunk@34197 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 12:24:10 +00:00
morse%netscape.com
a4efa0d630 fix treatment of notification message
git-svn-id: svn://10.0.0.236/trunk@34196 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 11:39:47 +00:00
andreas.otte%primus-online.de
e9c382512e fix to build with new AsyncRead interface from nsIChannel
git-svn-id: svn://10.0.0.236/trunk@34195 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 10:09:00 +00:00
andreas.otte%primus-online.de
c4bfc904c9 some cleanup after IDLisation
git-svn-id: svn://10.0.0.236/trunk@34194 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 10:07:50 +00:00
andreas.otte%primus-online.de
f91fff94e2 building the right library
git-svn-id: svn://10.0.0.236/trunk@34193 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 09:50:19 +00:00
andreas.otte%primus-online.de
8b2a129528 included dns makefiles
git-svn-id: svn://10.0.0.236/trunk@34192 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 09:48:28 +00:00
andreas.otte%primus-online.de
cc4b42de8e first checked in
git-svn-id: svn://10.0.0.236/trunk@34191 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 09:47:53 +00:00
andreas.otte%primus-online.de
d5a49e563d changed nsIUrl.h to nsIURL.h
git-svn-id: svn://10.0.0.236/trunk@34190 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 09:46:10 +00:00
andreas.otte%primus-online.de
35d2bfdc03 some cleanup after IDLisation
git-svn-id: svn://10.0.0.236/trunk@34189 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 09:44:04 +00:00
mcafee%netscape.com
7582baa723 Fixing this Makefile so that it does something.
git-svn-id: svn://10.0.0.236/trunk@34188 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 08:01:35 +00:00
warren%netscape.com
481b0b5652 Updated emacs TAGS rules for idl.
git-svn-id: svn://10.0.0.236/trunk@34187 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 07:43:32 +00:00
sspitzer%netscape.com
b7149d69fd makefile fixes from reg@shale.csir.co.za (Jeremy Lea)
git-svn-id: svn://10.0.0.236/trunk@34186 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 06:25:56 +00:00
av%netscape.com
3300943c79 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@34185 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 06:07:51 +00:00
hyatt%netscape.com
49c2c26e26 Adding code to force the user into STANDARD mode. Otherwise the chrome
malfunctions.


git-svn-id: svn://10.0.0.236/trunk@34184 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 06:05:53 +00:00
buster%netscape.com
4bad1b96b8 * Added nsAutoSelectionReset, a tiny class that resets the selection to what it was before a block transformation.
* Added some code to restore selection after RemoveTextProperty.
* Made a tiny change to the way the editor holds onto the transaction manager, so client (like the ender text control) can
turn undo on and off effectively
* Fixed a bug in IsNodeInline that was causing GetBlockParent to return the wrong parent node (and who knows what
other mischief) where atom compares were being done on strings of different case, for <B>, "b" vs. "B".  The DOM
method nsIDOMElement::GetTagName forced the returned tag name to upper case.  I don't know how long that has
been true, but I assume it's a fairly recent change (or something on our side related to it changed recently) or this method
never would have worked.  I also found a few cases of nsString::Equals that I changed to EqualsIgnoreCase
* Made some general improvements to the interaction between editors and rules, so that the aCancel out param is always
intialized, and all rules with Will... are matched with a Did... call.  Added Will/DidSetTextProperty() and
Will/DidRemoveTextProperty().  This helps enable plain text mode.  Added a skeleton for max length support in text editor.
* fixed some warnings.


git-svn-id: svn://10.0.0.236/trunk@34183 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 06:04:51 +00:00
hyatt%netscape.com
d85306e46c That's right baby. Whole row selection turned on.
git-svn-id: svn://10.0.0.236/trunk@34182 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:49:00 +00:00
hyatt%netscape.com
75642372a6 Adding a reminder comment to a file for future reference.
git-svn-id: svn://10.0.0.236/trunk@34181 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:24:06 +00:00
hyatt%netscape.com
7c41977b10 Removing the destruct from webshellwindow for arbitrary XUL popups. This should
happen on loss of focus instead.


git-svn-id: svn://10.0.0.236/trunk@34179 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:22:01 +00:00
hyatt%netscape.com
6875784258 Fix to ensure construct and destruct DOM events fire for popups.
git-svn-id: svn://10.0.0.236/trunk@34178 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:20:04 +00:00
hyatt%netscape.com
2996b4f2f8 Added construct and destruct events to the DOM.
git-svn-id: svn://10.0.0.236/trunk@34177 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:10:13 +00:00
hyatt%netscape.com
eab839e288 Added new events for popup construction and destruction.
git-svn-id: svn://10.0.0.236/trunk@34176 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:08:46 +00:00
sspitzer%netscape.com
5ad35122f3 move StringHash to nsMsgUtils.cpp, and use NS_MsgHashIfNecessary() in all
the ns*URI2Path() calls in the ns*Utils.cpp files to hash the file
names if necessary.
also, don't use fprintf().


git-svn-id: svn://10.0.0.236/trunk@34175 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:08:31 +00:00
hyatt%netscape.com
47f5078a7b Added support for "onconstruct" and "ondestruct" events for popups.
git-svn-id: svn://10.0.0.236/trunk@34174 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:08:16 +00:00
karnaze%netscape.com
ad3ad85b2c empty table cells ignore their background
git-svn-id: svn://10.0.0.236/trunk@34173 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 05:04:22 +00:00
rhp%netscape.com
b55af898aa a new test harness for send unsent messages (send later) interfaces
git-svn-id: svn://10.0.0.236/trunk@34172 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 04:46:08 +00:00
alecf%netscape.com
ae8cf6ee6d use attribute rather than function
git-svn-id: svn://10.0.0.236/trunk@34171 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 04:29:35 +00:00
alecf%netscape.com
6c1dae9b50 we can now use the frame directly instead of the IFRAME
git-svn-id: svn://10.0.0.236/trunk@34170 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 04:29:03 +00:00
alecf%netscape.com
5fb6d0a0bd for now, still use SetWindow whenever OpenURL is run
git-svn-id: svn://10.0.0.236/trunk@34169 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 04:28:43 +00:00
mscott%netscape.com
b055b96eb2 random changes to a non building test file =).
Bug #5633 --> more NS_WITH_SERVICE changes....I missed 2 spots last time.


git-svn-id: svn://10.0.0.236/trunk@34167 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 03:13:10 +00:00
mscott%netscape.com
758f231fff Bug #5633 --> more NS_WITH_SERVICE changes....I missed 2 spots last time.
git-svn-id: svn://10.0.0.236/trunk@34166 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 03:09:13 +00:00
blizzard%redhat.com
52eeaca3ad port performance enhancements from gtk fonts
git-svn-id: svn://10.0.0.236/trunk@34165 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:40:24 +00:00
sspitzer%netscape.com
0ab0217597 whoops, forgot one.
git-svn-id: svn://10.0.0.236/trunk@34164 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:34:51 +00:00
sspitzer%netscape.com
11556f50d2 giant cleanup of Windows mail / news makefile.wins. properly use MODULE, and name things so that Windows and UNIX match. (a big checkin for UNIX proceeded this.)
git-svn-id: svn://10.0.0.236/trunk@34163 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:22:10 +00:00
joki%netscape.com
ee7a67a711 Adding new method to nsIDOMNSUIEvent to give event pos as range offset.
git-svn-id: svn://10.0.0.236/trunk@34162 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:19:26 +00:00
alecf%netscape.com
f67fa3a0e3 add NPL 1.1
git-svn-id: svn://10.0.0.236/trunk@34161 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:17:35 +00:00
sspitzer%netscape.com
6250b1f442 giant cleanup of UNIX mail / news Makefiles. properly use MODULE, and
name things so that Windows and UNIX match.  (a big checkin for Windows
will follow shortly.)


git-svn-id: svn://10.0.0.236/trunk@34160 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:17:24 +00:00
brendan%netscape.com
2802b8d1f6 - "varargs" counterpart to JS_ConvertArguments, JS_ConvertArgumentsVA.
- JS_PushArguments{,VA} and JS_PopArguments to convert a list of C/C++ values
  passed as actual arguments into an 'jsval *argv' on the JS stack.
- Clean up and robustify ConvertArgs test command in the js shell.


git-svn-id: svn://10.0.0.236/trunk@34159 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:15:57 +00:00
briano%netscape.com
b735e4fe2b Changed the location of libxpcombase_s.a in the list in order to fix the NetBSD build.
git-svn-id: svn://10.0.0.236/trunk@34157 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 02:01:01 +00:00
briano%netscape.com
3f79367f64 Fix for NetBSD. Eliminates spurious __.SYMDEF files when building composite static libs.
git-svn-id: svn://10.0.0.236/trunk@34156 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 01:42:51 +00:00
selmer%netscape.com
8382ad4e78 added class=push to titledbuttons
git-svn-id: svn://10.0.0.236/trunk@34155 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 01:09:00 +00:00
alecf%netscape.com
4f4f487b50 load the messenger start page from the onload handler rather than the src= attribute of the iframe
git-svn-id: svn://10.0.0.236/trunk@34154 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:59:47 +00:00
alecf%netscape.com
996fb0ff93 add mozilla license, rename OnLoad/etc to OnLoadMessenger/etc
git-svn-id: svn://10.0.0.236/trunk@34153 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:59:02 +00:00
slamm%netscape.com
2bd0f48f17 More work on expand/collapse.
git-svn-id: svn://10.0.0.236/trunk@34152 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:58:34 +00:00
slamm%netscape.com
be4312aefa miscellaneous styles
git-svn-id: svn://10.0.0.236/trunk@34151 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:57:59 +00:00
slamm%netscape.com
0ef8a75d53 Set background to white
git-svn-id: svn://10.0.0.236/trunk@34150 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:57:15 +00:00
slamm%netscape.com
4a1ccd2148 clean-up whitespace.
git-svn-id: svn://10.0.0.236/trunk@34149 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:56:51 +00:00
slamm%netscape.com
08e15ec90e Use a pref to remember open close state between sessions.
git-svn-id: svn://10.0.0.236/trunk@34148 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:56:06 +00:00
waldemar%netscape.com
348f792fe4 Fixed several semantic errors. Added (?= and (?!.
git-svn-id: svn://10.0.0.236/trunk@34147 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:45:49 +00:00
waldemar%netscape.com
3fd19af552 Added statement showing number of grammar states
git-svn-id: svn://10.0.0.236/trunk@34146 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:44:52 +00:00
briano%netscape.com
2516a94415 Automated update
git-svn-id: svn://10.0.0.236/trunk@34145 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:44:51 +00:00
mcafee%netscape.com
db5735ae10 Changes for tk=xlib build. Thanks to Jeremy Lea for the patch.
git-svn-id: svn://10.0.0.236/trunk@34144 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:43:54 +00:00
selmer%netscape.com
301ec72ea4 Added pm.xul, pm.css
git-svn-id: svn://10.0.0.236/trunk@34143 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:37:53 +00:00
jefft%netscape.com
c8ba3f2ab6 call Release() instead of NS_RELEASE(this)
git-svn-id: svn://10.0.0.236/trunk@34142 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:32:18 +00:00
selmer%netscape.com
377cf6aa97 Move new prof mgr stuff into res
git-svn-id: svn://10.0.0.236/trunk@34141 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:31:14 +00:00
rickg%netscape.com
66dc68d42a fixed bug 7713
git-svn-id: svn://10.0.0.236/trunk@34140 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:30:26 +00:00
selmer%netscape.com
2c0ad92351 New prof mgr using trees
git-svn-id: svn://10.0.0.236/trunk@34139 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:30:00 +00:00
sfraser%netscape.com
b0fefb46e4 Fix for bug 7479; use unsigned char to avoid sign extension when converting to wide string. r rickg.
git-svn-id: svn://10.0.0.236/trunk@34138 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:28:47 +00:00
jefft%netscape.com
5c3f886035 clean up - get rid of FindMessenger() & SetWindow() calls; fixed Move/CopyMesseages not working for POP3 mail folders; implemented Close() & OnUnload() method
git-svn-id: svn://10.0.0.236/trunk@34137 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:26:29 +00:00
ftang%netscape.com
076c114235 remove accidental check in
git-svn-id: svn://10.0.0.236/trunk@34136 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:23:48 +00:00
jefft%netscape.com
723b023418 added Close() & OnUnload() method
git-svn-id: svn://10.0.0.236/trunk@34135 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:23:03 +00:00
ftang%netscape.com
b573de271f backout rulebrk.c
git-svn-id: svn://10.0.0.236/trunk@34134 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:21:47 +00:00
briano%netscape.com
0f0c501180 SunOS 4.x doesn't have libsocket either.
git-svn-id: svn://10.0.0.236/trunk@34132 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:15:02 +00:00
mscott%netscape.com
7f7953d882 LoadUrl signature takes a display consumer
git-svn-id: svn://10.0.0.236/trunk@34131 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:02:27 +00:00
akkana%netscape.com
89a8428f49 call Init on the document encoder
git-svn-id: svn://10.0.0.236/trunk@34130 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:02:25 +00:00
akkana%netscape.com
ee09a04094 Add Init method to pass in the document and mime type
git-svn-id: svn://10.0.0.236/trunk@34129 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:01:55 +00:00
mscott%netscape.com
f042904d94 Unification of LoadUrl signature to remove some warnings on Linux & Mac. LoadUrl signature takes a display consumer.
git-svn-id: svn://10.0.0.236/trunk@34128 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:01:54 +00:00
mscott%netscape.com
c383a155a9 Unification of LoadUrl signature to remove some warnings on Linux & Mac. LoadUrl signature takes a display consumer
git-svn-id: svn://10.0.0.236/trunk@34127 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-08 00:01:27 +00:00
ftang%netscape.com
d0d7894082 add JIS converters
git-svn-id: svn://10.0.0.236/trunk@34126 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:58:39 +00:00
waterson%netscape.com
e780123ea3 Added what's related panel; moved bookmarks panel to the bottom.
git-svn-id: svn://10.0.0.236/trunk@34125 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:57:39 +00:00
waterson%netscape.com
3a81fef8e2 Hook up link clicking; make separators into HTML HRs instead of hyphens.
git-svn-id: svn://10.0.0.236/trunk@34124 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:53:41 +00:00
slamm%netscape.com
5d17f62fe7 Put real link on the comment star for those people that do not use JavaScript.
git-svn-id: svn://10.0.0.236/trunk@34123 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:49:37 +00:00
leaf%mozilla.org
9388a02a0d moving SmokeTestLinux-1.pl to smoke.pl
git-svn-id: svn://10.0.0.236/trunk@34122 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:47:16 +00:00
waterson%netscape.com
f178c9ddac Initial revision.
git-svn-id: svn://10.0.0.236/trunk@34121 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:22:30 +00:00
alecf%netscape.com
5a774d6b96 fix bustage - getAccounts -> GetAccounts
git-svn-id: svn://10.0.0.236/trunk@34120 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:14:20 +00:00
briano%netscape.com
47382f98c9 Added support for QNX Neutrino.
git-svn-id: svn://10.0.0.236/trunk@34119 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:08:13 +00:00
alla%lysator.liu.se
80ce270063 First shot at streaming html or xml data to the widget.
Try it out.
I've not updated to the tip yet, so i hope it works.


git-svn-id: svn://10.0.0.236/trunk@34118 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 23:00:10 +00:00
alecf%netscape.com
1b96bb936c new arrayDescribe() to describe() all elements of an array
git-svn-id: svn://10.0.0.236/trunk@34117 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:53:34 +00:00
alecf%netscape.com
8c78a4eed4 implement GetIdentities
git-svn-id: svn://10.0.0.236/trunk@34116 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:50:46 +00:00
despotdaemon%netscape.com
87e04c2984 Pseudo-automatic update of changes made by edburns@acm.org.
git-svn-id: svn://10.0.0.236/trunk@34115 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:49:49 +00:00
kmcclusk%netscape.com
dc924d2084 Added code to nsFontMetricsGTK to cache the width of a single space.
Modifed nsRenderingContextGTK::GetWidth to detect when a single space
is passed in and pass back the cached value, rather than re-measuring
a space.


git-svn-id: svn://10.0.0.236/trunk@34114 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:48:19 +00:00
warren%netscape.com
bbf3618837 Added nsIBufferOutputStream.idl
git-svn-id: svn://10.0.0.236/trunk@34113 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:47:55 +00:00
mscott%netscape.com
efb72eb889 Unification of LoadUrl signature to remove some warnings on Linux & Mac. (this is just the first step).
git-svn-id: svn://10.0.0.236/trunk@34110 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:32:10 +00:00
mscott%netscape.com
5083ca5b7e Unification of LoadUrl signature to remove some warnings on Linux & Mac. (this is just the first step).
ParseURL returns a nsresult instead of a PRInt32.


git-svn-id: svn://10.0.0.236/trunk@34109 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:31:37 +00:00
rogerl%netscape.com
ccf097f432 Fixed bug #7703, typeof<var> wasn't referencing activation frame vars
correctly.


git-svn-id: svn://10.0.0.236/trunk@34108 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:29:41 +00:00
bsharma%netscape.com
026dcd1dcf adding the smoketest scripts
git-svn-id: svn://10.0.0.236/trunk@34107 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:29:38 +00:00
waterson%netscape.com
36fef04410 Add SiteMap icon and relate-panel style sheet. Make code smarter so that it only fetches related links when the RL folder is open.
git-svn-id: svn://10.0.0.236/trunk@34106 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:21:53 +00:00
warren%netscape.com
c3f666b33c obsoleting files
git-svn-id: svn://10.0.0.236/trunk@34105 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:19:20 +00:00
warren%netscape.com
faf27a433b Removed nsITransport.
git-svn-id: svn://10.0.0.236/trunk@34104 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:12:19 +00:00
briano%netscape.com
08451f9027 Yet another case of C++ comments in a C file....
git-svn-id: svn://10.0.0.236/trunk@34103 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:11:18 +00:00
alecf%netscape.com
d41b6f6748 add more useful dumps of account information
git-svn-id: svn://10.0.0.236/trunk@34102 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:08:50 +00:00
gagan%netscape.com
1a3eda5744 Adding Makefile.in for Linux. Testing for Andreas.
git-svn-id: svn://10.0.0.236/trunk@34101 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:07:49 +00:00
alecf%netscape.com
8e024fa8f0 add account manager to tests
git-svn-id: svn://10.0.0.236/trunk@34100 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:06:10 +00:00
gagan%netscape.com
c52025ea91 Adding Makefile.in. Testing for Andreas.
git-svn-id: svn://10.0.0.236/trunk@34099 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:05:44 +00:00
gagan%netscape.com
9ab568f58d First checkin for Makefile.in. Testing for Andreas.
git-svn-id: svn://10.0.0.236/trunk@34098 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:05:17 +00:00
warren%netscape.com
25b15817f7 Updated for file name changes.
git-svn-id: svn://10.0.0.236/trunk@34097 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:04:19 +00:00
waldemar%netscape.com
57a8f8ffc6 Simplified grammar by using lookahead constraints. Fixed \dd bugs. Made all errors occur at pattern compile time.
git-svn-id: svn://10.0.0.236/trunk@34096 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 22:00:09 +00:00
waldemar%netscape.com
bed46b51e0 Simplified grammar by using lookahead constraints.
git-svn-id: svn://10.0.0.236/trunk@34095 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:58:24 +00:00
waldemar%netscape.com
e5731ff736 Simplified grammar by using lookahead constraints. Removed requirement for an underscore before unit name.
git-svn-id: svn://10.0.0.236/trunk@34094 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:57:29 +00:00
waterson%netscape.com
ebc1f7436a Initial revision.
git-svn-id: svn://10.0.0.236/trunk@34093 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:53:50 +00:00
alecf%netscape.com
b3dd090806 fix uninitialized variable
git-svn-id: svn://10.0.0.236/trunk@34092 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:48:57 +00:00
leaf%mozilla.org
00a856b938 adding blank file per tina ornduff
git-svn-id: svn://10.0.0.236/trunk@34091 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:47:13 +00:00
ftang%netscape.com
0aee839144 add FillInfo
git-svn-id: svn://10.0.0.236/trunk@34090 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:37:45 +00:00
ftang%netscape.com
a0a58671d0 add IS_REPRESENTABLE test inside #ifdef
git-svn-id: svn://10.0.0.236/trunk@34089 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:36:43 +00:00
chuang%netscape.com
b621a96d91 fix crash on starting address book
git-svn-id: svn://10.0.0.236/trunk@34088 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:33:42 +00:00
warren%netscape.com
a42da99b5a New IDL interfaces.
git-svn-id: svn://10.0.0.236/trunk@34087 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:33:30 +00:00
mscott%netscape.com
fae7d2944e Bug #7715 --> set the character set for the messenger webshell to be UTF-8.
git-svn-id: svn://10.0.0.236/trunk@34086 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:31:53 +00:00
akkana%netscape.com
1039d688ae Track change in editor API
git-svn-id: svn://10.0.0.236/trunk@34085 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:31:18 +00:00
mscott%netscape.com
48f0a728ec remove IGNORE_MANIFEST and remove LCFLAGS since we don't have any.
git-svn-id: svn://10.0.0.236/trunk@34084 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:28:45 +00:00
mscott%netscape.com
8fd0c627d2 remove IGNORE_MANIFEST.
git-svn-id: svn://10.0.0.236/trunk@34083 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:28:20 +00:00
kmcclusk%netscape.com
4db1f54f79 Modified nsWebShell::GetLinkState to used a cached GlobalHistory service rather
than getting and releasing the service each time GetLinkState is called. Getting
the global history service shows up as a big hit during profiling because GetLinkState
gets called each time a link is encountered while resolving style contexts.


git-svn-id: svn://10.0.0.236/trunk@34082 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:26:10 +00:00
despotdaemon%netscape.com
338852fb20 Pseudo-automatic update of changes made by bsharma@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@34081 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:23:39 +00:00
despotdaemon%netscape.com
8ef931c119 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@34080 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:21:58 +00:00
waterson%netscape.com
b62d476704 Add xpfe/components/related directory to the build.
git-svn-id: svn://10.0.0.236/trunk@34079 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:19:22 +00:00
mscott%netscape.com
3352821fe0 remove IGNORE_MANIFEST and remove LCFLAGS since we don't have any.
git-svn-id: svn://10.0.0.236/trunk@34078 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:19:08 +00:00
karnaze%netscape.com
fac683ae77 removed background rules for table elements
git-svn-id: svn://10.0.0.236/trunk@34077 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:19:05 +00:00
kmcclusk%netscape.com
ca984e0334 Modified TextStyle constructor to reuse the TextFrame's mFont rather than creating
a new font. The creation of the new font show up during profiling as a big hit.


git-svn-id: svn://10.0.0.236/trunk@34076 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:18:51 +00:00
waterson%netscape.com
f9f143eadd Add related directory to the build.
git-svn-id: svn://10.0.0.236/trunk@34075 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:18:44 +00:00
waterson%netscape.com
8b0109a555 Added xpfe/components/related to the build.
git-svn-id: svn://10.0.0.236/trunk@34074 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:17:23 +00:00
mscott%netscape.com
3c88fc0d90 remove obsolete LINCS line.
git-svn-id: svn://10.0.0.236/trunk@34073 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:16:13 +00:00
waterson%netscape.com
c553b89023 Add NetworkModule.shlb to opt build.
git-svn-id: svn://10.0.0.236/trunk@34072 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:16:02 +00:00
karnaze%netscape.com
2c810b0c31 background regression test
git-svn-id: svn://10.0.0.236/trunk@34071 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:14:19 +00:00
akkana%netscape.com
0e9a5c4958 Track change to OutputText/OutputHTML interfaces; Get rid of warnings
git-svn-id: svn://10.0.0.236/trunk@34070 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:13:59 +00:00
akkana%netscape.com
d0e25f4a05 Get rid of overloaded class names, to eliminate warnings
git-svn-id: svn://10.0.0.236/trunk@34069 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:12:01 +00:00
mscott%netscape.com
25b7bf1a12 remove IGNORE_MANIFEST and remove LCFLAGS since we don't have any.
git-svn-id: svn://10.0.0.236/trunk@34068 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:11:16 +00:00
karnaze%netscape.com
0e237e981a support for backgrounds on table elements in both compatibility modes
git-svn-id: svn://10.0.0.236/trunk@34067 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:10:25 +00:00
karnaze%netscape.com
139fc10e3b new style rule for table elements inheriting backgrounds in Nav Quirks mode
git-svn-id: svn://10.0.0.236/trunk@34066 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:09:07 +00:00
putterman%netscape.com
5a0a55c231 Remove extra PR_FREEIF.
git-svn-id: svn://10.0.0.236/trunk@34065 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:05:13 +00:00
mscott%netscape.com
55816e4184 remove IGNORE_MANIFEST
git-svn-id: svn://10.0.0.236/trunk@34064 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 21:04:04 +00:00
hyatt%netscape.com
82a9263afd Notification of a change in selection.
git-svn-id: svn://10.0.0.236/trunk@34063 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:57:34 +00:00
putterman%netscape.com
c7c8ab9bed Fix some memory leaks.
git-svn-id: svn://10.0.0.236/trunk@34062 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:53:22 +00:00
mscott%netscape.com
9af559ad0a remove IGNORE_MANIFEST and remove LCFLAGS since we don't have any.
git-svn-id: svn://10.0.0.236/trunk@34061 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:43:50 +00:00
pinkerton%netscape.com
2c58808b6f changes so that transferable no longer takes ownership of dataflavor string, but correctly copies it. fix some memory leaks as well.
git-svn-id: svn://10.0.0.236/trunk@34060 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:43:23 +00:00
ftang%netscape.com
00efc527ff fix typo
git-svn-id: svn://10.0.0.236/trunk@34059 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:40:53 +00:00
chuang%netscape.com
5e2e8cbcfe Fix bustage on Windows
git-svn-id: svn://10.0.0.236/trunk@34058 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:32:49 +00:00
ftang%netscape.com
36896282b6 add FillInfo
git-svn-id: svn://10.0.0.236/trunk@34057 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:32:15 +00:00
ftang%netscape.com
52924b32c6 add nsICharRepresentable.h and change nsIUnicodeEncodeHelper.h
git-svn-id: svn://10.0.0.236/trunk@34056 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:29:45 +00:00
rhp%netscape.com
d24259325f Change for dialog feedback
git-svn-id: svn://10.0.0.236/trunk@34055 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:29:09 +00:00
ftang%netscape.com
c59aca54d4 add nsICharRepresentable.h
git-svn-id: svn://10.0.0.236/trunk@34054 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:29:02 +00:00
ftang%netscape.com
57252d3f7d add rulebrk.c
git-svn-id: svn://10.0.0.236/trunk@34053 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:25:32 +00:00
rhp%netscape.com
b0088c7a3d update for test program
git-svn-id: svn://10.0.0.236/trunk@34052 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:25:12 +00:00
sspitzer%netscape.com
e1bc1dbfa4 fix runtime bustage. GetWidth nowhere to be found yet.
git-svn-id: svn://10.0.0.236/trunk@34051 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:23:08 +00:00
ftang%netscape.com
a28104d0d4 check in thai rule-base line breaker (temp untill the real one). Thanks Samphan Raruenrom
git-svn-id: svn://10.0.0.236/trunk@34050 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:22:11 +00:00
sspitzer%netscape.com
5f662f4e8f fix warnings (comments within comments). use nsAutoString correctly.
git-svn-id: svn://10.0.0.236/trunk@34049 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:17:47 +00:00
ducarroz%netscape.com
2f28b74565 fix sprintf problem, Mac only.
git-svn-id: svn://10.0.0.236/trunk@34048 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:13:42 +00:00
rhp%netscape.com
8c3f416e7e fix for mac
git-svn-id: svn://10.0.0.236/trunk@34047 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:09:27 +00:00
rpotts%netscape.com
1830a32784 Added unix support for processing PLEvents...
git-svn-id: svn://10.0.0.236/trunk@34046 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:06:41 +00:00
waterson%netscape.com
442e9b2234 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@34045 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:05:06 +00:00
sspitzer%netscape.com
203780b77f renaming nsMsgUtils.*, this was already being used in mozilla/mailnews/base/src
git-svn-id: svn://10.0.0.236/trunk@34044 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:03:40 +00:00
ducarroz%netscape.com
174abbc2ea add nsMsgCompUtils.cpp
git-svn-id: svn://10.0.0.236/trunk@34043 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:03:34 +00:00
waterson%netscape.com
74e401982e Fix Unicode string initializer.
git-svn-id: svn://10.0.0.236/trunk@34042 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 20:00:43 +00:00
waterson%netscape.com
4ea215fa42 Remove related links data source. Hook up generic observer mechanism to document start- and end-load.
git-svn-id: svn://10.0.0.236/trunk@34041 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:55:45 +00:00
waterson%netscape.com
b5925d2eda Remove related links datasource. Moved to xpfe/components/related.
git-svn-id: svn://10.0.0.236/trunk@34040 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:54:36 +00:00
waterson%netscape.com
598be1c1e9 Remove related links data source. Moved to xpfe/components/related.
git-svn-id: svn://10.0.0.236/trunk@34039 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:53:44 +00:00
sspitzer%netscape.com
a8d3fccb73 #if 0 unused code to remove warnings on Linux.
git-svn-id: svn://10.0.0.236/trunk@34038 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:52:17 +00:00
sspitzer%netscape.com
8d9a0d7fd5 fix warnings by returning the right thing.
git-svn-id: svn://10.0.0.236/trunk@34037 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:52:04 +00:00
rhp%netscape.com
2a88383a43 Fix checkin
git-svn-id: svn://10.0.0.236/trunk@34036 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:52:01 +00:00
sspitzer%netscape.com
4dde4f42d9 reorder to remove warnings
git-svn-id: svn://10.0.0.236/trunk@34035 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:51:32 +00:00
rpotts%netscape.com
66b884a0c3 Fixed up header parsing, so that if OnDataAvailable(...) is called more than once we remember that headers have been processed... Made a temp change to the stream being passed out of OnDataAvailable(...). It was inStr which was *never* initialized... Right now it is passing out the original stream (which is wrong I think) but it doesn't crash :-)
git-svn-id: svn://10.0.0.236/trunk@34034 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:51:01 +00:00
akkana%netscape.com
3db80acc76 Split document encoder's Encode() method into a stream method and a string method
git-svn-id: svn://10.0.0.236/trunk@34033 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:32:36 +00:00
sspitzer%netscape.com
065441374b fix build bustage. rhp says we need this now.
git-svn-id: svn://10.0.0.236/trunk@34032 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:26:48 +00:00
rods%netscape.com
fa7049446f Removed ddcomm.h, and put the macro SET_FORMATETC into nsClipboard.h, and then removed ddcomm.h from the src
git-svn-id: svn://10.0.0.236/trunk@34031 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:26:45 +00:00
ssu%netscape.com
549733fe01 changed function used to retrieve default package folder to VR_GetDefaultDirectory() from VR_GetPath()
git-svn-id: svn://10.0.0.236/trunk@34029 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:25:09 +00:00
rods%netscape.com
561c4e00dd added cast to remove warning.
git-svn-id: svn://10.0.0.236/trunk@34028 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:24:36 +00:00
chuang%netscape.com
99cfd398be convert to PR types and use nsresult.
git-svn-id: svn://10.0.0.236/trunk@34027 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:24:30 +00:00
sspitzer%netscape.com
b2f799d4e3 fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@34026 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:23:07 +00:00
waterson%netscape.com
0b6ab279be Add xpfe/components/related.
git-svn-id: svn://10.0.0.236/trunk@34025 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:22:35 +00:00
sspitzer%netscape.com
221379e1d0 fix build bustage. case sensitivity problem.
git-svn-id: svn://10.0.0.236/trunk@34024 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:22:21 +00:00
waterson%netscape.com
0a3b777cb2 Unix build.
git-svn-id: svn://10.0.0.236/trunk@34023 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:22:18 +00:00
law%netscape.com
48188d5670 "First step towards exorcism of nsIXULWindowCallbacks"
git-svn-id: svn://10.0.0.236/trunk@34022 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:21:33 +00:00
rhp%netscape.com
e338cd4f07 More fixe
git-svn-id: svn://10.0.0.236/trunk@34021 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:18:34 +00:00
rhp%netscape.com
01b82f5581 Dumb typo
git-svn-id: svn://10.0.0.236/trunk@34020 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:17:23 +00:00
waterson%netscape.com
cdec11bd06 Remove manifest.mn.
git-svn-id: svn://10.0.0.236/trunk@34019 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:16:56 +00:00
rhp%netscape.com
7ac8a438cc Fixes for recent checkins
git-svn-id: svn://10.0.0.236/trunk@34018 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:14:45 +00:00
waterson%netscape.com
d137a45808 Remove related links data source: moved to xpfe/components.
git-svn-id: svn://10.0.0.236/trunk@34017 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:14:22 +00:00
rhp%netscape.com
5141b68613 Transition header file
git-svn-id: svn://10.0.0.236/trunk@34016 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 19:12:21 +00:00
rhp%netscape.com
cba37f6bba Changes for composition BE
git-svn-id: svn://10.0.0.236/trunk@34015 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:58:27 +00:00
rhp%netscape.com
6a33d730fe Changes for mail composition
git-svn-id: svn://10.0.0.236/trunk@34014 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:55:28 +00:00
rhp%netscape.com
8ab82a929a Adding files to Makefiles
git-svn-id: svn://10.0.0.236/trunk@34013 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:54:37 +00:00
rhp%netscape.com
692eec7521 More composer BE changes
git-svn-id: svn://10.0.0.236/trunk@34012 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:54:18 +00:00
rhp%netscape.com
64346769b5 New back end composition functionality
git-svn-id: svn://10.0.0.236/trunk@34011 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:53:47 +00:00
mcmullen%netscape.com
dc019f45e3 Fix an assert (and a bug) in some XP_MAC code for importing IE favorites. The wrong stream was being tested for openness, and the parser was being given a nonexistent stream to parse, and asserting.
git-svn-id: svn://10.0.0.236/trunk@34010 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:53:29 +00:00
rhp%netscape.com
1b6168d675 added files: mozilla/mailnews/compose/src/nsMsgZapIt.cpp, mozilla/mailnews/compose/src/nsMsgCreate.cpp, mozilla/mailnews/compose/src/nsMsgCopy.cpp, mozilla/mailnews/compose/src/nsMsgSendLater.cpp, mozilla/mailnews/compose/src/nsMsgDeliveryListener.cpp, mozilla/mailnews/compose/src/nsMsgComposeStringBundle.cpp, mozilla/mailnews/compose/src/nsMsgEncoders.cpp, mozilla/mailnews/compose/src/nsMsgI18N.cpp, mozilla/mailnews/compose/src/nsMsgAttachmentHandler.cpp, mozilla/mailnews/compose/src/nsMsgPrompts.cpp
git-svn-id: svn://10.0.0.236/trunk@34009 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:53:19 +00:00
hangas%netscape.com
4933ed2e42 Added AddressBook.js
git-svn-id: svn://10.0.0.236/trunk@34008 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:52:09 +00:00
rhp%netscape.com
a0cb0dc40c removed files: mozilla/mailnews/compose/src/nsMsgCompose.cpp
git-svn-id: svn://10.0.0.236/trunk@34007 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:51:32 +00:00
cata%netscape.com
a34435a611 UTF-7 tests
git-svn-id: svn://10.0.0.236/trunk@34006 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:51:13 +00:00
hangas%netscape.com
b8ecb4da9e Cleanup xul
git-svn-id: svn://10.0.0.236/trunk@34005 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:50:50 +00:00
cata%netscape.com
b4deb35e6d UTF-7 converters
git-svn-id: svn://10.0.0.236/trunk@34004 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:50:44 +00:00
hangas%netscape.com
9e71f526a3 Added code to update the cardview pane with data from datasource
git-svn-id: svn://10.0.0.236/trunk@34003 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:50:20 +00:00
cata%netscape.com
85396d1183 added files: mozilla/intl/uconv/ucvlatin/nsUnicodeToUTF7.cpp, mozilla/intl/uconv/ucvlatin/nsUTF7ToUnicode.cpp
git-svn-id: svn://10.0.0.236/trunk@34002 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:49:38 +00:00
cata%netscape.com
e4b4799952 more work on UTF-7 converters
git-svn-id: svn://10.0.0.236/trunk@34001 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:49:12 +00:00
rhp%netscape.com
90a8e39b5a New compose BE functionality
git-svn-id: svn://10.0.0.236/trunk@34000 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:48:32 +00:00
morse%netscape.com
ab0dc7362f get rid of useDialogs pref
git-svn-id: svn://10.0.0.236/trunk@33999 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:47:07 +00:00
rhp%netscape.com
50d401de12 Cleanup of compose back end
git-svn-id: svn://10.0.0.236/trunk@33998 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:46:14 +00:00
jdunn%netscape.com
315bf0adb5 need to specify that the base classes are public (since some native
compilers default unspecified ones as private)


git-svn-id: svn://10.0.0.236/trunk@33997 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:37:55 +00:00
norris%netscape.com
fff5b7216c Clean up formatting.
git-svn-id: svn://10.0.0.236/trunk@33996 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:14:15 +00:00
norris%netscape.com
0f1b29664f Optimization: avoid allocating a Vector object for every LiveConnect call.
git-svn-id: svn://10.0.0.236/trunk@33995 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 18:13:15 +00:00
andreas.otte%primus-online.de
9bdfc81c1d correct two typos
git-svn-id: svn://10.0.0.236/trunk@33994 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 16:56:36 +00:00
jdunn%netscape.com
c2731130a5 backing out my illegal checkin that i did when the tree was closed
git-svn-id: svn://10.0.0.236/trunk@33993 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 16:27:57 +00:00
jdunn%netscape.com
09ef6f1b44 specifying that the base classes are indeed public (since some native
compilers default unspecified ones as private)


git-svn-id: svn://10.0.0.236/trunk@33992 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 16:21:03 +00:00
blizzard%redhat.com
1d5aa63016 remove widgets that don't exist anymore. THIS IS NOT PART OF THE BUILD.
git-svn-id: svn://10.0.0.236/trunk@33991 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 15:32:17 +00:00
waterson%netscape.com
6726babcc9 Initial revision. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@33990 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 10:08:47 +00:00
waterson%netscape.com
3da108641d Initial revision. Not yet in the build.
git-svn-id: svn://10.0.0.236/trunk@33989 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 09:56:34 +00:00
mscott%netscape.com
b4cf41d822 Don't build dll until the install phase, not the lib phase.
git-svn-id: svn://10.0.0.236/trunk@33986 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 08:22:54 +00:00
mscott%netscape.com
d9ddfd9200 Fix win32 build breakage (*I think*) by not trying to generate the dll until the install
phase and not the lib phase.


git-svn-id: svn://10.0.0.236/trunk@33985 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 08:13:14 +00:00
mscott%netscape.com
18edb794e7 Part of makefile clean up for windows. Changes include removing old cruft, giving each
component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.
Also removed extraneous CPP_SRCS info.


git-svn-id: svn://10.0.0.236/trunk@33984 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 07:16:53 +00:00
waterson%netscape.com
55c23b348b Add Equals() method to Window class to support comparison of XPConnect-wrapped nsIDOMWindow and idlc Window.
git-svn-id: svn://10.0.0.236/trunk@33983 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 07:16:01 +00:00
rpotts%netscape.com
3b85ba970a Fixed up uninitialized variable... Oops
git-svn-id: svn://10.0.0.236/trunk@33982 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 07:12:56 +00:00
mscott%netscape.com
5a78a0e102 Part of makefile clean up for windows. Changes include removing old cruft, giving each
component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.
Also removed extraneous CPP_SRCS info.


git-svn-id: svn://10.0.0.236/trunk@33981 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 07:03:50 +00:00
mscott%netscape.com
170ca8965c Part of makefile clean up for windows. Changes include removing old cruft, giving each
component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.
Also removed extraneous CPP_SRCS info.


git-svn-id: svn://10.0.0.236/trunk@33980 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:52:45 +00:00
mscott%netscape.com
8ed10f0200 Build mork before msgdb.
git-svn-id: svn://10.0.0.236/trunk@33979 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:45:56 +00:00
mscott%netscape.com
6791973ab0 Part of makefile clean up for windows. Changes include removing old cruft, giving each
component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.


git-svn-id: svn://10.0.0.236/trunk@33978 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:41:51 +00:00
rpotts%netscape.com
f1c0e8b288 Fixed up compiler warning on Linux...
git-svn-id: svn://10.0.0.236/trunk@33977 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:30:59 +00:00
rpotts%netscape.com
6416713fa5 Added a new file - nsSocketTransportStreams.cpp to the build...
git-svn-id: svn://10.0.0.236/trunk@33976 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:28:07 +00:00
rpotts%netscape.com
996b513ca8 Work on blocking streams...
git-svn-id: svn://10.0.0.236/trunk@33975 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 06:27:34 +00:00
rjc%netscape.com
2431059cb7 Get context popup menus work on Mac by checking if the CTRL key is down (just like how the Mac's Finder works).
git-svn-id: svn://10.0.0.236/trunk@33974 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 05:43:09 +00:00
jband%netscape.com
34ce93323c allow for mapping both directions between NULL and JSVAL_NULL for all pointer type objects (string, wstring, nsid, as well as interface pointers
git-svn-id: svn://10.0.0.236/trunk@33973 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 05:09:38 +00:00
alecf%netscape.com
d5365cd6f1 XPConnect doesn't seem to like returning NULL from string accessors
git-svn-id: svn://10.0.0.236/trunk@33972 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 04:29:18 +00:00
sdagley%netscape.com
07e7d53b83 Fix bug #6507. PR_fprintf() with PR_GetSpecialFD(PR_StandardOutput) or PR_GetSpecialFD(PR_StandardError) as the file argument now works on the Mac with output directed to the SIOUX stdout console window.
git-svn-id: svn://10.0.0.236/trunk@33970 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 02:37:28 +00:00
waterson%netscape.com
96e56379e8 Add nsService constructor that allows you to get a service by ProgID using the statically linked nsServiceManager API.
git-svn-id: svn://10.0.0.236/trunk@33969 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-07 02:24:29 +00:00
alecf%netscape.com
241cd05c79 build test
git-svn-id: svn://10.0.0.236/trunk@33968 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 22:38:34 +00:00
alecf%netscape.com
52bf4523cf ignore makefile
git-svn-id: svn://10.0.0.236/trunk@33967 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 22:37:35 +00:00
alecf%netscape.com
29acda2955 add some sample JavaScript tests
git-svn-id: svn://10.0.0.236/trunk@33966 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 22:37:16 +00:00
morse%netscape.com
0615585206 fixed some ifdefs that were backwards
git-svn-id: svn://10.0.0.236/trunk@33965 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 20:40:11 +00:00
morse%netscape.com
4a327f0a87 added ifdefs for places in which the i18n localizations don't work
git-svn-id: svn://10.0.0.236/trunk@33963 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 19:50:06 +00:00
morse%netscape.com
aa175cb44e added real dialogs
git-svn-id: svn://10.0.0.236/trunk@33962 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 18:55:46 +00:00
alecf%netscape.com
4b2b40f6f2 make a little more robust so that we can easily call this from JS
git-svn-id: svn://10.0.0.236/trunk@33961 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 18:46:03 +00:00
mscott%netscape.com
3cb5b24a38 Updates to include the fact that Initialialzing the protocol instance no longer requires the
transport object to be created. It does it for you. These changes are related to my
nsMsgProtocol changes.


git-svn-id: svn://10.0.0.236/trunk@33960 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 18:39:56 +00:00
mscott%netscape.com
360e027673 Revamp of news protocol to use my new nsMsgProtocol base class. This caused the signature of
several functions to change.

I also added some code to properly kill the network connection after we have finished
a nntp command.


git-svn-id: svn://10.0.0.236/trunk@33959 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 18:38:43 +00:00
morse%netscape.com
f644f996e5 get initial value for checkbox, save checkbox value when CANCEL is pressed
git-svn-id: svn://10.0.0.236/trunk@33958 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 15:58:08 +00:00
rhp%netscape.com
6189743d0d forgot to use the propertyURL for as the resource URL
git-svn-id: svn://10.0.0.236/trunk@33957 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 13:28:30 +00:00
srinivas%netscape.com
9ddc597a3d QNX port; checkin for briano@netscape.com. Bug #7276.
git-svn-id: svn://10.0.0.236/trunk@33955 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 12:10:45 +00:00
andreas.otte%primus-online.de
833571b3c6 write \0 not on but after the CRLF on Headers
git-svn-id: svn://10.0.0.236/trunk@33954 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 09:40:56 +00:00
andreas.otte%primus-online.de
7776fe2d54 variable rv of type nsresult was not initialized in CreateInstance and in case of creating a StandardUrl with no Init in CreateInstance (and using rv) making it random to the calling function if creating the Url succeeded. This is what I thought was a namespace problem between necko and old netlib.
git-svn-id: svn://10.0.0.236/trunk@33953 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 09:16:49 +00:00
mccabe%netscape.com
68bdc82b30 Fix xpidl-generated header and .xpt dependency on outdated IDL_COMPLE to the brandfangled new XPIDL_COMPILE symbol. Looks like I missed it when I made the change...
Thanks to Jeremy Lea <reg@shale.csir.co.za> for catching this.


git-svn-id: svn://10.0.0.236/trunk@33952 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:47:42 +00:00
mccabe%netscape.com
7db0124e7d Change the emacs /* Mode: */ comment for many .cpp files from C to C++. A .js file snuck in there too, but I like seeing my .js in c++-mode anyway...
git-svn-id: svn://10.0.0.236/trunk@33951 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:25:58 +00:00
mccabe%netscape.com
10951415b5 Patches courtesy Jeremy Lea <reg@shale.csir.co.za>
To wit:

Attached are a couple of small fixes for building in the js/ subdir.

These are for FreeBSD-CURRENT, and for building in a seperate OBJDIR.

The FreeBSD one is a quick and dirty.  The real fix is pobably just to
use OS_LDFLAGS as defined by configure...


git-svn-id: svn://10.0.0.236/trunk@33950 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 04:10:33 +00:00
saari%netscape.com
3f12948197 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33949 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 01:26:05 +00:00
saari%netscape.com
33104aa60c adding files for keybinding. Not yet in the build
git-svn-id: svn://10.0.0.236/trunk@33948 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 01:25:40 +00:00
saari%netscape.com
9658d499fd Mac only change. Fix bug #7296
git-svn-id: svn://10.0.0.236/trunk@33947 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 01:23:56 +00:00
morse%netscape.com
f93fef3797 trying for third time to fix bustage on mac
git-svn-id: svn://10.0.0.236/trunk@33946 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 00:56:14 +00:00
morse%netscape.com
94d9b21e8d try again to fix bustage on mac
git-svn-id: svn://10.0.0.236/trunk@33945 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 00:54:59 +00:00
morse%netscape.com
8c6604fc1a fix bustage on mac
git-svn-id: svn://10.0.0.236/trunk@33944 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 00:35:20 +00:00
sspitzer%netscape.com
26139a0c99 use NS_DEFINE_CID instead of NS_DEFINE_IID.
git-svn-id: svn://10.0.0.236/trunk@33943 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 00:01:02 +00:00
sspitzer%netscape.com
b6d15f7ee8 fix warnings. use NS_WITH_SERVICE. use NS_DEFINE_CID instead of NS_DEFINE_IID. remove unnecessary static kINetSupportDialogIID
git-svn-id: svn://10.0.0.236/trunk@33942 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-06 00:00:39 +00:00
Jerry.Kirk%Nexwarecorp.com
a125e0542a - Changed include of nsWindow.h to nsWidget.h as it should have been
git-svn-id: svn://10.0.0.236/trunk@33941 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 23:57:47 +00:00
sspitzer%netscape.com
d74142409a add dialogs and alerts to the cancel article process.
git-svn-id: svn://10.0.0.236/trunk@33940 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 23:48:50 +00:00
mscott%netscape.com
57fcf65693 Add nsIMsgMailNewsUrl to the QueryInterface method.
git-svn-id: svn://10.0.0.236/trunk@33939 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 23:46:08 +00:00
sspitzer%netscape.com
2af5b8ef57 fix for #7659
git-svn-id: svn://10.0.0.236/trunk@33938 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 23:35:24 +00:00
morse%netscape.com
5d563edf7e put cookies file in the correct directory
git-svn-id: svn://10.0.0.236/trunk@33937 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 23:17:47 +00:00
mscott%netscape.com
9f8b8ae388 Load has become LoadUrl on the pop3 protocol class.
git-svn-id: svn://10.0.0.236/trunk@33936 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 22:52:15 +00:00
mscott%netscape.com
8e5f0aee4e Major revamping of the pop protocol. Themain changes were to use my new nsMsgProtocol base class for most of the core netlib interaction.
git-svn-id: svn://10.0.0.236/trunk@33935 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 22:51:46 +00:00
mscott%netscape.com
1764aff0b1 Add nsIMsgMailNewsUrl to the QI method.
git-svn-id: svn://10.0.0.236/trunk@33934 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 22:30:48 +00:00
sspitzer%netscape.com
4e4e276425 initial work to get news CANCEL working
git-svn-id: svn://10.0.0.236/trunk@33933 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 22:11:38 +00:00
sspitzer%netscape.com
60c0db5143 fix the mac, again.
git-svn-id: svn://10.0.0.236/trunk@33932 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 22:02:31 +00:00
mscott%netscape.com
f45c9da161 Make LoadUrl public and not protected.
git-svn-id: svn://10.0.0.236/trunk@33931 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 21:47:04 +00:00
sspitzer%netscape.com
6bd5d3f16d fix the mac, because it sucks.
git-svn-id: svn://10.0.0.236/trunk@33930 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 21:26:48 +00:00
av%netscape.com
d18ddd0c4c *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@33929 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:47:14 +00:00
mscott%netscape.com
fb3d63a2f9 Fix unix warning by removing unused variable.
git-svn-id: svn://10.0.0.236/trunk@33928 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:41:10 +00:00
mscott%netscape.com
62be7125a3 LoadURL is now LoadUrl on the mailbox protocol as part of the nsMsgProtocol changes.
git-svn-id: svn://10.0.0.236/trunk@33927 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:37:42 +00:00
mscott%netscape.com
ffab24e841 Major revamping of the mailbox protocol. The main changes were to use my new nsMsgProtocol base class for most of the core netlib interaction.
git-svn-id: svn://10.0.0.236/trunk@33926 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:36:58 +00:00
mscott%netscape.com
c3839f3847 Comment out text following #endif to fix unix warning.
git-svn-id: svn://10.0.0.236/trunk@33925 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:33:36 +00:00
mscott%netscape.com
db7ba0453e Link against msgcoreutil for nsMsgProtocol.
git-svn-id: svn://10.0.0.236/trunk@33924 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:29:15 +00:00
mscott%netscape.com
cd8157d67b LoadURL is now LoadUrl on the smtp protocol.
git-svn-id: svn://10.0.0.236/trunk@33923 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:28:49 +00:00
mscott%netscape.com
9ff5f77871 Major revamping of the smtp protocol. The main changes were to use my new nsMsgProtocol base class for most of the core netlib interaction. While i was here, I also fixed a leak where we weren't closing the file stream for the message we were sending. Fixed a leak that was preventing the smtp protocol instance from getting released & destroyed.
Also rewrote the protocol state methods to use nsAutoString instead of allocating buffers for the protocol commands.


git-svn-id: svn://10.0.0.236/trunk@33922 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:28:21 +00:00
mscott%netscape.com
ddcc4ce79d Add default implemenations for OnDataAvailable, OnStartBinding, OnStopBinding. Push even more functionality for loading a url up into the base class.
git-svn-id: svn://10.0.0.236/trunk@33921 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:21:27 +00:00
av%netscape.com
4f55fb6671 Hooking up events for winless plugins
git-svn-id: svn://10.0.0.236/trunk@33920 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:09:21 +00:00
av%netscape.com
9a6ec276d0 Enabling calling HandleEvent for winless plugins on Windows
git-svn-id: svn://10.0.0.236/trunk@33919 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 20:03:12 +00:00
bruce%cybersight.com
2976fa1a8a Explicitly include nsIMenuListener.h. Will be needed for some post-M7 changes that I have.
git-svn-id: svn://10.0.0.236/trunk@33918 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 12:11:22 +00:00
bruce%cybersight.com
fe17fbea9b Explicitly include nsFileSpec.h. This will be necessary for some changes coming post-M7.
git-svn-id: svn://10.0.0.236/trunk@33917 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 11:49:04 +00:00
bruce%cybersight.com
905a6365ef Tokens may not follow '#endif'. This fixes the HP-UX build.
git-svn-id: svn://10.0.0.236/trunk@33916 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 11:35:36 +00:00
bruce%cybersight.com
a534dc1ca7 Explicitly include prinrval.h here. (This will make be needed for some changes coming shortly after M7.)
git-svn-id: svn://10.0.0.236/trunk@33915 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 11:29:03 +00:00
bruce%cybersight.com
9b11f8564d Scoping problem with loop variable. Fixes OSF/1 build.
git-svn-id: svn://10.0.0.236/trunk@33914 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 11:22:11 +00:00
beard%netscape.com
56211264dc added NativeJavaConstructor.java
git-svn-id: svn://10.0.0.236/trunk@33913 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 08:20:54 +00:00
rjc%netscape.com
6ff5280451 Get true separators back in the bookmarks menu by adding a XUL template rule to check for them.
git-svn-id: svn://10.0.0.236/trunk@33912 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 03:01:54 +00:00
pierre%netscape.com
be10af10cd #3322 "javascript ONCHANGE handler failures". Added ControlChanged() in order to send NS_CONTROL_CHANGE events.
git-svn-id: svn://10.0.0.236/trunk@33911 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 03:00:28 +00:00
ssu%netscape.com
82f9a59a36 fixed bug #6719
git-svn-id: svn://10.0.0.236/trunk@33910 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:57:07 +00:00
ssu%netscape.com
74c7b8de31 fixed bug #6612
git-svn-id: svn://10.0.0.236/trunk@33909 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:52:29 +00:00
slamm%netscape.com
44915c991b who popup can use href for the layer src.
git-svn-id: svn://10.0.0.236/trunk@33908 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:50:59 +00:00
waterson%netscape.com
14c7ff9828 Remove NS_ASSERTION calls from nsService class.
git-svn-id: svn://10.0.0.236/trunk@33907 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:44:40 +00:00
briano%netscape.com
5ba7111437 Automated update
git-svn-id: svn://10.0.0.236/trunk@33906 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:35:01 +00:00
briano%netscape.com
536be0e408 Refined the ostream test.
git-svn-id: svn://10.0.0.236/trunk@33905 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:34:33 +00:00
slamm%netscape.com
27dacf0681 Try again.
git-svn-id: svn://10.0.0.236/trunk@33904 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:25:27 +00:00
slamm%netscape.com
57ed4b640d Tidy up query link.
git-svn-id: svn://10.0.0.236/trunk@33903 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:21:48 +00:00
mscott%netscape.com
3cc0fa603c If we fail to register or unregister a component, we should remember the error code and return it,
BUT we should also still try to register/unregister the rest of the components.


git-svn-id: svn://10.0.0.236/trunk@33902 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:21:20 +00:00
slamm%netscape.com
a008e57d09 Make who menu handle tinderbox links more succinctly.
git-svn-id: svn://10.0.0.236/trunk@33901 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:18:36 +00:00
waterson%netscape.com
60e65fa836 Fix makedep rule to include *all* directories that it needs to. This should improve the reliability of depend builds.
git-svn-id: svn://10.0.0.236/trunk@33900 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 02:02:10 +00:00
briano%netscape.com
f2c25e8fbc Oops, forgot to add the braces....
git-svn-id: svn://10.0.0.236/trunk@33899 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:57:35 +00:00
briano%netscape.com
b6039eca5f Turned it off The Complete Way. Now it won't try to generate an empty library.
git-svn-id: svn://10.0.0.236/trunk@33898 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:55:13 +00:00
frankm%eng.sun.com
d82f107a0a Replace *.class with ScriptRuntime.*Class; added ScriptRuntime.ClassClass
git-svn-id: svn://10.0.0.236/trunk@33897 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:48:24 +00:00
briano%netscape.com
f68bc74338 Fix for SunOS 4.x.
git-svn-id: svn://10.0.0.236/trunk@33896 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:46:10 +00:00
despotdaemon%netscape.com
a3cf1703df Pseudo-automatic update of changes made by drapeau@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@33895 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:37:02 +00:00
slamm%netscape.com
085a38f62a Fix who links for static page.
git-svn-id: svn://10.0.0.236/trunk@33894 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:23:58 +00:00
davidm%netscape.com
774f31ad1f Add dialog resource files and icons
git-svn-id: svn://10.0.0.236/trunk@33893 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:20:16 +00:00
warren%netscape.com
02a75e5745 Added nsIBuffer::Search and cleaned up nsIBufferInputStream interface to just return the buffer.
git-svn-id: svn://10.0.0.236/trunk@33892 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:15:00 +00:00
miodrag%netscape.com
4e7dffa928 Updates for JNDI LDAP service provider
git-svn-id: svn://10.0.0.236/trunk@33889 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:14:50 +00:00
davidm%netscape.com
dca34d2826 Added icons and xul files for dialogs
git-svn-id: svn://10.0.0.236/trunk@33888 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:10:45 +00:00
davidm%netscape.com
9286a45824 Add ConfirmCheck
git-svn-id: svn://10.0.0.236/trunk@33887 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:10:18 +00:00
davidm%netscape.com
296a84a356 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33886 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:09:24 +00:00
briano%netscape.com
8c153fd636 Fix for platforms that don't support long longs.
git-svn-id: svn://10.0.0.236/trunk@33885 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:07:50 +00:00
miodrag%netscape.com
cfb091ced5 JNDI LDAP Service Provider
git-svn-id: svn://10.0.0.236/trunk@33884 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:05:59 +00:00
mscott%netscape.com
913cb6ae97 If we fail to register or unregister a component, we should remember the error code and return it, BUT we should also still try to register/unregister the rest of the components.
git-svn-id: svn://10.0.0.236/trunk@33883 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 01:02:42 +00:00
miodrag%netscape.com
56a212652f Java LDAP SDK 4.0 update
git-svn-id: svn://10.0.0.236/trunk@33882 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:53:02 +00:00
despotdaemon%netscape.com
7089a3c79f Pseudo-automatic update of changes made by akhil.arora@sun.com.
git-svn-id: svn://10.0.0.236/trunk@33881 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:47:17 +00:00
mscott%netscape.com
a6a167fe1d Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33880 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:46:54 +00:00
mscott%netscape.com
fd140f0f1b Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
Rename factory from nsMsgFactory to something more appropriate --> nsXmlEmitterFactory.


git-svn-id: svn://10.0.0.236/trunk@33879 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:39:08 +00:00
mscott%netscape.com
142efa8dd0 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
Rename factory from nsMsgFactory to something more appropriate --> nsRawEmitterFactory.


git-svn-id: svn://10.0.0.236/trunk@33878 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:36:09 +00:00
briano%netscape.com
dd12429cca Fix for platforms that don't have memory.h.
git-svn-id: svn://10.0.0.236/trunk@33877 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:34:35 +00:00
mscott%netscape.com
9fe137ccba Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
Rename factory from nsMsgFactory to something more appropriate --> nsHTMLEmitterFactory.


git-svn-id: svn://10.0.0.236/trunk@33876 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:33:00 +00:00
mscott%netscape.com
8d6793a838 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
Change the factory name from nsMsgFactory to nsVCardFactory.


git-svn-id: svn://10.0.0.236/trunk@33875 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:28:45 +00:00
mscott%netscape.com
f0f96aacf8 Change the name of the factory class from nsMsgFactory to a more appropriate name: nsCalendarFactory.
git-svn-id: svn://10.0.0.236/trunk@33874 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:25:54 +00:00
mscott%netscape.com
3672e99d0b Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33873 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:22:18 +00:00
nisheeth%netscape.com
6f28191422 Patch from alecf to do a null pointer check on argument to GetSelectedIndex().
git-svn-id: svn://10.0.0.236/trunk@33872 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:18:58 +00:00
nisheeth%netscape.com
b8c7706fa9 Patch from alecf to do a null pointer check in FindFrameWithContent().
git-svn-id: svn://10.0.0.236/trunk@33871 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:18:03 +00:00
mscott%netscape.com
b80820c297 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33870 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:15:12 +00:00
mscott%netscape.com
be8123fcba Remove unnecessary ifdef code...
git-svn-id: svn://10.0.0.236/trunk@33869 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:10:16 +00:00
despotdaemon%netscape.com
2abff017ef Pseudo-automatic update of changes made by frankm@eng.sun.com.
git-svn-id: svn://10.0.0.236/trunk@33868 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:07:30 +00:00
mscott%netscape.com
7c9b64c879 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33867 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:06:05 +00:00
jdunn%netscape.com
5c0a2d910c Changing C++ style comment to C style
git-svn-id: svn://10.0.0.236/trunk@33866 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-05 00:02:52 +00:00
warren%netscape.com
44e35fc660 Added
git-svn-id: svn://10.0.0.236/trunk@33865 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:58:05 +00:00
sspitzer%netscape.com
c06b81c34c fix build breakage on UNIX. tindebox builds with --enable-pedantic, which
catches stuff like this.


git-svn-id: svn://10.0.0.236/trunk@33864 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:57:35 +00:00
mscott%netscape.com
e4a43a62ca Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up. We still return the last failure error code though.
git-svn-id: svn://10.0.0.236/trunk@33863 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:56:20 +00:00
akkana%netscape.com
3e01b3f572 attempt to fix win build bustage
git-svn-id: svn://10.0.0.236/trunk@33862 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:45:25 +00:00
waqar%netscape.com
08e791c0ab C++ comments in a C file. Changing them to C comments.
git-svn-id: svn://10.0.0.236/trunk@33861 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:44:30 +00:00
mscott%netscape.com
0c2d25bba5 Bug #5633 -- use NS_WITH_SERVICE macro.
git-svn-id: svn://10.0.0.236/trunk@33860 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:42:18 +00:00
jdunn%netscape.com
c4bf59ddf0 need to handle building in a separate directory from where the source is...
git-svn-id: svn://10.0.0.236/trunk@33859 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:40:02 +00:00
sspitzer%netscape.com
88ef6b4176 remove comi18n.cpp from this project for rhp@netscape.com
git-svn-id: svn://10.0.0.236/trunk@33858 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:39:14 +00:00
mscott%netscape.com
58a1d9b765 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33857 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:37:52 +00:00
sspitzer%netscape.com
2f1c8ee8a8 Bug #5633 -- use NS_WITH_SERVICE macro. Also cleaned up goto statements such that if we fail to register or unregister a component, we try to register/unregister the rest of the components before giving up.
git-svn-id: svn://10.0.0.236/trunk@33856 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:37:16 +00:00
mcmullen%netscape.com
ddb951ac5c Working, working.
git-svn-id: svn://10.0.0.236/trunk@33855 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:32:03 +00:00
rhp%netscape.com
37d334a950 Further i18n cleanup
git-svn-id: svn://10.0.0.236/trunk@33854 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:31:45 +00:00
rhp%netscape.com
cd52fe528c Cleanup of comi18n.cpp.
git-svn-id: svn://10.0.0.236/trunk@33853 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:31:01 +00:00
mcmullen%netscape.com
27d2caceab First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33852 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:28:56 +00:00
sspitzer%netscape.com
2f501d19f2 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@33851 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:24:27 +00:00
mscott%netscape.com
dd143d7535 Export nsMsgProtocol.h
git-svn-id: svn://10.0.0.236/trunk@33850 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:17:38 +00:00
mscott%netscape.com
ad282e98be Build nsMsgProtocol.
git-svn-id: svn://10.0.0.236/trunk@33849 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:10:24 +00:00
kmcclusk%netscape.com
e70243131f Added method and member variable to Cache the width of a space in nsFontMetricsWin.cpp.
Added code to nsRenderingContextWin::GetWidth to use the cached width to optimize the
common case of measuring the width of a single character.


git-svn-id: svn://10.0.0.236/trunk@33848 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:09:27 +00:00
pierre%netscape.com
79a9957748 (Mac only) PR_LOG() calls printf() with a "¥¥¥" header instead of falling into MacsBug.
git-svn-id: svn://10.0.0.236/trunk@33847 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:04:28 +00:00
morse%netscape.com
664342e8b9 fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33846 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:02:41 +00:00
mscott%netscape.com
93d66a384e Aadd ability to spool a message to disk to the list of services a message service provides.
git-svn-id: svn://10.0.0.236/trunk@33845 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:00:52 +00:00
mjudge%netscape.com
2b31837503 fixes for selection and memory leaks
git-svn-id: svn://10.0.0.236/trunk@33844 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 23:00:24 +00:00
mscott%netscape.com
399325c6d4 Build nsMsgProtocol.h nsMsgProtocol.cpp.
Clean up the makefile by removing extraneous CPP_SRCS declaration...


git-svn-id: svn://10.0.0.236/trunk@33843 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:59:05 +00:00
akkana%netscape.com
bb6848ffbf cast away constness for a temporary fix to windows build bustage
git-svn-id: svn://10.0.0.236/trunk@33842 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:58:47 +00:00
slamm%netscape.com
e6320a0ce0 Rebuild static pages when note is added.
git-svn-id: svn://10.0.0.236/trunk@33841 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:56:36 +00:00
tague%netscape.com
12d1e297cf Update nsWindow.h to change DEBUG_TAGUE to DEBUG_tague for consistency
git-svn-id: svn://10.0.0.236/trunk@33840 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:55:57 +00:00
amusil%netscape.com
f33ab1ce3c Fixed order of calls.
git-svn-id: svn://10.0.0.236/trunk@33839 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:53:31 +00:00
tague%netscape.com
f9b0e90b64 changed DEBUG_TAGUE to DEBUG_tague for consitency with windows
git-svn-id: svn://10.0.0.236/trunk@33838 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:52:58 +00:00
amusil%netscape.com
ddf982c56b Should only call SetWindow() if the plugin has not been stopped.
git-svn-id: svn://10.0.0.236/trunk@33837 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:52:49 +00:00
hyatt%netscape.com
562f22861f Fix to make sure Mac RDF menus still show up.
git-svn-id: svn://10.0.0.236/trunk@33836 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:52:35 +00:00
sfraser%netscape.com
3b585d3189 Be extra safe with the nsISupports IID
git-svn-id: svn://10.0.0.236/trunk@33835 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:51:32 +00:00
rjc%netscape.com
045467e799 Adding Steve Morse's nsCookie.cpp file into the Mac network project.
git-svn-id: svn://10.0.0.236/trunk@33834 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:51:09 +00:00
hyatt%netscape.com
0aed962d2b Making the RDF menus closed by default.
git-svn-id: svn://10.0.0.236/trunk@33833 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:48:01 +00:00
mscott%netscape.com
2f7e9b8244 replace nsAutoCString with more efficient nsAutoString.GetBuffer calls.
git-svn-id: svn://10.0.0.236/trunk@33832 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:47:53 +00:00
valeski%netscape.com
261c1b725f api change to GetProxyObject. no longer pass in straight PLEventQueue
git-svn-id: svn://10.0.0.236/trunk@33831 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:47:12 +00:00
valeski%netscape.com
e41bbebd46 api change to nsIProxy* interfaces. You can no longer pass in straight PLEventQueues, you now need to pass in nsIEventQueue interfaces (see mozilla/xpcom/threads)
git-svn-id: svn://10.0.0.236/trunk@33830 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:46:20 +00:00
rjc%netscape.com
77d5a58afd Add in Steve Morse's CookieCore into AppCores.
git-svn-id: svn://10.0.0.236/trunk@33829 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:46:19 +00:00
pinkerton%netscape.com
93eec98d20 removed nsMenuButton and nsImageButton from builds.
git-svn-id: svn://10.0.0.236/trunk@33828 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:45:27 +00:00
mscott%netscape.com
091077aa33 Include nsIFileSpec.h
git-svn-id: svn://10.0.0.236/trunk@33827 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:44:11 +00:00
pinkerton%netscape.com
77057fe598 don't export imagebutton or menu button stuff. obsolete.
git-svn-id: svn://10.0.0.236/trunk@33826 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:43:19 +00:00
mscott%netscape.com
7f15155c83 support SaveMessageToDisk (stub right now)
replace nsAutoCString with more efficient nsAutoString


git-svn-id: svn://10.0.0.236/trunk@33825 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:42:31 +00:00
mscott%netscape.com
c01d870021 replace nsAutoCString with more efficient nsAutoString
git-svn-id: svn://10.0.0.236/trunk@33824 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:41:56 +00:00
pinkerton%netscape.com
cc15e45ad2 removing obsolete widgets (nsImageButton and nsMenuButton).
git-svn-id: svn://10.0.0.236/trunk@33823 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:41:39 +00:00
ssu%netscape.com
aa4d8a25af fixed bug #6859: default root key now set
git-svn-id: svn://10.0.0.236/trunk@33822 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:40:56 +00:00
pinkerton%netscape.com
c43d68577a removing imageButton and menuButton stuff. obsolete.
git-svn-id: svn://10.0.0.236/trunk@33821 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:36:54 +00:00
sfraser%netscape.com
dd6777bad0 Keep the lamer compilers happy.
git-svn-id: svn://10.0.0.236/trunk@33820 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:33:53 +00:00
amusil%netscape.com
06518c4646 Fixed bug with Java-targeted object tags.
git-svn-id: svn://10.0.0.236/trunk@33819 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:33:13 +00:00
sspitzer%netscape.com
13df9e5f19 even though it isn't building yet, follow briano's lead and use
MOZ_DLL_SUFFIX


git-svn-id: svn://10.0.0.236/trunk@33818 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:32:46 +00:00
amusil%netscape.com
b9c9fafc5e Bug fixes with plugin instance caching. We now keep track of a plugin instance's start/stop state.
git-svn-id: svn://10.0.0.236/trunk@33817 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:32:27 +00:00
sspitzer%netscape.com
7cd03fe59d even though it doesn't build right now, follow briano's lead and use
MOZ_DLL_SUFFIX


git-svn-id: svn://10.0.0.236/trunk@33816 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:31:32 +00:00
hyatt%netscape.com
68c2ea79c0 Menus now set and unset the open attribute (ensuring that RDF-generated content
doesn't stick around).


git-svn-id: svn://10.0.0.236/trunk@33815 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:31:07 +00:00
sspitzer%netscape.com
3cd7a38194 follow briano's lead and use MOZ_DLL_SUFFIX
git-svn-id: svn://10.0.0.236/trunk@33814 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:30:45 +00:00
morse%netscape.com
593cf1bf61 reimplement cookie viewer
git-svn-id: svn://10.0.0.236/trunk@33813 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:30:11 +00:00
sspitzer%netscape.com
db32086b0e follow briano's lead and use MOZ_DLL_SUFFIX.
also make some changes to get this building again.  It's still not complete,
but its closer.


git-svn-id: svn://10.0.0.236/trunk@33812 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:28:10 +00:00
mccabe%netscape.com
14ae3aa186 Backing out demo cvs checkin.
git-svn-id: svn://10.0.0.236/trunk@33811 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:27:50 +00:00
hyatt%netscape.com
5d275c248d Menus now set and unset the open attribute.
git-svn-id: svn://10.0.0.236/trunk@33810 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:24:53 +00:00
hyatt%netscape.com
caebf3a5f8 Removing the "open='true'" rule from the template for the bookmarks menu.
git-svn-id: svn://10.0.0.236/trunk@33809 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:24:37 +00:00
ramiro%netscape.com
b488eb78b9 Dont hardcode the location of libdl.so. This is already done for you by
$(OS_LIBS).


git-svn-id: svn://10.0.0.236/trunk@33808 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:23:55 +00:00
akkana%netscape.com
0e075a7b80 XIF Document Encoder; and partial fix for XIF-to-html conversion of comments
git-svn-id: svn://10.0.0.236/trunk@33807 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:22:53 +00:00
pinkerton%netscape.com
33502fbad6 removing nsImageButton and nsMenuButton. obsolete.
git-svn-id: svn://10.0.0.236/trunk@33806 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:22:22 +00:00
pinkerton%netscape.com
22c73ef474 nsMenuButton and nsImageButton obsolete.
git-svn-id: svn://10.0.0.236/trunk@33805 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:21:59 +00:00
mscott%netscape.com
c7cb6b6d2d support SaveMessageToDisk (stub right now)
replace nsAutoCString with more efficient nsAutoString


git-svn-id: svn://10.0.0.236/trunk@33804 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:19:59 +00:00
waterson%netscape.com
dc508a534f Obsolete.
git-svn-id: svn://10.0.0.236/trunk@33803 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:19:32 +00:00
mscott%netscape.com
cbb4a26833 replace nsAutoCString with more efficient nsAutoString.
git-svn-id: svn://10.0.0.236/trunk@33802 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:18:55 +00:00
sspitzer%netscape.com
ddee83a9fa follow briano's lead and use MOZ_DLL_SUFFIX
git-svn-id: svn://10.0.0.236/trunk@33801 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:18:07 +00:00
briano%netscape.com
a5a074461d Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33800 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:17:30 +00:00
sspitzer%netscape.com
9b06ae0c8f follow briano's lead and use MOZ_DLL_SUFFIX. also fix warnings while I'm here.
git-svn-id: svn://10.0.0.236/trunk@33799 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:17:19 +00:00
ssu%netscape.com
cfe81e44f7 fixing bug #7053: DiskSpaceAvailable() returned wrong value.
git-svn-id: svn://10.0.0.236/trunk@33798 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:15:53 +00:00
despotdaemon%netscape.com
be6d08ae18 Pseudo-automatic update of changes made by miodrag@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@33797 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:14:48 +00:00
jdunn%netscape.com
bb6c60694d AIX requires nsSubsumeStr to be a const... so for AIX (only) lets make it so
git-svn-id: svn://10.0.0.236/trunk@33796 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:08:19 +00:00
mscott%netscape.com
cd36cbdf58 use nsAutoString and nsAutoString.GetBuffer in place of calling nsAutoCString. This is much more memory friendly and doesn't require an extra copy of the object getting created on the healp like nsAutoCString does.
git-svn-id: svn://10.0.0.236/trunk@33795 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:07:26 +00:00
hyatt%netscape.com
d7c82da11f Fixes for several bugs.
git-svn-id: svn://10.0.0.236/trunk@33794 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:05:47 +00:00
sfraser%netscape.com
fbf3a2645f Added nsDocumentEncoder.cpp for akkana
git-svn-id: svn://10.0.0.236/trunk@33793 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:04:44 +00:00
cmanske%netscape.com
34ad27f047 Changed dot selector to class~= syntax (XML selector style). Moved titled button image entry from navigator.css to xul.css so it works in dialogs
git-svn-id: svn://10.0.0.236/trunk@33792 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 22:03:09 +00:00
rhp%netscape.com
012202f1f7 Added a header
git-svn-id: svn://10.0.0.236/trunk@33791 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:57:36 +00:00
briano%netscape.com
8c6de822d9 Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33790 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:54:38 +00:00
cathleen%netscape.com
9521da857d nativepatch() returns new patched file to the caller function
make final file replacement work for patch files


git-svn-id: svn://10.0.0.236/trunk@33789 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:54:34 +00:00
slamm%netscape.com
d0557591c3 Fix relative links for static page.
git-svn-id: svn://10.0.0.236/trunk@33788 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:54:15 +00:00
morse%netscape.com
e9875f87c5 reimplement cookie viewer
git-svn-id: svn://10.0.0.236/trunk@33787 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:51:57 +00:00
ssu%netscape.com
0dd33f2e12 fixed problem with Install.FileRename() and Install.DirRename()
git-svn-id: svn://10.0.0.236/trunk@33786 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:50:17 +00:00
jdunn%netscape.com
85dfb1be6c This file can't be optimized on AIX and so just like the NSPR file (prdtoa.c)
we turn off optimizing while compiling.


git-svn-id: svn://10.0.0.236/trunk@33785 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:50:09 +00:00
sfraser%netscape.com
75a4b9b2b6 Adapt to the changed nsIFindComponent interface (new param to InitContext)
git-svn-id: svn://10.0.0.236/trunk@33784 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:50:02 +00:00
sfraser%netscape.com
4d691df9e3 Some renaming of nodes to reduce ambiguity, and leave the field open for Find and Replace later.
git-svn-id: svn://10.0.0.236/trunk@33783 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:49:21 +00:00
mscott%netscape.com
c88c32646a Remove nsAutoCString with nsAutoString.GetBuffer().
git-svn-id: svn://10.0.0.236/trunk@33781 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:49:18 +00:00
sfraser%netscape.com
4c3082ab0c New, improved Find that keys off the selection, rather than storing offsets inside the find context.
git-svn-id: svn://10.0.0.236/trunk@33780 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:48:47 +00:00
briano%netscape.com
fd434f45f9 Got it right this time. Handle the (Unix) platform-specific DLL naming conventions properly.
git-svn-id: svn://10.0.0.236/trunk@33779 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:48:45 +00:00
dougt%netscape.com
c4a437a7ed Adding out MANIFEST_PREFS to the mac build.
git-svn-id: svn://10.0.0.236/trunk@33778 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:47:39 +00:00
dougt%netscape.com
796636692c turning off silentdl.
git-svn-id: svn://10.0.0.236/trunk@33777 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:45:54 +00:00
briano%netscape.com
1b73ce72f6 Cleaned up a bunch of old (unused?) crap.
git-svn-id: svn://10.0.0.236/trunk@33776 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:45:17 +00:00
dougt%netscape.com
cd3f1c78cd Changing the name of the prefs to xpinstall.foo
removing unused pref defines
Removing a force true when asked if we were enabled.


git-svn-id: svn://10.0.0.236/trunk@33775 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:45:04 +00:00
mscott%netscape.com
8dedf9d091 replace nsAutoCString with more efficient calls using nsAutoString.GetBuffer. This requires us to force several nsAutoStrings to be created as one byte strings (which is okay).
git-svn-id: svn://10.0.0.236/trunk@33774 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:44:57 +00:00
briano%netscape.com
394355d3c1 Automated update
git-svn-id: svn://10.0.0.236/trunk@33773 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:44:49 +00:00
mscott%netscape.com
e44dc343f0 Include nsIFileSpec.h
git-svn-id: svn://10.0.0.236/trunk@33772 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:43:16 +00:00
dougt%netscape.com
7723c4a70e Adding xpinstall.js to the build. This will setup our prefs for us.
git-svn-id: svn://10.0.0.236/trunk@33771 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:43:14 +00:00
briano%netscape.com
0537dbc26b Added checks for uint, int64, and int64_t.
git-svn-id: svn://10.0.0.236/trunk@33770 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:42:18 +00:00
mscott%netscape.com
62133fdcc9 First checked in. New files used to encapsulate much of the cross mail-news protocol code. this is mostly mail protocol to core netlib integration code. Over the next couple days, I'll be updating the mailnews protocols to inherit from nsMsgProtocol and pushing commonality up to the nsMsgProtocol level.
git-svn-id: svn://10.0.0.236/trunk@33769 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:41:47 +00:00
mscott%netscape.com
af8e101f1b support SaveMessageToDisk (stub right now).
Remove nsAutoCString with more efficient call to nsString.GetBuffer.


git-svn-id: svn://10.0.0.236/trunk@33768 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:40:25 +00:00
mccabe%netscape.com
eba02f27b8 Partial fix to 7202. free (XPT_DELETE()) a pointer that was previously just set to NULL and leaked.
Thanks to David Gardiner <david.gardiner@unisa.edu.au> for the patch, and to bruce to pointing me to it.


git-svn-id: svn://10.0.0.236/trunk@33767 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 21:33:38 +00:00
despotdaemon%netscape.com
9af74f6c75 Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33766 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:55:20 +00:00
despotdaemon%netscape.com
05e5756172 Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33765 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:54:17 +00:00
terry%mozilla.org
de3348c6bb Added sendnotification.pl.
git-svn-id: svn://10.0.0.236/trunk@33764 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:53:34 +00:00
despotdaemon%netscape.com
f5341151bb Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33763 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:52:57 +00:00
despotdaemon%netscape.com
c76323298e Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33762 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:52:06 +00:00
despotdaemon%netscape.com
b3eaf07d5d Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33761 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:50:48 +00:00
despotdaemon%netscape.com
92bed36fbd Pseudo-automatic update of changes made by terry@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@33760 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:50:02 +00:00
terry%mozilla.org
6cad802029 Turn on notification feature.
git-svn-id: svn://10.0.0.236/trunk@33759 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:47:53 +00:00
norris%netscape.com
90348e63ec Add benchmarks.
git-svn-id: svn://10.0.0.236/trunk@33758 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:44:17 +00:00
beard%netscape.com
7e586f42e5 added top-level "environment" associative array - which provides JavaScript access to Java System properties.
git-svn-id: svn://10.0.0.236/trunk@33757 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:06:25 +00:00
beard%netscape.com
a640fc495b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@33756 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 18:03:06 +00:00
sspitzer%netscape.com
13134b936d FindMsgAppCore() is gone, since alecf removed the MsgAppCore.
The correct call is FindMessenger().


git-svn-id: svn://10.0.0.236/trunk@33755 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:45:57 +00:00
mcmullen%netscape.com
63a1fe6509 Fix one last case of uint (and I had removed the typedef, breaking photon). Approved leaf.
git-svn-id: svn://10.0.0.236/trunk@33754 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:43:37 +00:00
beard%netscape.com
dbf0fe69c6 File Removed.
git-svn-id: svn://10.0.0.236/trunk@33753 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:43:35 +00:00
beard%netscape.com
8a0fe4a93e added Environment.java
git-svn-id: svn://10.0.0.236/trunk@33752 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:43:17 +00:00
terry%mozilla.org
f88f417a26 dmose now owns despot.
git-svn-id: svn://10.0.0.236/trunk@33751 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:10:28 +00:00
slamm%netscape.com
c273315286 Fix typo.
git-svn-id: svn://10.0.0.236/trunk@33750 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:06:20 +00:00
amasri%netscape.com
469d382646 commented out tests that cause system failure (ZDNet)
git-svn-id: svn://10.0.0.236/trunk@33749 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:00:53 +00:00
amasri%netscape.com
f7d4d11f4e added error handling
git-svn-id: svn://10.0.0.236/trunk@33748 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 17:00:18 +00:00
amasri%netscape.com
91258d0bfc changed Invoke() method to give better error messages
git-svn-id: svn://10.0.0.236/trunk@33747 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:59:30 +00:00
amasri%netscape.com
addb0b2f44 added extra tests for version 2.0
git-svn-id: svn://10.0.0.236/trunk@33746 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:58:29 +00:00
jefft%netscape.com
6bb45e8916 temporary fix for build bustage by ducarroz
git-svn-id: svn://10.0.0.236/trunk@33745 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:53:05 +00:00
norris%netscape.com
960871aa12 Subject:
Re: netscape.javascript.JSObject ?
        Date:
             Thu, 03 Jun 1999 17:52:42 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Norris Boyd <norris@netscape.com>
  References:
             1 , 2 , 3 , 4 , 5 , 6 , 7 , 8




Norris Boyd wrote:
>
> Sorry--missed the checkin of a new file. It's there now.
>
> I'd also added a small change for the "inheritance" of JavaScript array methods.

Actually, I've already done that (and for String as well).  It still
fails some LC3 regression tests, though.

I'm including a tarfile that includes the previous changes and the new
ones.

Frank


git-svn-id: svn://10.0.0.236/trunk@33744 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:25:41 +00:00
norris%netscape.com
1090d221af Add NativeJavaConstructor.java
git-svn-id: svn://10.0.0.236/trunk@33743 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 16:06:14 +00:00
ducarroz%netscape.com
6148db1fc6 oops, forget to reactivate one line for the function Dispose
git-svn-id: svn://10.0.0.236/trunk@33742 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:50:54 +00:00
ducarroz%netscape.com
4cfbb9765a Add function Dispose. Fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@33741 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:47:05 +00:00
ducarroz%netscape.com
77bcb54189 Add function Dispose, fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33740 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:38:53 +00:00
ducarroz%netscape.com
4a0f0a764b Add function Dispose, fix also js problem with NewMessage, fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@33739 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:38:43 +00:00
Jerry.Kirk%Nexwarecorp.com
a1f6940f03 - Fixing code after addition of ShowMenuBar() method
-  This is still not implemented, it will just compile now.


git-svn-id: svn://10.0.0.236/trunk@33738 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:09:50 +00:00
valeski%netscape.com
0f4e775451 added the HandleEvent method
git-svn-id: svn://10.0.0.236/trunk@33737 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 15:02:27 +00:00
rhp%netscape.com
b6f07cfd0a Fix to use PR_free instead of delete
git-svn-id: svn://10.0.0.236/trunk@33736 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 12:24:17 +00:00
gagan%netscape.com
ede4d98055 Fixed the stream length to be zero. Thanks Andreas.
git-svn-id: svn://10.0.0.236/trunk@33735 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 11:10:31 +00:00
rpotts%netscape.com
0a0088d3c7 Added PLEvent pump for unix...
git-svn-id: svn://10.0.0.236/trunk@33734 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 09:03:45 +00:00
rpotts%netscape.com
a60f667fd2 Added NSPR logging messages...
git-svn-id: svn://10.0.0.236/trunk@33733 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 08:52:02 +00:00
ducarroz%netscape.com
9b620ff2e6 add some missing includes for C++ only.
git-svn-id: svn://10.0.0.236/trunk@33732 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 08:49:46 +00:00
ducarroz%netscape.com
1cbea49773 add nsIMessenger.idl, fix build bustage!
git-svn-id: svn://10.0.0.236/trunk@33731 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 07:45:52 +00:00
gagan%netscape.com
047f87a3eb Getting it building again... changed the Write call to match its signature in nsIByteBufferInputStream. It will probably change again to FillFrom once we move that to idl.
git-svn-id: svn://10.0.0.236/trunk@33730 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 07:36:04 +00:00
gagan%netscape.com
bd823a6e11 Getting base building again. Fixed the changes from nsIOutputStream's Write function.
git-svn-id: svn://10.0.0.236/trunk@33729 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 07:25:16 +00:00
ducarroz%netscape.com
add3524194 add nsIXPCSecurityManager to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33728 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 06:39:33 +00:00
shaver%netscape.com
7c304e9aa0 fix for #3839
git-svn-id: svn://10.0.0.236/trunk@33727 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 06:21:49 +00:00
ducarroz%netscape.com
a84c344b5c composeAppCore.NewMessage know takes only 5 parameters.
git-svn-id: svn://10.0.0.236/trunk@33726 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 05:47:05 +00:00
jband%netscape.com
cc9525fa15 added nsIXPCSecurityManager interface and support to xpconnect - with tests.
git-svn-id: svn://10.0.0.236/trunk@33725 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 05:46:48 +00:00
tague%netscape.com
a367379062 Fix for #6896: Windows editor interprests the '.' key as a forward delete. Not building by default -- will switch over once tested on Mac and Unix.
git-svn-id: svn://10.0.0.236/trunk@33724 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 05:14:01 +00:00
sspitzer%netscape.com
3e111b037e fix mac build bustage.
git-svn-id: svn://10.0.0.236/trunk@33723 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:42:24 +00:00
sspitzer%netscape.com
a88bb70a49 fix spelling mistake.
git-svn-id: svn://10.0.0.236/trunk@33722 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:32:07 +00:00
alecf%netscape.com
c29a83c1e5 fix leaks
git-svn-id: svn://10.0.0.236/trunk@33721 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:19:46 +00:00
alecf%netscape.com
1e721e7733 export xulstubs.idl on windows
git-svn-id: svn://10.0.0.236/trunk@33720 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:18:29 +00:00
alecf%netscape.com
65e5883cdb fix a bunch of warnings about shadowed variables, etc
git-svn-id: svn://10.0.0.236/trunk@33719 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:17:56 +00:00
alecf%netscape.com
66068509ff fix leak
git-svn-id: svn://10.0.0.236/trunk@33717 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:17:26 +00:00
sspitzer%netscape.com
722a5752e2 nsIDOMMsgAppCore.idl is gone.
git-svn-id: svn://10.0.0.236/trunk@33716 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:12:09 +00:00
alecf%netscape.com
5824810b7d oops, forgot to stop exporting these files
git-svn-id: svn://10.0.0.236/trunk@33715 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:03:12 +00:00
alecf%netscape.com
1028107c1e added files: mozilla/mailnews/base/src/nsMessengerBootstrap.cpp, removed files: mozilla/mailnews/base/src/nsMessengerNameSet.cpp, mozilla/mailnews/base/src/nsMsgAppCore.cpp, mozilla/mailnews/base/src/nsJSMsgAppCore.cpp
git-svn-id: svn://10.0.0.236/trunk@33714 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:01:56 +00:00
danm%netscape.com
447a35fe7d show/hide menubar in chrome settings
git-svn-id: svn://10.0.0.236/trunk@33713 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:01:20 +00:00
alecf%netscape.com
a9b04231b5 Killing the messenger appcore once and for all.
Don't be frightened by the size of this checkin, most of the appcore conversion to XPConnect was fairly simple. Some of this is just fixing code that depended on the old appcore


git-svn-id: svn://10.0.0.236/trunk@33712 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:00:58 +00:00
danm%netscape.com
21ed2a65fd adding ShowMenuBar
git-svn-id: svn://10.0.0.236/trunk@33711 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 04:00:30 +00:00
danm%netscape.com
56bdcb43e9 removing nsIDOMSelection.h and nsIDOMSelectionListener.h: these have been moved to ../range
git-svn-id: svn://10.0.0.236/trunk@33710 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:50:48 +00:00
sspitzer%netscape.com
d65cf7e026 libnntp.a should be libnntp_s.a to indicate that is is always going to be a static library. (follow convention)
git-svn-id: svn://10.0.0.236/trunk@33709 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:48:25 +00:00
sspitzer%netscape.com
2b45603119 whoops, forgot one.
git-svn-id: svn://10.0.0.236/trunk@33708 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:45:57 +00:00
sspitzer%netscape.com
fade18bee2 return NS_ERROR_NOT_IMPLEMENTED, and not 0. remove dead code. get mark message read working for news. (the m_newSet code isn't being populated from the newsrc file yet, so don't use it.)
git-svn-id: svn://10.0.0.236/trunk@33707 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:38:26 +00:00
sspitzer%netscape.com
0fc5625884 rename the windows library to libnntp_s.lib, since it is static as well
git-svn-id: svn://10.0.0.236/trunk@33706 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:37:41 +00:00
sspitzer%netscape.com
2e75794b0d libnntp.a should be libnntp_s.a to indicate that is is always going to
be a static library.  (follow convention)


git-svn-id: svn://10.0.0.236/trunk@33705 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:27:00 +00:00
briano%netscape.com
221cc5f371 Automated update
git-svn-id: svn://10.0.0.236/trunk@33704 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:25:25 +00:00
briano%netscape.com
353e55b7f6 Okay, so I'm a moron....
git-svn-id: svn://10.0.0.236/trunk@33703 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:24:56 +00:00
waterson%netscape.com
2cdbcfb265 Removed unnecessary LINCS.
git-svn-id: svn://10.0.0.236/trunk@33702 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:18:38 +00:00
wtc%netscape.com
65aeb0b85f More OpenVMS changes from Colin R. Blake <colin@theblakes.com>.
Modified files: prstrms.cpp, pr/include/md/Makefile, _openvms.h,
and prmapopt.c.


git-svn-id: svn://10.0.0.236/trunk@33700 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 03:01:40 +00:00
rickg%netscape.com
5614b7a1e9 fixed bugs 4396 and 7381
git-svn-id: svn://10.0.0.236/trunk@33699 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:34:36 +00:00
waterson%netscape.com
bc603a7cef Add KEEP directive to .exe build rule so that cmd.cfg isn't blown away.
git-svn-id: svn://10.0.0.236/trunk@33698 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:31:24 +00:00
waterson%netscape.com
b79a2853b6 Clean up MOZ_PROFILE rules to get working with Quantify.
git-svn-id: svn://10.0.0.236/trunk@33697 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:30:51 +00:00
tague%netscape.com
d46753fa28 Temporarily remove TSMActivate/Deactivate document assertions until bug #7571 gets fixed.
git-svn-id: svn://10.0.0.236/trunk@33696 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:12:07 +00:00
mscott%netscape.com
6c08acb9bd Remove unnecessary LINCS now that all headers are pushed to the same directory.
git-svn-id: svn://10.0.0.236/trunk@33695 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:07:10 +00:00
mscott%netscape.com
7f4ae06c9c Remove unnecessary LINCS now that all headers are pushed to the same directory.
Export header files because they weren't getting exported before.


git-svn-id: svn://10.0.0.236/trunk@33694 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:04:43 +00:00
briano%netscape.com
ec88440c2d Converted all the C++ comments to C comments to fix the Unix builds (prefapi.c).
git-svn-id: svn://10.0.0.236/trunk@33693 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 02:00:19 +00:00
putterman%netscape.com
79a9b98ea5 Just comment out this function so I can get it right on the mac eventually.
git-svn-id: svn://10.0.0.236/trunk@33692 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:51:36 +00:00
briano%netscape.com
045e73bfdc Automated update
git-svn-id: svn://10.0.0.236/trunk@33691 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:50:43 +00:00
briano%netscape.com
7a2bbb38ea Changed the way MOZ_DLL_SUFFIX gets defined. Hopefully this will allow it to be used the way PR_DLL_SUFFIX is used inside NSPR.
git-svn-id: svn://10.0.0.236/trunk@33690 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:50:12 +00:00
nisheeth%netscape.com
c16e04df1f Fix for bug 6892. We should not set focus each time a document viewer creates a new window but leave it to the embedding application to decide when to set focus.
git-svn-id: svn://10.0.0.236/trunk@33689 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:48:38 +00:00
briano%netscape.com
7a38066382 Added an explicit LD definition for QNX.
git-svn-id: svn://10.0.0.236/trunk@33688 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:42:00 +00:00
mscott%netscape.com
de69ac5bb1 Remove unnecessary LINCS now that all headers are pushed to the same directory.
git-svn-id: svn://10.0.0.236/trunk@33687 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:21:24 +00:00
putterman%netscape.com
26d7ecfe23 Fix PRInt64 problems to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@33686 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:19:56 +00:00
nisheeth%netscape.com
4cc391ff22 Fix for bug 4924. Attributes created with no namespace prefix are now assigned no namespace. They were erroneously being assigned the default namespace earlier.
git-svn-id: svn://10.0.0.236/trunk@33685 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:16:18 +00:00
ducarroz%netscape.com
733ca6de59 nsIMsgBiffManager.h is already exported by xpidl
git-svn-id: svn://10.0.0.236/trunk@33684 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:14:01 +00:00
ducarroz%netscape.com
7989ded99f add nsIMsgBiffManager.idl, fix build bustage!
git-svn-id: svn://10.0.0.236/trunk@33683 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:09:04 +00:00
putterman%netscape.com
420042a5cf fix build bustage
git-svn-id: svn://10.0.0.236/trunk@33682 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:07:03 +00:00
akkana%netscape.com
5199693c7c Checking in the non-dangerous parts of the XIF document/html encoder
git-svn-id: svn://10.0.0.236/trunk@33681 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 01:04:08 +00:00
putterman%netscape.com
3c4b404cd9 Add nsIMsgBiffManager.h to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@33680 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:53:56 +00:00
cmanske%netscape.com
bb377c86aa Changed [class=push] to .push (correct class selector syntax for CSS)
git-svn-id: svn://10.0.0.236/trunk@33679 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:33:38 +00:00
nisheeth%netscape.com
1e9a7adaef The "Using expat for parsing XML message" is getting annoying. Only print it out for my debug build...
git-svn-id: svn://10.0.0.236/trunk@33678 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:30:23 +00:00
warren%netscape.com
1be69d18f3 Fixed CPP_OBJS to build nsHTMLFragmentContentSink.obj not nsHTMLFragmentContentSink.cpp.
git-svn-id: svn://10.0.0.236/trunk@33677 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:12:43 +00:00
hangas%netscape.com
c533144fe7 Removed dump() line
git-svn-id: svn://10.0.0.236/trunk@33676 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:11:03 +00:00
erik%netscape.com
238dfa9172 Bug 7427. Need to convert enumerated font names from system code page to
Unicode, and then convert Unicode font names back to system code page when
loading font.


git-svn-id: svn://10.0.0.236/trunk@33675 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-04 00:08:56 +00:00
ducarroz%netscape.com
91b5031be3 implemented MsgNewMessage and added code to open the addressbook when click on the AB button in the status bar.
git-svn-id: svn://10.0.0.236/trunk@33674 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:59:58 +00:00
warren%netscape.com
08d4fc7175 Removed stream files from manifest.
git-svn-id: svn://10.0.0.236/trunk@33673 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:52:13 +00:00
mscott%netscape.com
a13d238a19 Remove unnecessary LINCS now that all headers are pushed to the same directory.
git-svn-id: svn://10.0.0.236/trunk@33672 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:42:51 +00:00
slamm%netscape.com
9a082e063b Static page does not need header.
git-svn-id: svn://10.0.0.236/trunk@33671 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:42:34 +00:00
mang%subcarrier.org
a904c07dc4 Added doc comment
git-svn-id: svn://10.0.0.236/trunk@33670 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:39:57 +00:00
norris%netscape.com
b8fb6e472a LC3 support: make Java arrays have Array.prototype as a prototype.
git-svn-id: svn://10.0.0.236/trunk@33669 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:38:47 +00:00
slamm%netscape.com
c89720f69a Add a static page for tinderbox.
git-svn-id: svn://10.0.0.236/trunk@33668 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:38:24 +00:00
norris%netscape.com
589a2f1182 Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank


git-svn-id: svn://10.0.0.236/trunk@33667 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:38:00 +00:00
mscott%netscape.com
153313037a Use nsCAutoString instead of nsAutoCString. This new version is much more memory friendly, avoiding an extra copy of the string from getting created on the heap.
git-svn-id: svn://10.0.0.236/trunk@33666 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:37:10 +00:00
sspitzer%netscape.com
47e6d70a0b don't compare nsCOMPtrs with nsnull.
git-svn-id: svn://10.0.0.236/trunk@33665 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:35:58 +00:00
warren%netscape.com
88da426e7c Removed obsolete files for mac.
git-svn-id: svn://10.0.0.236/trunk@33664 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:35:18 +00:00
mscott%netscape.com
b46897740f Export nsLocalMailFolder.h
git-svn-id: svn://10.0.0.236/trunk@33663 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:31:58 +00:00
mscott%netscape.com
80c6e96a41 Remove unnecessary LINCS now that all headers are pushed to the same directory.
git-svn-id: svn://10.0.0.236/trunk@33662 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:31:57 +00:00
rogerl%netscape.com
453b90c2aa Blew off 'caller' property - it was deemed a security risk, bug #7224
git-svn-id: svn://10.0.0.236/trunk@33661 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:24:39 +00:00
norris%netscape.com
315a12dd58 Subject:
Re: Rhino LiveConnect: need help?
        Date:
             Wed, 02 Jun 1999 19:33:37 -0700
       From:
             Frank Mitchell <frankm@eng.Sun.COM>
 Organization:
             Java Products Engineering
         To:
             Scott Furman <fur@netscape.com>, Norris Boyd <norris@netscape.com>
         CC:
             mallen@eng.Sun.COM
  References:
             1 , 2 , 3 , 4




Scott Furman wrote:
> In order to bring Rhino LiveConnect support up to the level of the
> C-engine, the features of LiveConnect version 2 and version 3 would
> need to be added.  You can see some details of LC2 and LC3 features
> here.  I would guess that 80% of the time would be spent implementing
> one feature: LC3's new method overload resolution scheme.


OK, I think I have something that implements the new overloaded method
resolution scheme ... I'm still working on getting the regression tests
running smoothly, but from command-line testing it seems to work.  It's
not the *cleanest* code I've ever done, though: in particular, it has
too many static methods and type-checking code for my tastes.  (Hey,
should we spin the type coercion and comparison stuff to some other
module entirely?  Right now it's mostly in JavaNativeObject, with the
preference stuff in JavaNativeMethod.)  I'm also not sure why some of
this stuff is public, and whether there might be backward-compatibility
problems with what I've done, particularly in repurposing the
COMPARISON_* constants.

Would you guys be kind enough to review this for me?  I'm hoping to
check it in once I get an ID, but it wouldn't hurt to have another pair
of eyes or three (pairs, I mean).  I've attached a tar/gzip of the
source files I've changed (or added), plus a diff.

Thanks,
Frank


git-svn-id: svn://10.0.0.236/trunk@33660 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:22:27 +00:00
warren%netscape.com
e306530a8e Added nsIBufferInputStream.idl
git-svn-id: svn://10.0.0.236/trunk@33659 18797224-902f-48f8-a5cc-f745e15eee43
1999-06-03 23:10:11 +00:00
847 changed files with 218449 additions and 18420 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,36 @@
#! gmake
#
# 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.
DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
base \
dns \
build \
protocol \
test \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,33 @@
#! gmake
#
# 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.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
public \
src \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,27 @@
#!gmake
#
# 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.
DEPTH = ..\..
MODULE = netwerk
DIRS= \
public \
src \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,61 @@
#!gmake
#
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
XPIDL_MODULE = netwerk_base
XPIDLSRCS = \
nsIRequest.idl \
nsIChannel.idl \
nsIURI.idl \
nsIURL.idl \
nsIStreamObserver.idl \
nsIStreamListener.idl \
nsIIOService.idl \
nsIEventSinkGetter.idl \
nsIPrompt.idl \
nsIProtocolHandler.idl \
nsIProgressEventSink.idl \
nsINetModRegEntry.idl \
nsINetModuleMgr.idl \
nsINetNotify.idl \
$(NULL)
EXPORTS = \
netCore.h \
nsIFileTransportService.h \
nsISocketTransportService.h \
nsIHeader.h \
nsIProxy.h \
$(NULL)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,58 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
EXPORTS = \
netCore.h \
nsIFileTransportService.h \
nsISocketTransportService.h \
nsIHeader.h \
nsIProxy.h \
$(NULL)
XPIDLSRCS = \
.\nsIRequest.idl \
.\nsIChannel.idl \
.\nsIURI.idl \
.\nsIURL.idl \
.\nsIStreamObserver.idl \
.\nsIStreamListener.idl \
.\nsIIOService.idl \
.\nsIEventSinkGetter.idl \
.\nsIPrompt.idl \
.\nsIProtocolHandler.idl \
.\nsIProgressEventSink.idl \
.\nsINetModRegEntry.idl \
.\nsINetModuleMgr.idl \
.\nsINetNotify.idl \
$(NULL)
include <$(DEPTH)/config/rules.mak>
$(DEPTH)\netwerk\dist\include:
-mkdir $(DEPTH)\netwerk\dist
-mkdir $(DEPTH)\netwerk\dist\include

View File

@@ -0,0 +1,64 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* 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.
*/
#ifndef __netCore_h__
#define __netCore_h__
#include "nsError.h"
/* networking error codes */
// NET RANGE: 1 -20
// FTP RANGE: 21-30
// HTTP RANGE: 31-40
// DNS RANGE: 41-50
#define NS_ERROR_ALREADY_CONNECTED \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 1)
#define NS_ERROR_NOT_CONNECTED \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
#define NS_ERROR_CONNECTION_REFUSED \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 3)
#define NS_ERROR_DNS_DOES_NOT_EXIST \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 4)
#define NS_ERROR_TCP_TIMEOUT \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 5)
#define NS_ERROR_IN_PROGRESS \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 6)
#undef NS_NET
#ifdef _IMPL_NS_NET
#ifdef XP_PC
#define NS_NET _declspec(dllexport)
#else /* !XP_PC */
#define NS_NET
#endif /* !XP_PC */
#else /* !_IMPL_NS_NET */
#ifdef XP_PC
#define NS_NET _declspec(dllimport)
#else /* !XP_PC */
#define NS_NET
#endif /* !XP_PC */
#endif /* !_IMPL_NS_NET */
#endif // __netCore_h__

View File

@@ -0,0 +1,91 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIRequest.idl"
interface nsIURI;
interface nsIInputStream;
interface nsIOutputStream;
interface nsIEventQueue;
interface nsIStreamObserver;
interface nsIStreamListener;
/**
* nsIChannel is the abstract base class for transports and URLs.
* It's abstract in that it doesn't provide a means to specify the
* location/destination of the data being accessed.
*/
[scriptable, uuid(89f4afe0-1868-11d3-9337-00104ba0fd40)]
interface nsIChannel : nsIRequest
{
/**
* Returns the URL to which the channel refers.
*/
readonly attribute nsIURI URI;
/**
* Opens a blocking input stream to the URL's specified source.
* @param startPosition - The offset from the start of the data
* from which to read.
* @param readCount - The number of bytes to read. If -1, everything
* up to the end of the data is read. If greater than the end of
* the data, the amount available is returned in the stream.
*/
nsIInputStream OpenInputStream(in unsigned long startPosition,
in long readCount);
/**
* Opens a blocking output stream to the URL's specified destination.
* @param startPosition - The offset from the start of the data
* from which to begin writing.
*/
nsIOutputStream OpenOutputStream(in unsigned long startPosition);
/**
* Reads asynchronously from the URL's specified source. Notifications
* are provided to the stream listener on the thread of the specified
* event queue.
* The startPosition argument designates the offset in the source where
* the data will be read.
* If the readCount == -1 then all the available data is delivered to
* the stream listener.
*/
void AsyncRead(in unsigned long startPosition,
in long readCount,
in nsISupports ctxt,
in nsIEventQueue eventQueue,
in nsIStreamListener listener);
/**
* Writes asynchronously to the URL's specified destination. Notifications
* are provided to the stream observer on the thread of the specified
* event queue.
* The startPosition argument designates the offset in the destination where
* the data will be written.
* If the writeCount == -1, then all the available data in the input
* stream is written.
*/
void AsyncWrite(in nsIInputStream fromStream,
in unsigned long startPosition,
in long writeCount,
in nsISupports ctxt,
in nsIEventQueue eventQueue,
in nsIStreamObserver observer);
};

View File

@@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* -*- Mode: C++; tab-width: 2; 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
@@ -16,10 +16,11 @@
* Reserved.
*/
#ifndef __NS_JSWINREG_H__
#define __NS_JSWINREG_H__
#include "nsISupports.idl"
PRInt32
InitWinRegPrototype(JSContext *jscontext, JSObject *global, JSObject **winRegPrototype);
[scriptable, uuid(fb65fd70-1881-11d3-9337-00104ba0fd40)]
interface nsIEventSinkGetter : nsISupports
{
nsISupports GetEventSink(in string verb, in nsIIDRef eventSinkIID);
};
#endif

View File

@@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsIFileTransportService_h___
#define nsIFileTransportService_h___
#include "nsISupports.h"
class nsIChannel;
#define NS_IFILETRANSPORTSERVICE_IID \
{ /* 2355dca0-ea35-11d2-931b-00104ba0fd40 */ \
0x2355dca0, \
0xea35, \
0x11d2, \
{0x93, 0x1b, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
#define NS_FILETRANSPORTSERVICE_CID \
{ /* 2bb2b250-ea35-11d2-931b-00104ba0fd40 */ \
0x2bb2b250, \
0xea35, \
0x11d2, \
{0x93, 0x1b, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
class nsIFileTransportService : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFILETRANSPORTSERVICE_IID);
NS_IMETHOD CreateTransport(const char* path,
nsIChannel* *result) = 0;
NS_IMETHOD ProcessPendingRequests(void) = 0;
};
////////////////////////////////////////////////////////////////////////////////
#endif /* nsIFileTransportService_h___ */

View File

@@ -0,0 +1,75 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#ifndef _nsIHeader_h_
#define _nsIHeader_h_
#include "nsISupports.h"
/*
nsIHeader. A class to encapsulate and share the header reading and
writing on requests/responses of several protocols.
I am not convinced the GetHeaderMultiple is the right way to
do multiple values, but give me a better way... TODO think.
- Gagan Saksena 03/08/99
*/
class nsIHeader : public nsISupports
{
public:
/*
SetHeader- set a particular header. The implementation is protocol
specific. For e.g. HTTP will put a colon and space to separate
the header with the value and then trail it will an newline.
So SetHeader for HTTP with say ("Accept", "text/html") will
result in a string "Accept: text/html\n" being added to the header
set.
*/
NS_IMETHOD SetHeader(const char* i_Header, const char* i_Value) = 0;
/*
Get the first occurence of the header and its corresponding value.
Note that if you expect the possibility of multiple values, you
should use GetHeaderMultiple() version.
*/
NS_IMETHOD GetHeader(const char* i_Header, char* *o_Value) = 0;
/*
This version returns an array of values associated with this
header. TODO think of a better way to do this...
*/
NS_IMETHOD GetHeaderMultiple(
const char* i_Header,
char** *o_ValueArray,
int *o_Count) = 0;
static const nsIID& GetIID() {
// {4CD2C720-D5CF-11d2-B013-006097BFC036}
static const nsIID NS_IHEADER_IID =
{ 0x4cd2c720, 0xd5cf, 0x11d2, { 0xb0, 0x13, 0x0, 0x60, 0x97, 0xbf, 0xc0, 0x36 } };
return NS_IHEADER_IID;
}
};
//TODO verify error offsets!
#define NS_ERROR_NOT_FOUND NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 115);
#endif // _nsIHeader_h_

View File

@@ -0,0 +1,145 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
interface nsIProtocolHandler;
interface nsIURI;
interface nsIEventSinkGetter;
interface nsIChannel;
interface nsIStreamObserver;
interface nsIStreamListener;
interface nsIEventQueue;
interface nsIBufferInputStream;
interface nsIBufferOutputStream;
interface nsIFileChannel;
[scriptable, uuid(01f0a170-1881-11d3-9337-00104ba0fd40)]
interface nsIIOService : nsISupports
{
/**
* Returns a protocol handler for a given URI scheme.
*/
nsIProtocolHandler GetProtocolHandler(in string scheme);
/**
* Returns an absolute URI string from a relative specification and
* a base URI.
*/
string MakeAbsolute(in string aRelativeSpec, in nsIURI aBaseURI);
/**
* This method constructs a new URI by first determining the scheme
* of the URI spec, and then delegating the construction of the URI
* to the protocol handler for that scheme. QueryInterface can be used
* on the resulting URI object to obtain a more specific type of URI.
*/
nsIURI NewURI(in string aSpec, in nsIURI aBaseURI);
/**
* Creates a channel for a given URI. The eventSinkGetter is used to
* obtain the appropriate callbacks for the URI's protocol from the
* application.
*/
nsIChannel NewChannelFromURI(in string verb,
in nsIURI aURI,
in nsIEventSinkGetter eventSinkGetter);
/**
* Convenience routine that first creates a URI by calling NewURI, and
* then passes the URI to NewChannelFromURI.
*/
nsIChannel NewChannel(in string verb,
in string aSpec,
in nsIURI aBaseURI,
in nsIEventSinkGetter eventSinkGetter);
/**
* Get the application name string that will be used as part
* of a HTTP request.
*/
readonly attribute wstring AppCodeName;
/**
* Get the application version string that will be used as part
* of a HTTP request.
*/
readonly attribute wstring AppVersion;
/**
* Get the application name.
*/
readonly attribute wstring AppName;
/**
* Get the translation of the application. The value for language
* is usually a 2-letter code such as "en" and occasionally a
* five-character code to indicate a language subtype, such as "zh_CN".
*/
readonly attribute wstring Language;
/**
* Get the current platform (machine type).
*/
readonly attribute wstring Platform;
/**
* Get the HTTP advertised user agent string.
*/
readonly attribute wstring UserAgent;
/**
* Returns a new stream observer that marshals data from another
* stream observer over to the thread specified by an event queue.
*/
nsIStreamObserver NewAsyncStreamObserver(in nsIStreamObserver receiver,
in nsIEventQueue eventQueue);
/**
* An asynchronous stream listener is used to ship data over to another thread specified
* by the thread's event queue. The receiver stream listener is then used to receive
* the data on the other thread.
*/
nsIStreamListener NewAsyncStreamListener(in nsIStreamListener receiver,
in nsIEventQueue eventQueue);
/**
* A synchronous stream listener pushes data through a pipe that ends up
* in an input stream to be read by another thread.
*/
nsIStreamListener NewSyncStreamListener(out nsIBufferInputStream inStream,
out nsIBufferOutputStream outStream);
/**
* This convenience routine first looks up the file protocol handler, and
* then uses it to construct a file channel from a native path string.
*/
nsIFileChannel NewChannelFromNativePath(in string nativePath);
};
%{C++
#define NS_IOSERVICE_CID \
{ /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \
0x9ac9e770, \
0x18bc, \
0x11d3, \
{0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
%}

View File

@@ -0,0 +1,42 @@
/* -*- Mode: IDL; 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.
*/
/* This interface defines a registry entry for the networking libraries
* external module registry. */
#include "nsISupports.idl"
#include "nsINetNotify.idl"
interface nsIEventQueue;
interface nsINetModRegEntry;
%{ C++
// {F126BD90-1472-11d3-A15A-0050041CAF44}
#define NS_NETMODREGENTRY_CID \
{ 0xf126bd90, 0x1472, 0x11d3, { 0xa1, 0x5a, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
%}
[scriptable, uuid(9F482BD0-1476-11d3-A15A-0050041CAF44)]
interface nsINetModRegEntry : nsISupports {
readonly attribute nsINetNotify mNotify;
readonly attribute nsIEventQueue mEventQ;
readonly attribute string mTopic;
readonly attribute nsCIDPtr mCID;
boolean Equals(in nsINetModRegEntry aEntry);
};

View File

@@ -0,0 +1,73 @@
/* -*- Mode: IDL; 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.
*/
/* The nsINetModuleMgr singleton service allows external module to register
* themselves with the networking library to receive events they want to
* receive.
*
* An external module that is interested in being notified when a particular
* networking level event occurs would register with this service, and
* implement the appropriate interface(s) that correspond to the events they
* want to receive. These interfaces are defined by networking internal
* components (for example, http would define a notification interface that
* the external cookies module would implement).
*/
#include "nsISupports.idl"
#include "nsIEnumerator.idl"
#include "nsINetNotify.idl"
interface nsIEventQueue;
%{ C++
// {4EBDAFE0-13BA-11d3-A15A-0050041CAF44}
#define NS_NETMODULEMGR_CID \
{ 0x4ebdafe0, 0x13ba, 0x11d3, { 0xa1, 0x5a, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
%}
[scriptable, uuid(ff9ead40-0ef2-11d3-9de6-0010a4053fd0)]
interface nsINetModuleMgr : nsISupports {
// Register the external module to receive notifications.
//
// ARGUMENTS:
// aTopic: The internal component that the external module wants to monitor.
// aEventQueue: The event queue to receive the events.
// aNotify: The external module interface methods to be called when an event is fired.
//
// RETURNS: nsresult
void RegisterModule(in string aTopic, in nsIEventQueue aEventQueue, in nsINetNotify aNotify, in nsCIDPtr aCID);
// Unregister the external module. Removes the nsINetModuleMgr binding between
// internal component and external module.
//
// ARGUMENTS:
// aTopic: The internal component being monitored.
// aNotify: The external modules notification module.
//
// RETURNS: nsresult
void UnregisterModule(in string aTopic, in nsIEventQueue aEventQueue, in nsINetNotify aNotify, in nsCIDPtr aCID);
// Enumerates all the registered modules for the specified topic.
//
// ARGUMENTS:
// aTopic: the component to get all the notifiers for.
// aEnumerator: the array of notifiers.
void EnumerateModules(in string aTopic, out nsISimpleEnumerator aEnumerator);
};

View File

@@ -0,0 +1,24 @@
/* -*- Mode: IDL; 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.
*/
#include "nsISupports.idl"
[uuid(4A3019E0-1CF3-11d3-A15B-0050041CAF44)]
interface nsINetNotify : nsISupports {
};

View File

@@ -0,0 +1,43 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
interface nsIURI;
/**
* An instance of nsIFfpEventSink should be passed as the eventSink
* argument of nsINetService::NewConnection for ftp URLs. It defines
* the callbacks to the application program (the html parser).
*/
[scriptable, uuid(dd47ee00-18c2-11d3-9337-00104ba0fd40)]
interface nsIProgressEventSink : nsISupports
{
/**
* Notify the EventSink that progress as occurred for the URL load.<BR>
*/
void OnProgress(in nsISupports ctxt,
in unsigned long aProgress,
in unsigned long aProgressMax);
/**
* Notify the EventSink with a status message for the URL load.<BR>
*/
void OnStatus(in nsISupports ctxt, in wstring aMsg);
};

View File

@@ -0,0 +1,34 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
[scriptable, uuid(a63f70c0-148b-11d3-9333-00104ba0fd40)]
interface nsIPrompt : nsISupports
{
boolean Confirm(in nsISupports ctxt, in wstring text);
boolean Prompt(in nsISupports ctxt, in wstring text,
in wstring defaultText, out wstring result);
boolean PromptUsernameAndPassword(in nsISupports ctxt, in wstring text,
out wstring user, out wstring pwd);
boolean PromptPassword(in nsISupports ctxt, in wstring text,
out wstring pwd);
};

View File

@@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
interface nsIURI;
interface nsIEventSinkGetter;
interface nsIChannel;
interface nsIEventQueue;
[scriptable, uuid(8984a6f0-1893-11d3-9337-00104ba0fd40)]
interface nsIProtocolHandler : nsISupports
{
readonly attribute string Scheme;
readonly attribute long DefaultPort;
string MakeAbsolute(in string aRelativeSpec, in nsIURI aBaseURI);
/**
* Makes a URI object that is suitable for loading by this protocol.
* In the usual case (when only the accessors provided by nsIURI are
* needed), this method just constructs a standard URI using the
* component manager with kStandardURLCID.
*/
nsIURI NewURI(in string aSpec, in nsIURI aBaseURI);
nsIChannel NewChannel(in string verb,
in nsIURI aURI,
in nsIEventSinkGetter eventSinkGetter,
in nsIEventQueue eventQueue);
};
%{C++
#define NS_NETWORK_PROTOCOL_PROGID "component://netscape/network/protocol"
#define NS_NETWORK_PROTOCOL_PROGID_PREFIX NS_NETWORK_PROTOCOL_PROGID "?name="
#define NS_NETWORK_PROTOCOL_PROGID_PREFIX_LENGTH 43 // nsCRT::strlen(NS_NETWORK_PROTOCOL_PROGID_PREFIX)
%}

View File

@@ -0,0 +1,61 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#ifndef _nsIProxy_h_
#define _nsIProxy_h_
#include "nsISupports.h"
/*
The nsIProxy interface allows setting and getting of proxy host and port.
This is for use by protocol handlers. If you are writing a protocol handler
and would like to support proxy behaviour then derive from this as well as
the nsIProtocolHandler class.
-Gagan Saksena 02/25/99
*/
class nsIProxy : public nsISupports
{
public:
/*
Get and Set the Proxy Host
*/
NS_IMETHOD GetProxyHost(const char* *o_ProxyHost) const = 0;
NS_IMETHOD SetProxyHost(const char* i_ProxyHost) = 0;
/*
Get and Set the Proxy Port
-1 on Set call indicates switch to default port
*/
NS_IMETHOD_(PRInt32)
GetProxyPort(void) const = 0;
NS_IMETHOD SetProxyPort(PRInt32 i_ProxyPort) = 0;
static const nsIID& GetIID() {
// {0492D011-CD2F-11d2-B013-006097BFC036}
static const nsIID NS_IPROXY_IID=
{ 0x492d011, 0xcd2f, 0x11d2, { 0xb0, 0x13, 0x0, 0x60, 0x97, 0xbf, 0xc0, 0x36 } };
return NS_IPROXY_IID;
};
};
#endif /* _nsIProxy_h_ */

View File

@@ -0,0 +1,43 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
interface nsIRequest : nsISupports
{
/**
* Cancels the current request. This will close any open input or
* output streams and terminate any async requests.
*/
void Cancel();
/**
* Suspends the current requests. This may have the effect of closing
* any underlying transport (in order to free up resources), although
* any open streams remain logically opened and will continue delivering
* data when the transport is resumed.
*/
void Suspend();
/**
* Resumes the current request. This may have the effect of re-opening
* any underlying transport and will resume the delivery of data to
* any open streams.
*/
void Resume();
};

View File

@@ -0,0 +1,56 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsISocketTransportService_h___
#define nsISocketTransportService_h___
#include "nsISupports.h"
class nsIChannel;
#define NS_ISOCKETTRANSPORTSERVICE_IID \
{ /* 9610f120-ef12-11d2-92b6-00105a1b0d64 */ \
0x9610f120, \
0xef12, \
0x11d2, \
{0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
}
#define NS_SOCKETTRANSPORTSERVICE_CID \
{ /* c07e81e0-ef12-11d2-92b6-00105a1b0d64 */ \
0xc07e81e0, \
0xef12, \
0x11d2, \
{0x92, 0xb6, 0x00, 0x10, 0x5a, 0x1b, 0x0d, 0x64} \
}
class nsISocketTransportService : public nsISupports
{
public:
NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISOCKETTRANSPORTSERVICE_IID);
NS_IMETHOD CreateTransport(const char* host, PRInt32 port,
nsIChannel* *result) = 0;
NS_IMETHOD Shutdown(void) = 0;
};
////////////////////////////////////////////////////////////////////////////////
#endif /* nsISocketTransportService_h___ */

View File

@@ -0,0 +1,51 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#include "nsIStreamObserver.idl"
interface nsIBufferInputStream;
interface nsIBufferOutputStream;
interface nsIEventQueue;
[scriptable, uuid(1a637020-1482-11d3-9333-00104ba0fd40)]
interface nsIStreamListener : nsIStreamObserver
{
void OnDataAvailable(in nsISupports ctxt,
in nsIBufferInputStream inStr,
in unsigned long sourceOffset,
in unsigned long count);
};
%{C++
// An asynchronous stream listener is used to ship data over to another thread specified
// by the thread's event queue. The receiver stream listener is then used to receive
// the data on the other thread.
extern NS_NET nsresult
NS_NewAsyncStreamListener(nsIStreamListener* *result,
nsIEventQueue* eventQueue,
nsIStreamListener* receiver);
// A synchronous stream listener pushes data through a pipe that ends up
// in an input stream to be read by another thread.
extern NS_NET nsresult
NS_NewSyncStreamListener(nsIBufferInputStream **inStream,
nsIBufferOutputStream **outStream,
nsIStreamListener **listener);
%}

View File

@@ -0,0 +1,59 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
interface nsIEventQueue;
[scriptable, uuid(fd91e2e0-1481-11d3-9333-00104ba0fd40)]
interface nsIStreamObserver : nsISupports
{
void OnStartBinding(in nsISupports ctxt);
void OnStopBinding(in nsISupports ctxt,
in nsresult status,
in wstring errorMsg);
/**
* Called after the stream is opened for reading or writing.
* The content type or headers may be accessed after this method
* is called.
*/
void OnStartRequest(in nsISupports ctxt);
void OnStopRequest(in nsISupports ctxt,
in nsresult status,
in wstring errorMsg);
};
%{C++
// An asynchronous stream observer is used to ship data over to another thread specified
// by the thread's event queue. The receiver stream observer is then used to receive
// the notifications on the other thread.
extern NS_NET nsresult
NS_NewAsyncStreamObserver(nsIStreamObserver* *result,
nsIEventQueue* eventQueue,
nsIStreamObserver* receiver);
// Generic status codes for OnStopBinding:
#define NS_BINDING_SUCCEEDED NS_OK
#define NS_BINDING_FAILED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 1)
#define NS_BINDING_ABORTED NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 2)
%}

View File

@@ -0,0 +1,122 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
/**
* URIs are essentially structured names for things -- anything.
* This interface provides accessors to destructure those names.
*
* This interface follows Tim Berners-Lee's URI spec:
*
* http://www.w3.org/Addressing/URI/URI_Overview.html
*
* essentially:
*
* ftp://username:password@hostname:portnumber/pathname
* \ / \ / \ / \ /\ /
* - --------------- ------ -------- -------
* | | | | |
* | | | | Path
* | | | Port
* | | Host
* | PreHost
* Scheme
*
* The subclass nsIURL provides a means to open an input or output
* stream to a URI as a source/destination, as well as providing additional
* accessors to destructure the path, query and reference portions typically
* associated with URLs.
*/
[scriptable, uuid(07a22cc0-0ce5-11d3-9331-00104ba0fd40)]
interface nsIURI : nsISupports
{
/**
* Returns a string representation of the URI. Setting the spec
* causes the new spec to be parsed, initializing the URI. Setting
* the spec (or any of the accessors) causes also any currently
* open streams on the URI's channel to be closed.
*/
attribute string Spec;
/**
* The Scheme is the protocol to which this URI refers. Setting
* the scheme is a special operation that builds up an equivalent
* URI string from the new scheme and all the other URI attributes
* and passes the it to the nsIOService to create a new URI for
* the new scheme.
*/
attribute string Scheme;
/**
* The PreHost portion includes elements like the optional
* username:password, or maybe other scheme specific items.
*/
attribute string PreHost;
/**
* The Host is the internet domain name to which this URI refers.
* Note that it could be an IP address as well.
*/
attribute string Host;
/**
* A return value of -1 indicates that no port value is set and the
* implementor of the specific scheme will use its default port.
* Similarly setting a value of -1 indicates that the default is to be used.
* Thus as an example:
* for HTTP, Port 80 is same as a return value of -1.
* However after setting a port (even if its default), the port number will
* appear in the ToNewCString function.
*/
attribute long Port;
/**
* Note that the path includes the leading '/' Thus if no path is
* available the Path accessor will return a "/"
* For SetPath if none is provided, one would be prefixed to the path.
*/
attribute string Path;
/**
* Note that this comparison is only on char* level. Use
* the scheme specific URI to do a more thorough check. For example,
* in HTTP:
* http://foo.com:80 == http://foo.com
* but this function through nsIURI alone will not return equality
* for this case.
*/
boolean Equals(in nsIURI other);
/**
* Clones the current URI. The newly created URI will be in a closed
* state even if the underlying channel of the cloned URI is open.
* Cloning allows the current location to be retained since once the
* channel is opened the URI may get redirected to a new location.
*/
nsIURI Clone();
/**
* Returns a new URI string that merges the relative part with defaults
* from the current URI's location. If the relative part actually
* specifies an absolute URI, the string is returned as is.
*/
string MakeAbsolute(in string relativePart);
};

View File

@@ -0,0 +1,83 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIURI.idl"
interface nsIChannel;
interface nsIEventSinkGetter;
[scriptable, uuid(78406350-0ce5-11d3-9331-00104ba0fd40)]
interface nsIURL : nsIURI
{
// The following 4 attributes breakdown the Path attribute
// into its constituents...
/**
* Returns the directory portion of a URL.
* If the URL denotes a path to a directory and not a file,
* e.g. http://foo/bar/, then the Directory attribute accesses
* the complete /foo/bar/ portion, and the FileName is the
* empty string. If the trailing slash is omitted, then the
* Directory is /foo/ and the file is bar (i.e. this is a
* syntactic, not a semantic breakdown of the Path).
*/
attribute string Directory;
/**
* Returns the file name portion of a URL.
* If the URL denotes a path to a directory and not a file,
* e.g. http://foo/bar/, then the Directory attribute accesses
* the complete /foo/bar/ portion, and the FileName is the
* empty string.
*/
attribute string FileName;
/**
* Returns the query portion (the part after the "?") of the URL.
* If there isn't one, the empty string is returned.
*/
attribute string Query;
/**
* Returns the reference portion (the part after the "#") of the URL.
* If there isn't one, the empty string is returned.
*/
attribute string Ref;
};
%{C++
/**
* Protocol writers can obtain a default nsIURL implementation by calling the
* component manager with NS_STANDARDURL_CID. The implementation returned will
* only implement the set of accessors specified by nsIURL. After obtaining the
* instance from the component manager, the Init routine must be called on it
* to initialize it from the user's URL spec.
*/
#define NS_STANDARDURL_CID \
{ /* 46fc2a26-ff66-11d2-8ccb-0060b0fc14a3 */ \
0x46fc2a26, \
0xff66, \
0x11d2, \
{0x8c, 0xcb, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
%}

View File

@@ -0,0 +1,54 @@
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
LIBRARY_NAME = netwerkbase_s
include $(DEPTH)/config/autoconf.mk
CPPSRCS = \
nsAsyncStreamListener.cpp \
nsSyncStreamListener.cpp \
nsIOService.cpp \
nsSocketTransport.cpp \
nsSocketTransportStreams.cpp \
nsSocketTransportService.cpp \
nsStandardUrl.cpp \
nsNetModuleMgr.cpp \
nsNetModRegEntry.cpp \
$(NULL)
include $(topsrcdir)/config/config.mk
MKSHLIB :=
# we don't want the shared lib, but we want to force the creation of a
# static l\ib.
override NO_SHARED_LIB=1
override NO_STATIC_LIB=
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,52 @@
# 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.
MODULE = netwerk
DEPTH = ..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LIBRARY_NAME=netwerkbase_s
CPP_OBJS = \
.\$(OBJDIR)\nsAsyncStreamListener.obj \
.\$(OBJDIR)\nsSyncStreamListener.obj \
.\$(OBJDIR)\nsIOService.obj \
.\$(OBJDIR)\nsSocketTransport.obj \
.\$(OBJDIR)\nsSocketTransportStreams.obj \
.\$(OBJDIR)\nsSocketTransportService.obj \
.\$(OBJDIR)\nsStandardUrl.obj \
.\$(OBJDIR)\nsNetModuleMgr.obj \
.\$(OBJDIR)\nsNetModRegEntry.obj \
$(NULL)
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
$(NULL)
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,540 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIStreamObserver.h"
#include "nsIStreamListener.h"
#include "nsIBufferInputStream.h"
#include "nsString.h"
#include "nsCRT.h"
#include "nsIEventQueue.h"
class nsAsyncStreamObserver : public nsIStreamObserver
{
public:
NS_DECL_ISUPPORTS
// nsIStreamObserver methods:
NS_IMETHOD OnStartBinding(nsISupports* context);
NS_IMETHOD OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg);
NS_IMETHOD OnStartRequest(nsISupports* context);
NS_IMETHOD OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg);
// nsAsyncStreamObserver methods:
nsAsyncStreamObserver(nsIEventQueue* aEventQ)
: mReceiver(nsnull), mStatus(NS_OK)
{
NS_INIT_REFCNT();
mEventQueue = aEventQ;
NS_IF_ADDREF(mEventQueue);
}
virtual ~nsAsyncStreamObserver();
void Init(nsIStreamObserver* aListener) {
mReceiver = aListener;
NS_ADDREF(mReceiver);
}
nsISupports* GetReceiver() { return mReceiver; }
nsresult GetStatus() { return mStatus; }
void SetStatus(nsresult value) { mStatus = value; }
protected:
nsIEventQueue* mEventQueue;
nsIStreamObserver* mReceiver;
nsresult mStatus;
};
class nsAsyncStreamListener : public nsAsyncStreamObserver,
public nsIStreamListener
{
public:
NS_DECL_ISUPPORTS_INHERITED
// nsIStreamListener methods:
NS_IMETHOD OnStartBinding(nsISupports* context)
{
return nsAsyncStreamObserver::OnStartBinding(context);
}
NS_IMETHOD OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
return nsAsyncStreamObserver::OnStopBinding(context, aStatus, aMsg);
}
NS_IMETHOD OnStartRequest(nsISupports* context)
{
return nsAsyncStreamObserver::OnStartRequest(context);
}
NS_IMETHOD OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
return nsAsyncStreamObserver::OnStopRequest(context, aStatus, aMsg);
}
NS_IMETHOD OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength);
// nsAsyncStreamListener methods:
nsAsyncStreamListener(nsIEventQueue* aEventQ)
: nsAsyncStreamObserver(aEventQ) {}
void Init(nsIStreamListener* aListener) {
mReceiver = aListener;
NS_ADDREF(mReceiver);
}
};
////////////////////////////////////////////////////////////////////////////////
class nsStreamListenerEvent : public PLEvent
{
public:
nsStreamListenerEvent(nsAsyncStreamObserver* listener,
nsISupports* context);
virtual ~nsStreamListenerEvent();
nsresult Fire(nsIEventQueue* aEventQ);
NS_IMETHOD HandleEvent() = 0;
protected:
static void PR_CALLBACK HandlePLEvent(PLEvent* aEvent);
static void PR_CALLBACK DestroyPLEvent(PLEvent* aEvent);
nsAsyncStreamObserver* mListener;
nsISupports* mContext;
};
////////////////////////////////////////////////////////////////////////////////
nsStreamListenerEvent::nsStreamListenerEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: mListener(listener), mContext(context)
{
NS_ADDREF(mListener);
NS_IF_ADDREF(mContext);
}
nsStreamListenerEvent::~nsStreamListenerEvent()
{
NS_RELEASE(mListener);
NS_IF_RELEASE(mContext);
}
void PR_CALLBACK nsStreamListenerEvent::HandlePLEvent(PLEvent* aEvent)
{
// WARNING: This is a dangerous cast since it must adjust the pointer
// to compensate for the vtable...
nsStreamListenerEvent *ev = (nsStreamListenerEvent*)aEvent;
nsresult rv = ev->HandleEvent();
ev->mListener->SetStatus(rv);
}
void PR_CALLBACK nsStreamListenerEvent::DestroyPLEvent(PLEvent* aEvent)
{
// WARNING: This is a dangerous cast since it must adjust the pointer
// to compensate for the vtable...
nsStreamListenerEvent *ev = (nsStreamListenerEvent*)aEvent;
delete ev;
}
nsresult
nsStreamListenerEvent::Fire(nsIEventQueue* aEventQueue)
{
NS_PRECONDITION(nsnull != aEventQueue, "nsIEventQueue for thread is null");
PL_InitEvent(this, nsnull,
(PLHandleEventProc) nsStreamListenerEvent::HandlePLEvent,
(PLDestroyEventProc) nsStreamListenerEvent::DestroyPLEvent);
PRStatus status = aEventQueue->PostEvent(this);
return status == PR_SUCCESS ? NS_OK : NS_ERROR_FAILURE;
}
////////////////////////////////////////////////////////////////////////////////
nsAsyncStreamObserver::~nsAsyncStreamObserver()
{
NS_RELEASE(mReceiver);
NS_IF_RELEASE(mEventQueue);
}
NS_IMPL_ISUPPORTS(nsAsyncStreamObserver, nsIStreamObserver::GetIID());
NS_IMPL_ISUPPORTS_INHERITED(nsAsyncStreamListener,
nsAsyncStreamObserver,
nsIStreamListener);
////////////////////////////////////////////////////////////////////////////////
//
// OnStartBinding...
//
////////////////////////////////////////////////////////////////////////////////
class nsOnStartBindingEvent : public nsStreamListenerEvent
{
public:
nsOnStartBindingEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: nsStreamListenerEvent(listener, context), mContentType(nsnull) {}
virtual ~nsOnStartBindingEvent();
NS_IMETHOD HandleEvent();
protected:
char* mContentType;
};
nsOnStartBindingEvent::~nsOnStartBindingEvent()
{
if (mContentType)
delete[] mContentType;
}
NS_IMETHODIMP
nsOnStartBindingEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener->GetReceiver();
return receiver->OnStartBinding(mContext);
}
NS_IMETHODIMP
nsAsyncStreamObserver::OnStartBinding(nsISupports* context)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStartBindingEvent* event =
new nsOnStartBindingEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
//
// OnStopBinding
//
////////////////////////////////////////////////////////////////////////////////
class nsOnStopBindingEvent : public nsStreamListenerEvent
{
public:
nsOnStopBindingEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: nsStreamListenerEvent(listener, context),
mStatus(NS_OK), mMessage(nsnull) {}
virtual ~nsOnStopBindingEvent();
nsresult Init(nsresult status, const PRUnichar* aMsg);
NS_IMETHOD HandleEvent();
protected:
nsresult mStatus;
PRUnichar* mMessage;
};
nsOnStopBindingEvent::~nsOnStopBindingEvent()
{
}
nsresult
nsOnStopBindingEvent::Init(nsresult status, const PRUnichar* aMsg)
{
mStatus = status;
mMessage = (PRUnichar*)aMsg;
return NS_OK;
}
NS_IMETHODIMP
nsOnStopBindingEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener->GetReceiver();
return receiver->OnStopBinding(mContext, mStatus, mMessage);
}
NS_IMETHODIMP
nsAsyncStreamObserver::OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStopBindingEvent* event =
new nsOnStopBindingEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Init(aStatus, aMsg);
if (NS_FAILED(rv)) goto failed;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
//
// OnStartRequest...
//
////////////////////////////////////////////////////////////////////////////////
class nsOnStartRequestEvent : public nsStreamListenerEvent
{
public:
nsOnStartRequestEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: nsStreamListenerEvent(listener, context), mContentType(nsnull) {}
virtual ~nsOnStartRequestEvent();
NS_IMETHOD HandleEvent();
protected:
char* mContentType;
};
nsOnStartRequestEvent::~nsOnStartRequestEvent()
{
if (mContentType)
delete[] mContentType;
}
NS_IMETHODIMP
nsOnStartRequestEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener->GetReceiver();
return receiver->OnStartRequest(mContext);
}
NS_IMETHODIMP
nsAsyncStreamObserver::OnStartRequest(nsISupports* context)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStartRequestEvent* event =
new nsOnStartRequestEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
//
// OnStopRequest
//
////////////////////////////////////////////////////////////////////////////////
class nsOnStopRequestEvent : public nsStreamListenerEvent
{
public:
nsOnStopRequestEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: nsStreamListenerEvent(listener, context),
mStatus(NS_OK), mMessage(nsnull) {}
virtual ~nsOnStopRequestEvent();
nsresult Init(nsresult status, const PRUnichar* aMsg);
NS_IMETHOD HandleEvent();
protected:
nsresult mStatus;
PRUnichar* mMessage;
};
nsOnStopRequestEvent::~nsOnStopRequestEvent()
{
}
nsresult
nsOnStopRequestEvent::Init(nsresult status, const PRUnichar* aMsg)
{
mStatus = status;
mMessage = (PRUnichar*)aMsg;
return NS_OK;
}
NS_IMETHODIMP
nsOnStopRequestEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener->GetReceiver();
return receiver->OnStopRequest(mContext, mStatus, mMessage);
}
NS_IMETHODIMP
nsAsyncStreamObserver::OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStopRequestEvent* event =
new nsOnStopRequestEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Init(aStatus, aMsg);
if (NS_FAILED(rv)) goto failed;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
//
// OnDataAvailable
//
////////////////////////////////////////////////////////////////////////////////
class nsOnDataAvailableEvent : public nsStreamListenerEvent
{
public:
nsOnDataAvailableEvent(nsAsyncStreamObserver* listener,
nsISupports* context)
: nsStreamListenerEvent(listener, context),
mIStream(nsnull), mLength(0) {}
virtual ~nsOnDataAvailableEvent();
nsresult Init(nsIBufferInputStream* aIStream, PRUint32 aSourceOffset,
PRUint32 aLength);
NS_IMETHOD HandleEvent();
protected:
nsIBufferInputStream* mIStream;
PRUint32 mSourceOffset;
PRUint32 mLength;
};
nsOnDataAvailableEvent::~nsOnDataAvailableEvent()
{
NS_RELEASE(mIStream);
}
nsresult
nsOnDataAvailableEvent::Init(nsIBufferInputStream* aIStream, PRUint32 aSourceOffset,
PRUint32 aLength)
{
mSourceOffset = aSourceOffset;
mLength = aLength;
mIStream = aIStream;
NS_ADDREF(mIStream);
return NS_OK;
}
NS_IMETHODIMP
nsOnDataAvailableEvent::HandleEvent()
{
nsIStreamListener* receiver = (nsIStreamListener*)mListener->GetReceiver();
return receiver->OnDataAvailable(mContext, mIStream, mSourceOffset, mLength);
}
NS_IMETHODIMP
nsAsyncStreamListener::OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnDataAvailableEvent* event =
new nsOnDataAvailableEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Init(aIStream, aSourceOffset, aLength);
if (NS_FAILED(rv)) goto failed;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
NS_NET nsresult
NS_NewAsyncStreamObserver(nsIStreamObserver* *result,
nsIEventQueue* eventQueue,
nsIStreamObserver* receiver)
{
nsAsyncStreamObserver* l =
new nsAsyncStreamObserver(eventQueue);
if (l == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
l->Init(receiver);
NS_ADDREF(l);
*result = l;
return NS_OK;
}
NS_NET nsresult
NS_NewAsyncStreamListener(nsIStreamListener* *result,
nsIEventQueue* eventQueue,
nsIStreamListener* receiver)
{
nsAsyncStreamListener* l =
new nsAsyncStreamListener(eventQueue);
if (l == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
l->Init(receiver);
NS_ADDREF(l);
*result = l;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,368 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsFileTransport.h"
#include "nsFileTransportService.h"
#include "nsIStreamListener.h"
#include "nsCRT.h"
#include "nscore.h"
#include "nsIFileStream.h"
#include "nsFileSpec.h"
#include "nsIBuffer.h"
#include "nsIBufferInputStream.h"
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
////////////////////////////////////////////////////////////////////////////////
// nsFileTransport methods:
nsFileTransport::nsFileTransport()
: mPath(nsnull), mContext(nsnull), mListener(nsnull), mState(ENDED),
mSuspended(PR_FALSE), mFileStream(nsnull), mBuffer(nsnull),
mBufferStream(nsnull), mStatus(NS_OK), mService(nsnull), mSourceOffset(0)
{
NS_INIT_REFCNT();
mMonitor = PR_NewMonitor();
}
nsFileTransport::~nsFileTransport()
{
if (mPath) nsCRT::free(mPath);
PR_DestroyMonitor(mMonitor);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mContext);
NS_IF_RELEASE(mService);
NS_IF_RELEASE(mFileStream);
NS_IF_RELEASE(mBuffer);
NS_IF_RELEASE(mBufferStream);
}
nsresult
nsFileTransport::Init(const char* path,
nsFileTransportService* service)
{
mPath = nsCRT::strdup(path);
if (mPath == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
mService = service;
NS_ADDREF(mService);
return NS_OK;
}
nsresult
nsFileTransport::Init(nsISupports* context,
nsIStreamListener* listener,
State state, PRUint32 startPosition, PRInt32 count)
{
nsresult rv = NS_OK;
if (!mMonitor)
return NS_ERROR_OUT_OF_MEMORY;
PR_EnterMonitor(mMonitor);
if (mState != ENDED)
rv = NS_ERROR_FAILURE;
else {
mContext = context;
NS_IF_ADDREF(mContext);
mListener = listener;
NS_ADDREF(mListener);
mState = state;
mSourceOffset = startPosition;
mAmount = count;
}
PR_ExitMonitor(mMonitor);
return rv;
}
NS_IMPL_ADDREF(nsFileTransport);
NS_IMPL_RELEASE(nsFileTransport);
NS_IMETHODIMP
nsFileTransport::QueryInterface(const nsIID& aIID, void* *aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsIChannel::GetIID()) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = NS_STATIC_CAST(nsIChannel*, this);
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsIRunnable::GetIID())) {
*aInstancePtr = NS_STATIC_CAST(nsIRunnable*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
NS_IMETHODIMP
nsFileTransport::Cancel(void)
{
nsresult rv = NS_OK;
if (!mMonitor)
return NS_ERROR_OUT_OF_MEMORY;
PR_EnterMonitor(mMonitor);
mStatus = NS_BINDING_ABORTED;
if (mSuspended) {
Resume();
}
mState = ENDING;
PR_ExitMonitor(mMonitor);
return rv;
}
NS_IMETHODIMP
nsFileTransport::Suspend(void)
{
nsresult rv = NS_OK;
if (!mMonitor)
return NS_ERROR_OUT_OF_MEMORY;
PR_EnterMonitor(mMonitor);
if (!mSuspended) {
// XXX close the stream here?
mStatus = mService->Suspend(this);
mSuspended = PR_TRUE;
}
PR_ExitMonitor(mMonitor);
return rv;
}
NS_IMETHODIMP
nsFileTransport::Resume(void)
{
nsresult rv = NS_OK;
if (!mMonitor)
return NS_ERROR_OUT_OF_MEMORY;
PR_EnterMonitor(mMonitor);
if (!mSuspended) {
// XXX re-open the stream and seek here?
mStatus = mService->Resume(this);
mSuspended = PR_FALSE;
}
PR_ExitMonitor(mMonitor);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP
nsFileTransport::GetURI(nsIURI* *aURL)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileTransport::AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener)
{
nsresult rv;
nsIStreamListener* asyncListener;
rv = NS_NewAsyncStreamListener(&asyncListener, eventQueue, listener);
if (NS_FAILED(rv)) return rv;
rv = Init(ctxt, asyncListener, START_READ, startPosition, readCount);
NS_RELEASE(asyncListener);
rv = mService->DispatchRequest(this);
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
NS_IMETHODIMP
nsFileTransport::AsyncWrite(nsIInputStream* fromStream,
PRUint32 startPosition,
PRInt32 writeCount,
nsISupports* context,
nsIEventQueue* appEventQueue,
nsIStreamObserver* observer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileTransport::OpenInputStream(PRUint32 startPosition, PRInt32 readCount,
nsIInputStream* *result)
{
nsresult rv;
NS_ASSERTION(startPosition == 0, "fix me");
nsIStreamListener* syncListener;
nsIBufferInputStream* inStr;
rv = NS_NewSyncStreamListener(&syncListener, &inStr);
if (NS_FAILED(rv)) return rv;
rv = Init(nsnull, syncListener, START_READ, 0, -1);
NS_RELEASE(syncListener);
if (NS_FAILED(rv)) {
NS_RELEASE(inStr);
return rv;
}
rv = mService->DispatchRequest(this);
if (NS_FAILED(rv)) {
NS_RELEASE(inStr);
return rv;
}
*result = inStr;
return NS_OK;
}
NS_IMETHODIMP
nsFileTransport::OpenOutputStream(PRUint32 startPosition, nsIOutputStream* *result)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
void
nsFileTransport::Process(void)
{
if (!mMonitor) {
mState = ENDING;
return;
}
PR_EnterMonitor(mMonitor);
switch (mState) {
case START_READ: {
nsISupports* fs;
nsFileSpec spec(mPath);
mStatus = mListener->OnStartBinding(mContext); // always send the start notification
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewTypicalInputFileStream(&fs, spec);
if (NS_FAILED(mStatus)) goto error;
mStatus = fs->QueryInterface(nsIInputStream::GetIID(), (void**)&mFileStream);
NS_RELEASE(fs);
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewBuffer(&mBuffer, NS_FILE_TRANSPORT_BUFFER_SIZE,
NS_FILE_TRANSPORT_BUFFER_SIZE);
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewBufferInputStream(&mBufferStream, mBuffer, PR_FALSE);
if (NS_FAILED(mStatus)) goto error;
mState = READING;
break;
}
case READING: {
if (NS_FAILED(mStatus)) goto error;
PRUint32 amt;
nsIInputStream* inStr = NS_STATIC_CAST(nsIInputStream*, mFileStream);
PRUint32 inLen;
mStatus = inStr->GetLength(&inLen);
if (NS_FAILED(mStatus)) goto error;
mStatus = mBuffer->WriteFrom(inStr, inLen, &amt);
if (mStatus == NS_BASE_STREAM_EOF) goto error;
if (NS_FAILED(mStatus)) goto error;
// and feed the buffer to the application via the byte buffer stream:
// XXX maybe amt should be mBufferStream->GetLength():
mStatus = mListener->OnDataAvailable(mContext, mBufferStream, mSourceOffset, amt);
if (NS_FAILED(mStatus)) goto error;
mSourceOffset += amt;
// stay in the READING state
break;
}
case START_WRITE: {
nsISupports* fs;
nsFileSpec spec(mPath);
mStatus = mListener->OnStartBinding(mContext); // always send the start notification
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewTypicalOutputFileStream(&fs, spec);
if (NS_FAILED(mStatus)) goto error;
mStatus = fs->QueryInterface(nsIOutputStream::GetIID(), (void**)&mFileStream);
NS_RELEASE(fs);
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewBuffer(&mBuffer, NS_FILE_TRANSPORT_BUFFER_SIZE,
NS_FILE_TRANSPORT_BUFFER_SIZE);
if (NS_FAILED(mStatus)) goto error;
mStatus = NS_NewBufferInputStream(&mBufferStream, mBuffer, PR_FALSE);
if (NS_FAILED(mStatus)) goto error;
mState = WRITING;
break;
}
case WRITING: {
break;
}
case ENDING: {
NS_IF_RELEASE(mBufferStream);
mBufferStream = nsnull;
NS_IF_RELEASE(mFileStream);
mFileStream = nsnull;
// XXX where do we get the error message?
(void)mListener->OnStopBinding(mContext, mStatus, nsnull);
mState = ENDED;
break;
}
case ENDED: {
NS_NOTREACHED("trying to continue an ended file transfer");
break;
}
}
PR_ExitMonitor(mMonitor);
return;
error:
mState = ENDING;
PR_ExitMonitor(mMonitor);
return;
}
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileTransport::Run(void)
{
while (mState != ENDED && !mSuspended) {
Process();
}
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,102 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsFileTransport_h___
#define nsFileTransport_h___
#include "nsIChannel.h"
#include "nsIThread.h"
#include "nsIEventQueue.h"
#include "prmon.h"
class nsFileTransportService;
class nsIBaseStream;
class nsIString;
class nsIBuffer;
class nsIBufferInputStream;
class nsFileTransport : public nsIChannel, public nsIRunnable
{
public:
NS_DECL_ISUPPORTS
// nsIRequest methods:
NS_IMETHOD Cancel(void);
NS_IMETHOD Suspend(void);
NS_IMETHOD Resume(void);
// nsIChannel methods:
NS_IMETHOD GetURI(nsIURI * *aURL);
NS_IMETHOD OpenInputStream(PRUint32 startPosition, PRInt32 readCount, nsIInputStream **_retval);
NS_IMETHOD OpenOutputStream(PRUint32 startPosition, nsIOutputStream **_retval);
NS_IMETHOD AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener);
NS_IMETHOD AsyncWrite(nsIInputStream *fromStream,
PRUint32 startPosition, PRInt32 writeCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamObserver *observer);
// nsIRunnable methods:
NS_IMETHOD Run(void);
// nsFileTransport methods:
nsFileTransport();
virtual ~nsFileTransport();
enum State {
START_READ,
READING,
START_WRITE,
WRITING,
ENDING,
ENDED
};
nsresult Init(const char* path,
nsFileTransportService* service);
nsresult Init(nsISupports* context,
nsIStreamListener* listener,
State state, PRUint32 startPosition, PRInt32 count);
void Process(void);
protected:
char* mPath;
nsISupports* mContext;
nsIStreamListener* mListener;
nsFileTransportService* mService;
State mState;
PRBool mSuspended;
// state variables:
nsIBaseStream* mFileStream; // cast to nsIInputStream/nsIOutputStream for reading/writing
nsIBuffer* mBuffer;
nsIBufferInputStream* mBufferStream;
nsresult mStatus;
PRUint32 mSourceOffset;
PRInt32 mAmount;
private:
PRMonitor* mMonitor;
};
#define NS_FILE_TRANSPORT_BUFFER_SIZE (4*1024)
#endif /* nsFileTransport_h___ */

View File

@@ -0,0 +1,132 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsFileTransportService.h"
#include "nsFileTransport.h"
#include "nsIThread.h"
#include "nsIFileStream.h"
#include "prmem.h"
#include "nsIStreamListener.h"
////////////////////////////////////////////////////////////////////////////////
// nsFileTransportService methods:
nsFileTransportService::nsFileTransportService()
: mPool(nsnull)
{
NS_INIT_REFCNT();
}
nsresult
nsFileTransportService::Init()
{
nsresult rv;
rv = NS_NewThreadPool(&mPool, NS_FILE_TRANSPORT_WORKER_COUNT,
NS_FILE_TRANSPORT_WORKER_COUNT, 8*1024);
return rv;
}
nsFileTransportService::~nsFileTransportService()
{
// this will wait for all outstanding requests to be processed, then
// join with the worker threads, and finally free the pool:
NS_IF_RELEASE(mPool);
}
NS_METHOD
nsFileTransportService::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsFileTransportService* trans = new nsFileTransportService();
if (trans == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(trans);
nsresult rv = trans->Init();
if (NS_SUCCEEDED(rv)) {
rv = trans->QueryInterface(aIID, aResult);
}
NS_RELEASE(trans);
return rv;
}
NS_IMPL_ISUPPORTS(nsFileTransportService, nsIFileTransportService::GetIID());
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileTransportService::CreateTransport(const char* path,
nsIChannel* *result)
{
nsresult rv;
nsFileTransport* trans = new nsFileTransport();
if (trans == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = trans->Init(path, this);
if (NS_FAILED(rv)) {
delete trans;
return rv;
}
NS_ADDREF(trans);
*result = trans;
return NS_OK;
}
NS_IMETHODIMP
nsFileTransportService::ProcessPendingRequests(void)
{
return mPool->ProcessPendingRequests();
}
nsresult
nsFileTransportService::DispatchRequest(nsIRunnable* runnable)
{
return mPool->DispatchRequest(runnable);
}
////////////////////////////////////////////////////////////////////////////////
nsresult
nsFileTransportService::Suspend(nsFileTransport* request)
{
nsresult rv;
if (mSuspended == nsnull) {
rv = NS_NewISupportsArray(&mSuspended);
if (NS_FAILED(rv)) return rv;
}
return mSuspended->AppendElement(NS_STATIC_CAST(nsIChannel*, request));
}
nsresult
nsFileTransportService::Resume(nsFileTransport* request)
{
nsresult rv;
if (mSuspended == nsnull)
return NS_ERROR_FAILURE;
// XXX RemoveElement returns a bool instead of nsresult!
PRBool removed = mSuspended->RemoveElement(NS_STATIC_CAST(nsIChannel*, request));
rv = removed ? NS_OK : NS_ERROR_FAILURE;
if (NS_FAILED(rv)) return rv;
// restart the request
rv = mPool->DispatchRequest(NS_STATIC_CAST(nsIRunnable*, request));
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,64 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsFileTransportService_h___
#define nsFileTransportService_h___
#include "nsIFileTransportService.h"
#include "nsISupportsArray.h"
#include "nsIThread.h"
#include "nscore.h"
#include "nsIEventQueue.h"
class nsFileTransport;
////////////////////////////////////////////////////////////////////////////////
#define NS_FILE_TRANSPORT_WORKER_COUNT 4
class nsFileTransportService : public nsIFileTransportService
{
public:
NS_DECL_ISUPPORTS
// nsIFileTransportService methods:
NS_IMETHOD CreateTransport(const char* path,
nsIChannel* *result);
NS_IMETHOD ProcessPendingRequests(void);
// nsFileTransportService methods:
nsFileTransportService();
virtual ~nsFileTransportService();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
nsresult DispatchRequest(nsIRunnable* runnable);
nsresult Suspend(nsFileTransport* request);
nsresult Resume(nsFileTransport* request);
protected:
nsIThreadPool* mPool;
nsISupportsArray* mSuspended;
};
////////////////////////////////////////////////////////////////////////////////
#endif /* nsFileTransportService_h___ */

View File

@@ -0,0 +1,359 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIOService.h"
#include "nsIProtocolHandler.h"
#include "nscore.h"
#include "nsString2.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsIFileTransportService.h"
#include "nsIURI.h"
#include "nsIStreamListener.h"
#include "nsCOMPtr.h"
#include "prprf.h"
#include "prmem.h" // for PR_Malloc
#include <ctype.h> // for isalpha
#include "nsIFileProtocolHandler.h" // for NewChannelFromNativePath
static NS_DEFINE_CID(kFileTransportService, NS_FILETRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kEventQueueService, NS_EVENTQUEUESERVICE_CID);
////////////////////////////////////////////////////////////////////////////////
nsIOService::nsIOService()
{
NS_INIT_REFCNT();
}
nsresult
nsIOService::Init()
{
return NS_OK;
}
nsIOService::~nsIOService()
{
}
NS_METHOD
nsIOService::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsIOService* ios = new nsIOService();
if (ios == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(ios);
nsresult rv = ios->QueryInterface(aIID, aResult);
NS_RELEASE(ios);
return rv;
}
NS_IMPL_ISUPPORTS(nsIOService, nsIIOService::GetIID());
////////////////////////////////////////////////////////////////////////////////
#define MAX_SCHEME_LENGTH 64 // XXX big enough?
#define MAX_NET_PROGID_LENGTH (MAX_SCHEME_LENGTH + NS_NETWORK_PROTOCOL_PROGID_PREFIX_LENGTH + 1)
NS_IMETHODIMP
nsIOService::GetProtocolHandler(const char* scheme, nsIProtocolHandler* *result)
{
nsresult rv;
NS_ASSERTION(NS_NETWORK_PROTOCOL_PROGID_PREFIX_LENGTH
== nsCRT::strlen(NS_NETWORK_PROTOCOL_PROGID_PREFIX),
"need to fix NS_NETWORK_PROTOCOL_PROGID_PREFIX_LENGTH");
// XXX we may want to speed this up by introducing our own protocol
// scheme -> protocol handler mapping, avoiding the string manipulation
// and service manager stuff
char buf[MAX_NET_PROGID_LENGTH];
nsAutoString2 progID(NS_NETWORK_PROTOCOL_PROGID_PREFIX);
progID += scheme;
progID.ToCString(buf, MAX_NET_PROGID_LENGTH);
nsIProtocolHandler* handler;
rv = nsServiceManager::GetService(buf, nsIProtocolHandler::GetIID(),
(nsISupports**)&handler);
if (NS_FAILED(rv)) return rv;
*result = handler;
return NS_OK;
}
static nsresult
GetScheme(const char* inURI, char* *scheme)
{
// search for something up to a colon, and call it the scheme
char c;
const char* URI = inURI;
PRUint32 i = 0;
PRUint32 length = 0;
while ((c = *URI++) != '\0') {
if (c == ':') {
char* newScheme = (char *)PR_Malloc(length+1);
if (newScheme == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
nsCRT::memcpy(newScheme, inURI, length);
newScheme[length] = '\0';
*scheme = newScheme;
return NS_OK;
}
else if (isalpha(c)) {
length++;
}
}
return NS_ERROR_FAILURE; // no colon
}
NS_IMETHODIMP
nsIOService::NewURI(const char* aSpec, nsIURI* aBaseURI,
nsIURI* *result)
{
nsresult rv;
char* scheme;
rv = GetScheme(aSpec, &scheme);
if (NS_FAILED(rv)) {
if (aBaseURI)
rv = aBaseURI->GetScheme(&scheme);
if (NS_FAILED(rv)) return rv;
}
nsCOMPtr<nsIProtocolHandler> handler;
rv = GetProtocolHandler(scheme, getter_AddRefs(handler));
nsCRT::free(scheme);
if (NS_FAILED(rv)) return rv;
rv = handler->NewURI(aSpec, aBaseURI, result);
//NS_RELEASE(handler);
return rv;
}
NS_IMETHODIMP
nsIOService::NewChannelFromURI(const char* verb, nsIURI *aURI,
nsIEventSinkGetter *eventSinkGetter,
nsIChannel **result)
{
nsresult rv;
char* scheme;
rv = aURI->GetScheme(&scheme);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIProtocolHandler> handler;
rv = GetProtocolHandler(scheme, getter_AddRefs(handler));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIEventQueue> eventQ;
NS_WITH_SERVICE(nsIEventQueueService, eventQService, kEventQueueService, &rv);
if (NS_FAILED(rv)) return rv;
rv = eventQService->GetThreadEventQueue(PR_CurrentThread(),
getter_AddRefs(eventQ));
if (NS_FAILED(rv)) return rv;
nsIChannel* channel;
rv = handler->NewChannel(verb, aURI, eventSinkGetter, eventQ,
&channel);
if (NS_FAILED(rv)) return rv;
*result = channel;
return rv;
}
NS_IMETHODIMP
nsIOService::NewChannel(const char* verb, const char *aSpec,
nsIURI *aBaseURI,
nsIEventSinkGetter *eventSinkGetter,
nsIChannel **result)
{
nsresult rv;
nsIURI* uri;
rv = NewURI(aSpec, aBaseURI, &uri);
if (NS_FAILED(rv)) return rv;
rv = NewChannelFromURI(verb, uri, eventSinkGetter, result);
NS_RELEASE(uri);
return rv;
}
NS_IMETHODIMP
nsIOService::MakeAbsolute(const char *aSpec,
nsIURI *aBaseURI,
char **result)
{
nsresult rv;
NS_ASSERTION(aBaseURI, "It doesn't make sense to not supply a base URI");
char* scheme;
rv = GetScheme(aSpec, &scheme);
if (NS_SUCCEEDED(rv)) {
// if aSpec has a scheme, then it's already absolute
*result = nsCRT::strdup(aSpec);
if (*result == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
// else ask the protocol handler for the base URI to deal with it
rv = aBaseURI->GetScheme(&scheme);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIProtocolHandler> handler;
rv = GetProtocolHandler(scheme, getter_AddRefs(handler));
nsCRT::free(scheme);
if (NS_FAILED(rv)) return rv;
rv = handler->MakeAbsolute(aSpec, aBaseURI, result);
return rv;
}
NS_IMETHODIMP
nsIOService::GetAppCodeName(PRUnichar* *aAppCodeName)
{
*aAppCodeName = mAppCodeName.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP
nsIOService::GetAppVersion(PRUnichar* *aAppVersion)
{
*aAppVersion = mAppVersion.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP
nsIOService::GetAppName(PRUnichar* *aAppName)
{
*aAppName = mAppName.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP
nsIOService::GetLanguage(PRUnichar* *aLanguage)
{
*aLanguage = mAppLanguage.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP
nsIOService::GetPlatform(PRUnichar* *aPlatform)
{
*aPlatform = mAppPlatform.ToNewUnicode();
return NS_OK;
}
NS_IMETHODIMP
nsIOService::GetUserAgent(PRUnichar* *aUserAgent)
{
// XXX this should load the http module and ask for the user agent string from it.
char buf[200];
PR_snprintf(buf, 200, "%.100s/%.90s", mAppCodeName.GetBuffer(), mAppVersion.GetBuffer());
nsAutoString2 aUA(buf);
*aUserAgent = aUA.ToNewUnicode();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsIOService::NewAsyncStreamObserver(nsIStreamObserver *receiver, nsIEventQueue *eventQueue,
nsIStreamObserver **result)
{
return NS_NewAsyncStreamObserver(result, eventQueue, receiver);
}
NS_IMETHODIMP
nsIOService::NewAsyncStreamListener(nsIStreamListener *receiver, nsIEventQueue *eventQueue,
nsIStreamListener **result)
{
return NS_NewAsyncStreamListener(result, eventQueue, receiver);
}
NS_IMETHODIMP
nsIOService::NewSyncStreamListener(nsIBufferInputStream **inStream,
nsIBufferOutputStream **outStream,
nsIStreamListener **listener)
{
return NS_NewSyncStreamListener(inStream, outStream, listener);
}
NS_IMETHODIMP
nsIOService::NewChannelFromNativePath(const char *nativePath, nsIFileChannel **result)
{
nsresult rv;
nsIProtocolHandler* handler;
rv = GetProtocolHandler("file", &handler);
if (NS_FAILED(rv)) return rv;
nsIFileProtocolHandler* fileHandler = nsnull;
rv = handler->QueryInterface(nsIFileProtocolHandler::GetIID(),
(void**)&fileHandler);
NS_RELEASE(handler);
if (NS_FAILED(rv)) return rv;
nsIFileChannel* channel;
rv = fileHandler->NewChannelFromNativePath(nativePath, &channel);
NS_RELEASE(fileHandler);
if (NS_FAILED(rv)) return rv;
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// HELPER ROUTINES
////////////////////////////////////////////////////////////////////////////////
#if 0
static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID);
static NS_DEFINE_IID(kINetServiceIID, NS_INETSERVICE_IID);
nsresult NS_NewURI(nsIURI** aInstancePtrResult,
const char *aSpec,
nsIURI* aBaseURI)
{
NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
if (nsnull == aInstancePtrResult) {
return NS_ERROR_NULL_POINTER;
}
nsINetService *inet = nsnull;
nsresult rv = nsServiceManager::GetService(kNetServiceCID,
kINetServiceIID,
(nsISupports **)&inet);
if (NS_FAILED(rv)) return rv;
rv = inet->NewURI(aSpec, aInstancePtrResult, aBaseURI);
if (NS_FAILED(rv)) return rv;
nsServiceManager::ReleaseService(kNetServiceCID, inet);
return rv;
}
#endif
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,73 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsIOService_h__
#define nsIOService_h__
#include "nsIIOService.h"
#include "nsString2.h"
class nsIOService : public nsIIOService
{
public:
NS_DECL_ISUPPORTS
// nsIIOService methods:
NS_IMETHOD GetProtocolHandler(const char *scheme,
nsIProtocolHandler **_retval);
NS_IMETHOD MakeAbsolute(const char *aRelativeSpec,
nsIURI *aBaseURI,
char **_retval);
NS_IMETHOD NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **_retval);
NS_IMETHOD NewChannelFromURI(const char* verb, nsIURI *aURI,
nsIEventSinkGetter *eventSinkGetter,
nsIChannel **_retval);
NS_IMETHOD NewChannel(const char* verb, const char *aSpec,
nsIURI *aBaseURI,
nsIEventSinkGetter *eventSinkGetter,
nsIChannel **_retval);
NS_IMETHOD GetAppCodeName(PRUnichar* *aAppCodeName);
NS_IMETHOD GetAppVersion(PRUnichar* *aAppVersion);
NS_IMETHOD GetAppName(PRUnichar* *aAppName);
NS_IMETHOD GetLanguage(PRUnichar* *aLanguage);
NS_IMETHOD GetPlatform(PRUnichar* *aPlatform);
NS_IMETHOD GetUserAgent(PRUnichar* *aUserAgent);
NS_IMETHOD NewAsyncStreamObserver(nsIStreamObserver *receiver, nsIEventQueue *eventQueue, nsIStreamObserver **_retval);
NS_IMETHOD NewAsyncStreamListener(nsIStreamListener *receiver, nsIEventQueue *eventQueue, nsIStreamListener **_retval);
NS_IMETHOD NewSyncStreamListener(nsIBufferInputStream **inStream, nsIBufferOutputStream **outStream, nsIStreamListener **_retval);
NS_IMETHOD NewChannelFromNativePath(const char *nativePath, nsIFileChannel **_retval);
// nsIOService methods:
nsIOService();
virtual ~nsIOService();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
protected:
nsString2 mAppName;
nsString2 mAppCodeName;
nsString2 mAppVersion;
nsString2 mAppLanguage;
nsString2 mAppPlatform;
};
#endif // nsIOService_h__

View File

@@ -0,0 +1,140 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsNetModRegEntry.h"
#include "plstr.h"
//////////////////////////////
//// nsISupports
//////////////////////////////
NS_IMPL_ISUPPORTS(nsNetModRegEntry, nsINetModRegEntry::GetIID());
//////////////////////////////
//// nsINetModRegEntry
//////////////////////////////
NS_IMETHODIMP
nsNetModRegEntry::GetMNotify(nsINetNotify **aNotify) {
*aNotify = mNotify;
NS_ADDREF(*aNotify);
return NS_OK;
}
NS_IMETHODIMP
nsNetModRegEntry::GetMEventQ(nsIEventQueue **aEventQ) {
*aEventQ = mEventQ;
NS_ADDREF(*aEventQ);
return NS_OK;
}
NS_IMETHODIMP
nsNetModRegEntry::GetMTopic(char **aTopic) {
*aTopic = new char [PL_strlen(mTopic) + 1];
if (!*aTopic) return NS_ERROR_OUT_OF_MEMORY;
PL_strcpy(*aTopic, mTopic);
return NS_OK;
}
NS_IMETHODIMP
nsNetModRegEntry::GetMCID(nsCID **aMCID) {
*aMCID = &mCID;
return NS_OK;
}
NS_IMETHODIMP
nsNetModRegEntry::Equals(nsINetModRegEntry* aEntry, PRBool *_retVal) {
nsresult rv = NS_OK;
PRBool retVal = PR_TRUE;
NS_ADDREF(aEntry);
char * topic = 0;
nsINetNotify* notify = 0;
nsIEventQueue* eventQ = 0;
nsCID *cid = 0;
rv = aEntry->GetMTopic(&topic);
if (NS_FAILED(rv)) {
retVal = PR_FALSE;
goto end;
}
if (PL_strcmp(topic, mTopic)) {
retVal = PR_FALSE;
goto end;
}
rv = aEntry->GetMNotify(&notify);
if (NS_FAILED(rv)) {
retVal = PR_FALSE;
goto end;
}
if (notify != mNotify) {
retVal = PR_FALSE;
goto end;
}
rv = aEntry->GetMEventQ(&eventQ);
if (NS_FAILED(rv)) {
retVal = PR_FALSE;
goto end;
}
if (eventQ != mEventQ) {
retVal = PR_FALSE;
goto end;
}
rv = aEntry->GetMCID(&cid);
if (NS_FAILED(rv)) {
retVal = PR_FALSE;
goto end;
}
if (!mCID.Equals(*cid)) {
retVal = PR_FALSE;
goto end;
}
end:
NS_IF_RELEASE(notify);
NS_IF_RELEASE(eventQ);
*_retVal = retVal;
NS_RELEASE(aEntry);
return rv;
}
//////////////////////////////
//// nsNetModRegEntry
//////////////////////////////
nsNetModRegEntry::nsNetModRegEntry(const char *aTopic, nsIEventQueue *aEventQ, nsINetNotify *aNotify, nsCID aCID)
: mEventQ(aEventQ), mNotify(aNotify) {
NS_INIT_REFCNT();
mTopic = new char [PL_strlen(aTopic) + 1];
PL_strcpy(mTopic, aTopic);
NS_ADDREF(mEventQ);
NS_ADDREF(mNotify);
mCID = aCID;
}
nsNetModRegEntry::~nsNetModRegEntry() {
delete [] mTopic;
NS_RELEASE(mEventQ);
NS_RELEASE(mNotify);
}

View File

@@ -0,0 +1,48 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef ___nsNetModRegEntry_h___
#define ___nsNetModRegEntry_h___
#include "nsINetModRegEntry.h"
#include "nsIEventQueue.h"
class nsNetModRegEntry : nsINetModRegEntry {
public:
// nsISupports
NS_DECL_ISUPPORTS
// nsINetModRegEntry
NS_IMETHOD GetMNotify(nsINetNotify **aNotify);
NS_IMETHOD GetMEventQ(nsIEventQueue **aEventQ);
NS_IMETHOD GetMTopic(char **aTopic);
NS_IMETHOD GetMCID(nsCID **aCID);
NS_IMETHOD Equals(nsINetModRegEntry* aEntry, PRBool *_retVal);
// nsNetModRegEntry
nsNetModRegEntry(const char *aTopic, nsIEventQueue *aEventQ, nsINetNotify *aNotify, nsCID aCID);
~nsNetModRegEntry();
char *mTopic;
nsIEventQueue *mEventQ;
nsINetNotify *mNotify;
nsCID mCID;
};
#endif //___nsNetModRegEntry_h___

View File

@@ -0,0 +1,226 @@
/* -*- Mode: IDL; 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.
*/
#include "nsNetModuleMgr.h"
#include "nsNetModRegEntry.h"
#include "nsEnumeratorUtils.h" // for nsArrayEnumerator
#include "nsString2.h"
#include "nsIEventQueue.h"
// Entry routines.
static PRBool DeleteEntry(nsISupports *aElement, void *aData) {
NS_ASSERTION(aElement, "null pointer");
NS_RELEASE(aElement);
return PR_TRUE;
}
///////////////////////////////////
//// nsISupports
///////////////////////////////////
NS_IMPL_ISUPPORTS(nsNetModuleMgr, nsINetModuleMgr::GetIID());
///////////////////////////////////
//// nsINetModuleMgr
///////////////////////////////////
NS_IMETHODIMP
nsNetModuleMgr::RegisterModule(const char *aTopic, nsIEventQueue *aEventQueue, nsINetNotify *aNotify, const nsCID * aCID) {
nsresult rv;
PRUint32 cnt;
// XXX before registering an object for a particular topic
// XXX QI the nsINetNotify interface passed in for the interfaces
// XXX supported by the topic.
PR_Lock(mLock);
nsINetModRegEntry* newEntryI = nsnull;
nsNetModRegEntry *newEntry =
new nsNetModRegEntry(aTopic, aEventQueue, aNotify, *aCID);
if (!newEntry)
return NS_ERROR_OUT_OF_MEMORY;
rv = newEntry->QueryInterface(nsINetModRegEntry::GetIID(), (void**)&newEntryI);
if (NS_FAILED(rv)) return rv;
// Check for a previous registration
mEntries->Count(&cnt);
for (PRUint32 i = 0; i < cnt; i++) {
nsINetModRegEntry* curEntry = NS_STATIC_CAST(nsINetModRegEntry*, mEntries->ElementAt(i));
PRBool same = PR_FALSE;
rv = newEntryI->Equals(curEntry, &same);
if (NS_FAILED(rv)) {
PR_Unlock(mLock);
return rv;
}
// if we've already got this one registered, yank it, and replace it with the new one
if (same) {
NS_RELEASE(curEntry);
mEntries->DeleteElementAt(i);
break;
}
}
mEntries->AppendElement(NS_STATIC_CAST(nsISupports*, newEntryI));
PR_Unlock(mLock);
NS_RELEASE(newEntryI);
return NS_OK;
}
NS_IMETHODIMP
nsNetModuleMgr::UnregisterModule(const char *aTopic, nsIEventQueue *aEventQueue, nsINetNotify *aNotify, const nsCID * aCID) {
PR_Lock(mLock);
nsresult rv;
PRUint32 cnt;
nsINetModRegEntry* tmpEntryI = nsnull;
nsNetModRegEntry *tmpEntry =
new nsNetModRegEntry(aTopic, aEventQueue, aNotify, *aCID);
if (!tmpEntry)
return NS_ERROR_OUT_OF_MEMORY;
rv = tmpEntry->QueryInterface(nsINetModRegEntry::GetIID(), (void**)&tmpEntryI);
if (NS_FAILED(rv)) return rv;
mEntries->Count(&cnt);
for (PRUint32 i = 0; i < cnt; i++) {
nsINetModRegEntry* curEntry = NS_STATIC_CAST(nsINetModRegEntry*, mEntries->ElementAt(i));
NS_ADDREF(curEntry); // get our ref to it
PRBool same = PR_FALSE;
rv = tmpEntryI->Equals(curEntry, &same);
if (NS_FAILED(rv)) {
PR_Unlock(mLock);
return rv;
}
if (same) {
NS_RELEASE(curEntry);
mEntries->DeleteElementAt(i);
break;
}
NS_RELEASE(curEntry); // ditch our ref to it
}
PR_Unlock(mLock);
NS_RELEASE(tmpEntryI);
return NS_OK;
}
NS_IMETHODIMP
nsNetModuleMgr::EnumerateModules(const char *aTopic, nsISimpleEnumerator **aEnumerator) {
nsresult rv;
PRUint32 cnt;
char *topic = nsnull;
// get all the entries for this topic
PR_Lock(mLock);
rv = mEntries->Count(&cnt);
if (NS_FAILED(rv)) return rv;
// create the new array
nsISupportsArray *topicEntries = nsnull;
rv = NS_NewISupportsArray(&topicEntries);
if (NS_FAILED(rv)) return rv;
// run through the main entry array looking for topic matches.
for (PRUint32 i = 0; i < cnt; i++) {
nsINetModRegEntry *entry = NS_STATIC_CAST(nsINetModRegEntry*, mEntries->ElementAt(i));
rv = entry->GetMTopic(&topic);
if (NS_FAILED(rv)) {
NS_RELEASE(topicEntries);
NS_RELEASE(entry);
PR_Unlock(mLock);
return rv;
}
if (!PL_strcmp(aTopic, topic)) {
delete [] topic;
topic = nsnull;
// found a match, add it to the list
rv = topicEntries->AppendElement(NS_STATIC_CAST(nsISupports*, entry));
if (NS_FAILED(rv)) {
NS_RELEASE(topicEntries);
NS_RELEASE(entry);
PR_Unlock(mLock);
return rv;
}
}
delete [] topic;
topic = nsnull;
NS_RELEASE(entry);
}
nsISimpleEnumerator *outEnum = nsnull;
nsArrayEnumerator *arrEnum = new nsArrayEnumerator(topicEntries);
NS_RELEASE(topicEntries);
if (!arrEnum) {
return NS_ERROR_OUT_OF_MEMORY;
}
rv = arrEnum->QueryInterface(nsISimpleEnumerator::GetIID(), (void**)&outEnum);
if (NS_FAILED(rv)) {
delete arrEnum;
return rv;
}
*aEnumerator = outEnum;
PR_Unlock(mLock);
return NS_OK;
}
///////////////////////////////////
//// nsNetModuleMgr
///////////////////////////////////
nsNetModuleMgr::nsNetModuleMgr() {
NS_INIT_REFCNT();
NS_NewISupportsArray(&mEntries);
mLock = PR_NewLock();
}
nsNetModuleMgr::~nsNetModuleMgr() {
if (mEntries) {
mEntries->EnumerateForwards(DeleteEntry, nsnull);
NS_RELEASE(mEntries);
}
PR_DestroyLock(mLock);
}
NS_METHOD
nsNetModuleMgr::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
static nsNetModuleMgr* mgr = nsnull;
if (!mgr) mgr = new nsNetModuleMgr();
if (!mgr) return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(mgr);
nsresult rv = mgr->QueryInterface(aIID, aResult);
// don't release our ref as this is a singleton service.
//NS_RELEASE(mgr);
return rv;
}

View File

@@ -0,0 +1,50 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef ___nsNetModuleMgr_h__
#define ___nsNetModuleMgr_h__
#include "nsINetModuleMgr.h"
#include "prlock.h"
#include "nspr.h"
#include "nsISupportsArray.h"
class nsNetModuleMgr : public nsINetModuleMgr {
public:
// nsISupports
NS_DECL_ISUPPORTS
// nsINetModuleMgr
NS_IMETHOD RegisterModule(const char *aTopic, nsIEventQueue *aEventQueue, nsINetNotify *aNotify, const nsCID * aCID);
NS_IMETHOD UnregisterModule(const char *aTopic, nsIEventQueue *aEventQueue, nsINetNotify *aNotify, const nsCID * aCID);
NS_IMETHOD EnumerateModules(const char *aTopic, nsISimpleEnumerator **aEnumerator);
// nsNetModuleMgr
nsNetModuleMgr();
~nsNetModuleMgr();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsISupportsArray *mEntries;
PRLock *mLock;
};
#endif // ___nsNetModuleMgr_h__

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,148 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#ifndef nsSocketTransport_h___
#define nsSocketTransport_h___
#include "prclist.h"
#include "prio.h"
#include "prnetdb.h"
#include "nsIChannel.h"
#include "nsIInputStream.h"
#include "nsIBufferInputStream.h"
//
// This is the size of the global buffer used by all nsSocketTransport
// instances when reading from or writing to the network.
//
#define MAX_IO_BUFFER_SIZE 8192
//
// This is the maximum amount of data that will be read into a stream before
// another transport is processed...
//
#define MAX_IO_TRANSFER_SIZE 32768
enum nsSocketState {
eSocketState_Created = 0,
eSocketState_WaitDNS = 1,
eSocketState_Closed = 2,
eSocketState_WaitConnect = 3,
eSocketState_Connected = 4,
eSocketState_WaitReadWrite = 5,
eSocketState_DoneRead = 6,
eSocketState_DoneWrite = 7,
eSocketState_Done = 8,
eSocketState_Timeout = 9,
eSocketState_Error = 10,
eSocketState_Max = 11
};
enum nsSocketOperation {
eSocketOperation_None = 0,
eSocketOperation_Connect = 1,
eSocketOperation_ReadWrite = 2,
eSocketOperation_Max = 3
};
// Forward declarations...
class nsSocketTransportService;
class nsSocketTransportStream;
class nsSocketTransport : public nsIChannel
{
public:
// nsISupports methods:
NS_DECL_ISUPPORTS
// nsIRequest methods:
NS_IMETHOD Cancel(void);
NS_IMETHOD Suspend(void);
NS_IMETHOD Resume(void);
// nsIChannel methods:
NS_IMETHOD GetURI(nsIURI * *aURL);
NS_IMETHOD OpenInputStream(PRUint32 startPosition, PRInt32 readCount, nsIInputStream **_retval);
NS_IMETHOD OpenOutputStream(PRUint32 startPosition, nsIOutputStream **_retval);
NS_IMETHOD AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener);
NS_IMETHOD AsyncWrite(nsIInputStream *fromStream,
PRUint32 startPosition, PRInt32 writeCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamObserver *observer);
// nsSocketTransport methods:
nsSocketTransport();
virtual ~nsSocketTransport();
nsresult Init(nsSocketTransportService* aService,
const char* aHost,
PRInt32 aPort);
nsresult Process(PRInt16 aSelectFlags);
nsresult CloseConnection(void);
// Access methods used by the socket transport service...
PRFileDesc* GetSocket(void) { return mSocketFD; }
PRInt16 GetSelectFlags(void) { return mSelectFlags; }
PRCList* GetListNode(void) { return &mListLink; }
static nsSocketTransport* GetInstance(PRCList* qp) { return (nsSocketTransport*)((char*)qp - offsetof(nsSocketTransport, mListLink)); }
protected:
nsresult doConnection(PRInt16 aSelectFlags);
nsresult doResolveHost(void);
nsresult doRead(PRInt16 aSelectFlags);
nsresult doWrite(PRInt16 aSelectFlags);
protected:
PRCList mListLink;
PRLock* mLock;
nsSocketState mCurrentState;
nsSocketOperation mOperation;
PRInt32 mSuspendCount;
PRFileDesc* mSocketFD;
PRNetAddr mNetAddress;
PRInt16 mSelectFlags;
char* mHostName;
PRInt32 mPort;
nsISupports* mReadContext;
nsIStreamListener* mReadListener;
nsSocketTransportStream* mReadStream;
nsISupports* mWriteContext;
nsIStreamObserver* mWriteObserver;
nsIBufferInputStream* mWriteStream;
PRUint32 mSourceOffset;
nsSocketTransportService* mService;
};
#endif /* nsSocketTransport_h___ */

View File

@@ -0,0 +1,492 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#include "nsSocketTransportService.h"
#include "nsSocketTransport.h"
#include "nsAutoLock.h"
#define MAX_OPEN_CONNECTIONS 50
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
nsSocketTransportService::nsSocketTransportService()
{
NS_INIT_REFCNT();
PR_INIT_CLIST(&mWorkQ);
mThread = nsnull;
mThreadEvent = nsnull;
mThreadLock = nsnull;
mSelectFDSet = nsnull;
mSelectFDSetCount = 0;
mActiveTransportList = nsnull;
mThreadRunning = PR_FALSE;
}
nsSocketTransportService::~nsSocketTransportService()
{
//
// It is impossible for the nsSocketTransportService to be deleted while
// the transport thread is running because it holds a reference to the
// nsIRunnable (ie. the nsSocketTransportService instance)...
//
NS_ASSERTION(!mThread && !mThreadRunning,
"The socket transport thread is still running...");
if (mSelectFDSet) {
PR_Free(mSelectFDSet);
mSelectFDSet = nsnull;
}
if (mActiveTransportList) {
PR_Free(mActiveTransportList);
mActiveTransportList = nsnull;
}
if (mThreadEvent) {
PR_DestroyPollableEvent(mThreadEvent);
mThreadEvent = nsnull;
}
if (mThreadLock) {
PR_DestroyLock(mThreadLock);
mThreadLock = nsnull;
}
}
NS_METHOD
nsSocketTransportService::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsSocketTransportService* trans = new nsSocketTransportService();
if (trans == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(trans);
nsresult rv = trans->Init();
if (NS_SUCCEEDED(rv)) {
rv = trans->QueryInterface(aIID, aResult);
}
NS_RELEASE(trans);
return rv;
}
nsresult nsSocketTransportService::Init(void)
{
nsresult rv = NS_OK;
NS_ASSERTION(!mThread, "Socket transport thread has already been created!.");
//
// Create FDSET list used by PR_Poll(...)
//
if (!mSelectFDSet) {
mSelectFDSet = (PRPollDesc*)PR_Malloc(sizeof(PRPollDesc)*MAX_OPEN_CONNECTIONS);
if (mSelectFDSet) {
memset(mSelectFDSet, 0, sizeof(PRPollDesc)*MAX_OPEN_CONNECTIONS);
} else {
rv = NS_ERROR_OUT_OF_MEMORY;
}
}
//
// Create the list of Active transport objects... This list contains the
// nsSocketTransport corresponding to each PRFileDesc* in the mSelectFDSet
//
if (NS_SUCCEEDED(rv) && !mActiveTransportList) {
mActiveTransportList = (nsSocketTransport**)PR_Malloc(sizeof(nsSocketTransport*)*MAX_OPEN_CONNECTIONS);
if (mActiveTransportList) {
memset(mActiveTransportList, 0, sizeof(nsSocketTransport*)*MAX_OPEN_CONNECTIONS);
} else {
rv = NS_ERROR_OUT_OF_MEMORY;
}
}
//
// Create the pollable event used to immediately wake up the transport
// thread when it is blocked in PR_Poll(...)
//
if (NS_SUCCEEDED(rv) && !mThreadEvent) {
mThreadEvent = PR_NewPollableEvent();
if (!mThreadEvent) {
rv = NS_ERROR_OUT_OF_MEMORY;
}
}
//
// Create the synchronization lock for the transport thread...
//
if (NS_SUCCEEDED(rv) && !mThreadLock) {
mThreadLock = PR_NewLock();
if (!mThreadLock) {
rv = NS_ERROR_OUT_OF_MEMORY;
}
}
//
// Create the transport thread...
//
if (NS_SUCCEEDED(rv) && !mThread) {
mThreadRunning = PR_TRUE;
rv = NS_NewThread(&mThread, this);
}
return rv;
}
nsresult nsSocketTransportService::AddToWorkQ(nsSocketTransport* aTransport)
{
PRStatus status;
PRBool bFireEvent = PR_FALSE;
nsresult rv = NS_OK;
PRCList* qp;
{
nsAutoLock lock(mThreadLock);
//
// Only add the transport if it is *not* already on the list...
//
qp = aTransport->GetListNode();
if (PR_CLIST_IS_EMPTY(qp)) {
NS_ADDREF(aTransport);
bFireEvent = PR_CLIST_IS_EMPTY(&mWorkQ);
PR_APPEND_LINK(qp, &mWorkQ);
}
}
//
// Only fire an event if this is the first entry in the workQ. Otherwise,
// the event has already been fired and the transport thread will process
// all of the entries at once...
//
if (bFireEvent) {
status = PR_SetPollableEvent(mThreadEvent);
if (PR_FAILURE == status) {
rv = NS_ERROR_FAILURE;
}
}
return rv;
}
nsresult nsSocketTransportService::ProcessWorkQ(void)
{
nsresult rv = NS_OK;
PRCList* qp;
//
// Only process pending operations while there is space available in the
// select list...
//
// XXX: Need a way to restart the ProcessWorkQ(...) when space becomes
// available in the select set...
//
PR_Lock(mThreadLock);
while (!PR_CLIST_IS_EMPTY(&mWorkQ) &&
(MAX_OPEN_CONNECTIONS > mSelectFDSetCount)) {
nsSocketTransport* transport;
// Get the next item off of the workQ...
qp = PR_LIST_HEAD(&mWorkQ);
transport = nsSocketTransport::GetInstance(qp);
PR_REMOVE_AND_INIT_LINK(qp);
// Try to perform the operation...
//
// Do not process the transport while holding the transport service
// lock... A deadlock could occur if another thread is holding the
// transport lock and tries to add the transport to the service's WorkQ...
//
// Do not pass any select flags...
PR_Unlock(mThreadLock);
rv = transport->Process(0);
PR_Lock(mThreadLock);
//
// If the operation would block, then add it to the select list for
// later processing when the data arrives...
//
if (NS_BASE_STREAM_WOULD_BLOCK == rv) {
rv = AddToSelectList(transport);
}
// Release the transport object (since it is no longer on the WorkQ).
NS_RELEASE(transport);
}
PR_Unlock(mThreadLock);
return rv;
}
nsresult nsSocketTransportService::AddToSelectList(nsSocketTransport* aTransport)
{
nsresult rv = NS_OK;
if (aTransport && (MAX_OPEN_CONNECTIONS > mSelectFDSetCount) ) {
PRPollDesc* pfd;
int i;
// Check to see if the transport is already in the list...
for (i=1; i<mSelectFDSetCount; i++) {
if (mActiveTransportList[i] == aTransport) {
break;
}
}
// Add the FileDesc to the PRPollDesc list...
if (i == mSelectFDSetCount) {
pfd = &mSelectFDSet[mSelectFDSetCount];
pfd->fd = aTransport->GetSocket();;
pfd->in_flags = aTransport->GetSelectFlags();
pfd->out_flags = 0;
// Add the transport instance to the corresponding active transport list...
NS_ADDREF(aTransport);
mActiveTransportList[mSelectFDSetCount] = aTransport;
mSelectFDSetCount += 1;
}
}
else {
rv = NS_ERROR_FAILURE;
}
return rv;
}
nsresult nsSocketTransportService::RemoveFromSelectList(nsSocketTransport* aTransport)
{
int i;
nsresult rv = NS_ERROR_FAILURE;
for (i=1; i<mSelectFDSetCount; i++) {
if (mActiveTransportList[i] == aTransport) {
int last = mSelectFDSetCount-1;
NS_RELEASE(mActiveTransportList[i]);
// Move the last element in the array into the new empty slot...
if (i != last) {
memcpy(&mSelectFDSet[i], &mSelectFDSet[last], sizeof(mSelectFDSet[0]));
mSelectFDSet[last].fd = nsnull;
mActiveTransportList[i] = mActiveTransportList[last];
mActiveTransportList[last] = nsnull;
} else {
mSelectFDSet[i].fd = nsnull;
mActiveTransportList[i] = nsnull;
}
mSelectFDSetCount -= 1;
rv = NS_OK;
break;
}
}
return rv;
}
//
// --------------------------------------------------------------------------
// nsISupports implementation...
// --------------------------------------------------------------------------
//
NS_IMPL_ADDREF(nsSocketTransportService);
NS_IMPL_RELEASE(nsSocketTransportService);
NS_IMETHODIMP
nsSocketTransportService::QueryInterface(const nsIID& aIID, void* *aInstancePtr)
{
if (NULL == aInstancePtr) {
return NS_ERROR_NULL_POINTER;
}
if (aIID.Equals(nsISocketTransportService::GetIID()) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = NS_STATIC_CAST(nsISocketTransportService*, this);
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsIRunnable::GetIID())) {
*aInstancePtr = NS_STATIC_CAST(nsIRunnable*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
//
// --------------------------------------------------------------------------
// nsIRunnable implementation...
// --------------------------------------------------------------------------
//
NS_IMETHODIMP
nsSocketTransportService::Run(void)
{
//
// Initialize the FDSET used by PR_Poll(...). The first item in the FDSet
// is *always* the pollable event (ie. mThreadEvent).
//
mSelectFDSet[0].fd = mThreadEvent;
mSelectFDSet[0].in_flags = PR_POLL_READ;
mSelectFDSetCount = 1;
while (mThreadRunning) {
PRInt32 count;
nsSocketTransport* transport;
// XXX: PR_Poll(...) needs a timeout value...
count = PR_Poll(mSelectFDSet, mSelectFDSetCount, PR_INTERVAL_NO_TIMEOUT);
/* One or more sockets has data... */
if (count > 0) {
nsresult rv;
int i;
/* Process any sockets with data first... */
for (i=mSelectFDSetCount-1; i>=1; i--) {
PRPollDesc* pfd;
PRInt16 out_flags;
pfd = &mSelectFDSet[i];
if (pfd->out_flags) {
// Clear the out_flags for next time...
out_flags = pfd->out_flags;
pfd->out_flags = 0;
transport = mActiveTransportList[i];
NS_ASSERTION(transport, "Null transport in active list...");
if (transport) {
rv = transport->Process(out_flags);
if (NS_BASE_STREAM_WOULD_BLOCK == rv) {
// Update the select flags...
pfd->in_flags = transport->GetSelectFlags();
}
//
// If the operation completed, then remove the entry from the
// select list...
//
else {
rv = RemoveFromSelectList(transport);
}
}
}
}
/* Process any pending operations on the mWorkQ... */
if (mSelectFDSet[0].out_flags) {
//
// Clear the pollable event... This call should *never* block since
// PR_Poll(...) said that it had been fired...
//
NS_ASSERTION(!(mSelectFDSet[0].out_flags & PR_POLL_EXCEPT),
"Exception on Pollable event.");
PR_WaitForPollableEvent(mThreadEvent);
rv = ProcessWorkQ();
}
}
/* PR_Poll(...) timeout... */
else if (count == 0) {
}
/* PR_Poll(...) error.. */
else {
}
}
return NS_OK;
}
//
// --------------------------------------------------------------------------
// nsISocketTransportService implementation...
// --------------------------------------------------------------------------
//
NS_IMETHODIMP
nsSocketTransportService::CreateTransport(const char* aHost,
PRInt32 aPort,
nsIChannel** aResult)
{
nsresult rv = NS_OK;
nsSocketTransport* transport = nsnull;
// Parameter validation...
NS_ASSERTION(aResult, "aResult == nsnull.");
if (!aResult) {
return NS_ERROR_NULL_POINTER;
}
// Create and initialize a new connection object...
NS_NEWXPCOM(transport, nsSocketTransport);
if (transport) {
rv = transport->Init(this, aHost, aPort);
if (NS_FAILED(rv)) {
delete transport;
transport = nsnull;
}
}
else {
rv = NS_ERROR_OUT_OF_MEMORY;
}
// Set the reference count to one...
if (NS_SUCCEEDED(rv)) {
NS_ADDREF(transport);
}
*aResult = transport;
return rv;
}
NS_IMETHODIMP
nsSocketTransportService::Shutdown(void)
{
PRStatus status;
nsresult rv = NS_OK;
if (mThread) {
//
// Clear the running flag and wake up the transport thread...
//
mThreadRunning = PR_FALSE;
status = PR_SetPollableEvent(mThreadEvent);
// XXX: what should happen if this fails?
NS_ASSERTION(PR_SUCCESS == status, "Unable to wake up the transport thread.");
// Wait for the transport thread to exit nsIRunnable::Run()
if (PR_SUCCESS == status) {
mThread->Join();
}
NS_RELEASE(mThread);
} else {
rv = NS_ERROR_FAILURE;
}
return rv;
}

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the 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.
*/
#ifndef nsSocketTransportService_h___
#define nsSocketTransportService_h___
#include "nspr.h"
#include "nsIThread.h"
#include "nsISocketTransportService.h"
#include "nsIInputStream.h"
// Forward declarations...
class nsSocketTransport;
class nsSocketTransportService : public nsISocketTransportService,
public nsIRunnable
{
public:
NS_DECL_ISUPPORTS
// nsISocketTransportService methods:
NS_IMETHOD CreateTransport(const char* aHost,
PRInt32 aPort,
nsIChannel** aResult);
NS_IMETHOD Shutdown(void);
// nsIRunnable methods:
NS_IMETHOD Run(void);
// nsSocketTransportService methods:
nsSocketTransportService();
virtual ~nsSocketTransportService();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init(void);
nsresult AddToWorkQ(nsSocketTransport* aTransport);
// The following methods are called by the transport thread...
nsresult ProcessWorkQ(void);
nsresult AddToSelectList(nsSocketTransport* aTransport);
nsresult RemoveFromSelectList(nsSocketTransport* aTransport);
protected:
nsIThread* mThread;
PRFileDesc* mThreadEvent;
PRLock* mThreadLock;
PRBool mThreadRunning;
PRCList mWorkQ;
PRInt32 mSelectFDSetCount;
PRPollDesc* mSelectFDSet;
nsSocketTransport** mActiveTransportList;
};
#endif /* nsSocketTransportService_h___ */

View File

@@ -0,0 +1,309 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
#include "nsIBuffer.h"
//
// --------------------------------------------------------------------------
// Private implementation of a nsIBufferInputStream used by the
// nsSocketTransport implementation
// --------------------------------------------------------------------------
//
#if defined(XP_PC)
#include <windows.h> // Interlocked increment...
#endif
#include "nspr.h"
#include "nscore.h"
#include "nsSocketTransportStreams.h"
#include "nsSocketTransport.h"
#if defined(PR_LOGGING)
//
// Log module for SocketTransport logging...
//
// To enable logging (see prlog.h for full details):
//
// set NSPR_LOG_MODULES=nsSocketTransport:5
// set NSPR_LOG_FILE=nspr.log
//
// this enables PR_LOG_DEBUG level information and places all output in
// the file nspr.log
//
// gSocketLog is defined in nsSocketTransport.cpp
//
extern PRLogModuleInfo* gSocketLog;
#endif /* PR_LOGGING */
nsSocketTransportStream::nsSocketTransportStream()
{
NS_INIT_REFCNT();
mIsStreamBlocking = PR_FALSE;
mIsTransportSuspended = PR_FALSE;
mMonitor = nsnull;
mTransport = nsnull;
mBuffer = nsnull;
mStream = nsnull;
}
nsSocketTransportStream::~nsSocketTransportStream()
{
NS_IF_RELEASE(mTransport);
NS_IF_RELEASE(mStream);
NS_IF_RELEASE(mBuffer);
if (mMonitor) {
PR_DestroyMonitor(mMonitor);
mMonitor = nsnull;
}
}
nsresult nsSocketTransportStream::Init(nsSocketTransport* aTransport,
PRBool aBlockingFlag)
{
nsresult rv = NS_OK;
NS_ASSERTION(aTransport, "Null transport supplied.");
mIsStreamBlocking = aBlockingFlag;
mMonitor = PR_NewMonitor();
if (!mMonitor) {
rv = NS_ERROR_OUT_OF_MEMORY;
}
if (NS_SUCCEEDED(rv) && aTransport) {
mTransport = aTransport;
NS_ADDREF(mTransport);
} else {
rv = NS_ERROR_NULL_POINTER;
}
if (NS_SUCCEEDED(rv)) {
rv = NS_NewBuffer(&mBuffer, MAX_IO_BUFFER_SIZE/2, 2*MAX_IO_BUFFER_SIZE, nsnull);
}
if (NS_SUCCEEDED(rv)) {
rv = NS_NewBufferInputStream(&mStream, mBuffer);
}
return rv;
}
nsresult nsSocketTransportStream::BlockTransport(void)
{
Lock();
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("nsSocketTransportStream::BlockTransport() [this=%x].\n", this));
//
// XXX: It would be nice to call mTransport->Suspend() here...
// Unfortunately, BlockTransport() is called within the transport lock.
// So, since NSPR locks are not re-enterent we must rely on the caller
// (ie. the transport) to suspend itself...
//
mIsTransportSuspended = PR_TRUE;
Unlock();
return NS_OK;
}
nsresult nsSocketTransportStream::FillStream(nsReadSegmentFun reader,
void* closure,
PRUint32 count,
PRUint32 *writeCount)
{
return mBuffer->WriteSegments(reader, closure, count, writeCount);
}
//
// --------------------------------------------------------------------------
// nsISupports implementation...
// --------------------------------------------------------------------------
//
NS_IMPL_THREADSAFE_ISUPPORTS(nsSocketTransportStream,
nsIBufferInputStream::GetIID());
//
// --------------------------------------------------------------------------
// nsIBaseStream implementation...
// --------------------------------------------------------------------------
//
NS_IMETHODIMP
nsSocketTransportStream::Close()
{
return mStream->Close();
}
//
// --------------------------------------------------------------------------
// nsIInputStream implementation...
// --------------------------------------------------------------------------
//
NS_IMETHODIMP
nsSocketTransportStream::GetLength(PRUint32 *aResult)
{
return mStream->GetLength(aResult);
}
NS_IMETHODIMP
nsSocketTransportStream::Read(char * aBuf, PRUint32 aCount,
PRUint32 *aReadCount)
{
nsresult rv;
// Enter the stream lock...
Lock();
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("+++ Entering nsSocketTransportStream::Read() [this=%x].\t"
"aCount=%d\n",
this, aCount));
do {
rv = mStream->Read(aBuf, aCount, aReadCount);
if (mIsStreamBlocking && (NS_BASE_STREAM_WOULD_BLOCK == rv)) {
Wait();
} else {
break;
}
} while (1);
//
// If the transport is blocked waiting for room in the input stream, then
// resume it...
//
if (mIsTransportSuspended && (*aReadCount) ) {
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("nsSocketTransportStream::Read() [this=%x]. "
"Resuming transport [%x].\n",
this, mTransport));
mTransport->Resume();
mIsTransportSuspended = PR_FALSE;
}
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("--- Leaving nsSocketTransportStream::Read() [this=%x].\t"
"rv = %x. aReadCount=%d\n",
this, rv, *aReadCount));
// Leave the stream lock...
Unlock();
return rv;
}
//
// --------------------------------------------------------------------------
// nsIBufferInputStream implementation...
// --------------------------------------------------------------------------
//
NS_IMETHODIMP
nsSocketTransportStream::GetBuffer(nsIBuffer* *result)
{
return mStream->GetBuffer(result);
}
NS_IMETHODIMP
nsSocketTransportStream::FillFrom(nsIInputStream* aStream,
PRUint32 aCount,
PRUint32 *aWriteCount)
{
nsresult rv;
// Enter the stream lock...
Lock();
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("+++ Entering nsSocketTransportStream::Fill() [this=%x].\t"
"aCount=%d\n",
this, aCount));
rv = mStream->FillFrom(aStream, aCount, aWriteCount);
if (mIsStreamBlocking && (NS_BASE_STREAM_WOULD_BLOCK != rv)) {
Notify();
}
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("--- Leaving nsSocketTransportStream::Fill() [this=%x].\t"
"rv = %x. aWriteCount=%d\n",
this, rv, *aWriteCount));
// Leave the stream lock...
Unlock();
return rv;
}
NS_IMETHODIMP
nsSocketTransportStream::Fill(const char* aBuf,
PRUint32 aCount,
PRUint32 *aWriteCount)
{
nsresult rv;
// Enter the stream lock...
Lock();
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("+++ Entering nsSocketTransportStream::Fill() [this=%x].\t"
"aCount=%d\n",
this, aCount));
rv = mStream->Fill(aBuf, aCount, aWriteCount);
if (mIsStreamBlocking && (NS_BASE_STREAM_WOULD_BLOCK != rv)) {
Notify();
}
PR_LOG(gSocketLog, PR_LOG_DEBUG,
("--- Leaving nsSocketTransportStream::Fill() [this=%x].\t"
"rv = %x. aWriteCount=%d\n",
this, rv, *aWriteCount));
// Leave the stream lock...
Unlock();
return rv;
}

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the 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.
*/
#ifndef nsSocketTransportStreams_h___
#define nsSocketTransportStreams_h___
#include "prtypes.h"
#include "nsIBufferInputStream.h"
#include "nsIBuffer.h"
// Forward declarations...
class nsSocketTransport;
class nsSocketTransportStream : public nsIBufferInputStream
{
public:
nsSocketTransportStream();
// nsISupports methods:
NS_DECL_ISUPPORTS
// nsIBaseStream methods:
NS_IMETHOD Close();
// nsIInputStream methods:
NS_IMETHOD GetLength(PRUint32 *aResult);
NS_IMETHOD Read(char * aBuf, PRUint32 aCount, PRUint32 *aReadCount);
// nsIBufferInputStream methods:
NS_IMETHOD GetBuffer(nsIBuffer* *result);
NS_IMETHOD Fill(const char* aBuf, PRUint32 aCount, PRUint32 *aWriteCount);
NS_IMETHOD FillFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *_retval);
// nsSocketTransportStream methods:
nsresult Init(nsSocketTransport* aTransport, PRBool aBlockingFlag);
nsresult BlockTransport(void);
nsresult FillStream(nsReadSegmentFun reader, void* closure, PRUint32 count,
PRUint32 *writeCount);
void Lock(void) { NS_ASSERTION(mMonitor, "Monitor null."); PR_EnterMonitor(mMonitor); }
void Notify(void) { NS_ASSERTION(mMonitor, "Monitor null."); PR_Notify(mMonitor); }
void Wait(void) { NS_ASSERTION(mMonitor, "Monitor null."); PR_Wait(mMonitor, PR_INTERVAL_NO_TIMEOUT); }
void Unlock(void) { NS_ASSERTION(mMonitor, "Monitor null."); PR_ExitMonitor(mMonitor); }
protected:
virtual ~nsSocketTransportStream();
private:
PRBool mIsTransportSuspended;
PRBool mIsStreamBlocking;
PRMonitor* mMonitor;
nsIBuffer* mBuffer;
nsIBufferInputStream* mStream;
nsSocketTransport* mTransport;
};
#endif /* nsSocketTransportStreams_h___ */

View File

@@ -0,0 +1,663 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsStandardUrl.h"
#include "nscore.h"
#include "nsCRT.h"
#include "nsString.h"
#include "prmem.h"
#include "prprf.h"
static NS_DEFINE_CID(kStandardUrlCID, NS_STANDARDURL_CID);
static NS_DEFINE_CID(kThisStandardUrlImplementationCID,
NS_THIS_STANDARDURL_IMPLEMENTATION_CID);
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
////////////////////////////////////////////////////////////////////////////////
// nsStandardURL methods:
nsStandardURL::nsStandardURL(nsISupports* outer)
: mScheme(nsnull),
mPreHost(nsnull),
mHost(nsnull),
mPort(-1),
mPath(nsnull),
mRef(nsnull),
mQuery(nsnull),
mSpec(nsnull)
{
NS_INIT_AGGREGATED(outer);
}
nsStandardURL::~nsStandardURL()
{
if (mScheme) delete[] mScheme;
if (mPreHost) delete[] mPreHost;
if (mHost) delete[] mHost;
if (mRef) delete[] mRef;
if (mQuery) delete[] mQuery;
if (mSpec) delete[] mSpec;
}
NS_IMPL_AGGREGATED(nsStandardURL);
NS_IMETHODIMP
nsStandardURL::AggregatedQueryInterface(const nsIID& aIID, void** aInstancePtr)
{
NS_ASSERTION(aInstancePtr, "no instance pointer");
if (aIID.Equals(kThisStandardUrlImplementationCID) || // used by Equals
aIID.Equals(nsIURL::GetIID()) ||
aIID.Equals(nsIURI::GetIID()) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = NS_STATIC_CAST(nsIURI*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
////////////////////////////////////////////////////////////////////////////////
// nsIURI methods:
NS_IMETHODIMP
nsStandardURL::GetSpec(char* *result)
{
nsAutoString string;
// NS_LOCK_INSTANCE();
// XXX Special-case javascript: URLs for the moment.
// This code will go away when we actually start doing
// protocol-specific parsing.
if (PL_strcmp(mScheme, "javascript") == 0) {
string.SetString(mSpec);
} else if (PL_strcmp(mScheme, "about") == 0) {
string.SetString(mScheme);
string.Append(':');
string.Append(mPath);
} else {
string.SetLength(0);
string.Append(mScheme);
string.Append("://");
if (nsnull != mHost) {
string.Append(mHost);
if (0 < mPort) {
string.Append(':');
string.Append(mPort, 10);
}
}
string.Append(mPath);
if (nsnull != mRef) {
string.Append('#');
string.Append(mRef);
}
if (nsnull != mQuery) {
string.Append('?');
string.Append(mQuery);
}
}
// NS_UNLOCK_INSTANCE();
*result = string.ToNewCString();
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetSpec(char* aSpec)
{
return Parse(aSpec, this);
}
NS_IMETHODIMP
nsStandardURL::GetScheme(char* *result)
{
*result = mScheme;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetScheme(char* scheme)
{
mScheme = nsCRT::strdup(scheme);
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::GetPreHost(char* *result)
{
*result = mPreHost;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetPreHost(char* preHost)
{
mPreHost = nsCRT::strdup(preHost);
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::GetHost(char* *result)
{
*result = mHost;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetHost(char* host)
{
mHost = nsCRT::strdup(host);
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::GetPort(PRInt32 *result)
{
*result = mPort;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetPort(PRInt32 port)
{
mPort = port;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::GetPath(char* *result)
{
*result = mPath;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::SetPath(char* path)
{
mPath = nsCRT::strdup(path);
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::Equals(nsIURI* other, PRBool *result)
{
PRBool eq = PR_FALSE;
if (other) {
// NS_LOCK_INSTANCE();
nsStandardURL* otherUrl;
nsresult rv =
other->QueryInterface(kThisStandardUrlImplementationCID,
(void**)&otherUrl);
if (NS_SUCCEEDED(rv)) {
eq = PRBool((0 == PL_strcmp(mScheme, otherUrl->mScheme)) &&
(0 == PL_strcasecmp(mHost, otherUrl->mHost)) &&
(mPort == otherUrl->mPort) &&
(0 == PL_strcmp(mPath, otherUrl->mPath)));
NS_RELEASE(otherUrl);
}
// NS_UNLOCK_INSTANCE();
}
*result = eq;
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::Clone(nsIURI* *result)
{
nsStandardURL* url = new nsStandardURL(nsnull); // XXX outer?
if (url == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mScheme = nsCRT::strdup(mScheme);
if (url->mScheme == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mPreHost = nsCRT::strdup(mPreHost);
if (url->mPreHost == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mHost = nsCRT::strdup(mHost);
if (url->mHost == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mPort = mPort;
url->mPath = nsCRT::strdup(mPath);
if (url->mPath == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mRef = nsCRT::strdup(mRef);
if (url->mRef == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mQuery = nsCRT::strdup(mQuery);
if (url->mQuery == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
url->mSpec = nsCRT::strdup(mSpec);
if (url->mSpec == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
*result = url;
NS_ADDREF(url);
return NS_OK;
}
NS_IMETHODIMP
nsStandardURL::MakeAbsolute(const char *relativePart, char **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// XXX recode to use nsString api's
// XXX don't bother with port numbers
// XXX don't bother with ref's
// XXX null pointer checks are incomplete
nsresult
nsStandardURL::Parse(const char* spec, nsIURI* aBaseUrl)
{
// XXX hack!
nsString specStr(spec);
char* uProtocol = nsnull;
char* uHost = nsnull;
char* uFile = nsnull;
PRInt32 uPort;
if (nsnull != aBaseUrl) {
nsresult rslt = aBaseUrl->GetScheme(&uProtocol);
if (rslt != NS_OK) return rslt;
rslt = aBaseUrl->GetHost(&uHost);
if (rslt != NS_OK) return rslt;
rslt = aBaseUrl->GetPath(&uFile);
if (rslt != NS_OK) return rslt;
rslt = aBaseUrl->GetPort(&uPort);
if (rslt != NS_OK) return rslt;
}
// NS_LOCK_INSTANCE();
PR_FREEIF(mScheme);
PR_FREEIF(mHost);
PR_FREEIF(mPath);
PR_FREEIF(mRef);
PR_FREEIF(mQuery);
mPort = -1;
if (nsnull == spec) {
if (nsnull == aBaseUrl) {
// NS_UNLOCK_INSTANCE();
return NS_ERROR_ILLEGAL_VALUE;
}
mScheme = (nsnull != uProtocol) ? nsCRT::strdup(uProtocol) : nsnull;
mHost = (nsnull != uHost) ? nsCRT::strdup(uHost) : nsnull;
mPort = uPort;
mPath = (nsnull != uFile) ? nsCRT::strdup(uFile) : nsnull;
// NS_UNLOCK_INSTANCE();
return NS_OK;
}
// Strip out reference and search info
char* ref = strpbrk(spec, "#?");
if (nsnull != ref) {
char* search = nsnull;
if ('#' == *ref) {
search = PL_strchr(ref + 1, '?');
if (nsnull != search) {
*search++ = '\0';
}
PRIntn hashLen = nsCRT::strlen(ref + 1);
if (0 != hashLen) {
mRef = (char*) PR_Malloc(hashLen + 1);
PL_strcpy(mRef, ref + 1);
}
}
else {
search = ref + 1;
}
if (nsnull != search) {
// The rest is the search
PRIntn searchLen = nsCRT::strlen(search);
if (0 != searchLen) {
mQuery = (char*) PR_Malloc(searchLen + 1);
PL_strcpy(mQuery, search);
}
}
// XXX Terminate string at start of reference or search
*ref = '\0';
}
// The URL is considered absolute if and only if it begins with a
// protocol spec. A protocol spec is an alphanumeric string of 1 or
// more characters that is terminated with a colon.
PRBool isAbsolute = PR_FALSE;
const char* cp;
const char* ap = spec;
char ch;
while (0 != (ch = *ap)) {
if (((ch >= 'a') && (ch <= 'z')) ||
((ch >= 'A') && (ch <= 'Z')) ||
((ch >= '0') && (ch <= '9'))) {
ap++;
continue;
}
if ((ch == ':') && (ap - spec >= 2)) {
isAbsolute = PR_TRUE;
cp = ap;
break;
}
break;
}
if (!isAbsolute) {
// relative spec
if (nsnull == aBaseUrl) {
// NS_UNLOCK_INSTANCE();
return NS_ERROR_ILLEGAL_VALUE;
}
// keep protocol and host
mScheme = (nsnull != uProtocol) ? nsCRT::strdup(uProtocol) : nsnull;
mHost = (nsnull != uHost) ? nsCRT::strdup(uHost) : nsnull;
mPort = uPort;
// figure out file name
PRInt32 len = nsCRT::strlen(spec) + 1;
if ((len > 1) && (spec[0] == '/')) {
// Relative spec is absolute to the server
mPath = nsCRT::strdup(spec);
} else {
if (spec[0] != '\0') {
// Strip out old tail component and put in the new one
char* dp = PL_strrchr(uFile, '/');
if (!dp) {
// NS_UNLOCK_INSTANCE();
return NS_ERROR_ILLEGAL_VALUE;
}
PRInt32 dirlen = (dp + 1) - uFile;
mPath = (char*) PR_Malloc(dirlen + len);
PL_strncpy(mPath, uFile, dirlen);
PL_strcpy(mPath + dirlen, spec);
}
else {
mPath = nsCRT::strdup(uFile);
}
}
/* Stolen from netlib's mkparse.c.
*
* modifies a url of the form /foo/../foo1 -> /foo1
* and /foo/./foo1 -> /foo/foo1
*/
char *fwdPtr = mPath;
char *urlPtr = mPath;
for(; *fwdPtr != '\0'; fwdPtr++)
{
if(*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '/')
{
/* remove ./
*/
fwdPtr += 1;
}
else if(*fwdPtr == '/' && *(fwdPtr+1) == '.' && *(fwdPtr+2) == '.' &&
(*(fwdPtr+3) == '/' || *(fwdPtr+3) == '\0'))
{
/* remove foo/..
*/
/* reverse the urlPtr to the previous slash
*/
if(urlPtr != mPath)
urlPtr--; /* we must be going back at least one */
for(;*urlPtr != '/' && urlPtr != mPath; urlPtr--)
; /* null body */
/* forward the fwd_prt past the ../
*/
fwdPtr += 2;
}
else
{
/* copy the url incrementaly
*/
*urlPtr++ = *fwdPtr;
}
}
*urlPtr = '\0'; /* terminate the url */
// Now that we've resolved the relative URL, we need to reconstruct
// a URL spec from the components.
ReconstructSpec();
} else {
// absolute spec
PR_FREEIF(mSpec);
PRInt32 slen = specStr.Length();
mSpec = (char *) PR_Malloc(slen + 1);
specStr.ToCString(mSpec, slen+1);
// get protocol first
PRInt32 plen = cp - spec;
mScheme = (char*) PR_Malloc(plen + 1);
PL_strncpy(mScheme, spec, plen);
mScheme[plen] = 0;
cp++; // eat : in protocol
// skip over one, two or three slashes if it isn't about:
if (nsCRT::strcmp(mScheme, "about") != 0) {
if (*cp == '/') {
cp++;
if (*cp == '/') {
cp++;
if (*cp == '/') {
cp++;
}
}
} else {
// NS_UNLOCK_INSTANCE();
return NS_ERROR_ILLEGAL_VALUE;
}
}
#if defined(XP_UNIX) || defined (XP_MAC)
// Always leave the top level slash for absolute file paths under Mac and UNIX.
// The code above sometimes results in stripping all of slashes
// off. This only happens when a previously stripped url is asked to be
// parsed again. Under Win32 this is not a problem since file urls begin
// with a drive letter not a slash. This problem show's itself when
// nested documents such as iframes within iframes are parsed.
if (nsCRT::strcmp(mScheme, "file") == 0) {
if (*cp != '/') {
cp--;
}
}
#endif /* XP_UNIX */
const char* cp0 = cp;
if ((nsCRT::strcmp(mScheme, "resource") == 0) ||
(nsCRT::strcmp(mScheme, "file") == 0) ||
(nsCRT::strcmp(mScheme, "about") == 0)) {
// resource/file url's do not have host names.
// The remainder of the string is the file name
PRInt32 flen = nsCRT::strlen(cp);
mPath = (char*) PR_Malloc(flen + 1);
PL_strcpy(mPath, cp);
#ifdef NS_WIN32
if (nsCRT::strcmp(mScheme, "file") == 0) {
// If the filename starts with a "x|" where is an single
// character then we assume it's a drive name and change the
// vertical bar back to a ":"
if ((flen >= 2) && (mPath[1] == '|')) {
mPath[1] = ':';
}
}
#endif /* NS_WIN32 */
} else {
// Host name follows protocol for http style urls
cp = PL_strpbrk(cp, "/:");
if (nsnull == cp) {
// There is only a host name
PRInt32 hlen = nsCRT::strlen(cp0);
mHost = (char*) PR_Malloc(hlen + 1);
PL_strcpy(mHost, cp0);
}
else {
PRInt32 hlen = cp - cp0;
mHost = (char*) PR_Malloc(hlen + 1);
PL_strncpy(mHost, cp0, hlen);
mHost[hlen] = 0;
if (':' == *cp) {
// We have a port number
cp0 = cp+1;
cp = PL_strchr(cp, '/');
mPort = strtol(cp0, (char **)nsnull, 10);
}
}
if (nsnull == cp) {
// There is no file name
// Set filename to "/"
mPath = (char*) PR_Malloc(2);
mPath[0] = '/';
mPath[1] = 0;
}
else {
// The rest is the file name
PRInt32 flen = nsCRT::strlen(cp);
mPath = (char*) PR_Malloc(flen + 1);
PL_strcpy(mPath, cp);
}
}
}
// printf("protocol='%s' host='%s' file='%s'\n", mScheme, mHost, mPath);
// NS_UNLOCK_INSTANCE();
return NS_OK;
}
void
nsStandardURL::ReconstructSpec()
{
PR_FREEIF(mSpec);
char portBuffer[10];
if (-1 != mPort) {
PR_snprintf(portBuffer, 10, ":%d", mPort);
}
else {
portBuffer[0] = '\0';
}
PRInt32 plen = PL_strlen(mScheme) + PL_strlen(mHost) +
PL_strlen(portBuffer) + PL_strlen(mPath) + 4;
if (mRef) {
plen += 1 + PL_strlen(mRef);
}
if (mQuery) {
plen += 1 + PL_strlen(mQuery);
}
mSpec = (char *) PR_Malloc(plen + 1);
if (PL_strcmp(mScheme, "about") == 0) {
PR_snprintf(mSpec, plen, "%s:%s", mScheme, mPath);
} else {
PR_snprintf(mSpec, plen, "%s://%s%s%s",
mScheme, ((nsnull != mHost) ? mHost : ""), portBuffer,
mPath);
}
if (mRef) {
PL_strcat(mSpec, "#");
PL_strcat(mSpec, mRef);
}
if (mQuery) {
PL_strcat(mSpec, "?");
PL_strcat(mSpec, mQuery);
}
}
////////////////////////////////////////////////////////////////////////////////
// nsIURI methods:
NS_IMETHODIMP
nsStandardURL::GetDirectory(char * *aDirectory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::SetDirectory(char * aDirectory)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::GetFileName(char * *aFileName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::SetFileName(char * aFileName)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::GetQuery(char * *aQuery)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::SetQuery(char * aQuery)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::GetRef(char * *aRef)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsStandardURL::SetRef(char * aRef)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
NS_METHOD
nsStandardURL::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsStandardURL* url = new nsStandardURL(aOuter);
if (url == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(url);
nsresult rv = url->QueryInterface(aIID, aResult);
NS_RELEASE(url);
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,118 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsStandardUrl_h__
#define nsStandardUrl_h__
#include "nsIURL.h"
#include "nsAgg.h"
// XXX regenerate:
#define NS_THIS_STANDARDURL_IMPLEMENTATION_CID \
{ /* 905ed480-f11f-11d2-9322-000000000000 */ \
0x905ed480, \
0xf11f, \
0x11d2, \
{0x93, 0x22, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} \
}
class nsStandardURL : public nsIURI
{
public:
NS_DECL_AGGREGATED
////////////////////////////////////////////////////////////////////////////
// nsIURI methods:
/* attribute string Spec; */
NS_IMETHOD GetSpec(char * *aSpec);
NS_IMETHOD SetSpec(char * aSpec);
/* attribute string Scheme; */
NS_IMETHOD GetScheme(char * *aScheme);
NS_IMETHOD SetScheme(char * aScheme);
/* attribute string PreHost; */
NS_IMETHOD GetPreHost(char * *aPreHost);
NS_IMETHOD SetPreHost(char * aPreHost);
/* attribute string Host; */
NS_IMETHOD GetHost(char * *aHost);
NS_IMETHOD SetHost(char * aHost);
/* attribute long Port; */
NS_IMETHOD GetPort(PRInt32 *aPort);
NS_IMETHOD SetPort(PRInt32 aPort);
/* attribute string Path; */
NS_IMETHOD GetPath(char * *aPath);
NS_IMETHOD SetPath(char * aPath);
/* boolean Equals (in nsIURI other); */
NS_IMETHOD Equals(nsIURI *other, PRBool *_retval);
/* nsIURI Clone (); */
NS_IMETHOD Clone(nsIURI **_retval);
/* string MakeAbsolute (in string relativePart); */
NS_IMETHOD MakeAbsolute(const char *relativePart, char **_retval);
////////////////////////////////////////////////////////////////////////////
// nsIURI methods:
/* attribute string Directory; */
NS_IMETHOD GetDirectory(char * *aDirectory);
NS_IMETHOD SetDirectory(char * aDirectory);
/* attribute string FileName; */
NS_IMETHOD GetFileName(char * *aFileName);
NS_IMETHOD SetFileName(char * aFileName);
/* attribute string Query; */
NS_IMETHOD GetQuery(char * *aQuery);
NS_IMETHOD SetQuery(char * aQuery);
/* attribute string Ref; */
NS_IMETHOD GetRef(char * *aRef);
NS_IMETHOD SetRef(char * aRef);
////////////////////////////////////////////////////////////////////////////
// nsStandardURL methods:
nsStandardURL(nsISupports* outer);
virtual ~nsStandardURL();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
protected:
nsresult Parse(const char* spec, nsIURI* aBaseUrl);
void ReconstructSpec();
protected:
char* mScheme;
char* mPreHost;
char* mHost;
PRInt32 mPort;
char* mPath;
char* mRef;
char* mQuery;
char* mSpec; // XXX go away
};
#endif // nsStandardUrl_h__

View File

@@ -0,0 +1,174 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIStreamListener.h"
#include "nsCRT.h"
#include "nsIBufferInputStream.h"
#include "nsIBufferOutputStream.h"
#include "nsIBuffer.h"
////////////////////////////////////////////////////////////////////////////////
class nsSyncStreamListener : public nsIStreamListener
{
public:
NS_DECL_ISUPPORTS
// nsIStreamObserver methods:
NS_IMETHOD OnStartBinding(nsISupports* context);
NS_IMETHOD OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg);
NS_IMETHOD OnStartRequest(nsISupports* context);
NS_IMETHOD OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg);
// nsIStreamListener methods:
NS_IMETHOD OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength);
// nsSyncStreamListener methods:
nsSyncStreamListener()
: mOutputStream(nsnull) {
NS_INIT_REFCNT();
}
virtual ~nsSyncStreamListener();
nsresult Init(nsIBufferInputStream* *result);
nsIBufferOutputStream* GetOutputStream() { return mOutputStream; }
protected:
nsIBufferOutputStream* mOutputStream;
};
////////////////////////////////////////////////////////////////////////////////
#define NS_SYNC_STREAM_LISTENER_SEGMENT_SIZE (4 * 1024)
#define NS_SYNC_STREAM_LISTENER_BUFFER_SIZE (32 * 1024)
nsresult
nsSyncStreamListener::Init(nsIBufferInputStream* *result)
{
nsresult rv;
nsIBufferInputStream* in;
rv = NS_NewPipe(&in, &mOutputStream, NS_SYNC_STREAM_LISTENER_SEGMENT_SIZE,
NS_SYNC_STREAM_LISTENER_BUFFER_SIZE, PR_TRUE, nsnull);
if (NS_FAILED(rv)) return rv;
*result = in;
return NS_OK;
}
nsSyncStreamListener::~nsSyncStreamListener()
{
NS_IF_RELEASE(mOutputStream);
}
NS_IMPL_ADDREF(nsSyncStreamListener);
NS_IMPL_RELEASE(nsSyncStreamListener);
NS_IMETHODIMP
nsSyncStreamListener::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
NS_ASSERTION(aInstancePtr, "no instance pointer");
if (aIID.Equals(nsIStreamListener::GetIID()) ||
aIID.Equals(nsIStreamObserver::GetIID()) ||
aIID.Equals(nsISupports::GetIID())) {
*aInstancePtr = NS_STATIC_CAST(nsIStreamListener*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMETHODIMP
nsSyncStreamListener::OnStartBinding(nsISupports* context)
{
return NS_OK;
}
NS_IMETHODIMP
nsSyncStreamListener::OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
// XXX what do we do with the status and error message?
return mOutputStream->Close();
}
NS_IMETHODIMP
nsSyncStreamListener::OnStartRequest(nsISupports* context)
{
return NS_OK;
}
NS_IMETHODIMP
nsSyncStreamListener::OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
// XXX what do we do with the status and error message?
return mOutputStream->Close();
}
NS_IMETHODIMP
nsSyncStreamListener::OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength)
{
nsresult rv;
PRUint32 amt;
PRInt32 count = (PRInt32)aLength;
while (count > 0) { // this should only go around once since the output stream is blocking
rv = mOutputStream->WriteFrom(aIStream, count, &amt);
if (NS_FAILED(rv)) return rv;
count -= amt;
}
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
NS_NET nsresult
NS_NewSyncStreamListener(nsIBufferInputStream **inStream,
nsIBufferOutputStream **outStream,
nsIStreamListener **listener)
{
nsSyncStreamListener* l = new nsSyncStreamListener();
if (l == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = l->Init(inStream);
if (NS_FAILED(rv)) {
delete l;
return rv;
}
NS_ADDREF(l);
*listener = l;
*outStream = l->GetOutputStream();
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,59 @@
# 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.
NODEPEND=1
IGNORE_MANIFEST = 1
MODULE = urltest
DEPTH= ..\..\..
MAKE_OBJ_TYPE=EXE
EXENAME=urltest
PDBFILE=nunettest.pdb
MAPFILE=nunettest.map
OBJS= \
.\$(OBJDIR)\urltest.obj \
$(NULL)
PROGRAM=.\$(OBJDIR)\$(EXENAME).EXE
LCFLAGS=-DNETSCAPE
LLIBS=$(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\nunet.lib \
$(DIST)\lib\netlib.lib \
$(DIST)\lib\plc3.lib
LINCS=$(LINCS) -I. \
-I$(PUBLIC)\raptor \
-I$(PUBLIC)\netlib \
-I$(PUBLIC)\nunet \
-I$(PUBLIC)\pref \
-I$(PUBLIC)\xpcom
# clobber and clobber_all will remove the following garbage:
GARBAGE = $(GARBAGE) _gen
include <$(DEPTH)/config/rules.mak>
install:: $(PROGRAM)
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
clobber::
rm -f $(DIST)\bin\$(EXENAME).exe

View File

@@ -0,0 +1,2 @@
These tests need to be cleaned up a lot. There is still left over
stuff from previous test. TODO -Gagan Saksena

View File

@@ -0,0 +1,316 @@
/* -*- 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.
*/
/*
TODO- big cleanup! -Gagan Saksena 03/25/99
*/
#include <stdio.h>
#include <assert.h>
#ifdef WIN32
#include <windows.h>
#endif
#include "plstr.h"
#include "nsIEventQueue.h"
#include "nsIComponentManager.h"
#include "nsIStreamListener.h"
#include "nsIInputStream.h"
#include "nsINetService.h"
#include "nsRepository.h"
#include "nsIServiceManager.h"
#include "nsIEventQueueService.h"
#include "nsString.h"
#include "nsIURL.h"
#include "nsINetService.h"
#ifdef XP_PC
#define NETLIB_DLL "netlib.dll"
#define XPCOM_DLL "xpcom32.dll"
#else
#ifdef XP_MAC
#include "nsMacRepository.h"
#else
#define NETLIB_DLL "libnetlib.so"
#define XPCOM_DLL "libxpcom.so"
#endif
#endif
// Define CIDs...
static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID);
static NS_DEFINE_IID(kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID);
// Define IIDs...
static NS_DEFINE_IID(kIEventQueueServiceIID, NS_IEVENTQUEUESERVICE_IID);
//NS_DEFINE_IID(kIPostToServerIID, NS_IPOSTTOSERVER_IID);
#ifdef XP_UNIX
extern "C" char *fe_GetConfigDir(void) {
printf("XXX: return /tmp for fe_GetConfigDir\n");
return strdup("/tmp");
}
#endif /* XP_UNIX */
#if 0 // Enable after the stream listener interface is cleared up.
class TestConsumer : public nsIStreamListener
{
public:
NS_DECL_ISUPPORTS
TestConsumer();
NS_IMETHOD GetBindInfo(nsIURL* aURL, nsStreamBindingInfo* info);
NS_IMETHOD OnProgress(nsIURL* aURL, PRUint32 Progress, PRUint32 ProgressMax);
NS_IMETHOD OnStatus(nsIURL* aURL, const PRUnichar* aMsg);
NS_IMETHOD OnStartBinding(nsIURL* aURL, const char *aContentType);
NS_IMETHOD OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUint32 length);
NS_IMETHOD OnStopBinding(nsIURL* aURL, nsresult status, const PRUnichar* aMsg);
protected:
~TestConsumer();
};
TestConsumer::TestConsumer()
{
NS_INIT_REFCNT();
}
NS_DEFINE_IID(kIStreamListenerIID, NS_ISTREAMLISTENER_IID);
NS_IMPL_ISUPPORTS(TestConsumer,kIStreamListenerIID);
TestConsumer::~TestConsumer()
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer is being deleted...\n");
}
}
NS_IMETHODIMP TestConsumer::GetBindInfo(nsIURL* aURL, nsStreamBindingInfo* info)
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer::GetBindInfo: URL: %p\n", aURL);
}
return 0;
}
NS_IMETHODIMP TestConsumer::OnProgress(nsIURL* aURL, PRUint32 Progress,
PRUint32 ProgressMax)
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer::OnProgress: URL: %p - %d of total %d\n", aURL, Progress, ProgressMax);
}
return 0;
}
NS_IMETHODIMP TestConsumer::OnStatus(nsIURL* aURL, const PRUnichar* aMsg)
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer::OnStatus: ");
nsAutoString str(aMsg);
char* c = str.ToNewCString();
fputs(c, stdout);
free(c);
fputs("\n", stdout);
}
return 0;
}
NS_IMETHODIMP TestConsumer::OnStartBinding(nsIURL* aURL, const char *aContentType)
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer::OnStartBinding: URL: %p, Content type: %s\n", aURL, aContentType);
}
return 0;
}
NS_IMETHODIMP TestConsumer::OnDataAvailable(nsIURL* aURL, nsIInputStream *pIStream, PRUint32 length)
{
PRUint32 len;
if (bTraceEnabled) {
printf("\n+++ TestConsumer::OnDataAvailable: URL: %p, %d bytes available...\n", aURL, length);
}
do {
nsresult err;
char buffer[80];
PRUint32 i;
err = pIStream->Read(buffer, 0, 80, &len);
if (err == NS_OK) {
for (i=0; i<len; i++) {
putchar(buffer[i]);
}
}
} while (len > 0);
return 0;
}
NS_IMETHODIMP TestConsumer::OnStopBinding(nsIURL* aURL, nsresult status, const PRUnichar* aMsg)
{
if (bTraceEnabled) {
printf("\n+++ TestConsumer::OnStopBinding... URL: %p status: %d\n", aURL, status);
}
if (NS_FAILED(status)) {
const char* url;
aURL->GetSpec(&url);
printf("Unable to load URL %s\n", url);
}
/* The document has been loaded, so drop out of the message pump... */
urlLoaded = 1;
return 0;
}
#endif // 0 - enabled after streamlistener is fixed.
nsresult ReadStreamSynchronously(nsIInputStream* aIn)
{
nsresult rv;
char buffer[1024];
if (nsnull != aIn) {
PRUint32 len;
do {
PRUint32 i;
rv = aIn->Read(buffer, sizeof(buffer), &len);
for (i=0; i<len; i++) {
putchar(buffer[i]);
}
} while (len > 0);
}
return NS_OK;
}
int testURL(const char* pURL=0);
int main(int argc, char **argv)
{
nsAutoString url_address;
// char buf[256];
// nsIStreamListener *pConsumer;
nsIEventQueueService* pEventQService;
// nsIURL *pURL;
nsresult result;
int i;
if (argc < 2) {
printf("urltest: <URL> \n");
return 0;
}
NS_InitXPCOM(nsnull);
nsComponentManager::AutoRegister(nsIComponentManager::NS_Startup, "./components");
testURL(argv[1]);
return 0;
#if 0
nsRepository::RegisterComponent(
kEventQueueServiceCID, NULL, NULL, XPCOM_DLL, PR_FALSE, PR_FALSE);
nsRepository::RegisterComponent(
kNetServiceCID, NULL, NULL, NETLIB_DLL, PR_FALSE, PR_FALSE);
// Create the Event Queue for this thread...
pEventQService = nsnull;
result = nsServiceManager::GetService(kEventQueueServiceCID,
kIEventQueueServiceIID,
(nsISupports **)&pEventQService);
if (NS_SUCCEEDED(result)) {
// XXX: What if this fails?
result = pEventQService->CreateThreadEventQueue();
}
for (i=1; i < argc; i++) {
if (PL_strcasecmp(argv[i], "-all") == 0) {
testURL(0);
continue;
}
testURL(argv[i]);
}
if (nsnull != pEventQService) {
pEventQService->DestroyThreadEventQueue();
nsServiceManager::ReleaseService(kEventQueueServiceCID, pEventQService);
}
return 0;
#endif
}
int testURL(const char* i_pURL)
{
const char* temp;
if (i_pURL)
{
nsIURL* pURL = CreateURL(i_pURL);
pURL->DebugString(&temp);
cout << temp <<endl;
nsIInputStream* is = 0;
if (NS_OK == pURL->GetStream(&is))
{
ReadStreamSynchronously(is);
}
pURL->Release();
return 0;
}
const int tests = 8;
const char* url[tests] =
{
"http://username:password@hostname.com:80/pathname/./more/stuff/../path",
"username@host:8080/path",
"http://gagan/",
"host:port/netlib", //port should now be 0
"", //empty string
"mailbox:///foo", // No host specified path should be /foo
"user:pass@hostname.edu:80/pathname", //this is always user:pass and not http:user
"username:password@hostname:80/pathname"
};
for (int i = 0; i< tests; ++i)
{
nsIURL* pURL = CreateURL(url[i]);
pURL->DebugString(&temp);
cout << temp << endl;
pURL->Release();
}
return 0;
}

View File

@@ -0,0 +1,74 @@
# 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.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
LIBRARY_NAME = netwerk
IS_COMPONENT = 1
MODULE = netwerk
CPPSRCS = \
nsNetFactory.cpp \
$(NULL)
SHARED_LIBRARY_LIBS = \
$(DIST)/lib/libnetwerkbase_s.a \
$(DIST)/lib/libnetwerkdns_s.a \
$(NULL)
LOCAL_INCLUDES += \
-I$(srcdir)/../base/src \
-I$(srcdir)/../dns/src \
$(NULL)
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
ifeq ($(OS_ARCH),HP-UX)
EXTRA_DSO_LDOPTS = -c objs/objslist
else
EXTRA_DSO_LDOPTS = \
$(MKSHLIB_FORCE_ALL) \
$(SHARED_LIBRARY_LIBS) \
$(MKSHLIB_UNFORCE_ALL) \
$(NULL)
endif
include $(DEPTH)/config/rules.mk
ifeq ($(OS_ARCH),HP-UX)
shared_library_objs: $(SHARED_LIBRARY_LIBS)
rm -rf objs
mkdir objs
(cd objs; for lib in $(SHARED_LIBRARY_LIBS); do ar xv ../$$lib; done) \
| awk '{ print "objs/"$$3 }' > objs/objslist
$(LIBRARY) $(SHARED_LIBRARY): shared_library_objs Makefile
else
$(LIBRARY) $(SHARED_LIBRARY): $(SHARED_LIBRARY_LIBS) Makefile
endif

View File

@@ -0,0 +1,55 @@
#!gmake
#
# 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.
DEPTH=..\..
MODULE=netwerk
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
MAKE_OBJ_TYPE=DLL
DLLNAME=netwerk
DLL=.\$(OBJDIR)\$(DLLNAME).dll
CPP_OBJS= \
.\$(OBJDIR)\nsNetFactory.obj \
$(NULL)
LLIBS= \
$(DIST)\lib\netwerkbase_s.lib \
$(DIST)\lib\netwerkdns_s.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\plc3.lib \
$(LIBNSPR)
MISCDEP=$(LLIBS)
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
-I$(DEPTH)\netwerk\base\src \
-I$(DEPTH)\netwerk\dns\src \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib

View File

@@ -0,0 +1,144 @@
/* -*- 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.
*/
#include "nsIGenericFactory.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIOService.h"
#include "nsNetModuleMgr.h"
//#include "nsFileTransportService.h"
#include "nsSocketTransportService.h"
#include "nscore.h"
#include "nsStandardUrl.h"
#include "nsDnsService.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
//static NS_DEFINE_CID(kFileTransportServiceCID, NS_FILETRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kStandardURLCID, NS_STANDARDURL_CID);
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kExternalModuleManagerCID, NS_NETMODULEMGR_CID);
static NS_DEFINE_CID(kDNSServiceCID, NS_DNSSERVICE_CID);
////////////////////////////////////////////////////////////////////////////////
extern "C" PR_IMPLEMENT(nsresult)
NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory)
{
nsresult rv;
if (aFactory == nsnull)
return NS_ERROR_NULL_POINTER;
nsIGenericFactory* fact;
if (aClass.Equals(kIOServiceCID)) {
rv = NS_NewGenericFactory(&fact, nsIOService::Create);
}
#if 0
else if (aClass.Equals(kFileTransportServiceCID)) {
rv = NS_NewGenericFactory(&fact, nsFileTransportService::Create);
}
#endif
else if (aClass.Equals(kSocketTransportServiceCID)) {
rv = NS_NewGenericFactory(&fact, nsSocketTransportService::Create);
}
else if (aClass.Equals(kStandardURLCID)) {
rv = NS_NewGenericFactory(&fact, nsStandardURL::Create);
}
else if (aClass.Equals(kExternalModuleManagerCID)) {
rv = NS_NewGenericFactory(&fact, nsNetModuleMgr::Create);
}
else if (aClass.Equals(kDNSServiceCID)) {
rv = NS_NewGenericFactory(&fact, nsDNSService::Create);
}
else {
rv = NS_ERROR_FAILURE;
}
if (NS_SUCCEEDED(rv))
*aFactory = fact;
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kIOServiceCID,
"Network Service",
"component://netscape/network/net-service",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;
#if 0
rv = compMgr->RegisterComponent(kFileTransportServiceCID,
"File Transport Service",
"component://netscape/network/file-transport-service",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;
#endif
rv = compMgr->RegisterComponent(kSocketTransportServiceCID,
"Socket Transport Service",
"component://netscape/network/socket-transport-service",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kStandardURLCID,
"Standard URL Implementation",
"component://netscape/network/standard-url",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kExternalModuleManagerCID,
"External Module Manager",
"component://netscape/network/net-extern-mod",
aPath, PR_TRUE, PR_TRUE);
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kIOServiceCID, aPath);
if (NS_FAILED(rv)) return rv;
#if 0
rv = compMgr->UnregisterComponent(kFileTransportServiceCID, aPath);
if (NS_FAILED(rv)) return rv;
#endif
rv = compMgr->UnregisterComponent(kSocketTransportServiceCID, aPath);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kStandardURLCID, aPath);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kExternalModuleManagerCID, aPath);
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,33 @@
#! gmake
#
# 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.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
public \
src \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,27 @@
#!gmake
#
# 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.
DEPTH = ..\..
MODULE = netwerk
DIRS= \
public \
src \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,42 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
XPIDL_MODULE = netwerk_dns
XPIDLSRCS = \
nsIDNSListener.idl \
nsIDNSService.idl \
$(NULL)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,35 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
XPIDL_MODULE = netwerk_dns
XPIDLSRCS = \
.\nsIDNSListener.idl \
.\nsIDNSService.idl \
$(NULL)
include <$(DEPTH)/config/rules.mak>

View File

@@ -0,0 +1,52 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
%{C++
#include "prnetdb.h"
typedef struct nsHostEnt
{
PRHostEnt hostEnt;
char buffer[PR_NETDB_BUF_SIZE];
} nsHostEnt;
%}
[ptr] native nsHostEntStar(nsHostEnt);
[scriptable, uuid(7686cef0-206e-11d3-9348-00104ba0fd40)]
interface nsIDNSListener : nsISupports
{
/**
* Notify the listener that we are about to lookup the requested hostname.
*/
void OnStartLookup(in nsISupports ctxt, in string hostname);
/**
* Notify the listener that we have found one or more addresses for the hostname.
*/
void OnFound(in nsISupports ctxt, in string hostname,
in nsHostEntStar entry);
/**
* Notify the listener that we the lookup has completed.
*/
void OnStopLookup(in nsISupports ctxt, in string hostname);
};

View File

@@ -0,0 +1,42 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsISupports.idl"
%{C++
#define NS_DNSSERVICE_CID \
{ /* 718e7c81-f8b8-11d2-b951-c80918051d3c */ \
0x718e7c81, \
0xf8b8, \
0x11d2, \
{ 0xb9, 0x51, 0xc8, 0x09, 0x18, 0x05, 0x1d, 0x3c } \
}
%}
interface nsIRequest;
interface nsIDNSListener;
[scriptable, uuid(598f2f80-206f-11d3-9348-00104ba0fd40)]
interface nsIDNSService : nsISupports
{
nsIRequest Lookup(in nsISupports ctxt, in string hostname,
in nsIDNSListener listener);
};

View File

@@ -0,0 +1,53 @@
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
LIBRARY_NAME = netwerkdns_s
include $(DEPTH)/config/autoconf.mk
CPPSRCS = \
nsDnsService.cpp \
$(NULL)
EXPORTS = \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
MODULE = netwerk
include $(topsrcdir)/config/config.mk
MKSHLIB :=
# we don't want the shared lib, but we want to force the creation of a
# static l\ib.
override NO_SHARED_LIB=1
override NO_STATIC_LIB=
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,44 @@
# 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.
MODULE = netwerk
DEPTH = ..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
LIBRARY_NAME=netwerkdns_s
CPP_OBJS = \
.\$(OBJDIR)\nsDnsService.obj \
$(NULL)
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
$(NULL)
include <$(DEPTH)\config\rules.mak>
libs:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
clobber::
rm -f $(DIST)\lib\$(LIBRARY_NAME).lib

View File

@@ -0,0 +1,159 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsDnsService.h"
#include "nsIDNSListener.h"
#include "nsIRequest.h"
#include "prnetdb.h"
////////////////////////////////////////////////////////////////////////////////
class nsDNSRequest;
class nsDNSLookup
{
public:
nsresult AddDNSRequest(nsDNSRequest* request);
const char* mHostName;
PRHostEnt mHostEntry; // NSPR or platform specific hostent?
PRIntn mCount;
PRBool mComplete;
PRIntn mIndex; // XXX - for round robin
void * mListenerQueue; // XXX - maintain a list of nsDNSRequests.
};
class nsDNSRequest : public nsIRequest
{
nsIDNSListener* mListener;
nsDNSLookup* mHostNameLookup;
// nsIRequest methods:
NS_IMETHOD Cancel(void);
NS_IMETHOD Suspend(void);
NS_IMETHOD Resume(void);
};
////////////////////////////////////////////////////////////////////////////////
// nsDNSService methods:
nsDNSService::nsDNSService()
{
NS_INIT_REFCNT();
}
nsresult
nsDNSService::Init()
{
// initialize DNS cache (persistent?)
#if defined(XP_MAC)
// create Open Transport Service Provider for DNS Lookups
#elif defined(_WIN)
// create DNS EventHandler Window
#elif defined(XP_UNIX)
// XXXX - ?
#endif
return NS_OK;
}
nsDNSService::~nsDNSService()
{
// deallocate cache
#if defined(XP_MAC)
// deallocate Open Transport Service Provider
#elif defined(_WIN)
// dispose DNS EventHandler Window
#elif defined(XP_UNIX)
// XXXX - ?
#endif
}
NS_IMPL_ISUPPORTS(nsDNSService, nsIDNSService::GetIID());
NS_METHOD
nsDNSService::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsDNSService* ph = new nsDNSService();
if (ph == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(ph);
nsresult rv = ph->QueryInterface(aIID, aResult);
NS_RELEASE(ph);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIDNSService methods:
NS_IMETHODIMP
nsDNSService::Lookup(nsISupports* ctxt,
const char* hostname,
nsIDNSListener* listener,
nsIRequest* *DNSRequest)
{
nsresult rv;
PRStatus status;
nsHostEnt* hostentry;
/*
check cache for existing nsDNSLookup with matching hostname
call OnStartLookup
if (nsDNSLookup doesn't exist) {
create nsDNSLookup for this hostname
kick off DNS Lookup
}
if (nsDNSLookup already has at least one address) {
call OnFound
}
if (nsDNSLookup is already complete) {
call OnStopLookup
return null
}
create nsDNSRequest
queue nsDNSRequest on nsDNSLookup // XXXX - potential race condition here
return nsDNSRequest
*/
// temporary SYNC version
hostentry = new nsHostEnt;
if (!hostentry)
return NS_ERROR_OUT_OF_MEMORY;
rv = listener->OnStartLookup(ctxt, hostname);
status = PR_GetHostByName(hostname, hostentry->buffer, PR_NETDB_BUF_SIZE, &hostentry->hostEnt);
if (PR_SUCCESS == status)
rv = listener->OnFound(ctxt, hostname, hostentry); // turn ownership of hostentry over to listener?
else
delete hostentry;
rv = listener->OnStopLookup(ctxt, hostname);
return NS_OK;
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsDNSService_h__
#define nsDNSService_h__
#include "nsIDNSService.h"
#ifdef XP_PC
#include <windows.h>
#endif
class nsIDNSListener;
class nsICancelable;
class nsDNSService : public nsIDNSService
{
public:
NS_DECL_ISUPPORTS
// nsDNSService methods:
nsDNSService();
virtual ~nsDNSService();
nsresult Init();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
// nsIDNSService methods:
NS_IMETHOD Lookup(nsISupports *ctxt,
const char *hostname,
nsIDNSListener *listener,
nsIRequest **result);
protected:
// nsDNSLookup cache? - list of nsDNSLookups
#if defined(XP_MAC)
InetSvcRef mServiceRef;
#elif defined(XP_UNIX)
//XXX - to be defined
#elif defined(_WIN32)
WNDCLASS wc;
HWND DNSWindow;
UINT msgAsyncSelect;
UINT msgFoundDNS;
#endif
};
#endif /* nsDNSService_h__ */

37
mozilla/netwerk/gen-makefile.sh Executable file
View File

@@ -0,0 +1,37 @@
#!/bin/sh
# Relative location of |makefiles|
MODULE_DIR="mozilla/netwerk"
# Name of module
MODULE=`basename $MODULE_DIR`
# Depth of module from topsrcdir
MODULE_DEPTH=`echo $MODULE_DIR | sed -e 's|[^/]||g' -e 's|/|../|g' -e 's|/$||'`
# Relative directory script was run from
RUN_DIR=`echo $PWD | sed -e 's|.*\('$MODULE_DIR'\)$|\1|'`
if [ -z "$RUN_DIR" -o "$RUN_DIR" != "$MODULE_DIR" ]
then
echo
echo "This script needs to be run from $MODULE_DIR"
echo
exit -1
fi
if [ -n "$MODULE_DEPTH" ]
then
cd $MODULE_DEPTH
fi
if [ -f config.status ]
then
CONFIG_FILES=`cat $MODULE/makefiles` ./config.status
else
echo
echo "Missing config.status in $PWD"
echo "Have you run ./configure yet?"
echo
exit -1
fi

View File

@@ -0,0 +1,22 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
/* Defining the following causes NS_NET to be defined as NS_EXPORT. */
#define _IMPL_NS_NET
#include "MacSharedPrefix.h"

View File

@@ -0,0 +1,22 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.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.
*/
/* Defining the following causes NS_NET to be defined as NS_EXPORT. */
#define _IMPL_NS_NET
#include "MacSharedPrefix_debug.h"

Binary file not shown.

View File

@@ -0,0 +1,30 @@
#!gmake
#
# 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.
DEPTH = ..
MODULE = netwerk
DIRS= \
base \
dns \
build \
protocol \
test \
$(NULL)
include <$(DEPTH)\config\rules.mak>

21
mozilla/netwerk/makefiles Normal file
View File

@@ -0,0 +1,21 @@
netwerk/Makefile
netwerk/base/Makefile
netwerk/base/public/Makefile
netwerk/base/src/Makefile
netwerk/dns/Makefile
netwerk/dns/public/Makefile
netwerk/dns/src/Makefile
netwerk/build/Makefile
netwerk/protocol/Makefile
netwerk/protocol/file/Makefile
netwerk/protocol/file/public/Makefile
netwerk/protocol/file/src/Makefile
netwerk/protocol/ftp/Makefile
netwerk/protocol/ftp/public/Makefile
netwerk/protocol/ftp/src/Makefile
netwerk/protocol/http/Makefile
netwerk/protocol/http/public/Makefile
netwerk/protocol/http/src/Makefile
netwerk/protocol/resource/Makefile
netwerk/protocol/resource/src/Makefile
netwerk/test/Makefile

View File

@@ -0,0 +1,35 @@
#! gmake
#
# 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.
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
file \
resource \
ftp \
http \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,33 @@
#! gmake
#
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
public \
src \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,30 @@
#!gmake
#
# 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.
#------------------------------------------------------------------------
#
# Makefile to build the pluggable HTTP
#
#------------------------------------------------------------------------
DEPTH=..\..\..
DIRS= \
public \
src \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,42 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
XPIDL_MODULE = netwerk_file
XPIDLSRCS = \
nsIFileChannel.idl \
nsIFileProtocolHandler.idl \
$(NULL)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,36 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ..\..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
XPIDL_MODULE = netwerk_file
XPIDLSRCS = \
.\nsIFileChannel.idl \
.\nsIFileProtocolHandler.idl \
$(NULL)
include <$(DEPTH)/config/rules.mak>

View File

@@ -0,0 +1,122 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIChannel.idl"
interface nsISimpleEnumerator;
[scriptable, uuid(73025830-0ce2-11d3-9331-00104ba0fd40)]
interface nsIFileChannel : nsIChannel
{
/**
* Returns the creation date of the URL.
*/
readonly attribute PRTime CreationDate;
/**
* Returns the last modification date of the URL.
*/
readonly attribute PRTime ModDate;
/**
* Returns the size of the file referred to by the URL.
* @return NS_ERROR_FAILURE if the URL refers to a directory.
*/
readonly attribute unsigned long FileSize;
/**
* Returns the parent directory of a URL.
*/
readonly attribute nsIFileChannel Parent;
/**
* Returns an enumeration of the elements in a directory. Each
* element in the enumeration is an nsIFileChannel.
* @return NS_ERROR_FAILURE if the current nsIFileChannel does
* not specify a directory.
*/
readonly attribute nsISimpleEnumerator Children;
/**
* Returns a native path string suitable to be passes to native platform
* routines.
*/
readonly attribute string NativePath;
/**
* Returns true if the file exists.
*/
boolean Exists();
/**
* Creates an empty file if the file does not exist.
*/
void Create();
/**
* Returns true if the file exists.
*/
void Delete();
/**
* Move or rename a file.
*/
void MoveFrom(in nsIURI src);
/**
* Copies the contents of a file to a new destination. Creates the
* destination file if it doesn't already exist, otherwise overwrites
* it.
*/
void CopyFrom(in nsIURI src);
/**
* Returns true if the file URL specifies a directory. Note that this
* may be the case even if the file URL does not terminate with a slash.
*/
boolean IsDirectory();
/**
* Returns true if the file URL specifies a file and not a directory.
*/
boolean IsFile();
/**
* Returns true if the specified file is a symbolic link (on unix),
* alias (on Mac) or shortcut (on Windows).
*/
boolean IsLink();
/**
* Returns a file URL to the destination of a link (alias or shortcut).
*/
nsIFileChannel ResolveLink();
/**
* Returns a unique file name for the directory of the current URL.
*/
string MakeUniqueFileName(in string baseName);
/**
* Executes a program specified by the file channel.
* @param args - The program arguments to run with. If not specified,
* the Query portion of the URI is used as the argument string.
*/
void Execute(in string args);
};

View File

@@ -1,4 +1,4 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
/* -*- Mode: C++; tab-width: 2; 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
@@ -16,10 +16,11 @@
* Reserved.
*/
#ifndef __NS_JSWINPROTOTYPE_H__
#define __NS_JSWINPROTOTYPE_H__
#include "nsIProtocolHandler.idl"
PRInt32
InitWinProfilePrototype(JSContext *jscontext, JSObject *global, JSObject **winRegPrototype);
interface nsIFileChannel;
#endif
interface nsIFileProtocolHandler : nsIProtocolHandler
{
nsIFileChannel NewChannelFromNativePath(in string nativePath);
};

View File

@@ -0,0 +1,47 @@
# 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.
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
LIBRARY_NAME = fileprotocol
IS_COMPONENT = 1
include $(DEPTH)/config/autoconf.mk
CPPSRCS = \
nsFileChannel.cpp \
nsFileProtocolHandler.cpp \
nsFileProtocolFactory.cpp \
$(NULL)
REQUIRES = xpcom netwerk raptor
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
TARGET = $(LIBARY)
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,61 @@
#!gmake
#
# 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.
DEPTH=..\..\..\..
MODULE=netwerk
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
IS_COMPONENT=1
MAKE_OBJ_TYPE=DLL
DLLNAME=fileprotocol
DLL=.\$(OBJDIR)\$(DLLNAME).dll
LLIBS= $(LLIBS) \
$(LIBNSPR) \
$(DIST)\lib\plc3.lib \
$(DIST)\lib\xpcom.lib \
$(NULL)
MISCDEP=$(LLIBS)
CPP_OBJS= \
.\$(OBJDIR)\nsFileChannel.obj \
.\$(OBJDIR)\nsFileProtocolHandler.obj \
.\$(OBJDIR)\nsFileProtocolFactory.obj \
$(NULL)
LOCAL_INCLUDES=-I.
INCLUDES = $(LOCAL_INCLUDES)
REQUIRES= netwerk
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) $(DLL) $(DIST)\bin\components
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).lib $(DIST)\lib

View File

@@ -0,0 +1,843 @@
/* -*- 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.
*/
#include "nsFileChannel.h"
#include "nscore.h"
#include "nsIEventSinkGetter.h"
#include "nsIURI.h"
#include "nsIEventQueue.h"
#include "nsIStreamListener.h"
#include "nsIIOService.h"
#include "nsIServiceManager.h"
#include "nsFileProtocolHandler.h"
#include "nsIBuffer.h"
#include "nsIBufferInputStream.h"
#include "nsIBufferOutputStream.h"
#include "nsAutoLock.h"
#include "netCore.h"
#include "nsIFileStream.h"
#include "nsISimpleEnumerator.h"
#include "nsIURL.h"
#include "prio.h"
NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
////////////////////////////////////////////////////////////////////////////////
nsFileChannel::nsFileChannel()
: mURI(nsnull), mGetter(nsnull), mListener(nsnull), mEventQueue(nsnull),
mContext(nsnull), mState(QUIESCENT),
mSuspended(PR_FALSE), mFileStream(nsnull),
mBufferInputStream(nsnull), mBufferOutputStream(nsnull),
mStatus(NS_OK), mHandler(nsnull), mSourceOffset(0)
{
NS_INIT_REFCNT();
}
nsresult
nsFileChannel::Init(nsFileProtocolHandler* handler,
const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
nsIEventQueue* queue)
{
nsresult rv;
mHandler = handler;
NS_ADDREF(mHandler);
mGetter = getter;
NS_IF_ADDREF(mGetter);
mLock = PR_NewLock();
if (mLock == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
if (getter) {
rv = getter->GetEventSink(verb, nsIStreamListener::GetIID(), (nsISupports**)&mListener);
// ignore the failure -- we can live without having an event sink
}
mURI = uri;
NS_ADDREF(mURI);
// XXX temporary, until we integrate more thoroughly with nsFileSpec
char* url;
rv = mURI->GetSpec(&url);
if (NS_FAILED(rv)) return rv;
nsFileURL fileURL(url);
nsCRT::free(url);
mSpec = fileURL;
mEventQueue = queue;
NS_IF_ADDREF(mEventQueue);
return NS_OK;
}
nsFileChannel::~nsFileChannel()
{
NS_IF_RELEASE(mURI);
NS_IF_RELEASE(mGetter);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mEventQueue);
NS_IF_RELEASE(mContext);
NS_IF_RELEASE(mHandler);
NS_ASSERTION(mFileStream == nsnull, "channel not closed");
NS_ASSERTION(mBufferInputStream == nsnull, "channel not closed");
NS_ASSERTION(mBufferOutputStream == nsnull, "channel not closed");
if (mLock)
PR_DestroyLock(mLock);
}
NS_IMETHODIMP
nsFileChannel::QueryInterface(const nsIID& aIID, void** aInstancePtr)
{
NS_ASSERTION(aInstancePtr, "no instance pointer");
if (aIID.Equals(nsIFileChannel::GetIID()) ||
aIID.Equals(nsIChannel::GetIID()) ||
aIID.Equals(kISupportsIID)) {
*aInstancePtr = NS_STATIC_CAST(nsIFileChannel*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
NS_IMPL_ADDREF(nsFileChannel);
NS_IMPL_RELEASE(nsFileChannel);
NS_METHOD
nsFileChannel::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsFileChannel* fc = new nsFileChannel();
if (fc == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(fc);
nsresult rv = fc->QueryInterface(aIID, aResult);
NS_RELEASE(fc);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// From nsIRequest
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileChannel::Cancel()
{
nsAutoLock lock(mLock);
nsresult rv = NS_OK;
mStatus = NS_BINDING_ABORTED;
if (mSuspended) {
Resume();
}
mState = ENDING;
return rv;
}
NS_IMETHODIMP
nsFileChannel::Suspend()
{
nsAutoLock lock(mLock);
nsresult rv = NS_OK;
if (!mSuspended) {
// XXX close the stream here?
mStatus = mHandler->Suspend(this);
mSuspended = PR_TRUE;
}
return rv;
}
NS_IMETHODIMP
nsFileChannel::Resume()
{
nsAutoLock lock(mLock);
nsresult rv = NS_OK;
if (!mSuspended) {
// XXX re-open the stream and seek here?
mStatus = mHandler->Resume(this);
mSuspended = PR_FALSE;
}
return rv;
}
////////////////////////////////////////////////////////////////////////////////
class nsAsyncOutputStream : public nsIBufferOutputStream {
public:
NS_DECL_ISUPPORTS
// nsIBaseStream methods:
NS_IMETHOD Close() {
return mOutputStream->Close();
}
// nsIOutputStream methods:
NS_IMETHOD Write(const char *buf, PRUint32 count, PRUint32 *writeCount) {
nsresult rv;
rv = mOutputStream->Write(buf, count, writeCount);
if (NS_FAILED(rv)) return rv;
rv = mListener->OnDataAvailable(mContext, mInputStream, mOffset, *writeCount);
mOffset += *writeCount;
return rv;
}
NS_IMETHOD Flush() {
return mOutputStream->Flush();
}
// nsIBufferOutputStream methods:
NS_IMETHOD GetBuffer(nsIBuffer * *aBuffer) {
return mOutputStream->GetBuffer(aBuffer);
}
NS_IMETHOD WriteFrom(nsIInputStream *inStr, PRUint32 count, PRUint32 *writeCount) {
nsresult rv;
rv = mOutputStream->WriteFrom(inStr, count, writeCount);
if (NS_FAILED(rv)) return rv;
rv = mListener->OnDataAvailable(mContext, mInputStream, mOffset, *writeCount);
mOffset += *writeCount;
return rv;
}
nsAsyncOutputStream()
: mContext(nsnull), mListener(nsnull), mInputStream(nsnull),
mOutputStream(nsnull), mOffset(0)
{
NS_INIT_REFCNT();
}
nsresult Init(nsISupports* context, nsIStreamListener* listener,
PRUint32 growBySize, PRUint32 maxSize) {
nsresult rv;
rv = NS_NewPipe(&mInputStream, &mOutputStream,
growBySize, maxSize, PR_TRUE, nsnull);
if (NS_FAILED(rv)) return rv;
mContext = context;
NS_IF_ADDREF(mContext);
mListener = listener;
NS_ADDREF(mListener);
return rv;
}
virtual ~nsAsyncOutputStream() {
NS_IF_RELEASE(mContext);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mInputStream);
NS_IF_RELEASE(mOutputStream);
}
static NS_METHOD Create(nsIBufferInputStream* *inStr,
nsIBufferOutputStream* *outStr,
nsISupports* context, nsIStreamListener* listener,
PRUint32 growBySize, PRUint32 maxSize) {
nsAsyncOutputStream* str = new nsAsyncOutputStream();
if (str == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(str);
nsresult rv = str->Init(context, listener, growBySize, maxSize);
if (NS_FAILED(rv)) {
NS_RELEASE(str);
return rv;
}
*inStr = str->mInputStream;
NS_ADDREF(*inStr);
*outStr = str;
return NS_OK;
}
protected:
nsISupports* mContext;
nsIStreamListener* mListener;
nsIBufferInputStream* mInputStream;
nsIBufferOutputStream* mOutputStream;
PRUint32 mOffset;
};
NS_IMPL_ISUPPORTS(nsAsyncOutputStream, nsIBufferOutputStream::GetIID());
////////////////////////////////////////////////////////////////////////////////
// From nsIChannel
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileChannel::GetURI(nsIURI * *aURI)
{
*aURI = mURI;
NS_ADDREF(mURI);
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::OpenInputStream(PRUint32 startPosition, PRInt32 readCount,
nsIInputStream **result)
{
nsAutoLock lock(mLock);
nsresult rv;
if (mState != QUIESCENT)
return NS_ERROR_IN_PROGRESS;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = NS_NewPipe(&mBufferInputStream, &mBufferOutputStream,
NS_FILE_TRANSPORT_SEGMENT_SIZE,
NS_FILE_TRANSPORT_BUFFER_SIZE, PR_TRUE, nsnull);
// rv = serv->NewSyncStreamListener(&mBufferInputStream, &mBufferOutputStream, &mListener);
if (NS_FAILED(rv)) return rv;
mState = START_READ;
mSourceOffset = startPosition;
mAmount = readCount;
mListener = nsnull;
rv = mHandler->DispatchRequest(this);
if (NS_FAILED(rv)) return rv;
*result = mBufferInputStream;
NS_ADDREF(*result);
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::OpenOutputStream(PRUint32 startPosition, nsIOutputStream **result)
{
nsAutoLock lock(mLock);
nsresult rv;
if (mState != QUIESCENT)
return NS_ERROR_IN_PROGRESS;
#if 0
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsIStreamListener* syncListener;
nsIBufferInputStream* inStr;
nsIBufferOutputStream* outStr;
rv = serv->NewSyncStreamListener(&inStr, &outStr, &syncListener);
if (NS_FAILED(rv)) return rv;
mListener = syncListener;
mOutputStream = outStr;
mState = START_READ;
mSourceOffset = startPosition;
mAmount = readCount;
rv = mHandler->DispatchRequest(this);
if (NS_FAILED(rv)) {
NS_RELEASE(inStr);
return rv;
}
*result = inStr;
#else
NS_ASSERTION(startPosition == 0, "implement startPosition");
nsISupports* str;
rv = NS_NewTypicalOutputFileStream(&str, mSpec);
if (NS_FAILED(rv)) return rv;
rv = str->QueryInterface(nsIOutputStream::GetIID(), (void**)result);
NS_RELEASE(str);
return rv;
#endif
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener)
{
nsAutoLock lock(mLock);
nsresult rv;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = serv->NewAsyncStreamListener(listener, eventQueue, &mListener);
if (NS_FAILED(rv)) return rv;
rv = nsAsyncOutputStream::Create(&mBufferInputStream,
&mBufferOutputStream,
ctxt, mListener,
NS_FILE_TRANSPORT_SEGMENT_SIZE,
NS_FILE_TRANSPORT_BUFFER_SIZE);
if (NS_FAILED(rv)) return rv;
mContext = ctxt;
NS_IF_ADDREF(mContext);
mState = START_READ;
mSourceOffset = startPosition;
mAmount = readCount;
rv = mHandler->DispatchRequest(this);
if (NS_FAILED(rv)) return rv;
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::AsyncWrite(nsIInputStream *fromStream,
PRUint32 startPosition, PRInt32 writeCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamObserver *observer)
{
nsAutoLock lock(mLock);
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRunnable methods:
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileChannel::Run(void)
{
while (mState != QUIESCENT && !mSuspended) {
Process();
}
return NS_OK;
}
static NS_METHOD
nsWriteToFile(void* closure,
const char* fromRawSegment,
PRUint32 toOffset,
PRUint32 count,
PRUint32 *writeCount)
{
nsIOutputStream* outStr = (nsIOutputStream*)closure;
nsresult rv = outStr->Write(fromRawSegment, count, writeCount);
return rv;
}
void
nsFileChannel::Process(void)
{
nsAutoLock lock(mLock);
switch (mState) {
case START_READ: {
nsISupports* fs;
NS_ASSERTION(mSourceOffset == 0, "implement seek");
if (mListener) {
mStatus = mListener->OnStartBinding(mContext); // always send the start notification
if (NS_FAILED(mStatus)) goto error;
}
mStatus = NS_NewTypicalInputFileStream(&fs, mSpec);
if (NS_FAILED(mStatus)) goto error;
mStatus = fs->QueryInterface(nsIInputStream::GetIID(), (void**)&mFileStream);
NS_RELEASE(fs);
if (NS_FAILED(mStatus)) goto error;
mState = READING;
break;
}
case READING: {
if (NS_FAILED(mStatus)) goto error;
nsIInputStream* fileStr = NS_STATIC_CAST(nsIInputStream*, mFileStream);
PRUint32 inLen;
mStatus = fileStr->GetLength(&inLen);
if (NS_FAILED(mStatus)) goto error;
PRUint32 amt;
mStatus = mBufferOutputStream->WriteFrom(fileStr, inLen, &amt);
if (NS_FAILED(mStatus)) goto error;
// and feed the buffer to the application via the buffer stream:
if (mListener) {
mStatus = mListener->OnDataAvailable(mContext, mBufferInputStream, mSourceOffset, amt);
if (NS_FAILED(mStatus)) goto error;
}
mSourceOffset += amt;
// stay in the READING state
break;
}
case START_WRITE: {
nsISupports* fs;
if (mListener) {
mStatus = mListener->OnStartBinding(mContext); // always send the start notification
if (NS_FAILED(mStatus)) goto error;
}
mStatus = NS_NewTypicalOutputFileStream(&fs, mSpec);
if (NS_FAILED(mStatus)) goto error;
mStatus = fs->QueryInterface(nsIOutputStream::GetIID(), (void**)&mFileStream);
NS_RELEASE(fs);
if (NS_FAILED(mStatus)) goto error;
mState = WRITING;
break;
}
case WRITING: {
if (NS_FAILED(mStatus)) goto error;
#if 0
PRUint32 amt;
mStatus = mBuffer->ReadSegments(nsWriteToFile, mFileStream, (PRUint32)-1, &amt);
if (mStatus == NS_BASE_STREAM_EOF) goto error;
if (NS_FAILED(mStatus)) goto error;
nsAutoCMonitor mon(mBuffer);
mon.Notify();
mSourceOffset += amt;
#endif
// stay in the WRITING state
break;
}
case ENDING: {
mBufferOutputStream->Flush();
if (mListener) {
// XXX where do we get the error message?
(void)mListener->OnStopBinding(mContext, mStatus, nsnull);
}
NS_IF_RELEASE(mBufferOutputStream);
mBufferOutputStream = nsnull;
NS_IF_RELEASE(mBufferInputStream);
mBufferInputStream = nsnull;
NS_IF_RELEASE(mFileStream);
mFileStream = nsnull;
NS_IF_RELEASE(mContext);
mContext = nsnull;
mState = QUIESCENT;
break;
}
case QUIESCENT: {
NS_NOTREACHED("trying to continue a quiescent file transfer");
break;
}
}
return;
error:
mState = ENDING;
return;
}
////////////////////////////////////////////////////////////////////////////////
// From nsIFileChannel
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileChannel::GetCreationDate(PRTime *aCreationDate)
{
// XXX no GetCreationDate in nsFileSpec yet
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::GetModDate(PRTime *aModDate)
{
nsFileSpec::TimeStamp date;
mSpec.GetModDate(date);
LL_I2L(*aModDate, date);
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::GetFileSize(PRUint32 *aFileSize)
{
*aFileSize = mSpec.GetFileSize();
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::GetParent(nsIFileChannel * *aParent)
{
nsresult rv;
nsFileSpec parentSpec;
mSpec.GetParent(parentSpec);
nsFileURL parentURL(parentSpec);
const char* urlStr = parentURL.GetURLString();
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsIChannel* channel;
rv = serv->NewChannel("load", // XXX what should this be?
urlStr, nsnull,
mGetter, &channel);
if (NS_FAILED(rv)) return rv;
// this cast is safe because nsFileURL::GetURLString aways
// returns file: strings, and consequently we'll make nsIFileChannel
// objects from them:
*aParent = NS_STATIC_CAST(nsIFileChannel*, channel);
return NS_OK;
}
class nsDirEnumerator : public nsISimpleEnumerator
{
public:
NS_DECL_ISUPPORTS
nsDirEnumerator() : mHandler(nsnull), mDir(nsnull), mNext(nsnull) {
NS_INIT_REFCNT();
}
nsresult Init(nsFileProtocolHandler* handler, nsFileSpec& spec) {
const char* path = spec.GetNativePathCString();
mDir = PR_OpenDir(path);
if (mDir == nsnull) // not a directory?
return NS_ERROR_FAILURE;
mHandler = handler;
NS_ADDREF(mHandler);
return NS_OK;
}
NS_IMETHOD HasMoreElements(PRBool *result) {
nsresult rv;
if (mNext == nsnull && mDir) {
PRDirEntry* entry = PR_ReadDir(mDir, PR_SKIP_BOTH);
if (entry == nsnull) {
// end of dir entries
PRStatus status = PR_CloseDir(mDir);
if (status != PR_SUCCESS)
return NS_ERROR_FAILURE;
mDir = nsnull;
*result = PR_FALSE;
return NS_OK;
}
const char* path = entry->name;
rv = mHandler->NewChannelFromNativePath(path, &mNext);
if (NS_FAILED(rv)) return rv;
NS_ASSERTION(mNext, "NewChannel failed");
}
*result = mNext != nsnull;
return NS_OK;
}
NS_IMETHOD GetNext(nsISupports **result) {
nsresult rv;
PRBool hasMore;
rv = HasMoreElements(&hasMore);
if (NS_FAILED(rv)) return rv;
*result = mNext; // might return nsnull
mNext = nsnull;
return NS_OK;
}
virtual ~nsDirEnumerator() {
if (mDir) {
PRStatus status = PR_CloseDir(mDir);
NS_ASSERTION(status == PR_SUCCESS, "close failed");
}
NS_IF_RELEASE(mHandler);
NS_IF_RELEASE(mNext);
}
protected:
nsFileProtocolHandler* mHandler;
PRDir* mDir;
nsIFileChannel* mNext;
};
NS_IMPL_ISUPPORTS(nsDirEnumerator, nsISimpleEnumerator::GetIID());
NS_IMETHODIMP
nsFileChannel::GetChildren(nsISimpleEnumerator * *aChildren)
{
nsresult rv;
PRBool isDir;
rv = IsDirectory(&isDir);
if (NS_FAILED(rv)) return rv;
if (!isDir)
return NS_ERROR_FAILURE;
nsDirEnumerator* dirEnum = new nsDirEnumerator();
if (dirEnum == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(dirEnum);
rv = dirEnum->Init(mHandler, mSpec);
if (NS_FAILED(rv)) {
NS_RELEASE(dirEnum);
return rv;
}
*aChildren = dirEnum;
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::GetNativePath(char * *aNativePath)
{
char* nativePath = nsCRT::strdup(mSpec.GetNativePathCString());
if (nativePath == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
*aNativePath = nativePath;
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::Exists(PRBool *result)
{
*result = mSpec.Exists();
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::Create()
{
// XXX no Create in nsFileSpec -- creates non-existent file
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::Delete()
{
// XXX no Delete in nsFileSpec -- deletes file or dir
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::MoveFrom(nsIURI *src)
{
#if 0
nsresult rv;
nsIFileChannel* fc;
rv = src->QueryInterface(nsIFileChannel::GetIID(), (void**)&fc);
if (NS_SUCCEEDED(rv)) {
rv = fc->moveToDir(this);
NS_RELEASE(fc);
return rv;
}
else {
// Do it the hard way -- fetch the URL and store the bits locally.
// Delete the src when done.
return NS_ERROR_NOT_IMPLEMENTED;
}
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}
NS_IMETHODIMP
nsFileChannel::CopyFrom(nsIURI *src)
{
#if 0
nsresult rv;
nsIFileChannel* fc;
rv = src->QueryInterface(nsIFileChannel::GetIID(), (void**)&fc);
if (NS_SUCCEEDED(rv)) {
rv = fc->copyToDir(this);
NS_RELEASE(fc);
return rv;
}
else {
// Do it the hard way -- fetch the URL and store the bits locally.
return NS_ERROR_NOT_IMPLEMENTED;
}
#else
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}
NS_IMETHODIMP
nsFileChannel::IsDirectory(PRBool *result)
{
*result = mSpec.IsDirectory();
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::IsFile(PRBool *result)
{
*result = mSpec.IsFile();
return NS_OK;
}
NS_IMETHODIMP
nsFileChannel::IsLink(PRBool *_retval)
{
// XXX no IsLink in nsFileSpec (for alias/shortcut/symlink)
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::ResolveLink(nsIFileChannel **_retval)
{
// XXX no ResolveLink in nsFileSpec yet -- returns what link points to
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::MakeUniqueFileName(const char* baseName, char **_retval)
{
// XXX makeUnique needs to return the name or file spec to the newly create
// file!
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFileChannel::Execute(const char *args)
{
nsresult rv;
char* queryArgs = nsnull;
if (args == nsnull) {
nsIURL* url;
rv = mURI->QueryInterface(nsIURL::GetIID(), (void**)&url);
if (NS_SUCCEEDED(rv)) {
rv = url->GetQuery(&queryArgs);
NS_RELEASE(url);
if (NS_FAILED(rv)) return rv;
args = queryArgs;
}
}
rv = mSpec.Execute(args);
if (queryArgs)
nsCRT::free(queryArgs);
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,183 @@
/* -*- 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.
*/
#ifndef nsFileChannel_h__
#define nsFileChannel_h__
#include "nsIFileChannel.h"
#include "nsIThread.h"
#include "nsFileSpec.h"
#include "prlock.h"
class nsIEventSinkGetter;
class nsIStreamListener;
class nsFileProtocolHandler;
class nsIBaseStream;
class nsIBuffer;
class nsIBufferInputStream;
class nsIBufferOutputStream;
class nsFileChannel : public nsIFileChannel, public nsIRunnable {
public:
NS_DECL_ISUPPORTS
////////////////////////////////////////////////////////////////////////////
// from nsIRequest:
/* void Cancel (); */
NS_IMETHOD Cancel();
/* void Suspend (); */
NS_IMETHOD Suspend();
/* void Resume (); */
NS_IMETHOD Resume();
////////////////////////////////////////////////////////////////////////////
// from nsIChannel:
/* readonly attribute nsIURI URI; */
NS_IMETHOD GetURI(nsIURI * *aURI);
/* nsIInputStream OpenInputStream (); */
NS_IMETHOD OpenInputStream(PRUint32 startPosition, PRInt32 count, nsIInputStream **_retval);
/* nsIOutputStream OpenOutputStream (); */
NS_IMETHOD OpenOutputStream(PRUint32 startPosition, nsIOutputStream **_retval);
/* void AsyncRead (in unsigned long startPosition, in long readCount, in nsISupports ctxt, in nsIEventQueue eventQueue, in nsIStreamListener listener); */
NS_IMETHOD AsyncRead(PRUint32 startPosition, PRInt32 readCount, nsISupports *ctxt, nsIEventQueue *eventQueue, nsIStreamListener *listener);
/* void AsyncWrite (in nsIInputStream fromStream, in unsigned long startPosition, in long writeCount, in nsISupports ctxt, in nsIEventQueue eventQueue, in nsIStreamObserver observer); */
NS_IMETHOD AsyncWrite(nsIInputStream *fromStream, PRUint32 startPosition, PRInt32 writeCount, nsISupports *ctxt, nsIEventQueue *eventQueue, nsIStreamObserver *observer);
////////////////////////////////////////////////////////////////////////////
// from nsIFileChannel:
/* readonly attribute PRTime CreationDate; */
NS_IMETHOD GetCreationDate(PRTime *aCreationDate);
/* readonly attribute PRTime ModDate; */
NS_IMETHOD GetModDate(PRTime *aModDate);
/* readonly attribute unsigned long FileSize; */
NS_IMETHOD GetFileSize(PRUint32 *aFileSize);
/* readonly attribute nsIFileChannel Parent; */
NS_IMETHOD GetParent(nsIFileChannel * *aParent);
/* readonly attribute nsISimpleEnumerator Children; */
NS_IMETHOD GetChildren(nsISimpleEnumerator * *aChildren);
/* readonly attribute string NativePath; */
NS_IMETHOD GetNativePath(char * *aNativePath);
/* boolean Exists (); */
NS_IMETHOD Exists(PRBool *_retval);
/* void Create (); */
NS_IMETHOD Create();
/* void Delete (); */
NS_IMETHOD Delete();
/* void MoveFrom (in nsIURI src); */
NS_IMETHOD MoveFrom(nsIURI *src);
/* void CopyFrom (in nsIURI src); */
NS_IMETHOD CopyFrom(nsIURI *src);
/* boolean IsDirectory (); */
NS_IMETHOD IsDirectory(PRBool *_retval);
/* boolean IsFile (); */
NS_IMETHOD IsFile(PRBool *_retval);
/* boolean IsLink (); */
NS_IMETHOD IsLink(PRBool *_retval);
/* nsIFileChannel ResolveLink (); */
NS_IMETHOD ResolveLink(nsIFileChannel **_retval);
/* string MakeUniqueFileName (in string baseName); */
NS_IMETHOD MakeUniqueFileName(const char *baseName, char **_retval);
/* void Execute (in string args); */
NS_IMETHOD Execute(const char *args);
////////////////////////////////////////////////////////////////////////////
// nsIRunnable methods:
NS_IMETHOD Run(void);
////////////////////////////////////////////////////////////////////////////
// nsFileChannel:
nsFileChannel();
// Always make the destructor virtual:
virtual ~nsFileChannel();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
nsresult Init(nsFileProtocolHandler* handler,
const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
nsIEventQueue* queue);
void Process(void);
enum State {
QUIESCENT,
START_READ,
READING,
START_WRITE,
WRITING,
ENDING
};
protected:
nsIURI* mURI;
nsIEventSinkGetter* mGetter; // XXX it seems wrong keeping this -- used by GetParent
nsIStreamListener* mListener;
nsIEventQueue* mEventQueue;
nsFileSpec mSpec;
nsISupports* mContext;
nsFileProtocolHandler* mHandler;
State mState;
PRBool mSuspended;
// state variables:
nsIBaseStream* mFileStream; // cast to nsIInputStream/nsIOutputStream for reading/Writing
nsIBufferInputStream* mBufferInputStream;
nsIBufferOutputStream* mBufferOutputStream;
nsresult mStatus;
PRUint32 mSourceOffset;
PRInt32 mAmount;
private:
PRLock* mLock;
};
#define NS_FILE_TRANSPORT_SEGMENT_SIZE (4*1024)
#define NS_FILE_TRANSPORT_BUFFER_SIZE (32*1024)
#endif // nsFileChannel_h__

View File

@@ -0,0 +1,86 @@
/* -*- 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.
*/
#include "nsIGenericFactory.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsFileProtocolHandler.h"
#include "nscore.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kFileProtocolHandlerCID, NS_FILEPROTOCOLHANDLER_CID);
////////////////////////////////////////////////////////////////////////////////
// return the proper factory to the caller
extern "C" PR_IMPLEMENT(nsresult)
NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory)
{
nsresult rv;
if (aFactory == nsnull)
return NS_ERROR_NULL_POINTER;
nsIGenericFactory* fact;
if (aClass.Equals(kFileProtocolHandlerCID)) {
rv = NS_NewGenericFactory(&fact, nsFileProtocolHandler::Create);
}
else {
rv = NS_ERROR_FAILURE;
}
if (NS_SUCCEEDED(rv))
*aFactory = fact;
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kFileProtocolHandlerCID,
"File Protocol Handler",
NS_NETWORK_PROTOCOL_PROGID_PREFIX "file",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;;
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kFileProtocolHandlerCID, aPath);
if (NS_FAILED(rv)) return rv;
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,236 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsFileChannel.h"
#include "nsFileProtocolHandler.h"
#include "nsIURL.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIEventSinkGetter.h"
#include "nsIProgressEventSink.h"
#include "nsIThread.h"
#include "nsISupportsArray.h"
#include "nsFileSpec.h"
static NS_DEFINE_CID(kStandardURLCID, NS_STANDARDURL_CID);
////////////////////////////////////////////////////////////////////////////////
nsFileProtocolHandler::nsFileProtocolHandler()
: mPool(nsnull), mSuspended(nsnull)
{
NS_INIT_REFCNT();
}
#define NS_FILE_TRANSPORT_WORKER_STACK_SIZE (8*1024)
nsresult
nsFileProtocolHandler::Init()
{
nsresult rv;
rv = NS_NewThreadPool(&mPool, NS_FILE_TRANSPORT_WORKER_COUNT,
NS_FILE_TRANSPORT_WORKER_COUNT,
NS_FILE_TRANSPORT_WORKER_STACK_SIZE);
return rv;
}
nsFileProtocolHandler::~nsFileProtocolHandler()
{
// this will wait for all outstanding requests to be processed, then
// join with the worker threads, and finally free the pool:
NS_IF_RELEASE(mPool);
NS_IF_RELEASE(mSuspended);
}
NS_IMPL_ISUPPORTS(nsFileProtocolHandler, nsIProtocolHandler::GetIID());
NS_METHOD
nsFileProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsFileProtocolHandler* ph = new nsFileProtocolHandler();
if (ph == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(ph);
nsresult rv = ph->Init();
if (NS_SUCCEEDED(rv)) {
rv = ph->QueryInterface(aIID, aResult);
}
NS_RELEASE(ph);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIProtocolHandler methods:
NS_IMETHODIMP
nsFileProtocolHandler::GetScheme(char* *result)
{
*result = nsCRT::strdup("file");
if (*result == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsFileProtocolHandler::GetDefaultPort(PRInt32 *result)
{
*result = -1; // no port for file: URLs
return NS_OK;
}
NS_IMETHODIMP
nsFileProtocolHandler::MakeAbsolute(const char* aSpec,
nsIURI* aBaseURI,
char* *result)
{
// XXX optimize this to not needlessly construct the URL
nsresult rv;
nsIURI* url;
rv = NewURI(aSpec, aBaseURI, &url);
if (NS_FAILED(rv)) return rv;
rv = url->GetSpec(result);
NS_RELEASE(url);
return rv;
}
NS_IMETHODIMP
nsFileProtocolHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **result)
{
nsresult rv;
// file: URLs (currently) have no additional structure beyond that provided by standard
// URLs, so there is no "outer" given to CreateInstance
nsIURI* url;
if (aBaseURI) {
rv = aBaseURI->Clone(&url);
}
else {
rv = nsComponentManager::CreateInstance(kStandardURLCID, nsnull,
nsIURI::GetIID(),
(void**)&url);
}
if (NS_FAILED(rv)) return rv;
rv = url->SetSpec((char*)aSpec);
if (NS_FAILED(rv)) {
NS_RELEASE(url);
return rv;
}
*result = url;
return rv;
}
NS_IMETHODIMP
nsFileProtocolHandler::NewChannel(const char* verb, nsIURI* url,
nsIEventSinkGetter* eventSinkGetter,
nsIEventQueue* eventQueue,
nsIChannel* *result)
{
nsresult rv;
nsFileChannel* channel;
rv = nsFileChannel::Create(nsnull, nsIFileChannel::GetIID(), (void**)&channel);
if (NS_FAILED(rv)) return rv;
rv = channel->Init(this, verb, url, eventSinkGetter, eventQueue);
if (NS_FAILED(rv)) {
NS_RELEASE(channel);
return rv;
}
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFileProtocolHandler::NewChannelFromNativePath(const char* nativePath,
nsIFileChannel* *result)
{
nsresult rv;
nsFileSpec spec(nativePath);
nsFileURL fileURL(spec);
const char* urlStr = fileURL.GetURLString();
nsIURI* uri;
rv = NewURI(urlStr, nsnull, &uri);
if (NS_FAILED(rv)) return rv;
rv = NewChannel("load", // XXX what should this be?
uri,
nsnull, // XXX bogus getter
nsnull, // XXX bogus
(nsIChannel**)result);
NS_RELEASE(uri);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
nsresult
nsFileProtocolHandler::ProcessPendingRequests(void)
{
return mPool->ProcessPendingRequests();
}
nsresult
nsFileProtocolHandler::DispatchRequest(nsIRunnable* runnable)
{
return mPool->DispatchRequest(runnable);
}
////////////////////////////////////////////////////////////////////////////////
nsresult
nsFileProtocolHandler::Suspend(nsFileChannel* request)
{
nsresult rv;
if (mSuspended == nsnull) {
rv = NS_NewISupportsArray(&mSuspended);
if (NS_FAILED(rv)) return rv;
}
return mSuspended->AppendElement(NS_STATIC_CAST(nsIChannel*, request));
}
nsresult
nsFileProtocolHandler::Resume(nsFileChannel* request)
{
nsresult rv;
if (mSuspended == nsnull)
return NS_ERROR_FAILURE;
// XXX RemoveElement returns a bool instead of nsresult!
PRBool removed = mSuspended->RemoveElement(NS_STATIC_CAST(nsIChannel*, request));
rv = removed ? NS_OK : NS_ERROR_FAILURE;
if (NS_FAILED(rv)) return rv;
// restart the request
rv = mPool->DispatchRequest(NS_STATIC_CAST(nsIRunnable*, request));
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,79 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsFileProtocolHandler_h___
#define nsFileProtocolHandler_h___
#include "nsIFileProtocolHandler.h"
class nsISupportsArray;
class nsIRunnable;
class nsFileChannel;
class nsIThreadPool;
#define NS_FILE_TRANSPORT_WORKER_COUNT 4
// {25029490-F132-11d2-9588-00805F369F95}
#define NS_FILEPROTOCOLHANDLER_CID \
{ /* fbc81170-1f69-11d3-9344-00104ba0fd40 */ \
0xfbc81170, \
0x1f69, \
0x11d3, \
{0x93, 0x44, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
class nsFileProtocolHandler : public nsIFileProtocolHandler
{
public:
NS_DECL_ISUPPORTS
// nsIProtocolHandler methods:
NS_IMETHOD GetScheme(char * *aScheme);
NS_IMETHOD GetDefaultPort(PRInt32 *aDefaultPort);
NS_IMETHOD MakeAbsolute(const char *aRelativeSpec, nsIURI *aBaseURI,
char **_retval);
NS_IMETHOD NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **_retval);
NS_IMETHOD NewChannel(const char* verb, nsIURI* url,
nsIEventSinkGetter *eventSinkGetter,
nsIEventQueue *eventQueue,
nsIChannel **_retval);
// nsIFileProtocolHandler methods:
NS_IMETHOD NewChannelFromNativePath(const char* nativePath,
nsIFileChannel* *result);
// nsFileProtocolHandler methods:
nsFileProtocolHandler();
virtual ~nsFileProtocolHandler();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
nsresult DispatchRequest(nsIRunnable* runnable);
nsresult Suspend(nsFileChannel* request);
nsresult Resume(nsFileChannel* request);
nsresult ProcessPendingRequests(void);
protected:
nsIThreadPool* mPool;
nsISupportsArray* mSuspended;
};
#endif /* nsFileProtocolHandler_h___ */

View File

@@ -0,0 +1,33 @@
#! gmake
#
# 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.
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
MODULE = netwerk
include $(DEPTH)/config/autoconf.mk
DIRS= \
public \
src \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1,27 @@
#!gmake
#
# 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.
DEPTH = ..\..\..
MODULE = netwerk
DIRS= \
public \
src \
$(NULL)
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,44 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
XPIDL_MODULE = netwerk_ftp
XPIDLSRCS = \
nsIFTPChannel.idl \
$(NULL)
EXPORTS = \
ftpCore.h \
$(NULL)
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,45 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef __ftpCore_h___
#define __ftpCore_h___
#include "nsError.h"
//////////////////////////////
//// FTP CODES RANGE: 20-30
//////////////////////////////
#define NS_ERROR_FTP_LOGIN \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 21)
#define NS_ERROR_FTP_MODE \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 22)
#define NS_ERROR_FTP_CWD \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 23)
#define NS_ERROR_FTP_PASV \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 24)
#define NS_ERROR_FTP_DEL_DIR \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 25)
#define NS_ERROR_FTP_MKDIR \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 26)
#endif // __ftpCore_h___

View File

@@ -0,0 +1,39 @@
#!gmake
#
# 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.
MODULE = netwerk
DEPTH = ..\..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
XPIDL_MODULE = netwerk_ftp
XPIDLSRCS = \
.\nsIFTPChannel.idl \
$(NULL)
EXPORTS = \
ftpCore.h \
$(NULL)
include <$(DEPTH)/config/rules.mak>

View File

@@ -0,0 +1,38 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIChannel.idl"
interface nsIStreamListener;
[scriptable, uuid(64718e40-18c2-11d3-9337-00104ba0fd40)]
interface nsIFTPChannel : nsIChannel
{
// PRE connect
// POST connect
// Initiate connect
void Get();
void Put();
void SetStreamListener(in nsIStreamListener aListener);
};

View File

@@ -0,0 +1,47 @@
# 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.
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
LIBRARY_NAME = ftpprotocol
IS_COMPONENT = 1
include $(DEPTH)/config/autoconf.mk
CPPSRCS = \
nsFtpProtocolHandler.cpp \
nsFTPChannel.cpp \
nsFtpStreamListenerEvent.cpp \
nsFtpConnectionThread.cpp \
nsFtpFactory.cpp \
$(NULL)
MODULE = netwerk
include $(topsrcdir)/config/config.mk
# hack until necko lands
ifndef NECKO
PUBLIC = $(DEPTH)/netwerk/dist/include
endif
TARGET = $(LIBARY)
include $(DEPTH)/config/rules.mk

View File

@@ -0,0 +1,54 @@
# 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.
MODULE = netwerk
DEPTH = ..\..\..\..
// temporary, until we land:
!ifndef NECKO
include <$(DEPTH)/config/config.mak>
PUBLIC = $(DEPTH)\netwerk\dist\include
!endif
MAKE_OBJ_TYPE=DLL
DLLNAME=ftpprotocol
DLL=.\$(OBJDIR)\$(DLLNAME).dll
LCFLAGS = -DWIN32_LEAN_AND_MEAN -D_IMPL_NS_NET
CPP_OBJS = \
.\$(OBJDIR)\nsFtpProtocolHandler.obj \
.\$(OBJDIR)\nsFTPChannel.obj \
.\$(OBJDIR)\nsFtpStreamListenerEvent.obj \
.\$(OBJDIR)\nsFtpConnectionThread.obj \
.\$(OBJDIR)\nsFtpFactory.obj \
$(NULL)
LLIBS= \
$(DIST)\lib\netwerk.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\plc3.lib \
$(LIBNSPR)
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components

View File

@@ -0,0 +1,295 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
// ftp implementation
#include "nsFTPChannel.h"
#include "nscore.h"
#include "nsIServiceManager.h"
#include "nsIBufferInputStream.h"
#include "nsFtpConnectionThread.h"
#include "nsIEventQueueService.h"
#include "nsIProgressEventSink.h"
#include "nsIEventSinkGetter.h"
#include "prprf.h" // PR_sscanf
static NS_DEFINE_IID(kISupportsIID, NS_ISUPPORTS_IID);
static NS_DEFINE_CID(kEventQueueService, NS_EVENTQUEUESERVICE_CID);
// There are actually two transport connections established for an
// ftp connection. One is used for the command channel , and
// the other for the data channel. The command channel is the first
// connection made and is used to negotiate the second, data, channel.
// The data channel is driven by the command channel and is either
// initiated by the server (PORT command) or by the client (PASV command).
// Client initiation is the most command case and is attempted first.
nsFTPChannel::nsFTPChannel()
: mUrl(nsnull), mConnected(PR_FALSE), mListener(nsnull) {
nsresult rv;
NS_INIT_REFCNT();
NS_WITH_SERVICE(nsIEventQueueService, eventQService, kEventQueueService, &rv);
if (NS_SUCCEEDED(rv)) {
rv = eventQService->GetThreadEventQueue(PR_CurrentThread(), &mEventQueue);
}
if (NS_FAILED(rv))
mEventQueue = nsnull;
}
nsFTPChannel::~nsFTPChannel() {
NS_IF_RELEASE(mUrl);
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mEventQueue);
}
NS_IMPL_ADDREF(nsFTPChannel);
NS_IMPL_RELEASE(nsFTPChannel);
NS_IMETHODIMP
nsFTPChannel::QueryInterface(const nsIID& aIID, void** aInstancePtr) {
NS_ASSERTION(aInstancePtr, "no instance pointer");
if (aIID.Equals(nsIFTPChannel::GetIID()) ||
aIID.Equals(nsIChannel::GetIID()) ||
aIID.Equals(kISupportsIID) ) {
*aInstancePtr = NS_STATIC_CAST(nsIFTPChannel*, this);
NS_ADDREF_THIS();
return NS_OK;
}
if (aIID.Equals(nsIStreamListener::GetIID()) ||
aIID.Equals(nsIStreamObserver::GetIID())) {
*aInstancePtr = NS_STATIC_CAST(nsIStreamListener*, this);
NS_ADDREF_THIS();
return NS_OK;
}
return NS_NOINTERFACE;
}
nsresult
nsFTPChannel::Init(const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
nsIEventQueue* queue)
{
nsresult rv;
if (mConnected)
return NS_ERROR_FAILURE;
mUrl = uri;
NS_ADDREF(mUrl);
mEventQueue = queue;
NS_ADDREF(mEventQueue);
nsIProgressEventSink* eventSink;
rv = getter->GetEventSink(verb, nsIProgressEventSink::GetIID(),
(nsISupports**)&eventSink);
if (NS_FAILED(rv)) return rv;
mEventSink = eventSink;
NS_ADDREF(mEventSink);
return NS_OK;
}
NS_METHOD
nsFTPChannel::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsFTPChannel* fc = new nsFTPChannel();
if (fc == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(fc);
nsresult rv = fc->QueryInterface(aIID, aResult);
NS_RELEASE(fc);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
NS_IMETHODIMP
nsFTPChannel::Cancel(void)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::Suspend(void)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::Resume(void)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP
nsFTPChannel::GetURI(nsIURI * *aURL)
{
NS_ADDREF(mUrl);
*aURL = mUrl;
return NS_OK;
}
NS_IMETHODIMP
nsFTPChannel::OpenInputStream(PRUint32 startPosition, PRInt32 readCount,
nsIInputStream **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::OpenOutputStream(PRUint32 startPosition, nsIOutputStream **_retval)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::AsyncWrite(nsIInputStream *fromStream,
PRUint32 startPosition,
PRInt32 writeCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamObserver *observer)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::GetContentType(char* *contentType) {
// XXX for ftp we need to do a file extension-to-type mapping lookup
// XXX in some hash table/registry of mime-types
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIFTPChannel methods:
NS_IMETHODIMP
nsFTPChannel::Get(void) {
nsresult rv;
nsIThread* workerThread = nsnull;
nsFtpConnectionThread* protocolInterpreter =
new nsFtpConnectionThread(mEventQueue, this);
NS_ASSERTION(protocolInterpreter, "ftp protocol interpreter alloc failed");
NS_ADDREF(protocolInterpreter);
if (!protocolInterpreter)
return NS_ERROR_OUT_OF_MEMORY;
protocolInterpreter->Init(workerThread, mUrl);
protocolInterpreter->SetUsePasv(PR_TRUE);
rv = NS_NewThread(&workerThread, protocolInterpreter);
NS_ASSERTION(NS_SUCCEEDED(rv), "new thread failed");
// XXX this release should probably be in the destructor.
NS_RELEASE(protocolInterpreter);
return NS_OK;
}
NS_IMETHODIMP
nsFTPChannel::Put(void) {
nsresult rv;
nsIThread* workerThread = nsnull;
nsFtpConnectionThread* protocolInterpreter =
new nsFtpConnectionThread(mEventQueue, this);
NS_ASSERTION(protocolInterpreter, "ftp protocol interpreter alloc failed");
NS_ADDREF(protocolInterpreter);
if (!protocolInterpreter)
return NS_ERROR_OUT_OF_MEMORY;
protocolInterpreter->Init(workerThread, mUrl);
protocolInterpreter->SetAction(PUT);
protocolInterpreter->SetUsePasv(PR_TRUE);
rv = NS_NewThread(&workerThread, protocolInterpreter);
NS_ASSERTION(NS_SUCCEEDED(rv), "new thread failed");
// XXX this release should probably be in the destructor.
NS_RELEASE(protocolInterpreter);
return NS_OK;
}
NS_IMETHODIMP
nsFTPChannel::SetStreamListener(nsIStreamListener *aListener) {
mListener = aListener;
NS_ADDREF(mListener);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIStreamObserver methods:
NS_IMETHODIMP
nsFTPChannel::OnStartBinding(nsISupports* context) {
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg) {
// Release the lock so the user get's the data stream
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::OnStartRequest(nsISupports* context) {
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFTPChannel::OnStopRequest(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg) {
// Release the lock so the user get's the data stream
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIStreamListener methods:
NS_IMETHODIMP
nsFTPChannel::OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength) {
// Fill in the buffer w/ the new data.
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,102 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
// ftp implementation header
#ifndef nsFTPChannel_h___
#define nsFTPChannel_h___
#include "nsIFTPChannel.h"
#include "nsIStreamListener.h"
#include "nsIThread.h"
#include "nsIURI.h"
#include "nsString2.h"
#include "nsIEventQueue.h"
class nsIEventSinkGetter;
class nsIProgressEventSink;
class nsFTPChannel : public nsIFTPChannel,
public nsIStreamListener {
public:
NS_DECL_ISUPPORTS
// nsIRequest methods:
NS_IMETHOD Cancel();
NS_IMETHOD Suspend();
NS_IMETHOD Resume();
// nsIChannel methods:
NS_IMETHOD GetURI(nsIURI * *aURL);
NS_IMETHOD OpenInputStream(PRUint32 startPosition, PRInt32 readCount, nsIInputStream **_retval);
NS_IMETHOD OpenOutputStream(PRUint32 startPosition, nsIOutputStream **_retval);
NS_IMETHOD AsyncRead(PRUint32 startPosition, PRInt32 readCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamListener *listener);
NS_IMETHOD AsyncWrite(nsIInputStream *fromStream,
PRUint32 startPosition,
PRInt32 writeCount,
nsISupports *ctxt,
nsIEventQueue *eventQueue,
nsIStreamObserver *observer);
// nsIFTPChannel methods:
NS_IMETHOD Get(void);
NS_IMETHOD Put(void);
NS_IMETHOD SetStreamListener(nsIStreamListener* aListener);
// nsIStreamObserver methods:
NS_IMETHOD OnStartBinding(nsISupports* context);
NS_IMETHOD OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg);
NS_IMETHOD OnStartRequest(nsISupports *ctxt);
NS_IMETHOD OnStopRequest(nsISupports *ctxt,
nsresult status,
const PRUnichar *errorMsg);
// nsIStreamListener methods:
NS_IMETHOD OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength);
// nsFTPChannel methods:
nsFTPChannel();
virtual ~nsFTPChannel();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
nsresult Init(const char* verb, nsIURI* uri, nsIEventSinkGetter* getter,
nsIEventQueue* queue);
NS_IMETHOD GetContentType(char* *contentType);
protected:
nsIURI* mUrl;
nsIEventQueue* mEventQueue;
nsIProgressEventSink* mEventSink;
PRBool mConnected;
nsIStreamListener* mListener;
};
#endif /* nsFTPChannel_h___ */

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,182 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsIThread.h"
#include "nsISocketTransportService.h"
#include "nsIServiceManager.h"
#include "nsIStreamListener.h"
#include "nsIOutputStream.h"
#include "nsIURI.h"
#include "prlock.h"
#include "nsString2.h"
#include "nsIEventQueue.h"
#include "time.h" // XXX should probably be using PRTime stuff
// ftp server types
#define FTP_GENERIC_TYPE 0
#define FTP_UNIX_TYPE 1
#define FTP_DCTS_TYPE 2
#define FTP_NCSA_TYPE 3
#define FTP_PETER_LEWIS_TYPE 4
#define FTP_MACHTEN_TYPE 5
#define FTP_CMS_TYPE 6
#define FTP_TCPC_TYPE 7
#define FTP_VMS_TYPE 8
#define FTP_NT_TYPE 9
#define FTP_WEBSTAR_TYPE 10
// ftp states
typedef enum _FTP_STATE {
///////////////////////
//// Internal states
///////////////////////
FTP_READ_BUF,
FTP_ERROR,
FTP_COMPLETE,
///////////////////////
//// Command channel connection setup states
///////////////////////
FTP_S_USER, // send username
FTP_R_USER,
FTP_S_PASS, // send password
FTP_R_PASS,
FTP_S_SYST, // send system (interrogates server)
FTP_R_SYST,
FTP_S_ACCT, // send account
FTP_R_ACCT,
FTP_S_MACB,
FTP_R_MACB,
FTP_S_PWD , // send parent working directory (pwd)
FTP_R_PWD ,
FTP_S_DEL_FILE, // send delete file
FTP_R_DEL_FILE,
FTP_S_DEL_DIR , // send delete directory
FTP_R_DEL_DIR ,
FTP_S_MKDIR, // send mkdir
FTP_R_MKDIR,
FTP_S_MODE, // send ASCII or BINARY
FTP_R_MODE,
FTP_S_CWD, // send change working directory
FTP_R_CWD,
FTP_S_SIZE, // send size
FTP_R_SIZE,
FTP_S_PUT, // send STOR to upload the file
FTP_R_PUT,
FTP_S_RETR, // send retrieve to download the file
FTP_R_RETR,
FTP_S_MDTM, // send MDTM to get time information
FTP_R_MDTM,
FTP_S_LIST, // send LIST or NLST (server dependent) to get a dir listing
FTP_R_LIST,
///////////////////////
//// Data channel connection setup states
///////////////////////
FTP_S_PASV, // send passsive
FTP_R_PASV,
// FTP_S_PORT, // send port
// FTP_R_PORT
} FTP_STATE;
// higher level ftp actions
typedef enum _FTP_ACTION {
GET,
PUT,
MKDIR,
DEL
} FTP_ACTION;
class nsFtpConnectionThread : public nsIRunnable {
public:
NS_DECL_ISUPPORTS
nsFtpConnectionThread(nsIEventQueue* aEventQ, nsIStreamListener *aListener);
virtual ~nsFtpConnectionThread();
// nsIRunnable method
NS_IMETHOD Run();
#if 0
// nsICancelable methods:
NS_IMETHOD Cancel(void);
NS_IMETHOD Suspend(void);
NS_IMETHOD Resume(void);
#endif
nsresult Init(nsIThread* aThread,
nsIURI* aUrl);
// user level setup
nsresult SetAction(FTP_ACTION aAction);
nsresult SetUsePasv(PRBool aUsePasv);
private:
nsresult Read(void);
void SetSystInternals(void);
FTP_STATE FindActionState(void);
FTP_STATE FindGetState(void);
nsresult MapResultCodeToString(nsresult aResultCode, PRUnichar* *aOutMsg);
// Private members
nsIEventQueue* mEventQueue; // used to communicate outside this thread
nsIURI* mUrl;
FTP_STATE mState; // the current state
FTP_STATE mNextState; // the next state
FTP_ACTION mAction; // the higher level action
nsIInputStream* mCInStream; // command channel input
nsIOutputStream* mCOutStream; // command channel output
//nsString2 mDataAddress; // the host:port combo for the data connection
nsIInputStream* mDInStream; // data channel input
nsIOutputStream* mDOutStream; // data channel output
PRInt32 mResponseCode; // the last command response code.
nsString2 mResponseMsg; // the last command response text
nsString2 mUsername;
nsString2 mPassword;
nsString2 mFilename; // url filename (if any)
PRInt32 mLength; // length of the file
time_t mLastModified; // last modified time for file
// these members should be hung off of a specific transport connection
PRInt32 mServerType;
PRBool mPasv;
PRBool mList; // use LIST instead of NLST
// end "these ...."
PRBool mConnected;
PRBool mUseDefaultPath; // use PWD to figure out path
PRBool mUsePasv; // use a passive data connection.
PRBool mAscii; // transfer mode (ascii or binary)
PRBool mDirectory; // this url is a directory
nsIStreamListener* mListener; // the listener we want to call
// during our event firing.
PRLock *mLock;
PRThread *mThread;
};
#define NS_FTP_THREAD_SEGMENT_SIZE (4*1024)
#define NS_FTP_THREAD_BUFFER_SIZE (16*1024)

View File

@@ -0,0 +1,86 @@
/* -*- 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.
*/
#include "nsIGenericFactory.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsFtpProtocolHandler.h"
#include "nscore.h"
static NS_DEFINE_CID(kComponentManagerCID, NS_COMPONENTMANAGER_CID);
static NS_DEFINE_CID(kFtpProtocolHandlerCID, NS_FTPPROTOCOLHANDLER_CID);
////////////////////////////////////////////////////////////////////////////////
// return the proper factory to the caller
extern "C" PR_IMPLEMENT(nsresult)
NSGetFactory(nsISupports* aServMgr,
const nsCID &aClass,
const char *aClassName,
const char *aProgID,
nsIFactory **aFactory)
{
nsresult rv;
if (aFactory == nsnull)
return NS_ERROR_NULL_POINTER;
nsIGenericFactory* fact;
if (aClass.Equals(kFtpProtocolHandlerCID)) {
rv = NS_NewGenericFactory(&fact, nsFtpProtocolHandler::Create);
}
else {
rv = NS_ERROR_FAILURE;
}
if (NS_SUCCEEDED(rv))
*aFactory = fact;
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSRegisterSelf(nsISupports* aServMgr , const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->RegisterComponent(kFtpProtocolHandlerCID,
"FTP Protocol Handler",
NS_NETWORK_PROTOCOL_PROGID_PREFIX "ftp",
aPath, PR_TRUE, PR_TRUE);
if (NS_FAILED(rv)) return rv;;
return rv;
}
extern "C" PR_IMPLEMENT(nsresult)
NSUnregisterSelf(nsISupports* aServMgr, const char* aPath)
{
nsresult rv;
NS_WITH_SERVICE1(nsIComponentManager, compMgr, aServMgr, kComponentManagerCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = compMgr->UnregisterComponent(kFtpProtocolHandlerCID, aPath);
if (NS_FAILED(rv)) return rv;
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,149 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsFTPChannel.h"
#include "nsFtpProtocolHandler.h"
#include "nsIURL.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIEventSinkGetter.h"
#include "nsIProgressEventSink.h"
static NS_DEFINE_CID(kStandardURLCID, NS_STANDARDURL_CID);
////////////////////////////////////////////////////////////////////////////////
nsFtpProtocolHandler::nsFtpProtocolHandler() {
NS_INIT_REFCNT();
}
nsFtpProtocolHandler::~nsFtpProtocolHandler() {
}
NS_IMPL_ISUPPORTS(nsFtpProtocolHandler, nsIProtocolHandler::GetIID());
NS_METHOD
nsFtpProtocolHandler::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsFtpProtocolHandler* ph = new nsFtpProtocolHandler();
if (ph == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(ph);
nsresult rv = ph->QueryInterface(aIID, aResult);
NS_RELEASE(ph);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIProtocolHandler methods:
NS_IMETHODIMP
nsFtpProtocolHandler::GetScheme(char* *result)
{
*result = nsCRT::strdup("ftp");
if (*result == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsFtpProtocolHandler::GetDefaultPort(PRInt32 *result)
{
*result = 21;
return NS_OK;
}
NS_IMETHODIMP
nsFtpProtocolHandler::MakeAbsolute(const char* aSpec,
nsIURI* aBaseURI,
char* *result)
{
// XXX optimize this to not needlessly construct the URL
nsresult rv;
nsIURI* url;
rv = NewURI(aSpec, aBaseURI, &url);
if (NS_FAILED(rv)) return rv;
rv = url->GetSpec(result);
NS_RELEASE(url);
return rv;
}
NS_IMETHODIMP
nsFtpProtocolHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **result)
{
nsresult rv;
// Ftp URLs (currently) have no additional structure beyond that provided by standard
// URLs, so there is no "outer" given to CreateInstance
nsIURI* url;
if (aBaseURI) {
rv = aBaseURI->Clone(&url);
}
else {
rv = nsComponentManager::CreateInstance(kStandardURLCID, nsnull,
nsIURI::GetIID(),
(void**)&url);
}
if (NS_FAILED(rv)) return rv;
rv = url->SetSpec((char*)aSpec);
if (NS_FAILED(rv)) {
NS_RELEASE(url);
return rv;
}
// XXX this is the default port for ftp. we need to strip out the actual
// XXX requested port.
rv = url->SetPort(21);
if (NS_FAILED(rv)) {
NS_RELEASE(url);
return rv;
}
*result = url;
return rv;
}
NS_IMETHODIMP
nsFtpProtocolHandler::NewChannel(const char* verb, nsIURI* url,
nsIEventSinkGetter* eventSinkGetter,
nsIEventQueue* eventQueue,
nsIChannel* *result)
{
nsresult rv;
nsFTPChannel* channel;
rv = nsFTPChannel::Create(nsnull, nsIFTPChannel::GetIID(), (void**)&channel);
if (NS_FAILED(rv)) return rv;
rv = channel->Init(verb, url, eventSinkGetter, eventQueue);
if (NS_FAILED(rv)) {
NS_RELEASE(channel);
return rv;
}
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,57 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef nsFtpProtocolHandler_h___
#define nsFtpProtocolHandler_h___
#include "nsIProtocolHandler.h"
// {25029490-F132-11d2-9588-00805F369F95}
#define NS_FTPPROTOCOLHANDLER_CID \
{ 0x25029490, 0xf132, 0x11d2, { 0x95, 0x88, 0x0, 0x80, 0x5f, 0x36, 0x9f, 0x95 } }
class nsFtpProtocolHandler : public nsIProtocolHandler
{
public:
NS_DECL_ISUPPORTS
// nsIProtocolHandler methods:
NS_IMETHOD GetScheme(char * *aScheme);
NS_IMETHOD GetDefaultPort(PRInt32 *aDefaultPort);
NS_IMETHOD MakeAbsolute(const char *aRelativeSpec, nsIURI *aBaseURI,
char **_retval);
NS_IMETHOD NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **_retval);
NS_IMETHOD NewChannel(const char* verb, nsIURI* url,
nsIEventSinkGetter *eventSinkGetter,
nsIEventQueue *eventQueue,
nsIChannel **_retval);
// nsFtpProtocolHandler methods:
nsFtpProtocolHandler();
virtual ~nsFtpProtocolHandler();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
protected:
nsISupports* mEventSinkGetter;
};
#endif /* nsFtpProtocolHandler_h___ */

View File

@@ -0,0 +1,212 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#include "nsFtpStreamListenerEvent.h"
#include "nsIBufferInputStream.h"
#include "nscore.h"
nsFtpStreamListenerEvent::nsFtpStreamListenerEvent(nsIStreamListener* listener,
nsISupports* context)
: mListener(listener), mContext(context)
{
NS_IF_ADDREF(mListener);
NS_IF_ADDREF(mContext);
}
nsFtpStreamListenerEvent::~nsFtpStreamListenerEvent()
{
NS_IF_RELEASE(mListener);
NS_IF_RELEASE(mContext);
}
void PR_CALLBACK nsFtpStreamListenerEvent::HandlePLEvent(PLEvent* aEvent)
{
// WARNING: This is a dangerous cast since it must adjust the pointer
// to compensate for the vtable...
nsFtpStreamListenerEvent *ev = (nsFtpStreamListenerEvent*)aEvent;
nsresult rv = ev->HandleEvent();
//ev->mListener->SetStatus(rv);
}
void PR_CALLBACK nsFtpStreamListenerEvent::DestroyPLEvent(PLEvent* aEvent)
{
// WARNING: This is a dangerous cast since it must adjust the pointer
// to compensate for the vtable...
nsFtpStreamListenerEvent *ev = (nsFtpStreamListenerEvent*)aEvent;
delete ev;
}
nsresult
nsFtpStreamListenerEvent::Fire(nsIEventQueue* aEventQueue)
{
NS_PRECONDITION(nsnull != aEventQueue, "nsIEventQueue for thread is null");
PL_InitEvent(this, nsnull,
(PLHandleEventProc) nsFtpStreamListenerEvent::HandlePLEvent,
(PLDestroyEventProc) nsFtpStreamListenerEvent::DestroyPLEvent);
PRStatus status = aEventQueue->PostEvent(this);
return status == PR_SUCCESS ? NS_OK : NS_ERROR_FAILURE;
}
////////////////////////////////////////////////////////////////////////////////
//
// OnStartBinding...
//
////////////////////////////////////////////////////////////////////////////////
NS_IMETHODIMP
nsFtpOnStartBindingEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener;
return receiver->OnStartBinding(mContext);
}
/*
NS_IMETHODIMP
nsMarshalingStreamObserver::OnStartBinding(nsISupports* context)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStartBindingEvent* event =
new nsOnStartBindingEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
*/
////////////////////////////////////////////////////////////////////////////////
//
// OnDataAvailable
//
////////////////////////////////////////////////////////////////////////////////
nsFtpOnDataAvailableEvent::~nsFtpOnDataAvailableEvent()
{
NS_RELEASE(mIStream);
}
nsresult
nsFtpOnDataAvailableEvent::Init(nsIBufferInputStream* aIStream,
PRUint32 aSourceOffset, PRUint32 aLength)
{
mLength = aLength;
mSourceOffset = aSourceOffset;
mIStream = aIStream;
NS_ADDREF(mIStream);
return NS_OK;
}
NS_IMETHODIMP
nsFtpOnDataAvailableEvent::HandleEvent()
{
nsIStreamListener* receiver = (nsIStreamListener*)mListener;
return receiver->OnDataAvailable(mContext, mIStream, mSourceOffset, mLength);
}
/*
NS_IMETHODIMP
nsMarshalingStreamListener::OnDataAvailable(nsISupports* context,
nsIBufferInputStream *aIStream,
PRUint32 aSourceOffset,
PRUint32 aLength)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnDataAvailableEvent* event =
new nsOnDataAvailableEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Init(aIStream, aSourceOffset, aLength);
if (NS_FAILED(rv)) goto failed;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
*/
////////////////////////////////////////////////////////////////////////////////
//
// OnStopBinding
//
////////////////////////////////////////////////////////////////////////////////
nsFtpOnStopBindingEvent::~nsFtpOnStopBindingEvent()
{
}
nsresult
nsFtpOnStopBindingEvent::Init(nsresult status, PRUnichar* aMsg)
{
mStatus = status;
mMessage = aMsg;
return NS_OK;
}
NS_IMETHODIMP
nsFtpOnStopBindingEvent::HandleEvent()
{
nsIStreamObserver* receiver = (nsIStreamObserver*)mListener;
return receiver->OnStopBinding(mContext, mStatus, mMessage);
}
/*
NS_IMETHODIMP
nsMarshalingStreamObserver::OnStopBinding(nsISupports* context,
nsresult aStatus,
const PRUnichar* aMsg)
{
nsresult rv = GetStatus();
if (NS_FAILED(rv)) return rv;
nsOnStopBindingEvent* event =
new nsOnStopBindingEvent(this, context);
if (event == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
rv = event->Init(aStatus, aMsg);
if (NS_FAILED(rv)) goto failed;
rv = event->Fire(mEventQueue);
if (NS_FAILED(rv)) goto failed;
return rv;
failed:
delete event;
return rv;
}
*/
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////

View File

@@ -0,0 +1,90 @@
/* -*- Mode: C++; tab-width: 2; 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.
*/
#ifndef ___nsftpstreamlistener_h__
#define ___nsftpstreamlistener_h__
#include "nsIStreamListener.h"
#include "nsIEventQueue.h"
#include "nscore.h"
#include "nsString.h"
class nsFtpStreamListenerEvent : public PLEvent {
public:
nsFtpStreamListenerEvent(nsIStreamListener* listener, nsISupports* context);
virtual ~nsFtpStreamListenerEvent();
nsresult Fire(nsIEventQueue* aEventQ);
NS_IMETHOD HandleEvent() = 0;
protected:
static void PR_CALLBACK HandlePLEvent(PLEvent* aEvent);
static void PR_CALLBACK DestroyPLEvent(PLEvent* aEvent);
nsIStreamListener* mListener;
nsISupports* mContext;
};
class nsFtpOnStartBindingEvent : public nsFtpStreamListenerEvent
{
public:
nsFtpOnStartBindingEvent(nsIStreamListener* listener, nsISupports* context)
: nsFtpStreamListenerEvent(listener, context) {}
virtual ~nsFtpOnStartBindingEvent() {}
NS_IMETHOD HandleEvent();
};
class nsFtpOnDataAvailableEvent : public nsFtpStreamListenerEvent
{
public:
nsFtpOnDataAvailableEvent(nsIStreamListener* listener, nsISupports* context)
: nsFtpStreamListenerEvent(listener, context),
mIStream(nsnull), mLength(0) {}
virtual ~nsFtpOnDataAvailableEvent();
nsresult Init(nsIBufferInputStream* aIStream, PRUint32 aSourceOffset, PRUint32 aLength);
NS_IMETHOD HandleEvent();
protected:
nsIBufferInputStream* mIStream;
PRUint32 mSourceOffset;
PRUint32 mLength;
};
class nsFtpOnStopBindingEvent : public nsFtpStreamListenerEvent
{
public:
nsFtpOnStopBindingEvent(nsIStreamListener* listener, nsISupports* context)
: nsFtpStreamListenerEvent(listener, context),
mStatus(NS_OK), mMessage(nsnull) {}
virtual ~nsFtpOnStopBindingEvent();
nsresult Init(nsresult status, PRUnichar* aMsg);
NS_IMETHOD HandleEvent();
protected:
nsresult mStatus;
PRUnichar* mMessage;
};
#endif // ___nsftpstreamlistener_h__

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