Compare commits

..

1967 Commits

Author SHA1 Message Date
thayes%netscape.com
2ffb191c83 Change text in password dialogs to account for expanded set of capabilities
(beyond just certificates)


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@72038 18797224-902f-48f8-a5cc-f745e15eee43
2000-06-12 20:35:55 +00:00
thayes%netscape.com
c1f01e46d5 Commit changes to SDR_BRANCH - first stage of SDR support for PSM
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@70645 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-23 01:07:31 +00:00
thayes%netscape.com
ce340e35d3 Change SDR interface to provide change password and logout functions. Logout currently
uses the PSM "logout all" feature.  Eventually,  it should affect the specific token.
Change password is a placeholder.


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@69105 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-11 00:21:08 +00:00
thayes%netscape.com
d7d144afee Add compatibility code to allow old PSM UI events to be recognized by the current
client.


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@69098 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-10 23:45:21 +00:00
(no author)
a8fe1ddfbd This commit was manufactured by cvs2svn to create branch 'SDR_BRANCH'.
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68777 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-09 01:30:39 +00:00
thayes%netscape.com
1c9f7079b4 Add SDR encryption and decryption calls (processmsg.c)
These calls need to run on new threads (for UI) so implement
a standard SSM_ProcessMsgOnThread call (msgthread.[ch])


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68481 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-06 01:05:56 +00:00
thayes%netscape.com
5d61efd096 Send SDR calls to the PSM process (rather than doing them locally for testing).
Fix heap problems by initializing pointers correctly.


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68480 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-06 01:03:56 +00:00
thayes%netscape.com
6b5b2866e9 Add modal argument to PSM UI callbacks - this requires/supports PSM 1.1 (final) or later
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68478 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-06 01:02:06 +00:00
thayes%netscape.com
928e14859f Implement temporary SDR code in protocolshr.h and protocolshr.c
Move definitions of protocol for SDR to messages.h and templates.c


git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68282 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 23:15:55 +00:00
thayes%netscape.com
a2d9adab4a Fix handling of return values for SDR routines.
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68185 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-04 00:39:00 +00:00
thayes%netscape.com
c3508f9c29 Add (again) fake encryption code to (moved) SDR_BRANCH
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@68131 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 21:38:41 +00:00
thayes%netscape.com
2c17c30693 Add BASE64 encoding/decoding for scriptable interfaces
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@67989 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-03 00:58:01 +00:00
(no author)
dad482a331 This commit was manufactured by cvs2svn to create branch 'SDR_BRANCH'.
git-svn-id: svn://10.0.0.236/branches/SDR_BRANCH@67918 18797224-902f-48f8-a5cc-f745e15eee43
2000-05-02 21:55:11 +00:00
mwelch%netscape.com
bc0989014f Applying Mac changes
git-svn-id: svn://10.0.0.236/trunk@67509 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 09:35:09 +00:00
mwelch%netscape.com
a50b587b72 Adding Mac build information. Project file is merely a placeholder right now; serious work remains to be done here.
git-svn-id: svn://10.0.0.236/trunk@67508 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 09:28:54 +00:00
mwelch%netscape.com
d452d50cfb Adding Mac files, primarily as placeholders
git-svn-id: svn://10.0.0.236/trunk@67507 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 09:14:36 +00:00
cls%seawood.org
e07c399878 nsString fixes for mathml.
git-svn-id: svn://10.0.0.236/trunk@67506 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:55:55 +00:00
pierre%netscape.com
cdcf7d8bca 9876. Implemented CSSStyleDeclaration removeProperty. r=jst.
git-svn-id: svn://10.0.0.236/trunk@67505 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:35:40 +00:00
alecf%netscape.com
268e43c928 add skeleton implementations of search attribute XBL (doesn't work right now)
git-svn-id: svn://10.0.0.236/trunk@67504 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:25:47 +00:00
alecf%netscape.com
7499719e4e add the cool hypnotizing background to the messenger toolbar
git-svn-id: svn://10.0.0.236/trunk@67503 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:23:07 +00:00
alecf%netscape.com
c602d56e64 do ben a favor and make a bunch of shared stuff skinnable!
git-svn-id: svn://10.0.0.236/trunk@67502 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:20:11 +00:00
sspitzer%netscape.com
bd06626120 fix assertion, reported by mjudge.
git-svn-id: svn://10.0.0.236/trunk@67501 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 08:09:57 +00:00
cmanske%netscape.com
264e9cc62c Tweak EdImageProps.js
git-svn-id: svn://10.0.0.236/trunk@67500 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 07:57:29 +00:00
cmanske%netscape.com
05e969a983 Fixed AdvancedEditButton in ImageProps dialog
git-svn-id: svn://10.0.0.236/trunk@67499 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 07:54:58 +00:00
mjudge%netscape.com
7f55d84c40 fixed str bustage.
git-svn-id: svn://10.0.0.236/trunk@67498 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 07:51:09 +00:00
cmanske%netscape.com
d75948bfd1 Fixed EdHLineProps.xul and EdColorProps.xul. Cleaned up AdvancedEdit buttons
git-svn-id: svn://10.0.0.236/trunk@67497 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 07:34:48 +00:00
ruslan%netscape.com
5229d9bde7 Add necko resource bundle manifests to MAC build, r=davidm
git-svn-id: svn://10.0.0.236/trunk@67492 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:38:26 +00:00
ruslan%netscape.com
240e0d8b74 Uncomment http preferences (doesn't change any defaults) to make
them recognizable with right values by pref UI


git-svn-id: svn://10.0.0.236/trunk@67491 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:37:31 +00:00
ruslan%netscape.com
2a5e84b4e0 Turn on nsHTTPFinalListener to fix various notification bugs, r=gagan. Make
disk cache classes implement threadsafe_isupports, r=davidm, add placeholder
for resource bundles for necko.


git-svn-id: svn://10.0.0.236/trunk@67490 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:36:31 +00:00
ruslan%netscape.com
8165cdeffb Hook up http preferences to pref_debug window
git-svn-id: svn://10.0.0.236/trunk@67489 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:36:29 +00:00
hyatt%netscape.com
5ae96e8d73 Tweak.
git-svn-id: svn://10.0.0.236/trunk@67488 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:35:49 +00:00
mjudge%netscape.com
e7664ef7d7 small change to the way you get selection
git-svn-id: svn://10.0.0.236/trunk@67487 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:22:07 +00:00
mjudge%netscape.com
1cc1a29d13 change to move selection interfaces to nsISelectionController and away from nsIPresShell or nsIDocument
git-svn-id: svn://10.0.0.236/trunk@67486 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:21:31 +00:00
mjudge%netscape.com
aacbb20c68 massive change to stop the editor fromknowing about nsIPresShell or nsIDocument
git-svn-id: svn://10.0.0.236/trunk@67485 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:20:36 +00:00
nhotta%netscape.com
6ed5ffdd71 Added a pref UI for mailnews.send_default_charset, bug 32802.
git-svn-id: svn://10.0.0.236/trunk@67484 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:18:50 +00:00
hyatt%netscape.com
9469cab582 Fix crash on dynamic skin switch.
git-svn-id: svn://10.0.0.236/trunk@67483 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 06:17:47 +00:00
cmanske%netscape.com
e196258f67 Fixed Composer bugs 287475, 36937, 36981, 36996. More massive XUL skin conversion.
git-svn-id: svn://10.0.0.236/trunk@67482 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:59:16 +00:00
cmanske%netscape.com
c56cb4bb36 Converting message compose to use new xul widgets on toolbar. Removing 'edit HTML source'. r=ducarroz
git-svn-id: svn://10.0.0.236/trunk@67481 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:57:06 +00:00
beard%netscape.com
9523bfea1b regenerated dependencies
git-svn-id: svn://10.0.0.236/trunk@67480 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:46:22 +00:00
beard%netscape.com
b8602f2475 tracing now prints instruction operands.
git-svn-id: svn://10.0.0.236/trunk@67479 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:44:38 +00:00
beard%netscape.com
76df7ba704 using JSValue::tag to do simple operand validation.
git-svn-id: svn://10.0.0.236/trunk@67478 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:43:33 +00:00
jband%netscape.com
0064a35eeb not part of build
git-svn-id: svn://10.0.0.236/trunk@67477 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:42:57 +00:00
beard%netscape.com
0ba9fd66f0 forward declaring ICodeModule, to break circularity. JSValue is now a tagged union.
git-svn-id: svn://10.0.0.236/trunk@67476 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:42:46 +00:00
beard%netscape.com
4fb576a938 Instruction::count(), Instruction::printOperands(), plus newly generated instruction classes.
git-svn-id: svn://10.0.0.236/trunk@67475 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:41:54 +00:00
beard%netscape.com
beaa9014f4 added jstypes.cpp
git-svn-id: svn://10.0.0.236/trunk@67474 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:40:42 +00:00
beard%netscape.com
4c3078dbdf operator<<(Formatter&, const JSValue&)
git-svn-id: svn://10.0.0.236/trunk@67473 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:40:16 +00:00
beard%netscape.com
c12f1ab4b4 generates printOperands()
git-svn-id: svn://10.0.0.236/trunk@67472 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:39:27 +00:00
beard%netscape.com
87f99bcba5 runs gencode.pl with MW Perl.
git-svn-id: svn://10.0.0.236/trunk@67471 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 05:39:04 +00:00
sspitzer%netscape.com
9dd26ceee3 more fixes.
git-svn-id: svn://10.0.0.236/trunk@67470 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 04:23:05 +00:00
sspitzer%netscape.com
17f63bc50f more bustage fixage
git-svn-id: svn://10.0.0.236/trunk@67469 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 04:07:58 +00:00
sspitzer%netscape.com
1ff18e7542 more bustage fixed. help from scc.
git-svn-id: svn://10.0.0.236/trunk@67468 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 04:04:56 +00:00
sspitzer%netscape.com
3d55654f98 more bustage fixage. help from scc.
git-svn-id: svn://10.0.0.236/trunk@67467 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 04:01:18 +00:00
sspitzer%netscape.com
33814334bb fix bustage. help from scc.
git-svn-id: svn://10.0.0.236/trunk@67466 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 03:59:34 +00:00
sspitzer%netscape.com
1332bc36fd fix the build.
git-svn-id: svn://10.0.0.236/trunk@67465 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 03:53:57 +00:00
mjudge%netscape.com
dac4122cee i dont believe it. more fixes to str
git-svn-id: svn://10.0.0.236/trunk@67464 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 03:46:32 +00:00
mjudge%netscape.com
8cb1961b4f another fix...
git-svn-id: svn://10.0.0.236/trunk@67463 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:57:24 +00:00
waldemar%netscape.com
5544e9ee1d Changed attributes and 'language' statement syntax, added interfaces, and removed ^*, ^?, |*, and |?.
git-svn-id: svn://10.0.0.236/trunk@67462 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:34:14 +00:00
rginda%netscape.com
a8bfb0a422 don't generate print_args if super_has_print
comment fixes


git-svn-id: svn://10.0.0.236/trunk@67461 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:33:36 +00:00
waldemar%netscape.com
7391d11015 Changed period to dot
git-svn-id: svn://10.0.0.236/trunk@67460 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:31:41 +00:00
waldemar%netscape.com
7288667828 Fixed syntax of (bottom)
git-svn-id: svn://10.0.0.236/trunk@67459 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:30:44 +00:00
waldemar%netscape.com
ca2d0fdbb8 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@67458 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:30:19 +00:00
mjudge%netscape.com
d3ae26b9a4 str bustage
git-svn-id: svn://10.0.0.236/trunk@67457 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:27:04 +00:00
rginda%netscape.com
f2d467d84d moved comment so it made more sense
git-svn-id: svn://10.0.0.236/trunk@67456 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:26:14 +00:00
beard%netscape.com
0fc16a2fb9 reordered inheritance graph of Linkage.
git-svn-id: svn://10.0.0.236/trunk@67455 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:23:08 +00:00
rginda%netscape.com
3708c97e3c printarg stubbed out
git-svn-id: svn://10.0.0.236/trunk@67454 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:20:23 +00:00
sspitzer%netscape.com
f0659c6849 skin re-org
git-svn-id: svn://10.0.0.236/trunk@67453 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:03:45 +00:00
sspitzer%netscape.com
b3abcadf67 skin re-org.
git-svn-id: svn://10.0.0.236/trunk@67452 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 02:02:27 +00:00
beard%netscape.com
70f65a5092 testProto()
git-svn-id: svn://10.0.0.236/trunk@67451 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 01:43:03 +00:00
sspitzer%netscape.com
1eba3b6fa0 not part of the build. watch this space. good stuff coming soon.
git-svn-id: svn://10.0.0.236/trunk@67450 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 01:42:39 +00:00
pinkerton%netscape.com
360a7ef35e MORE string changes. will it ever stop...
git-svn-id: svn://10.0.0.236/trunk@67449 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 01:18:25 +00:00
varada%netscape.com
5be84665f1 fix for bug #37447 - faulty line ending in help line
git-svn-id: svn://10.0.0.236/trunk@67448 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:51:10 +00:00
pinkerton%netscape.com
0648807271 conversions for string. making them explicit
git-svn-id: svn://10.0.0.236/trunk@67447 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:46:10 +00:00
scc%netscape.com
79d6fa2d05 fix for pink
git-svn-id: svn://10.0.0.236/trunk@67446 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:21:44 +00:00
rogerl%netscape.com
de17d45afa try/catch exercise changes
git-svn-id: svn://10.0.0.236/trunk@67445 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:11:18 +00:00
pinkerton%netscape.com
5c7e4a417e missed one more
git-svn-id: svn://10.0.0.236/trunk@67444 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:11:07 +00:00
rogerl%netscape.com
2878990855 fixed bad constructor thing.
git-svn-id: svn://10.0.0.236/trunk@67443 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:10:22 +00:00
wtc%netscape.com
66c442fe8e Bugzilla bug #37240: define DebugBreak() for OS/2 for use by PR_Assert().
Thanks to snizinsk@us.ibm.com of IBM Corporation for contributing the
patch.


git-svn-id: svn://10.0.0.236/trunk@67441 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-28 00:01:57 +00:00
pinkerton%netscape.com
ff4bed05d3 removing nsTextAreaWidget because it was only in the opt target.
git-svn-id: svn://10.0.0.236/trunk@67440 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:56:04 +00:00
pinkerton%netscape.com
fb908afecc one... more... time... small string fix
git-svn-id: svn://10.0.0.236/trunk@67439 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:30:04 +00:00
pavlov%netscape.com
b3d5f46f13 fix runtime bustage
git-svn-id: svn://10.0.0.236/trunk@67438 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:28:35 +00:00
pavlov%netscape.com
1ab0700084 fix tests
git-svn-id: svn://10.0.0.236/trunk@67437 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:20:32 +00:00
dmose%mozilla.org
0b0b51f77a Fixed a typo that was causing Perl to abort before printing the HTML
footer when a certain database inconsistency was detected.


git-svn-id: svn://10.0.0.236/trunk@67436 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:12:44 +00:00
pavlov%netscape.com
ecc10455eb fix for string sillyness
git-svn-id: svn://10.0.0.236/trunk@67435 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:09:31 +00:00
slamm%netscape.com
2f3765a701 Revert previousstarttime to previousbuildtime. Didn't mean to check that in.
git-svn-id: svn://10.0.0.236/trunk@67434 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:09:26 +00:00
pavlov%netscape.com
aff715afda fix string stupidness
git-svn-id: svn://10.0.0.236/trunk@67433 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 23:08:11 +00:00
slamm%netscape.com
bf7826c69d Fix open/close state for panel.html and express=1. Encapsulate it a little better.
git-svn-id: svn://10.0.0.236/trunk@67432 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:56:17 +00:00
pavlov%netscape.com
3d07d7c1fe fix shrike
git-svn-id: svn://10.0.0.236/trunk@67431 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:52:00 +00:00
pavlov%netscape.com
9261804b73 more string love
git-svn-id: svn://10.0.0.236/trunk@67430 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:41:58 +00:00
pavlov%netscape.com
3ffe0c46dd string fun
git-svn-id: svn://10.0.0.236/trunk@67429 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:39:17 +00:00
pavlov%netscape.com
36dca2ec19 more string fun
git-svn-id: svn://10.0.0.236/trunk@67428 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:38:19 +00:00
pavlov%netscape.com
bb41273a8c string changes
git-svn-id: svn://10.0.0.236/trunk@67427 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:29:04 +00:00
pavlov%netscape.com
234de8fe77 more string fun
git-svn-id: svn://10.0.0.236/trunk@67426 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:24:36 +00:00
pavlov%netscape.com
c677a52a0c string fixes
git-svn-id: svn://10.0.0.236/trunk@67425 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:15:24 +00:00
pinkerton%netscape.com
5527c2f9b6 small fix for sting conversion. no need to convert from char* to nsCString
git-svn-id: svn://10.0.0.236/trunk@67424 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:14:08 +00:00
scc%netscape.com
33ed7048db making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67423 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:09:11 +00:00
pavlov%netscape.com
04d8edc70a new string apis
git-svn-id: svn://10.0.0.236/trunk@67422 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 22:02:28 +00:00
pinkerton%netscape.com
0b38e76633 missing string conversion for comparing AutoString with Unichar*
git-svn-id: svn://10.0.0.236/trunk@67421 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:58:43 +00:00
scc%netscape.com
222fa27bdc making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67420 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:53:50 +00:00
pavlov%netscape.com
de5ddde938 string changes
git-svn-id: svn://10.0.0.236/trunk@67419 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:46:26 +00:00
dac%x.cx
3b099cb1ad Add PNG support for gnuplot
git-svn-id: svn://10.0.0.236/trunk@67418 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:36:40 +00:00
pavlov%netscape.com
653d779a08 update to new string apis
git-svn-id: svn://10.0.0.236/trunk@67417 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:36:05 +00:00
dac%x.cx
33529f7fa7 Send domain with HELO
git-svn-id: svn://10.0.0.236/trunk@67416 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:33:14 +00:00
modgock%eng.sun.com
1001702b84 updated version strings for any impending distribution
git-svn-id: svn://10.0.0.236/trunk@67415 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:33:01 +00:00
scc%netscape.com
20ebb8f45e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67414 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:32:39 +00:00
pavlov%netscape.com
e6afdc0e31 update string apis
git-svn-id: svn://10.0.0.236/trunk@67413 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:28:02 +00:00
scc%netscape.com
a4e898e031 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67412 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:24:29 +00:00
scc%netscape.com
47f0b60fe6 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67411 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 21:09:10 +00:00
scc%netscape.com
ba4a0d48d1 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67410 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:59:12 +00:00
scc%netscape.com
e26ca7dcdc making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67409 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:50:34 +00:00
despotdaemon%netscape.com
4bb0e4d410 Pseudo-automatic update of changes made by rayw@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@67408 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:42:18 +00:00
scc%netscape.com
62b1c05b32 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67407 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:38:50 +00:00
scc%netscape.com
072da30887 making string conversions explicit; this checkin stops the back-sliding before we turn on NEW_STRING_APIS.
git-svn-id: svn://10.0.0.236/trunk@67406 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:37:54 +00:00
scc%netscape.com
04634cb6fa making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67405 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:29:56 +00:00
scc%netscape.com
d110c14712 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67404 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:22:27 +00:00
scc%netscape.com
c946ad6ca5 making string conversions explicit, and converting global static returning function to the canonical form
git-svn-id: svn://10.0.0.236/trunk@67403 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:19:17 +00:00
scc%netscape.com
68d2b8e9f4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67402 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:08:45 +00:00
scc%netscape.com
8327846ea7 making promises work
git-svn-id: svn://10.0.0.236/trunk@67401 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 20:01:28 +00:00
scc%netscape.com
506e781f8f making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67400 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 19:49:53 +00:00
gagan%netscape.com
2ba511144a First checkin of proxy auto config interfaces. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@67399 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 18:42:47 +00:00
norris%netscape.com
dd245029e8 Propagate changes from 1.21.2.3 into tip.
git-svn-id: svn://10.0.0.236/trunk@67398 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 18:39:10 +00:00
despotdaemon%netscape.com
c1aaa31b84 Pseudo-automatic update of changes made by pavel@gingerall.cz.
git-svn-id: svn://10.0.0.236/trunk@67396 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 16:53:18 +00:00
despotdaemon%netscape.com
5a6c0afaa9 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@67395 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 16:34:36 +00:00
rjc%netscape.com
3012a6055b Center customize dialog when its opened.
git-svn-id: svn://10.0.0.236/trunk@67394 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 14:36:54 +00:00
alecf%netscape.com
714bc2b1ff fix xlib bustage
git-svn-id: svn://10.0.0.236/trunk@67393 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 14:21:59 +00:00
mjudge%netscape.com
fca75e564b fix to get vc5.0 building again
git-svn-id: svn://10.0.0.236/trunk@67392 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 10:50:29 +00:00
mccabe%netscape.com
c470017373 Add console.css file; make javascript console scrollable. Fix to 35998.
git-svn-id: svn://10.0.0.236/trunk@67391 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 08:45:30 +00:00
rjc%netscape.com
687ea97750 Fix bug # 37199: small search file parsing fix.
git-svn-id: svn://10.0.0.236/trunk@67390 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 08:29:02 +00:00
mjudge%netscape.com
a8455b3f32 files not in build yet
git-svn-id: svn://10.0.0.236/trunk@67389 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 08:13:39 +00:00
pavlov%netscape.com
a3516423a3 fix for excessive mallocing of regions bug #37352
git-svn-id: svn://10.0.0.236/trunk@67388 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:58:15 +00:00
mjudge%netscape.com
24b8f29c46 ender lite checkin.
git-svn-id: svn://10.0.0.236/trunk@67387 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:37:12 +00:00
waterson%netscape.com
3ea6e05838 Revert changes. They're causing problems elsewhere.
git-svn-id: svn://10.0.0.236/trunk@67386 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 07:01:58 +00:00
waterson%netscape.com
7932d69920 Oops. Didn't realize nscore.h was included in 'C' compilation as well. Wrap namespace baloney with #ifdef __cplusplus__. r=scc
git-svn-id: svn://10.0.0.236/trunk@67385 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:50:38 +00:00
waterson%netscape.com
abb5be1743 Get rid of extra operators that we can get for free by including <algorithm>. Gets rid of gcc-2.7.2.3 ambiguity problems with new string APIs, too. r=scc
git-svn-id: svn://10.0.0.236/trunk@67384 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:47:05 +00:00
waterson%netscape.com
3be3c2bff5 Fix memory churn caused by implicit nsString ctor.
git-svn-id: svn://10.0.0.236/trunk@67383 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:44:13 +00:00
waterson%netscape.com
32c86a2d7e Get rid of SetString() usages. r=scc
git-svn-id: svn://10.0.0.236/trunk@67382 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:39:07 +00:00
waterson%netscape.com
05ffd4174a Make the std::rel_ops namespace visible without qualification so that we can get operator!= from operator==, and operators >=, <=, and > from operator<. Needed for disambiguation with new string classes. r=scc
git-svn-id: svn://10.0.0.236/trunk@67381 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:37:06 +00:00
modgock%eng.sun.com
2bbcfc004f fixed java target type.
git-svn-id: svn://10.0.0.236/trunk@67380 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:36:18 +00:00
modgock%eng.sun.com
a1cf58f4ff Defined CALL_NOT_IN_CARBON since it was wrapping method definitions in 3.3.1 JManager that were referenced in the code.
Added an import for ControlDefinitions.h; kControlEditTextPasswordTag and kControlEditTextTextTag were defined in Controls.h in 3.2, but moved out in 3.3.1 so MRJSession.cpp was failing build.
(these are still tinderbox immune since they're not auto built)


git-svn-id: svn://10.0.0.236/trunk@67379 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:32:45 +00:00
leaf%mozilla.org
cbc56183d8 Automated update
git-svn-id: svn://10.0.0.236/trunk@67378 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 06:00:39 +00:00
waterson%netscape.com
541385fe5a Fix memory churn caused by implicit nsString ctor.
git-svn-id: svn://10.0.0.236/trunk@67377 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:53:36 +00:00
waterson%netscape.com
f2ec547d67 Add test to check whether partial template specialization works. r=scc
git-svn-id: svn://10.0.0.236/trunk@67376 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:52:26 +00:00
brendan%mozilla.org
3af34ae6d8 Debloat output by consolidating onmouseovers.
git-svn-id: svn://10.0.0.236/trunk@67375 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:41:59 +00:00
leaf%mozilla.org
22027badd7 Automated update
git-svn-id: svn://10.0.0.236/trunk@67374 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:30:08 +00:00
waterson%netscape.com
735ae2f5cb Add test to determine if the compiler has trouble comparing nsCOMPtr's to zero using operator==() and operator!=(). r=scc
git-svn-id: svn://10.0.0.236/trunk@67373 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 05:23:02 +00:00
waterson%netscape.com
6f3568569c Get rid of operator==(nsCOMPtr, int) usage because it fries gcc-2.7.2.3's mind with new string stuff. r=scc
git-svn-id: svn://10.0.0.236/trunk@67372 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 04:44:56 +00:00
bienvenu%netscape.com
26186d5c5f fix get running scope to return running scope
git-svn-id: svn://10.0.0.236/trunk@67371 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 04:14:51 +00:00
brendan%mozilla.org
ab1fe68877 Add TraceMalloc* native methods; allow multiple log files per site file.
git-svn-id: svn://10.0.0.236/trunk@67370 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 04:02:22 +00:00
valeski%netscape.com
c92e7d31c2 37200. text type data urls were having whitespace stripped out of them.
git-svn-id: svn://10.0.0.236/trunk@67369 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 03:55:20 +00:00
alecf%netscape.com
65a545621a fix xlib bustage
git-svn-id: svn://10.0.0.236/trunk@67368 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 03:55:06 +00:00
alecf%netscape.com
8f0db75cff add helper routine to get all valid operators for a given attribute
git-svn-id: svn://10.0.0.236/trunk@67367 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:29:23 +00:00
ssu%netscape.com
76a1691d91 updating install build scripts to correctly set the uninstall.exe file size. Not part of tinderbox build. would affect only windows platforms
git-svn-id: svn://10.0.0.236/trunk@67366 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:25:50 +00:00
alecf%netscape.com
d356ed0bbd add english versions of search attributes and properties for filters/search
git-svn-id: svn://10.0.0.236/trunk@67365 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:23:43 +00:00
alecf%netscape.com
8df4c47d09 make stringbundles a little more bullet-proof - don't crash when the bundle couldn't be loaded
git-svn-id: svn://10.0.0.236/trunk@67364 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:17:17 +00:00
hyatt%netscape.com
3a64e17e0b More XBL goodness.
git-svn-id: svn://10.0.0.236/trunk@67363 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:15:45 +00:00
hyatt%netscape.com
494757a73f XBL Change
git-svn-id: svn://10.0.0.236/trunk@67362 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:11:41 +00:00
hyatt%netscape.com
29c9e50cca Dynamic skin switching lives, baby.
git-svn-id: svn://10.0.0.236/trunk@67361 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:10:43 +00:00
hyatt%netscape.com
13f6b2d0af New XBL.
git-svn-id: svn://10.0.0.236/trunk@67360 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 02:08:35 +00:00
despotdaemon%netscape.com
2c1f2e3b02 Pseudo-automatic update of changes made by risto@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@67359 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:59:33 +00:00
cls%seawood.org
247b97c387 Rearranged CFLAGS so that mozilla includes come before system includes. Bug #37210
git-svn-id: svn://10.0.0.236/trunk@67358 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:38:11 +00:00
alecf%netscape.com
3d36ec997e ok, now that I actually understand how XPIDL arrays work, implement them correctly, and add a missing ADDREF that was causing memory corruption
git-svn-id: svn://10.0.0.236/trunk@67357 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:38:06 +00:00
rogerl%netscape.com
e626dba4ad More exception handling handling.
git-svn-id: svn://10.0.0.236/trunk@67356 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:27:09 +00:00
rjc%netscape.com
f83df9056a Fix bug # 37102: if its a "ftp://" URL and its a HTTP-INDEX mimetype, it has to be a directory, so ensure that the URL ends with a slash.
git-svn-id: svn://10.0.0.236/trunk@67355 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:17:10 +00:00
cls%seawood.org
579022dcee Removed DrawTile() stub implementation for BeOS. Thanks to justin@68k.org for the patch.
git-svn-id: svn://10.0.0.236/trunk@67354 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:16:19 +00:00
javi%netscape.com
721a5fcc39 Only add the hot link on cert windows if the target for the HTTP request
is a certificate resource.


git-svn-id: svn://10.0.0.236/trunk@67353 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:08:19 +00:00
gagan%netscape.com
51ed41e99e Fix the form posting problem. I forget the bug number... r=ruslan
git-svn-id: svn://10.0.0.236/trunk@67352 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:06:57 +00:00
cmanske%netscape.com
db32952cd9 Changed flex=100% to flex=1
git-svn-id: svn://10.0.0.236/trunk@67351 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:03:15 +00:00
slamm%netscape.com
740bd5517e Sidebar panels file url changed from sidebar-rdf.netscape.com to sidebar.netscape.com.
git-svn-id: svn://10.0.0.236/trunk@67350 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 01:02:48 +00:00
attinasi%netscape.com
d5aa4c73cb Fixed recent regression: DidLoadStyle was not being called if the status was failure, causing the parser to remain blocked forever. b=27208
git-svn-id: svn://10.0.0.236/trunk@67349 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:51:06 +00:00
leaf%mozilla.org
fb66f101d4 Automated update
git-svn-id: svn://10.0.0.236/trunk@67348 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:45:21 +00:00
waterson%netscape.com
4fd3986e26 Remove rdf:httpindex datasource from menus. r=rjc
git-svn-id: svn://10.0.0.236/trunk@67347 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:38:02 +00:00
ben%netscape.com
c72ffbba08 added some new skin files
git-svn-id: svn://10.0.0.236/trunk@67346 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:34:13 +00:00
waterson%netscape.com
2d18faeefc Move template builder 'release' to SetScriptGlobalObject() so that we'll always release the template builders regardless of whether someone else leaks the nsXULDocument object.
git-svn-id: svn://10.0.0.236/trunk@67345 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:32:02 +00:00
tor%cs.brown.edu
5a667aa264 Patch from rich.burridge@Sun.COM to remove unneeded reference to
-lCstd when using the SUNWspro5.0 compilers.  libCstd is large
and only provided in static form, so this change causes the
distribution directory to shrink by about a factor of two.  r=tor


git-svn-id: svn://10.0.0.236/trunk@67344 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:32:01 +00:00
mstoltz%netscape.com
dae11b0075 Removed getOwner() function from nsIStreamLoader. getChannel() now fulfills this function.
git-svn-id: svn://10.0.0.236/trunk@67343 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:30:27 +00:00
nhotta%netscape.com
423b78d26f Changed to use "pre" instead of "div" in case of plain text for the font setting, bug 37299.
git-svn-id: svn://10.0.0.236/trunk@67342 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:26:24 +00:00
danm%netscape.com
0b5cd59030 synch with widget/nsWindow.cpp rev 3.272. code by roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@67341 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:25:54 +00:00
danm%netscape.com
0691d1e6d3 synch with nsWindow.cpp rev 3.272. code by roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@67340 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:25:01 +00:00
danm%netscape.com
5c72c7fd00 use a dialog windproc for dialog windows. code by roc+moz@cs.cmu.edu
git-svn-id: svn://10.0.0.236/trunk@67339 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:23:18 +00:00
alecf%netscape.com
e1fd66e141 reduce some dependancies and bloat (this stuff no longer used)
git-svn-id: svn://10.0.0.236/trunk@67338 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:15:15 +00:00
nhotta%netscape.com
20a1b1cfcc Changed to use NS_IMPL_THREADSAFE_ISUPPORTS.
git-svn-id: svn://10.0.0.236/trunk@67337 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:14:06 +00:00
dbaron%fas.harvard.edu
6b88c55779 Fix bugs 12398, 12450, and 35215, and comment out some unused code. r=pierre@netscape.com
git-svn-id: svn://10.0.0.236/trunk@67336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:12:25 +00:00
dbaron%fas.harvard.edu
c266c49303 Fix bug 37082 - attribute selector matching for ~= and |= backwards. r=pierre@netscape.com
git-svn-id: svn://10.0.0.236/trunk@67335 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:07:12 +00:00
javi%netscape.com
ad78f2d7f0 Whomping my changes for imporoved cert UI and cert lookup over LDAP onto
mozilla.

Make P12 unicode conversion switch bytes to Network Byte Order.  Mozilla
localization doesn't do that for us.


git-svn-id: svn://10.0.0.236/trunk@67334 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-27 00:03:33 +00:00
dmose%mozilla.org
c895d262f9 added prerequisite cvs patch and modified README to reflect this
git-svn-id: svn://10.0.0.236/trunk@67333 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:59:15 +00:00
javi%netscape.com
a9c201e451 Automaticallly pre-select all e-mail addresses that the user doesn't have.
git-svn-id: svn://10.0.0.236/trunk@67332 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:59:14 +00:00
alecf%netscape.com
f2f112a7d5 add the validity manager to the factory so we can retrieve it as a service
git-svn-id: svn://10.0.0.236/trunk@67331 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:56:51 +00:00
javi%netscape.com
8bc8a0cf41 Trim down the number of libraries we link against.
git-svn-id: svn://10.0.0.236/trunk@67330 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:55:52 +00:00
javi%netscape.com
222b7d4c9b Add spiffy new UI for cert viewing. Let's you walk the chain. Also
enhancements to search look up through LDAP.


git-svn-id: svn://10.0.0.236/trunk@67329 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:53:51 +00:00
javi%netscape.com
c736d5e4b3 coreconf lives in a new directory now.
git-svn-id: svn://10.0.0.236/trunk@67327 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:51:47 +00:00
dmose%mozilla.org
eef9bebdd3 added lots of info
git-svn-id: svn://10.0.0.236/trunk@67326 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:51:39 +00:00
pavlov%netscape.com
a4baa9c869 fix getting screen depth that pink screwed up the other day
git-svn-id: svn://10.0.0.236/trunk@67324 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:49:35 +00:00
norris%netscape.com
63dfd1bdb3 Allow multiple uses of importClass on the same class.
git-svn-id: svn://10.0.0.236/trunk@67323 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:47:15 +00:00
alecf%netscape.com
67fba5aa2a scriptify and COMify the validity manager and tables - make the validity manager into a service instead of a global variable
git-svn-id: svn://10.0.0.236/trunk@67322 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:41:45 +00:00
morse%netscape.com
d6c6dcb9ad restore psm again but this time controlled by a pref
git-svn-id: svn://10.0.0.236/trunk@67321 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:41:35 +00:00
attinasi%netscape.com
f0e756bc78 Eliminated a wasteful duplication of a string. Should reduce bloat substantially. r=pierre
git-svn-id: svn://10.0.0.236/trunk@67320 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:36:45 +00:00
norris%netscape.com
d1cd56f4c1 Fix bug 37317.
git-svn-id: svn://10.0.0.236/trunk@67319 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:33:25 +00:00
jst%netscape.com
3a55dd1f0f Initialize mRefCnt in the constructor, duh!
git-svn-id: svn://10.0.0.236/trunk@67318 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:24:30 +00:00
waterson%netscape.com
e9f6768fc1 Turn on 'add' menu in sidebar. r=slamm
git-svn-id: svn://10.0.0.236/trunk@67317 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:24:05 +00:00
waterson%netscape.com
4ec70ed6ab Bug 37280 (workaround). Refresh sidebars *before* flushing the panels datasource to deal with the fact that there's a leak. r=slamm
git-svn-id: svn://10.0.0.236/trunk@67316 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:23:47 +00:00
jst%netscape.com
9b4ef67be1 Fix crash when modifying a stylesheet through the DOM before the document is displayed.
git-svn-id: svn://10.0.0.236/trunk@67315 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 23:22:06 +00:00
norris%netscape.com
b443eb6d5e Fix NullPointerException caused by clearing cache
git-svn-id: svn://10.0.0.236/trunk@67314 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:48:48 +00:00
ssu%netscape.com
d6f29e64ba fixing the makefile to build without having set WINOS explicitly
git-svn-id: svn://10.0.0.236/trunk@67313 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:47:45 +00:00
jefft%netscape.com
f58d235d03 fixed bug 35039 - POP: Shouldn't got an Alert when canceling login dialog
git-svn-id: svn://10.0.0.236/trunk@67312 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:31:59 +00:00
alecf%netscape.com
b491534779 add CIDs and ProgIDs for search validity manager
git-svn-id: svn://10.0.0.236/trunk@67311 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:26:45 +00:00
alecf%netscape.com
e012532b1d fix extra warning
git-svn-id: svn://10.0.0.236/trunk@67310 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:18:38 +00:00
alecf%netscape.com
be8d990f03 fix a whole bunch of warnings and add more assertions
git-svn-id: svn://10.0.0.236/trunk@67309 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:14:00 +00:00
beard%netscape.com
1977ec8556 oops.
git-svn-id: svn://10.0.0.236/trunk@67308 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:10:20 +00:00
beard%netscape.com
1ff7c57804 removed JSMap::operator[], added set/getPrototype().
git-svn-id: svn://10.0.0.236/trunk@67307 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:06:17 +00:00
alecf%netscape.com
0fe44539de added files: mozilla/mailnews/base/search/public/nsIMsgSearchValidityManager.idl, mozilla/mailnews/base/search/public/nsIMsgSearchValidityTable.idl
git-svn-id: svn://10.0.0.236/trunk@67305 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:03:49 +00:00
alecf%netscape.com
bec1196da6 add search validity table/manager to windows build
git-svn-id: svn://10.0.0.236/trunk@67304 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 22:01:44 +00:00
alecf%netscape.com
6f6183a1ff add validity manager stuff to unix build
git-svn-id: svn://10.0.0.236/trunk@67303 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:54:37 +00:00
alecf%netscape.com
989e23c3ce add scriptable interfaces to the search validity manager and tables (not yet part of build)
git-svn-id: svn://10.0.0.236/trunk@67302 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:54:18 +00:00
erik%netscape.com
76518adf54 bug 27164; added new font height APIs, currently only on Unix; will be
added to other platforms later


git-svn-id: svn://10.0.0.236/trunk@67301 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:53:26 +00:00
erik%netscape.com
f9ba3f64eb bug 27164; added new font height APIs for PostScript module
git-svn-id: svn://10.0.0.236/trunk@67300 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:52:05 +00:00
erik%netscape.com
9b37656bf7 bug 27164; added new font height APIs for Unix (GTK) version
git-svn-id: svn://10.0.0.236/trunk@67299 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:51:11 +00:00
alecf%netscape.com
0a0605e2dc skinify the wizard overlays
git-svn-id: svn://10.0.0.236/trunk@67298 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:50:49 +00:00
beard%netscape.com
6fd78a8973 oops getProperty() can't be const unless map.find() is used everywhere.
git-svn-id: svn://10.0.0.236/trunk@67297 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:48:04 +00:00
av%netscape.com
5981bef8dd Fixing mismatched addref/release pair
git-svn-id: svn://10.0.0.236/trunk@67296 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:47:45 +00:00
ducarroz%netscape.com
11a8d41f13 Fix autocomplete dll name to be 8.3. That will fix problem that autocomplete dll isn't installed on Windows.
git-svn-id: svn://10.0.0.236/trunk@67295 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:44:21 +00:00
javi%netscape.com
d178c04839 Add a file that can pretty print DER blobs.
git-svn-id: svn://10.0.0.236/trunk@67294 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:39:28 +00:00
beard%netscape.com
0b93de01f3 Using getProperty/setProperty rather than JSMap::operator[]. This follows the prototype chain.
git-svn-id: svn://10.0.0.236/trunk@67293 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:38:14 +00:00
dougt%netscape.com
5a4918cdf1 Patch from Tim Rowley <tor@cs.brown.edu>.
From his email:

Your checkin v1.9 to nsDirectoryService.cpp broke a SUNWspro4.2
debug build of mozilla, causing xpcom to fail initializing.  The
root problem was that nsDirectoryService::Create() was failing.
This appears to a mistake caused by a shadowed copy of the "rv"
variable in that method.  The fix below causes the SUNWspro build
to start up normally.

Not sure why this didn't break other platforms.


git-svn-id: svn://10.0.0.236/trunk@67292 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:37:45 +00:00
putterman%netscape.com
df2a2222ee r=mscott. Fixes 37296. can now add a new card to the preselected ab.
git-svn-id: svn://10.0.0.236/trunk@67291 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:33:44 +00:00
cata%netscape.com
ec7eec75f2 New pref added.
git-svn-id: svn://10.0.0.236/trunk@67290 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:31:27 +00:00
cata%netscape.com
61111423e6 Dynamic charset menu for mail edit.
git-svn-id: svn://10.0.0.236/trunk@67289 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:29:51 +00:00
erik%netscape.com
31884f29d1 changed names of interfaces (Language -> LanguageAtom)
git-svn-id: svn://10.0.0.236/trunk@67288 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:29:50 +00:00
alecf%netscape.com
504215c8d0 fix indentation on account tree
git-svn-id: svn://10.0.0.236/trunk@67287 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:29:00 +00:00
alecf%netscape.com
1b0e1d04b9 add cool headers to the top of each account manager page
git-svn-id: svn://10.0.0.236/trunk@67286 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:28:24 +00:00
slamm%netscape.com
ef73f85acf Fix declaration order to quiet build warning
git-svn-id: svn://10.0.0.236/trunk@67285 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:27:52 +00:00
beard%netscape.com
fdf82b170e added JSMap::setProperty()/getProperty(), and a prototype field.
git-svn-id: svn://10.0.0.236/trunk@67284 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:27:44 +00:00
alecf%netscape.com
99a12ff5ee fix some minor wizard bugs
git-svn-id: svn://10.0.0.236/trunk@67282 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:27:11 +00:00
cata%netscape.com
6b9dc1370a Label name changed.
git-svn-id: svn://10.0.0.236/trunk@67281 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:26:18 +00:00
pnunn%netscape.com
7480761ea9 bug#29643: add new method FlushImgBuffer(). pnunn. r:valeski
git-svn-id: svn://10.0.0.236/trunk@67280 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:25:53 +00:00
robinf%netscape.com
64b02c90bf *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@67279 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:25:11 +00:00
cata%netscape.com
dbdb1f0d16 Fixes on the Charset Menu.
git-svn-id: svn://10.0.0.236/trunk@67278 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:25:00 +00:00
pnunn%netscape.com
b60b36657a bug#29643: add new method. pnunn. r: valeski
git-svn-id: svn://10.0.0.236/trunk@67276 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:24:32 +00:00
ssu%netscape.com
79ba9f8985 cleaning up the install scripts. will not affect tinderbox builds.
git-svn-id: svn://10.0.0.236/trunk@67275 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:23:25 +00:00
cata%netscape.com
80ce30d28f Comment.
git-svn-id: svn://10.0.0.236/trunk@67274 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:23:09 +00:00
pnunn%netscape.com
a53e0ce472 bug#29643: check in for valeski. r: pnunn.
git-svn-id: svn://10.0.0.236/trunk@67273 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:22:15 +00:00
cata%netscape.com
2e230e0a06 Dynamic charset menu for mail compose.
git-svn-id: svn://10.0.0.236/trunk@67272 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:21:35 +00:00
alecf%netscape.com
44b3d09c53 fix for #37205 - switch back to "pop3" from "pop"
git-svn-id: svn://10.0.0.236/trunk@67271 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:21:12 +00:00
ddrinan%netscape.com
8fea996325 Changes for the NSS coreconf landing
git-svn-id: svn://10.0.0.236/trunk@67270 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:17:32 +00:00
ddrinan%netscape.com
2c454aff3e Initial checkin
git-svn-id: svn://10.0.0.236/trunk@67269 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:17:02 +00:00
tor%cs.brown.edu
658f8643db Include <time.h> so glib's definition of "struct tm" doesn't
confuse SUNWspro5.0.


git-svn-id: svn://10.0.0.236/trunk@67266 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:10:05 +00:00
nhotta%netscape.com
8a7f72f74b Added "mailnews.language_sensitive_font", now mailnews listen the font pref setting, bug 26182.
git-svn-id: svn://10.0.0.236/trunk@67265 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:08:15 +00:00
alecf%netscape.com
9644dca914 more skinning work, plus beautify the wizard header
git-svn-id: svn://10.0.0.236/trunk@67264 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:07:46 +00:00
alecf%netscape.com
62fbfe84f3 re-add strings that got whacked during prefwindow landing
git-svn-id: svn://10.0.0.236/trunk@67263 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:03:25 +00:00
evaughan%netscape.com
0fc64ebc07 Fixed merge error. Added rods performance code back in.
git-svn-id: svn://10.0.0.236/trunk@67262 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 21:01:57 +00:00
akkana%netscape.com
cd8643349b Better fix for 37059: initial space should be retained in selection-only case.
git-svn-id: svn://10.0.0.236/trunk@67261 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:57:03 +00:00
bienvenu%netscape.com
6355c6d7fa add AddResultElement as a search session interface
git-svn-id: svn://10.0.0.236/trunk@67260 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:57:01 +00:00
nhotta%netscape.com
49508d770e Changed forward code to use UTF-8 in order to be constant with string resources, bug 34666.
git-svn-id: svn://10.0.0.236/trunk@67259 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:55:44 +00:00
mstoltz%netscape.com
b715b7ce56 Fix bustage on Sun and HP compilers...was casting void* to PRInt16. Added intermediate cast.
git-svn-id: svn://10.0.0.236/trunk@67258 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:54:02 +00:00
pinkerton%netscape.com
ce6ac64380 Stupid mistake that broke text-only clipboard/drags.
git-svn-id: svn://10.0.0.236/trunk@67257 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:50:17 +00:00
wtc%netscape.com
a9cb65d0b6 Bugzilla bug #37272: inet_addr() should return -1 rather than assert on
failure.


git-svn-id: svn://10.0.0.236/trunk@67256 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:10:59 +00:00
ddrinan%netscape.com
ccb6bc6c04 Initial checkin
git-svn-id: svn://10.0.0.236/trunk@67255 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:06:16 +00:00
ddrinan%netscape.com
f8acc38c6a First cut of makefile.
git-svn-id: svn://10.0.0.236/trunk@67254 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 20:02:05 +00:00
donm%bluemartini.com
3bfbf244d5 bug 25010 need a way to edit groups
git-svn-id: svn://10.0.0.236/trunk@67252 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 19:35:51 +00:00
cyeh%bluemartini.com
d2f1bd5f4a slightly more paranoid database schema:.
made column 'program' in table 'versions' be not null, and unique.
optimally you would want a unique index on 'value' and 'program' but
indexes are not supported on datatype 'tinytext' until mysql 3.23


git-svn-id: svn://10.0.0.236/trunk@67251 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 19:12:17 +00:00
donm%bluemartini.com
655dcaff93 bug 30823, advanced querying didn't work for dependencies.
git-svn-id: svn://10.0.0.236/trunk@67250 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 17:44:24 +00:00
brade%netscape.com
5c5bf79cc4 fix some of the brokenness; don't always add a map tag; set customsize/original size appropriately; enable/disable some strings
git-svn-id: svn://10.0.0.236/trunk@67249 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 15:06:24 +00:00
brade%netscape.com
7381e8f2df bad parameter
git-svn-id: svn://10.0.0.236/trunk@67248 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 15:04:51 +00:00
jst%netscape.com
3eb684ae46 Trying to fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@67247 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:43:10 +00:00
slamm%netscape.com
7b47342c42 Fix declaration order to quiet build warning
git-svn-id: svn://10.0.0.236/trunk@67245 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:31:01 +00:00
slamm%netscape.com
d43ab7f0e7 Fix "comparison between signed and unsigned" build warning.
git-svn-id: svn://10.0.0.236/trunk@67244 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:25:47 +00:00
slamm%netscape.com
ca724c7a3b Ignore generated Makefile
git-svn-id: svn://10.0.0.236/trunk@67243 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:24:16 +00:00
slamm%netscape.com
fde7b0ab39 Ignore date header, gbdate.h
git-svn-id: svn://10.0.0.236/trunk@67242 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:23:26 +00:00
slamm%netscape.com
e5fa70cc9e Ignore binary, TestGtkEmbed
git-svn-id: svn://10.0.0.236/trunk@67241 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:23:08 +00:00
slamm%netscape.com
6a8941305f Add a Destruct() function to remove observers on onload.
git-svn-id: svn://10.0.0.236/trunk@67240 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:22:42 +00:00
slamm%netscape.com
338b007b44 Add folder icons for selected states.
git-svn-id: svn://10.0.0.236/trunk@67239 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:22:24 +00:00
slamm%netscape.com
6976fa7036 Fix up tree styles. Fixes icons, indenting, and twisties. Also, reduces amount of style matching that needs to be done. r=hyatt
git-svn-id: svn://10.0.0.236/trunk@67238 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:21:56 +00:00
chuang%netscape.com
6997f5902f bug 32297 D&D from Address Book to the Compose window, r=putterman
git-svn-id: svn://10.0.0.236/trunk@67237 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:21:53 +00:00
slamm%netscape.com
1d81a68608 Do not persist the open state of folders for now.Fix up tree styles. Fixes icons, indenting, and twisties. Also, reduces amount of style matching that needs to be done.
git-svn-id: svn://10.0.0.236/trunk@67236 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:20:14 +00:00
slamm%netscape.com
74fa6719e7 Replace start_batch() and end_batch() calls with refresh_all_sidebars() to clear up the intent of the code.
git-svn-id: svn://10.0.0.236/trunk@67235 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:19:26 +00:00
slamm%netscape.com
06d58f0ba8 Add label for popup menu panel picker.
git-svn-id: svn://10.0.0.236/trunk@67234 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:18:48 +00:00
slamm%netscape.com
71fa4356b6 Add a popup menu to include/exclude sidebar panels (bug 24035). The sidebar header that includes the menu is now an XBL widget. Add support for picking a specific default panel (requested by AIM, bug 36967).
git-svn-id: svn://10.0.0.236/trunk@67233 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:18:43 +00:00
slamm%netscape.com
1e345a4f8d Add a popup menu to include/exclude sidebar panels (bug 24035). The sidebar header that includes the menu is now an XBL widget. Also, rely on the toolbar styles more.
git-svn-id: svn://10.0.0.236/trunk@67232 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:18:17 +00:00
slamm%netscape.com
de04af660b Add bindings for sidebar header so it can be either a box or a splitter as needed.
git-svn-id: svn://10.0.0.236/trunk@67231 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:17:45 +00:00
slamm%netscape.com
271377ee26 Add bindings for treecell-indented-leaf and treecell-indented-folder. Fixes twisties in trees. Checkin for hyatt.
git-svn-id: svn://10.0.0.236/trunk@67230 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:17:33 +00:00
jst%netscape.com
aee07a0b08 Removing files that must be in another directory.
git-svn-id: svn://10.0.0.236/trunk@67229 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:11:07 +00:00
jst%netscape.com
7bfa430d82 Landing DOM Level 2 CSS and Views interfaces and implementation.
git-svn-id: svn://10.0.0.236/trunk@67228 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 14:05:36 +00:00
jst%netscape.com
e7caf2b7ff Landing DOM Level 2 CSS and Views interfaces and implementation.
git-svn-id: svn://10.0.0.236/trunk@67227 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 13:58:56 +00:00
brade%netscape.com
543030ffdf add/remove files for jst (+dom/src/base/nsJSAbstractView.cpp, +dom/src/coreDOM/nsJSDocumentStyle.cpp, +dom/src/coreDOM/nsJSDocumentView.cpp, +dom/src/coreDOM/nsJSMediaList.cpp, +dom/src/coreDOM/nsJSStyleSheetList.cpp, +dom/src/css/nsJSCSSRuleList.cpp, -dom/src/coreDOM/nsJSStyleSheetCollection.cpp, -dom/src/css/nsJSCSSStyleRuleCollection.cpp)
git-svn-id: svn://10.0.0.236/trunk@67226 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 13:57:45 +00:00
chuang%netscape.com
64c5f8ae06 Add record key for address book sync
git-svn-id: svn://10.0.0.236/trunk@67225 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 13:46:00 +00:00
jst%netscape.com
7ccf7a4264 Adding headers for new DOM Level 2 interfaces to the build, not used yet.
git-svn-id: svn://10.0.0.236/trunk@67224 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 12:30:42 +00:00
jst%netscape.com
da6a13cafb Adding new files to the makefiles, not part of the normal build.
git-svn-id: svn://10.0.0.236/trunk@67223 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 12:17:05 +00:00
brade%netscape.com
1ec6784799 latest changes to image map editor; hooking it up to image properties dialog (submitted by Dan Haddix; dan6992@hotmail.com)
git-svn-id: svn://10.0.0.236/trunk@67222 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 10:07:04 +00:00
brade%netscape.com
e1b306c969 latest changes to image map editor (submitted by Dan Haddix; dan6992@hotmail.com)
git-svn-id: svn://10.0.0.236/trunk@67221 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 10:04:43 +00:00
brade%netscape.com
194f03e569 latest changes to image map editor (submitted by Dan Haddix; dan6992@hotmail.com)
git-svn-id: svn://10.0.0.236/trunk@67220 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 09:50:23 +00:00
brade%netscape.com
a751ac33d0 forgot to add contributor Brian King (noticed by Dan Haddix)
git-svn-id: svn://10.0.0.236/trunk@67219 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 09:46:05 +00:00
alecf%netscape.com
c769141546 make stringbundles threadsafe now that their lifetime is longer than their initial creation
git-svn-id: svn://10.0.0.236/trunk@67218 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 09:37:05 +00:00
brade%netscape.com
0de9437246 add some missing entities
git-svn-id: svn://10.0.0.236/trunk@67217 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:58:46 +00:00
brade%netscape.com
97e4f097f9 insert function for FillInTooltip a=ben; remove duplicate function NewEditorFromDraft
git-svn-id: svn://10.0.0.236/trunk@67216 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:57:04 +00:00
brade%netscape.com
27775ce20f move tooltip into globalOverlay a=ben
git-svn-id: svn://10.0.0.236/trunk@67215 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:56:39 +00:00
brade%netscape.com
66b5416871 move popupset for tooltip out of navigator.xul into globalOverlay.xul
git-svn-id: svn://10.0.0.236/trunk@67214 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:54:42 +00:00
brade%netscape.com
608ab6a7b2 fix bug; set heightInput
git-svn-id: svn://10.0.0.236/trunk@67213 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:48:47 +00:00
sfraser%netscape.com
1e7af02cef Fix bug 36134 -- avoid extra release when cancelling a fired timer.
git-svn-id: svn://10.0.0.236/trunk@67212 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 08:37:06 +00:00
evaughan%netscape.com
2f0b8539e3 Fix for titledbox bugs
git-svn-id: svn://10.0.0.236/trunk@67211 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 07:28:19 +00:00
ftang%netscape.com
ea8691582c fix bug 34963. check patch from m_kato@ga2.so-net.ne.jp r=ftang
git-svn-id: svn://10.0.0.236/trunk@67210 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:22:24 +00:00
av%netscape.com
42fad10ef7 Cleaning up addref/release pairs for plugin instance
git-svn-id: svn://10.0.0.236/trunk@67209 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:19:26 +00:00
sfraser%netscape.com
f6a67ae209 Implemented new calls on the command manager which are callthroughs from the controller, with a context parameter.
git-svn-id: svn://10.0.0.236/trunk@67208 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:15:40 +00:00
sfraser%netscape.com
13c74256d0 Lots of new comments, added interface for nsIStateUpdatingControllerCommand, and added calls on the command manager which are callthroughs from the controller, with a context parameter.
git-svn-id: svn://10.0.0.236/trunk@67207 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:15:23 +00:00
rginda%netscape.com
7b16e426c0 initial add of debugger vapors
git-svn-id: svn://10.0.0.236/trunk@67206 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 06:04:02 +00:00
ben%netscape.com
c5f038a47f files I forgot to checkin with yesterday's prefwindow landing
git-svn-id: svn://10.0.0.236/trunk@67205 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:56:26 +00:00
beard%netscape.com
638f25e058 Fixing windows bustage in Linkage.
git-svn-id: svn://10.0.0.236/trunk@67204 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:56:20 +00:00
beard%netscape.com
d0406cbff4 fixing bug: js2.cpp:328: Internal compiler error in scope_die_for, at dwarf2out.c:7794 Please submit a full bug report. See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
git-svn-id: svn://10.0.0.236/trunk@67203 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:43:24 +00:00
beard%netscape.com
bad269e6ef testFactorial() now installs a Context::Listener to trace execution.
git-svn-id: svn://10.0.0.236/trunk@67202 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:37:00 +00:00
beard%netscape.com
7e863f9219 JSActivation -> Activation, JSLinkage --> Linkage. Linkage now implements the Context::Frame interface. Implemented simple Context::Listener support.
git-svn-id: svn://10.0.0.236/trunk@67201 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:35:07 +00:00
thayes%netscape.com
7750cbce77 Cleanup implementation of SDR code.
git-svn-id: svn://10.0.0.236/trunk@67200 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:31:19 +00:00
beard%netscape.com
b3a4a03169 Added Context::Frame, Context::Listener abstract classes. Initial support for debugger.
git-svn-id: svn://10.0.0.236/trunk@67199 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:29:35 +00:00
rods%netscape.com
7ec2dc0089 added white-space:pre to button rule so whitespace doesn't get stripped from the label of a button
b=37193


git-svn-id: svn://10.0.0.236/trunk@67198 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:17:39 +00:00
ssu%netscape.com
dec4d7bdae fixing bug #7478. We now have an uninstaller for the installer on the Windows platform. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@67197 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:04:21 +00:00
ssu%netscape.com
983d11bcde fixing bug #7478. We now have an uninstaller for the installer on the windows platform (code is cross platform).
git-svn-id: svn://10.0.0.236/trunk@67196 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 05:02:00 +00:00
evaughan%netscape.com
4d77b521e8 Removed friend.
git-svn-id: svn://10.0.0.236/trunk@67195 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:57:31 +00:00
ssu%netscape.com
487e0aeb4c initial checkin for files to fix bug #7478. Not part of any build yet.
git-svn-id: svn://10.0.0.236/trunk@67194 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:53:06 +00:00
ducarroz%netscape.com
d7c781880d Fix for bug 37202. New created menulist must have a item pre-selected.
git-svn-id: svn://10.0.0.236/trunk@67193 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:36:48 +00:00
nhotta%netscape.com
c845c03828 Change to use NS_IMPL_THREADSAFE_ISUPPORTS, a patch from sspitzer@netscape.com, bug 37035.
git-svn-id: svn://10.0.0.236/trunk@67192 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:25:22 +00:00
nhotta%netscape.com
38c81895ec Fixed typo in the property, contributed by tenthumbs@cybernex.net, bug 36938.
git-svn-id: svn://10.0.0.236/trunk@67191 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:24:42 +00:00
suresh%netscape.com
c9f8b37b94 fix for 33131. r=putterman
git-svn-id: svn://10.0.0.236/trunk@67190 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:09:07 +00:00
suresh%netscape.com
b24800a195 fix for 31062. r=putterman
git-svn-id: svn://10.0.0.236/trunk@67189 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:03:11 +00:00
ftang%netscape.com
36700bd476 fix unicode conversion problem . Check in patch proposed by m_kato@ga2.so-net.ne.jp r=ftang
git-svn-id: svn://10.0.0.236/trunk@67188 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:01:23 +00:00
evaughan%netscape.com
ef7527364f 1) fixed warnings.
2) scrollbars only work with left mouse


git-svn-id: svn://10.0.0.236/trunk@67187 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:00:29 +00:00
ftang%netscape.com
356d730c55 add new method to case conversion so we can handle special casing ( SS or turiksh dotless I)
git-svn-id: svn://10.0.0.236/trunk@67186 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 04:00:22 +00:00
ftang%netscape.com
823c799e12 check in fix for 37106. r=ftang. patched proposed by m_kato@ga2.so-net.ne.jp
handle 0x5C properly by calling DBCSIsLeadByte function


git-svn-id: svn://10.0.0.236/trunk@67185 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:57:34 +00:00
ducarroz%netscape.com
212e488b3a Fix for bug 36425 and bug 32224. Avoid to fire an assert in a legitimate case and make signature working again. R=rhp
git-svn-id: svn://10.0.0.236/trunk@67184 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:57:12 +00:00
anthonyd%netscape.com
e88fa00856 r: mjudge
bug fix for 34397, broken IME selection


git-svn-id: svn://10.0.0.236/trunk@67183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:54:21 +00:00
sspitzer%netscape.com
e0ba658641 if you double click a file, open it. patch from dshahbaz@ucla.edu. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@67182 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:50:59 +00:00
mstoltz%netscape.com
1aebd93c62 Fixes for 27010, 32878, and 32948.
git-svn-id: svn://10.0.0.236/trunk@67181 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:50:07 +00:00
waterson%netscape.com
53f13b1aba Remove assertions so that you can set properties on XUL elements.
git-svn-id: svn://10.0.0.236/trunk@67180 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:49:39 +00:00
rods%netscape.com
4ec6397d6c Changing notify from false to true for AppendChildTo in SetText
this is where the block doesn't have any children and a text element gets
created for it.
b=36900, r=pollmann


git-svn-id: svn://10.0.0.236/trunk@67179 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:48:58 +00:00
waterson%netscape.com
3138935719 Remove XIF assertions. akk and mjudge say this is ok.
git-svn-id: svn://10.0.0.236/trunk@67178 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:47:15 +00:00
ftang%netscape.com
e060485bad fix 23705. r=pavlov change to unicodePath from path for nsILocalFile
git-svn-id: svn://10.0.0.236/trunk@67177 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:46:30 +00:00
cls%seawood.org
cdbaa6ac84 Made BeOS use the nsRenderingContextImpl class as the gtk builds do.
git-svn-id: svn://10.0.0.236/trunk@67176 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:43:45 +00:00
sspitzer%netscape.com
3c74221438 stop gap fix for #37202
git-svn-id: svn://10.0.0.236/trunk@67175 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 03:26:59 +00:00
hyatt%netscape.com
437fe892cc fix menus.
git-svn-id: svn://10.0.0.236/trunk@67174 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 02:27:56 +00:00
danm%netscape.com
70cc20384f use preference for browser chrome url (aka navigator.xul). bug 31867
git-svn-id: svn://10.0.0.236/trunk@67173 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 02:25:28 +00:00
hyatt%netscape.com
e1a2918851 making menus 30-40% faster.
git-svn-id: svn://10.0.0.236/trunk@67172 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 02:21:47 +00:00
akkana%netscape.com
00fbe97972 The mInWhitespace fix broke the automated tests -- need to find another solution
git-svn-id: svn://10.0.0.236/trunk@67171 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 02:21:41 +00:00
mjudge%netscape.com
8b0c5ad03e small change bad return type. use assign with conversion
git-svn-id: svn://10.0.0.236/trunk@67170 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 02:03:07 +00:00
mjudge%netscape.com
d4488f8071 strange corruptness
git-svn-id: svn://10.0.0.236/trunk@67169 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:58:34 +00:00
akkana%netscape.com
fe3c0b3f4a Backing out previous change -- wasn't ready. a=mjudge
git-svn-id: svn://10.0.0.236/trunk@67168 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:58:28 +00:00
dougt%netscape.com
a58aa50a52 Fixes problems in local file where getting a parent of a non-existant file did not work.
Fixes a problem if you tried to create a folder and it parents did not exist. 
Fixes a problem if you had a initialized with a FSSpec which was not resolved complete and you tried to add a relative path.
Fixing nsInstallFile to use nsIFile:: enums insteads of numbers.

r=sgehani, a=leaf


git-svn-id: svn://10.0.0.236/trunk@67167 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:50:24 +00:00
cyeh%bluemartini.com
7a7b83408f better implementation of realnames support. remove overhead of two sql
calls from bug_form.


git-svn-id: svn://10.0.0.236/trunk@67166 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:44:28 +00:00
beard%netscape.com
8a6abe2247 JSFrame -> JSLinkage, using explicit linked list rather than a stack.
git-svn-id: svn://10.0.0.236/trunk@67165 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:42:00 +00:00
beard%netscape.com
87e47c8e04 removed intentionally private JSActivation/JSFrame types. The debugger should be able to ask questions of the interpreter to obtain this information.
git-svn-id: svn://10.0.0.236/trunk@67164 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:39:56 +00:00
wtc%netscape.com
e5b434bb22 Bugzilla bug #36818: fixed bugs in PR_WaitCondVar, PR_NotifyAllCondVar,
and PR_Interrupt.  Thanks to justin morey <justin@68k.org> for the bug
report and the patch.
Modified files: btcvar.c, btthread.c


git-svn-id: svn://10.0.0.236/trunk@67162 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:31:48 +00:00
mjudge%netscape.com
3cd9a051da making string conversions explicit. scc
git-svn-id: svn://10.0.0.236/trunk@67161 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:13:55 +00:00
danm%netscape.com
81b801ff58 define new preference for the browser xul URL. bug 31867
git-svn-id: svn://10.0.0.236/trunk@67160 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:10:10 +00:00
bienvenu%netscape.com
52ce9ad555 fix linux bustage
git-svn-id: svn://10.0.0.236/trunk@67159 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:10:01 +00:00
bienvenu%netscape.com
2b4f0cb001 fix linux build problem
git-svn-id: svn://10.0.0.236/trunk@67158 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:08:05 +00:00
pinkerton%netscape.com
4470c606aa implement accepting drops of files onto mozilla.
git-svn-id: svn://10.0.0.236/trunk@67157 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:04:13 +00:00
bienvenu%netscape.com
f2b884d22d more work on news search
git-svn-id: svn://10.0.0.236/trunk@67156 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:04:11 +00:00
akkana%netscape.com
b2aefd93c7 Change Save File APIs in layout and editor to eliminate the specific
references to text and html and make them more general (take a mime type).
In the editor, prettyprint all output if editor.prettyprint_html is set.


git-svn-id: svn://10.0.0.236/trunk@67155 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:00:50 +00:00
jst%netscape.com
be1cc24626 Checking in DOM JS glue code for new DOM Level 2 interfaces, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67154 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:00:40 +00:00
bienvenu%netscape.com
7d91889298 turn off assertion for everyone but me
git-svn-id: svn://10.0.0.236/trunk@67153 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 01:00:33 +00:00
harishd%netscape.com
c51469a9f3 Fix for 36233, 36754, 36491, 36323
Make sure that DTD's WillBuildModel() is not
called multiple times,i.e.,we shouldn't leave auto-detect-status
unknown

r=rickg


git-svn-id: svn://10.0.0.236/trunk@67152 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:59:43 +00:00
pavlov%netscape.com
eff718a6ad fix warning
git-svn-id: svn://10.0.0.236/trunk@67151 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:58:55 +00:00
sfraser%netscape.com
98f2662236 Add some null checks to prevent crashes if calling GetControllerAt with an index that is too large.
git-svn-id: svn://10.0.0.236/trunk@67150 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:58:14 +00:00
bienvenu%netscape.com
a9d9e71802 more work on search, esp news
git-svn-id: svn://10.0.0.236/trunk@67149 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:55:47 +00:00
mjudge%netscape.com
f74ce25354 scc string fixes
git-svn-id: svn://10.0.0.236/trunk@67148 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:55:37 +00:00
jst%netscape.com
021f6306e8 Checking in DOM JS glue code for new DOM Level 2 interfaces, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67147 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:55:05 +00:00
akkana%netscape.com
3753603232 35961: Add missing keycodes for { } |
git-svn-id: svn://10.0.0.236/trunk@67146 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:54:53 +00:00
akkana%netscape.com
7c36399c11 36861: newlines after <a> tags were being ignored.
37059: initial space should be retained in selection-only case.


git-svn-id: svn://10.0.0.236/trunk@67145 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:54:19 +00:00
anthonyd%netscape.com
71597aa3c3 review: kmcclusk, mjudge
fix for invalid rootWidget in nsViewManager::GetWidgetBounds


git-svn-id: svn://10.0.0.236/trunk@67144 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:53:31 +00:00
pavlov%netscape.com
c3627050e1 fix hashtable lookup for xbl binding files to remove 15% of time paging up/down in mailnews r=waterson,hyatt
stop creating nsISupportsArrays and instead chain nsIXBLAttributeEntrys r=hyatt
remove unnecessary creation of atoms r=hyatt
(around 20% speedup to mailnews tree scrolling)


git-svn-id: svn://10.0.0.236/trunk@67143 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:50:48 +00:00
pavlov%netscape.com
e04f0e3062 add support for 'TEXT' atom
git-svn-id: svn://10.0.0.236/trunk@67142 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:50:37 +00:00
jst%netscape.com
8ddbd3a621 Adding new DOM Level 2 interfaces, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67141 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:43:24 +00:00
jst%netscape.com
a7adb85f49 Adding new DOM Level 2 interfaces, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67140 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:38:08 +00:00
jst%netscape.com
34e8837cf1 Adding new DOM Level 2 CSS interfaces CSSRuleList and CSSCharsetRule, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67138 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:32:52 +00:00
jst%netscape.com
7dfe8fb314 Adding new DOM Level 2 CSS interfaces MediaList and StyleSheetList, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@67137 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:27:59 +00:00
ruslan%netscape.com
887e77e885 More complete update to the previos check in. Don't even instatiate
the final listener as we're not using it anyway.


git-svn-id: svn://10.0.0.236/trunk@67136 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-26 00:11:30 +00:00
ruslan%netscape.com
20ec067c14 Don't fire OnStopRequest just yet when the channel gets Cancelled (until
the receiver learns how to handle it correctly), r=imoT, a=leaf. Used to
crash when following expedia link from msn.com


git-svn-id: svn://10.0.0.236/trunk@67135 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 23:59:25 +00:00
dougt%netscape.com
80dea51d4b changing to getFolder. r=dveditz
git-svn-id: svn://10.0.0.236/trunk@67134 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 23:01:37 +00:00
leaf%mozilla.org
87c638e169 backing out changes that keep mozilla mailnews from working without psm.
git-svn-id: svn://10.0.0.236/trunk@67133 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 22:47:44 +00:00
wtc%netscape.com
d0253ef8e5 Bugzilla bug #30902: added an alternative implementation of PR_AtomicSet
using cmpxchg in the comments.  Made PR_AtomicAdd a little more efficient.


git-svn-id: svn://10.0.0.236/trunk@67130 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 22:33:10 +00:00
jst%netscape.com
1f9c2013e5 Fixing a wallet crasher. a=leaf
git-svn-id: svn://10.0.0.236/trunk@67129 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 22:01:31 +00:00
wtc%netscape.com
c8d51401c5 In _PR_MD_ATOMIC_ADD, use the edx register instead of the ebx register.
git-svn-id: svn://10.0.0.236/trunk@67128 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:48:33 +00:00
wtc%netscape.com
048f25aa33 Bugzilla bug #37146: fixed the output of the test.
git-svn-id: svn://10.0.0.236/trunk@67127 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:40:49 +00:00
ducarroz%netscape.com
8228894768 Fix for bug 37119. We need to query the attribute "data" in order to handle correctly menulist. A=leaf
git-svn-id: svn://10.0.0.236/trunk@67126 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:32:17 +00:00
larryh%netscape.com
a408760231 BugZilla 32048 is realy 35408
git-svn-id: svn://10.0.0.236/trunk@67125 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:08:03 +00:00
donm%bluemartini.com
94c6c05b70 patch from bug 2178 applied and fix for versions of GD/Chart::Lines that won't
produce gifs.


git-svn-id: svn://10.0.0.236/trunk@67124 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 21:05:32 +00:00
dougt%netscape.com
d56e3fbe9f if components directory does not include any xpt files, we should not fail
autoregistration.  This caused the xpinstall stub installer to fail.
r=dveditz, a=leaf


git-svn-id: svn://10.0.0.236/trunk@67123 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 19:37:57 +00:00
ruslan%netscape.com
8e9abd5fa9 Fix 37084 (blocker), r=gagan
git-svn-id: svn://10.0.0.236/trunk@67122 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 19:11:26 +00:00
larryh%netscape.com
05abe12da0 BugZilla: 32048. WinGate bug. Use loopback address in PR_NewTCPSocketPair()
git-svn-id: svn://10.0.0.236/trunk@67121 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:54:17 +00:00
wtc%netscape.com
98b0948880 Removed 'nop' instructions that I accidentally added.
git-svn-id: svn://10.0.0.236/trunk@67120 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:23:56 +00:00
dougt%netscape.com
93f5201c5e missed commenting out two assertions which will cause mac and OS2 users
lots of pain.  r=brade, a=leaf.


git-svn-id: svn://10.0.0.236/trunk@67119 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 18:16:16 +00:00
robinf%netscape.com
14021a0f28 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@67118 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 17:46:16 +00:00
sspitzer%netscape.com
8594a4b43c fix the threadsafe assertion.
git-svn-id: svn://10.0.0.236/trunk@67117 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:56:59 +00:00
sgehani%netscape.com
c3b7bad14d * Fix build warnings
* Make MIW.mcp build with Universal Headers 3.3.1


git-svn-id: svn://10.0.0.236/trunk@67116 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:55:11 +00:00
sgehani%netscape.com
a4b9e133a4 Partial fix for nsIFile/Mac installer horkage [b=36784]
git-svn-id: svn://10.0.0.236/trunk@67115 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:43:58 +00:00
dcone%netscape.com
c8b7cfd884 Added the nsRenderingContextImpl for interface
git-svn-id: svn://10.0.0.236/trunk@67114 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:37:40 +00:00
brade%netscape.com
845b272d31 for DragDrop, call InsertFromDrop which will handle the drop for the appropriate flavors (as paste if appropriate)
git-svn-id: svn://10.0.0.236/trunk@67113 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:15:33 +00:00
brade%netscape.com
95c5ec2a22 factored paste so drop could use the common code; added InsertFromDrop, InsertFromTransferable, PrepareTransferable; r/tested=akkana; tested=jst
git-svn-id: svn://10.0.0.236/trunk@67112 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:15:04 +00:00
brade%netscape.com
a670cfd1c0 add methods for InsertFromDrop, PrepareTransferable, InsertFromTransferable; r=akkana
git-svn-id: svn://10.0.0.236/trunk@67111 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:14:48 +00:00
brade%netscape.com
b2e9ac0108 add method for InsertFromDrop; r=akkana
git-svn-id: svn://10.0.0.236/trunk@67110 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 14:14:42 +00:00
ftang%netscape.com
dd8e77ee54 fix 33862/33864. Use the Unicode version of method of nsILocalFile
so we can display non ASCII user name and file / directory correctly !!!!
thanks m_kato's help


git-svn-id: svn://10.0.0.236/trunk@67109 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 13:54:04 +00:00
dcone%netscape.com
4d69a44d7e Added a DrawPath method to nsRenderingContext, currenly does nothing.
git-svn-id: svn://10.0.0.236/trunk@67108 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 13:51:46 +00:00
ftang%netscape.com
447587b634 *eat* UTF-8 BOM which generated by Win2K NotePad so it won't confused parser.
bug 36914


git-svn-id: svn://10.0.0.236/trunk@67107 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 13:50:41 +00:00
cls%seawood.org
cca739156a Changed nsinstall to fail if the file to link against does not exist. Objdir build breakage should become more apparent when it happens. Thanks to Greg Noel <GregNoel@san.rr.com> for the patch.
git-svn-id: svn://10.0.0.236/trunk@67106 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 10:52:11 +00:00
cls%seawood.org
751835d768 Added dependency to real Makefile & config.status for targets passed to real Makefile.
git-svn-id: svn://10.0.0.236/trunk@67104 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 09:12:13 +00:00
hyatt%netscape.com
f8b2e9e3e2 Tweak menulist.
git-svn-id: svn://10.0.0.236/trunk@67103 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 08:38:12 +00:00
scc%netscape.com
87d165a120 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@67102 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 08:10:43 +00:00
jband%netscape.com
821ccde88b be less aggresive in shutdown cleanup to avoid shutdown crashes. See bug 37058 for an example stack.
git-svn-id: svn://10.0.0.236/trunk@67101 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 07:26:02 +00:00
cls%seawood.org
40f2f32adc The clobber objdir build didn't work because we forgot to create the objdir before the realclean
git-svn-id: svn://10.0.0.236/trunk@67100 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 07:21:40 +00:00
evaughan%netscape.com
ff486e57f1 1) StyleChange coelescing
2) Warning fixes
3) Table fixes


git-svn-id: svn://10.0.0.236/trunk@67099 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 07:10:48 +00:00
sspitzer%netscape.com
d44a8c6730 am I a man or am I a mouse? turn on the real subscribe dialog.
there are a lot of issues with it, but I'm working on them, and the
new subscribe dialog is no worse than the old one.


git-svn-id: svn://10.0.0.236/trunk@67098 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 07:10:33 +00:00
sspitzer%netscape.com
856ebf7b72 change to get -chat to work for the mac. still need a "Mozilla Chat" file.
git-svn-id: svn://10.0.0.236/trunk@67097 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 06:53:49 +00:00
sspitzer%netscape.com
20ce194071 get -chat to work on the mac.
git-svn-id: svn://10.0.0.236/trunk@67096 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 06:51:17 +00:00
sspitzer%netscape.com
2d897f5c60 implementing the chatzilla service that I promised rginda months ago.
now, -chat from the command line works and brings up chatzilla.
(only win32 and unix, until I tweak the mac build.)


git-svn-id: svn://10.0.0.236/trunk@67095 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 06:39:39 +00:00
hyatt%netscape.com
a9478c3941 landing debug rules
git-svn-id: svn://10.0.0.236/trunk@67094 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 06:35:28 +00:00
bryner%uiuc.edu
d505a018fe Reorganizing the mousewheel code, and in the process fixing bug 36886 and
working around bug 32344.  Also removing some old #ifdef code that is not
going to be used.


git-svn-id: svn://10.0.0.236/trunk@67093 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 06:25:43 +00:00
mscott%netscape.com
3126b8a1cd Bug #33156 --> implement real progress as a percentage of the document download.
git-svn-id: svn://10.0.0.236/trunk@67092 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:52:10 +00:00
mscott%netscape.com
5605b3ca71 Bug #33156 --> add a OnProgress handler
git-svn-id: svn://10.0.0.236/trunk@67091 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:51:04 +00:00
mscott%netscape.com
1800cd0e39 Bug #33156 --> finish new nsIWebProgress work --> implement real progress as a percentage of the document download.
git-svn-id: svn://10.0.0.236/trunk@67090 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:50:23 +00:00
leaf%mozilla.org
bc4d18dd88 Automated update
git-svn-id: svn://10.0.0.236/trunk@67089 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:45:15 +00:00
pavlov%netscape.com
4af9c6adc5 string api changes r=scc
git-svn-id: svn://10.0.0.236/trunk@67088 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:40:45 +00:00
alecf%netscape.com
9654203959 String bundle caching - cache the last 10 stringbundles created by the stringbundle service
git-svn-id: svn://10.0.0.236/trunk@67087 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:29:58 +00:00
jband%netscape.com
95a3361f4b make the component manager's AutoRegister call the interface info manager's AutoRegisterInterfaces
git-svn-id: svn://10.0.0.236/trunk@67086 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:11:30 +00:00
mjudge%netscape.com
95232e3018 fixing vc6.0 compiler bug. cant have static variable called "count" and compare it using "<". dont ask.
git-svn-id: svn://10.0.0.236/trunk@67085 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:09:49 +00:00
jband%netscape.com
2f6e580cf0 fix leak of nsIPref Service
git-svn-id: svn://10.0.0.236/trunk@67084 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:07:02 +00:00
jband%netscape.com
38efea7fb0 Remove use of nsSpecialSystemDirectory. r=dougt
git-svn-id: svn://10.0.0.236/trunk@67083 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 05:01:05 +00:00
jband%netscape.com
74a771526d release the threadcontextstack to avoid a shutdown leak
git-svn-id: svn://10.0.0.236/trunk@67082 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:59:21 +00:00
jband%netscape.com
c2ab972684 Cleanup at shutdown the JSContexts that xpconnect manages on a per thread basis. This should fix some shutdown leaks.
git-svn-id: svn://10.0.0.236/trunk@67081 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:57:32 +00:00
jband%netscape.com
7e8c6ecbdf fix to make the comment not lie
git-svn-id: svn://10.0.0.236/trunk@67080 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:52:30 +00:00
jband%netscape.com
f546b3427a Do something safe if this call fails
git-svn-id: svn://10.0.0.236/trunk@67079 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:50:49 +00:00
troy%netscape.com
2831676fb5 Reinstated clipping code which had been backed out because it caused
a problem for XUL layout. I added a workaround for the XUL problem


git-svn-id: svn://10.0.0.236/trunk@67078 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:43:11 +00:00
sspitzer%netscape.com
e47adc60ff fix spelling mistake. wrap printf with #ifdef DEBUG
git-svn-id: svn://10.0.0.236/trunk@67077 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:37:52 +00:00
ben%netscape.com
14eb1843f1 correct reference to invalid stylesheet
git-svn-id: svn://10.0.0.236/trunk@67076 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:25:21 +00:00
pinkerton%netscape.com
14a4e00b00 These files are now obsolete. See mozilla/embedding/browser/powerplant
git-svn-id: svn://10.0.0.236/trunk@67075 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:21:31 +00:00
ben%netscape.com
948abede5f fix for gigantic personal toolbar
git-svn-id: svn://10.0.0.236/trunk@67074 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:20:18 +00:00
ben%netscape.com
c8e146693e fix for XBL assertions on startup
git-svn-id: svn://10.0.0.236/trunk@67073 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:13:08 +00:00
waterson%netscape.com
f9bb1f98a0 Bug 34619. Fixed-size allocators for nsXULTemplateBuilder, try numero dos, with egcs fixed.
git-svn-id: svn://10.0.0.236/trunk@67072 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:11:53 +00:00
pinkerton%netscape.com
190c4f5552 adding ability to drag a file from the desktop into the content area.
git-svn-id: svn://10.0.0.236/trunk@67071 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:10:36 +00:00
pinkerton%netscape.com
cc18c1fadd preliminary support for dragging files from the desktop into mozilla. works on macos for now.
git-svn-id: svn://10.0.0.236/trunk@67070 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:10:35 +00:00
pinkerton%netscape.com
d1aa3a6521 adding a helper to create/init from an FSSpec.
git-svn-id: svn://10.0.0.236/trunk@67069 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 04:09:18 +00:00
beard%netscape.com
2483f6c208 changed Context constructor to take JSObject* not JSObject&, to be able to control lifetime a little more carefully.
git-svn-id: svn://10.0.0.236/trunk@67068 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:32:53 +00:00
beard%netscape.com
d94e75b843 warning removal
git-svn-id: svn://10.0.0.236/trunk@67067 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:28:41 +00:00
pavlov%netscape.com
8a5cb9e2c1 add rules for tree-cell-icon
git-svn-id: svn://10.0.0.236/trunk@67066 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:27:01 +00:00
pavlov%netscape.com
51fdc0b6f6 fix to use new tree rules
git-svn-id: svn://10.0.0.236/trunk@67065 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:25:13 +00:00
ben%netscape.com
d29e33541e another tweak
git-svn-id: svn://10.0.0.236/trunk@67064 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:10:15 +00:00
ben%netscape.com
40f87ec37c PrefWindow IV landing
git-svn-id: svn://10.0.0.236/trunk@67063 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:09:02 +00:00
sspitzer%netscape.com
844a6bd5a5 added files: mozilla/extensions/psm-glue/public/nsIPSMSocketInfo.idl
git-svn-id: svn://10.0.0.236/trunk@67060 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 03:00:29 +00:00
sspitzer%netscape.com
515793e89d added files: mozilla/extensions/psm-glue/public/nsISecretDecoderRing.idl
git-svn-id: svn://10.0.0.236/trunk@67059 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:58:50 +00:00
beard%netscape.com
253ee4158c fixing mac bustage (we do reference argc/argv, to initialize them to something sensible).
git-svn-id: svn://10.0.0.236/trunk@67058 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:58:30 +00:00
mwelch%netscape.com
18749490fd Bringing tip of PSM client lib up to date with changes from commercial tip
git-svn-id: svn://10.0.0.236/trunk@67057 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:57:11 +00:00
mwelch%netscape.com
d064e9f953 Bringing tip of PSM client lib up to date with commercial version
git-svn-id: svn://10.0.0.236/trunk@67056 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:55:21 +00:00
beard%netscape.com
9bf768a892 renamed not() -> complement() (not is a keyword in C++), implemented complement().
git-svn-id: svn://10.0.0.236/trunk@67055 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:55:08 +00:00
mwelch%netscape.com
e74dbfb386 Bringing client lib up to date
git-svn-id: svn://10.0.0.236/trunk@67054 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:53:28 +00:00
pavlov%netscape.com
cebb5b7cc0 change hit count to show hit percent
git-svn-id: svn://10.0.0.236/trunk@67053 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:50:55 +00:00
mwelch%netscape.com
d95327b2ac Bringing tip of PSM client library up to date
git-svn-id: svn://10.0.0.236/trunk@67052 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:49:38 +00:00
ben%netscape.com
1343dccaf5 update reference to dead file -> new file with shorter name
git-svn-id: svn://10.0.0.236/trunk@67051 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:46:31 +00:00
ben%netscape.com
7471870c68 truncating long filename for Mac, removing dead file
git-svn-id: svn://10.0.0.236/trunk@67050 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:45:06 +00:00
ben%netscape.com
261f7e75c3 removing dead file
git-svn-id: svn://10.0.0.236/trunk@67049 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:43:34 +00:00
ben%netscape.com
3aea6429c0 oops, file name too long for mac. shortening
git-svn-id: svn://10.0.0.236/trunk@67048 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:43:03 +00:00
cls%seawood.org
d5badb6d55 Replaced accidentally removed LDFLAGS to creation of shared libs.
git-svn-id: svn://10.0.0.236/trunk@67047 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:40:30 +00:00
ssu%netscape.com
9f6aa50f41 fixing bug #36958. No longer makes the installer require a reboot at the end if replacing file that are *not* in use.
git-svn-id: svn://10.0.0.236/trunk@67046 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:39:42 +00:00
sfraser%netscape.com
6aefc1e462 Just some doc updates, not in the build
git-svn-id: svn://10.0.0.236/trunk@67045 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:38:25 +00:00
ben%netscape.com
777caed0ef PrefWindow IV landing
git-svn-id: svn://10.0.0.236/trunk@67044 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:36:18 +00:00
jim_nance%yahoo.com
d30c827e39 Fix Tru64 bustage. r=blizzard
git-svn-id: svn://10.0.0.236/trunk@67043 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:22:51 +00:00
sfraser%netscape.com
93e478a51f First Checked In.
git-svn-id: svn://10.0.0.236/trunk@67042 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:18:30 +00:00
ben%netscape.com
a9305f1ecc PrefWindow IV landing
git-svn-id: svn://10.0.0.236/trunk@67041 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:17:38 +00:00
cls%seawood.org
17a91b92d9 Added --long-argument support for BeOS. Thanks to justin@68k.org for the patch.
git-svn-id: svn://10.0.0.236/trunk@67040 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:15:55 +00:00
cls%seawood.org
a92c463176 Build fixes for BeOS. Bug 36924 & bug 36926. Thanks to Justin Morey <justin@68k.org> for the patches.
git-svn-id: svn://10.0.0.236/trunk@67039 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:05:08 +00:00
ben%netscape.com
e7f81ce853 Prefwindow IV landing
git-svn-id: svn://10.0.0.236/trunk@67038 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 02:01:49 +00:00
pavlov%netscape.com
fa44636088 remove unused functions
git-svn-id: svn://10.0.0.236/trunk@67037 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:58:51 +00:00
dougt%netscape.com
8bce344ced Fixes:
35864 Convert nsSecureBrowserUIImpl to use new WebProgress interfa
35472 Lock does not change when going to a mixed frames site.
27104 [feature] No warning when sending insecure form data
28335 Forcing handshake on CMT_OpenSSLConnection for https connect
28418 Lock broken on https startup home page.
36814 nsPSMSocketInfo not thread safe
updated to pavlov's new directory picker.


git-svn-id: svn://10.0.0.236/trunk@67036 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:56:59 +00:00
cls%seawood.org
a36b712b81 Revert my objdir changes from this weekend.
git-svn-id: svn://10.0.0.236/trunk@67035 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:55:52 +00:00
mscott%netscape.com
4e97d4e4b7 when determining progress for a cache entry, use the content length
for the cache entry as the total max progress. This change gives us more accurate progress for loading
entries from the cache for http.


git-svn-id: svn://10.0.0.236/trunk@67034 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:52:24 +00:00
pavlov%netscape.com
3bd9fa2952 add ReportStats() to the gc cache destructor
git-svn-id: svn://10.0.0.236/trunk@67033 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:49:34 +00:00
mscott%netscape.com
c3461eec43 implement GetContentLength for a memory cache entry. This helps us report
progress for items coming out of the cache


git-svn-id: svn://10.0.0.236/trunk@67032 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:48 +00:00
morse%netscape.com
2cb284f6ab use thayes encryption routines
git-svn-id: svn://10.0.0.236/trunk@67031 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:35 +00:00
dougt%netscape.com
bf7163c089 checked in warren's patch to remove circular memory leak in directory service
removed strcmp'er in favor of atom compares.
added comments to nsFileSpec indicating that it is no longer supported.


git-svn-id: svn://10.0.0.236/trunk@67030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:02 +00:00
jefft%netscape.com
d6e0059bda fixed bug 17100 - [FEATURE] enabled partial message download for pop3
git-svn-id: svn://10.0.0.236/trunk@67029 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:48:00 +00:00
mscott%netscape.com
0235e1892f fix unnecessary assetions in viewer.
git-svn-id: svn://10.0.0.236/trunk@67028 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:46:39 +00:00
pinkerton%netscape.com
c072d340fe update use of clipboard apis. fix bug 36374.
git-svn-id: svn://10.0.0.236/trunk@67027 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:46:29 +00:00
mscott%netscape.com
eff72069e6 need to fake a onprogress change for the parent
docloader...Fix viewer crash by returning aChannel instead of the
doc channel.


git-svn-id: svn://10.0.0.236/trunk@67026 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:45:37 +00:00
danm%netscape.com
3db6ec44d3 add null check for target document while positioning popups. bug 35643
git-svn-id: svn://10.0.0.236/trunk@67025 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:44:53 +00:00
morse%netscape.com
896ae9275b use thayes encryption routijnes
git-svn-id: svn://10.0.0.236/trunk@67024 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:41:23 +00:00
sspitzer%netscape.com
4f98438af9 more checkins for the new subscribe dialog.
make it so only subscribable servers show up in the server picker.
make it so "newsgroup" turns to "folder" if subscribing to imap.
do the basic wiring to imap servers are hooked in.
clean up my css.


git-svn-id: svn://10.0.0.236/trunk@67023 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:30:30 +00:00
waterson%netscape.com
6619226328 Back out changes: they broke egcs.
git-svn-id: svn://10.0.0.236/trunk@67022 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:28:09 +00:00
ruslan%netscape.com
afed361fe5 WIP on 33508, 28890. Adjust response timeout up to 120 seconds by default
as well.


git-svn-id: svn://10.0.0.236/trunk@67021 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:27:30 +00:00
waterson%netscape.com
09208c6991 Bug 34619. Judicious use of fixed size allocators to reduce overhead.
git-svn-id: svn://10.0.0.236/trunk@67020 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:24:24 +00:00
sspitzer%netscape.com
621dbc460b for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@67019 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:22:15 +00:00
wtc%netscape.com
50696e13da Bugzilla bug #30902: use true atomic implementation of the NSPR atomic
routines on Linux on Intel x86.
Modified files: _linux.h, pr/src/md/unix/Makefile,
pr/src/md/unix/Makefile.in, pr/src/md/unix/objs.mk
Added file: os_Linux_x86.s


git-svn-id: svn://10.0.0.236/trunk@67018 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:22:14 +00:00
waterson%netscape.com
1122960544 Use fixed size arena allocator for element map.
git-svn-id: svn://10.0.0.236/trunk@67017 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:21:57 +00:00
ducarroz%netscape.com
f3b400f908 Fix for bug 36939. Autocomplete widget doesn't use anymore its own tag but instead, it's now a textfield with the attribute "autocomplete" set to true.
git-svn-id: svn://10.0.0.236/trunk@67016 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:21:56 +00:00
waterson%netscape.com
2a4ab1589e Clean up pool initialization.
git-svn-id: svn://10.0.0.236/trunk@67015 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:20:00 +00:00
waterson%netscape.com
53140ef64b Change from an array of sizes to a linked list so it can handle new sizes after initialization.
git-svn-id: svn://10.0.0.236/trunk@67014 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:18:56 +00:00
ducarroz%netscape.com
44ad071ea9 Fix for bug 22338, 27171, 36939 and part of bug 35038. Some UI and autocomplete cleanup.
git-svn-id: svn://10.0.0.236/trunk@67013 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:18:41 +00:00
gagan%netscape.com
49989bc6b0 Fixed bug 36831. Removed an accidental checkin of an assertion.
git-svn-id: svn://10.0.0.236/trunk@67012 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:18:26 +00:00
shaver%mozilla.org
29133d8264 Linux/m68k xptcall port from <Michael_Fedrowitz@gmx.net>
git-svn-id: svn://10.0.0.236/trunk@67011 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:15:51 +00:00
gagan%netscape.com
77bcb2946d First checkin of proxy auto config stuff.
git-svn-id: svn://10.0.0.236/trunk@67010 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:15:35 +00:00
brendan%mozilla.org
d9b006ed90 Final destroy-context must await racing GCs before freeing atom state (32525, r=jband).
git-svn-id: svn://10.0.0.236/trunk@67009 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:12:36 +00:00
shaver%mozilla.org
762347617a add CurrentItemInPlaceUTF8 to reduce startup alloc by 2.3M(!), r=brendan
git-svn-id: svn://10.0.0.236/trunk@67008 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:11:08 +00:00
jdunn%netscape.com
d89086daa8 Remove HP specific stanza. It is not needed and causes 11.00 tinderbox bustage
git-svn-id: svn://10.0.0.236/trunk@67007 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:10:28 +00:00
shaver%mozilla.org
abb7463552 replace GC cache with LRU linked-list thing. r=pavlov
git-svn-id: svn://10.0.0.236/trunk@67006 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-25 01:09:32 +00:00
brendan%mozilla.org
1bd1fa7328 Count allocations too; dump nodes ranked by mean allocation size.
git-svn-id: svn://10.0.0.236/trunk@67005 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 23:52:27 +00:00
dougt%netscape.com
f8f6b08b0c Adding xpcom.currentProcess
git-svn-id: svn://10.0.0.236/trunk@67004 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:54:04 +00:00
rogerl%netscape.com
61ae45d738 Fixes for handling missing params.
git-svn-id: svn://10.0.0.236/trunk@67003 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:40:53 +00:00
putterman%netscape.com
d5555765e3 Backing out troy's changes to fix various UI blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@67002 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:29:06 +00:00
dougt%netscape.com
ff1dd2ab65 Fixing tree blocker. nsInstallFolder did not return an error code when
it could not initialize itself.  This caused crashes and return values which
were not correct.  I also fixed a huge about of memory leaks for allocation
of strings that were never freed.  r=dveditz, a=leaf.


git-svn-id: svn://10.0.0.236/trunk@67001 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:23:44 +00:00
putterman%netscape.com
8237a54fdd Backing out troy's changes to fix various UI blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@67000 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:21:56 +00:00
putterman%netscape.com
97e6e61f3c Backing out troy's changes to fix various UI blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@66999 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:15:55 +00:00
putterman%netscape.com
a27f77816e backing out troy's changes to fix various ui not working blocker bugs.
git-svn-id: svn://10.0.0.236/trunk@66998 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 22:05:39 +00:00
rginda%netscape.com
4a6106e9f6 adding comments
git-svn-id: svn://10.0.0.236/trunk@66997 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 21:43:49 +00:00
rpallath%eng.sun.com
ee8dbcd916 modified README
git-svn-id: svn://10.0.0.236/trunk@66996 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 21:28:42 +00:00
rginda%netscape.com
f16150cd10 NotARegister check in GenericBranch::print()
git-svn-id: svn://10.0.0.236/trunk@66994 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 20:08:16 +00:00
norris%netscape.com
0a8316b7cf Patch from Matthias Radestock <rade@logee.com>:
Subject:
             JavaAdapter return type conversion
        Date:
             Wed, 19 Apr 2000 12:12:47 +0100
       From:
             Matthias Radestock <rade@logee.com>
 Organization:
             Logee
         To:
             norris@netscape.com
         CC:
             mccabe@netscape.com, beard@netscape.com, rogerl@netscape.com




Dear Rhino team,

When returning an array from a scripted Java object (i.e. a JS object
that implements a Java interface), no type conversion is performed, ie.
a NativeArray is returned instead of a Java array. Example:

Java:
interface Foo {
        public String[] boo();
        }

JS:
FooI = {
        boo: function() { return ["Boo"];}
        }
myFoo = new Packages.Foo(FooI);
myFoo.boo(); //==> breaks with a ClassCastException


Looking at the JavaAdapter code, there is no code for array conversion.
This is particularly bad because precisely such a conversion *does*
happen when calling a Java method from JS. So we end up with a
discrepancy.

See attachment for a patch to fix this and little test program. The
patch works by calling the coerceType function on NativeJavaObject,
which is the function responsible for doing the conversion when calling
from JS to Java. I've simplified the code so that this function gets
called for all non-primitive return type, not just arrays. There are
probably more efficient solutions but I'm not a Java bytecode hacker.


Matthias
PS: I didn't open a bug for this because I wasn't sure whether you guys
would agree that this is indeed a problem ;)





public interface JSReturnTest {

  public boolean returnBoolean();
  public char returnChar();
  public int returnInt();
  public String returnString();
  public org.mozilla.javascript.Scriptable returnScriptable();
  public Object returnObject();
  public boolean[] returnBooleanA();
  public char[] returnCharA();
  public int[] returnIntA();
  public String[] returnStringA();
  public org.mozilla.javascript.Scriptable[] returnScriptableA();
  public Object[] returnObjectA();
  public Object[][] returnObjectAA();
}




Index: JavaAdapter.java
===================================================================
RCS file: /cvsroot/mozilla/js/rhino/org/mozilla/javascript/JavaAdapter.java,v
retrieving revision 1.21
diff -r1.21 JavaAdapter.java
54c54,59
<
---
>
>     public static Object convertResult(Object result, String classname)
>     throws ClassNotFoundException {
>         return NativeJavaObject.coerceType(Class.forName(classname),
>                                            result);
>     }
467,474c472,474
<         } else  if (retType.equals(String.class)) {
<             cfw.add(ByteCode.INVOKESTATIC,
<                     "org/mozilla/javascript/Context",
<                     "toString", "(Ljava/lang/Object;)",
<                     "Ljava/lang/String;");
<             cfw.add(ByteCode.ARETURN);
<         } else if (retType.equals(Scriptable.class)) {
<             cfw.add(ByteCode.ALOAD_0);  // load 'this' to find scope from
---
>         } else {
>             String retTypeStr = retType.getName();
>             cfw.addLoadConstant(retTypeStr);
476,477c476,477
<                     "org/mozilla/javascript/Context",
<                     "toObject",
---
>                     "org/mozilla/javascript/JavaAdapter",
>                     "convertResult",
479,500c479,480
<                      "Lorg/mozilla/javascript/Scriptable;)",
<                     "Lorg/mozilla/javascript/Scriptable;");
<             cfw.add(ByteCode.ARETURN);
<         } else {
<             // If it is a wrapped type, cast to Wrapper and call unwrap()
<             cfw.add(ByteCode.DUP);
<             cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Wrapper");
<             // skip 3 for IFEQ, 3 for CHECKCAST, and 5 for INVOKEINTERFACE
<             cfw.add(ByteCode.IFEQ, 11);
<             cfw.add(ByteCode.CHECKCAST, "org/mozilla/javascript/Wrapper");
<             cfw.add(ByteCode.INVOKEINTERFACE,
<                     "org/mozilla/javascript/Wrapper",
<                     "unwrap", "()", "Ljava/lang/Object;");
<
<             // If Undefined, return null
<             cfw.add(ByteCode.DUP);
<             cfw.add(ByteCode.INSTANCEOF, "org/mozilla/javascript/Undefined");
<             // skip 3 for IFEQ, 1 for ACONST_NULL, 1 for ARETURN
<             cfw.add(ByteCode.IFEQ, 5);
<             cfw.add(ByteCode.ACONST_NULL);
<             cfw.add(ByteCode.ARETURN);
<
---
>                     "Ljava/lang/String;)",
>                     "Ljava/lang/Object;");
502,503c482
<             String retTypeStr = retType.getName().replace('.', '/');
<             cfw.add(ByteCode.CHECKCAST, retTypeStr);
---
>             cfw.add(ByteCode.CHECKCAST, retTypeStr.replace('.', '/'));



   testpatch.js

               Name:
                     testpatch.js
                Type:
                     JavaScript Program (application/x-javascript)
             Encoding:
                     7bit


git-svn-id: svn://10.0.0.236/trunk@66993 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 19:36:51 +00:00
rpallath%eng.sun.com
2801619f43 New Tests for getAlignment
git-svn-id: svn://10.0.0.236/trunk@66992 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 19:02:42 +00:00
rpallath%eng.sun.com
075e485b1c getAlignment tests for API -> LEFT
git-svn-id: svn://10.0.0.236/trunk@66991 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:58:18 +00:00
rpallath%eng.sun.com
b5b2879b1b GetAlignment API tests
git-svn-id: svn://10.0.0.236/trunk@66990 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:55:25 +00:00
rpallath%eng.sun.com
64d5ffefb9 New files for Killer app on Win32
git-svn-id: svn://10.0.0.236/trunk@66989 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:52:40 +00:00
despotdaemon%netscape.com
cffb8511e1 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66988 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:46:05 +00:00
despotdaemon%netscape.com
c2c1fb1540 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66987 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:41:41 +00:00
rginda%netscape.com
3bc6bc1635 quieting linux warnings
git-svn-id: svn://10.0.0.236/trunk@66986 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:41:05 +00:00
rpallath%eng.sun.com
2fd5307c2d Added README and BWTest.lst
Updated some test cases


git-svn-id: svn://10.0.0.236/trunk@66984 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 18:25:27 +00:00
brade%netscape.com
23edb20bda fixing build bustage; submitted by Philip.Blundell@pobox.com (a=granrose)
git-svn-id: svn://10.0.0.236/trunk@66982 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 15:42:15 +00:00
dveditz%netscape.com
b679a7a88e fixing clobber bustage
git-svn-id: svn://10.0.0.236/trunk@66981 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 15:03:47 +00:00
ftang%netscape.com
c936bf31e5 Change the implementation to use nsILocalFile as the first step to fix
non ASCII problem. We will change to use the unicode version of the method in the
near future. The unicode version is put in the comment for now. After we validate the
nsILocalFile version have no problem. We will switch to it's unicode version of method
r=dougt


git-svn-id: svn://10.0.0.236/trunk@66980 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 14:51:48 +00:00
dcone%netscape.com
4d7e55797e Round the stikewidth properly.. instead of truncation.
git-svn-id: svn://10.0.0.236/trunk@66979 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 14:32:58 +00:00
dveditz%netscape.com
a84476f045 First cut at chrome install
git-svn-id: svn://10.0.0.236/trunk@66978 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 13:53:38 +00:00
dveditz%netscape.com
a9932c06b7 added missing dependency
git-svn-id: svn://10.0.0.236/trunk@66977 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 13:36:06 +00:00
dcone%netscape.com
69a294ebad Adjusted the subscript height for the font.
git-svn-id: svn://10.0.0.236/trunk@66976 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 13:34:07 +00:00
jfrancis%netscape.com
612bfa299f lots of improvements to block transformations:
1) looks inside inlines for breaks;
2) fixes the "extra break when unlisting" bug
3) changing paragraph style to normal consistently gets breaks
4) any splitting needed occurs when blocks inserted
plus a lot of small bug fixes


git-svn-id: svn://10.0.0.236/trunk@66975 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 11:51:12 +00:00
rjc%netscape.com
e896317e7d Remove "category.rdf"... its been replaced with "search.rdf" which is now in the default profile directory.
git-svn-id: svn://10.0.0.236/trunk@66974 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 09:39:40 +00:00
rjc%netscape.com
904201e8bd When downloading new search engines/images, check HTTP status against 200 level success.
git-svn-id: svn://10.0.0.236/trunk@66973 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 08:49:59 +00:00
alecf%netscape.com
dca50080db fix strres js so that the string bundle service is retrieved via getService, not createInstance()
(otherwise there were 2 createinstances for every creation of a stringbundle!)


git-svn-id: svn://10.0.0.236/trunk@66972 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 08:04:06 +00:00
rickg%netscape.com
2831483a57 more WIP on strict DTD
git-svn-id: svn://10.0.0.236/trunk@66971 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 07:35:37 +00:00
tbogard%aol.net
2d18828b59 Added getContentDocShell to allow access to the browser docShell.
git-svn-id: svn://10.0.0.236/trunk@66970 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 06:31:30 +00:00
rickg%netscape.com
947aefeccf first pass (of many) to bring us into alignment with Strict DTD
git-svn-id: svn://10.0.0.236/trunk@66969 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 06:09:04 +00:00
dougt%netscape.com
354bfa7dc3 Adding critical check for null.
removing unneded assignment to temp var.


git-svn-id: svn://10.0.0.236/trunk@66968 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 06:08:48 +00:00
sspitzer%netscape.com
9770a6681b fix warnings, remove unused code.
git-svn-id: svn://10.0.0.236/trunk@66967 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:37:34 +00:00
sspitzer%netscape.com
b9ff1121ad fix for #14313, don't migrate on top of an existing directory.
git-svn-id: svn://10.0.0.236/trunk@66966 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:28:49 +00:00
scc%netscape.com
88d748c99a makings string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66965 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:19:20 +00:00
scc%netscape.com
cfa9b4dfd6 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66964 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:11:18 +00:00
tbogard%aol.net
3e9a277be7 Added comment for when to add win_start in just like the win_stop.
git-svn-id: svn://10.0.0.236/trunk@66963 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:06:51 +00:00
tbogard%aol.net
0c0a490183 Added new flag for a timed out net connection.
git-svn-id: svn://10.0.0.236/trunk@66962 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:03:49 +00:00
tbogard%aol.net
2b5d01facf Instead of getting the interface off the treeowner, do a GetInterface off the docShell to get a prompter.
git-svn-id: svn://10.0.0.236/trunk@66961 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 05:00:34 +00:00
scc%netscape.com
4338ace0cb making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66960 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:55:38 +00:00
scc%netscape.com
fc37d8e7c0 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66959 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:47:32 +00:00
joki%netscape.com
8aabc79a05 fixes for 5995, 7304, 10573, 22832, and 9668.
Changes to event handling to deal with reentrant events, cursor fixes, and return value fixes.


git-svn-id: svn://10.0.0.236/trunk@66958 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:41:27 +00:00
scc%netscape.com
9265e89295 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66957 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:36:57 +00:00
dcone%netscape.com
738deb408a Put in the Tiling call from the RenderingContextImpl.
git-svn-id: svn://10.0.0.236/trunk@66956 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:36:05 +00:00
waterson%netscape.com
f86157ef95 Bug 35815. Implement <bindings> for XUL templates.
git-svn-id: svn://10.0.0.236/trunk@66955 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 04:22:26 +00:00
conrad%ingress.com
9e250c6fea Made access paths within the CW folder more specific.
git-svn-id: svn://10.0.0.236/trunk@66954 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:49:08 +00:00
conrad%ingress.com
cc4bed5c7b In SetTopLevelWindow, no longer calling AddProgressListener. This is redundant because the call to nsIWebBrowser::SetTopLevelWindow already makes the chrome the progress listening parent. The redundancy makes each of the nsIWebProgressListener methods in the chrome get called an extra time.
git-svn-id: svn://10.0.0.236/trunk@66953 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:47:43 +00:00
bienvenu%netscape.com
52e94911b8 avoid cell api's, get yarn directly from column, performance win, r=waterson
git-svn-id: svn://10.0.0.236/trunk@66952 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:42:15 +00:00
conrad%ingress.com
0a0ca35bce Removed BeginDocumentLoad/EndDocumentLoad. This functionality is handled by OnStatusNetStart/OnStatusNetStop.
git-svn-id: svn://10.0.0.236/trunk@66951 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:40:53 +00:00
conrad%ingress.com
b6c53b9bc1 Removed implementation of nsIDocumentLoaderObserver. Its functionality is now handled by nsIWebProgressListener.
git-svn-id: svn://10.0.0.236/trunk@66950 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:37:55 +00:00
conrad%ingress.com
e622d7c794 1. Removed implementation of nsIDocumentLoaderObserver. Its functionality is now handled by nsIWebProgressListener.
2. Fixed OnStatusChange. More than one status bit could be set and it was not handling this.


git-svn-id: svn://10.0.0.236/trunk@66949 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:37:10 +00:00
dougt%netscape.com
e60b39313e Fix for bug 35751. Caching type and creator information for nsLocalFileMac. This is so that files can be created with a given type/creator tag after the initialization of the ifile.. r=warren and sfraser.
git-svn-id: svn://10.0.0.236/trunk@66948 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:24:49 +00:00
sspitzer%netscape.com
1aa6d91c9f fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@66947 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:15:52 +00:00
cata%netscape.com
cdcf3a48cf Fixing tree bustage.
git-svn-id: svn://10.0.0.236/trunk@66946 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 03:13:46 +00:00
cata%netscape.com
1dc75215d9 Menu code moved on new API.
git-svn-id: svn://10.0.0.236/trunk@66945 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 02:18:16 +00:00
joki%netscape.com
2ce6d1e219 Fix for bug 23373, allow prevention of context menu via mousedown handler
git-svn-id: svn://10.0.0.236/trunk@66944 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 02:07:06 +00:00
rginda%netscape.com
4ceded7c68 -- CHATZILLA CHANGES ONLY --
undoing damn's misplaced changes


git-svn-id: svn://10.0.0.236/trunk@66943 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 00:45:23 +00:00
rginda%netscape.com
aebe1cd818 -- CHATZILLA CHANGES ONLY --
checking in patch from Josh Gough, <exv@randomc.com>
muchas gracias!

irc.js
add whois, invite

utils.js
added map and mapObjFunc

chatzilla.xul
add cntxt menu for userlist

commands.js
hook up /away, op, deop, voice, devoice, echo, invite, and kick commands

hadlers.js
onload hack
whois, away, deop, op, voice, devoice, echo, invite, kick command implementations

static.js
more of the onload hack
addEventListener on toolbuttons

listbox.js
selection code

chatzilla.css
selicted list item style


git-svn-id: svn://10.0.0.236/trunk@66942 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-24 00:40:56 +00:00
pollmann%netscape.com
4845051437 Bug 36830: Revert a small part of the fix for bug 33203 that was breaking observer notification.
git-svn-id: svn://10.0.0.236/trunk@66941 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 23:54:29 +00:00
jband%netscape.com
2e1e95ace7 belt and suspenders check of WITH_SERVICE results
git-svn-id: svn://10.0.0.236/trunk@66940 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 23:04:40 +00:00
scc%netscape.com
3b642847fd making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66939 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 22:43:46 +00:00
scc%netscape.com
68bdfcbb24 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66938 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 22:25:52 +00:00
mstoltz%netscape.com
a8b220b370 Backing out changes until I can figure out why it's crashing on startup.
git-svn-id: svn://10.0.0.236/trunk@66937 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 21:25:39 +00:00
jband%netscape.com
22a08b511e checking in changes from Stefan Hanske <sh990154@mail.uni-greifswald.de> (who wrote the original version of the Linux ARM code)
git-svn-id: svn://10.0.0.236/trunk@66936 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 21:14:11 +00:00
mstoltz%netscape.com
85e8a5b8e2 Fixes for bugs 27010, 32878, 32948.
git-svn-id: svn://10.0.0.236/trunk@66935 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 20:30:29 +00:00
scc%netscape.com
293ca6c86b making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66934 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 19:55:29 +00:00
attinasi%netscape.com
ce64bdd8ed Removed warnings: very basic changes
git-svn-id: svn://10.0.0.236/trunk@66933 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 19:06:37 +00:00
scc%netscape.com
21b4d298b9 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66932 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 19:04:37 +00:00
cls%seawood.org
edfdaaa3a8 General cleanup of the shared library rules.
Quick fix for bug #36844.
Since people kept forgetting to wrap SHARED_LIBRARY_LIBS inside MKSHLIB_FORCE_ALL & MKSHLIB_UNFORCE_ALL pairs, we now handle it in rules.mk.  Same goes for making $(SHARED_LIBRARY) dependent upon $(SHARED_LIBRARY_LIBS).


git-svn-id: svn://10.0.0.236/trunk@66931 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:48:04 +00:00
rhp%netscape.com
caffd950d8 Disable the add to address book - Bug #29436 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@66930 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:40:58 +00:00
alecf%netscape.com
69cacb25db switch to using attributes instead of Get/SetMsgFolder
git-svn-id: svn://10.0.0.236/trunk@66929 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:36:03 +00:00
alecf%netscape.com
ae9065569d switch to nsString::IsSpace to avoid dependancies on xp_core.h
git-svn-id: svn://10.0.0.236/trunk@66928 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:32:22 +00:00
alecf%netscape.com
c50d657e80 switch to nspr types to reduce dependancies on xp_core.h, and fix a warning
git-svn-id: svn://10.0.0.236/trunk@66927 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:31:29 +00:00
alecf%netscape.com
b7e95a4b1e switch to nspr values to reduce dependancy on xp_core.h
git-svn-id: svn://10.0.0.236/trunk@66926 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 17:30:21 +00:00
cls%seawood.org
892351c1b5 Removing unused dependency upon nsappShellCIDs.h. Bug #24515. r=shaver
git-svn-id: svn://10.0.0.236/trunk@66925 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 16:08:55 +00:00
blizzard%redhat.com
aed9e69bf5 Fix for bug #31709. Make sure to initialize the return value so that targetListFromTransArr() won't return garbage if the array is empty. This fixes a crash when doing a ctrl-drag in mailnews with imap.
git-svn-id: svn://10.0.0.236/trunk@66924 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 15:40:01 +00:00
rickg%netscape.com
1baa2cd792 remove undesired warnings
git-svn-id: svn://10.0.0.236/trunk@66923 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 14:48:51 +00:00
scc%netscape.com
2500aea861 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66922 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 13:42:22 +00:00
scc%netscape.com
f5a0181745 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66921 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 11:54:43 +00:00
scc%netscape.com
9eb8099abc making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66920 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 11:37:44 +00:00
scc%netscape.com
c22a354196 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66919 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 11:12:53 +00:00
scc%netscape.com
77ff640a95 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66918 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 10:58:27 +00:00
scc%netscape.com
4f5712d057 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66917 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 09:29:12 +00:00
pavlov%netscape.com
3b74a6b1a4 changes to work with new string apis
git-svn-id: svn://10.0.0.236/trunk@66916 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 08:29:39 +00:00
shaver%mozilla.org
7d81715f23 show pointed-to symbol onmouseover, for easier scanning (r=brendan)
git-svn-id: svn://10.0.0.236/trunk@66915 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 07:13:19 +00:00
rjc%netscape.com
81704a0eb9 Package up files in "Search Plugins" (Mac) ["searchplugins" on other platforms]
git-svn-id: svn://10.0.0.236/trunk@66914 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 06:36:45 +00:00
rjc%netscape.com
02a0d377c6 Install search files into "$(DIST)Search Plugins" and "search.rdf" into default profile directory.
git-svn-id: svn://10.0.0.236/trunk@66913 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 06:34:52 +00:00
rjc%netscape.com
154f75f5af Use "Search Plugins" folder.
git-svn-id: svn://10.0.0.236/trunk@66912 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 06:33:35 +00:00
rjc%netscape.com
fd70d5b46c Place search files into "Search Plugins" folder.
git-svn-id: svn://10.0.0.236/trunk@66911 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 06:31:29 +00:00
pavlov%netscape.com
737b1b7d4e add typename to make linux compiler happy r=scc
git-svn-id: svn://10.0.0.236/trunk@66910 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 05:54:36 +00:00
sspitzer%netscape.com
c6bf74a308 use button, instead of titlebutton
git-svn-id: svn://10.0.0.236/trunk@66909 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 05:31:32 +00:00
sspitzer%netscape.com
cf356a17d2 missing the </RDF:RDF> tag. this was causing me to crash on exit.
git-svn-id: svn://10.0.0.236/trunk@66908 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 05:30:37 +00:00
sspitzer%netscape.com
067368fcf4 root the tree in the subscribe dialog after we are done building the datasource.
git-svn-id: svn://10.0.0.236/trunk@66907 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 05:18:23 +00:00
brendan%mozilla.org
2055088134 Add -f function-dump-filename option; try to keep its first table cell of reasonable width without depending on (broken in 4.x) css support.
git-svn-id: svn://10.0.0.236/trunk@66906 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 05:04:58 +00:00
troy%netscape.com
e5cd366545 Fixed CreateViewForFrame() to check for a block-level frame with
'overflow' set to 'hidden' and force the frame to have a view. This
way child frames with views are clipped correctly


git-svn-id: svn://10.0.0.236/trunk@66905 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:55:27 +00:00
pavlov%netscape.com
2db71ac58c clean up after we get the targets
git-svn-id: svn://10.0.0.236/trunk@66904 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:52:58 +00:00
rjc%netscape.com
3c4b952a02 Add ability to find search.rdf or "Search Plugins" directory.
git-svn-id: svn://10.0.0.236/trunk@66903 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:45:39 +00:00
rjc%netscape.com
7342779fa0 Add search.rdf
git-svn-id: svn://10.0.0.236/trunk@66902 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:43:44 +00:00
rjc%netscape.com
62f8b7af48 Enable ability to do a copy instead of an alias.
git-svn-id: svn://10.0.0.236/trunk@66901 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:40:42 +00:00
troy%netscape.com
a93d4ec8b6 Changed SyncFrameViewAfterReflow() to consider out-of-flow frames
as block-level as well. This covers the case where a floated or
absolutely positioned frame has its 'display' value set to 'inline'
and so we didn't recognise it as block-level


git-svn-id: svn://10.0.0.236/trunk@66900 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 04:33:23 +00:00
sspitzer%netscape.com
9053f6dc05 add this, for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@66899 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 03:59:18 +00:00
attinasi%netscape.com
f07445d22b Fixed PseudoStyle resolution for primary style context in ReResolveStyleContext: was passing child-content when it should be passing parent-content. r=pierre
git-svn-id: svn://10.0.0.236/trunk@66898 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 03:49:19 +00:00
rickg%netscape.com
0d6131fe26 enabling Strict DTD; r=harishd.
git-svn-id: svn://10.0.0.236/trunk@66897 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 03:28:18 +00:00
sspitzer%netscape.com
8bb327a403 give credit where credit is due.
git-svn-id: svn://10.0.0.236/trunk@66896 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 03:21:49 +00:00
ssu%netscape.com
ca5fa8f4c3 fixing bug #35872. xpinstall engine now correctly creates nested dirs more than 1 level deep. This problem could have been the cause of the brownser not launching from a clean install (which I have experienced) because files were not getting installed into their proper subdirs.
git-svn-id: svn://10.0.0.236/trunk@66895 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 02:09:17 +00:00
attinasi%netscape.com
3c5099c351 Added support for @charset in external stylesheets, as well as support for charset being set byt HTML document for parsing HTML style attributes in other charsets. r=ftang b=2870,28500
git-svn-id: svn://10.0.0.236/trunk@66894 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 02:01:40 +00:00
mscott%netscape.com
d5d50a4909 Some folks were confused about why we had AsyncOpen I put a comment saying this method is being
made obsolete and no one really implements it.


git-svn-id: svn://10.0.0.236/trunk@66893 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:45:21 +00:00
sspitzer%netscape.com
25aae9ee4e changes for subscribe. it needs to be general, not just for news, since imap
will use the subscribe dialog as well.

also, some minor changes, the humble beginnings of the hostinfo.dat support.


git-svn-id: svn://10.0.0.236/trunk@66892 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:19:51 +00:00
sspitzer%netscape.com
da9c33c2a4 add nsISubscribableServer to the build
git-svn-id: svn://10.0.0.236/trunk@66891 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:18:34 +00:00
sspitzer%netscape.com
1c3d617cb7 changes for subscribe. need this interface because subscribe is not news specific. (imap does it too.)
git-svn-id: svn://10.0.0.236/trunk@66890 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:15:04 +00:00
scc%netscape.com
c3ce8681aa Added an additional permitting and denying signatures for |NS_ConvertASCIItoUCS2|
git-svn-id: svn://10.0.0.236/trunk@66889 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:03:28 +00:00
hoa.nguyen%intel.com
3f42da3f71 Fixed a bug where the browser would die try to dlopen gtkxtbin
when loading a legacy plugin (on Linux.) This is still part of the
bug fix for #31012
-r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@66888 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 01:01:23 +00:00
troy%netscape.com
e90db6dfb9 Changes to bring clipping inline with upcoming CSS2 errata
git-svn-id: svn://10.0.0.236/trunk@66887 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 00:56:16 +00:00
sspitzer%netscape.com
8ca11b539e fix the indent regression in the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@66886 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-23 00:25:37 +00:00
sspitzer%netscape.com
c4fa627bce turn off gagan's assertion. #36831. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@66885 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:34:03 +00:00
scc%netscape.com
6bee853362 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66884 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:23:43 +00:00
mscott%netscape.com
d464cd0c36 Bug #33156 --> webshell no longer implements nsIProgressEventSink, the doc loader does.
it's getting smaller! *yeah*


git-svn-id: svn://10.0.0.236/trunk@66883 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:19:40 +00:00
mscott%netscape.com
83ea2e4cb1 Bug #33156 --> the doc loader now implements nsIProgressEventSink. Add this support to getInterface for the docshell.
git-svn-id: svn://10.0.0.236/trunk@66882 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:18:18 +00:00
mscott%netscape.com
0c02c5b5b3 help support the doc loader using the web progress listener.
git-svn-id: svn://10.0.0.236/trunk@66881 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:17:11 +00:00
sspitzer%netscape.com
bf8148d6b9 fix for #36663. make it so when you run a news://host/group url to autosubscribe, a new messenger window opens up. eventually I'll heed the 4.x pref for
this, so that it will open in an existing messenger window.


git-svn-id: svn://10.0.0.236/trunk@66880 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:16:45 +00:00
mscott%netscape.com
2693ece9ce Bug #33156 --> implment onChildStatusChanged AND progress notifications for the doc loader
through the web progress interfaces. In order to implement progress, the doc loader now implements
nsIProgressEventSink and receives events directly from the channels.


git-svn-id: svn://10.0.0.236/trunk@66879 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:16:31 +00:00
sspitzer%netscape.com
1d7271a722 project changes so that running a news://host/group url opens a new window.
git-svn-id: svn://10.0.0.236/trunk@66878 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 23:06:40 +00:00
mscott%netscape.com
3f5c264c10 These changes are actually valeski's. I'm checking them in for him. These changes are to make http
report proper progress to the consumer of the url. Before, http was reporting the socket's progress instead of
its own. That information wasn't very useful.

r=mscott


git-svn-id: svn://10.0.0.236/trunk@66877 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 22:40:40 +00:00
mscott%netscape.com
59e19b391e fix build breakage for windows and mac.
git-svn-id: svn://10.0.0.236/trunk@66876 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 21:47:01 +00:00
sspitzer%netscape.com
4f8303820f fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@66875 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 21:41:59 +00:00
hoa.nguyen%intel.com
1d58a77da7 Adding legacy plug-in support for Linux. These changes depend on a new gtkxtbin library.
This applies to bug #31012. r=blizzard


git-svn-id: svn://10.0.0.236/trunk@66874 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 20:50:22 +00:00
hoa.nguyen%intel.com
3d151d580d Adding lines to build the new gtkxtbin library for implementing legacy
plugin support on Linux.  This is part of bug #31012.
-r=blizzard


git-svn-id: svn://10.0.0.236/trunk@66873 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 20:45:12 +00:00
hoa.nguyen%intel.com
a04a3e539c Adding gtkxtbin library which allows Xt widgets inside a Gtk application.
This is part of a fix for bug #3102 to add legacy plug-in support on linux.
-r=blizzard


git-svn-id: svn://10.0.0.236/trunk@66872 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 20:39:38 +00:00
jband%netscape.com
fe6d89c828 a little safer
git-svn-id: svn://10.0.0.236/trunk@66871 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 19:21:18 +00:00
jband%netscape.com
4950cd0520 cleanup manifest line scanner - was reading one char beyond the end of the array
git-svn-id: svn://10.0.0.236/trunk@66870 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 19:13:39 +00:00
bienvenu%netscape.com
2010fd542a fix build warnings
git-svn-id: svn://10.0.0.236/trunk@66869 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:51:33 +00:00
sspitzer%netscape.com
7c22d40ddb adding this, will be used very soon for autosubscribe.
git-svn-id: svn://10.0.0.236/trunk@66868 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:45:02 +00:00
bienvenu%netscape.com
f3cfd36e26 fix build warnings
git-svn-id: svn://10.0.0.236/trunk@66867 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:42:51 +00:00
bienvenu%netscape.com
a1aca70ec6 fix build warning, set search session on url
git-svn-id: svn://10.0.0.236/trunk@66866 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:37:58 +00:00
brendan%mozilla.org
01a44c7e01 Comment improvements.
git-svn-id: svn://10.0.0.236/trunk@66865 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 18:36:10 +00:00
cata%netscape.com
95d27b85a2 New interface method.
git-svn-id: svn://10.0.0.236/trunk@66864 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 17:49:55 +00:00
bienvenu%netscape.com
bf4e728d7c add search session to factory
git-svn-id: svn://10.0.0.236/trunk@66863 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 17:44:45 +00:00
bienvenu%netscape.com
eb359f72b4 more work on search, including validity manager
git-svn-id: svn://10.0.0.236/trunk@66862 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 17:36:27 +00:00
cata%netscape.com
7c706435a1 Comments.
git-svn-id: svn://10.0.0.236/trunk@66861 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 17:26:54 +00:00
sspitzer%netscape.com
95352140f3 fix for bug #36832. twisty's class changed from "twisty" to "tree-cell-twisty".
git-svn-id: svn://10.0.0.236/trunk@66860 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 17:13:59 +00:00
sspitzer%netscape.com
62c10e8691 init the refcount.
git-svn-id: svn://10.0.0.236/trunk@66859 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 16:52:06 +00:00
cata%netscape.com
353221332f Adding new file to the build.
git-svn-id: svn://10.0.0.236/trunk@66858 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 16:38:50 +00:00
cata%netscape.com
c6ab27fb9c More test code.
git-svn-id: svn://10.0.0.236/trunk@66857 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 16:36:47 +00:00
cata%netscape.com
b012028df3 Cosmetic changes.
git-svn-id: svn://10.0.0.236/trunk@66856 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 16:35:10 +00:00
troy%netscape.com
ec619780c1 Slight performance improvement
git-svn-id: svn://10.0.0.236/trunk@66855 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 15:50:12 +00:00
jim_nance%yahoo.com
bfc3003957 Changed the version of the DEC C++ compiler we test for.
This should not affect systems not running Tru64 Unix


git-svn-id: svn://10.0.0.236/trunk@66854 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 11:01:07 +00:00
scc%netscape.com
1acc00c9d4 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66853 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 10:46:20 +00:00
scc%netscape.com
fe0f1e89f2 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66852 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 10:31:38 +00:00
tbogard%aol.net
5a9e9b10c1 Moved the implementation of AssignWithConversion to the cpp file since Linux and Windows didn't like it inline in the h file. r=scc
git-svn-id: svn://10.0.0.236/trunk@66851 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 09:17:20 +00:00
scc%netscape.com
22fed30c55 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66850 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 08:43:34 +00:00
scc%netscape.com
c594237017 Added a signature previously covered by |Assign(const nsStr&)|, now |Assign( const nsString& )|.
git-svn-id: svn://10.0.0.236/trunk@66849 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 08:36:28 +00:00
hangas%netscape.com
45eb2b82fd More progress on 19561 (converting AB to xul widgets)
git-svn-id: svn://10.0.0.236/trunk@66848 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 08:14:59 +00:00
hangas%netscape.com
19be5d0120 Fix to 34156 (using onkeypress handler on URL bar of browser window).
git-svn-id: svn://10.0.0.236/trunk@66847 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 07:16:17 +00:00
warren%netscape.com
5c00be008e admin -kb
git-svn-id: svn://10.0.0.236/trunk@66846 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 07:10:04 +00:00
hangas%netscape.com
0a036d94d6 Progress towards 19561 (making AB skinnable), fix to 36428 & 36268 bugs with html widgets not drawing in Card Edit dialog.
git-svn-id: svn://10.0.0.236/trunk@66845 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 07:04:15 +00:00
jband%netscape.com
3f9f054e71 fix bug 36805 - was leaking xptiInterfaceGuts by unconditionally overwriting a union
git-svn-id: svn://10.0.0.236/trunk@66844 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 06:30:46 +00:00
jband%netscape.com
b8b53007ad fix bug 36806 - leaking locks. Just plain sloppy!
git-svn-id: svn://10.0.0.236/trunk@66843 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 06:28:44 +00:00
ducarroz%netscape.com
2f2140c3b3 Fix for bug 20180. Since we use menulist instead of SELECT, we need to extract the identity key from the menuitem's id.
git-svn-id: svn://10.0.0.236/trunk@66842 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 05:41:15 +00:00
jband%netscape.com
f043572e9c hey! someone changed the progid for the zip reader, updating my copy of the progid. xptiZipLoader.cpp
git-svn-id: svn://10.0.0.236/trunk@66841 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 04:11:33 +00:00
ducarroz%netscape.com
ff1f5c17ea Fix for bug 16354. Land new autocomplete for mailnews
git-svn-id: svn://10.0.0.236/trunk@66840 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:30:45 +00:00
ducarroz%netscape.com
312811a5b0 Fix for bug 16354. Add autocomplete to the browser package
git-svn-id: svn://10.0.0.236/trunk@66839 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:30:21 +00:00
pollmann%netscape.com
2dae2dfd5c Bug 33203: Form submit observer changes for psm-glue; r=dougt
git-svn-id: svn://10.0.0.236/trunk@66838 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:29:50 +00:00
ducarroz%netscape.com
b480a0d782 Need to be able to parse AB directories without to have to open the AddressBook first. Needed by autocomplete search engine. R=candice
git-svn-id: svn://10.0.0.236/trunk@66837 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:29:44 +00:00
ducarroz%netscape.com
3c1bcc78ff Fix for bug 16354. Landing of the new autocomplete in mailnews
git-svn-id: svn://10.0.0.236/trunk@66836 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:29:36 +00:00
ducarroz%netscape.com
4a5ac72a7d Fix for bug 16354. Landing of the new autocomplete in mailnews. R=mscott
git-svn-id: svn://10.0.0.236/trunk@66835 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:29:35 +00:00
ducarroz%netscape.com
14bbfae9a4 Fix for bug 16354. Landing of the new autocomplete in mailnews, R=mscott
git-svn-id: svn://10.0.0.236/trunk@66834 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:28:46 +00:00
ducarroz%netscape.com
9f5325c5ae Fix for bug 16354. Change component prog id name to be more generic
git-svn-id: svn://10.0.0.236/trunk@66833 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:28:45 +00:00
pollmann%netscape.com
ba50a67219 Bug 34416: Use CHROME vars in Makefile.in instead of overwriting install targets (GTK only); r=harishd
git-svn-id: svn://10.0.0.236/trunk@66832 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 03:01:11 +00:00
pavlov%netscape.com
831fb8d0dc fix bug where we copied pasted ascii data as unicode
git-svn-id: svn://10.0.0.236/trunk@66831 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 02:49:33 +00:00
pollmann%netscape.com
1b74be46d0 Bug 34416: Use CHROME vars in makefile.win instead of overwriting install targets (WIN32 only); r=harishd
git-svn-id: svn://10.0.0.236/trunk@66830 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 02:48:56 +00:00
edburns%acm.org
8f4e04f72f a=edburns
bug: pressing BACK hangs webclient

Files touched

File: DocumentLoadEvent.java	Status: Locally Modified

Made the constants final so they can be used in a
switch statement

File: EMWindow.java    	Status: Locally Modified

Modified eventDispatched() so it doesn't call any webclient
events.  This was causing the hang.  Took advantage of
the newly implemented ability to pass a string from the
mozilla event handler into java.


File: DocumentLoaderObserverImpl.cpp	Status: Locally Modified

Create a jstring from the url in the OnStartDocumentLoad event.
Pass it on to java.

File: jni_util.cpp	Status: Locally Modified

Wrapped JNU_GetEnv in BAL stuff so it works from Star.

File: WebclinetEventListener.java	Status: Locally Modified

Added comment to eventDispatched.


git-svn-id: svn://10.0.0.236/trunk@66829 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 02:01:20 +00:00
cmanske%netscape.com
c7c27b019e Very simple UI fix - replaced titledbutton with button for Plain Text Editor
git-svn-id: svn://10.0.0.236/trunk@66828 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:49:00 +00:00
alecf%netscape.com
eb357e27cf missing object file from makefile
git-svn-id: svn://10.0.0.236/trunk@66827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:31:55 +00:00
gagan%netscape.com
97d633db2b Fixing a bad merge. Reordered WriteRequest with ReleaseTransport in OnStopRequest.
git-svn-id: svn://10.0.0.236/trunk@66826 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:23:29 +00:00
sfraser%netscape.com
5ea79431e4 Add nsIMsgSearchScopeTerm.idl for alecf.
git-svn-id: svn://10.0.0.236/trunk@66825 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:21:20 +00:00
akkana%netscape.com
42ebe8609c 36778: Contribution from Ryan Cassin (kidteckco@hotmail.com) to fix toolbar and titlebar in plaintext editor
git-svn-id: svn://10.0.0.236/trunk@66824 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:12:52 +00:00
jband%netscape.com
0d66118294 fix debug message
git-svn-id: svn://10.0.0.236/trunk@66823 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:07:39 +00:00
jband%netscape.com
7511ada4ea fix a dangerous looking (but harmless) warning on Mac opt
git-svn-id: svn://10.0.0.236/trunk@66822 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 01:06:42 +00:00
alecf%netscape.com
a008eb602c fix class casting bustage
git-svn-id: svn://10.0.0.236/trunk@66821 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:57:48 +00:00
dbaron%fas.harvard.edu
a37963e5fe Prevent selector matching from incorrectly failing due to greedy matching. b=24031 r=pierre@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66820 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:47:18 +00:00
alecf%netscape.com
f6c785cc57 added files: mozilla/mailnews/base/search/src/nsMsgSearchValue.cpp
git-svn-id: svn://10.0.0.236/trunk@66819 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:44:42 +00:00
alecf%netscape.com
f327f45176 fix casting bustage
git-svn-id: svn://10.0.0.236/trunk@66818 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:42:50 +00:00
gagan%netscape.com
7265366ff3 Small HTTP api change.
git-svn-id: svn://10.0.0.236/trunk@66817 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:40:21 +00:00
dbaron%fas.harvard.edu
0dc8ee1f48 Make XPCOM_MEM_LOG_OBJECTS work with alloc logging (before it worked only with refcount logging). r=waterson@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66816 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:40:13 +00:00
alecf%netscape.com
183da7204a added files: mozilla/mailnews/base/search/src/nsMsgSearchValue.cpp
git-svn-id: svn://10.0.0.236/trunk@66815 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:38:46 +00:00
alecf%netscape.com
c5d146facc oops, fix IDL bustage
git-svn-id: svn://10.0.0.236/trunk@66814 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:38:29 +00:00
alecf%netscape.com
9550ce0fb3 added files: mozilla/mailnews/base/search/public/nsIMsgSearchValue.idl
git-svn-id: svn://10.0.0.236/trunk@66813 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:36:36 +00:00
gagan%netscape.com
50ad50522f Fixed bug 23480. Changed the PostDataStream api to be UploadStream api to allow PUT requests as well.
Fixed bug 32560. Added AsyncWrite implementation for HTTP.
Fixed bug 33842. Some of the earliar code that ruslan had landed broke the status updating for proxy cases.
Fixed bug 36602. Added an api to add (and remove) entries to the "no proxy for" array. Also changed the array to be constructed once (and hence parsed once) instead on each call to ExamineForProxy.
Part fix for bug 31174. Added HTTPS proxy settings.
And finally also un"ruslan"ized the HTTP code :)


git-svn-id: svn://10.0.0.236/trunk@66812 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:35:05 +00:00
alecf%netscape.com
e15aa9b9bf make a whole bunch of search/filter stuff scriptable.
this included adding a new nsIMsgSearchValue interface, and renaming some of the IDL typedefs to be consistent with each other.


git-svn-id: svn://10.0.0.236/trunk@66811 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:34:39 +00:00
jim_nance%yahoo.com
fb4610a106 Fix for 34949. Problem with 64 bit pointers.
r=wtc


git-svn-id: svn://10.0.0.236/trunk@66810 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:32:03 +00:00
av%netscape.com
627d164622 Fixing memory leak during start up, #35912
git-svn-id: svn://10.0.0.236/trunk@66809 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-22 00:04:24 +00:00
alecf%netscape.com
0eee15699c - fixed missing html:div tag in am-main.xul
- fix for #36771 - document.controls stopped containing hidden form elements - still the right fix because document.controls likely going away
- make the IMAP advanced dialog skinnable


git-svn-id: svn://10.0.0.236/trunk@66808 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:51:19 +00:00
cls%seawood.org
b5fa37707b Added separate list to distinguish between trees to be tracked and those to be reported. And it works this time too. Trees that are not reported by default can be seen via 'mozbot trees name-of-not-reported-tree'.
git-svn-id: svn://10.0.0.236/trunk@66805 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:47:20 +00:00
rjc%netscape.com
6073e32105 New Jobs image file from Netcenter.
git-svn-id: svn://10.0.0.236/trunk@66804 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:39:48 +00:00
rjc%netscape.com
dcdf52232d New Jobs search file from Netcenter.
git-svn-id: svn://10.0.0.236/trunk@66803 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:39:34 +00:00
cyeh%bluemartini.com
e11f7e6c73 added Windows NT blurb to disclaimer section.
git-svn-id: svn://10.0.0.236/trunk@66802 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:32:25 +00:00
tbogard%aol.net
fd2d55735d Removed the static Create method since the generic factory handles that. Changed GetStringBundle to GetPromptAndStringBundle since most people are always wanting to get both the prompt and the string bundle. Removed EnsureGlobalHistory. Global History is now instantiated on startup.
git-svn-id: svn://10.0.0.236/trunk@66801 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:32:11 +00:00
tbogard%aol.net
cbdaeff8a6 Creation of the docshell now uses the generic factory rather than it's own private Create method for instantiation of the nsDocShell class.
git-svn-id: svn://10.0.0.236/trunk@66800 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:31:42 +00:00
tbogard%aol.net
16119f1693 Removed some old ifdef 0 code. Removed some unused variables. Some cleanup to OnStart and OnEndDocumentLoad to get ready to move them over to the progress interface code.
git-svn-id: svn://10.0.0.236/trunk@66799 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:31:41 +00:00
tbogard%aol.net
5ccd89354b Made the constructor public to allow the generic factory to be used for creation. Removed the static Create. Removed EnsureGlobalHistory. Global History is now instantiated on startup. Changed GetStringBundle to GetPromptAndStringBundle since most people are always wanting to get both the prompt and the string bundle.
git-svn-id: svn://10.0.0.236/trunk@66798 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:31:40 +00:00
pavlov%netscape.com
3f2945e1df remove unused variables and store the clipregion in an nsCOMPtr
git-svn-id: svn://10.0.0.236/trunk@66797 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:28:23 +00:00
davidm%netscape.com
e93b33a996 32956 Triggering same xpi file in same session fails (mem cache on
r = ruslan


git-svn-id: svn://10.0.0.236/trunk@66796 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:23:59 +00:00
tbogard%aol.net
2cb76151cf Fixed the duplicates in the enum.
git-svn-id: svn://10.0.0.236/trunk@66795 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:23:17 +00:00
racham%netscape.com
51c188925f Adding the updated mcp file
git-svn-id: svn://10.0.0.236/trunk@66794 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:23:06 +00:00
sgehani%netscape.com
358986567c Make directory creation failure a non-fatal error.
git-svn-id: svn://10.0.0.236/trunk@66793 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:12:50 +00:00
pavlov%netscape.com
21ece4e459 remove unused member variable
git-svn-id: svn://10.0.0.236/trunk@66792 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:06:45 +00:00
kmcclusk%netscape.com
747d8897bf Offscreen drawing surface now shrinks and expands in discrete increments of the screen size. b=20741 r=rods@netscape.com. tested on WIN32, Mac, Linux
Applied second half of patch to prevent invisible views from being painted (patch from Tomi.Leppikangas@oulu.fi) b=34466 r=rods@netscape tested on WIN32, Mac, Linux


git-svn-id: svn://10.0.0.236/trunk@66791 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 23:02:02 +00:00
sgehani%netscape.com
786480f959 * Fix error mapping off-by-one for error strings.
* Hide cancel button once download/installation begins.


git-svn-id: svn://10.0.0.236/trunk@66790 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:57:05 +00:00
sspitzer%netscape.com
f4f0dc6ce6 PerformExpand() and UpdateCounts() need to take a nsIMsgWindow, because these
action may require the user to enter a password, which means a dialog must comes up,
which means we need the msg window for the parent.


git-svn-id: svn://10.0.0.236/trunk@66789 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:55:18 +00:00
rogerl%netscape.com
c4747ce60e Added a beginning for exception handling.
git-svn-id: svn://10.0.0.236/trunk@66788 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:52:52 +00:00
warren%netscape.com
e0763807e2 Don't know why it thought these were different. Reverting.
git-svn-id: svn://10.0.0.236/trunk@66787 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:52:23 +00:00
cata%netscape.com
38aea9ef82 New interface method.
git-svn-id: svn://10.0.0.236/trunk@66786 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:50:35 +00:00
warren%netscape.com
9e8d69db81 Fixed clobber rules to use $(RM) instead of rm.
git-svn-id: svn://10.0.0.236/trunk@66785 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:49:57 +00:00
erik%netscape.com
6b94e9b01b grabbing a few IDs for nsILanguage and nsILanguageService; not part of
build


git-svn-id: svn://10.0.0.236/trunk@66784 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:42:42 +00:00
racham%netscape.com
48969b2e9f Fixing bugs 28888, 27948. Moving activation code out of mozilla. r=alecf
git-svn-id: svn://10.0.0.236/trunk@66783 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:37:52 +00:00
racham%netscape.com
fc302f0ed3 Fixing bug 28888, 27948. Moving activation code out of mozilla. r=alecf
git-svn-id: svn://10.0.0.236/trunk@66782 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:36:31 +00:00
sfraser%netscape.com
e439aaae9f Fix for 24043, close empty editor doc when opening a new file. Help from Ryan Cassin <kidteckco@hotmail.com>.
git-svn-id: svn://10.0.0.236/trunk@66781 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:32:57 +00:00
racham%netscape.com
333e3a78de Fixing bugs 28888, 27948. Moving activation code out of mozilla. r=alecf
git-svn-id: svn://10.0.0.236/trunk@66780 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:29:42 +00:00
rods%netscape.com
0d4686e71e It now uses the nsHTMLContent->GetHTMLAttribute to get the value and/or label
The code now lso checks to see if the attr actually exists before it moves to the label or the content
bug 36459


git-svn-id: svn://10.0.0.236/trunk@66779 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:28:07 +00:00
racham%netscape.com
a17588c52e Fixing bug 28888, 27948. Moving activation code out of mozilla. r=alecf
git-svn-id: svn://10.0.0.236/trunk@66778 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:27:58 +00:00
alecf%netscape.com
4d9f326b1a add an extra variable to make this easier for consumers of this file
git-svn-id: svn://10.0.0.236/trunk@66777 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:21:52 +00:00
racham%netscape.com
8b15d218b9 Adding startup listener interface fo profiles. part bug fix 28888. a=alecf
git-svn-id: svn://10.0.0.236/trunk@66776 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:20:57 +00:00
rods%netscape.com
e5771a56d4 also added asserts for improper sizes being passed
back in reflow send onChange events on all navigation bug 29440


git-svn-id: svn://10.0.0.236/trunk@66775 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:20:44 +00:00
jdunn%netscape.com
da6ba99da1 adding newline for hp
git-svn-id: svn://10.0.0.236/trunk@66774 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:17:14 +00:00
alecf%netscape.com
7db8f3fa92 switch from titledbuttons and <div>'s to <text> for skinnability and speed
git-svn-id: svn://10.0.0.236/trunk@66773 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:16:39 +00:00
rods%netscape.com
eca0eab156 Add ifdef'ed Performance Reflow Counting code
also added asserts for improper sizes being passed back in reflow
send onChange events on all navigation bug 29440


git-svn-id: svn://10.0.0.236/trunk@66772 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:16:23 +00:00
alecf%netscape.com
6591b41789 switch from titledbutton to <text> for skinnability
git-svn-id: svn://10.0.0.236/trunk@66771 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:14:31 +00:00
alecf%netscape.com
14ba6cfbc3 localize some hardcoded strings in the account manager
git-svn-id: svn://10.0.0.236/trunk@66770 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:04:10 +00:00
tao%netscape.com
b2205900ef 35397: "Make Taskbar localizable". Move menu hierarchy to taskbar.rdf. (r=waterson,a=ben)
git-svn-id: svn://10.0.0.236/trunk@66769 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:04:02 +00:00
rods%netscape.com
e3eef2c9c4 Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66768 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:02:46 +00:00
tao%netscape.com
1de451c62a 35397: "Make Taskbar localizable". Move menu hierarchy to taskbar.rdf.
git-svn-id: svn://10.0.0.236/trunk@66767 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:02:38 +00:00
alecf%netscape.com
b6c558dd41 add some new strings for the account manager datasource
git-svn-id: svn://10.0.0.236/trunk@66766 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 22:01:38 +00:00
rods%netscape.com
013db4369f The value in the GetAttribute will no longer have the space stripped in front and back
git-svn-id: svn://10.0.0.236/trunk@66765 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:59:53 +00:00
rods%netscape.com
26338973b9 text content longer gets set to "" which it ignores, it
gets set to " " when thedisplay should be ""
bug 36459
Add ifdef'ed Performance Reflow Counting code


git-svn-id: svn://10.0.0.236/trunk@66763 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:53:38 +00:00
rods%netscape.com
a54cc52332 Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66762 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:51:35 +00:00
ftang%netscape.com
ccfbbac151 change the dump code to dump in UTF8 so we can reduce unnecessary assertion when we turn on nsString
data corruption code


git-svn-id: svn://10.0.0.236/trunk@66761 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:46:36 +00:00
ftang%netscape.com
2d7bb61d3f fix nsFileSpec unicode interface .
git-svn-id: svn://10.0.0.236/trunk@66760 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:44:23 +00:00
anthonyd%netscape.com
50c380015e r=mjudge. adding in focus listener to docviwer. this will now disable/reenable selection on those displays that desired selection at all.
git-svn-id: svn://10.0.0.236/trunk@66758 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:40:28 +00:00
brendan%mozilla.org
8856ae619c Stop component-wise over-totalling madness when JS=>js=>JS=>js.
git-svn-id: svn://10.0.0.236/trunk@66756 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:38:18 +00:00
anthonyd%netscape.com
8b1598a468 r=mjudge. Removing redundant call to SetColor for ::RenderString. all places have allready set the color before calling this method. this removal should be a no-op. Selection color now should look correct
git-svn-id: svn://10.0.0.236/trunk@66755 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:38:08 +00:00
radha%netscape.com
f842fd8235 Fix up the back/forward menu item. A small regression from last night's pull-out.
git-svn-id: svn://10.0.0.236/trunk@66754 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:54 +00:00
rods%netscape.com
a5da60889f Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66753 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:33 +00:00
jst%netscape.com
be8e9d04c6 Regenerating the DOM JS glue now that idlc knows about the new nsString API's, also updated nsGlobalWindow.cpp to use the new API.
git-svn-id: svn://10.0.0.236/trunk@66752 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:26 +00:00
nhotta%netscape.com
d94d86a374 Added language sensitive font selection (disabled as a default), bug 26182.
git-svn-id: svn://10.0.0.236/trunk@66751 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:36:10 +00:00
nhotta%netscape.com
2943f7f9fe Changed to use ToNewUTF8String instead of ToNewCString in order to avoid data loss of non latin1 data,
contributed by m_kato@ga2.so-net.ne.jp, r=chuang,nhotta.


git-svn-id: svn://10.0.0.236/trunk@66750 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:35:21 +00:00
jst%netscape.com
8d2336ba83 Teaching idlc about the new nsString API.
git-svn-id: svn://10.0.0.236/trunk@66749 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:29:19 +00:00
danm%netscape.com
32c66da05d allowed windows with position specified to also specify size. deuglified some braces. couldn't help myself. bug 36219
git-svn-id: svn://10.0.0.236/trunk@66748 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:28:25 +00:00
pinkerton%netscape.com
966827cd60 fix for sunWpro compiler. forgot a return in my haste. thanks to tor@cs.brown.edu for pointing this out.
git-svn-id: svn://10.0.0.236/trunk@66747 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:26:42 +00:00
thayes%netscape.com
60e1c346ac Add Secret Decoder Ring implementation, and add it to the PSM glue module
git-svn-id: svn://10.0.0.236/trunk@66746 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:26:33 +00:00
cls%seawood.org
9221752b3a Explicitly cast string literals (const char*) to char *.
git-svn-id: svn://10.0.0.236/trunk@66745 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:26:21 +00:00
thayes%netscape.com
80e8ea44aa Add SecretDecoderRing idl file
git-svn-id: svn://10.0.0.236/trunk@66744 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:23:56 +00:00
danm%netscape.com
6e7d9365b0 stop up a couple of leaks. r=davidm
git-svn-id: svn://10.0.0.236/trunk@66743 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:23:10 +00:00
tor%cs.brown.edu
96b3184fd1 Build bustage fix: include <stdlib.h> so we don't pick up glib's
erroneous definition of NULL.


git-svn-id: svn://10.0.0.236/trunk@66742 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:22:46 +00:00
harishd%netscape.com
3f72307bc5 Fix for
26583,2946, 22636 (partial),32782
33570,27136,24184,35125,
35806,36063,29456
r=rickg,waqar
34311 - Patch provided by Patrick ( Fix for MLK ).
r=me.


git-svn-id: svn://10.0.0.236/trunk@66741 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:22:03 +00:00
thayes%netscape.com
48cfcc6fd3 Merge build fix from M14 branch
git-svn-id: svn://10.0.0.236/trunk@66740 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:18:51 +00:00
cls%seawood.org
8a0a3cf145 BeOS uses the Unix local file implementation.
git-svn-id: svn://10.0.0.236/trunk@66737 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:04:35 +00:00
cls%seawood.org
75402120b8 Removed extra & as suggested by Matthew Z. on m.beos.
git-svn-id: svn://10.0.0.236/trunk@66736 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 21:03:56 +00:00
dbragg%netscape.com
d71cf08885 Removed the offending const
git-svn-id: svn://10.0.0.236/trunk@66735 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 20:05:06 +00:00
gagan%netscape.com
9e3d0fa3b1 Ignore newer test case. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@66734 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 19:45:16 +00:00
hyatt%netscape.com
1a7d42cf4a Fix smoketest blocker.
git-svn-id: svn://10.0.0.236/trunk@66733 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 19:21:04 +00:00
brendan%mozilla.org
7151e98552 Percent signs after numbers, please\!
git-svn-id: svn://10.0.0.236/trunk@66732 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 19:05:53 +00:00
terry%mozilla.org
dcf74ecad1 Undo cls's last two changes, at his request.
git-svn-id: svn://10.0.0.236/trunk@66731 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 18:59:16 +00:00
dbragg%netscape.com
3dbf15e9a0 Fix for bug 24984, conversion to use nsIFile and related ilk.
git-svn-id: svn://10.0.0.236/trunk@66730 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 18:58:41 +00:00
cyeh%bluemartini.com
5866ee54d9 Add conditional support to display users real name in bug reports if user
entered in that information. Thanks to
Chris Baldwin <cbaldwin@redback.com>
for providing the patch.


git-svn-id: svn://10.0.0.236/trunk@66729 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 18:45:55 +00:00
cyeh%bluemartini.com
278aa1a47f change field name to more accurately reflect what it is
git-svn-id: svn://10.0.0.236/trunk@66728 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 18:43:53 +00:00
wtc%netscape.com
29e39470f2 Bugzilla bug #36464: OpenBSD shared libraries must be named .so.n.m.
Thanks to greg-mozillabugs@nest.cx for the bug report and the fix.


git-svn-id: svn://10.0.0.236/trunk@66726 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 17:51:36 +00:00
modgock%eng.sun.com
47a6464a51 doh - stupid egg test code left in; removed (well def'd it out - future generations are bored, it's still there..)
This module isn't built in tinderbox and is thereby immune from the tree-status.


git-svn-id: svn://10.0.0.236/trunk@66725 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 17:46:55 +00:00
blizzard%redhat.com
795f381e8f fix solaris by calling .Length() explicitly
git-svn-id: svn://10.0.0.236/trunk@66722 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 15:13:22 +00:00
cls%seawood.org
a9dd620645 BeOS only build fixes
git-svn-id: svn://10.0.0.236/trunk@66721 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 15:03:32 +00:00
cmanske%netscape.com
e100ad52bb Lots of xul rewrite, e.g., replaced all 'align' on box with 'orient', using <tree> for simple lists. Added 'Insert Chars' feature by bakibon@yahoo.com
git-svn-id: svn://10.0.0.236/trunk@66720 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 15:00:23 +00:00
rods%netscape.com
fbf8aca833 Add ifdef'ed Performance Reflow Counting code
git-svn-id: svn://10.0.0.236/trunk@66719 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:59:47 +00:00
cmanske%netscape.com
74d942f798 Fixed setting title bug 36179, lots of xul rewrite, e.g., replaced all 'align' on box with 'orient', using <tree> for simple lists. Added 'Insert Chars' feature by bakibon@yahoo.com
git-svn-id: svn://10.0.0.236/trunk@66718 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:55:54 +00:00
cmanske%netscape.com
9d7ff496b5 Allow setting 'rows' attribute on a <tree> without children (initially)
git-svn-id: svn://10.0.0.236/trunk@66717 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:50:21 +00:00
cls%seawood.org
faa0f9f117 Some compilers (HP) require an explicit cast from a const char * to a char *. String literals are treated as const char *.
git-svn-id: svn://10.0.0.236/trunk@66716 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:47:25 +00:00
cls%seawood.org
e03d924e06 Temp dummy implementation of nsMsgSearchValidityManager::NewTable for BeOS. Bug #36686
git-svn-id: svn://10.0.0.236/trunk@66715 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:40:54 +00:00
blizzard%redhat.com
eca4d03366 turn on the embedding widget
git-svn-id: svn://10.0.0.236/trunk@66714 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:35:03 +00:00
blizzard%redhat.com
d8ee0714ac add more safety to the embedding initialization functions, start on signals ( just an enum now )
git-svn-id: svn://10.0.0.236/trunk@66713 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:34:35 +00:00
putterman%netscape.com
819902fd6a r=sspitzer. Start page sticks around until the first message is loaded. If the message
pane is closed you can now double click on a message to open a standalone window.  More working
on moving code to correct front end files.


git-svn-id: svn://10.0.0.236/trunk@66712 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:22:16 +00:00
andreas.otte%primus-online.de
b46b93b02d extended fix for bug 34863 [Local Harddisks not found if I tried with C: without \], partial fix for bugs 32997 [file URLs that include a hostname don't work] and 19174 [Canonify does not handle UNC file paths], enable the urlparser to handle unc paths better for XP_PC, r=dougt@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66711 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:10:23 +00:00
svn%xmlterm.org
a55b92da3b xmlterm changes only.
Changed true to PR_TRUE and false to PR_FALSE to compile on native Solaris
compilers. Patch provided by Ashutosh.Kulkarni@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@66710 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 14:01:43 +00:00
dcone%netscape.com
82cd8d6511 Took out a call for drawTile.. so the implementation will be used (parent classes method)
git-svn-id: svn://10.0.0.236/trunk@66709 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 13:40:19 +00:00
svn%xmlterm.org
19dfa7162f xmlterm changes only.
Changed XMLterm escape sequence string terminator from ^G to CRLF to allow use with buffered STDOUT.


git-svn-id: svn://10.0.0.236/trunk@66708 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 13:10:44 +00:00
svn%xmlterm.org
e1da4af413 xmlterm changes only.
Clipboard paste fix (still doesn't work properly).


git-svn-id: svn://10.0.0.236/trunk@66707 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 13:06:28 +00:00
svn%xmlterm.org
afa39571f0 xmlterm changes only.
Chrome restructuring: xmlterm extension is not part of communicator and needs to have top level chrome (like chatzilla).


git-svn-id: svn://10.0.0.236/trunk@66706 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 13:04:45 +00:00
Peter.VanderBeken%pandora.be
c2e8f60419 First checkin of Mac project for Transformiix.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@66705 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 12:23:23 +00:00
cls%seawood.org
3f0ba1cf5f Fixed typo.
git-svn-id: svn://10.0.0.236/trunk@66704 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 11:02:21 +00:00
scc%netscape.com
7e2049c75c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66703 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:28:04 +00:00
ben%netscape.com
00e4800c81 stylesheet load correction
git-svn-id: svn://10.0.0.236/trunk@66702 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:22:47 +00:00
ben%netscape.com
c3fcc30ceb correcting stylesheet load
git-svn-id: svn://10.0.0.236/trunk@66701 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:21:47 +00:00
mccabe%netscape.com
aeacf9b174 Display an informative message if unable to get the console service.
git-svn-id: svn://10.0.0.236/trunk@66700 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:13:56 +00:00
hyatt%netscape.com
6ee90ca261 More love.
git-svn-id: svn://10.0.0.236/trunk@66699 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:13:18 +00:00
hyatt%netscape.com
3ca93160d9 Fix tree selection color.
git-svn-id: svn://10.0.0.236/trunk@66698 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 10:00:37 +00:00
hyatt%netscape.com
923409afc8 Fix mac.
git-svn-id: svn://10.0.0.236/trunk@66697 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:58:32 +00:00
hyatt%netscape.com
7e46e6fccd Fixing mac.
git-svn-id: svn://10.0.0.236/trunk@66696 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:54:32 +00:00
hyatt%netscape.com
f870fa5616 Making tree scrolling faster in mailnews.
git-svn-id: svn://10.0.0.236/trunk@66695 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:49:34 +00:00
hyatt%netscape.com
602341e940 Beginning the process of massaging the CSS and XUL to conform to the new
directory org.


git-svn-id: svn://10.0.0.236/trunk@66694 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:40:38 +00:00
scc%netscape.com
0dbeaa04b3 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66693 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:33:45 +00:00
mccabe%netscape.com
0318df82ae Fix to 23532. Check validity of JS_ARENA_ALLOCATE call before using it as an argument of memcpy in JS_ArenaGrow.
Thanks to wyeung@real.com for noticing we were being unsafe here and suggesting the fix.


git-svn-id: svn://10.0.0.236/trunk@66692 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 09:25:43 +00:00
alecf%netscape.com
04ba7f4e42 oops, back out previous change, my tree had other stuff in it
git-svn-id: svn://10.0.0.236/trunk@66691 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:53:32 +00:00
alecf%netscape.com
7456d946f2 oops, back out that unix change, my tree was filled with other crap
git-svn-id: svn://10.0.0.236/trunk@66690 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:52:29 +00:00
alecf%netscape.com
969b83c3d5 oops, back out part of that change, forgot my tree had other stuff in it
git-svn-id: svn://10.0.0.236/trunk@66689 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:51:51 +00:00
alecf%netscape.com
519ecf52f6 add scriptable search value to windows build
git-svn-id: svn://10.0.0.236/trunk@66688 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:49:46 +00:00
alecf%netscape.com
49fcfa1fc2 add scriptable searchvalue to unix build
git-svn-id: svn://10.0.0.236/trunk@66687 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:49:06 +00:00
alecf%netscape.com
9cd08b1e72 add new IDL to windows build
git-svn-id: svn://10.0.0.236/trunk@66686 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:48:14 +00:00
brendan%mozilla.org
5046822d35 Optimize total computation, fix visited to be a counter.
git-svn-id: svn://10.0.0.236/trunk@66685 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:47:00 +00:00
alecf%netscape.com
14a3b350f1 add new IDL to unix build
git-svn-id: svn://10.0.0.236/trunk@66684 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:46:14 +00:00
alecf%netscape.com
da7980b76c add first cut at scriptable search scope terms
git-svn-id: svn://10.0.0.236/trunk@66683 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:45:53 +00:00
jband%netscape.com
4014d24d42 trivial renaming of local var to fix compiler warning
git-svn-id: svn://10.0.0.236/trunk@66682 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:42:14 +00:00
alecf%netscape.com
7c4ae13677 add scriptable version of search term value object
git-svn-id: svn://10.0.0.236/trunk@66681 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:38:24 +00:00
alecf%netscape.com
619c08e2d6 fix xlib bustage in a lame way
git-svn-id: svn://10.0.0.236/trunk@66680 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:36:44 +00:00
sspitzer%netscape.com
103a46b138 printf to remind me to fix #36661
git-svn-id: svn://10.0.0.236/trunk@66679 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:34:34 +00:00
sspitzer%netscape.com
0d541f1ded fix a warning by making the dtor virtual.
git-svn-id: svn://10.0.0.236/trunk@66678 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:13:24 +00:00
hyatt%netscape.com
7292453a7e Tree performance improvements.
git-svn-id: svn://10.0.0.236/trunk@66677 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:12:13 +00:00
hyatt%netscape.com
b1d870dd34 Tree performance enhancements.
git-svn-id: svn://10.0.0.236/trunk@66676 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:11:39 +00:00
pierre%netscape.com
8b87581e2e Implemented i18n list-style-types. Thanks to bakibon@yahoo.com.
git-svn-id: svn://10.0.0.236/trunk@66675 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 08:05:29 +00:00
pinkerton%netscape.com
bf29931ab9 Fix build bustage r=scc.
git-svn-id: svn://10.0.0.236/trunk@66674 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:34:06 +00:00
hyatt%netscape.com
5fd7d7eef1 Commdir.
git-svn-id: svn://10.0.0.236/trunk@66673 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:15:48 +00:00
hyatt%netscape.com
76421c2030 Adding communicator dir.
git-svn-id: svn://10.0.0.236/trunk@66672 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:15:14 +00:00
hyatt%netscape.com
cecf50bef4 Adding communicator dir and css file to build.
git-svn-id: svn://10.0.0.236/trunk@66671 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:13:06 +00:00
scc%netscape.com
31f1176499 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66670 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:09:51 +00:00
mccabe%netscape.com
50ffbdd08e Remove now-unused files.
git-svn-id: svn://10.0.0.236/trunk@66669 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:09:49 +00:00
pavlov%netscape.com
d85285be87 turn off DrawTile until I can fix it on unix so dcone can check in his code.
git-svn-id: svn://10.0.0.236/trunk@66668 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 07:00:36 +00:00
scc%netscape.com
181154f76c there were a bunch of routines that returned references to this and were abused as much as they were used correctly. now they return |void|
git-svn-id: svn://10.0.0.236/trunk@66667 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:59:14 +00:00
scc%netscape.com
96a031fd50 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66666 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:56:47 +00:00
sfraser%netscape.com
19216192c5 Checkign in radha's diffs to see if this reduces the leak numbers.
git-svn-id: svn://10.0.0.236/trunk@66665 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:56:32 +00:00
pinkerton%netscape.com
28e12d5484 Moving Screen API away from individual attributes for performance reasons (stage 1). Fixes bugs on win32 with xul popups where taskbar is not at bottom of screen.
git-svn-id: svn://10.0.0.236/trunk@66664 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:55:13 +00:00
sspitzer%netscape.com
eb58f946a3 get snews://<host>/<group> urls to work for autosubscribe.
git-svn-id: svn://10.0.0.236/trunk@66663 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 06:55:12 +00:00
warren%netscape.com
8f28511cda Fixed optimized build problem.
git-svn-id: svn://10.0.0.236/trunk@66662 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:32:59 +00:00
warren%netscape.com
c22d12ae9b Bug 34217. Making js protocol not clear window when it returns no result.
git-svn-id: svn://10.0.0.236/trunk@66661 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:18:15 +00:00
warren%netscape.com
bd9c1829cc Removed extra call to Open
git-svn-id: svn://10.0.0.236/trunk@66660 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:15:42 +00:00
warren%netscape.com
5baf7cfd38 Changed max thread count to 4 (for now).
git-svn-id: svn://10.0.0.236/trunk@66659 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:14:49 +00:00
warren%netscape.com
e42631defd Fixed thread pool thread allocation to be more lazy (still doesn't release unused threads though). (Code adapted from dougt.)
git-svn-id: svn://10.0.0.236/trunk@66658 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 05:12:57 +00:00
brendan%mozilla.org
13518b89f8 Fix plib-instead-of-lib->total += type; use int32 for possibly negative values.
git-svn-id: svn://10.0.0.236/trunk@66657 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 03:01:09 +00:00
bienvenu%netscape.com
7f7c4dfe1c fix linux runtime failure to load mailnews
git-svn-id: svn://10.0.0.236/trunk@66656 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:47:53 +00:00
scc%netscape.com
14ddf6b38a making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66655 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:35:42 +00:00
rhp%netscape.com
f91d5edc87 Just fixing a test harness program. NOT PART OF THE BUILD!!!!
git-svn-id: svn://10.0.0.236/trunk@66654 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:25:03 +00:00
mccabe%netscape.com
eee609d9d0 Remove builds of nsConsoleService binary, IDL and IDL-export projects from xpfe/components/console for the Mac.
git-svn-id: svn://10.0.0.236/trunk@66653 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:21:23 +00:00
nisheeth%netscape.com
ec7530ecda Ongoing work to get Transformiix to build on Windows as a Mozilla component. Not part of the build.
- implemented rint() in NumberFunctionCall.cpp
- Changed String to DOMString in calls to processAttrValueTemplate() in XSLTProcessor.cpp
- Fixed up more windows makefiles.


git-svn-id: svn://10.0.0.236/trunk@66652 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:20:28 +00:00
bienvenu%netscape.com
3497fd0d1a Fix dup file in Makefile
git-svn-id: svn://10.0.0.236/trunk@66651 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:18:03 +00:00
rhp%netscape.com
21283c2724 Fix for problem with invalid file names - Bug # 24962 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@66650 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:13:18 +00:00
bienvenu%netscape.com
1583495a8e add nsMsgSearchNews to the build
git-svn-id: svn://10.0.0.236/trunk@66649 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:12:58 +00:00
bienvenu%netscape.com
500e9a2f26 add nsMsgSearchNews.cpp
git-svn-id: svn://10.0.0.236/trunk@66648 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:12:10 +00:00
bienvenu%netscape.com
a138cb8770 fix linux warning
git-svn-id: svn://10.0.0.236/trunk@66647 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:08:44 +00:00
bienvenu%netscape.com
844cb64e01 add search validity stuff, not run yet
git-svn-id: svn://10.0.0.236/trunk@66646 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:05:35 +00:00
ducarroz%netscape.com
83c74bdc85 Remove unused files. Part of autocomplete clean up
git-svn-id: svn://10.0.0.236/trunk@66645 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:05:04 +00:00
sspitzer%netscape.com
fab898e51e no newline at the end of the file. this will hork some compilers
git-svn-id: svn://10.0.0.236/trunk@66644 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 02:04:53 +00:00
beard%netscape.com
1acd7e19ec [Not part of build] Simple tool to emit information about the build system, to be consumed by the Perl build scripts.
git-svn-id: svn://10.0.0.236/trunk@66643 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:51:07 +00:00
brendan%mozilla.org
a1e0219a1d Spruce up a couple of comments.
git-svn-id: svn://10.0.0.236/trunk@66642 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:49:49 +00:00
brendan%mozilla.org
50400ce9b5 Functions that use unqualified __parent__ or __proto__ must be heavyweight (36625, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@66641 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:47:20 +00:00
jband%netscape.com
6809acc097 fix bustage due to relative path include of removed (and otherwise unused) file
git-svn-id: svn://10.0.0.236/trunk@66640 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:33:13 +00:00
cls%seawood.org
839d44304a Remove extraneous whitespace between the object file and the ':'.
Thanks to Justin Morey <justin@68k.org> for the patch.


git-svn-id: svn://10.0.0.236/trunk@66639 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:28:58 +00:00
ruslan%netscape.com
83c749b56f Be more conservative when checking that the keep-alive connection has
died. On some platforms it can come out as eof and on some (windows)
it'll come out as "connection aborted".


git-svn-id: svn://10.0.0.236/trunk@66638 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:27:48 +00:00
pavlov%netscape.com
b689f12e81 reimpliment nsClipboard::HasDataMatchingFlavors to be reentrant to fix bug #13161
git-svn-id: svn://10.0.0.236/trunk@66637 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:27:46 +00:00
scc%netscape.com
b342a90485 Fixed |nsPromiseSubstring::GetReadableFragment|, which had been walking off the end. Re-implemented |copy_string| in terms of the new char-source/char-sink stuff that beard and I came up with. Factored some code into |SameFragment|. Did some general shuffling and cleanup.
git-svn-id: svn://10.0.0.236/trunk@66636 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:25:19 +00:00
jband%netscape.com
81c2f39c08 fix bustage due to relative path include of removed (and otherwise unused) file
git-svn-id: svn://10.0.0.236/trunk@66635 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:22:16 +00:00
scc%netscape.com
1651080984 Added |nsCharSourceTraits| and |nsCharSinkTraits| to better facilitate copying from arbitrary char sources into arbitrary char consumers
git-svn-id: svn://10.0.0.236/trunk@66634 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:20:55 +00:00
ducarroz%netscape.com
399c74ae3c More work on autocomplete. Add support for text selection
git-svn-id: svn://10.0.0.236/trunk@66633 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:20:17 +00:00
scc%netscape.com
75e584abac added |nsWritingIterator<T>::write| to satisfy the char-source/char-sink stuff beard and I put in.
git-svn-id: svn://10.0.0.236/trunk@66632 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:19:40 +00:00
ducarroz%netscape.com
917464a6a3 Fix problem where you cannot set or remove the focus on a textfield using JS call focus() or blur(). Now with this fix, we may have another bug showing up that don't let you tab outside the field. hyatt has a bug filed for that. R=hyatt.
git-svn-id: svn://10.0.0.236/trunk@66631 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:16:58 +00:00
scc%netscape.com
a92da1cfda making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66630 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:15:53 +00:00
cls%seawood.org
4ed8043f95 Fixed SHARED_LIBRARY_LIBS dependency in docshell/build.
Removed extraneous ; makefiles target.
Thanks to Justin Morey <justin@68k.org> for the patch.


git-svn-id: svn://10.0.0.236/trunk@66629 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:14:45 +00:00
ducarroz%netscape.com
a3992a0ef3 More autocomplete landing...
git-svn-id: svn://10.0.0.236/trunk@66628 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:14:05 +00:00
jband%netscape.com
64ddebafed fix bustage due to relative path include of removed (and otherwise unused) file
git-svn-id: svn://10.0.0.236/trunk@66627 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:12:19 +00:00
rhp%netscape.com
107c231547 Fix for message text on signed message stub - Bug # 34570 - r: bienvenu
git-svn-id: svn://10.0.0.236/trunk@66626 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:09:50 +00:00
bienvenu%netscape.com
d88dccd020 add news search, not part of build
git-svn-id: svn://10.0.0.236/trunk@66625 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:08:06 +00:00
yueheng.xu%intel.com
192619e1aa fixed #35910 (PostScript error when printing CJK pages but a CJK font dictionary/Unicodedict is not defined.). The fix included a Masaki Tatakai's suggestion to define a NoglyphUnicodedict dictionary and switch at run time. So the default behavior will be: all unicode with non-zero high byte will be printed as "han". With a post processing filter to define a /Unicodedict and its font procedures, above default behavior will be overwritten. This change also fixed 34367, #27311, #18132, so we have italics, bold, etc. style support now. We might also fixed #36264 which is likely a dup of #35910, though #35910 only happens for non ASCIIcontent and #36264 happens for an ASCII content
git-svn-id: svn://10.0.0.236/trunk@66624 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:07:56 +00:00
cls%seawood.org
0cf0ff5dd9 Added separate list of all available trees. This allows mozbot to actively report the status of one set of trees and individually give the results for another set.
git-svn-id: svn://10.0.0.236/trunk@66623 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:07:38 +00:00
nisheeth%netscape.com
aa48d39e68 Fix for bug 36362. We no longer null out the ref count of form elements in their Release() methods before deleting them. This fixes the crashes on www.cnn.com and www.msn.com.
git-svn-id: svn://10.0.0.236/trunk@66622 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 01:03:20 +00:00
rginda%netscape.com
bb75bc1957 Add nsIScriptError.idl. Build it here rather than back in xpfe/components/console.
Checkin by McCabe, on rginda's mac.


git-svn-id: svn://10.0.0.236/trunk@66621 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:57:27 +00:00
rginda%netscape.com
7e28be766c Adding nsIConsoleService.idl, nsIConsoleMessage.idl, nsIConsoleListener.idl. Previously, the .h and .xpt products of these files were still being built back in xpfe/components/console, which is bad.
Checkin by McCabe, on rginda's mac.


git-svn-id: svn://10.0.0.236/trunk@66620 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:52:02 +00:00
sfraser%netscape.com
d6e85a808d Fix frameset detection. An additional Notify() method was not hooked up properly.
git-svn-id: svn://10.0.0.236/trunk@66619 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:50:04 +00:00
rogerl%netscape.com
55872f1c24 oops
git-svn-id: svn://10.0.0.236/trunk@66618 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:46:48 +00:00
rogerl%netscape.com
cf972ed7c0 Added labelled statements, fixed some VC++'isms
git-svn-id: svn://10.0.0.236/trunk@66617 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:37:51 +00:00
mccabe%netscape.com
5bbdddad23 Turn off building nsConsoleService binaries for unix and windows. nsConsoleService has moved to xpcom/base, and nsScriptError has moved to js/src/xpconnect.
git-svn-id: svn://10.0.0.236/trunk@66616 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:35:53 +00:00
ducarroz%netscape.com
9ab768faec Remove old autocomplete IDL files
git-svn-id: svn://10.0.0.236/trunk@66615 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:28:53 +00:00
sgehani%netscape.com
4576d1ca97 Add cancel button to installer.
b=35346


git-svn-id: svn://10.0.0.236/trunk@66614 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:25:15 +00:00
jband%netscape.com
639a114082 removing unused files
git-svn-id: svn://10.0.0.236/trunk@66613 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:17:56 +00:00
pavlov%netscape.com
869c08755b fix pasting
git-svn-id: svn://10.0.0.236/trunk@66612 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:09:23 +00:00
rginda%netscape.com
e7290871fc icodegenerator.cpp
add m prefix to base and offset label members

interpreter.cpp,h
dual license
wrap interpret in a Context class
add RETURN_VOID case

js2.cpp
update to use context class
remove #if 0 code that'll probably never be used anyway.

jstypes.h
add defineProperty/function to JSObject

vmtypes.h
regerated opcode classes:
  added RETURN_VOID, removed LOAD/SAVE_VAR
  reverted bacl to the smaller print function (thanks to RETURN_VOID)
  fixed branch printing issue
  inherit print() from super if possible

tools/gencode.pl
generate smaller print functions again
don't generate print function if superclass can take care of it.


git-svn-id: svn://10.0.0.236/trunk@66611 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:04:14 +00:00
tajima%eng.sun.com
b10dbf484b fix for #33996(Correct usage of XIMPreeditEnable) r=ftang, and passed pre-check-in
test on local Redhat 6.1 environment.


git-svn-id: svn://10.0.0.236/trunk@66610 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:03:44 +00:00
sspitzer%netscape.com
27de60ef5a changes for autosubscribe. bug #11075. handle the case where they have a news server
already, and the case where they don't.  still more work to be done here, but the basics
work.

also, turn nsMessengerMigrator::CopyIdentity() into nsMsgIdentity::Copy() and
use that in migration and news account creation during autosubscribe.  r=alecf


git-svn-id: svn://10.0.0.236/trunk@66609 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-21 00:03:02 +00:00
locka%iol.ie
5ed535b45e Moved away some obselete CID/IID decls
Added method CheckForBinDirPath to request the user to set the path when there is not registry entry for it


git-svn-id: svn://10.0.0.236/trunk@66608 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:34:08 +00:00
dcone%netscape.com
7293930612 Updated 256 color mode for tiling
git-svn-id: svn://10.0.0.236/trunk@66607 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:33:46 +00:00
varada%netscape.com
4165046e6b fix for bug #36585 :changing the default title bar to Netscape 6
git-svn-id: svn://10.0.0.236/trunk@66606 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:32:55 +00:00
valeski%netscape.com
eeac60048e adding callback test harness to unix builds
git-svn-id: svn://10.0.0.236/trunk@66605 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:26:41 +00:00
valeski%netscape.com
4cf8606bde adding callback test harness to the build and fixing a typo that wasn't letting TestWriteSpeed get built on windows
git-svn-id: svn://10.0.0.236/trunk@66604 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:22:27 +00:00
thayes%netscape.com
6cb44d95c9 Add definition of SDR interface
git-svn-id: svn://10.0.0.236/trunk@66603 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:21:21 +00:00
radha%netscape.com
6b3236ea72 Go menu Back/Forward popup menus re-wired to use new Session history
git-svn-id: svn://10.0.0.236/trunk@66602 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:15:39 +00:00
radha%netscape.com
2d7c9cad08 update session history too with the title when title gets set.
git-svn-id: svn://10.0.0.236/trunk@66601 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:14:53 +00:00
anthonyd%netscape.com
10a34f6e1b drawing selection as tri-state. on-off-disabled. hardcoded disable color to grey right now. r=mjudge
git-svn-id: svn://10.0.0.236/trunk@66600 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:11:41 +00:00
norris%netscape.com
43bc21e458 Clean up new methods.
git-svn-id: svn://10.0.0.236/trunk@66598 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:08:07 +00:00
nhotta%netscape.com
db0e5bb094 Re-label charset us-ascii to ISO-8859-1 when quoting text, bug 35105, 36410, r=rhp.
git-svn-id: svn://10.0.0.236/trunk@66597 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:06:04 +00:00
dbragg%netscape.com
ed0b32600c typo in Manifest file
git-svn-id: svn://10.0.0.236/trunk@66596 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:06:00 +00:00
nhotta%netscape.com
4da532d770 Adding a new file, functions to enumerate available fonts, to be used for mailnews.view_default_charset.
Not part of the build.


git-svn-id: svn://10.0.0.236/trunk@66595 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:04:08 +00:00
beard%netscape.com
c31b6beead Simple dependency tracking with make depend target.
git-svn-id: svn://10.0.0.236/trunk@66594 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:02:19 +00:00
thayes%netscape.com
d0a8fc6dea Add decryption functions for SDR. Add SDR to UNIX builds.
git-svn-id: svn://10.0.0.236/trunk@66593 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:00:39 +00:00
rogerl%netscape.com
5c3e4646d4 Added ASSERT cases to FixNext child handling.
git-svn-id: svn://10.0.0.236/trunk@66592 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:00:37 +00:00
pinkerton%netscape.com
e58c07d43f oops, forgot to weak link in the optimized target!
git-svn-id: svn://10.0.0.236/trunk@66591 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:00:07 +00:00
ftang%netscape.com
2d672c7bdf add nsLocalFileCommon.cpp
git-svn-id: svn://10.0.0.236/trunk@66590 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 23:00:00 +00:00
dbragg%netscape.com
f8c0450ab3 Oops, forgot nsFileSpec.h
git-svn-id: svn://10.0.0.236/trunk@66589 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:59:30 +00:00
pinkerton%netscape.com
afdd8ba069 whoops, forgot to weaklink in the optimized target.
git-svn-id: svn://10.0.0.236/trunk@66588 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:59:29 +00:00
locka%iol.ie
6c6ce21718 Added declaration of NS_PREF_CID
git-svn-id: svn://10.0.0.236/trunk@66587 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:59:20 +00:00
beard%netscape.com
caf86b0278 Simple dependencies list. Rebuilt with make depend target.
git-svn-id: svn://10.0.0.236/trunk@66586 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:58:23 +00:00
sfraser%netscape.com
fcc42459c0 Remove the gShellCounter printf cruft.
git-svn-id: svn://10.0.0.236/trunk@66585 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:57:40 +00:00
bienvenu%netscape.com
39d05d298f turn back on imap search code now that it's part of the mac build
git-svn-id: svn://10.0.0.236/trunk@66584 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:54:17 +00:00
ftang%netscape.com
26ddc69606 1. small fix on nsLocalFileCommon.cpp to fix unix warrning
2. add unicode methods to nsIFile/nsILocalFile idl
3. add nsLocalFileCommon.cpp to the unix and window makefile


git-svn-id: svn://10.0.0.236/trunk@66583 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:53:29 +00:00
dbragg%netscape.com
a56b5806c3 Fully implemented the DirectoryService and fixed the Mac nsFileSpecToIFile
git-svn-id: svn://10.0.0.236/trunk@66582 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:49:18 +00:00
granrose%netscape.com
dc5987c03e changed Milestone from static M14 to dynamically generated value of whatever's between the last ; and ) in the user agent string. r=leaf. bug 36027.
git-svn-id: svn://10.0.0.236/trunk@66581 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:49:09 +00:00
akkana%netscape.com
df673274b7 36188: fix double-spaced quotations in mail, plus lots of code cleanup
git-svn-id: svn://10.0.0.236/trunk@66580 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:47:04 +00:00
akkana%netscape.com
0e6558edd8 6276: Add wrapping support for mail.
git-svn-id: svn://10.0.0.236/trunk@66579 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:45:54 +00:00
akkana%netscape.com
0511a3d364 Don't return an error code just because there was no nsXPLookAndFeel override (thanks to Pierre for noticing)
git-svn-id: svn://10.0.0.236/trunk@66578 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:43:25 +00:00
granrose%netscape.com
e5517a4a21 change default user agent string milestone from m14 to m16.
git-svn-id: svn://10.0.0.236/trunk@66577 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:42:23 +00:00
akkana%netscape.com
0623ccf912 Add nsWrapUtils to build.
git-svn-id: svn://10.0.0.236/trunk@66576 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:41:02 +00:00
granrose%netscape.com
b48f95cc15 added -vf9 to gzip for packaging mozilla tarball. tell strip not to strip various text files (js/xul/html/etc). r=leaf
git-svn-id: svn://10.0.0.236/trunk@66575 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:40:39 +00:00
norris%netscape.com
9287db173c Fix build error.
git-svn-id: svn://10.0.0.236/trunk@66574 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:36:46 +00:00
pnunn%netscape.com
f9cb277088 bug#3013: turning on 8 bit mask generation. pnunn. tested nt, mac, linux.
git-svn-id: svn://10.0.0.236/trunk@66573 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:36:06 +00:00
pnunn%netscape.com
2ef8bd8842 bug#3013; bug#16742; and maybe bug#28616: fixed scaling on 8 bit masks. pnunn. tested on nt, linux, mac
git-svn-id: svn://10.0.0.236/trunk@66572 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:34:05 +00:00
akkana%netscape.com
c965d13ea1 Wrapping code, useful for citers and perhaps other code
git-svn-id: svn://10.0.0.236/trunk@66571 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:32:56 +00:00
akkana%netscape.com
60d2734d63 19137: <u> wasn't in the list of inline tags.
git-svn-id: svn://10.0.0.236/trunk@66570 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:31:14 +00:00
Peter.VanderBeken%pandora.be
ea53a928d3 More conversions from String to DOMString.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@66569 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 22:10:16 +00:00
dveditz%netscape.com
3d668c11ae keep check-in information from appearing inside little tbox iframe
git-svn-id: svn://10.0.0.236/trunk@66568 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 20:03:10 +00:00
norris%netscape.com
e40c972eba Subject:
contextClassloader problem in ScriptRuntime.java
   Date:
        Tue, 11 Apr 2000 09:45:36 -0400
   From:
        "Howard Lin" <howard@softcom.com>
     To:
        "Norris Boyd" <norris@netscape.com>
    CC:
        "Andrew Wason" <aw@softcom.com>




Hi, Norris, we are trying to create a Java class in JavaScript. When security manager is on, everything works fine. But when security
manager is off, we got an error saying the "... is not defined". The problem is that in ScriptRuntime.java, when security is on,
getContextClassLoader is null due to SecurityException and Class.forName is used to find the class, which works fine. When security
is off, ContextClassLoaderMethod is invoked to find the class. Since we use a separate thread to load third party jar files,
ContextClassLoaderMethod will throw a ClassNotFound exception.

To illustrate this problem, I wrote a simple applet, evaluating a simple js file in its paint method, which is running on a separate thread.
When security is off, I got the following:

ReferenceError: "Global" is not defined.
        at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:
494)
        at org.mozilla.javascript.ScriptRuntime.name(ScriptRuntime.java, Compile
d Code)
        at org.mozilla.javascript.Interpreter.interpret(Interpreter.java, Compil
ed Code)
        at org.mozilla.javascript.InterpretedScript.call(InterpretedScript.java:
67)
        at org.mozilla.javascript.InterpretedScript.exec(InterpretedScript.java:
54)
        at org.mozilla.javascript.Context.evaluateReader(Context.java:739)
        at test.evaluate(test.java:26)
        at test.paint(test.java:16)
        at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:117)
        at java.awt.Component.dispatchEventImpl(Component.java:2447)
        at java.awt.Container.dispatchEventImpl(Container.java:1035)
        at java.awt.Component.dispatchEvent(Component.java:2307)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:287)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:10
1)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

When security is on, it runs fine. Or if the code moved to init method, it works fine regardless of security. We are using JDK 1.2.2.

Howard


git-svn-id: svn://10.0.0.236/trunk@66567 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 19:53:16 +00:00
tor%cs.brown.edu
0275c961ec Build bustage fix: add two casts (unsigned char* -> char* and the
reverse) for more pedantic compilers, such as SUNWspro4.2. a=leaf


git-svn-id: svn://10.0.0.236/trunk@66566 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 19:52:26 +00:00
slamm%netscape.com
e9ad8593fa Continue past cvsblame parse errors.
git-svn-id: svn://10.0.0.236/trunk@66565 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 19:05:56 +00:00
dveditz%netscape.com
868efccd71 resurrecting VC 5 build (and other pedantic compilers)
git-svn-id: svn://10.0.0.236/trunk@66564 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 18:52:06 +00:00
edburns%acm.org
394bcff4aa bug 33099
r=shaver
a=edburns

Native code changes: This fix eradicates all
occurrences of the following symbols
 nsComponentManager nsServiceManeger
And replaces them with their nsI counterparts.
The following ns* classes still are used in
webclient, and no plans exist to replace them
with nsI counterparts: nsresult nsCOMPtr
nsCRT nsnull * nsServiceManager occurrences
were replaced with do_GetService(), using a
PROGID. * nsComponentManager occurrences were replaced with a call on the global class gComponentManager, declared in the new file ns_globals.h, and defined in WrapperFactoryImpl.cpp. ns_globals.h is included in jni_util.h. See the attachment to bug 33099 for ns_globals.h * Added deallocation code to WindowControlImpl.cpp nativeTerminate. I know it doesn't do much, but it's correct. Java code changes: * Added static method BrowserControlFactory.appTerminate(). This method simply calls the existing BrowserControlImpl.appTerminate(), which calls WrapperFactoryImpl.cpp nativeTerminate(). BrowserControlFactory.appTerminate() is called from EmbeddedMozilla's WindowListener, which gets fired when the user signals she wants the app to terminate.


git-svn-id: svn://10.0.0.236/trunk@66563 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 18:16:05 +00:00
terry%mozilla.org
fd8819aef9 Was reporting the wrong version number.
git-svn-id: svn://10.0.0.236/trunk@66562 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 17:36:55 +00:00
jst%netscape.com
c0dbb2190f Backing out dcones last changes since they made linux tinderbox go orange, and the toolbar wasn't properly drawn with the changes.
git-svn-id: svn://10.0.0.236/trunk@66560 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 16:22:10 +00:00
brade%netscape.com
a7015276a3 changes submitted by Brian King (briank@clubi.ie); handle the case where an image hasn't been inserted but will be.
git-svn-id: svn://10.0.0.236/trunk@66559 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 14:12:33 +00:00
dcone%netscape.com
058887ab74 Turned on the Fast Background Rendering.
git-svn-id: svn://10.0.0.236/trunk@66558 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 14:00:22 +00:00
brade%netscape.com
8bb892ecba add a function to handle dragging all types of data in the content area (not used yet; not complete yet)
git-svn-id: svn://10.0.0.236/trunk@66557 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 14:00:15 +00:00
jst%netscape.com
65876f7f11 Updating the DOM interface CSSStyleDeclaration to DOM Level 2.
git-svn-id: svn://10.0.0.236/trunk@66556 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 13:50:56 +00:00
brade%netscape.com
f4ff00e57e add nsJSCSSValue.cpp for jst
git-svn-id: svn://10.0.0.236/trunk@66555 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 13:48:39 +00:00
jst%netscape.com
a8f76590ab Adding GetIID() to nsICSSDeclaration.
git-svn-id: svn://10.0.0.236/trunk@66554 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 13:00:08 +00:00
jst%netscape.com
c4e455e5bc Fix build warnings.
git-svn-id: svn://10.0.0.236/trunk@66553 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 12:40:35 +00:00
jst%netscape.com
4cece07c24 Fixing bug #32376. Mozilla now populates a select list with new empty options if it's length is set to a bigger number than it already is, this is against the DOM but we need this to be compatible with older browsers.
git-svn-id: svn://10.0.0.236/trunk@66552 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 12:34:35 +00:00
jband%netscape.com
486fb4f510 Had the wrong clazz for the root! So it was better when the caching was broken. Now it works on MI objects with caching fixed. My bad copy/paste error from long ago.
git-svn-id: svn://10.0.0.236/trunk@66551 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 12:16:45 +00:00
jst%netscape.com
9e95ae73d6 Adding CSSValue interface, not part of the build yet.
git-svn-id: svn://10.0.0.236/trunk@66550 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 11:07:16 +00:00
jband%netscape.com
fe72a694dd backing out little fix from earlier today because it causes crashes in some MI cases. I'll investigate and do the right fix
git-svn-id: svn://10.0.0.236/trunk@66549 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 11:06:48 +00:00
kvisco%ziplink.net
a62b3fdec4 updated with latest info
git-svn-id: svn://10.0.0.236/trunk@66548 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:21:06 +00:00
kvisco%ziplink.net
f4c1a830ad latest info
git-svn-id: svn://10.0.0.236/trunk@66547 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:16:44 +00:00
kvisco%ziplink.net
db938ecc41 Added a fix for relative URI with xsl:include (npride)
git-svn-id: svn://10.0.0.236/trunk@66546 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:14:05 +00:00
kvisco%ziplink.net
5eacd941ae Added Nathan Pride's fix for document base when a stylesheet is specified on the command line
git-svn-id: svn://10.0.0.236/trunk@66545 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:13:22 +00:00
kvisco%ziplink.net
cbfd64055e Added some changes from Marina (see changes.txt)
git-svn-id: svn://10.0.0.236/trunk@66544 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:12:06 +00:00
kvisco%ziplink.net
c1e3519474 changed a couple postfix increments to prefix, aesthetics really.
git-svn-id: svn://10.0.0.236/trunk@66543 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:11:28 +00:00
kvisco%ziplink.net
128c34fe01 added Marina's changes (removed casts from XML_Char to DOM_CHAR)
git-svn-id: svn://10.0.0.236/trunk@66542 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 10:09:42 +00:00
pavlov%netscape.com
e1978d5f91 finish COMPOUND_TEXT support
git-svn-id: svn://10.0.0.236/trunk@66541 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 09:29:38 +00:00
waterson%netscape.com
2e4423d60c Replace raw use of nsArrayEnumerator with NS_NewArrayEnumerator(). r=sspitzer, alecf
git-svn-id: svn://10.0.0.236/trunk@66540 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 09:15:23 +00:00
jband%netscape.com
723651965b landing typelib loading improvements. bug 30753
git-svn-id: svn://10.0.0.236/trunk@66539 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 08:52:05 +00:00
sgehani%netscape.com
927911ea8e Fix for exposing default destination in config.ini. [b=36392]
git-svn-id: svn://10.0.0.236/trunk@66538 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 07:42:43 +00:00
sgehani%netscape.com
1ccd24955c * Fix shell script env setup.
* Add feature support to specify folder default in config.ini. [b=36392]
* Pipe erros to a dialog instead of to stdout.


git-svn-id: svn://10.0.0.236/trunk@66537 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 07:42:23 +00:00
sspitzer%netscape.com
6d97a3f99e more changes for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@66536 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 07:11:27 +00:00
brendan%mozilla.org
953de28629 Check access and redeclaration legality when defining a getter/setter (36117, r=norris)
git-svn-id: svn://10.0.0.236/trunk@66535 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 07:10:14 +00:00
sspitzer%netscape.com
72ece3deff more work for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@66534 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 06:59:43 +00:00
sspitzer%netscape.com
41aafbe0d9 more changes for the new subscribe dialog. use a check and dot instead of "true" and "false"
in the ui.


git-svn-id: svn://10.0.0.236/trunk@66533 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 06:39:28 +00:00
beard%netscape.com
051398cca7 removed extraneous semi-colons after namespace declarations.
git-svn-id: svn://10.0.0.236/trunk@66532 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 06:20:31 +00:00
beard%netscape.com
a9070a5a89 warnings: commented out unused parameter name.
git-svn-id: svn://10.0.0.236/trunk@66531 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 06:19:43 +00:00
sspitzer%netscape.com
dd457a6819 debug vs. opt problem. I need these labels at run time for PR_LOG.
git-svn-id: svn://10.0.0.236/trunk@66530 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:49:58 +00:00
ftang%netscape.com
7fe0360603 first add for nsILocalFile unicode interface wrapper code
not part of the build system yet.


git-svn-id: svn://10.0.0.236/trunk@66529 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:44:03 +00:00
putterman%netscape.com
2d7ee10e86 r=sspitzer. Move more functions into new FE files. Make sent folder display recipient column.
Make sorting by size and priority work correctly.


git-svn-id: svn://10.0.0.236/trunk@66528 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:30:32 +00:00
sspitzer%netscape.com
f310597284 fix warnings.
git-svn-id: svn://10.0.0.236/trunk@66527 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:18:55 +00:00
sspitzer%netscape.com
b621b1b8f1 more work for the subscribe dialog. use PR_LOG instead of printfs. #35217
git-svn-id: svn://10.0.0.236/trunk@66526 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:12:14 +00:00
ftang%netscape.com
55a9331676 fix 34963. check in fix patch by m_kato@ga2.so-net.ne.jp
add ::CoUninitialize


git-svn-id: svn://10.0.0.236/trunk@66525 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:09:59 +00:00
ftang%netscape.com
d578dffe20 fix 22116. Check in patch from m_kato@ga2.so-net.ne.jp
Perform IsDBCSLeadByte before 0x5c escaping


git-svn-id: svn://10.0.0.236/trunk@66524 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 05:08:02 +00:00
brendan%mozilla.org
a52af9e334 Add nsTraceMalloc.[ch] and bloatblame.c, not part of build (setenv NS_TRACE_MALLOC to enable here and in xpfe/bootstrap).
git-svn-id: svn://10.0.0.236/trunk@66523 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:55:26 +00:00
jband%netscape.com
ea3832197e update comment - mostly just to verify that I can checkin from my Mac without bad things happening.
git-svn-id: svn://10.0.0.236/trunk@66522 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:50:06 +00:00
troy%netscape.com
f9339d1efa b=6252 Fixed problem with computing of hypothetical box
git-svn-id: svn://10.0.0.236/trunk@66521 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:44:32 +00:00
brendan%mozilla.org
7c7ede314f Added NS_TraceMalloc support (ifdef'd off -- not part of build by default).
git-svn-id: svn://10.0.0.236/trunk@66520 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:35:07 +00:00
pavlov%netscape.com
a8ed449125 fix ups for COMPOUND_TEXT
git-svn-id: svn://10.0.0.236/trunk@66519 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 04:26:24 +00:00
sfraser%netscape.com
e70599bdc0 Fix for 29843 -- caret disappears on delete. r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@66518 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:59:50 +00:00
sfraser%netscape.com
d158f6cf76 Fix a warning.
git-svn-id: svn://10.0.0.236/trunk@66517 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:58:10 +00:00
sfraser%netscape.com
b2af441c4b Tweak the WaitNextEvent sleep time depending on what the browser is doing (if there are file or network connections active). r=jfrancis
git-svn-id: svn://10.0.0.236/trunk@66516 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:57:39 +00:00
sfraser%netscape.com
98afab0b38 Just rename some mFoo static member variables to sFoo.
git-svn-id: svn://10.0.0.236/trunk@66515 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:55:00 +00:00
putterman%netscape.com
ef35fa88a2 Turn off probe maps. This speeds up loading a folder. r=bienvenu.
git-svn-id: svn://10.0.0.236/trunk@66514 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:46:32 +00:00
rods%netscape.com
335366306f uncommenting out some important clean up code and gating it with "!kGoodToGo"
should fix leaks


git-svn-id: svn://10.0.0.236/trunk@66513 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:42:12 +00:00
sspitzer%netscape.com
99fe1f804c more changes for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@66512 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:41:30 +00:00
jband%netscape.com
b251c67df7 fix typo bug that was causing wrapper cache misses on wrapper around objects implementing multiple interfaces when the first wrapper is made for an interface that is not leftmost
git-svn-id: svn://10.0.0.236/trunk@66511 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:38:47 +00:00
pavlov%netscape.com
b41b43c634 fix support for UTF8_STRING and add code to begin work on COMPOUND_TEXT support
git-svn-id: svn://10.0.0.236/trunk@66510 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:29:06 +00:00
mscott%netscape.com
a341169351 fix build breakage for davidb
git-svn-id: svn://10.0.0.236/trunk@66509 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:18:45 +00:00
mscott%netscape.com
4f8d8b2ab0 fix build breakage for davidb.
git-svn-id: svn://10.0.0.236/trunk@66508 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:18:31 +00:00
ashuk%eng.sun.com
9cf731c129 fixed small bug with call to getSourceBytes
_Ashu


git-svn-id: svn://10.0.0.236/trunk@66507 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:16:15 +00:00
roeber%netscape.com
ceba238a3a Getting session objects working.
git-svn-id: svn://10.0.0.236/trunk@66506 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 03:14:47 +00:00
ashuk%eng.sun.com
fdc4a78470 new signature for getSourceBytes
_Ashu


git-svn-id: svn://10.0.0.236/trunk@66505 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:59:53 +00:00
bienvenu%netscape.com
c9866021b9 attempt to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@66504 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:46:01 +00:00
bienvenu%netscape.com
976c2bcaea ifdef out code causing link problem
git-svn-id: svn://10.0.0.236/trunk@66503 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:21:40 +00:00
bienvenu%netscape.com
69ad15ca70 fix linux build bustage
git-svn-id: svn://10.0.0.236/trunk@66502 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:14:24 +00:00
bienvenu%netscape.com
42ec5a4c2e add nsImapSearch to unix makefile
git-svn-id: svn://10.0.0.236/trunk@66501 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:12:07 +00:00
pinkerton%netscape.com
ed40ec06d6 don't init context menu stuff if it's not present.
git-svn-id: svn://10.0.0.236/trunk@66500 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:01:12 +00:00
pinkerton%netscape.com
40fe50ec26 Adding top and left to screen object because they're not always at 0,0 and
availTop and availLeft aren't good enough for all cases.


git-svn-id: svn://10.0.0.236/trunk@66499 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:00:55 +00:00
bienvenu%netscape.com
b92acce064 add search session and imap search
git-svn-id: svn://10.0.0.236/trunk@66498 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 02:00:07 +00:00
pinkerton%netscape.com
e6b0f66500 Adding top and left to screen object.
git-svn-id: svn://10.0.0.236/trunk@66497 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:59:24 +00:00
pinkerton%netscape.com
2369d36239 Adding top and left because they are not always at 0,0.
git-svn-id: svn://10.0.0.236/trunk@66496 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:58:36 +00:00
pinkerton%netscape.com
9c1ea57df4 Adding screen.top and screen.left
git-svn-id: svn://10.0.0.236/trunk@66495 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:57:16 +00:00
jefft%netscape.com
51a847e8ce partial fix for limit message size download; we now generate truncated message html from mime
git-svn-id: svn://10.0.0.236/trunk@66494 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:55:42 +00:00
bienvenu%netscape.com
0f310fe0a6 add PROGID for search session
git-svn-id: svn://10.0.0.236/trunk@66493 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:40:39 +00:00
bienvenu%netscape.com
1d11345bf1 fix linux build bustage
git-svn-id: svn://10.0.0.236/trunk@66492 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:36:16 +00:00
jdunn%netscape.com
283e18968a Structs are inheritently private, so friend is required
r= waterson@netscape.com


git-svn-id: svn://10.0.0.236/trunk@66491 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:33:29 +00:00
bienvenu%netscape.com
bf68fe4b68 add include of nsIMsgSearchSession
git-svn-id: svn://10.0.0.236/trunk@66490 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:32:02 +00:00
jdunn%netscape.com
37e4d99aab adding newline for hp
git-svn-id: svn://10.0.0.236/trunk@66489 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:30:45 +00:00
bienvenu%netscape.com
e909d1ce59 maintain folder flags if we delete a local mail folder potential fix for 24376
git-svn-id: svn://10.0.0.236/trunk@66488 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:26:45 +00:00
bienvenu%netscape.com
cccc474333 more work on search, not part of build
git-svn-id: svn://10.0.0.236/trunk@66487 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:19:41 +00:00
bienvenu%netscape.com
e83a56298f remove Init method for search, not part of build
git-svn-id: svn://10.0.0.236/trunk@66486 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:17:05 +00:00
wtc%netscape.com
1444dc6553 Bugzilla bug #36250: updated the list of modules to check out for
$pull(runtime).  r=sfraser@netscape.com


git-svn-id: svn://10.0.0.236/trunk@66485 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:16:52 +00:00
bienvenu%netscape.com
f47c14fe8c add search session to mail news url, not used yet
git-svn-id: svn://10.0.0.236/trunk@66484 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:13:31 +00:00
bienvenu%netscape.com
8386723f37 fix generation of search url spec
git-svn-id: svn://10.0.0.236/trunk@66483 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:11:52 +00:00
bienvenu%netscape.com
e1be5d5ddd fix parsing of search urls
git-svn-id: svn://10.0.0.236/trunk@66482 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:11:05 +00:00
ruslan%netscape.com
f6444fea8a Adjust transport socket timeout everytime it's getting put back into the
work queue. Fix WinGate crash (32048) by stopping using polable events in case
when creation of pollable event has failed (until nspr finds a real solution).
Fix 36445. Apply slamm's patch to shut off some compiler warnings.


git-svn-id: svn://10.0.0.236/trunk@66481 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:10:30 +00:00
dougt%netscape.com
b7617f6ab3 fix for 36266. submitting by koehler@mythrium.com.
git-svn-id: svn://10.0.0.236/trunk@66480 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:08:53 +00:00
mccabe%netscape.com
3ff433857d Ignore some generated Makefiles
git-svn-id: svn://10.0.0.236/trunk@66479 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 01:08:17 +00:00
dveditz%netscape.com
15b7512934 Bug 6252, making tinderbox popups work for Mozilla. The code comes from
dbaron@fas.harvard.edu, and I modified the browser version detection
code slightly.


git-svn-id: svn://10.0.0.236/trunk@66478 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 00:50:15 +00:00
danm%netscape.com
9d6d0ce704 fix bad URL in last checkin
git-svn-id: svn://10.0.0.236/trunk@66477 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-20 00:10:50 +00:00
wtc%netscape.com
9b91a671e3 Bugzilla bug #36170: pass the correct OS error code to PR_SetError when
the load library function fails.  Thanks to justin@68k.org for the bug
report and suggesting a fix.


git-svn-id: svn://10.0.0.236/trunk@66476 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 23:34:48 +00:00
norris%netscape.com
cedf1a3762 Add line number information.
git-svn-id: svn://10.0.0.236/trunk@66475 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 23:24:04 +00:00
nisheeth%netscape.com
c2106f0282 More changes to get Transformiix to build as a Mozilla component on windows. Not part of the mozilla build.
git-svn-id: svn://10.0.0.236/trunk@66474 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 23:07:33 +00:00
locka%iol.ie
a267b65ead Removed .sbr file generation C flag
Added the bin directory to the PATH so control can be registered


git-svn-id: svn://10.0.0.236/trunk@66473 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:46:22 +00:00
rogerl%netscape.com
41b94e7563 Removing variables.
git-svn-id: svn://10.0.0.236/trunk@66472 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:45:57 +00:00
rogerl%netscape.com
c7b01f8cea Added hasOwnProperty, propertyIsEnumerable, isPrototypeOf to Object.
git-svn-id: svn://10.0.0.236/trunk@66471 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:32:50 +00:00
beard%netscape.com
ebfb917075 Compatibility with Universal Headers 3.3 or later. a=leaf
git-svn-id: svn://10.0.0.236/trunk@66470 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:13:51 +00:00
beard%netscape.com
f81bec15ac Added target for Universal Interfaces 3.3.
git-svn-id: svn://10.0.0.236/trunk@66469 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:07:47 +00:00
roeber%netscape.com
c2d6384af2 Wait a minute, I was right the first time: I don't need to worry about
endianness, that's a display problem.


git-svn-id: svn://10.0.0.236/trunk@66468 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:07:09 +00:00
despotdaemon%netscape.com
03275d2412 Pseudo-automatic update of changes made by wtc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66467 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 22:04:43 +00:00
saari%netscape.com
3f2a2b73c9 dist... chrome restructuring
git-svn-id: svn://10.0.0.236/trunk@66466 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:54:45 +00:00
saari%netscape.com
7cc067d14b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@66465 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:53:22 +00:00
danm%netscape.com
fda3acfcbd dist...chrome restructuring
git-svn-id: svn://10.0.0.236/trunk@66464 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:42:30 +00:00
roeber%netscape.com
b555cc52b0 Multiple changes to get the cryptoki framework and builtin-object
module working:  1) C_GetFunctionList is always present; 2) fwObject
and fwSession now remember their handles on behalf of the fwInstance;
3) fwSessions are created before mdSessions, so the mdSession can
use the fwSession's arena; 4) finished implementing findObjects;
5) builtin constants are in network byte order; 6) libnssckbi.so
knows about and can pull in its dependencies (e.g. libnssckfw.so,
libnssb.so, and NSPR).


git-svn-id: svn://10.0.0.236/trunk@66463 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:32:38 +00:00
roeber%netscape.com
f85ed5e665 I missed a couple usages of nssUTF8_Size when its signature changed.
Also made a pedantic check #ifdef PEDANTIC.


git-svn-id: svn://10.0.0.236/trunk@66462 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:24:57 +00:00
roeber%netscape.com
833aaa0bee Free from the beginning of the real block pointer, not the user's pointer.
git-svn-id: svn://10.0.0.236/trunk@66461 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:23:13 +00:00
sgehani%netscape.com
50b21d933b Use new INI parser keys.
b=36395
a=leaf


git-svn-id: svn://10.0.0.236/trunk@66460 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 21:21:22 +00:00
dougt%netscape.com
c407eb7891 Fix for 36236. Make all https channels use the load flag:
INHIBIT_PERSISTENT_CACHING.  r=davidm@netscape.com


git-svn-id: svn://10.0.0.236/trunk@66458 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 19:59:40 +00:00
valeski%netscape.com
3720ba25a9 adding cmd line arg usage, not part of builds
git-svn-id: svn://10.0.0.236/trunk@66457 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 19:58:29 +00:00
valeski%netscape.com
f45c9c82c8 NOT PART OF BUILD. adding a protocol callback test harness
git-svn-id: svn://10.0.0.236/trunk@66453 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 17:47:45 +00:00
locka%iol.ie
e9d3aff69f Fixed a build dependency problem with the idl file
git-svn-id: svn://10.0.0.236/trunk@66452 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 17:13:00 +00:00
locka%iol.ie
c25964419c Removed MIDL autogenerated header file
git-svn-id: svn://10.0.0.236/trunk@66451 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 17:09:59 +00:00
rods%netscape.com
f6659ace4f change char detection to use unichar and upper case so now pressing 't' or 'T'
gets you the first item that begin with 't' ot 'T'
Bug 34630


git-svn-id: svn://10.0.0.236/trunk@66450 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 14:57:44 +00:00
jdunn%netscape.com
67c52e8eef adding newline - hp bustage
git-svn-id: svn://10.0.0.236/trunk@66449 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 14:57:43 +00:00
rods%netscape.com
9d806d5fd4 no longer strips beginning and ending spaces of value when GetAttributeValueAt
is called.
Bug 33050


git-svn-id: svn://10.0.0.236/trunk@66448 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 14:00:11 +00:00
rods%netscape.com
b4be14287d added new rules for -moz-display-comboboxcontrol-frame
bug 33515


git-svn-id: svn://10.0.0.236/trunk@66447 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 13:55:57 +00:00
rods%netscape.com
bbcb0f397d Not enabling creator's to be asked if they want to create a special frame for anonymous content
bug 33515


git-svn-id: svn://10.0.0.236/trunk@66446 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 13:55:17 +00:00
kvisco%ziplink.net
b0bd21cd05 updated examples to show generate-id that takes an argument
git-svn-id: svn://10.0.0.236/trunk@66445 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 11:07:04 +00:00
kvisco%ziplink.net
82f21d32ee added support for optional NodeSet argument
git-svn-id: svn://10.0.0.236/trunk@66444 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 11:06:09 +00:00
kvisco%ziplink.net
1a08fb523b updated make files to add new files, updated functions.xsl to show an example of generate-id()
git-svn-id: svn://10.0.0.236/trunk@66443 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:43:41 +00:00
kvisco%ziplink.net
1d8f8edf06 added support for extension functions
git-svn-id: svn://10.0.0.236/trunk@66442 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:41:13 +00:00
kvisco%ziplink.net
5f342946a5 initial checkin: generate-id extension function
git-svn-id: svn://10.0.0.236/trunk@66441 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:40:06 +00:00
kvisco%ziplink.net
d9c475bece updated to include xslt extension functions
git-svn-id: svn://10.0.0.236/trunk@66440 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:38:01 +00:00
kvisco%ziplink.net
57cd1c2618 Added definitions for some of the XSLT extension functions
git-svn-id: svn://10.0.0.236/trunk@66439 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:32:35 +00:00
kvisco%ziplink.net
721532228f Added the generateId method
git-svn-id: svn://10.0.0.236/trunk@66438 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 10:31:32 +00:00
rickg%netscape.com
926b4bff3d backing out for now; I'll retry tomorrow
git-svn-id: svn://10.0.0.236/trunk@66437 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 09:04:46 +00:00
rickg%netscape.com
d7bc270f6f try to fix tinderbox bustage for nisheeth
git-svn-id: svn://10.0.0.236/trunk@66436 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:45:45 +00:00
hyatt%netscape.com
d4539ffc73 Converting XBL bindings to use id.
git-svn-id: svn://10.0.0.236/trunk@66435 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:20:20 +00:00
hyatt%netscape.com
acdc95c40a Switching name to id in XBL.:
git-svn-id: svn://10.0.0.236/trunk@66434 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:19:47 +00:00
alecf%netscape.com
2c2f52f6c2 add temporary styles for filters being enabled/disabled
git-svn-id: svn://10.0.0.236/trunk@66433 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:15:00 +00:00
alecf%netscape.com
59ef83b016 add cool icons when a filter is enabled, and add a warning about filing bugs
git-svn-id: svn://10.0.0.236/trunk@66432 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:13:08 +00:00
alecf%netscape.com
c6a32b2ae0 use the new non-html widgets, and take out the html namespace entirely
git-svn-id: svn://10.0.0.236/trunk@66431 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:12:02 +00:00
rickg%netscape.com
57616b9065 removed warnings; retry landing Strict DTD. r=harishd
git-svn-id: svn://10.0.0.236/trunk@66430 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 08:08:28 +00:00
nisheeth%netscape.com
ce05c41617 Fix for bug 30091. nsFormControlList::NamedItem() was doing a linear walk through the form control list. Now it uses a hash table lookup. This greatly reduces the time for the screen to update when one clicks on the Program list box on the Bugzilla query page.
git-svn-id: svn://10.0.0.236/trunk@66429 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 07:49:07 +00:00
alecf%netscape.com
d0a56f8f93 add locale directory to build (doh!)
git-svn-id: svn://10.0.0.236/trunk@66428 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 07:42:40 +00:00
alecf%netscape.com
ae314bab8b remove spam filter item and enable mail filters item
git-svn-id: svn://10.0.0.236/trunk@66427 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:43:36 +00:00
waterson%netscape.com
9ea3990175 Bug 10208. Correctly update 'empty' attribute when a container's contents are changed.
git-svn-id: svn://10.0.0.236/trunk@66426 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:39:26 +00:00
alecf%netscape.com
69c003384f clean this up (not part of build anyway)
git-svn-id: svn://10.0.0.236/trunk@66425 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:37:47 +00:00
alecf%netscape.com
ff129411f3 convert base to be a generic factory, and add temporary ProgIDs for the filter delegate factory
git-svn-id: svn://10.0.0.236/trunk@66424 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:32:22 +00:00
alecf%netscape.com
3923612700 add filter datasource and delegate factory to the windows build
git-svn-id: svn://10.0.0.236/trunk@66423 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:25:50 +00:00
alecf%netscape.com
2160b60799 add filter datasource and delegate factory to unix build
git-svn-id: svn://10.0.0.236/trunk@66422 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:24:46 +00:00
alecf%netscape.com
d2ae47c1e4 added nsMsgFilterDataSource.cpp and nsMsgFilterDelegateFactory.cpp
git-svn-id: svn://10.0.0.236/trunk@66421 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:23:36 +00:00
alecf%netscape.com
d282628224 export nsMsgRDFUtils.h so search can use it.
git-svn-id: svn://10.0.0.236/trunk@66420 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 05:00:34 +00:00
sspitzer%netscape.com
76b86bd7b1 cleanup of some of the migration code. this is needed before we properly fix #36249
git-svn-id: svn://10.0.0.236/trunk@66419 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:58:36 +00:00
davidm%netscape.com
c02dd57263 28412 metaDataLength is wrong in nsCachedNetData::Deserialize
Update streamasfile interface to be a file rather than filename.


git-svn-id: svn://10.0.0.236/trunk@66418 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:55:57 +00:00
sgehani%netscape.com
be504c48ca Update usage comments.
git-svn-id: svn://10.0.0.236/trunk@66417 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:55:40 +00:00
davidm%netscape.com
782be6b659 28412 metaDataLength is wrong in nsCachedNetData::Deserialize. Add routines to build stream from char* and length
git-svn-id: svn://10.0.0.236/trunk@66416 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:54:53 +00:00
davidm%netscape.com
9445a7c86d Replace nsString with nsCString. Add routines for setting the ext froma comma delimenated list
git-svn-id: svn://10.0.0.236/trunk@66415 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:45:30 +00:00
troy%netscape.com
512dca046c b=26221 Fixed ConstructFrameByDisplayType() to pass in the correct parent
frame pointer when constructing a floated table


git-svn-id: svn://10.0.0.236/trunk@66414 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:44:16 +00:00
sgehani%netscape.com
f2f8fc2e1e Added site selector feature, dynamic download path feature, graceful error handling if running on a system that is older than OS 8.5, and we now handle comments in the INI parser. Also, got rid of bad access paths in the project file.
b = 34836, 32694, 32766, 36253


git-svn-id: svn://10.0.0.236/trunk@66413 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:43:14 +00:00
davidm%netscape.com
d3d43bee83 Fix problem with prefs not being initialized
git-svn-id: svn://10.0.0.236/trunk@66412 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:43:04 +00:00
davidm%netscape.com
187dcfca7c 21100 Implement file cache
git-svn-id: svn://10.0.0.236/trunk@66411 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:41:57 +00:00
davidm%netscape.com
34312be304 35197 Leaking nsFileSpecImpl
git-svn-id: svn://10.0.0.236/trunk@66410 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:41:28 +00:00
waterson%netscape.com
7e98956c88 Bug 24762. Use arena-based fixed-size allocator for enumerator objects. r=scc
git-svn-id: svn://10.0.0.236/trunk@66409 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:37:41 +00:00
waterson%netscape.com
19c0036fac Bug 24762. Use arena-based fixed-size allocator for Assertion, PLHashEntry, and enumerator objects. r=scc
git-svn-id: svn://10.0.0.236/trunk@66408 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:36:28 +00:00
sgehani%netscape.com
e4b1934167 Whitespace formatting for last warnings' checkin.
git-svn-id: svn://10.0.0.236/trunk@66407 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:32:46 +00:00
ruslan%netscape.com
a6866c4a57 Fire OnStop on the right listener
git-svn-id: svn://10.0.0.236/trunk@66406 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:19:18 +00:00
sgehani%netscape.com
df59affbb8 Fix all 143 build warnings.
NOTE:
Compiled on RedHat 6.1 Linux and debian Linux.


git-svn-id: svn://10.0.0.236/trunk@66405 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:16:28 +00:00
sspitzer%netscape.com
0998fc31e6 fix for #34739. when possible, ask for a news article by number, not by message id.
git-svn-id: svn://10.0.0.236/trunk@66404 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:14:33 +00:00
alecf%netscape.com
a1297dbea3 update delegate factory to create the object first, then QI
(so object creation is not dependant on the interface)


git-svn-id: svn://10.0.0.236/trunk@66403 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 04:00:15 +00:00
ruslan%netscape.com
649ea793cf Fix 24884
git-svn-id: svn://10.0.0.236/trunk@66402 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:55:56 +00:00
jefft%netscape.com
22ca60b844 not correctly initialized limit message download size
git-svn-id: svn://10.0.0.236/trunk@66401 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:42:58 +00:00
jefft%netscape.com
4c0572ac5d make sure we write out 4 digit status flag; this fixes local mail folder corrupted problem when updating folder message flags
git-svn-id: svn://10.0.0.236/trunk@66400 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:39:45 +00:00
waterson%netscape.com
608cdf55ec Add nsFixedSizeAllocator.cpp to the build.
git-svn-id: svn://10.0.0.236/trunk@66399 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:27:42 +00:00
troy%netscape.com
e1791f741f b=36220 Added check for a frame type of "areaFrame"
git-svn-id: svn://10.0.0.236/trunk@66398 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:27:31 +00:00
sspitzer%netscape.com
96c8f11f3a backing myself out. the problem of what to do on out of disk space is not
going to be fixed this way.


git-svn-id: svn://10.0.0.236/trunk@66397 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:20:23 +00:00
waterson%netscape.com
5e5619176a Add nsFixedSizeAllocator.cpp to build.
git-svn-id: svn://10.0.0.236/trunk@66396 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:17:32 +00:00
waterson%netscape.com
c9b44264cb Initial revision.
git-svn-id: svn://10.0.0.236/trunk@66395 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:15:25 +00:00
troy%netscape.com
acf6fe34f4 b=36202 Patch from roc+moz@cs.cmu.edu that makes sure we invalidate if
necessary when pulling up frames


git-svn-id: svn://10.0.0.236/trunk@66394 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:12:13 +00:00
sspitzer%netscape.com
05cb5c10d6 add error module for the profile module.
git-svn-id: svn://10.0.0.236/trunk@66393 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 03:04:49 +00:00
dveditz%netscape.com
f8ec34399c resurrecting VC 5.0 build -- again
git-svn-id: svn://10.0.0.236/trunk@66392 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 02:36:21 +00:00
endico%mozilla.org
8823ce2547 backing out because this has broken bugzilla.mozilla.org. the choice is no longer given in show_bug.cgi to make bugs confidential. I need to change lounge so it no longer automatically updates.
git-svn-id: svn://10.0.0.236/trunk@66391 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 02:14:41 +00:00
troy%netscape.com
e68720f217 b=15405 Renamed root frame to canvas frame and changed frame construction
code to propagate document element's background to canvas


git-svn-id: svn://10.0.0.236/trunk@66390 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 02:13:43 +00:00
rogerl%netscape.com
f2e47face0 Began moving away from variables, fixed compare/branch ordering.
Testcases working.


git-svn-id: svn://10.0.0.236/trunk@66389 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 02:09:06 +00:00
thayes%netscape.com
ab02f6ff88 Add initial cmtsdr.c file for SDR implementation from M14 branch
git-svn-id: svn://10.0.0.236/trunk@66388 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:43:29 +00:00
thayes%netscape.com
d7a558c2d9 Merge changes for SDR encrypt and decrypt from M14 branch
git-svn-id: svn://10.0.0.236/trunk@66387 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:38:04 +00:00
thayes%netscape.com
37d3a6797f Add protocol opcodes for SDR encrypt and decrypt
git-svn-id: svn://10.0.0.236/trunk@66385 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:29:56 +00:00
tajima%eng.sun.com
49a6e20a7d fix for 35829: need ja_JP.PCK entry in unixcharset.properties for Solaris Shift_JIS: r=ftang@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66384 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:26:23 +00:00
rjc%netscape.com
87964a9ccd Fix bug # 33703: persist the "open" attribute on file/ftp listings.
git-svn-id: svn://10.0.0.236/trunk@66383 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:06:20 +00:00
alecf%netscape.com
d53abb4c85 fix datasource to treat delegates as opaque objects which are QI'ed to find their type. implement GetTarget and GetTargets for filters.
Not part of build.


git-svn-id: svn://10.0.0.236/trunk@66381 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:04:14 +00:00
alecf%netscape.com
f9a704dc51 implemented Get/SetFilterName/Desc, and remove old duplicate GetName/Description methods
git-svn-id: svn://10.0.0.236/trunk@66380 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:03:01 +00:00
bienvenu%netscape.com
052e0d1456 More work on search, not run yet
git-svn-id: svn://10.0.0.236/trunk@66379 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:01:51 +00:00
alecf%netscape.com
52764f97d8 update some strings to match the spec
git-svn-id: svn://10.0.0.236/trunk@66378 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:01:26 +00:00
bienvenu%netscape.com
c20e8a36c7 add msg folder to Search interface, not run yet
git-svn-id: svn://10.0.0.236/trunk@66377 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:01:08 +00:00
alecf%netscape.com
34ce21c978 make filter dialog actually capable of listing filters through RDF!
Also bring filter editor closer up to spec
(not really part of anything just yet)


git-svn-id: svn://10.0.0.236/trunk@66376 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 01:01:05 +00:00
ssu%netscape.com
d2d5f9e6f3 fixing bugs 7874 (on going) and 30909.
Affects only windows platforms.


git-svn-id: svn://10.0.0.236/trunk@66375 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:51:00 +00:00
sspitzer%netscape.com
bb9b739242 fix for #32649. make it so an error on migration makes its way into an alert for the user.
(still more work to do when handling out of space errors.)  clean up code.


git-svn-id: svn://10.0.0.236/trunk@66374 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:49:51 +00:00
scc%netscape.com
2484865aa6 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66373 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:36:46 +00:00
cls%seawood.org
4abbec56b0 Added SeaMonkey-Ports to the tree list
git-svn-id: svn://10.0.0.236/trunk@66372 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:32:33 +00:00
scc%netscape.com
67560a359c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66371 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:19:06 +00:00
pavlov%netscape.com
6ab5455913 fix windows bustage
git-svn-id: svn://10.0.0.236/trunk@66370 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:17:51 +00:00
sspitzer%netscape.com
4e9595b85a really adding nsILocalMailIncomingServer.idl to the build this time.
last time, I was just smoking crack.


git-svn-id: svn://10.0.0.236/trunk@66369 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:12:32 +00:00
alecf%netscape.com
c14ab48429 get rid of xp_core.h dependancies
git-svn-id: svn://10.0.0.236/trunk@66368 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-19 00:03:14 +00:00
rhp%netscape.com
280c627eb2 Just adding files to the tree - NOT PART OF THE BUILD!!!
git-svn-id: svn://10.0.0.236/trunk@66367 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:59:32 +00:00
pavlov%netscape.com
8df6302299 fix for not being able to change profile directories on windows (bug #35821)
git-svn-id: svn://10.0.0.236/trunk@66365 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:55:06 +00:00
scc%netscape.com
d2a7990448 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66364 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:53:10 +00:00
ftang%netscape.com
34376d1ac5 fix bug 35240. Use nsCString to keep mFile for now.
git-svn-id: svn://10.0.0.236/trunk@66363 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:49:17 +00:00
ftang%netscape.com
abe206b6a8 remove euro entry from symbol encoding. The updated Adobe table have euro
symbol in it but most of the symbol font do not have it.
r=erik


git-svn-id: svn://10.0.0.236/trunk@66362 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:43:53 +00:00
slamm%netscape.com
010f90a657 Clean up old tbx.xxxxx mail files in data/.
git-svn-id: svn://10.0.0.236/trunk@66361 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:35:08 +00:00
cata%netscape.com
ec1019f1a0 Implementation for the new methods in the nsICharsetConverterManager2 interface.
git-svn-id: svn://10.0.0.236/trunk@66360 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:31:28 +00:00
tbogard%aol.net
38b7587274 Remove unused variable.
git-svn-id: svn://10.0.0.236/trunk@66359 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:31:26 +00:00
cata%netscape.com
e889af2513 New methods in the nsICharsetConverterManager2 interface.
git-svn-id: svn://10.0.0.236/trunk@66358 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:30:34 +00:00
tbogard%aol.net
34be4f1d74 Don't persist "about:blank" in the session history.
git-svn-id: svn://10.0.0.236/trunk@66357 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:30:02 +00:00
sgehani%netscape.com
d51a78592c Ignoring generated Makefile and compiled installer binary.
git-svn-id: svn://10.0.0.236/trunk@66356 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:20:42 +00:00
sgehani%netscape.com
9415196f58 Adding xptlinking phase to Unix installer delivery script.
git-svn-id: svn://10.0.0.236/trunk@66355 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:17:53 +00:00
pinkerton%netscape.com
c522733aab removed color picker files for pavlov.
git-svn-id: svn://10.0.0.236/trunk@66354 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:13:02 +00:00
donm%bluemartini.com
861e3e08fb bug 25010 add ability to easily edit groups
git-svn-id: svn://10.0.0.236/trunk@66353 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:12:00 +00:00
pavlov%netscape.com
c8b7b143d3 remove creation code for colorpicker
git-svn-id: svn://10.0.0.236/trunk@66352 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:07:43 +00:00
pavlov%netscape.com
0fd3b8d905 remove color picker files since it was replaced by the xbl version
git-svn-id: svn://10.0.0.236/trunk@66351 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:06:23 +00:00
troy%netscape.com
079299546c Added "canvasFrame" frame type atom
git-svn-id: svn://10.0.0.236/trunk@66350 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:05:15 +00:00
valeski%netscape.com
ead9dc862f 26191. FTP can now recover when browsing and a connection times out
git-svn-id: svn://10.0.0.236/trunk@66349 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:05:12 +00:00
jj%netscape.com
6c6b554eb4 removed obsolete resource.shlb ; r=sfraser
git-svn-id: svn://10.0.0.236/trunk@66347 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:01:06 +00:00
jst%netscape.com
c33863d639 Updating the DOM interfaces HTMLFormElement and HTMLOptionElement to DOM Level 2.
git-svn-id: svn://10.0.0.236/trunk@66346 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:00:58 +00:00
troy%netscape.com
c5e890f8a6 Initial check-in
git-svn-id: svn://10.0.0.236/trunk@66345 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 23:00:50 +00:00
buster%netscape.com
f39b7faae9 bug 26917 (using "-d" option on viewer causes premature exit)
r=travis


git-svn-id: svn://10.0.0.236/trunk@66344 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:59:12 +00:00
jst%netscape.com
32aa1b74f9 Updating the HTMLObjectElement interface to DOM Level 2.
git-svn-id: svn://10.0.0.236/trunk@66343 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:57:42 +00:00
nhotta%netscape.com
47929299c8 Changed to check the line breaker flag to detect it needs more text, bug 27062.
git-svn-id: svn://10.0.0.236/trunk@66342 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:53:21 +00:00
jgaunt%netscape.com
1e866dd5dc Fixing build bustage: adding newline for HPUX
git-svn-id: svn://10.0.0.236/trunk@66340 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:48:04 +00:00
jband%netscape.com
140f88e299 egads! lost the return type declaration in a copy/paste goofup.
git-svn-id: svn://10.0.0.236/trunk@66339 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:46:48 +00:00
slamm%netscape.com
d206144527 Fix DTD file name (bug 33237).
git-svn-id: svn://10.0.0.236/trunk@66337 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:40:59 +00:00
akkana%netscape.com
eb9b9e717d 29794: Disable meta-refresh in editor pages.
API and some implementation for 6276: rewrap.


git-svn-id: svn://10.0.0.236/trunk@66336 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:39:10 +00:00
pavlov%netscape.com
63ad099071 partial fix for transient windows not being transient bug #19255
git-svn-id: svn://10.0.0.236/trunk@66335 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:38:49 +00:00
akkana%netscape.com
7bfd820f78 33753: don't output the doctype when outputting only selection
git-svn-id: svn://10.0.0.236/trunk@66331 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:31:00 +00:00
slamm%netscape.com
1c4a8c2dd8 mini-hack: add /bin to path for cwd.
git-svn-id: svn://10.0.0.236/trunk@66329 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:20:30 +00:00
cls%seawood.org
4280283ad2 Exporting LIBRARY_PATH & ADDON_PATH vars needed for BeOS runtime.
git-svn-id: svn://10.0.0.236/trunk@66328 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:19:14 +00:00
jband%netscape.com
851e24b380 NOT PART OF BUILD. cvs is a fine place for the TODO list
git-svn-id: svn://10.0.0.236/trunk@66327 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:19:12 +00:00
sspitzer%netscape.com
60520775bc more divorcing of pop from local mail. use the nsILocalMailIncomingServer interface
for what is shared between pop and none (and eventually movemail).
changes needed for tobias, who will be fixing some i18n bugs in mailnews.


git-svn-id: svn://10.0.0.236/trunk@66326 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:10:36 +00:00
jst%netscape.com
776ee71d62 Fixing bug #25359, accessing mimetypes by name wasn't implemented, now it is. r=av@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66324 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:08:05 +00:00
pinkerton%netscape.com
29d3966f2b adding ability to drag links from the content area. thanks to Kevin Puetz (puetzk@iastate.edu) for this feature.
git-svn-id: svn://10.0.0.236/trunk@66323 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:06:25 +00:00
sspitzer%netscape.com
cd7a83ec68 adding nsILocalMailIncomingServer.idl to the build
git-svn-id: svn://10.0.0.236/trunk@66322 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 22:06:09 +00:00
edburns%acm.org
b51ab218cc bug 32011
r=ashuk
a=edburns

Add an "eventData" argument to WebclientEvent and subclasses.
This argument is sub-event specific.  For example, when a user
gets a DocumentLoadEvent, with an event type of
STATUS_URL_LOAD, the eventData is a String containing
the status string from the browser.

Added support for doing this in a BAL context.


git-svn-id: svn://10.0.0.236/trunk@66321 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:58:29 +00:00
jband%netscape.com
3d85343708 Fix sorting bug reported by Michael Kaply <mkaply@us.ibm.com>. There was a bad assumption that qsort would produce the exact same ordering on two arrays with elements of different size even when some string keys compare the same. The fix is to use the address of the string keys as a fallback in the compare function. This works right because the two arrays have diffrent elements, but they contain pointers to shared strings. r=mccabe
git-svn-id: svn://10.0.0.236/trunk@66320 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:57:57 +00:00
edburns%acm.org
7d273c0b6a bug 32011
r=ashuk
a=edburns

Add an "eventData" argument to WebclientEvent and subclasses.
This argument is sub-event specific.  For example, when a user
gets a DocumentLoadEvent, with an event type of
STATUS_URL_LOAD, the eventData is a String containing
the status string from the browser.


git-svn-id: svn://10.0.0.236/trunk@66319 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:57:42 +00:00
sspitzer%netscape.com
65240709c0 adding this interface. all local mail incoming servers should implement it.
git-svn-id: svn://10.0.0.236/trunk@66318 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:56:50 +00:00
rginda%netscape.com
e400e4c1b0 formatting changes. use only one tab regardless of nested namespaces
git-svn-id: svn://10.0.0.236/trunk@66317 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:51:45 +00:00
av%netscape.com
9889e4de2b #26893, moved GetDOMElement from nsIPluginTagInfo to nsIPluginTagInfo2.h
git-svn-id: svn://10.0.0.236/trunk@66316 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:44:56 +00:00
jband%netscape.com
5960528106 add an assert for a whacky case that is not supposed to happen but biting me a while back when some other code was broken. This has been kicking around my tree for a while.
git-svn-id: svn://10.0.0.236/trunk@66315 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:44:38 +00:00
slamm%netscape.com
bdd31d3cc5 Restore directory after find.
git-svn-id: svn://10.0.0.236/trunk@66314 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:40:55 +00:00
jfrancis%netscape.com
0ce2a2d341 tab in table, tab in lists, fixed inline style handling over multi-ranged selections
git-svn-id: svn://10.0.0.236/trunk@66313 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:39:35 +00:00
mscott%netscape.com
6b14d19867 Bug #36221 --> throbber never stops when loading a frameset doc.
I was signaling the stop notification via a OnchildStatus in this scenario. We should always signal the start
and stop of documents as a status change even if a child is originating the change.


git-svn-id: svn://10.0.0.236/trunk@66312 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:39:09 +00:00
jband%netscape.com
7fa4e4cdba NOT YET PART OF SEAMONKEY BUILD. added locking
git-svn-id: svn://10.0.0.236/trunk@66311 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:33:46 +00:00
pnunn%netscape.com
7a939399f7 bug#924. Added test in clean up. pnunn.
git-svn-id: svn://10.0.0.236/trunk@66310 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:20:56 +00:00
harishd%netscape.com
9cd3c6e67f XIF DTD now depends on a single stack rather than
multiple stacks.
r=akkana
Moved Node recycling to DTD Utils so that the recycler could
be used across DTDs.
r=rickg
Also fixed bug 27136.


git-svn-id: svn://10.0.0.236/trunk@66309 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:10:28 +00:00
nhotta%netscape.com
aab7fba560 Added more mapping for encodings, bug 27394, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@66308 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:09:52 +00:00
harishd%netscape.com
1a594bbf0e Checkin for akkana - Regression test change
r=me


git-svn-id: svn://10.0.0.236/trunk@66307 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:08:39 +00:00
nhotta%netscape.com
79585091d6 Added mail/news font setting by prefs (no UI yet) to libmime, bug 26182.
git-svn-id: svn://10.0.0.236/trunk@66306 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:07:19 +00:00
nhotta%netscape.com
1dad569e3e Forgot to use NS_MSG_BASE for added conversion functions.
git-svn-id: svn://10.0.0.236/trunk@66305 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:05:10 +00:00
nhotta%netscape.com
79275a9789 Changed to use nsILineBreaker instead of IsAsciiSpace, bug 27062, r=akkana.
git-svn-id: svn://10.0.0.236/trunk@66304 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 21:04:21 +00:00
valeski%netscape.com
4a3d32cfa5 we now use the cached, correct, event queue when firing our Async*() channel api calls from the FTP thread. this allows other applications to spin up FTP threads.
git-svn-id: svn://10.0.0.236/trunk@66303 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 20:56:04 +00:00
chuang%netscape.com
6f896464be Address Book drag and drop file, not in build yet.
git-svn-id: svn://10.0.0.236/trunk@66302 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 20:42:05 +00:00
mscott%netscape.com
cbd589f16e Bug #36218 --> fix ftp! We were unable to open the unknown content handler because we couldn't get
the dom window from the original docshell. I changed it to make this possible.


git-svn-id: svn://10.0.0.236/trunk@66301 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 20:41:38 +00:00
chuang%netscape.com
3c7779d2aa Bug11366 [FEATURE] Print Address Book Card, r=rhp+hangas
git-svn-id: svn://10.0.0.236/trunk@66300 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 20:27:28 +00:00
idk%eng.sun.com
32d14fbb0f (36174) Added null checking
a = idk@eng.sun.com


git-svn-id: svn://10.0.0.236/trunk@66299 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 18:38:01 +00:00
despotdaemon%netscape.com
59fcc7d65c Pseudo-automatic update of changes made by donm@bluemartini.com.
git-svn-id: svn://10.0.0.236/trunk@66298 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 18:05:07 +00:00
despotdaemon%netscape.com
403757ccce Pseudo-automatic update of changes made by cyeh@bluemartini.com.
git-svn-id: svn://10.0.0.236/trunk@66297 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 18:00:14 +00:00
terry%mozilla.org
6ff8085825 Patch by daa@distributed.net -- scan ftp listings, added summary stats for tinderbox.
git-svn-id: svn://10.0.0.236/trunk@66296 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 17:59:50 +00:00
despotdaemon%netscape.com
41e5c35a4f Pseudo-automatic update of changes made by cyeh@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66295 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 17:46:16 +00:00
jst%netscape.com
5307dee09b Adding DOM Level 2 interface definitions for AbstractView and DocumentView, not part of the build.
git-svn-id: svn://10.0.0.236/trunk@66294 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 17:07:52 +00:00
norris%netscape.com
f69d357294 Add missing method for 1.4R3 compatibility.
git-svn-id: svn://10.0.0.236/trunk@66293 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 16:53:28 +00:00
norris%netscape.com
7569513f71 Fix bug where a bean property can conflict with a method name.
git-svn-id: svn://10.0.0.236/trunk@66292 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 16:52:00 +00:00
norris%netscape.com
13d51fccf7 Fix bug:
var a = Math.abs;
  a(-245);

  gets the following error :

  org.mozilla.javascript.EvaluatorException: Method "abs" called on
  incompatible object.


git-svn-id: svn://10.0.0.236/trunk@66291 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 16:34:36 +00:00
brade%netscape.com
cb287dc0b5 commented out some code that really should be rewritten
git-svn-id: svn://10.0.0.236/trunk@66290 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 14:33:23 +00:00
brade%netscape.com
7dc400c4d2 submitted changes from Brian King (briano9@yahoo.com) as well as some tweaking needed to get it to layout a bit better with new xul widgets
git-svn-id: svn://10.0.0.236/trunk@66289 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 14:32:27 +00:00
brade%netscape.com
156b26d52f changes submitted by Dan Haddix (dan6992@hotmail.com); also I added some error checking
git-svn-id: svn://10.0.0.236/trunk@66288 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 14:26:36 +00:00
valeski%netscape.com
bb077d9b6c 27982. if we were trying to login and the server told us it was full (via a 421 code :-/), then just stop processing
git-svn-id: svn://10.0.0.236/trunk@66287 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 13:48:34 +00:00
valeski%netscape.com
91b336fbed fixing multi mixed so it can handle errors coming from the data producer (http)
git-svn-id: svn://10.0.0.236/trunk@66286 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 13:42:40 +00:00
valeski%netscape.com
495b392d65 35439. data urls having trouble with data including spaces.
git-svn-id: svn://10.0.0.236/trunk@66285 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 13:39:59 +00:00
dcone%netscape.com
dbe235678d Updated the Tiling code.
git-svn-id: svn://10.0.0.236/trunk@66284 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 13:39:26 +00:00
cls%seawood.org
5e8a0762d2 Forgot to add EXTRA_DSO_LIBS to EXTRA_DSO_LDOPTS
git-svn-id: svn://10.0.0.236/trunk@66283 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 11:20:13 +00:00
scc%netscape.com
ed3ad6524d making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66282 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 11:00:16 +00:00
scc%netscape.com
c1871d7c7c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66281 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 10:37:22 +00:00
scc%netscape.com
066cc67cc0 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66280 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 10:28:03 +00:00
cls%seawood.org
460fef543a Latest batch of OS/2 makefile changes. Batch 09. Bug #34106
git-svn-id: svn://10.0.0.236/trunk@66279 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 10:27:21 +00:00
scc%netscape.com
4e16eb1bd6 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66278 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 10:22:00 +00:00
cls%seawood.org
dbd3feb9c5 Added newlines for HP-UX build. Can we add a cvs filter that checks for this?
git-svn-id: svn://10.0.0.236/trunk@66277 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 09:52:24 +00:00
cls%seawood.org
08b799c0a5 Added support for building select individual modules using --enable-modules. Currently, only dbm, xpcom & necko work. At this point, you still have to pull the whole tree. We'll fix that later. Bugs 24515 & 34159
git-svn-id: svn://10.0.0.236/trunk@66276 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 09:42:12 +00:00
alecf%netscape.com
011c692fda further updates to the datasource to allow it to answer more questions
not part of build


git-svn-id: svn://10.0.0.236/trunk@66275 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 08:05:39 +00:00
scc%netscape.com
979b51638c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66274 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:52:02 +00:00
scc%netscape.com
4f0c5e3591 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66273 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:44:58 +00:00
alecf%netscape.com
89ee8d4abc add support for sidebar titles to be <text> nodes, not just <html:div>'s
git-svn-id: svn://10.0.0.236/trunk@66272 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:25:24 +00:00
tbogard%aol.net
e9b88f7a80 Making sure session history is in the release builds.
git-svn-id: svn://10.0.0.236/trunk@66271 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:20:31 +00:00
rginda%netscape.com
88784cab59 removed superfluous ;s after namespace decs.
git-svn-id: svn://10.0.0.236/trunk@66270 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:14:49 +00:00
alecf%netscape.com
c270796ac9 further skinability updates - this time to the account wizard.
fix html:iframe problem (looks like xul iframe still isn't as smart as html:iframe!)


git-svn-id: svn://10.0.0.236/trunk@66269 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:14:33 +00:00
rginda%netscape.com
544236f78a regenerated opcode classes after grncode.pl changes
git-svn-id: svn://10.0.0.236/trunk@66268 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:06:25 +00:00
rginda%netscape.com
a9d2177159 modified to print R~ if NotARegister
git-svn-id: svn://10.0.0.236/trunk@66267 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:04:24 +00:00
cls%seawood.org
695f196952 Tweaks to make the tinderbox work with objdir builds.
git-svn-id: svn://10.0.0.236/trunk@66266 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 07:03:15 +00:00
dp%netscape.com
1d657fcd71 Converting to generic module.
git-svn-id: svn://10.0.0.236/trunk@66265 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:51:21 +00:00
alecf%netscape.com
ef2a983bf8 skinify the account wizard outer frame
git-svn-id: svn://10.0.0.236/trunk@66264 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:44:43 +00:00
alecf%netscape.com
09c5ba1265 first round of skinifying the account manager - remove html tables, divs, and update JS that expected certain tags
git-svn-id: svn://10.0.0.236/trunk@66263 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:40:02 +00:00
chuang%netscape.com
fb6913d513 Bug 32286, 32287, 32292, mailing list backend feature, r=putterman
git-svn-id: svn://10.0.0.236/trunk@66262 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:26:53 +00:00
dp%netscape.com
908cf8b20d Converting to generic module. r=rjc
git-svn-id: svn://10.0.0.236/trunk@66261 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:23:37 +00:00
dp%netscape.com
5289dd950e Converting to generic module.
git-svn-id: svn://10.0.0.236/trunk@66260 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:22:20 +00:00
dp%netscape.com
49fb90b6c9 Hooking up component unregister to regxpcom.
git-svn-id: svn://10.0.0.236/trunk@66259 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:20:35 +00:00
chuang%netscape.com
1feacc8f9f Fix assigning invalid pointer. r=putterman
git-svn-id: svn://10.0.0.236/trunk@66258 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:19:09 +00:00
waterson%netscape.com
6cf9f67312 Alphabetize the bloat log output.
git-svn-id: svn://10.0.0.236/trunk@66257 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 06:00:24 +00:00
scc%netscape.com
7a2ecce5c3 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66256 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:51:09 +00:00
scc%netscape.com
d35db85332 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66255 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:46:08 +00:00
scc%netscape.com
9b476989bf making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66254 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:38:58 +00:00
syd%netscape.com
540954b8a6 Fix for 36084, r=alecf,a=alecf. Put guard code around code that dereferences a context,
it was null, causing asserts, and eventually, a crash. Bug was a smoketest blocker.


git-svn-id: svn://10.0.0.236/trunk@66253 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:38:05 +00:00
dp%netscape.com
4e89ce53af Implemented component unregister.
git-svn-id: svn://10.0.0.236/trunk@66252 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:26:40 +00:00
dp%netscape.com
1f21d972f7 Implemented component unregistration.
git-svn-id: svn://10.0.0.236/trunk@66251 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:25:05 +00:00
troy%netscape.com
48f166c4ac b=36095 Fixed problem in GetNearestContainingBlock()
git-svn-id: svn://10.0.0.236/trunk@66250 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 05:03:42 +00:00
bienvenu%netscape.com
814ec8be0f more work on search, not really part of build
git-svn-id: svn://10.0.0.236/trunk@66249 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 04:47:50 +00:00
mccabe%netscape.com
e6a8f44754 Removing errant classname:: in method declaration in class definition, for Ruslan. To fix bustage.
git-svn-id: svn://10.0.0.236/trunk@66248 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 04:44:20 +00:00
waterson%netscape.com
38b9ccd9dd Fix resource leak because of flow-of-control changes. r=rjc
git-svn-id: svn://10.0.0.236/trunk@66247 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 04:40:56 +00:00
waterson%netscape.com
9730aa1e21 Back out changes my changes to nsILinkHandler because of performance problems.
git-svn-id: svn://10.0.0.236/trunk@66246 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 04:34:20 +00:00
mccabe%netscape.com
1af7c28b13 Temporary definition of NS_SCRIPTERROR_CLASSNAME (until file removed) to stave off bustage.
git-svn-id: svn://10.0.0.236/trunk@66245 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 03:36:20 +00:00
pinkerton%netscape.com
9137b95797 well, i guess you can't put '<' in an attribute in xml. hrm.
git-svn-id: svn://10.0.0.236/trunk@66244 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 03:16:21 +00:00
mccabe%netscape.com
6d22b784c7 Temporary add of needed define to fix bustage.
git-svn-id: svn://10.0.0.236/trunk@66243 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 03:07:38 +00:00
pinkerton%netscape.com
7dd43ce5cc add contextmenu and quicktime as weak links.
git-svn-id: svn://10.0.0.236/trunk@66242 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:58:58 +00:00
rginda%netscape.com
be1446639b Add new files nsConsoleService.cpp, nsConsoleMessage.cpp.
git-svn-id: svn://10.0.0.236/trunk@66241 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:55:39 +00:00
mscott%netscape.com
ec97d88f7d Bug #36119 --> implement DoContent for nsBrowserInstance. This broke over the weekend and caused us to fail
to load browser urls in a current browser window from the mail window.


git-svn-id: svn://10.0.0.236/trunk@66240 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:45:00 +00:00
bryner%uiuc.edu
ac0e34d599 Make the title for a finger document show "Finger information for
user@host". r=valeski.


git-svn-id: svn://10.0.0.236/trunk@66239 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:40:23 +00:00
ruslan%netscape.com
aa0631529d Add a new pref
git-svn-id: svn://10.0.0.236/trunk@66238 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:36:28 +00:00
mccabe%netscape.com
2c08b5daa3 added files: mozilla/xpcom/base/nsConsoleService.cpp, mozilla/xpcom/base/nsConsoleMessage.cpp
git-svn-id: svn://10.0.0.236/trunk@66237 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:36:18 +00:00
pinkerton%netscape.com
ab46388a9f don't replace the transferable if the platform doesn't support the clipboard asked for.
git-svn-id: svn://10.0.0.236/trunk@66236 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:36:01 +00:00
pinkerton%netscape.com
5d3f683035 remove contextmenu and quicktime stubs from the interfaces project and put them in widget so we can weakLink against them.
git-svn-id: svn://10.0.0.236/trunk@66235 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:35:09 +00:00
mccabe%netscape.com
adf9593bd0 added files: mozilla/js/src/xpconnect/src/nsScriptError.cpp
git-svn-id: svn://10.0.0.236/trunk@66234 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:35:06 +00:00
mccabe%netscape.com
dd8d16945e Move nsIConsoleService and implementation into xpcom/base, and nsIScriptError and implementation into js/src/xpconnect. (A place for JavaScript-specific XPCOM would be better, but xpconnect will do).
git-svn-id: svn://10.0.0.236/trunk@66233 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:34:54 +00:00
pinkerton%netscape.com
1de3ac01a9 set the popup node on tooltips.
git-svn-id: svn://10.0.0.236/trunk@66232 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:34:32 +00:00
pinkerton%netscape.com
e54106503d fixing tooltips (tooltipElement->tooltipNode)
git-svn-id: svn://10.0.0.236/trunk@66231 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:34:18 +00:00
ruslan%netscape.com
777db77fad Backing up some changes from friday which broke authenticate (36071). Support
Apache-style keep-alive header. Make *ServerCapabilities methods public.


git-svn-id: svn://10.0.0.236/trunk@66230 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:32:53 +00:00
pavlov%netscape.com
1af8424c91 Finish up clipboard code to support multiple clipboards
git-svn-id: svn://10.0.0.236/trunk@66229 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:31:46 +00:00
blizzard%redhat.com
5cd8d72acc fix for bug #32710. make sure to call gdk_drop_finish() after the drop. this gets rid of the problem of a ghost icon flying across the screen a few minutes after a drag-n-drop operation.
git-svn-id: svn://10.0.0.236/trunk@66228 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 02:29:48 +00:00
rogerl%netscape.com
debf86a7a6 added '(' for RegisterList output
git-svn-id: svn://10.0.0.236/trunk@66227 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 01:46:32 +00:00
rginda%netscape.com
3143f7a0fc regenerated opcodenames to include padding, added label printing back into icg::print
git-svn-id: svn://10.0.0.236/trunk@66226 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 01:31:24 +00:00
jim_nance%yahoo.com
363437eded *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@66225 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 01:27:01 +00:00
jim_nance%yahoo.com
2cce16102d Adding file to update xterm title bar
git-svn-id: svn://10.0.0.236/trunk@66224 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 01:22:33 +00:00
rginda%netscape.com
acf83b07ec space out opcodenames array
git-svn-id: svn://10.0.0.236/trunk@66223 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 01:19:12 +00:00
beard%netscape.com
a24bcda5a6 std::pair
git-svn-id: svn://10.0.0.236/trunk@66222 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:52:07 +00:00
beard%netscape.com
7d9d64236f moved initConsole() out to :: namespace.
git-svn-id: svn://10.0.0.236/trunk@66221 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:51:53 +00:00
beard%netscape.com
4545220c24 added vmtypes.h,.cpp
git-svn-id: svn://10.0.0.236/trunk@66220 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:50:58 +00:00
rogerl%netscape.com
46eb804c04 added vmtypes/jstypes
git-svn-id: svn://10.0.0.236/trunk@66219 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:46:18 +00:00
rogerl%netscape.com
1bfac2ec9e Fixed WINDOZE build issues
git-svn-id: svn://10.0.0.236/trunk@66218 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:38:26 +00:00
rginda%netscape.com
9a35e0f5df initial add of perl script to generate icode classes
git-svn-id: svn://10.0.0.236/trunk@66217 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:22:51 +00:00
rginda%netscape.com
825a9c7f3c removing bogus file
git-svn-id: svn://10.0.0.236/trunk@66216 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:20:10 +00:00
rginda%netscape.com
831390e752 adding files for namespace change
git-svn-id: svn://10.0.0.236/trunk@66215 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:19:09 +00:00
rginda%netscape.com
570245f757 added js::VM, ICG, JSTypes, and Interpreter namespaces; messed around with lots of code.
Created class for each ICode, adding a print() method (using formatters)


git-svn-id: svn://10.0.0.236/trunk@66214 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:17:34 +00:00
evaughan%netscape.com
880d113c1e Putting back code that was backed out last week.
-a leaf


git-svn-id: svn://10.0.0.236/trunk@66213 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-18 00:17:00 +00:00
beard%netscape.com
5366b9a5af FASTLOCK changes.
git-svn-id: svn://10.0.0.236/trunk@66212 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 23:58:28 +00:00
Peter.VanderBeken%pandora.be
a7fdc5a2ba Include mozilladom.h if MOZILLA is defined. Hack until we get the dom directories cleaned up.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@66210 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 22:01:39 +00:00
Peter.VanderBeken%pandora.be
fd291f1545 Remove use of nsXMLDocument so we only use interfaces.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@66209 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 22:00:30 +00:00
waterson%netscape.com
c1ec9e04ea Fix build bustage.
git-svn-id: svn://10.0.0.236/trunk@66208 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 17:51:01 +00:00
robinf%netscape.com
2aec47c20b thieds file not necessary for cck cd autoruyn screen
git-svn-id: svn://10.0.0.236/trunk@66207 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 17:24:04 +00:00
danm%netscape.com
274cb03326 removing deleted files a=leaf
git-svn-id: svn://10.0.0.236/trunk@66206 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 16:35:06 +00:00
buster%netscape.com
f0a9a8c250 I suck. More debugging code that should have been removed.
git-svn-id: svn://10.0.0.236/trunk@66205 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 15:54:55 +00:00
buster%netscape.com
00671105d4 one line of debug code accidentally slipped in. Removed.
git-svn-id: svn://10.0.0.236/trunk@66204 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 15:03:55 +00:00
scc%netscape.com
f742fe7b5f needed to make the implementation of |EqualsIgnoreCase(nsIAtom*, ...)| available.
git-svn-id: svn://10.0.0.236/trunk@66203 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:50:07 +00:00
scc%netscape.com
ab4e1cb845 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66202 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:47:33 +00:00
buster%netscape.com
2fa9ad90e8 bug 588 (text justification) for Robert O'Callahan <roc+moz@cs.cmu.edu>
r=buster

bug 18545 ([FLOAT] Problem Centering <TABLE> with <DIV> tag)
r=troy

bugs 18827, 19579, 22327 24782, 26512, 30124, 31849, 32846 (floater behavior wrong)
The primary change here is to determine if a block is impacted by a floater, and if so
mark the block's lines dirty when appropriate.
r=troy

no bug number.  performance work.  reduced the size of some reflow data structures by
collapsing multiple fields into a single bit field.
r=troy


git-svn-id: svn://10.0.0.236/trunk@66201 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:40:46 +00:00
scc%netscape.com
4d9893911c making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66200 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:40:25 +00:00
scc%netscape.com
8c7f6c18d8 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66199 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 14:30:23 +00:00
conrad%ingress.com
c433657818 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@66198 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 12:27:12 +00:00
scc%netscape.com
a351285602 fixing build bustage
git-svn-id: svn://10.0.0.236/trunk@66197 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 12:22:37 +00:00
conrad%ingress.com
41fa09724b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@66196 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 12:19:56 +00:00
scc%netscape.com
64d4b88ac4 attempting to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@66195 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 11:49:23 +00:00
scc%netscape.com
1621a4cffc making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66194 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 11:24:01 +00:00
jim_nance%yahoo.com
31da29b44f Fix the last part of 34949
r=cla a=bienvenu


git-svn-id: svn://10.0.0.236/trunk@66193 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 11:20:15 +00:00
jim_nance%yahoo.com
7acaf34050 configure
git-svn-id: svn://10.0.0.236/trunk@66192 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 11:16:40 +00:00
scc%netscape.com
0101017dfc Added private unimplemented signatures of |...WithConversion| to prevent accidents where I should have used the non-converting form. Removed |AppendWithConversion|s that stood in for |AppendInt| and |AppendFloat|.
git-svn-id: svn://10.0.0.236/trunk@66191 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 11:06:41 +00:00
heikki%citec.fi
3d4174f476 Changed redirects to point to the updated XML demos (new XLink).
git-svn-id: svn://10.0.0.236/trunk@66190 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 10:47:37 +00:00
scc%netscape.com
4e8e28e89b making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66189 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 10:28:55 +00:00
scc%netscape.com
82bb627381 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66188 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 09:57:13 +00:00
scc%netscape.com
32ef1c0c04 fixing an earlier mistake while making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66187 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 09:56:40 +00:00
scc%netscape.com
4858549d2d making string conversions explicit, had to fix an accidental regression from rickg
git-svn-id: svn://10.0.0.236/trunk@66186 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 09:09:42 +00:00
scc%netscape.com
ad149b30bf making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66185 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 08:21:30 +00:00
rickg%netscape.com
59931d007b correct linux build problem
git-svn-id: svn://10.0.0.236/trunk@66184 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 07:21:19 +00:00
nisheeth%netscape.com
68adc31658 Fix for bug 30958: Reflow commands are now processed asynchronously all the time. The semantics of the API for queuing and processing reflow commands has changed. Now, AppendReflowCommand() initiates an asynchronous reflow event and all reflow command processing happens when that event fires. It is no longer possible for consumers outside the presentation shell to call ProcessReflowCommands() synchronously. Because of this change, reflow locks are no longer needed and have been removed.
git-svn-id: svn://10.0.0.236/trunk@66183 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 07:13:57 +00:00
rickg%netscape.com
e986fc3858 fixed DTD selection bugs; entity bugs; conditionally enabled Strict DTD
git-svn-id: svn://10.0.0.236/trunk@66182 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 06:33:31 +00:00
tbogard%aol.net
2bbfe2a06b Added more code to ShouldAddToGlobalHistory to properly weed out items such as "about", "imap", "news", and "mailbox" schemes from getting put into global history.
git-svn-id: svn://10.0.0.236/trunk@66181 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:54:09 +00:00
rjc%netscape.com
f1167fd6f1 Fix trivial warning regarding initialization order.
git-svn-id: svn://10.0.0.236/trunk@66180 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:46:13 +00:00
tbogard%aol.net
95751ea16b Removed the URLShouldBeInHistory function to resolve bug 29604. DocShell now properly calls only when it should to add a page to history.
git-svn-id: svn://10.0.0.236/trunk@66179 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:38:22 +00:00
rjc%netscape.com
e04e2311b0 Comment out oftenhit assertion in ArcLabelsIn().
git-svn-id: svn://10.0.0.236/trunk@66178 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:26:25 +00:00
rjc%netscape.com
e05925b05f Fix GetURI() to return "rdf:httpindex".
git-svn-id: svn://10.0.0.236/trunk@66177 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:22:50 +00:00
rjc%netscape.com
5fdb5d41ab Aggregate in "rdf:httpindex".
git-svn-id: svn://10.0.0.236/trunk@66176 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:17:15 +00:00
ssu%netscape.com
c9cfc44ad0 fixing bug #7874 (on going). this file is not part of tinderbox build. would affect windows platforms only.
git-svn-id: svn://10.0.0.236/trunk@66175 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:11:34 +00:00
rjc%netscape.com
de0a40838e Aggregate in "rdf:httpindex".
git-svn-id: svn://10.0.0.236/trunk@66174 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:10:04 +00:00
rjc%netscape.com
0e2efedad6 "HTTP-Index" datasource now allows easy aggregation with out datasources.
git-svn-id: svn://10.0.0.236/trunk@66173 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 05:07:26 +00:00
cls%seawood.org
4f15ce6b19 Fix non-MD and non-native makedepend depend builds. Bug 35186. r=jlnance
git-svn-id: svn://10.0.0.236/trunk@66172 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:57:33 +00:00
blizzard%redhat.com
60907f527e fix for bug #14856. this fixes DOM key events on linux so that a keyrepeat is keydown, keypress, keypress, keypress, keyup like it should be. r=syd
git-svn-id: svn://10.0.0.236/trunk@66171 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:45:08 +00:00
bryner%uiuc.edu
665438dd89 Write the html, title, and body tags directly to the stream listener
without having them go through the txt->html conversion.  This makes it so
we don't accidentely try to form an HREF inside the title.  r=valeski.


git-svn-id: svn://10.0.0.236/trunk@66170 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:40:44 +00:00
tbogard%aol.net
68935bbb97 Fixed stop to look at the right item for the disabled state. Fixes 35975.
git-svn-id: svn://10.0.0.236/trunk@66169 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:39:38 +00:00
rbs%maths.uq.edu.au
00a24552f9 [NOT PART OF THE DEFAULT BUILD] Compute the actual bounding metrics of the minus sign ('-') to get a more acurate math axis
git-svn-id: svn://10.0.0.236/trunk@66168 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:23:03 +00:00
rbs%maths.uq.edu.au
8f93137259 [NOT PART OF THE DEFAULT BUILD] Pick stretchy glyphs from the Math4 font. Make the stretchy code more robust by explicitly re-ordering the font-family list to place the selected font to be used in first position
git-svn-id: svn://10.0.0.236/trunk@66167 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:19:54 +00:00
rhp%netscape.com
4fb6af3b57 Fix for crash on vCard Add button - Bug #34780
git-svn-id: svn://10.0.0.236/trunk@66166 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:16:06 +00:00
leaf%mozilla.org
04c0ce8312 Automated update
git-svn-id: svn://10.0.0.236/trunk@66165 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 04:00:18 +00:00
rhp%netscape.com
41d493ae7c Fix for problem with printing address book entries
git-svn-id: svn://10.0.0.236/trunk@66164 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 03:53:49 +00:00
cls%seawood.org
1f03a63b04 Changed BeOS linker flags so that it will resolve all symbols when linking shared libs. Added -lbe to OS_LIBS for BeOS. This should get rid of the "missing symbol" error at runtime.
git-svn-id: svn://10.0.0.236/trunk@66163 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 03:47:33 +00:00
cls%seawood.org
8fd619b896 BeOS uses LIBRARY_PATH to search for runtime libs.
git-svn-id: svn://10.0.0.236/trunk@66162 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 03:38:39 +00:00
tbogard%aol.net
8c5b3565a9 If the same page is being loaded twice, don't add it twice to session history.
git-svn-id: svn://10.0.0.236/trunk@66160 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 02:17:42 +00:00
waterson%netscape.com
eca015b729 Fix uninitialized variable, caught by shalabh@pspl.co.in
git-svn-id: svn://10.0.0.236/trunk@66159 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 02:07:00 +00:00
bienvenu%netscape.com
1347967663 maintain mailboxname across imap uid validity change
git-svn-id: svn://10.0.0.236/trunk@66158 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 01:46:47 +00:00
tbogard%aol.net
6584b0a36b Both compiling and linking are pulled from the same list CPP_OBJS.
git-svn-id: svn://10.0.0.236/trunk@66157 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 01:05:24 +00:00
neeti%netscape.com
bf1858e6a2 fix for 21329, restricting the number of items in cache only for windows.r=pnunn
git-svn-id: svn://10.0.0.236/trunk@66156 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-17 00:28:56 +00:00
ssu%netscape.com
337e654a4c fixing bug 7874 (on going).
Affects windows platforms only.


git-svn-id: svn://10.0.0.236/trunk@66155 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 23:07:11 +00:00
cls%seawood.org
b7b42dab93 Added xpinstall/wizard/unix/src2/Makefile & fixed typo with psm-glue.
git-svn-id: svn://10.0.0.236/trunk@66154 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 22:26:44 +00:00
bienvenu%netscape.com
4412d4d512 add search method to message service, not used yet
git-svn-id: svn://10.0.0.236/trunk@66153 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 22:12:36 +00:00
bienvenu%netscape.com
8b4a8150cf fix problem saving flags when we blow away dbs 32531
git-svn-id: svn://10.0.0.236/trunk@66152 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 22:09:52 +00:00
warren%netscape.com
d54f4ee028 Changing dir create permissions to 775.
git-svn-id: svn://10.0.0.236/trunk@66151 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 21:32:29 +00:00
cmanske%netscape.com
234e9d93d3 Replace 'onclick' with 'oncommand' in sidebar xul.
git-svn-id: svn://10.0.0.236/trunk@66150 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 21:27:42 +00:00
blizzard%redhat.com
f5010a6eb5 remove motion_notify signals from being generated anywhere. note that this is different than an XMotionEvent that we handle elsewhere. there aren't any cases where we need the motion_notify signal anymore. we were causing motion_notify signals to be generated from scrolling the scrollbar in native widgets which was causing selection to happen on the parent window in the case where the native scrollbar was on a popup. this fixes bug #32311. r=syd
git-svn-id: svn://10.0.0.236/trunk@66149 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 21:22:22 +00:00
cmanske%netscape.com
2acc429d39 Put 'width' controls first in HLine Props dialog
git-svn-id: svn://10.0.0.236/trunk@66148 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 20:49:15 +00:00
cmanske%netscape.com
c95e44e712 Most all dialogs rewritten for XUL widget covnersion for skins, bug 19565
git-svn-id: svn://10.0.0.236/trunk@66147 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 20:29:08 +00:00
leaf%mozilla.org
2a545d5e66 removing reference to an obj file that no longer gets built
git-svn-id: svn://10.0.0.236/trunk@66146 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 19:47:38 +00:00
jband%netscape.com
02ff64d558 NOT PART OF SEAMONKEY BUILD. Improve sample to show calling of [scriptable] xpcom interface methods directly from JavaScript using xpconnect. This should work on all platforms, but currently the visuals in the plugin are only updated on Windows. See bug 32150. r=av
git-svn-id: svn://10.0.0.236/trunk@66145 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 18:51:02 +00:00
tonyr%fbdesigns.com
31bb5f3935 Got rid of the shared library reference. No longer needed.
git-svn-id: svn://10.0.0.236/trunk@66144 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 15:47:35 +00:00
tbogard%aol.net
424c54ff18 Making docShell not assert when global history can't be added. Someone is doing something stupid in viewer right that makes the service fail.
git-svn-id: svn://10.0.0.236/trunk@66143 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 13:01:28 +00:00
tbogard%aol.net
ce7c50e021 Making the addref and release thread safe.
git-svn-id: svn://10.0.0.236/trunk@66142 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 13:00:52 +00:00
tbogard%aol.net
555b9e4d86 removed files: mozilla/xpfe/appshell/src/nsSessionHistory.cpp
git-svn-id: svn://10.0.0.236/trunk@66141 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:20:51 +00:00
tbogard%aol.net
fe598938a5 Removing the old session history code.
git-svn-id: svn://10.0.0.236/trunk@66140 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:47 +00:00
scc%netscape.com
7741d6c076 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66139 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:26 +00:00
tbogard%aol.net
b7fb06935c Removed references to the old session history code. Replace setNetworkActive and setWindowActive by just passing up the status in the new onStatusChange method. onLocationChange now fires at the right time. BrowserInstance now implements nsIWebProgressListener. The class is now completely named nsBrowserInstance with out that ugly #define to convert nsBrowserAppCore. Reorganized much of the file to be in the order it is in it's declaration.
git-svn-id: svn://10.0.0.236/trunk@66138 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:18 +00:00
tbogard%aol.net
bf89759e57 Replace setNetworkActive and setWindowActive by just passing up the status in the new onStatusChange method.
git-svn-id: svn://10.0.0.236/trunk@66137 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:03 +00:00
tbogard%aol.net
c209eefd50 Removing the old session history interface.
git-svn-id: svn://10.0.0.236/trunk@66136 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:02 +00:00
tbogard%aol.net
68a75e99a9 Replace setNetworkActive and setWindowActive by just passing up the status in the new onStatusChange method. Removed the UpdateHistory since that is done in the backend already.
git-svn-id: svn://10.0.0.236/trunk@66135 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:19:00 +00:00
tbogard%aol.net
fb21af6abe Removed references to the old session history interface.
git-svn-id: svn://10.0.0.236/trunk@66134 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:18:54 +00:00
tbogard%aol.net
8ba6a91529 DocShell is now handling all the loading and navigation. The new session history is now being used in place of the old.
git-svn-id: svn://10.0.0.236/trunk@66133 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:18:41 +00:00
tbogard%aol.net
d17b788ad5 removed files: mozilla/xpfe/appshell/public/nsISessionHistory.idl
git-svn-id: svn://10.0.0.236/trunk@66132 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:18:40 +00:00
tbogard%aol.net
e6de54d6db Removed the methods dealing with the old session history that is going away.
git-svn-id: svn://10.0.0.236/trunk@66131 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:18:39 +00:00
scc%netscape.com
d80a2c24a6 no, the |Equals(PRUnichar*, PRUnichar*, ...)| form is not what you think it is. It has to go. Make comparing with |nsIAtoms| remain avalailable even in |NEW_STRINGS_APIS|
git-svn-id: svn://10.0.0.236/trunk@66130 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:09:16 +00:00
tbogard%aol.net
d69e63230a Removed references to the old session history.
git-svn-id: svn://10.0.0.236/trunk@66129 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 11:08:28 +00:00
cls%seawood.org
751a9582c8 The extprotocol subproject does not actually build under unix. A bug in the way we handle SHARED_LIBRARY_LIBS is the only reason the tinderboxes didn't go red with the previous checkin.
git-svn-id: svn://10.0.0.236/trunk@66128 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 08:42:25 +00:00
tbogard%aol.net
654300ddb3 Cached the globalHistory service as it is called a lot especially when dealing with links up in the webshell. Fixed a bug in GetInterface where we were failing to do an else if so if you were requesting a nsIURIContentListener you ended up clearing out the object.
git-svn-id: svn://10.0.0.236/trunk@66127 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 08:39:15 +00:00
andreas.otte%primus-online.de
261e05249b fix bug 20891 [Assertion when displaying message], don't try to find a drive in an empty path, r=putterman@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66126 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 07:33:25 +00:00
andreas.otte%primus-online.de
80bfa207d0 fix bug 33868 [URL encoding for Basic Realm authentication doesn't work], just unescape the prehost, r=gagan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66125 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 07:16:28 +00:00
andreas.otte%primus-online.de
be348159ac fix bug 34863 [Local Harddisks not found if I tried with C: without \], check for a drive in nsDocShell::ConvertFileToStringURI, r=gagan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66124 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 07:11:43 +00:00
tbogard%aol.net
b7b1ee0f64 Changed over from using the webshell APIs and nsISessionHistory to using the webNavigation interface on the docshell to go back and forward. Don't have to get the root, docshell does that for you.
git-svn-id: svn://10.0.0.236/trunk@66123 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 06:14:38 +00:00
tbogard%aol.net
435ed0e07a Removed the GetCanGoBack and GetCanGoForward calls from GoBack and GoForward respectively. The session history calls to get the next and previous entry will properly return error codes if navigtion in the desired direction isn't possible.
git-svn-id: svn://10.0.0.236/trunk@66122 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 05:16:16 +00:00
tbogard%aol.net
99dfff1ec5 Make sure we properly notify of window activity starting and stoping.
git-svn-id: svn://10.0.0.236/trunk@66121 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 05:09:07 +00:00
tbogard%aol.net
a0e58c98ba Changed the concept of the transaction parent/ child to be previous and next. This flows better with actual relationship they hold in session history terms. The prev and next are also now not just readonly to allow properly setting up the list while avoiding nasty casts to implementation objects. Removed a bunch of dead code. Changed the module object to use generic factories and removed the hand created NS_New* functions. Changed over to interface maps in some places. The nsSHEntry obect no longer has the concept of children. There is no need since frame state will be stored in the layout history state object. This means nsSHEntry no longer implements the nsISHContainer interface.
git-svn-id: svn://10.0.0.236/trunk@66120 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 05:08:44 +00:00
troy%netscape.com
f1d75a440d New rules for absolute positioning
git-svn-id: svn://10.0.0.236/trunk@66118 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 04:07:02 +00:00
despotdaemon%netscape.com
cd1fd8e44e Pseudo-automatic update of changes made by bruce@cubik.org.
git-svn-id: svn://10.0.0.236/trunk@66117 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 02:49:48 +00:00
despotdaemon%netscape.com
e65e95ff5a Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@66115 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 02:43:03 +00:00
svn%xmlterm.org
e34af8d3a6 xmlterm changes only.
Minor workaround to handle 80 character wraparound on FreeBSD.


git-svn-id: svn://10.0.0.236/trunk@66114 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 01:56:11 +00:00
svn%xmlterm.org
b7e54b40b8 xmlterm changes only.
Fixed bustage due to changes in nsIClipboard.idl


git-svn-id: svn://10.0.0.236/trunk@66113 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 01:26:33 +00:00
pavlov%netscape.com
f3dfcddb1b fix for clipboard crashing (bug #35954)
git-svn-id: svn://10.0.0.236/trunk@66112 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 01:17:26 +00:00
braddr%puremagic.com
2ecf22f141 eliminiate NS_COMFALSE and remove a layer of logical negation.
r=brendan


git-svn-id: svn://10.0.0.236/trunk@66111 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:23:57 +00:00
braddr%puremagic.com
e185fff9bb Implicit types are evil. Add PRUint32.
r=mccabe


git-svn-id: svn://10.0.0.236/trunk@66110 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:21:07 +00:00
tonyr%fbdesigns.com
b9a0fbcda8 Added the extprotocol subproject
git-svn-id: svn://10.0.0.236/trunk@66109 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:08:40 +00:00
ssu%netscape.com
a2962fb2dd initial checkin to fix bug 7874 (on going). affects only windows platforms. Not hooked up to build system yet.
git-svn-id: svn://10.0.0.236/trunk@66108 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:05:39 +00:00
Jerry.Kirk%Nexwarecorp.com
c8a8f64f55 Fix nsClipboard so it would compile because of the prototype changes.
PHOTON ONLY.


git-svn-id: svn://10.0.0.236/trunk@66107 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-16 00:01:45 +00:00
ssu%netscape.com
a344907db2 initial checkin to fix bug 7874 (on going). affects only windows platforms. Not hooked up to build system yet.
git-svn-id: svn://10.0.0.236/trunk@66106 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 23:50:59 +00:00
scc%netscape.com
22d3ef155d attempting to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@66105 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:48:04 +00:00
scc%netscape.com
2c6ea08501 attempting to fix build bustage
git-svn-id: svn://10.0.0.236/trunk@66104 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:46:25 +00:00
scc%netscape.com
b5432ec86e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66103 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:18:29 +00:00
scc%netscape.com
4f247b2dba attempting to fix bustage
git-svn-id: svn://10.0.0.236/trunk@66102 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 21:13:55 +00:00
scc%netscape.com
8a7f53cc88 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66101 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 20:15:37 +00:00
tor%cs.brown.edu
deb4fcc89d Composite work: special case the common framebuffer formats
(32bpp, 24bpp, 16bpp) and general cleanup.  r=pavlov


git-svn-id: svn://10.0.0.236/trunk@66100 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 19:58:09 +00:00
mccabe%netscape.com
6870f35938 Add trailing newline.
git-svn-id: svn://10.0.0.236/trunk@66099 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 19:38:05 +00:00
scc%netscape.com
946462abec making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66098 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 19:03:12 +00:00
scc%netscape.com
3466d240d3 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66097 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 18:48:07 +00:00
jband%netscape.com
4826209b80 add a test with an 'out' array of strings
git-svn-id: svn://10.0.0.236/trunk@66096 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 18:44:22 +00:00
tonyr%fbdesigns.com
47382c2b54 Added the extprotocol subdir
git-svn-id: svn://10.0.0.236/trunk@66095 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 18:36:11 +00:00
svn%xmlterm.org
b340e06398 Removed references to deleted xmlterm directories ui/content and ui/skin
git-svn-id: svn://10.0.0.236/trunk@66094 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 17:40:24 +00:00
tonyr%fbdesigns.com
68b0b8c4ce Added uriloader/extprotocol/base and /unix makefiles
git-svn-id: svn://10.0.0.236/trunk@66093 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 16:54:24 +00:00
tonyr%fbdesigns.com
a047864b36 Fix up the unix makefiles so it actually builds
git-svn-id: svn://10.0.0.236/trunk@66092 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 16:51:51 +00:00
bienvenu%netscape.com
a46f65be7f more work on search, not part of build
git-svn-id: svn://10.0.0.236/trunk@66091 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 16:07:49 +00:00
andreas.otte%primus-online.de
e4892dcd84 fix bug 34966 [fragment id on root-documents without / misinterpreted], r=warren@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66090 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 16:07:28 +00:00
andreas.otte%primus-online.de
d99072ae87 fix bug 35736 [url encoding - character encoded when it shouldn't] No longer escaping $, r=gagan@netscape.com
git-svn-id: svn://10.0.0.236/trunk@66089 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 15:52:40 +00:00
troy%netscape.com
765e175504 Fixed GetIntrinsicImageSize() to return the correct size
git-svn-id: svn://10.0.0.236/trunk@66088 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 15:49:57 +00:00
troy%netscape.com
6f83cde1a2 Added GetIntrinsicSize() function
git-svn-id: svn://10.0.0.236/trunk@66087 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 15:49:03 +00:00
scc%netscape.com
82570061ee making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66086 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 11:40:33 +00:00
scc%netscape.com
2e1ad1e89b making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66085 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 10:56:54 +00:00
jim_nance%yahoo.com
4f097ffb10 Fix for 35810. The configure script now stops running if perl can
be found.  It used to keep going and cause build errors.
r=cls


git-svn-id: svn://10.0.0.236/trunk@66084 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 10:55:55 +00:00
pierre%netscape.com
8352fc6523 33710 "background-color: inherit doesn't work correctly". Split the NS_STYLE_BG_PROPOGATED flag into 2 flags: NS_STYLE_BG_PROPAGATED_TO_PARENT and NS_STYLE_BG_PROPAGATED_FROM_CHILD. MapDeclarationColorInto() fetches the color from the grand-parent if PROPAGATED_TO_PARENT is set.
git-svn-id: svn://10.0.0.236/trunk@66083 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 10:38:13 +00:00
scc%netscape.com
dd6763e198 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66082 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 10:10:02 +00:00
scc%netscape.com
497a066600 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66081 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 09:54:17 +00:00
scc%netscape.com
c4d65fdb75 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66080 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 09:47:08 +00:00
scc%netscape.com
8bddc6616e making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66079 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 09:16:58 +00:00
scc%netscape.com
6a57d077e1 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66076 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 07:05:34 +00:00
mccabe%netscape.com
31bd0337ce Print error diagnostics to stderr even when non-debug, to support those folks
that want to debug with the -console flag.


git-svn-id: svn://10.0.0.236/trunk@66075 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 06:59:21 +00:00
scc%netscape.com
3fef05c0ff making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66074 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 06:52:12 +00:00
scc%netscape.com
95b7b1b8c7 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66073 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 06:42:27 +00:00
pierre%netscape.com
4506eee4b8 35455 "CSS2 system color as background color does not work". Fixed the previous checkin from akkana in GetColor().
git-svn-id: svn://10.0.0.236/trunk@66072 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 06:25:23 +00:00
blizzard%redhat.com
68c9c4b623 fix for bug #27295. don't listen for the drag_leave signal. the problem was that the drag_leave signal was getting sent before the drag_drop signal causing the state machine in the tree widget to set tree elements as invalid drag targets. we aren't using the drag_leave signal for anything anyway so this isn't hurting anything. this gets drags working to mail folders and folders in the bookmark windows.
git-svn-id: svn://10.0.0.236/trunk@66071 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 05:45:21 +00:00
cls%seawood.org
17dc8d7ba0 Remove redundant use of MOZ_REGISTRY_LIBS. Fix for regression bug #35384
git-svn-id: svn://10.0.0.236/trunk@66070 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 05:42:16 +00:00
scc%netscape.com
99119fc4be making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66069 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 05:40:34 +00:00
scc%netscape.com
7c78464470 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66067 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 05:29:33 +00:00
scc%netscape.com
96c417cc61 making string conversions explicit
git-svn-id: svn://10.0.0.236/trunk@66066 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 05:23:09 +00:00
svn%xmlterm.org
b739325c75 xmlterm changes only.
Changed xmlterm/ui/Makefile.in to use CHROME vars to handle content/skin resources (bug 34416); eliminated directories xmlterm/ui/content and xmlterm/ui/skin.


git-svn-id: svn://10.0.0.236/trunk@66065 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 04:45:36 +00:00
pierre%netscape.com
c0c95f1979 32063: <font size=""> makes font tiny
git-svn-id: svn://10.0.0.236/trunk@66064 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 04:28:12 +00:00
svn%xmlterm.org
09944cfcb8 xmlterm changes only.
Checking in patch provided by bero@redhat.com to fix Linux/Alpha bustage


git-svn-id: svn://10.0.0.236/trunk@66063 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 04:10:29 +00:00
pavlov%netscape.com
fa2114d6c4 use C comments
git-svn-id: svn://10.0.0.236/trunk@66062 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 04:05:53 +00:00
pierre%netscape.com
41a29ba8dc #33244. changed the default value for empty-cells: 'hide' in quirks mode and 'show' in strict mode.
git-svn-id: svn://10.0.0.236/trunk@66061 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:50:48 +00:00
mstoltz%netscape.com
e8a0e8479c Made prefapi.h private and removed all #includes of it outside of libpref. r=norris
git-svn-id: svn://10.0.0.236/trunk@66060 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:43:09 +00:00
mccabe%netscape.com
92986b4e9c Fix logic to fall through to stderr-printing code.
git-svn-id: svn://10.0.0.236/trunk@66059 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:40:48 +00:00
despotdaemon%netscape.com
0a94d4f96b Pseudo-automatic update of changes made by dmose@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@66058 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:22:49 +00:00
gagan%netscape.com
452de975e9 Fix for bug 28950. Header values in nsHeaderEntry are now CString instead of the nsString.
git-svn-id: svn://10.0.0.236/trunk@66057 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:22:36 +00:00
cmanske%netscape.com
5bd0866450 Fixed 20938: added 'Blank Page to Edit' to 'New' submenus in all primary module windows. a=german
git-svn-id: svn://10.0.0.236/trunk@66056 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:16:43 +00:00
cmanske%netscape.com
a7024530e2 Fixed 20938: added 'Blank Page to Edit' to 'New' submenus in all primary module windows. a=german
git-svn-id: svn://10.0.0.236/trunk@66055 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 03:08:43 +00:00
jband%netscape.com
473f08fdac fixing bustage
git-svn-id: svn://10.0.0.236/trunk@66054 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 02:50:22 +00:00
cmanske%netscape.com
55d5e7c69e Replaced titledbuttons with button (part of 19565), onclick with oncommand in dialogs. Added more text styles (34894)
git-svn-id: svn://10.0.0.236/trunk@66053 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 02:03:52 +00:00
brendan%mozilla.org
5b0a490b7f Always call resolve for each object in a prototype chain (35738, r=shaver).
git-svn-id: svn://10.0.0.236/trunk@66052 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 02:01:02 +00:00
cmanske%netscape.com
86e93b7f46 Fix null pointer bugs (35785 and nonfiled), fixes editor bug 35885. r=evaughan
git-svn-id: svn://10.0.0.236/trunk@66051 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:57:16 +00:00
mccabe%netscape.com
5c6b7446d6 Modify nsIScriptGlobalObjectOwner::ReportScriptError to take an nsIScriptError interface, rather than separate message, file, line arguments.
Fix implementations and their callers, and restore error printing to stderr even when the error is successfully logged to the console service, to make life easier for people who go to the trouble to invoke Mozilla with -console.


git-svn-id: svn://10.0.0.236/trunk@66050 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:56:47 +00:00
gagan%netscape.com
bf68369869 Fix for 32813. Moved the hardcoded tests out into a separate file and added functionality to specify that file. Look at urltests.dat in this directory for more info.
git-svn-id: svn://10.0.0.236/trunk@66049 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:47:17 +00:00
gagan%netscape.com
4f256b345c First checkin of all the url parsing related tests. Not in the build.
git-svn-id: svn://10.0.0.236/trunk@66048 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:44:57 +00:00
pavlov%netscape.com
05a5fab9fe fix for bug #20901 (Unix Paste should request CLIPBOARD selection)
git-svn-id: svn://10.0.0.236/trunk@66047 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 01:08:34 +00:00
tajima%eng.sun.com
ec4628d22d added #if XlibSpecificationRelease >=6 for OpenVMS build problem, r=colin@theblakes.com.
X11R6 base system will get no impact with the changes.


git-svn-id: svn://10.0.0.236/trunk@66046 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:53:31 +00:00
tajima%eng.sun.com
3053c32c1a Fix for IME status window problems: 30879,30097,29836. r=erik@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66045 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:45:51 +00:00
edburns%acm.org
573dca278a bug=http://bugzilla.mozilla.org/show_bug.cgi?id=32011
Added ability to allow Native webclient client to populate
the listener class hash table and provide an InstanceOf function.

This enables listeners to work for the future.


git-svn-id: svn://10.0.0.236/trunk@66043 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:27:35 +00:00
scc%netscape.com
d14516727b new ideas about string conversion
git-svn-id: svn://10.0.0.236/trunk@66042 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:05:17 +00:00
ruslan%netscape.com
0378d0baa5 Implement firing of OnStartRequest regardless of the error code but don't
enable it yet till the webshell is fixed.


git-svn-id: svn://10.0.0.236/trunk@66041 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-15 00:01:23 +00:00
akkana%netscape.com
35155abf7c 35814: add clipboard type to editor paste methods, and call the right type
git-svn-id: svn://10.0.0.236/trunk@66040 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:38:21 +00:00
pavlov%netscape.com
d323248bfc hack to fix 35594 so that evaughan can land his box changes
git-svn-id: svn://10.0.0.236/trunk@66039 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:27:19 +00:00
shaver%mozilla.org
a0c44a968e Replace stupid and evil BYTECODE_ITER hack with proper use of back-patch
chained PatchGotos goodness.  (PatchGotos seasoned to taste.)
r=brendan


git-svn-id: svn://10.0.0.236/trunk@66038 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:27:09 +00:00
attinasi%netscape.com
60a35f5c47 Using the 40-url-dup.txt file now so that the timing values are from the second run of the page, which should be from cache, thus further eliminating the latency variabilities. Not part of build
git-svn-id: svn://10.0.0.236/trunk@66037 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:26:21 +00:00
scc%netscape.com
d4ae0a9e41 Added signatures to prevent automatic incorrect promotion of |char| to |PRUnichar|
git-svn-id: svn://10.0.0.236/trunk@66036 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:20:31 +00:00
scc%netscape.com
3904cb14f9 Added a new type, |incompatible_char_type| to help build signatures that prevent automatic incorrect promotion from |char| to |PRUnichar|. Kind of a hack, but the right way (specializing |nsAWritable| for |PRUnichar| can't be made to compile everywhere)
git-svn-id: svn://10.0.0.236/trunk@66035 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:19:14 +00:00
mccabe%netscape.com
8f4c442bf8 Make XPInstall JavaScript errors get logged to the console service.
git-svn-id: svn://10.0.0.236/trunk@66034 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:14:48 +00:00
attinasi%netscape.com
b251b613cb Newest run data added. Not part of build
git-svn-id: svn://10.0.0.236/trunk@66033 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:13:19 +00:00
attinasi%netscape.com
e70c6da8c2 Each URL is duplicated so the second time all images and the page itself will be from cache: catches the rogue image that is not on the file system, and it also limits the effect of the file system in skewing the numbers. Not part of build
git-svn-id: svn://10.0.0.236/trunk@66032 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:12:20 +00:00
jband%netscape.com
7b2567867b NOT PART OF BUILD. Getting recent fixes to this stuff we aren't building yet safely into cvs
git-svn-id: svn://10.0.0.236/trunk@66031 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:06:39 +00:00
mjudge%netscape.com
ca2f869fca new reason for notification
git-svn-id: svn://10.0.0.236/trunk@66030 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:03:57 +00:00
mjudge%netscape.com
a73525b7eb adding reason to notification
git-svn-id: svn://10.0.0.236/trunk@66029 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:03:16 +00:00
mjudge%netscape.com
57e01eabb4 new spi addition for reason for notification
git-svn-id: svn://10.0.0.236/trunk@66028 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:02:51 +00:00
mccabe%netscape.com
4527b59848 Remove unused pref.
git-svn-id: svn://10.0.0.236/trunk@66027 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:02:50 +00:00
jband%netscape.com
dcf6438cce NOT PART OF BUILD - removing this badly named and unused work around file
git-svn-id: svn://10.0.0.236/trunk@66026 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:01:11 +00:00
mjudge%netscape.com
40593b87ce fixing another api change on notifyt selection
git-svn-id: svn://10.0.0.236/trunk@66025 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:01:09 +00:00
mjudge%netscape.com
922709ebdd fixing selection speed. only copying to clipboard on mouse up
git-svn-id: svn://10.0.0.236/trunk@66024 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 23:00:30 +00:00
sgehani%netscape.com
b49aa33078 Added libjsj.so to yield working build after installation using the Linux installer.
git-svn-id: svn://10.0.0.236/trunk@66023 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:59:55 +00:00
robinf%netscape.com
bf3a1b7a52 removing this file from default and template autorun
git-svn-id: svn://10.0.0.236/trunk@66021 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:55:26 +00:00
jband%netscape.com
0565282928 fix bug 32150. Expose to JavaScript the scriptable interfaces on plugin objects implementing nsIPluginInstance. Given an embed tag with a plugin named 'foo' that has an xpcom interface named 'nsIFoo' with a method 'bar', this fix allows JS code (with the UniversalXPConnect privilege) to call document.foo.nsIFoo.bar()
git-svn-id: svn://10.0.0.236/trunk@66020 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:54:48 +00:00
jband%netscape.com
81eb9c9d6b extracted the declaration of nsObjectFrame into a separate .h file so that it can be accessed by nsHTMLEmbedElement.cpp. This is needed to fix bug 32150
git-svn-id: svn://10.0.0.236/trunk@66019 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:48:30 +00:00
robinf%netscape.com
090098d528 removing old file; replacement is Install.bmp
git-svn-id: svn://10.0.0.236/trunk@66018 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:46:36 +00:00
robinf%netscape.com
c7f39c3cca *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@66017 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:40:27 +00:00
ftang%netscape.com
fba2b12015 improve superscript/subscript/fraction in the transliteration fallback
add latin fallback for U+1Exx


git-svn-id: svn://10.0.0.236/trunk@66016 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:32:03 +00:00
nhotta%netscape.com
b43a0ab6b2 Added popup menus for default charsets, bug 32720, 32802, r=ducarroz.
git-svn-id: svn://10.0.0.236/trunk@66015 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:24:30 +00:00
nhotta%netscape.com
bc7b6be9de Increased height of pref window for new items in messages, bug 32720, 32802.
git-svn-id: svn://10.0.0.236/trunk@66014 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:22:51 +00:00
nhotta%netscape.com
d90fac8811 Added new conversion functions.
git-svn-id: svn://10.0.0.236/trunk@66013 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 22:17:57 +00:00
cmanske%netscape.com
c467099cc4 Removing blue background css for cells with border=0
git-svn-id: svn://10.0.0.236/trunk@66012 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:51:51 +00:00
radha%netscape.com
a1eb5d8292 Add Keywords menu by the urlbar
git-svn-id: svn://10.0.0.236/trunk@66011 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:49:50 +00:00
saari%netscape.com
407a95b69f Fix for 27936, double carets in message compose window. reviewed by hyatt many moons ago, tested by many.
git-svn-id: svn://10.0.0.236/trunk@66010 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:49:34 +00:00
saari%netscape.com
3d60b14173 Adding saftey checks to Mac dynamic menu MDEF to stop some crashes brade has been seeing.
git-svn-id: svn://10.0.0.236/trunk@66009 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:39:27 +00:00
valeski%netscape.com
a7376f3952 re-write of multi-mixed converter so it handles binary data. also have the unknown decoder looking for script tags.
git-svn-id: svn://10.0.0.236/trunk@66008 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:27:32 +00:00
ssu%netscape.com
15a1696718 added check for OS_TARGET env var to build nsztool. Affects only windows platforms.
git-svn-id: svn://10.0.0.236/trunk@66007 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:26:25 +00:00
despotdaemon%netscape.com
73d1ccecf8 Pseudo-automatic update of changes made by janc@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@66006 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:20:56 +00:00
akkana%netscape.com
e1b81d1397 29794: tell docshell to disable meta-refresh
git-svn-id: svn://10.0.0.236/trunk@66005 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:19:44 +00:00
jbetak%netscape.com
2ff50a4acf 34719 Available Charset list box doesn't contain anythig - removed hidden XUL box element
git-svn-id: svn://10.0.0.236/trunk@66004 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:16:13 +00:00
ruslan%netscape.com
b8fe8a2254 Fix 35508, 33762, 35024.
git-svn-id: svn://10.0.0.236/trunk@66003 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:10:27 +00:00
despotdaemon%netscape.com
a73f820f43 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@66002 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:06:36 +00:00
putterman%netscape.com
bc91fd5fcb Fix for 35865. Frequent crashes when using standalone msg window. r=mscott.
git-svn-id: svn://10.0.0.236/trunk@66001 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:01:59 +00:00
akkana%netscape.com
261c4ced6d 15275: track Pavlov's change to the clipboard API (which broke this feature). r=pavlov
git-svn-id: svn://10.0.0.236/trunk@66000 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:01:31 +00:00
nhotta%netscape.com
64a47140b2 Added view default charset.
git-svn-id: svn://10.0.0.236/trunk@65999 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 21:00:27 +00:00
rpallath%eng.sun.com
9646c39468 Added sort routine in autorun.pl
and setUnsupported method add in ElementImpl_hasAttrib*.java


git-svn-id: svn://10.0.0.236/trunk@65998 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 18:41:37 +00:00
robinf%netscape.com
5b775a2ce2 adding new bmps for shell
git-svn-id: svn://10.0.0.236/trunk@65997 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 18:01:08 +00:00
robinf%netscape.com
e114fb7db2 updaging for new button bmps
git-svn-id: svn://10.0.0.236/trunk@65996 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 17:46:32 +00:00
robinf%netscape.com
e54e82a22e adding new files for shell bmps
git-svn-id: svn://10.0.0.236/trunk@65995 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 17:42:11 +00:00
tonyr%fbdesigns.com
1886c6ae00 got rid of uriloader/extprotocol/mac projects until I figure out why they don't build
git-svn-id: svn://10.0.0.236/trunk@65994 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:58:28 +00:00
brade%netscape.com
0c9a32c1a3 first pass at moving to new composer prefs based on spec
git-svn-id: svn://10.0.0.236/trunk@65993 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:55:28 +00:00
tor%cs.brown.edu
650a91f7fb Compositing work: fix 16bpp color shift and remove unneeded logic. r=blizzard
git-svn-id: svn://10.0.0.236/trunk@65992 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:50:55 +00:00
tonyr%fbdesigns.com
290a7e4e58 Got rid of some compiler warnings
git-svn-id: svn://10.0.0.236/trunk@65991 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:46:50 +00:00
tonyr%fbdesigns.com
648840c2d6 Updated makefiles to almost work.
git-svn-id: svn://10.0.0.236/trunk@65990 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:37:23 +00:00
tonyr%fbdesigns.com
61018349a5 added uriloader/extprotocol/mac projects
git-svn-id: svn://10.0.0.236/trunk@65989 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:31:09 +00:00
cls%seawood.org
59f735c01a Beos build fix for the clipboard API change.
git-svn-id: svn://10.0.0.236/trunk@65988 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:24:44 +00:00
putterman%netscape.com
a8c6ab7ea6 More work on reorganizing mailnews frontend so standalone msg window will work. Also
fixes some bugs from the last time.  r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@65987 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 14:07:23 +00:00
rjc%netscape.com
197a9d1b05 Small "Search Editor" changes.
git-svn-id: svn://10.0.0.236/trunk@65986 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 12:03:39 +00:00
rjc%netscape.com
6358dc4e07 Implement the "New Category" and "Remove Category" functions.
git-svn-id: svn://10.0.0.236/trunk@65985 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:52:48 +00:00
mjudge%netscape.com
4abdfed200 Pavlov beat me to this. he changed the APIS while i was editing this file
git-svn-id: svn://10.0.0.236/trunk@65984 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:52:13 +00:00
mjudge%netscape.com
7e0749e956 get rid of a warning on linux
git-svn-id: svn://10.0.0.236/trunk@65983 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:43:59 +00:00
mjudge%netscape.com
82b10d4ab1 added files: mozilla/layout/base/src/nsAutoCopy.cpp
git-svn-id: svn://10.0.0.236/trunk@65982 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:38:30 +00:00
mjudge%netscape.com
9f14c8db1f added new parameters to notification
git-svn-id: svn://10.0.0.236/trunk@65981 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:28:55 +00:00
mjudge%netscape.com
55a061173b added new parameters to NotifySelectionlisteners
git-svn-id: svn://10.0.0.236/trunk@65980 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:27:59 +00:00
mjudge%netscape.com
12a628ba6f new api more details on notification
git-svn-id: svn://10.0.0.236/trunk@65979 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:27:22 +00:00
mjudge%netscape.com
63c6a3cb7b changes to api for selection listeners
git-svn-id: svn://10.0.0.236/trunk@65978 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:26:18 +00:00
mjudge%netscape.com
55078146c7 touch alot. changing api for notify selection listeners to add document and seleciton pointers to the api.
git-svn-id: svn://10.0.0.236/trunk@65977 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:21:19 +00:00
mjudge%netscape.com
63cc30e7be new file changes to get working for autocopyt from selection
git-svn-id: svn://10.0.0.236/trunk@65976 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:15:58 +00:00
mjudge%netscape.com
41dd8efb7c adding in export of nsIAutoCopy.h
git-svn-id: svn://10.0.0.236/trunk@65975 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 11:15:34 +00:00
rjc%netscape.com
78d7a4e165 Implement the "Add Engine" function.
git-svn-id: svn://10.0.0.236/trunk@65974 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:47:00 +00:00
rjc%netscape.com
aa7d538544 Implement RemoveEngine() function in "Search Editor".
git-svn-id: svn://10.0.0.236/trunk@65973 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:34:09 +00:00
rjc%netscape.com
21b2f0cf89 Allow multiple item selections in "Search Editor".
git-svn-id: svn://10.0.0.236/trunk@65972 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:33:10 +00:00
sspitzer%netscape.com
ef0472c71d fix for #20966, default for where to put the cursor should be below the quoted text.
(following the GNSKA guidelines.)


git-svn-id: svn://10.0.0.236/trunk@65971 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:29:59 +00:00
rjc%netscape.com
b93c0a8aa8 Small "Search Editor" changes.
git-svn-id: svn://10.0.0.236/trunk@65970 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:17:14 +00:00
rjc%netscape.com
2c6b45085f Small "Search Editor" changes.
git-svn-id: svn://10.0.0.236/trunk@65969 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 10:07:54 +00:00
rjc%netscape.com
fe294d880e Small "Search Editor" changes.
git-svn-id: svn://10.0.0.236/trunk@65968 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 09:58:05 +00:00
warren%netscape.com
9edaccbdac Fixed to truncate by default. Fixed permissions to default to 664.
git-svn-id: svn://10.0.0.236/trunk@65967 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 09:32:24 +00:00
rjc%netscape.com
e9324d307b Small changes.
git-svn-id: svn://10.0.0.236/trunk@65966 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 08:18:43 +00:00
rjc%netscape.com
a2d24cc1b3 Add support for "Search Editor".
git-svn-id: svn://10.0.0.236/trunk@65965 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 08:00:49 +00:00
despotdaemon%netscape.com
5bdceb4a31 Pseudo-automatic update of changes made by dean.jackson@cmis.csiro.au.
git-svn-id: svn://10.0.0.236/trunk@65964 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 07:56:30 +00:00
ssu%netscape.com
5cfdeed98e fixing bug 28173. affects windows platforms only. Not part of tinderbox builds
git-svn-id: svn://10.0.0.236/trunk@65963 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 07:48:30 +00:00
warren%netscape.com
40e0941ace Fixed refcounting bug 35794.
git-svn-id: svn://10.0.0.236/trunk@65962 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 07:18:36 +00:00
sspitzer%netscape.com
7e4c121fa4 more changes for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@65961 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 06:54:19 +00:00
mjudge%netscape.com
729aef9dfb not in bulid yet
git-svn-id: svn://10.0.0.236/trunk@65960 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 06:19:03 +00:00
mjudge%netscape.com
9697811536 not in build yet.
git-svn-id: svn://10.0.0.236/trunk@65959 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 06:18:36 +00:00
sgehani%netscape.com
d811e3fda5 *** NOT PART OF BUILD ***
Copying the mozilla-installer shell script too as part of the delivered build.


git-svn-id: svn://10.0.0.236/trunk@65958 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 05:59:31 +00:00
sspitzer%netscape.com
2236d87914 more work on the new subscribe dialog. NOT PART OF THE BUILD SO IT IS OK IF I CHECK IN WHILE RED.
git-svn-id: svn://10.0.0.236/trunk@65957 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 05:34:49 +00:00
warren%netscape.com
e31211b526 Fixed leak in AsyncRead/AsyncWrite. r=danm
git-svn-id: svn://10.0.0.236/trunk@65956 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 05:29:21 +00:00
sgehani%netscape.com
5717e67566 Adding a wrapper shell script to launch the installer binary. The shell
script takes care of setting up the users environment before launching the
installer binary.


git-svn-id: svn://10.0.0.236/trunk@65955 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 05:02:06 +00:00
ftang%netscape.com
a87d5f94d9 fix copyright trademark and register mark mapping issue. verified by erik. fix bug 34522
git-svn-id: svn://10.0.0.236/trunk@65954 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:58:53 +00:00
ftang%netscape.com
6b7160944a fix 35565 MLK. decrese gCnt and delete gInfo when gCnt is 0
git-svn-id: svn://10.0.0.236/trunk@65953 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:51:50 +00:00
sspitzer%netscape.com
19edf13829 more changes for the new subscribe dialog.
git-svn-id: svn://10.0.0.236/trunk@65952 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:49:12 +00:00
ftang%netscape.com
24538bacf6 check in fix of 29341 . patched submitted by m_kato@ga2.so-net.ne.jp
Make sure the \ to / conversion respect double byte system on window.


git-svn-id: svn://10.0.0.236/trunk@65951 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:43:02 +00:00
mscott%netscape.com
d197d1ed7e some more performance tweaks...cache the status text isntead of looking it up each time
use .value instead of setAttribute which is faster.


git-svn-id: svn://10.0.0.236/trunk@65950 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:26:15 +00:00
kvisco%ziplink.net
db0fc10022 Changed constructor to use new naming, TX_FALSE, instead of FALSE
git-svn-id: svn://10.0.0.236/trunk@65949 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:24:28 +00:00
troy%netscape.com
f35d51df0e Made FindLineFor() public because I need to call it from the HTML reflow
state code


git-svn-id: svn://10.0.0.236/trunk@65948 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:05:58 +00:00
sspitzer%netscape.com
3c941d6e07 fix the bug where we aren't preflighting compose with the correct identity,
or in the case of news, the correct addressee.

this was hidden by a try / catch, where the dump statement was hidden.


git-svn-id: svn://10.0.0.236/trunk@65947 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 04:00:50 +00:00
ftang%netscape.com
fbd077a726 add fallback code for precomposed hangul
git-svn-id: svn://10.0.0.236/trunk@65946 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:50:57 +00:00
tor%cs.brown.edu
50b1403f0e Alpha compositing work: fix 16bpp and be more flexible about the
ximage read from the server.  Remove old debugging printf.  r=pavlov


git-svn-id: svn://10.0.0.236/trunk@65945 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:36:05 +00:00
rjc%netscape.com
b48524084d Get silly beta1 redirect URLs out of the tip.
git-svn-id: svn://10.0.0.236/trunk@65944 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:28:42 +00:00
mscott%netscape.com
c776f5aa61 Pass in the right channel into the web progress listener.
git-svn-id: svn://10.0.0.236/trunk@65943 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:28:23 +00:00
cmanske%netscape.com
d2540f15c6 Lots and lots of bug fixes and XUL widget conversions. Work in progress, but must checkin to allow XPFE to fix bugs
git-svn-id: svn://10.0.0.236/trunk@65942 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:19:31 +00:00
ssu%netscape.com
1a6e24d84c fixing bugs:
16068
  16465
  25595
  27587
  27598
  18563
  23240
  34664
  34621
  33348

affects only Windows platforms.


git-svn-id: svn://10.0.0.236/trunk@65941 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:19:16 +00:00
norris%netscape.com
f70a94e258 Fix
28390, 28866, 34364
r=brendan@mozilla.org
35701
r=jst@netscape.com


git-svn-id: svn://10.0.0.236/trunk@65940 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:14:53 +00:00
pavlov%netscape.com
dddba59c63 major cleanup of unix clipboard code
git-svn-id: svn://10.0.0.236/trunk@65939 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:13:49 +00:00
bienvenu%netscape.com
b065ea4e59 fix case of nscore.h include
git-svn-id: svn://10.0.0.236/trunk@65938 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:05:46 +00:00
tonyr%fbdesigns.com
584b0d5a41 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@65937 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:04:08 +00:00
bienvenu%netscape.com
7d18f0132a teach mdb about nspr types r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@65936 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 03:03:25 +00:00
mscott%netscape.com
54319ffafd dynamically generate slots for header information. this will make
view all headers easier to implement


git-svn-id: svn://10.0.0.236/trunk@65934 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:54:09 +00:00
alecf%netscape.com
d6c6ba389f updates to the datasource
not part of build


git-svn-id: svn://10.0.0.236/trunk@65933 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:54:08 +00:00
pinkerton%netscape.com
c5745a98a6 New clipboard interface for unix selection clipboard.
git-svn-id: svn://10.0.0.236/trunk@65932 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:52:58 +00:00
pinkerton%netscape.com
ad03ebaa03 new clipboard interfaces for unix selection clipboard.
git-svn-id: svn://10.0.0.236/trunk@65931 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:52:38 +00:00
mscott%netscape.com
c3fe3801fe remove obsolete observer MessengerStatus
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65930 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:51:37 +00:00
mscott%netscape.com
016c70bd05 remove obsolete observer MessengerStatus and remove broadcaster for progress
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65929 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:51:28 +00:00
rjc%netscape.com
3db2c8f12c Use proper window ID.
git-svn-id: svn://10.0.0.236/trunk@65928 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:50:46 +00:00
mscott%netscape.com
42ad3ca34a remove obsolete observer MessengerStatus and remove broadcaster for progress
git-svn-id: svn://10.0.0.236/trunk@65927 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:50:24 +00:00
rjc%netscape.com
267ef775c3 Open up new "Find Bookmarks" window.
git-svn-id: svn://10.0.0.236/trunk@65926 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:50:06 +00:00
mscott%netscape.com
9ee2f929f7 remove obsolete broadcaster: Messenger:Status
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65925 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:49:59 +00:00
mscott%netscape.com
0d50789ef5 implement nsIMsgStatusFeedback on the mail window. You can get to this
object by calling window.MsgStatusFeedback. Remove an obsolete OnStatus
method.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65924 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:49:35 +00:00
mscott%netscape.com
e62593a03d remove expensive setAttribute method! forward all status calls
to our little brother in JS. This should make setting status and starting / stopping the meteors
so much faster! Remove knowledge of the webshell,
and webshell window which we no longer need to keep track of.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65923 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:48:57 +00:00
mccabe%netscape.com
876926090b Added xpfe/components/console Makefiles.
git-svn-id: svn://10.0.0.236/trunk@65922 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:47:54 +00:00
jbetak%netscape.com
824e021a3a r=ftang 32604 Trunk fix for illegal use of nsString-external JavaScript
git-svn-id: svn://10.0.0.236/trunk@65921 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:47:28 +00:00
jbetak%netscape.com
695ca1012e r=valeski, exposing channel for 32604 Trunk fix for illegal use of nsString-external JavaScript
git-svn-id: svn://10.0.0.236/trunk@65920 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:46:28 +00:00
rjc%netscape.com
994fffa5ab Use <xul:textfield> instead of <html:input>
git-svn-id: svn://10.0.0.236/trunk@65919 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:46:01 +00:00
mscott%netscape.com
1e7d49a3dd mark setWebShell as no script.
r=alecf


git-svn-id: svn://10.0.0.236/trunk@65918 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:46:00 +00:00
rjc%netscape.com
7d50551e82 Use <xul:textfield> instead of <html:input>. Set initial focus.
git-svn-id: svn://10.0.0.236/trunk@65917 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:45:26 +00:00
pavlov%netscape.com
b2bf27643a backing out tajima's changes until we can find out why they caused shrike to go orange
git-svn-id: svn://10.0.0.236/trunk@65915 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:31:28 +00:00
Peter.VanderBeken%pandora.be
05110da058 Resolve name conflict.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65913 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:05:21 +00:00
sfraser%netscape.com
2deda51d30 Rename chrome:caps to chrome:security, and put the autocomplete stuff buck in that waqar stomped on. r=jj. Mac only.
git-svn-id: svn://10.0.0.236/trunk@65912 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:01:39 +00:00
Peter.VanderBeken%pandora.be
88861cfaef Correcting end of lines.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65911 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 02:00:44 +00:00
tajima%eng.sun.com
15e9237e8f Fix for previous check-in, which still caused an error on X11R5 basis.
git-svn-id: svn://10.0.0.236/trunk@65910 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 01:50:09 +00:00
Peter.VanderBeken%pandora.be
77cc193274 Correcting end of lines.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65909 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 01:47:09 +00:00
rjc%netscape.com
e653288aab Add "bookmark find" dialog support.
git-svn-id: svn://10.0.0.236/trunk@65905 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 00:05:49 +00:00
suresh%netscape.com
28afdb6e46 Adding POP Testcases to the tree, so there is no security preference issues while running.
git-svn-id: svn://10.0.0.236/trunk@65904 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-14 00:01:23 +00:00
alecf%netscape.com
7b75c928b4 rev the filter datasource to match up with the filter delegate factory
(not yet part of build)


git-svn-id: svn://10.0.0.236/trunk@65903 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:50:50 +00:00
jst%netscape.com
c1252cc4a3 Making nsDOMAttributeMap a 'live' NamedNodeMap, removed the hashtable for the attributes since a) it caused the none-liveness and b) it was overkill, the number of attributes is usually so low so having a hashtable for them doesn't help much.
git-svn-id: svn://10.0.0.236/trunk@65902 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:42:52 +00:00
Peter.VanderBeken%pandora.be
bd26fcf528 Use DOMString instead of String (getting these changes back in).
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65901 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:41:43 +00:00
alecf%netscape.com
78af7e543b add CID and temporary ProgIDs for filter delegate factory
git-svn-id: svn://10.0.0.236/trunk@65900 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:40:49 +00:00
alecf%netscape.com
9aa821c613 first cut at filter delegate factory (not yet part of build)
git-svn-id: svn://10.0.0.236/trunk@65899 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:38:58 +00:00
alecf%netscape.com
fde8b488c1 make the rdf delegate progid accessable from a header file, and switch to the cutting-edge progid schema
r=waterson


git-svn-id: svn://10.0.0.236/trunk@65898 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:37:41 +00:00
sgehani%netscape.com
2abd707206 Updating rpm generation scripts to reflect new packages section name:
`install' -> `xpcom'


git-svn-id: svn://10.0.0.236/trunk@65897 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:33:15 +00:00
bienvenu%netscape.com
0bc640f34a add a couple search error codes, not used yet
git-svn-id: svn://10.0.0.236/trunk@65896 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:28:49 +00:00
rjc%netscape.com
2da0f2205f Add "bookmark find" dialog support.
git-svn-id: svn://10.0.0.236/trunk@65895 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:28:14 +00:00
despotdaemon%netscape.com
85ecea8aa6 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@65894 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:18:05 +00:00
sspitzer%netscape.com
2f1447ced8 more changes for the new subscribe dialog. instead of having all newsgroups as children
of the server, they are children of the appropriate container.

ie, netscape.public.mozilla.mail-news is a child of netscape.public.mozilla


git-svn-id: svn://10.0.0.236/trunk@65893 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:07:13 +00:00
sspitzer%netscape.com
911878fca9 make it so the the children aren't right under the parent, they should be indented.
git-svn-id: svn://10.0.0.236/trunk@65892 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 23:05:08 +00:00
tajima%eng.sun.com
3283e06af7 Fix for build problem on OpenVMS. r=colin@theblakes.com,a=ftang@netscape.com
git-svn-id: svn://10.0.0.236/trunk@65891 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:54:33 +00:00
mjudge%netscape.com
6737cb1c39 made the table temporarily pull from nsLookandFeel until we get style rule working correctly
git-svn-id: svn://10.0.0.236/trunk@65890 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:39:39 +00:00
av%netscape.com
b15f0bce26 Eliminated creation of invalid pointers which causes crash for some plugins, r=serge
git-svn-id: svn://10.0.0.236/trunk@65889 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:34:49 +00:00
ruslan%netscape.com
87b7525c92 Fix 35024 - add new API to the socketTransportService to see how many
connections are alive/in-progress/etc.


git-svn-id: svn://10.0.0.236/trunk@65888 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:30:21 +00:00
jim_nance%yahoo.com
a8382bd69b Backing out some changes to CFLAGS that did not work as well as I wanted
them to.


git-svn-id: svn://10.0.0.236/trunk@65887 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:28:27 +00:00
jfrancis%netscape.com
d3929e89c3 added RemoveAllInlineProperties()
git-svn-id: svn://10.0.0.236/trunk@65886 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:27:41 +00:00
morse%netscape.com
c44e303fae fix bug 34866
git-svn-id: svn://10.0.0.236/trunk@65885 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:24:55 +00:00
nhotta%netscape.com
cb59c76a30 IME change for Win2000, bug 29606, check in for m_kato@ga2.so-net.ne.jp, r=ftang.
git-svn-id: svn://10.0.0.236/trunk@65884 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:23:04 +00:00
jefft%netscape.com
23e5c47731 fixed bug 21742 -- [FEATURE] Save all attachments; r=mscott
git-svn-id: svn://10.0.0.236/trunk@65883 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:19:48 +00:00
akkana%netscape.com
57c4475945 28401: Code cleanup. Move the key event handling to a separate method (r=sfraser)
git-svn-id: svn://10.0.0.236/trunk@65882 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 22:06:30 +00:00
sspitzer%netscape.com
ff898bbb52 add helper function GetFirstSelectedMsgFolder(), and fix the ".len" vs ".length" problem
to get subscribe, new folder, and rename folder to work again.  also some more debugging
dumps.  r=putterman.


git-svn-id: svn://10.0.0.236/trunk@65881 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:56:28 +00:00
kmcclusk%netscape.com
741be3a48f Clip now applies to child views. b=11660 r=buster@netscape.com
Prevent the invalidation of hidden views (1/2 patch from <Tomi.Leppikangas@oulu.fi> b=34466 r=buster@netscape.com
Prevent ViewManager1 from getting into endless loops (patch from <jst@citec.fi> b=25336 r=buster@netscape.com
tested=WINNT, Linux, Mac


git-svn-id: svn://10.0.0.236/trunk@65880 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:56:27 +00:00
jfrancis%netscape.com
86d514b5e7 Wrote RemoveAllInlineProperties() to deal with clearing out inline style, and also fixed a bunch of IME bugs.
git-svn-id: svn://10.0.0.236/trunk@65879 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:50:19 +00:00
danm%netscape.com
ab2158eea3 removing obsolete, erroneous dialog samples
git-svn-id: svn://10.0.0.236/trunk@65878 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:43:55 +00:00
shaver%mozilla.org
abd4f1d678 FreeBSD 3.4 and BSDI/4.1 tweaks from <joerg.brunsmann@FernUni-Hagen.de>
and <drehuis@plaything.org>, respectively.


git-svn-id: svn://10.0.0.236/trunk@65877 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:43:45 +00:00
danm%netscape.com
923c06dc47 removing old, broken dialog samples from debug menu
git-svn-id: svn://10.0.0.236/trunk@65876 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:34:35 +00:00
pnunn%netscape.com
a53e4a6e41 corrected comment in code. pnunn.
git-svn-id: svn://10.0.0.236/trunk@65875 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:27:47 +00:00
pnunn%netscape.com
9932a506b6 Changed rand function for converting 8bit mask to 1bit dithered mask.
msrand() function not working properly on mac.  pnunn.


git-svn-id: svn://10.0.0.236/trunk@65874 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:26:01 +00:00
rginda%netscape.com
97c5eb37e0 fix for 33694, and some cleanup in addSearchEngine.
r=rjc


git-svn-id: svn://10.0.0.236/trunk@65873 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:22:50 +00:00
jst%netscape.com
c64f805590 Update the DOM interface to DOM Level 2, only stubs so far.
git-svn-id: svn://10.0.0.236/trunk@65872 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:21:02 +00:00
danm%netscape.com
60e8666b30 adding centerScreen flag
git-svn-id: svn://10.0.0.236/trunk@65871 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:19:45 +00:00
ruslan%netscape.com
553dd4f555 In case of getting Connection: close during http/1.1 response - don't
record the capabilities of such server.


git-svn-id: svn://10.0.0.236/trunk@65870 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:19:27 +00:00
sgehani%netscape.com
a164abfcc0 Renaming [install] section to [xpcom] to conform to our delivery scripts.
git-svn-id: svn://10.0.0.236/trunk@65869 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:13:27 +00:00
erik%netscape.com
26bfd9ac75 bug 35108; we weren't drawing the geometric shapes from the Japanese
JIS X 0208 fonts on Unix; fixed now


git-svn-id: svn://10.0.0.236/trunk@65868 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:13:04 +00:00
waterson%netscape.com
ac1dd0e9f8 Bug 34565. Initial support for extended <template> syntax.
git-svn-id: svn://10.0.0.236/trunk@65867 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:13:00 +00:00
danm%netscape.com
f8a0bbac98 centering profile manager window. bug 23463
git-svn-id: svn://10.0.0.236/trunk@65866 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:00:54 +00:00
jst%netscape.com
e225db1f22 Fixing objdir build bustage.
git-svn-id: svn://10.0.0.236/trunk@65865 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 21:00:39 +00:00
troy%netscape.com
56f855481d b=35749 Fixed Purify warning
git-svn-id: svn://10.0.0.236/trunk@65864 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:55:40 +00:00
ruslan%netscape.com
d938ad8e99 Partially fix 34743. Handle 100 (Continue) responses. Add an exclusion list
for servers with broken 1.1/pipelining. Fire onstop in case of the error on
all queued up channels in the pipeline.


git-svn-id: svn://10.0.0.236/trunk@65863 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:48:19 +00:00
troy%netscape.com
1b1acabdc3 b=35312 Made sure we don't mesure in chunks if letter spacing is
specified


git-svn-id: svn://10.0.0.236/trunk@65862 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:43:48 +00:00
danm%netscape.com
1006b9f5db hook up new 'centerscreen' chrome flag
git-svn-id: svn://10.0.0.236/trunk@65861 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:32:30 +00:00
mjudge%netscape.com
b5c40f47f1 table cell selection now shows up background. also small fix for nsBlockFrame to do the right thing for mouse capture.
git-svn-id: svn://10.0.0.236/trunk@65860 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:21:32 +00:00
ducarroz%netscape.com
c74a04e3a6 More work on autocomplete. Add support for text selection
git-svn-id: svn://10.0.0.236/trunk@65859 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:21:07 +00:00
waterson%netscape.com
9136a139fd Back out file akk didn't mean to check in. r=akkanna
git-svn-id: svn://10.0.0.236/trunk@65858 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:17:35 +00:00
pinkerton%netscape.com
c52b371c62 Adding support for nsIMenuRollup and not rolling up xpmenus when a click
is in a parent menu.


git-svn-id: svn://10.0.0.236/trunk@65857 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:17:29 +00:00
pinkerton%netscape.com
694a1d5347 Adding support for nsIMenuRollup and xpmenus not rolling up when a click is inside a parent.
git-svn-id: svn://10.0.0.236/trunk@65856 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:15:40 +00:00
pinkerton%netscape.com
6a44695291 adding support for xpmenus to not rollup when a click is inside a parent menu.
git-svn-id: svn://10.0.0.236/trunk@65855 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:15:23 +00:00
danm%netscape.com
084c71db23 adding alwaysLowered and alwaysRaised flags
git-svn-id: svn://10.0.0.236/trunk@65854 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:14:45 +00:00
pinkerton%netscape.com
ae52c7cbda Adding support for xpmenus not rolling up when a click is inside a parent.
git-svn-id: svn://10.0.0.236/trunk@65853 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:14:23 +00:00
pinkerton%netscape.com
57c4d1e558 add nsMenuRollup.idl
git-svn-id: svn://10.0.0.236/trunk@65852 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:10:32 +00:00
pinkerton%netscape.com
47908616f9 fix anonymous content child location to handle the case where a scroll frame may be in the way. r=hyatt.
git-svn-id: svn://10.0.0.236/trunk@65851 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:10:06 +00:00
waqar%netscape.com
ca8eaccbf1 #=27745
r=pollmann
d=Adding Gecko useragent string


git-svn-id: svn://10.0.0.236/trunk@65850 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:09:47 +00:00
pinkerton%netscape.com
185393343a First Checked In.
git-svn-id: svn://10.0.0.236/trunk@65849 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:09:08 +00:00
nhotta%netscape.com
9f11f2ae38 Disabled debug printf, changed query setlocale() to pass NULL instead of an empty string.
git-svn-id: svn://10.0.0.236/trunk@65848 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:08:57 +00:00
danm%netscape.com
650ba2f7b9 adding a 'center' method
git-svn-id: svn://10.0.0.236/trunk@65847 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:07:28 +00:00
waqar%netscape.com
8c02d1edc0 #=27745
r=pollmann
d=Adding Gecko user agent string.


git-svn-id: svn://10.0.0.236/trunk@65846 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:07:13 +00:00
nhotta%netscape.com
997350ef97 Alert the user before sending a plain text mail if the string contains multilingual data, bug 28908, r=ducarroz.
git-svn-id: svn://10.0.0.236/trunk@65845 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:06:28 +00:00
danm%netscape.com
b51bc8ee33 adding 'centered' chrome flag
git-svn-id: svn://10.0.0.236/trunk@65844 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:06:19 +00:00
waterson%netscape.com
95aa66310a Fix compiler warning; use of uninitialized variable.
git-svn-id: svn://10.0.0.236/trunk@65843 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:04:13 +00:00
waterson%netscape.com
c780091c0b Add commentary, Value::GetType() method.
git-svn-id: svn://10.0.0.236/trunk@65842 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:03:39 +00:00
waterson%netscape.com
f86d3e294b Be sure to initialize out parameter when FindChildByTag() doesn't find anything.
git-svn-id: svn://10.0.0.236/trunk@65841 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:02:38 +00:00
nhotta%netscape.com
9ce41cc4c2 Added comments.
git-svn-id: svn://10.0.0.236/trunk@65840 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 20:01:17 +00:00
nhotta%netscape.com
7a17aae4c3 Added fallback conversion to support broken 4.x japanese vCard, bug 21743, r=cata.
git-svn-id: svn://10.0.0.236/trunk@65839 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:57:52 +00:00
nhotta%netscape.com
3168bcbf55 Adding new functions to control message view font, bug 26182, r=rhp.
git-svn-id: svn://10.0.0.236/trunk@65838 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:56:41 +00:00
waterson%netscape.com
76b91f9af2 Bug 12493. Change nsILinkHandler interface to take an nsIURI object instead of a string. This allows necko to canonify URIs before passing them back to global history. r=travis,pierre
git-svn-id: svn://10.0.0.236/trunk@65837 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:55:47 +00:00
gagan%netscape.com
6d14b4f30d Backing out last changes since warren has the new ones.
git-svn-id: svn://10.0.0.236/trunk@65836 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:50:43 +00:00
pnunn%netscape.com
e6b10505d0 bug#3013. Changed code so simple conditional sets generation of 8 bit mask
or triggers 8 bit to dithered 1 bit mask conversion. Set for dithering on
all platforms until rendering crash bug fixed. Tested on linux, NT, mac. pnunn.


git-svn-id: svn://10.0.0.236/trunk@65835 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:47:18 +00:00
pnunn%netscape.com
727398ba49 Bugs 3013, 16742. Added dithering algorithms from Glenn Randers-Pehrson
<randeg@alum.rpi.edu> for platforms that do not support 8 bit masks.
Fixed reducing algorithm for masks.  tested on linux, NT, mac. pnunn.


git-svn-id: svn://10.0.0.236/trunk@65834 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:44:22 +00:00
gagan%netscape.com
003ea98b15 35564 MLK fixes and IOService optimization from beard.
git-svn-id: svn://10.0.0.236/trunk@65833 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:44:15 +00:00
akkana%netscape.com
df015900ff Rename libender to libeditor on Linux and Windows (r=ssu)
git-svn-id: svn://10.0.0.236/trunk@65832 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:43:51 +00:00
akkana%netscape.com
32b72adc7c Remove obsolete csh version of the test
git-svn-id: svn://10.0.0.236/trunk@65831 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:42:18 +00:00
akkana%netscape.com
0d1e0074d2 Fix xlib version (patch from Joerg Brunsmann <joerg.brunsmann@FernUni-Hagen.de>)
git-svn-id: svn://10.0.0.236/trunk@65830 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:41:49 +00:00
akkana%netscape.com
aebcdaddab Fix Editor's View Source dialog (r=cmanske)
git-svn-id: svn://10.0.0.236/trunk@65829 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:41:11 +00:00
gagan%netscape.com
3a9e3e15c2 Fixed the testserver to print arbitrary content-length request. So you can now try http://<testserver>/?Length=N to get back a document with content-length of N. This is not in the build.
git-svn-id: svn://10.0.0.236/trunk@65828 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:20:54 +00:00
varada%netscape.com
5a31a00908 fix for bug#35684- removing the creation of the help shortcut link on the desktop
git-svn-id: svn://10.0.0.236/trunk@65827 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 19:12:25 +00:00
nisheeth%netscape.com
907f5b8e8a Ongoing work to get Transformiix to build as a mozilla component on windows. Not part of mozilla build.
git-svn-id: svn://10.0.0.236/trunk@65826 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 18:30:03 +00:00
rogerl%netscape.com
9be8a000b9 Fxied oboscure bug when user defines function Object(), the next new Object
gets a stack crash looking for the prototype. (bug #32174)


git-svn-id: svn://10.0.0.236/trunk@65825 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 17:58:18 +00:00
locka%iol.ie
678f59224d Removed last vestiges of nsIWebShellContainer (hurrah!)
Made first effort to fix various IE events which have either misfired or not fired at all for a while
Not part of build


git-svn-id: svn://10.0.0.236/trunk@65824 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 16:30:25 +00:00
locka%iol.ie
8e284ed5d1 Removed last vestiges of nsIWebShell (hurrah!)
Not part of build


git-svn-id: svn://10.0.0.236/trunk@65823 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 16:28:43 +00:00
locka%iol.ie
ca54959667 Removed #includes for nsIWebShell added #includes for nsIWebProgress & nsIWebProgressListener
Not part of build


git-svn-id: svn://10.0.0.236/trunk@65822 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 16:27:08 +00:00
locka%iol.ie
1902706b6e Removed references to webshellcontainer
Not part of build


git-svn-id: svn://10.0.0.236/trunk@65821 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 16:23:53 +00:00
bienvenu%netscape.com
7fc272bc86 fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@65820 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 14:58:30 +00:00
bienvenu%netscape.com
34f85b1289 remove unneeded header
git-svn-id: svn://10.0.0.236/trunk@65819 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 14:49:12 +00:00
bienvenu%netscape.com
4be336f346 work on nntp connection cache,not turned on yet r=sspitzer 13506
git-svn-id: svn://10.0.0.236/trunk@65818 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 14:41:35 +00:00
bienvenu%netscape.com
31f00cc1ea fix fast delete breaking delete, r=mscott 32742
git-svn-id: svn://10.0.0.236/trunk@65817 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 14:41:20 +00:00
Peter.VanderBeken%pandora.be
c2b7a4d19a Use DOMString instead of String (getting these changes back in).
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65816 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 14:14:45 +00:00
cls%seawood.org
9e726ea4ef Added CXXFLAGS to link line for toolkit specific test viewers. Bug #35730
git-svn-id: svn://10.0.0.236/trunk@65815 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 13:59:03 +00:00
jdunn%netscape.com
40cfe4d01b newline for hp
git-svn-id: svn://10.0.0.236/trunk@65814 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 13:35:54 +00:00
neeti%netscape.com
807fe4e46e fix for bug 21329,r=pnunn, Image cache needs to limit number as well as size of the image resources consumed on WIN95/WIN98
git-svn-id: svn://10.0.0.236/trunk@65813 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 13:00:31 +00:00
jst%netscape.com
231ff5a791 Fixing #35605, avoid accessing a null pointer in GetOffsetParent()!
git-svn-id: svn://10.0.0.236/trunk@65812 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 12:52:03 +00:00
jst%netscape.com
92c42dfdf8 Fixing #34573. Properly reflow a textcontrol if it's 'rows' attribute changes.
git-svn-id: svn://10.0.0.236/trunk@65811 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 12:28:35 +00:00
heikki%citec.fi
57ff046d84 Missing QI entry for an interface we inherit from. Found by ddediu@usa.net, thanks. r=me.
git-svn-id: svn://10.0.0.236/trunk@65810 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 12:19:50 +00:00
jst%netscape.com
bf63c4d811 If a class claims to support an interface in QueryInterface() it *really* should inherit from that interface then! Fixes #35398.
git-svn-id: svn://10.0.0.236/trunk@65809 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 12:02:58 +00:00
kvisco%ziplink.net
3d84f2d4e8 removed for-loop declaration of ints to be compiler friendly
git-svn-id: svn://10.0.0.236/trunk@65808 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 10:37:49 +00:00
kvisco%ziplink.net
9c6abb1455 updated with latest info
git-svn-id: svn://10.0.0.236/trunk@65807 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 10:23:23 +00:00
warren%netscape.com
1985a1bd83 Fixed assertion problem with rv/rv2.
git-svn-id: svn://10.0.0.236/trunk@65806 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 10:07:13 +00:00
warren%netscape.com
cf8e62d78e Fixed RemoveChannel problem.
git-svn-id: svn://10.0.0.236/trunk@65805 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 10:02:32 +00:00
kvisco%ziplink.net
e6ffefd096 added Marina's fix to handle recurise attribute-set processing, and to handle attribute-set processing for xsl:copy
git-svn-id: svn://10.0.0.236/trunk@65804 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:39:28 +00:00
warren%netscape.com
cdc4a80955 Added some cleanup.
git-svn-id: svn://10.0.0.236/trunk@65803 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:30:09 +00:00
warren%netscape.com
2541e06a0f Removed
git-svn-id: svn://10.0.0.236/trunk@65802 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:22:09 +00:00
warren%netscape.com
298c244142 Fixed AddRef/Release to use NS_ADDREF/NS_RELEASE.
git-svn-id: svn://10.0.0.236/trunk@65801 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:20:58 +00:00
warren%netscape.com
0aa92d16e5 Added nsIStreamIO.idl. Removed nsIFileSystem.idl.
git-svn-id: svn://10.0.0.236/trunk@65800 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:20:57 +00:00
warren%netscape.com
7cefc01f95 Factoring stream i/o operations into nsIStreamIO interface.
git-svn-id: svn://10.0.0.236/trunk@65799 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:20:50 +00:00
warren%netscape.com
94a34176f2 Added sanity assertions.
git-svn-id: svn://10.0.0.236/trunk@65798 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:19:47 +00:00
warren%netscape.com
06e285caf8 Added some sanity checking to SetMimeType.
git-svn-id: svn://10.0.0.236/trunk@65797 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:18:57 +00:00
tbogard%aol.net
c022feee82 Removed a dump statement that wasn't meant to have been pushed.
git-svn-id: svn://10.0.0.236/trunk@65796 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:18:30 +00:00
kvisco%ziplink.net
4937ae4d73 added patches from Marina M. to fix predicate parsing, and make sure we look for Axis Identifier wild cards
git-svn-id: svn://10.0.0.236/trunk@65795 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 09:13:22 +00:00
tbogard%aol.net
656d2c9cb2 Changed the code to use the nsIXULBrowserWindow interface rather than poking attributes for setting throbber activity, window activity and location changing. This should speed things up a bit and also makes the code a bit cleaner.
git-svn-id: svn://10.0.0.236/trunk@65794 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 08:08:52 +00:00
mscott%netscape.com
d3e79e0155 this checkin is actually bryners. Backing out the changes that seem to cause various problems
on linux. Eric is going to sit down with a linux guru tomorrow and try to figure out why these changes
were causing a problem.


git-svn-id: svn://10.0.0.236/trunk@65793 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:43:39 +00:00
mccabe%netscape.com
9e602a5bac Make the console service threadsafe. Lock when logging messages, copying out the message array, registering and unregistering listeners, etc. Also proxy each registered listener to ensure that it is called only on the thread that registers it; hopefully this will make it safe to use javascript-implemented listeners even when error messages are logged on other threads.
Also log some partial work towards making nsIConsoleMessage interfaces factory-instantiable.


git-svn-id: svn://10.0.0.236/trunk@65792 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:20:24 +00:00
mccabe%netscape.com
5e883fa2be Rename interface constants from names like ERROR and STRICT, which evidently conflict with preprocessor defines on Windows.
Thanks to Travis for noticing this problem.


git-svn-id: svn://10.0.0.236/trunk@65791 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:03:46 +00:00
kvisco%ziplink.net
941f240e84 changed makefile to remove dependancy on base/String.o
git-svn-id: svn://10.0.0.236/trunk@65790 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:02:54 +00:00
mccabe%netscape.com
8c6917a47b Fix Makefile to work with srcdir.
Patch courtesy Colin Blake <colin@theblakes.com>


git-svn-id: svn://10.0.0.236/trunk@65789 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 07:00:33 +00:00
kvisco%ziplink.net
ec687e9867 finished making name change from String to TxString
git-svn-id: svn://10.0.0.236/trunk@65788 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:40:34 +00:00
heikki%citec.fi
b1206faf63 Test files for XML Base. **Sicking testing cvs admin**
git-svn-id: svn://10.0.0.236/trunk@65787 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:40:18 +00:00
heikki%citec.fi
839955a875 Test files for XML Base. Not part of build.
git-svn-id: svn://10.0.0.236/trunk@65786 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:40:17 +00:00
beard%netscape.com
62acd3149d [not part of build] using non-debugging allocators to keep out of leak reports.
git-svn-id: svn://10.0.0.236/trunk@65785 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:40:16 +00:00
beard%netscape.com
e02a506408 [not part of build] more heuristics for valid identifiers
git-svn-id: svn://10.0.0.236/trunk@65784 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:39:20 +00:00
heikki%citec.fi
ea22c7c2e0 Implemented XML Base (http://www.w3.org/TR/xmlbase). Still some issues with escaping illegal chars in URLs etc. Bug 32842.
git-svn-id: svn://10.0.0.236/trunk@65783 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:38:31 +00:00
beard%netscape.com
29c061c8e4 [not part of build] silent when leaking objects w/o debugging info.
git-svn-id: svn://10.0.0.236/trunk@65782 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:36:13 +00:00
beard%netscape.com
16903c7520 [not part of build] StringTable
git-svn-id: svn://10.0.0.236/trunk@65781 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:35:02 +00:00
beard%netscape.com
6e7906e41f [not part of build] NFRAMES == 2 for alignment reasons, splaying sibling lists.
git-svn-id: svn://10.0.0.236/trunk@65780 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:34:20 +00:00
beard%netscape.com
0baf8e8743 [not part of build] NFRAMES == 2 for alignment reasons.
git-svn-id: svn://10.0.0.236/trunk@65779 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 06:33:09 +00:00
bienvenu%netscape.com
85635c2332 fix ClearFlag method, r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@65778 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:55:48 +00:00
bienvenu%netscape.com
451881b581 add InitFromUri method, r=mscott for nntp connection cache
git-svn-id: svn://10.0.0.236/trunk@65777 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:54:45 +00:00
bienvenu%netscape.com
c630e11823 fix line buffer to grow past 4k r=mscott 33715
git-svn-id: svn://10.0.0.236/trunk@65776 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:53:56 +00:00
morse%netscape.com
78427a8b29 remove image blocking
git-svn-id: svn://10.0.0.236/trunk@65775 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:16:10 +00:00
sfraser%netscape.com
11edab2993 Adding methods to allow control of the selection in text widgets.
git-svn-id: svn://10.0.0.236/trunk@65774 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:15:59 +00:00
sfraser%netscape.com
2150b9eaeb Use an nsCOMPtr in the Select call.
git-svn-id: svn://10.0.0.236/trunk@65773 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:14:08 +00:00
sfraser%netscape.com
9be180bf20 Adding methods to NSHTMLInputElement to allow control of the selection from JS.
git-svn-id: svn://10.0.0.236/trunk@65772 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 05:02:35 +00:00
beard%netscape.com
8f6ef04403 gc_base now used as common base class of GC allocated objects.
git-svn-id: svn://10.0.0.236/trunk@65771 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:54:41 +00:00
beard%netscape.com
80f0e049d9 added gc_base, which defines a more generic operator new().
git-svn-id: svn://10.0.0.236/trunk@65770 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:53:56 +00:00
sfraser%netscape.com
89c406272d Adding methods to nsHTMLNSInputElement to support getting/setting the selection from JS. Also added a textLength attribute.
git-svn-id: svn://10.0.0.236/trunk@65769 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:50:59 +00:00
ducarroz%netscape.com
36b9328d4b Remove the old autocomplete widget which is now replaced by the XBL one (xpfe/components/autocomplete). R=alecf.
git-svn-id: svn://10.0.0.236/trunk@65768 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:50:39 +00:00
sfraser%netscape.com
648cb7d34b No need to #include nsIGfxTextControlFrame.h any more.
git-svn-id: svn://10.0.0.236/trunk@65767 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:49:52 +00:00
ducarroz%netscape.com
65fa96c9c0 Add xpfe/components/autocomplete to the build. R=alecf.
git-svn-id: svn://10.0.0.236/trunk@65766 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:49:50 +00:00
ducarroz%netscape.com
616b465b58 Add CSS binding for new XBL autocomplete widget. R=alecf.
git-svn-id: svn://10.0.0.236/trunk@65765 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:49:28 +00:00
ducarroz%netscape.com
39e4219b50 Fix makefile error. R=alecf
git-svn-id: svn://10.0.0.236/trunk@65764 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:49:23 +00:00
nisheeth%netscape.com
bf73b5e100 Back out earlier fix to bug 13565. I shouldn't remove the code that dumps XML error messages to the console because the browser window is not going to be around all time, for example, in the case of the profile manager window.
git-svn-id: svn://10.0.0.236/trunk@65763 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:43:37 +00:00
nisheeth%netscape.com
057f60e982 Fix for bug 13565. Removed code that dumps XML error messages to console because error messages now show up inside the browser window.
git-svn-id: svn://10.0.0.236/trunk@65762 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 04:13:41 +00:00
beard%netscape.com
c737d3c063 XP_MAC improvements, stack walking, pc to name translation, early toolbox initialization so console will pop-up in correct location.
git-svn-id: svn://10.0.0.236/trunk@65761 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:51:43 +00:00
beard%netscape.com
bb9fac76c4 [not part of build] since MacOS isn't preemptive, make FASTLOCK a no-op.
git-svn-id: svn://10.0.0.236/trunk@65760 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:27:51 +00:00
erik%netscape.com
c95a9c55ef bug 35515; get *-iso10646-1 fonts to work by correcting the test for glyph
availability; bug 35665; add support for microsoft-cp1251 fonts


git-svn-id: svn://10.0.0.236/trunk@65759 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:24:13 +00:00
jim_nance%yahoo.com
139bae80c1 Fixes for bug 35466 from wtc, along with some suggestions for better
compiler flags from Jeff D. at Compaq.  This should not affect anything
other than Tru64 Unix.  If it does I can be reached at 919.859.3885


git-svn-id: svn://10.0.0.236/trunk@65758 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:13:14 +00:00
tbogard%aol.net
a92109cc36 Moved the implementation of nsIRefreshURI into the docShell. Reordered CreateFixupURI to try simply creating the URI before actually doing any munging. Stop now calls CancelRefreshURITimers. String version of LoadURI now properly puts up error boxes for missing protocols.
git-svn-id: svn://10.0.0.236/trunk@65757 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:11:44 +00:00
tbogard%aol.net
1799dc127e Moved the implementation of nsIRefreshURI into the docShell. When the webShell is getting destructed make sure we call Destroy.
git-svn-id: svn://10.0.0.236/trunk@65756 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:11:25 +00:00
tbogard%aol.net
34e6aace92 Make DocShell link with the timer library so it can call NS_NewTimer.
git-svn-id: svn://10.0.0.236/trunk@65755 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:05:35 +00:00
mscott%netscape.com
4caf2e5bba Bug #35661 --> don't try to load a message if we are about to delete it
r=putterman


git-svn-id: svn://10.0.0.236/trunk@65754 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 03:03:50 +00:00
sspitzer%netscape.com
5f3fdf25ee fix for #11043. implement news biff. thanks to tobias@adamson.com for contributing this patch. r=sspitzer
git-svn-id: svn://10.0.0.236/trunk@65753 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:59:01 +00:00
tbogard%aol.net
b65c1a8b6c WebShell no longer creates the plugin host. nsObjectFrame now gets it from the service manager instead of trying to get it from the webshell.
git-svn-id: svn://10.0.0.236/trunk@65752 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:56:05 +00:00
tbogard%aol.net
b6416a6dce Implemented SetFocus.
git-svn-id: svn://10.0.0.236/trunk@65751 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:54:38 +00:00
sspitzer%netscape.com
56e99cfeb2 fix for #34791. "check new mail" -> "check new messages".
git-svn-id: svn://10.0.0.236/trunk@65750 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:53:55 +00:00
tbogard%aol.net
3e66256a75 Get the service for the plugin host. Don't bother requesting it from the container.
git-svn-id: svn://10.0.0.236/trunk@65749 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:53:18 +00:00
tbogard%aol.net
8c8146c9a7 When the object goes away due to the last ref on the object, make sure to Destroy() so we free everything up that is usually done there.
git-svn-id: svn://10.0.0.236/trunk@65748 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 02:52:34 +00:00
beard%netscape.com
99c9a6173b builds gc
git-svn-id: svn://10.0.0.236/trunk@65743 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:37:00 +00:00
beard%netscape.com
b9a7cafdad Added gc_allocator.h to project and gc.lib to link against.
git-svn-id: svn://10.0.0.236/trunk@65742 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:28:40 +00:00
beard%netscape.com
a1b04f96e3 linking in gc.lib from ../../gc/boehm
git-svn-id: svn://10.0.0.236/trunk@65741 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:16:58 +00:00
beard%netscape.com
0ee7e71e66 Not part of build, Makefile used by JS2
git-svn-id: svn://10.0.0.236/trunk@65740 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:16:03 +00:00
mjudge%netscape.com
bccee5ad91 a=gramps. smoketest fix for 35590
git-svn-id: svn://10.0.0.236/trunk@65739 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:15:02 +00:00
beard%netscape.com
9b49d537d4 enabling GC on all platforms
git-svn-id: svn://10.0.0.236/trunk@65738 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:14:23 +00:00
edburns%acm.org
e27cea00ad bug: http://bugzilla.mozilla.org/show_bug.cgi?id=32011
Add first function pointer integration to webclient for StarOffice.
This is necessary to allow events to be sent from mozilla to
StarOffice.


git-svn-id: svn://10.0.0.236/trunk@65737 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-13 00:12:50 +00:00
despotdaemon%netscape.com
7f4e413648 Pseudo-automatic update of changes made by bnesse@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@65736 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 23:36:19 +00:00
locka%iol.ie
a664395dc2 Moved control to components folder.
Put some hacks in around the calls to the non-reentrant NS_InitXPCOM so that the control can be used from VB


git-svn-id: svn://10.0.0.236/trunk@65735 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:54:54 +00:00
nisheeth%netscape.com
e316922109 Removing the header file because it is generated by IDL now. Not part of mozilla build.
git-svn-id: svn://10.0.0.236/trunk@65734 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:52:38 +00:00
dveditz%netscape.com
1f18235a56 get VC5 Mozilla build back off the floor, a=granrose
git-svn-id: svn://10.0.0.236/trunk@65733 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:48:54 +00:00
nisheeth%netscape.com
bc8a6ab806 Ongoing work to get Transformiix to build on Windows. Not part of the mozilla build.
git-svn-id: svn://10.0.0.236/trunk@65732 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:47:04 +00:00
nisheeth%netscape.com
3b22990b3e Ongoing attempt to get Transformiix building on Windows. Not part of mozilla build.
git-svn-id: svn://10.0.0.236/trunk@65731 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:34:04 +00:00
troy%netscape.com
b6151e0baf b=35603, r=jinjin@pacbell.net Fix for blocker (crash when selecting
text)


git-svn-id: svn://10.0.0.236/trunk@65730 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 22:22:58 +00:00
warren%netscape.com
08abdd677d Added nsIStreamIO.idl
git-svn-id: svn://10.0.0.236/trunk@65728 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 21:32:15 +00:00
donm%bluemartini.com
fb2de4f637 Rewrite of repophook to pull changes from the bonsai database from a certain
date, and according to legaldirs rebuild the hook list of checkins.  This
had been broken since switching over from the flatfile checkinlog.
Reviewed and Approved by: Terry Weismann


git-svn-id: svn://10.0.0.236/trunk@65727 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 18:44:37 +00:00
ashuk%eng.sun.com
93dcc0b67f Made fix for Find Dialog closing correctly on Solaris
a=ashuk
r=geetha.vaidyanaathan@sun.com
Bug=35514

_Ashu


git-svn-id: svn://10.0.0.236/trunk@65726 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 18:06:21 +00:00
norris%netscape.com
b4284415c8 Fix bug 33841.
git-svn-id: svn://10.0.0.236/trunk@65725 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 17:30:32 +00:00
jdunn%netscape.com
aed89a2d6d adding include for tolower & toupper
git-svn-id: svn://10.0.0.236/trunk@65724 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 15:52:50 +00:00
troy%netscape.com
7f8c86cbc4 Fix for build bustage
git-svn-id: svn://10.0.0.236/trunk@65723 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 15:42:55 +00:00
sspitzer%netscape.com
ded4692ea9 fix for blocker bug #35591. 3 pane toolbar buttons don't work.
git-svn-id: svn://10.0.0.236/trunk@65722 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 15:32:27 +00:00
troy%netscape.com
b382c442f3 Added support for measuring text runs in ascii, and changed text transformer
to leave the text as ascii if possible


git-svn-id: svn://10.0.0.236/trunk@65721 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:54:43 +00:00
rods%netscape.com
a3d39e96df Dirty reflows are treated like Incremental for optimization
The GetAbsoluteFramePosition didn't take into account if the comboxbox was had a prent view with no parent
b=35291


git-svn-id: svn://10.0.0.236/trunk@65720 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:51:10 +00:00
troy%netscape.com
ae75e4aa8c b=34731 Fixed bug in Unicode version of GetWidth() that takes a line break array.
Also added an ascii version of function


git-svn-id: svn://10.0.0.236/trunk@65719 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:49:46 +00:00
jdunn%netscape.com
5effad2e06 fixing typedef of an enum which broke hp builds.
r= akanna@netscape.com, johng@netscape.com


git-svn-id: svn://10.0.0.236/trunk@65718 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:44:46 +00:00
jdunn%netscape.com
c17d125985 Initialize the vars and make sure we 'NULL' them after we free them.
On HP (for example) there isn't a sound shared lib, so we ended up
freeing an uninitialized pointer.
r= dougt@netscape.com


git-svn-id: svn://10.0.0.236/trunk@65717 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:42:40 +00:00
jefft%netscape.com
89f7ff51dd fixed bug 33566, 34252 - cancel from saveAs saveAttachment causes alert; r=scottip
git-svn-id: svn://10.0.0.236/trunk@65716 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 14:23:41 +00:00
dcone%netscape.com
bffb29319c Changed some tiling code. Cleanup up how DIB's and DDB's are cleaned up.
git-svn-id: svn://10.0.0.236/trunk@65715 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:52:10 +00:00
dcone%netscape.com
83a2f389b7 Changed some tiling code.
git-svn-id: svn://10.0.0.236/trunk@65714 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:47:03 +00:00
brade%netscape.com
a4fdf81708 remove duplicate line
git-svn-id: svn://10.0.0.236/trunk@65713 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:30:32 +00:00
brade%netscape.com
9ea38beeba remove colon from alignment box label; add image map box label
git-svn-id: svn://10.0.0.236/trunk@65712 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:27:00 +00:00
brade%netscape.com
7ab7fc0808 redo with xul widgets
git-svn-id: svn://10.0.0.236/trunk@65711 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:26:16 +00:00
brade%netscape.com
b64fab6896 remove update of labels which are being removed altogether; add edit image map js
git-svn-id: svn://10.0.0.236/trunk@65710 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:24:41 +00:00
brade%netscape.com
a73bffacf6 use platform-specific keybindings for previous/next word (with and without extending selection)
git-svn-id: svn://10.0.0.236/trunk@65709 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:08:51 +00:00
brade%netscape.com
c7804be17c move windows-specific keybindings out of general editor file and into window-specific file
git-svn-id: svn://10.0.0.236/trunk@65708 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:07:44 +00:00
brade%netscape.com
4cd9a53b26 remove commented out keybindings; comment out stylesheet insertion menu items
git-svn-id: svn://10.0.0.236/trunk@65707 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:07:02 +00:00
brade%netscape.com
2943746d7e remove EditorApplyStyleSheet and EditorImageMap functions (we aren't supporting insertion of stylesheets at this time and image map function is moved to image dialog js file).
git-svn-id: svn://10.0.0.236/trunk@65706 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 13:05:28 +00:00
kvisco%ziplink.net
ed8d0a3d36 updated with latest info
git-svn-id: svn://10.0.0.236/trunk@65705 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 11:44:13 +00:00
kvisco%ziplink.net
25a0b57a40 updated example to show descending order
git-svn-id: svn://10.0.0.236/trunk@65704 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 11:26:26 +00:00
kvisco%ziplink.net
2783ee8657 added support for sorting under xsl:for-each
git-svn-id: svn://10.0.0.236/trunk@65703 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 11:25:21 +00:00
kvisco%ziplink.net
0ea5682ae3 changed header
git-svn-id: svn://10.0.0.236/trunk@65702 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 11:08:06 +00:00
kvisco%ziplink.net
8a9f793007 added support for simple xslt sorting
git-svn-id: svn://10.0.0.236/trunk@65701 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 11:00:56 +00:00
kvisco%ziplink.net
69fd22db23 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@65700 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:59:29 +00:00
kvisco%ziplink.net
4d06125b0d initial checkin of simple sorting example
git-svn-id: svn://10.0.0.236/trunk@65699 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:57:19 +00:00
kvisco%ziplink.net
f6d355a99e initial checkin of NodeSorter.h/cpp which as the name suggests handles Node sorting
git-svn-id: svn://10.0.0.236/trunk@65698 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:55:55 +00:00
kvisco%ziplink.net
563dcf7154 made TxObect::hashCode virtual, added TxObject::equals
git-svn-id: svn://10.0.0.236/trunk@65697 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:53:27 +00:00
kvisco%ziplink.net
e333ebe447 added new classes to Makefile
git-svn-id: svn://10.0.0.236/trunk@65696 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:52:27 +00:00
kvisco%ziplink.net
4ebb6cce15 initial checkin. StringComparator is a virtual class used for doing String
comparisons. DefaultStringComparator is the default implementation of
StringComparator. Map.h/cpp is a simple HashMap implementation for TxObjects.


git-svn-id: svn://10.0.0.236/trunk@65695 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:50:03 +00:00
mjudge%netscape.com
ae3c9d9ad5 fixing 2 bugs. bug for notifications going out when we dont need them for selection changing. and for fixing some keyboard navigations around non-text frames
git-svn-id: svn://10.0.0.236/trunk@65694 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:34:19 +00:00
Peter.VanderBeken%pandora.be
e7b8cce71b Added processTopLevel function that takes an Element as input.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65693 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:16:45 +00:00
tbogard%aol.net
d35db358c7 Provided implementation for the file fixup work.
git-svn-id: svn://10.0.0.236/trunk@65692 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:06:58 +00:00
tbogard%aol.net
1bac2e91d8 Put the GetInterface for the uriContentListener into an ifndef for DOCSHELL_LOAD so when DOCSHELL_LOADING is turned on, we get the right handler.
git-svn-id: svn://10.0.0.236/trunk@65691 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 10:00:04 +00:00
warren%netscape.com
f9056257c8 Adding code to remove entries from free list when recycled.
git-svn-id: svn://10.0.0.236/trunk@65690 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 09:48:30 +00:00
sspitzer%netscape.com
d3e6a61e1b changes so that the alert for cross posting to multiple news server shows up.
(instead of a silent failure.)  note, we are still being too over-zealous when
deciding if you are cross posting to multiple servers.  see bug #35338


git-svn-id: svn://10.0.0.236/trunk@65689 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 09:48:25 +00:00
tbogard%aol.net
8c7494bc47 Removed the file fixup and completely rely on docShell fro Creating the uri.
git-svn-id: svn://10.0.0.236/trunk@65688 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 09:46:40 +00:00
tbogard%aol.net
03530c32c4 Fixed viewer to implement SizeBrowserTo and on notification of a location change make sure not to try poking data into a field that isn't there (the location one). CLEANUP_WIDGET now checks to see if the widget is in existence before destroying it. Bug #34433
git-svn-id: svn://10.0.0.236/trunk@65687 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 09:25:46 +00:00
sspitzer%netscape.com
bc41af2aff make sure we mark the newsrc file as dirty if we update it.
git-svn-id: svn://10.0.0.236/trunk@65686 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 08:50:01 +00:00
jband%netscape.com
4573c49fd4 NOT PART OF SEAMONKEY BUILD. Make plugin sample work on windows. It looks like this has been unable to compile on windows since someone added Unix only includes outside the #ifdef XP_UNIX block about *nine* months ago. There were also a few places where it was causing crashes. I'm not very confident in the rest of this code.
git-svn-id: svn://10.0.0.236/trunk@65685 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 08:35:15 +00:00
warren%netscape.com
e6ef4a1f7b Moved nsXPIDLString.h out of ifdef for optimized builds.
git-svn-id: svn://10.0.0.236/trunk@65684 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 08:25:32 +00:00
heikki%citec.fi
27dfe3cf98 Fixing build bustage. When MOZ_SGV is set and DISABLE_TESTS is not set, the build dies in this makefile.
git-svn-id: svn://10.0.0.236/trunk@65683 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 08:19:19 +00:00
rjc%netscape.com
56c6533261 Small search changes.
git-svn-id: svn://10.0.0.236/trunk@65682 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 08:07:10 +00:00
sspitzer%netscape.com
2b358d3567 I need to name this node, so I can overlay the ab synch pref panel.
git-svn-id: svn://10.0.0.236/trunk@65681 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 07:58:25 +00:00
warren%netscape.com
22161b7197 Added nsIZipReaderCache. Removed nsIZipReader::ParseManifest. Got jar: protocol going for downloaded jars and input streams. Added assertions that Cancel is called with a failure code.
git-svn-id: svn://10.0.0.236/trunk@65680 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 07:58:24 +00:00
sspitzer%netscape.com
6595ce61e5 fix for #14645. we need those mailnews default prefs, even when installing the
base package, because of migration.


git-svn-id: svn://10.0.0.236/trunk@65679 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 07:48:21 +00:00
sspitzer%netscape.com
eb928ab05c bulletproofing fix for bug #35568. r=waterson.
git-svn-id: svn://10.0.0.236/trunk@65678 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 07:38:17 +00:00
sspitzer%netscape.com
29f20e5113 fix spelling mistake. I'm so anal, it is scary.
git-svn-id: svn://10.0.0.236/trunk@65677 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:54:35 +00:00
morse%netscape.com
7b4d7fc3d1 fix bug 35372, appropriate title when used as image manager
git-svn-id: svn://10.0.0.236/trunk@65676 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:35:26 +00:00
leaf%mozilla.org
dd3ff63fdf Automated update
git-svn-id: svn://10.0.0.236/trunk@65675 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:30:10 +00:00
sspitzer%netscape.com
12c1e01ae5 add bug # to the assertion, so people know where to add info if they can reproduce this.
git-svn-id: svn://10.0.0.236/trunk@65674 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:22:14 +00:00
cls%seawood.org
25fe7656b0 BeOS build fixes. Bug #34553
git-svn-id: svn://10.0.0.236/trunk@65673 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:20:59 +00:00
sspitzer%netscape.com
6c67b6c9a4 fix for #35567. bulletproof to avoid a crash. r=putterman.
git-svn-id: svn://10.0.0.236/trunk@65672 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:16:23 +00:00
ducarroz%netscape.com
efc75ecfbc Rename Addressbook classes nsIAutoCompleteSession & nsIAutoCompleteListener to avoid any conflict with the new autocomplete widget during it's landing. R=mscott.
git-svn-id: svn://10.0.0.236/trunk@65671 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 06:12:41 +00:00
sspitzer%netscape.com
f311981876 fix a comment.
git-svn-id: svn://10.0.0.236/trunk@65670 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:55:49 +00:00
kvisco%ziplink.net
4f5478aefa Added name changes from Marina
git-svn-id: svn://10.0.0.236/trunk@65669 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:52:09 +00:00
mjudge%netscape.com
20beb15b82 dangit
git-svn-id: svn://10.0.0.236/trunk@65668 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:48:03 +00:00
mjudge%netscape.com
7623edc2ec left out static in prototype. mac compiler...grumble
git-svn-id: svn://10.0.0.236/trunk@65667 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:43:42 +00:00
morse%netscape.com
5b40011ca3 fix bugs 34760 (not all cookies displayed in cookie viewer) and bug 34866 (better test for foreign images)
git-svn-id: svn://10.0.0.236/trunk@65666 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:28:53 +00:00
morse%netscape.com
015761afef fix bug 34952, cookie header should have Cookie: with uppercase C
git-svn-id: svn://10.0.0.236/trunk@65665 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:26:59 +00:00
morse%netscape.com
1749c5246b attempt to fix mac bustage
git-svn-id: svn://10.0.0.236/trunk@65664 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:20:49 +00:00
bienvenu%netscape.com
1ae3a2a9c3 more work on search, not used yet
git-svn-id: svn://10.0.0.236/trunk@65663 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:14:38 +00:00
bienvenu%netscape.com
c9e9e7e340 initial checkin, not part of build
git-svn-id: svn://10.0.0.236/trunk@65662 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:12:48 +00:00
waterson%netscape.com
31c026f5b1 Add nsXULAtoms.cpp to the build.
git-svn-id: svn://10.0.0.236/trunk@65660 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 05:00:32 +00:00
ducarroz%netscape.com
c7b48092a7 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@65658 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 04:57:48 +00:00
waterson%netscape.com
2ed20459c3 Initial revision.
git-svn-id: svn://10.0.0.236/trunk@65657 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 04:49:28 +00:00
mjudge%netscape.com
b9926db7f9 missed another.get
git-svn-id: svn://10.0.0.236/trunk@65656 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 04:20:07 +00:00
mjudge%netscape.com
9d8e7b1e33 dangit forgot this one
git-svn-id: svn://10.0.0.236/trunk@65653 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 03:35:27 +00:00
mjudge%netscape.com
367a053d05 thought this would have been caught on my machine sorry. .get added
git-svn-id: svn://10.0.0.236/trunk@65651 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 03:26:49 +00:00
rjc%netscape.com
f8069a4a8d Add support for importing/exporting bookmarks.
git-svn-id: svn://10.0.0.236/trunk@65650 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 03:09:04 +00:00
mjudge%netscape.com
c25a8377d7 fix for setcapture. passes events to the nsHTMLFrame's areaframe when events are trapped to a given frame's view.
git-svn-id: svn://10.0.0.236/trunk@65649 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 03:04:11 +00:00
evaughan%netscape.com
5e5d2c2425 Fix for titledbox bugs.
git-svn-id: svn://10.0.0.236/trunk@65648 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 02:59:26 +00:00
ruslan%netscape.com
383bf26a65 Adding additional prefs for networking
git-svn-id: svn://10.0.0.236/trunk@65647 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 02:51:58 +00:00
pavlov%netscape.com
63edd1eeaf disable x11-shm code until crash can be looked at
rewrote image drawing code
  -- refactored drawing
  -- added tiling code
added patch from Tim Rowley <tor@cs.brown.edu> for 8bit alpha compositing of images (not used yet)


git-svn-id: svn://10.0.0.236/trunk@65646 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 02:23:12 +00:00
mscott%netscape.com
5c3c7b0e4c Bug #29222 --> fix alignment of add to ab and attachment icons
r=sspitzer


git-svn-id: svn://10.0.0.236/trunk@65645 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 02:17:45 +00:00
tbogard%aol.net
3ea4662027 Checks for when progress is called after docShell goes away. This is now going to be valid with changes made to the way the uriLoader and necko do cancelling. Bug #35505
git-svn-id: svn://10.0.0.236/trunk@65644 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 01:59:15 +00:00
ruslan%netscape.com
6e7da609de Landing link-click problem fix. Also fix DNS lockup (gordon) on Windows,
memory leak of socket transports during pipelined request, add timeout
setters on socket transport, add a restriction on the number of keep-alive
connections.


git-svn-id: svn://10.0.0.236/trunk@65643 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 01:47:22 +00:00
bryner%uiuc.edu
ca8b146fdd Make sure we correctly obtain the system setting for the number of
lines to mousewheel scroll on Win95 (it's different than 98/NT).  This
was causing ProcessMessage to bail out early and never dispatch the
event.  r=hyatt.


git-svn-id: svn://10.0.0.236/trunk@65642 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 01:43:39 +00:00
ddrinan%netscape.com
ef0d7f74ea Initial check in PSM docs
git-svn-id: svn://10.0.0.236/trunk@65641 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 01:19:11 +00:00
akkana%netscape.com
16b9790143 Fix mac bustage -- conflict with a mac system header
git-svn-id: svn://10.0.0.236/trunk@65640 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:59:40 +00:00
ruslan%netscape.com
53ad7be163 Add a quick constructor for nsISupportsPRBool as well as make it implement
threadsafe isupports. Stream convs. use it.


git-svn-id: svn://10.0.0.236/trunk@65639 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:46:58 +00:00
hyatt%netscape.com
f2850a15c0 Cuddling mailnews. XOXOXOXOX
git-svn-id: svn://10.0.0.236/trunk@65638 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:26:01 +00:00
dmose%mozilla.org
e280088418 use sendmail deferred delivery to avoid long hangs at bug submission time
git-svn-id: svn://10.0.0.236/trunk@65637 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:25:38 +00:00
hyatt%netscape.com
c074373552 Cuddling mailnews and giving it some of my sweet sweet love.
git-svn-id: svn://10.0.0.236/trunk@65636 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:25:05 +00:00
hyatt%netscape.com
3dca29dd25 Cuddling mailnews and giving it some of my sweet sweet love. r=saari
git-svn-id: svn://10.0.0.236/trunk@65635 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:24:07 +00:00
ddrinan%netscape.com
2dc58d9818 Initial checkin of the PSM server
git-svn-id: svn://10.0.0.236/trunk@65634 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:15:15 +00:00
tbogard%aol.net
39e0862ae5 Added an attribute for holding the charset info to be used during a load.
git-svn-id: svn://10.0.0.236/trunk@65633 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:07:04 +00:00
ddrinan%netscape.com
688ef1c934 Initial checkin of the PSM server
git-svn-id: svn://10.0.0.236/trunk@65632 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-12 00:05:55 +00:00
evaughan%netscape.com
3d16a0efc8 Grid fixes.
Memory leak fixes.
box cleanup.

-a ftang


git-svn-id: svn://10.0.0.236/trunk@65631 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:55:15 +00:00
ddrinan%netscape.com
4b983e02eb Initial check-in PSM UI files
git-svn-id: svn://10.0.0.236/trunk@65630 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:54:23 +00:00
tbogard%aol.net
b07f35a6c6 Close now simply calls destroy. nsWebShellWindow now has a subclass for Destroy which does everything that Close use to do. Removed all the implementation of nsIWebShellContainer methods that went away.
git-svn-id: svn://10.0.0.236/trunk@65629 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:50 +00:00
tbogard%aol.net
4f35b6560c Provided implementation for CreateFixupURI. Added needed parameters to DoURILoad and finished implementation. InternalLoad now takes needed parameters as well.
git-svn-id: svn://10.0.0.236/trunk@65628 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:42 +00:00
tbogard%aol.net
d135c517d8 Removed the viewSource member and the GetStringForCommand as it is no longer used.
git-svn-id: svn://10.0.0.236/trunk@65627 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:37 +00:00
tbogard%aol.net
10067a9afc Removed nsIWebShellContainer methods that are no longer part of the interface. Removed convertFileToURL and convertURLToFileCharset as the implementation in docShell is now relied upon. LoadURL now largely relies on docShell's CreateFixupURI to get a uri. No longer call nsIWebShellContainer::BeginLoadURL or EndLoadURL as the nsIWebProgressListener interface provides all these needed listeners. No longer call nsIWebShellContainer::WillLoadURL as the uriLoader code provides the ability to cancel or stop a load from happening. DoLoadURL now relies on the implementation in docShell for talking to the uriloader. Fixed a bug with nsWebShell::GoTo pointed out by Conrad.
git-svn-id: svn://10.0.0.236/trunk@65626 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:28 +00:00
tbogard%aol.net
8727537dfe Removed the remaining methods on nsIWebShellContainer as they are no longer used.
git-svn-id: svn://10.0.0.236/trunk@65625 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:52:27 +00:00
tbogard%aol.net
65f8207048 nsChromeTreeOwner is now a nsIWebProgressListener for a load.
git-svn-id: svn://10.0.0.236/trunk@65624 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:50:14 +00:00
tbogard%aol.net
20df804f7d Changed tab spacing to say 3 to be accurate.
git-svn-id: svn://10.0.0.236/trunk@65623 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:49:08 +00:00
tbogard%aol.net
835aca6ed0 Changed to use the enumeration rather than the string based parameter to the parser loading mode.
git-svn-id: svn://10.0.0.236/trunk@65622 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:48:37 +00:00
tbogard%aol.net
733b054319 Changed nsEditorShell to hold on to docShells instead of webShells. Changed a number of places to use nsIDocShell instead of nsIWebShell. Removed the hold on a nsIWebShellWindow as no one should ever hold onto that.
git-svn-id: svn://10.0.0.236/trunk@65621 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 23:48:14 +00:00
akkana%netscape.com
4a9fb6a45b Fix build bustage, a misplaced #ifdef
git-svn-id: svn://10.0.0.236/trunk@65620 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:59:30 +00:00
ftang%netscape.com
b401834a10 fix 34886. add accidential deleted line back.
git-svn-id: svn://10.0.0.236/trunk@65619 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:47:18 +00:00
ftang%netscape.com
8d7e132980 fix 34646. Change the key to the new non-offending name
git-svn-id: svn://10.0.0.236/trunk@65618 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:43:43 +00:00
ftang%netscape.com
b2d7a4d989 add transliteration fall back . fix bug 33501
git-svn-id: svn://10.0.0.236/trunk@65617 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:41:21 +00:00
bryner%uiuc.edu
7a1359d810 Enable parsing of URL's in finger: text. bug 26753. r=valeski, a=ftang.
git-svn-id: svn://10.0.0.236/trunk@65616 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:41:02 +00:00
ftang%netscape.com
6b8e136315 add more entries into the transliteration table which generated by the perl script.
git-svn-id: svn://10.0.0.236/trunk@65615 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:37:10 +00:00
waterson%netscape.com
7e2dcaa22c Bug 35360. Fix UMRs in MatchList discovered by bruce@cybersight.com.
git-svn-id: svn://10.0.0.236/trunk@65614 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:36:53 +00:00
waterson%netscape.com
cf5d15a49e Bug 35392. Fix leaking MemoryElement when already in set. r=beard -- thanks for wiping my chin.
git-svn-id: svn://10.0.0.236/trunk@65613 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:35:43 +00:00
akkana%netscape.com
85178871d8 34704: Make colors as well as metrics customizable.
git-svn-id: svn://10.0.0.236/trunk@65612 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:34:55 +00:00
ftang%netscape.com
5534509670 add perl script which read unicode character database and generate the transliteration table
git-svn-id: svn://10.0.0.236/trunk@65611 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:34:39 +00:00
ftang%netscape.com
489432d6b6 fix bug 35025
git-svn-id: svn://10.0.0.236/trunk@65610 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 22:33:13 +00:00
despotdaemon%netscape.com
1f1eac3851 Pseudo-automatic update of changes made by ddrinan@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@65609 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 21:22:20 +00:00
putterman%netscape.com
6e8b94b72c Add a standalone message window and make multiple 3 pane configurations work. r=mscott, sspitzer.
git-svn-id: svn://10.0.0.236/trunk@65608 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 20:19:32 +00:00
despotdaemon%netscape.com
2f1ca033da Pseudo-automatic update of changes made by tara@tequilarista.org.
git-svn-id: svn://10.0.0.236/trunk@65607 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 18:39:42 +00:00
despotdaemon%netscape.com
d53bd28e8e Pseudo-automatic update of changes made by tara@tequilarista.org.
git-svn-id: svn://10.0.0.236/trunk@65606 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 18:33:55 +00:00
norris%netscape.com
5f17ad5f2c Remove obsolete statement from javadoc.
git-svn-id: svn://10.0.0.236/trunk@65605 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 18:24:08 +00:00
norris%netscape.com
00a6eda054 Update javadoc
git-svn-id: svn://10.0.0.236/trunk@65604 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 18:22:36 +00:00
despotdaemon%netscape.com
e4b8b4d8d7 Pseudo-automatic update of changes made by namachi@netscape.com.
git-svn-id: svn://10.0.0.236/trunk@65603 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 12:13:26 +00:00
despotdaemon%netscape.com
eb7080dad4 Pseudo-automatic update of changes made by heikki@citec.fi.
git-svn-id: svn://10.0.0.236/trunk@65602 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 06:28:18 +00:00
ducarroz%netscape.com
48de6c967a More work on autocomplete. NOT YET PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@65599 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 06:05:28 +00:00
ducarroz%netscape.com
a4a087a39b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@65598 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 06:04:29 +00:00
beard%netscape.com
9381029146 JSActivation, JSFunction
git-svn-id: svn://10.0.0.236/trunk@65597 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 05:11:58 +00:00
beard%netscape.com
58374dbac2 Added JSFunction, defineFunction()
git-svn-id: svn://10.0.0.236/trunk@65596 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 05:10:40 +00:00
beard%netscape.com
e24d19e2ad defineFunction, added assert
git-svn-id: svn://10.0.0.236/trunk@65595 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 05:09:38 +00:00
beard%netscape.com
8ac9fe969d _Charalloc, deallocate(void*) for _WIN32 only
git-svn-id: svn://10.0.0.236/trunk@65594 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 04:55:27 +00:00
beard%netscape.com
937ff28877 defineGlobalProperty
git-svn-id: svn://10.0.0.236/trunk@65593 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 03:11:47 +00:00
beard%netscape.com
975ce0edfa JSObject, JSArray : public JSMap, gc_object<T>. Frame -> JSFrame. Added JSFrameStack which is an std:stack<JSFrame*, std:vector<JSFrame*> >.
git-svn-id: svn://10.0.0.236/trunk@65592 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 03:11:00 +00:00
beard%netscape.com
a4e6e6cf4e use gc_allocator<T> everywhere, addGlobalProperty -> defineGlobalProperty
git-svn-id: svn://10.0.0.236/trunk@65591 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 03:07:39 +00:00
beard%netscape.com
dca329f860 removed commented out GET_PROP/SET_PROP.
git-svn-id: svn://10.0.0.236/trunk@65589 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 02:59:52 +00:00
beard%netscape.com
38d43f6703 added gc_object.
git-svn-id: svn://10.0.0.236/trunk@65588 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 02:59:14 +00:00
despotdaemon%netscape.com
7c4cc6ee74 Pseudo-automatic update of changes made by conrad@ingress.com.
git-svn-id: svn://10.0.0.236/trunk@65587 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 02:45:52 +00:00
beard%netscape.com
2e228d4d0e fixing an assert and warnings
git-svn-id: svn://10.0.0.236/trunk@65585 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 01:10:26 +00:00
wtc%netscape.com
8b4c9c2280 Bugzilla bug #35405: use memcmp, as opposed to ==, to compare two structs.
Thanks to Braden N. McDaniel <braden@endoframe.com> for the bug report.


git-svn-id: svn://10.0.0.236/trunk@65584 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 00:39:12 +00:00
rogerl%netscape.com
1f60d50799 CALL opcode & frames etc. (r=beard)
git-svn-id: svn://10.0.0.236/trunk@65583 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 00:32:17 +00:00
ducarroz%netscape.com
9366728ce4 Fix make file build error. NOT YET PART OF THE BUILD
git-svn-id: svn://10.0.0.236/trunk@65582 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 00:14:43 +00:00
ducarroz%netscape.com
4c2d093bd1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@65581 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-11 00:00:38 +00:00
despotdaemon%netscape.com
4c39b6a42f Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@65580 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 23:30:25 +00:00
danm%netscape.com
19fce78469 imap thread now uses a monitored thread event queue. bug 33928. r=mscott a=leaf
git-svn-id: svn://10.0.0.236/trunk@65579 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 23:29:55 +00:00
waqar%netscape.com
46853e110d Depend build does not do exports of header files. r=pollmann,a=leaf
git-svn-id: svn://10.0.0.236/trunk@65577 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:57:29 +00:00
ramiro%fateware.com
82d07c94ba If an argument is given on the command line, load it as a url to test loading
of urls before the widget is realized.


git-svn-id: svn://10.0.0.236/trunk@65576 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:57:27 +00:00
ramiro%fateware.com
27ffb75a2e Constify gtk_moz_emged_load_url. If the widget aint realized on url load,
save the url for later.


git-svn-id: svn://10.0.0.236/trunk@65575 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:52:54 +00:00
waqar%netscape.com
65fa28da33 nsIByteArrayInputStream.h files does not exist any more. r=pollmann,a=leaf
git-svn-id: svn://10.0.0.236/trunk@65574 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:48:27 +00:00
varada%netscape.com
0e1897676f fix for bug #34641 - changing the homepageurl and animatedlogourl to http://home.netscape.com
git-svn-id: svn://10.0.0.236/trunk@65573 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:31:57 +00:00
waldemar%netscape.com
b65369342e Fixed delete/delete[] mismatch
git-svn-id: svn://10.0.0.236/trunk@65571 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:23:17 +00:00
waldemar%netscape.com
fd66ae5e9f Fixed memory leak
git-svn-id: svn://10.0.0.236/trunk@65570 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:20:00 +00:00
pavlov%netscape.com
bfc6ce54f1 fix for 34651 r=sfraser a=leaf
git-svn-id: svn://10.0.0.236/trunk@65569 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 22:08:19 +00:00
danm%netscape.com
c9730b8f8b temporarily make all modal dialogs unmodal while a combobox popup is popping. bug 34484. r=pavlov a=leaf
git-svn-id: svn://10.0.0.236/trunk@65568 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:56:04 +00:00
ruslan%netscape.com
07a2c08ca4 Fix 35344, r=dougt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@65567 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:41:55 +00:00
ftang%netscape.com
38e332d0be mjudge at ftangs machine. last fix to stop crashing. still problem with event from external IME window not getting to ESM
git-svn-id: svn://10.0.0.236/trunk@65566 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:35:52 +00:00
locka%iol.ie
81a14eca60 Fixed link clicking assert
git-svn-id: svn://10.0.0.236/trunk@65565 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:09:46 +00:00
locka%iol.ie
77c38c448a Removed some vestiges of when plugin used to be part of the control project
git-svn-id: svn://10.0.0.236/trunk@65564 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:09:07 +00:00
ftang%netscape.com
349c2130a1 mjudge checkin in from ftangs machine. fixing japanese lockup. this will not fix the strange loss of the commit event to the ESM however. that was making thisproblem obvious.
git-svn-id: svn://10.0.0.236/trunk@65563 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 21:02:25 +00:00
saari%netscape.com
1f93ec4b0d Fix for M15 bug, crashing on tab. Effectively a null check in event state manager. r=hyatt, a=leaf
git-svn-id: svn://10.0.0.236/trunk@65562 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 20:52:52 +00:00
saari%netscape.com
27a2e3d8c1 Fixing M15 blocker 34464, crashing mac menu. r=danm, a=leaf, granrose, et al.
git-svn-id: svn://10.0.0.236/trunk@65561 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 20:48:42 +00:00
cls%seawood.org
8a4651162e Add CFLAGS & CXXFLAGS to MKCSHLIB & MKSHLIB respectively. Bug 35127, r=shaver, a=leaf
git-svn-id: svn://10.0.0.236/trunk@65560 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 20:38:28 +00:00
ruslan%netscape.com
d02e769e2d Fixing the first part of 35344, r=dougt, a=leaf.
git-svn-id: svn://10.0.0.236/trunk@65559 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 20:02:33 +00:00
blizzard%redhat.com
b4d50ddeae fix building on sparc linux. r=jband a=leaf
git-svn-id: svn://10.0.0.236/trunk@65558 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 19:43:31 +00:00
beard%netscape.com
c9985ffa8c [not part of build] guarding all reclamations with GC_root_size. This allows safely removing all registered root sets, to see all globals allocated at shutdown.
git-svn-id: svn://10.0.0.236/trunk@65556 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 18:16:27 +00:00
beard%netscape.com
14f09e88df [not part of build] rewrote GC_print_callers() to use the call_tree.
git-svn-id: svn://10.0.0.236/trunk@65555 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 18:14:37 +00:00
beard%netscape.com
e76da2c12c [not part of build] rewrote GC_save_callers() to use a global call_tree to store stack crawls of arbitrary depth.
git-svn-id: svn://10.0.0.236/trunk@65554 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 18:12:40 +00:00
beard%netscape.com
89f0e63df3 [not part of build] reduced # of frames to 1, now using a global call_tree to store all stack crawls.
git-svn-id: svn://10.0.0.236/trunk@65553 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 18:10:43 +00:00
beard%netscape.com
b984ba1624 [not part of build] turned on ALIGN_DOUBLE configuration flag.
git-svn-id: svn://10.0.0.236/trunk@65552 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 18:09:15 +00:00
miodrag%netscape.com
e68d3ddf9f Pass className rather than mechanismName to DynamicInvoker (391585)
git-svn-id: svn://10.0.0.236/trunk@65551 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 17:47:02 +00:00
miodrag%netscape.com
6e37b34294 Just return the raw bytes rather than a string in getCredentials (391585)
git-svn-id: svn://10.0.0.236/trunk@65550 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 17:45:59 +00:00
beard%netscape.com
95772d686b [not part of build] to save memory, no longer keeping the stack crawl strings in memory, but just keeping pointers to their location. This keeps the tool from running out of memory when processing complete stack crawls now provided by the leak detector.
git-svn-id: svn://10.0.0.236/trunk@65549 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 17:42:24 +00:00
beard%netscape.com
d047a7d0d7 [not part of build] fixed getFileLocation() when function name has [] in it (such as operator[]).
git-svn-id: svn://10.0.0.236/trunk@65548 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 17:40:08 +00:00
beard%netscape.com
663909e662 [not part of build] stack crawl tree
git-svn-id: svn://10.0.0.236/trunk@65547 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 17:38:25 +00:00
karnaze%netscape.com
63fa8b6505 bug 35099 - create form frame when inside table related element. a=leaf
git-svn-id: svn://10.0.0.236/trunk@65546 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 04:00:37 +00:00
mscott%netscape.com
d0f3c1301a Bug #12505 --> fix printing for imap. the load attributes for nsMsgProtocol weren't getting initialized!
Implement get/Set load attributes. When displaying a message, we weren't putting the channel in the right load
group. It was goinging into the 3-pane's load group instead of the message pane's load group. I needed to fix
this b4 I could implment get/set load attributes which in turn was required to fix printing of imap messages.
r=bienvenu
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65544 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 01:50:06 +00:00
mscott%netscape.com
89c45408b5 Bug #12505 --> fix printing for local and news. the load attributes for nsMsgProtocol weren't getting initialized!
r=bienvenu
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65543 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 01:48:41 +00:00
mscott%netscape.com
765dfe797a Bug #31806 --> unhork the mail message pane where each email recipient in the to or cc field was showing up on
it's own line (inlcuding the ", " which also got it's own line).
However, this fix made us use a box where we used to use a div. div's wrap the addresses to the next line nicely
and boxes don't do this so more work still needs to be done.
r=putterman
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65542 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 00:32:25 +00:00
mscott%netscape.com
4e309e8bd7 Bug #34769 (this change is actually dougt's). Don't allow the chrome cache channel to stomp on it's original
uri if it's already been set.
r=waterson,mscott
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65541 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-10 00:25:22 +00:00
law%netscape.com
22ecf769a5 Fix for bug 32664; change url and menu text for some QA menu items; a=leaf
git-svn-id: svn://10.0.0.236/trunk@65540 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-09 01:55:04 +00:00
talisman%anamorphic.com
cc52016ae0 Added contribution from Ian Clarke.
git-svn-id: svn://10.0.0.236/trunk@65539 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 06:16:32 +00:00
endico%mozilla.org
3fb9cfa72f add link to unconfirmed
git-svn-id: svn://10.0.0.236/trunk@65538 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 06:04:15 +00:00
beard%netscape.com
6679286072 Fixed warnings about member initializers on Linux. Whatever.
git-svn-id: svn://10.0.0.236/trunk@65537 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 04:49:41 +00:00
beard%netscape.com
f546db4e0e Reduced size of args arrays to minimum.
git-svn-id: svn://10.0.0.236/trunk@65536 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 04:41:19 +00:00
beard%netscape.com
1432ce9406 Reordered parameters to getProperty()/setProperty() to be consistent with operand ordering. Added array allocation/indexing to testObjects().
git-svn-id: svn://10.0.0.236/trunk@65535 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 04:15:02 +00:00
beard%netscape.com
914d7a51de JSArray::elements(1), operator[](const JSValue&), fixed register-indexing.
git-svn-id: svn://10.0.0.236/trunk@65534 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 04:12:28 +00:00
beard%netscape.com
11ffde7160 Fixed NEW_ARRAY, GET_ELEMENT, SET_ELEMENT printing.,
git-svn-id: svn://10.0.0.236/trunk@65533 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 04:11:16 +00:00
beard%netscape.com
15070af13c NEW_ARRAY
git-svn-id: svn://10.0.0.236/trunk@65531 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 03:37:49 +00:00
beard%netscape.com
decc24505a Reordered GetProp/SetProp operands to base, name. Added NewArray, GetElement, SetElement instructions.
git-svn-id: svn://10.0.0.236/trunk@65530 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 03:37:18 +00:00
beard%netscape.com
d19e518b56 added JSArray, GET_ELEMENT, SET_ELEMENT, changed some ops to dest/src.
git-svn-id: svn://10.0.0.236/trunk@65529 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 03:23:44 +00:00
beard%netscape.com
eb44d3ea34 added JSArray, comments.
git-svn-id: svn://10.0.0.236/trunk@65528 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 02:44:34 +00:00
beard%netscape.com
9dedd058cb Changed boilerplate, chmod -x
git-svn-id: svn://10.0.0.236/trunk@65527 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 02:29:07 +00:00
beard%netscape.com
15d3b6be0f converted NotALabel to an enum, so it obeys proper scoping rules.
git-svn-id: svn://10.0.0.236/trunk@65525 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 02:25:37 +00:00
rogerl%netscape.com
d40d777177 added interpreter & icodegenerator
git-svn-id: svn://10.0.0.236/trunk@65524 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 01:09:50 +00:00
rogerl%netscape.com
250e4699ba Fixed wacky tabs
git-svn-id: svn://10.0.0.236/trunk@65523 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 01:08:01 +00:00
rogerl%netscape.com
f8a5823b94 Added ICodeModule to collect extra info about executable chunks.
git-svn-id: svn://10.0.0.236/trunk@65522 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 01:04:55 +00:00
beard%netscape.com
3a3a84dc6b fixed LoadImmediate.
git-svn-id: svn://10.0.0.236/trunk@65521 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:57:28 +00:00
beard%netscape.com
bf8767518c reindented, introduced gc_map_allocator to hide platform differences
git-svn-id: svn://10.0.0.236/trunk@65520 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:52:59 +00:00
beard%netscape.com
dd8c036d33 conforming to MSVC++ allocators
git-svn-id: svn://10.0.0.236/trunk@65519 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:48:13 +00:00
cls%seawood.org
a80d7f57c8 Set SHORT_LIBNAME for 8.3 platforms.
git-svn-id: svn://10.0.0.236/trunk@65518 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:39:39 +00:00
despotdaemon%netscape.com
76ef22f835 Pseudo-automatic update of changes made by gerv@gerv.net.
git-svn-id: svn://10.0.0.236/trunk@65517 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:19:35 +00:00
mjudge%netscape.com
5d8cfb2393 a=leaf r=ftang. I will be more carefull with ime when doing selection.. I will be more carefull with ime...
git-svn-id: svn://10.0.0.236/trunk@65516 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-08 00:17:14 +00:00
nhotta%netscape.com
c1cd9d0105 Initialize the output buffer length in order to avoid infinite loop, bug 34859, r=ftang, a=leaf.
git-svn-id: svn://10.0.0.236/trunk@65515 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 23:58:59 +00:00
sspitzer%netscape.com
882b02a93c fix for #33749. first time compose window problems on linux. use skinnable menulist instead of html-select (kill two birds with one stone.) right-on=mscott, amen=leaf.
git-svn-id: svn://10.0.0.236/trunk@65514 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 23:47:31 +00:00
gagan%netscape.com
7b7e7d922a Some test changes to allow echoing requests at arbitrary locations in urlmap. You can now use ECHO [HTTPHeader] to display all headers (if HTTPHeader is not specified) or that header value as it came in the request. See <your-testserver>/echo for an example. Not in build (a=leaf)
git-svn-id: svn://10.0.0.236/trunk@65513 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 23:14:52 +00:00
Peter.VanderBeken%pandora.be
9b3878bbe5 Prevent multiple inclusion.
Fix class declaration.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65512 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 23:00:35 +00:00
Peter.VanderBeken%pandora.be
276d072ae7 Use DOMString instead of String.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65511 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 22:59:18 +00:00
rogerl%netscape.com
b66a335e7f Re-ordered instructions so destination is always first.
Changed labels to be struct * instead of ints.


git-svn-id: svn://10.0.0.236/trunk@65510 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 22:19:36 +00:00
rogerl%netscape.com
0d2d2befc2 fix invalid return in GC_free for win32 build
git-svn-id: svn://10.0.0.236/trunk@65509 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 21:58:33 +00:00
mscott%netscape.com
1229f5f777 backing out my bug fix because it appears to have broken the page cycler.
thanks to sspitzer for helping me figure this out.


git-svn-id: svn://10.0.0.236/trunk@65507 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 21:36:09 +00:00
rginda%netscape.com
f888771c6c #if out references to std::iterator to get gcc to compile
git-svn-id: svn://10.0.0.236/trunk@65506 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 21:11:40 +00:00
attinasi%netscape.com
3c9a929557 New Daily run data. not part of builds.
git-svn-id: svn://10.0.0.236/trunk@65505 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 20:30:07 +00:00
leaf%mozilla.org
6825eab444 removing incompatibly licensed source.
git-svn-id: svn://10.0.0.236/trunk@65504 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 20:14:28 +00:00
despotdaemon%netscape.com
be030a3bb3 Pseudo-automatic update of changes made by leaf@mozilla.org.
git-svn-id: svn://10.0.0.236/trunk@65503 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 20:08:16 +00:00
mjudge%netscape.com
4d25156406 a=leaf. r=sfraser. fixing ime lockup. stupid mistake on my part
git-svn-id: svn://10.0.0.236/trunk@65502 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 19:32:46 +00:00
mscott%netscape.com
a1a3736941 Bug #34769 --> don't set the refferer as the original url on the channel in the webshell.
r=warren
a=leaf


git-svn-id: svn://10.0.0.236/trunk@65501 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 19:25:42 +00:00
waterson%netscape.com
fca444bc04 Bug 34726. Add an out parameter to ConflictSet::Add() that indicates whether the new instantiation triggered any new rules to be matched. The caller then uses this parameter to decide whether or not to add the key of a rule cluster to the 'newkeys' set. r=rjc, a=leaf
git-svn-id: svn://10.0.0.236/trunk@65500 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 19:22:59 +00:00
cls%seawood.org
7241e7d876 Removing unused bitrotted file from BeOS build. Bug #34555. r=pavlov, a=leaf
git-svn-id: svn://10.0.0.236/trunk@65499 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 19:21:19 +00:00
hyatt%netscape.com
0344ba8296 Backing out some global changes that cause sidebar horkage.
git-svn-id: svn://10.0.0.236/trunk@65498 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 18:38:04 +00:00
hyatt%netscape.com
366866a55f Fix double sidebar problem. Still don't understand why these rules would be required.
r=don


git-svn-id: svn://10.0.0.236/trunk@65497 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 18:29:21 +00:00
waterson%netscape.com
ee118c74c7 Bug 34408. Fix botched checkin that left '#if 0' in the code. a=leaf
git-svn-id: svn://10.0.0.236/trunk@65496 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 18:24:15 +00:00
robodan%netscape.com
bc21ec9bb8 Add a multi-OS build tool
git-svn-id: svn://10.0.0.236/trunk@65495 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 17:51:22 +00:00
erik%netscape.com
efe2ce4839 was dereferencing a NULL pointer for some fonts; discovered via Beta 1's
TalkBack; r=troy; a=leaf


git-svn-id: svn://10.0.0.236/trunk@65494 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 17:47:40 +00:00
rich.burridge%sun.com
550c4c2d2c Adjusted the be instruction to now branch to .invoke and not invoke (was
a missing symbol at link time).
a=leaf r=rogerl
Bug id #15604


git-svn-id: svn://10.0.0.236/trunk@65493 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 17:45:03 +00:00
Peter.VanderBeken%pandora.be
30702485f3 Obsolete.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65492 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 10:36:35 +00:00
Peter.VanderBeken%pandora.be
bf187e46c5 Removing obsolete Create method. Renaming CID and PROGID defines. Move PROGID into header file. Add my copyright.
Not part of build yet. a=leaf


git-svn-id: svn://10.0.0.236/trunk@65491 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 10:35:05 +00:00
kvisco%ziplink.net
3f4955e164 checking in for Olivier Gerardin
git-svn-id: svn://10.0.0.236/trunk@65490 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 09:00:45 +00:00
kvisco%ziplink.net
abda4330f3 checking in for Olivier
git-svn-id: svn://10.0.0.236/trunk@65489 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 09:00:06 +00:00
kvisco%ziplink.net
ab2b94d44c Added scoping back in
git-svn-id: svn://10.0.0.236/trunk@65488 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 08:58:55 +00:00
kvisco%ziplink.net
1fa27063ab removed copyright for myself
git-svn-id: svn://10.0.0.236/trunk@65487 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 08:09:25 +00:00
beard%netscape.com
c1a72f96eb printing code in testObjects().
git-svn-id: svn://10.0.0.236/trunk@65486 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:59:57 +00:00
beard%netscape.com
974defe34d added code to print SAVE_NAME, NEW_OBJECT, GET_PROP, and SET_PROP iCodes.
git-svn-id: svn://10.0.0.236/trunk@65485 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:58:58 +00:00
beard%netscape.com
7e5b3ffe33 JSObject and its elements now allocated using gc_allocator<T> (XP_MAC only).
git-svn-id: svn://10.0.0.236/trunk@65484 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:39:50 +00:00
beard%netscape.com
860e0eb56b JSValues now using gc_allocator (XP_MAC only for now).
git-svn-id: svn://10.0.0.236/trunk@65483 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:38:18 +00:00
beard%netscape.com
35050e55d7 added gc library.
git-svn-id: svn://10.0.0.236/trunk@65482 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:36:38 +00:00
beard%netscape.com
34cc7ca2f2 prebuilt gc library for bootstrapping.
git-svn-id: svn://10.0.0.236/trunk@65481 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:35:14 +00:00
beard%netscape.com
b80c0a05d3 added stub implementations of GC entry points.
git-svn-id: svn://10.0.0.236/trunk@65480 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 04:00:21 +00:00
beard%netscape.com
e7deb28317 added failed gc_rebind, for future compilers to ponder.
git-svn-id: svn://10.0.0.236/trunk@65479 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 03:11:38 +00:00
beard%netscape.com
6b7c024d03 duh, can't use wide string constants on Linux
git-svn-id: svn://10.0.0.236/trunk@65478 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 03:08:20 +00:00
beard%netscape.com
14d0662d1c XP_MAC: no longer auto close upon exit (so we can see asserts, etc.). Renamed testInterpreter() to testFactorial(). Added testObjects(), which allocates an object, stores it in the global variable "global", assigns 0.0 to "global.counter", and finally defines a function "increment" which adds 1.0 to "global.counter" each time it is called.
git-svn-id: svn://10.0.0.236/trunk@65477 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:58:01 +00:00
beard%netscape.com
4543749474 Added preliminary object representation class JSObject, which is simply an STL map<String, JSValue> for now. Changed static globals to be a JSObject (can you say scope chain?). Implemented NEW_OBJECT, GET_PROP, and SET_PROP, all in terms of operations provided by JSObject. No GC (yet).
git-svn-id: svn://10.0.0.236/trunk@65476 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:52:07 +00:00
beard%netscape.com
36e56e8886 added forward declaration to class JSObject, and changed void* JSValue.ref to JSObject* JSValue.obj.
git-svn-id: svn://10.0.0.236/trunk@65475 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:47:53 +00:00
beard%netscape.com
d882c1dfe6 fix calls to template superclass for gcc
git-svn-id: svn://10.0.0.236/trunk@65474 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:45:33 +00:00
beard%netscape.com
733a7d7159 added NEW_OBJECT instruction. unified typedef GetProp, SetProp. changed typedef Return to class Return, added class NewObject. These classes automatically pass their opcode to their base-class, and look better in the debugger. Added a virtual destructor to Instruction() #ifdef DEBUG. Added newObject(), saveName() and setProperty() methods to ICodeGenerator.
git-svn-id: svn://10.0.0.236/trunk@65473 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:41:21 +00:00
beard%netscape.com
d7fbbfb982 added newObject(), saveName() and setProperty().
git-svn-id: svn://10.0.0.236/trunk@65472 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:41:08 +00:00
nelsonb%netscape.com
238246791c This file was not the source authorized by Paul Kocher of Cryptography
Research Inc for release on Mozilla.  It has been replaced by sha_fast.c.


git-svn-id: svn://10.0.0.236/trunk@65471 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:24:57 +00:00
nelsonb%netscape.com
722e157645 Switch freebl to use the sha1 sources authorized by Paul Kocher of
Cryptography Research Inc.


git-svn-id: svn://10.0.0.236/trunk@65470 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 02:22:47 +00:00
nelsonb%netscape.com
1a5ef0ac85 Make additional performance improvements, especially for big endian CPUs.
git-svn-id: svn://10.0.0.236/trunk@65469 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 01:14:06 +00:00
waldemar%netscape.com
e22e019484 Worked around Visual C++ bugs
git-svn-id: svn://10.0.0.236/trunk@65468 18797224-902f-48f8-a5cc-f745e15eee43
2000-04-07 00:47:39 +00:00
708 changed files with 79802 additions and 75208 deletions

View File

@@ -1,431 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// datetime implementation
#include "nsDateTimeChannel.h"
#include "nsIServiceManager.h"
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsXPIDLString.h"
#include "nsISocketTransportService.h"
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
// nsDateTimeChannel methods
nsDateTimeChannel::nsDateTimeChannel() {
NS_INIT_REFCNT();
mContentLength = -1;
mPort = -1;
}
nsDateTimeChannel::~nsDateTimeChannel() {
}
NS_IMPL_ISUPPORTS4(nsDateTimeChannel, nsIChannel, nsIRequest, nsIStreamListener, nsIStreamObserver)
nsresult
nsDateTimeChannel::Init(nsIURI* uri)
{
nsresult rv;
NS_ASSERTION(uri, "no uri");
mUrl = uri;
rv = mUrl->GetPort(&mPort);
if (NS_FAILED(rv) || mPort < 1)
mPort = DATETIME_PORT;
rv = mUrl->GetPath(getter_Copies(mHost));
if (NS_FAILED(rv)) return rv;
if (!*(const char *)mHost) return NS_ERROR_NOT_INITIALIZED;
return NS_OK;
}
NS_METHOD
nsDateTimeChannel::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsDateTimeChannel* dc = new nsDateTimeChannel();
if (dc == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(dc);
nsresult rv = dc->QueryInterface(aIID, aResult);
NS_RELEASE(dc);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods:
NS_IMETHODIMP
nsDateTimeChannel::IsPending(PRBool *result)
{
NS_NOTREACHED("nsDateTimeChannel::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetStatus(nsresult *status)
{
*status = NS_OK;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::Cancel(nsresult status)
{
NS_NOTREACHED("nsDateTimeChannel::Cancel");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::Suspend(void)
{
NS_NOTREACHED("nsDateTimeChannel::Suspend");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::Resume(void)
{
NS_NOTREACHED("nsDateTimeChannel::Resume");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP
nsDateTimeChannel::GetOriginalURI(nsIURI* *aURI)
{
*aURI = mOriginalURI ? mOriginalURI : mUrl;
NS_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetOriginalURI(nsIURI* aURI)
{
mOriginalURI = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::GetURI(nsIURI* *aURI)
{
*aURI = mUrl;
NS_IF_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetURI(nsIURI* aURI)
{
mUrl = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::OpenInputStream(nsIInputStream **_retval)
{
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = socketService->CreateTransport(mHost, mPort, mHost, 32, 32, getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
return channel->OpenInputStream(_retval);
}
NS_IMETHODIMP
nsDateTimeChannel::OpenOutputStream(nsIOutputStream **_retval)
{
NS_NOTREACHED("nsDateTimeChannel::OpenOutputStream");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::AsyncOpen(nsIStreamObserver *observer, nsISupports* ctxt)
{
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = socketService->CreateTransport(mHost, mPort, mHost, 32, 32, getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
return channel->AsyncOpen(observer, ctxt);
}
NS_IMETHODIMP
nsDateTimeChannel::AsyncRead(nsIStreamListener *aListener,
nsISupports *ctxt)
{
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = socketService->CreateTransport(mHost, mPort, mHost, 32, 32, getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
mListener = aListener;
return channel->AsyncRead(this, ctxt);
}
NS_IMETHODIMP
nsDateTimeChannel::AsyncWrite(nsIInputStream *fromStream,
nsIStreamObserver *observer,
nsISupports *ctxt)
{
NS_NOTREACHED("nsDateTimeChannel::AsyncWrite");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetLoadAttributes(PRUint32 *aLoadAttributes)
{
*aLoadAttributes = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetLoadAttributes(PRUint32 aLoadAttributes)
{
mLoadAttributes = aLoadAttributes;
return NS_OK;
}
#define DATETIME_TYPE "text/plain"
NS_IMETHODIMP
nsDateTimeChannel::GetContentType(char* *aContentType) {
if (!aContentType) return NS_ERROR_NULL_POINTER;
*aContentType = nsCRT::strdup(DATETIME_TYPE);
if (!*aContentType) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetContentType(const char *aContentType)
{
//It doesn't make sense to set the content-type on this type
// of channel...
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsDateTimeChannel::GetContentLength(PRInt32 *aContentLength)
{
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetContentLength(PRInt32 aContentLength)
{
NS_NOTREACHED("nsDateTimeChannel::SetContentLength");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetTransferOffset(PRUint32 *aTransferOffset)
{
NS_NOTREACHED("nsDateTimeChannel::GetTransferOffset");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::SetTransferOffset(PRUint32 aTransferOffset)
{
NS_NOTREACHED("nsDateTimeChannel::SetTransferOffset");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetTransferCount(PRInt32 *aTransferCount)
{
NS_NOTREACHED("nsDateTimeChannel::GetTransferCount");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::SetTransferCount(PRInt32 aTransferCount)
{
NS_NOTREACHED("nsDateTimeChannel::SetTransferCount");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetBufferSegmentSize(PRUint32 *aBufferSegmentSize)
{
NS_NOTREACHED("nsDateTimeChannel::GetBufferSegmentSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::SetBufferSegmentSize(PRUint32 aBufferSegmentSize)
{
NS_NOTREACHED("nsDateTimeChannel::SetBufferSegmentSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetBufferMaxSize(PRUint32 *aBufferMaxSize)
{
NS_NOTREACHED("nsDateTimeChannel::GetBufferMaxSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::SetBufferMaxSize(PRUint32 aBufferMaxSize)
{
NS_NOTREACHED("nsDateTimeChannel::SetBufferMaxSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetShouldCache(PRBool *aShouldCache)
{
*aShouldCache = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::GetPipeliningAllowed(PRBool *aPipeliningAllowed)
{
*aPipeliningAllowed = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetPipeliningAllowed(PRBool aPipeliningAllowed)
{
NS_NOTREACHED("SetPipeliningAllowed");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsDateTimeChannel::GetLoadGroup(nsILoadGroup* *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetLoadGroup(nsILoadGroup* aLoadGroup)
{
if (mLoadGroup) // if we already had a load group remove ourselves...
(void)mLoadGroup->RemoveChannel(this, nsnull, nsnull, nsnull);
mLoadGroup = aLoadGroup;
if (mLoadGroup) {
return mLoadGroup->AddChannel(this, nsnull);
}
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::GetOwner(nsISupports* *aOwner)
{
*aOwner = mOwner.get();
NS_IF_ADDREF(*aOwner);
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetOwner(nsISupports* aOwner)
{
mOwner = aOwner;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::GetNotificationCallbacks(nsIInterfaceRequestor* *aNotificationCallbacks)
{
*aNotificationCallbacks = mCallbacks.get();
NS_IF_ADDREF(*aNotificationCallbacks);
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::SetNotificationCallbacks(nsIInterfaceRequestor* aNotificationCallbacks)
{
mCallbacks = aNotificationCallbacks;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
*aSecurityInfo = nsnull;
return NS_OK;
}
// nsIStreamObserver methods
NS_IMETHODIMP
nsDateTimeChannel::OnStartRequest(nsIChannel *aChannel, nsISupports *aContext) {
return mListener->OnStartRequest(this, aContext);
}
NS_IMETHODIMP
nsDateTimeChannel::OnStopRequest(nsIChannel* aChannel, nsISupports* aContext,
nsresult aStatus, const PRUnichar* aMsg) {
if (mLoadGroup) {
nsresult rv = mLoadGroup->RemoveChannel(this, nsnull, aStatus, aMsg);
if (NS_FAILED(rv)) return rv;
}
return mListener->OnStopRequest(this, aContext, aStatus, aMsg);
}
// nsIStreamListener method
NS_IMETHODIMP
nsDateTimeChannel::OnDataAvailable(nsIChannel* aChannel, nsISupports* aContext,
nsIInputStream *aInputStream, PRUint32 aSourceOffset,
PRUint32 aLength) {
mContentLength = aLength;
return mListener->OnDataAvailable(this, aContext, aInputStream, aSourceOffset, aLength);
}

View File

@@ -1,77 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// A datetime channel retrieves date time information from
// RFC 867 compliant datetime servers. The date/time returned
// to the caller is of MIME type "text/plain".
#ifndef nsDateTimeChannel_h___
#define nsDateTimeChannel_h___
#include "nsString.h"
#include "nsILoadGroup.h"
#include "nsIInputStream.h"
#include "nsIInterfaceRequestor.h"
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsIChannel.h"
#include "nsIURI.h"
#include "nsDateTimeHandler.h"
#include "nsIStreamListener.h"
class nsDateTimeChannel : public nsIChannel, public nsIStreamListener {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSICHANNEL
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISTREAMOBSERVER
// nsDateTimeChannel methods:
nsDateTimeChannel();
virtual ~nsDateTimeChannel();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
nsresult Init(nsIURI* uri);
protected:
nsCOMPtr<nsIInterfaceRequestor> mCallbacks;
nsCOMPtr<nsIURI> mOriginalURI;
nsCOMPtr<nsIURI> mUrl;
nsCOMPtr<nsIStreamListener> mListener;
PRUint32 mLoadAttributes;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCString mContentType;
PRInt32 mContentLength;
nsCOMPtr<nsISupports> mOwner;
PRUint32 mBufferSegmentSize;
PRUint32 mBufferMaxSize;
PRInt32 mPort;
nsXPIDLCString mHost;
};
#endif /* nsDateTimeChannel_h___ */

View File

@@ -1,116 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nspr.h"
#include "nsDateTimeChannel.h"
#include "nsDateTimeHandler.h"
#include "nsIURL.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsIProgressEventSink.h"
static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
////////////////////////////////////////////////////////////////////////////////
nsDateTimeHandler::nsDateTimeHandler() {
NS_INIT_REFCNT();
}
nsDateTimeHandler::~nsDateTimeHandler() {
}
NS_IMPL_ISUPPORTS(nsDateTimeHandler, NS_GET_IID(nsIProtocolHandler));
NS_METHOD
nsDateTimeHandler::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult) {
nsDateTimeHandler* ph = new nsDateTimeHandler();
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
nsDateTimeHandler::GetScheme(char* *result) {
*result = nsCRT::strdup("datetime");
if (!*result) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeHandler::GetDefaultPort(PRInt32 *result) {
*result = DATETIME_PORT;
return NS_OK;
}
NS_IMETHODIMP
nsDateTimeHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **result) {
nsresult rv;
// no concept of a relative datetime url
NS_ASSERTION(!aBaseURI, "base url passed into datetime protocol handler");
nsIURI* url;
rv = nsComponentManager::CreateInstance(kSimpleURICID, nsnull,
NS_GET_IID(nsIURI),
(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
nsDateTimeHandler::NewChannel(nsIURI* url, nsIChannel* *result)
{
nsresult rv;
nsDateTimeChannel* channel;
rv = nsDateTimeChannel::Create(nsnull, NS_GET_IID(nsIChannel), (void**)&channel);
if (NS_FAILED(rv)) return rv;
rv = channel->Init(url);
if (NS_FAILED(rv)) {
NS_RELEASE(channel);
return rv;
}
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,51 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// The datetime protocol handler creates "datetime" URIs of the form
// "datetime:RFC867Server".
#ifndef nsDateTimeHandler_h___
#define nsDateTimeHandler_h___
#include "nsIProtocolHandler.h"
#define DATETIME_PORT 13
// {AA27D2A0-B71B-11d3-A1A0-0050041CAF44}
#define NS_DATETIMEHANDLER_CID \
{ 0xaa27d2a0, 0xb71b, 0x11d3, { 0xa1, 0xa0, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
class nsDateTimeHandler : public nsIProtocolHandler
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROTOCOLHANDLER
// nsDateTimeHandler methods:
nsDateTimeHandler();
virtual ~nsDateTimeHandler();
// Define a Create method to be used with a factory:
static NS_METHOD Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
};
#endif /* nsDateTimeHandler_h___ */

View File

@@ -1,34 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIGenericFactory.h"
#include "nsDateTimeHandler.h"
static nsModuleComponentInfo gResComponents[] = {
{ "The DateTime Protocol Handler",
NS_DATETIMEHANDLER_CID,
NS_NETWORK_PROTOCOL_PROGID_PREFIX "datetime",
nsDateTimeHandler::Create
}
};
NS_IMPL_NSGETMODULE("datetime", gResComponents)

View File

@@ -1,41 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
LIBRARY_NAME = necko_finger
IS_COMPONENT = 1
CPPSRCS = \
nsFingerHandler.cpp \
nsFingerChannel.cpp \
nsFingerModule.cpp \
$(NULL)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
include $(topsrcdir)/config/rules.mk

View File

@@ -1,517 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// finger implementation
#include "nsFingerChannel.h"
#include "nsIServiceManager.h"
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsXPIDLString.h"
#include "nsISocketTransportService.h"
#include "nsIStringStream.h"
#include "nsMimeTypes.h"
static NS_DEFINE_CID(kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID);
#define BUFFER_SEG_SIZE (4*1024)
#define BUFFER_MAX_SIZE (64*1024)
// nsFingerChannel methods
nsFingerChannel::nsFingerChannel()
: mContentLength(-1),
mActAsObserver(PR_TRUE),
mPort(-1),
mStatus(NS_OK)
{
NS_INIT_REFCNT();
}
nsFingerChannel::~nsFingerChannel() {
}
NS_IMPL_THREADSAFE_ISUPPORTS4(nsFingerChannel, nsIChannel, nsIRequest,
nsIStreamListener, nsIStreamObserver)
nsresult
nsFingerChannel::Init(nsIURI* uri)
{
nsresult rv;
nsXPIDLCString autoBuffer;
NS_ASSERTION(uri, "no uri");
mUrl = uri;
// For security reasons, we do not allow the user to specify a
// non-default port for finger: URL's.
mPort = FINGER_PORT;
rv = mUrl->GetPath(getter_Copies(autoBuffer)); // autoBuffer = user@host
if (NS_FAILED(rv)) return rv;
nsCString cString(autoBuffer);
nsCString tempBuf;
PRUint32 i;
// Now parse out the user and host
for (i=0; cString[i] != '\0'; i++) {
if (cString[i] == '@') {
cString.Left(tempBuf, i);
mUser = tempBuf;
cString.Right(tempBuf, cString.Length() - i - 1);
mHost = tempBuf;
break;
}
}
// Catch the case of just the host being given
if (cString[i] == '\0') {
mHost = cString;
}
#ifdef DEBUG_bryner
printf("Status:mUser = %s, mHost = %s\n", (const char*)mUser,
(const char*)mHost);
#endif
if (!*(const char *)mHost) return NS_ERROR_NOT_INITIALIZED;
return NS_OK;
}
NS_METHOD
nsFingerChannel::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult)
{
nsFingerChannel* fc = new nsFingerChannel();
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
nsFingerChannel::IsPending(PRBool *result)
{
NS_NOTREACHED("nsFingerChannel::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetStatus(nsresult *status)
{
*status = mStatus;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::Cancel(nsresult status)
{
nsresult rv = NS_ERROR_FAILURE;
mStatus = status;
if (mTransport) {
rv = mTransport->Cancel(status);
}
return rv;
}
NS_IMETHODIMP
nsFingerChannel::Suspend(void)
{
NS_NOTREACHED("nsFingerChannel::Suspend");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::Resume(void)
{
NS_NOTREACHED("nsFingerChannel::Resume");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods:
NS_IMETHODIMP
nsFingerChannel::GetOriginalURI(nsIURI* *aURI)
{
*aURI = mOriginalURI ? mOriginalURI : mUrl;
NS_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetOriginalURI(nsIURI* aURI)
{
mOriginalURI = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::GetURI(nsIURI* *aURI)
{
*aURI = mUrl;
NS_IF_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetURI(nsIURI* aURI)
{
mUrl = aURI;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::OpenInputStream(nsIInputStream **_retval)
{
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = socketService->CreateTransport(mHost, mPort, mHost, BUFFER_SEG_SIZE,
BUFFER_MAX_SIZE, getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
return channel->OpenInputStream(_retval);
}
NS_IMETHODIMP
nsFingerChannel::OpenOutputStream(nsIOutputStream **_retval)
{
NS_NOTREACHED("nsFingerChannel::OpenOutputStream");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::AsyncOpen(nsIStreamObserver *observer, nsISupports* ctxt)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::AsyncRead(nsIStreamListener *aListener, nsISupports *ctxt)
{
nsresult rv = NS_OK;
NS_WITH_SERVICE(nsISocketTransportService, socketService, kSocketTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> channel;
rv = socketService->CreateTransport(mHost, mPort, mHost, BUFFER_SEG_SIZE,
BUFFER_MAX_SIZE, getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
mListener = aListener;
mResponseContext = ctxt;
mTransport = channel;
return SendRequest(channel);
}
NS_IMETHODIMP
nsFingerChannel::AsyncWrite(nsIInputStream *fromStream,
nsIStreamObserver *observer,
nsISupports *ctxt)
{
NS_NOTREACHED("nsFingerChannel::AsyncWrite");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetLoadAttributes(PRUint32 *aLoadAttributes)
{
*aLoadAttributes = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetLoadAttributes(PRUint32 aLoadAttributes)
{
mLoadAttributes = aLoadAttributes;
return NS_OK;
}
#define FINGER_TYPE TEXT_PLAIN
NS_IMETHODIMP
nsFingerChannel::GetContentType(char* *aContentType) {
if (!aContentType) return NS_ERROR_NULL_POINTER;
*aContentType = nsCRT::strdup(FINGER_TYPE);
if (!*aContentType) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetContentType(const char *aContentType)
{
//It doesn't make sense to set the content-type on this type
// of channel...
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsFingerChannel::GetContentLength(PRInt32 *aContentLength)
{
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetContentLength(PRInt32 aContentLength)
{
NS_NOTREACHED("nsFingerChannel::SetContentLength");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetTransferOffset(PRUint32 *aTransferOffset)
{
NS_NOTREACHED("nsFingerChannel::GetTransferOffset");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::SetTransferOffset(PRUint32 aTransferOffset)
{
NS_NOTREACHED("nsFingerChannel::SetTransferOffset");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetTransferCount(PRInt32 *aTransferCount)
{
NS_NOTREACHED("nsFingerChannel::GetTransferCount");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::SetTransferCount(PRInt32 aTransferCount)
{
NS_NOTREACHED("nsFingerChannel::SetTransferCount");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetBufferSegmentSize(PRUint32 *aBufferSegmentSize)
{
NS_NOTREACHED("nsFingerChannel::GetBufferSegmentSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::SetBufferSegmentSize(PRUint32 aBufferSegmentSize)
{
NS_NOTREACHED("nsFingerChannel::SetBufferSegmentSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetBufferMaxSize(PRUint32 *aBufferMaxSize)
{
NS_NOTREACHED("nsFingerChannel::GetBufferMaxSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::SetBufferMaxSize(PRUint32 aBufferMaxSize)
{
NS_NOTREACHED("nsFingerChannel::SetBufferMaxSize");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetShouldCache(PRBool *aShouldCache)
{
*aShouldCache = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::GetPipeliningAllowed(PRBool *aPipeliningAllowed)
{
*aPipeliningAllowed = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetPipeliningAllowed(PRBool aPipeliningAllowed)
{
NS_NOTREACHED("SetPipeliningAllowed");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsFingerChannel::GetLoadGroup(nsILoadGroup* *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetLoadGroup(nsILoadGroup* aLoadGroup)
{
mLoadGroup = aLoadGroup;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::GetOwner(nsISupports* *aOwner)
{
*aOwner = mOwner.get();
NS_IF_ADDREF(*aOwner);
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetOwner(nsISupports* aOwner)
{
mOwner = aOwner;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::GetNotificationCallbacks(nsIInterfaceRequestor* *aNotificationCallbacks)
{
*aNotificationCallbacks = mCallbacks.get();
NS_IF_ADDREF(*aNotificationCallbacks);
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::SetNotificationCallbacks(nsIInterfaceRequestor* aNotificationCallbacks)
{
mCallbacks = aNotificationCallbacks;
return NS_OK;
}
NS_IMETHODIMP
nsFingerChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
*aSecurityInfo = nsnull;
return NS_OK;
}
// nsIStreamObserver methods
NS_IMETHODIMP
nsFingerChannel::OnStartRequest(nsIChannel *aChannel, nsISupports *aContext) {
if (!mActAsObserver) {
// acting as a listener
return mListener->OnStartRequest(this, aContext);
} else {
// we don't want to pass our AsyncWrite's OnStart through
// we just ignore this
return NS_OK;
}
}
NS_IMETHODIMP
nsFingerChannel::OnStopRequest(nsIChannel* aChannel, nsISupports* aContext,
nsresult aStatus, const PRUnichar* aMsg) {
#ifdef DEBUG_bryner
printf("nsFingerChannel::OnStopRequest, mActAsObserver=%d\n",
mActAsObserver);
printf(" aChannel = %p\n", aChannel);
#endif
nsresult rv = NS_OK;
if (NS_FAILED(aStatus) || !mActAsObserver) {
if (mLoadGroup) {
rv = mLoadGroup->RemoveChannel(this, nsnull, aStatus, aMsg);
if (NS_FAILED(rv)) return rv;
}
rv = mListener->OnStopRequest(this, aContext, aStatus, aMsg);
mTransport = 0;
return rv;
} else {
// at this point we know the request has been sent.
// we're no longer acting as an observer.
mActAsObserver = PR_FALSE;
return aChannel->AsyncRead(this, mResponseContext);
}
}
// nsIStreamListener method
NS_IMETHODIMP
nsFingerChannel::OnDataAvailable(nsIChannel* aChannel, nsISupports* aContext,
nsIInputStream *aInputStream, PRUint32 aSourceOffset,
PRUint32 aLength) {
mContentLength = aLength;
return mListener->OnDataAvailable(this, aContext, aInputStream, aSourceOffset, aLength);
}
nsresult
nsFingerChannel::SendRequest(nsIChannel* aChannel) {
// The text to send should already be in mUser
nsresult rv = NS_OK;
nsCOMPtr<nsISupports> result;
nsCOMPtr<nsIInputStream> charstream;
nsCString requestBuffer(mUser);
if (mLoadGroup) {
mLoadGroup->AddChannel(this, nsnull);
}
requestBuffer.Append(CRLF);
mRequest = requestBuffer.ToNewCString();
rv = NS_NewCharInputStream(getter_AddRefs(result), mRequest);
if (NS_FAILED(rv)) return rv;
charstream = do_QueryInterface(result, &rv);
if (NS_FAILED(rv)) return rv;
#ifdef DEBUG_bryner
printf("Sending: %s\n", requestBuffer.GetBuffer());
#endif
rv = aChannel->SetTransferCount(requestBuffer.Length());
if (NS_FAILED(rv)) return rv;
rv = aChannel->AsyncWrite(charstream, this, 0);
return rv;
}

View File

@@ -1,84 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsFingerChannel_h___
#define nsFingerChannel_h___
#include "nsString.h"
#include "nsILoadGroup.h"
#include "nsIInputStream.h"
#include "nsIInterfaceRequestor.h"
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsIChannel.h"
#include "nsIURI.h"
#include "nsFingerHandler.h"
#include "nsIStreamListener.h"
class nsFingerChannel : public nsIChannel, public nsIStreamListener {
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSICHANNEL
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSISTREAMOBSERVER
// nsFingerChannel methods:
nsFingerChannel();
virtual ~nsFingerChannel();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
nsresult Init(nsIURI* uri);
protected:
nsCOMPtr<nsIInterfaceRequestor> mCallbacks;
nsCOMPtr<nsIURI> mOriginalURI;
nsCOMPtr<nsIURI> mUrl;
nsCOMPtr<nsIStreamListener> mListener;
PRUint32 mLoadAttributes;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCString mContentType;
PRInt32 mContentLength;
nsCOMPtr<nsISupports> mOwner;
PRUint32 mBufferSegmentSize;
PRUint32 mBufferMaxSize;
PRBool mActAsObserver;
PRInt32 mPort;
nsXPIDLCString mHost;
nsXPIDLCString mUser;
nsXPIDLCString mRequest;
nsCOMPtr<nsISupports> mResponseContext;
nsCOMPtr<nsIChannel> mTransport;
nsresult mStatus;
protected:
nsresult SendRequest(nsIChannel* aChannel);
};
#endif /* nsFingerChannel_h___ */

View File

@@ -1,116 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nspr.h"
#include "nsFingerChannel.h"
#include "nsFingerHandler.h"
#include "nsIURL.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsIProgressEventSink.h"
static NS_DEFINE_CID(kSimpleURICID, NS_SIMPLEURI_CID);
////////////////////////////////////////////////////////////////////////////////
nsFingerHandler::nsFingerHandler() {
NS_INIT_REFCNT();
}
nsFingerHandler::~nsFingerHandler() {
}
NS_IMPL_ISUPPORTS(nsFingerHandler, NS_GET_IID(nsIProtocolHandler));
NS_METHOD
nsFingerHandler::Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult) {
nsFingerHandler* ph = new nsFingerHandler();
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
nsFingerHandler::GetScheme(char* *result) {
*result = nsCRT::strdup("finger");
if (!*result) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsFingerHandler::GetDefaultPort(PRInt32 *result) {
*result = FINGER_PORT;
return NS_OK;
}
NS_IMETHODIMP
nsFingerHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **result) {
nsresult rv;
// no concept of a relative finger url
NS_ASSERTION(!aBaseURI, "base url passed into finger protocol handler");
nsIURI* url;
rv = nsComponentManager::CreateInstance(kSimpleURICID, nsnull,
NS_GET_IID(nsIURI),
(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
nsFingerHandler::NewChannel(nsIURI* url, nsIChannel* *result)
{
nsresult rv;
nsFingerChannel* channel;
rv = nsFingerChannel::Create(nsnull, NS_GET_IID(nsIChannel), (void**)&channel);
if (NS_FAILED(rv)) return rv;
rv = channel->Init(url);
if (NS_FAILED(rv)) {
NS_RELEASE(channel);
return rv;
}
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,52 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// The finger protocol handler creates "finger" URIs of the form
// "finger:user@host" or "finger:host".
#ifndef nsFingerHandler_h___
#define nsFingerHandler_h___
#include "nsIProtocolHandler.h"
#define FINGER_PORT 79
// {0x76d6d5d8-1dd2-11b2-b361-850ddf15ef07}
#define NS_FINGERHANDLER_CID \
{ 0x76d6d5d8, 0x1dd2, 0x11b2, \
{0xb3, 0x61, 0x85, 0x0d, 0xdf, 0x15, 0xef, 0x07} }
class nsFingerHandler : public nsIProtocolHandler
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROTOCOLHANDLER
// nsFingerHandler methods:
nsFingerHandler();
virtual ~nsFingerHandler();
// Define a Create method to be used with a factory:
static NS_METHOD Create(nsISupports* aOuter, const nsIID& aIID, void* *aResult);
};
#endif /* nsFingerHandler_h___ */

View File

@@ -1,34 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIGenericFactory.h"
#include "nsFingerHandler.h"
static nsModuleComponentInfo gResComponents[] = {
{ "The Finger Protocol Handler",
NS_FINGERHANDLER_CID,
NS_NETWORK_PROTOCOL_PROGID_PREFIX "finger",
nsFingerHandler::Create
}
};
NS_IMPL_NSGETMODULE("finger", gResComponents)

View File

@@ -17,7 +17,7 @@
# Rights Reserved.
#
# Contributor(s):
#
#
DEPTH = ../..
topsrcdir = @top_srcdir@
@@ -26,7 +26,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src
DIRS = public src res
include $(topsrcdir)/config/rules.mk

Binary file not shown.

Binary file not shown.

View File

@@ -1,4 +1,4 @@
#!gmake
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
@@ -19,12 +19,9 @@
#
# Contributor(s):
DEPTH = ..\..\..
DEPTH=..\..
include <$(DEPTH)/config/config.mak>
MODULE = necko
DIRS= \
src \
$(NULL)
DIRS = public src res
include <$(DEPTH)\config\rules.mak>

View File

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

View File

@@ -17,7 +17,12 @@
# Rights Reserved.
#
# Contributor(s):
#
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
# Terry Hayes <thayes@netscape.com>
#
MODULE = psmglue
DEPTH = ../../..
topsrcdir = @top_srcdir@
@@ -26,13 +31,15 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
XPIDLSRCS = \
nsIPSMComponent.idl \
nsIPSMUIHandler.idl \
nsISecureBrowserUI.idl \
nsIPSMSocketInfo.idl \
nsISSLSocketProvider.idl \
nsISecretDecoderRing.idl \
$(NULL)
CPPSRCS = nsDnsAsyncLookup.cpp
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=)
PREF_JS_EXPORTS = $(srcdir)/psm-glue.js
include $(topsrcdir)/config/rules.mk
DEFINES += -D"GETHOSTBYNAME_DELAY=5" -DNO_SOCKS_NS_KLUDGE

View File

@@ -0,0 +1,53 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
# Terry Hayes <thayes@netscape.com>
#
MODULE = psmglue
DEPTH=..\..\..
IGNORE_MANIFEST=1
DLLNAME = psmglue
PDBFILE = $(DLLNAME).pdb
MAPFILE = $(DLLNAME).map
DLL = .\$(OBJDIR)\$(DLLNAME).dll
MAKE_OBJ_TYPE = DLL
include <$(DEPTH)/config/config.mak>
XPIDL_INCLUDES=-I$(DEPTH)\..\mozilla\dist\idl
XPIDLSRCS= \
.\nsIPSMComponent.idl \
.\nsIPSMUIHandler.idl \
.\nsISecureBrowserUI.idl \
.\nsISSLSocketProvider.idl \
.\nsIPSMSocketInfo.idl \
.\nsISecretDecoderRing.idl \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install::
$(MAKE_INSTALL) .\psm-glue.js $(DIST)\bin\defaults\pref

View File

@@ -0,0 +1,87 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
* Mitch Stoltz <mstoltz@netscape.com>
*/
#include "nsISupports.idl"
interface nsIPrincipal;
%{C++
#include "cmtcmn.h"
%}
[ptr] native nsCMTControlStar(CMT_CONTROL);
[scriptable, uuid(9e482670-5412-11d3-bbc8-0000861d1237)]
interface nsIPSMComponent : nsISupports
{
[noscript] nsCMTControlStar getControlConnection( );
/**
* Display the Security Advisor. PickledStatus and hostName can be null.
* If they are, the "Selected Info" dialog will be empty.
*/
void displaySecurityAdvisor(in string pickledStatus, in string hostName);
/**
* This will send PSM all preferences that we know about.
*/
void passPrefs();
/* Sig Verification Error Codes */
const long VERIFY_OK = 0;
const long VERIFY_NOSIG = -2;
const long VERIFY_ERROR_UNKNOWN_CA = -8172;
/* Hash Algorithms (based on cmtcmn.h) */
const short MD2 = 1;
const short MD5 = 2;
const short SHA1 = 3;
const unsigned long MD2_LENGTH = 16;
const unsigned long MD5_LENGTH = 16;
const unsigned long SHA1_LENGTH = 20;
const unsigned long MAX_HASH_LENGTH = SHA1_LENGTH;
/* Secure Hashing functions */
void hashBegin(in unsigned long alg, out unsigned long id);
void hashUpdate(in unsigned long id, in string buf, in unsigned long buflen);
void hashEnd(in unsigned long id, out string hash, out unsigned long hashlen,
in unsigned long maxLen);
/* Signature Verification functions */
void verifyRSABegin(out unsigned long id);
void verifyRSAUpdate(in unsigned long id, in string buf,
in unsigned long buflen);
void verifyRSAEnd(in unsigned long id, in string plaintext,
in unsigned long plaintextLen,
in boolean keepCert, out nsIPrincipal principal, out long result);
nsIPrincipal CreatePrincipalFromCert(in unsigned long certID);
};
%{C++
#define PSM_COMPONENT_PROGID "component://netscape/psm"
#define PSM_COMPONENT_CLASSNAME "Mozilla PSM Component"
%}

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,23 +17,29 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
interface nsIURI;
[scriptable, uuid(e5cf0c64-1dd1-11b2-b704-c889f2be4793)]
interface nsIHTTPEventSink : nsISupports
{
/**
* Fired when all the headers have been parsed and are ready
* for a consumer to use.
*/
void onHeadersAvailable(in nsISupports i_Context);
%{C++
#include "cmtcmn.h"
#include "nsPSMShimLayer.h"
%}
/**
* Fired when a redirect occurs due to a HTTP response (like 302)
*/
void onRedirect(in nsISupports i_Context, in nsIURI i_NewLocation);
[ptr] native psmtControlStar(CMT_CONTROL);
[ptr] native cmSocketStar(CMSocket);
[ptr] native nsFileDescStar(PRFileDesc);
[noscript, uuid(deeb8dfc-fb7a-11d3-ac84-00c04fa0d26b)]
interface nsIPSMSocketInfo : nsISupports {
readonly attribute string hostName;
readonly attribute psmtControlStar controlPtr;
readonly attribute cmSocketStar socketPtr;
readonly attribute nsFileDescStar fileDescPtr;
void getPickledStatus(out charStar pickledStatus);
};

View File

@@ -0,0 +1,36 @@
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is the Mozilla browser.
*
* The Initial Developer of the Original Code is Netscape
* Communications, Inc. Portions created by Netscape are
* Copyright (C) 1999, Mozilla. All Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
[scriptable, uuid(d92be9b0-601b-11d3-8c4a-000064657374)]
interface nsIPSMUIHandler : nsISupports
{
void DisplayURI(in long width, in long height, in string urlStr);
void PromptForFile(in wstring prompt, in string fileRegEx, in boolean shouldFileExist, out string outFile);
};
%{C++
#define PSM_UI_HANLDER_PROGID "component://netscape/psm/ui"
#define PSM_UI_HANLDER_CLASSNAME "Mozilla PSM UI Handler"
%}

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,14 +17,19 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
#include "nsISocketProvider.idl"
[scriptable, uuid(fb65fd70-1881-11d3-9337-00104ba0fd40)]
interface nsIEventSinkGetter : nsISupports
{
nsISupports getEventSink(in string command, in nsIIDRef eventSinkIID);
[noscript, uuid(856a93d0-5415-11d3-bbc8-0000861d1237)]
interface nsISSLSocketProvider : nsISocketProvider {
};
%{C++
#define NS_ISSLSOCKETPROVIDER_PROGID NS_NETWORK_SOCKET_PROGID_PREFIX "ssl"
#define NS_ISSLSOCKETPROVIDER_CLASSNAME "Mozilla SSL Socket Provider Component"
%}

View File

@@ -0,0 +1,63 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* thayes@netscape.com
*
*/
#include "nsISupports.idl"
/* Buffer type - for storing 8-bit octet values */
[ptr] native buffer(unsigned char);
[scriptable, uuid(0EC80360-075C-11d4-9FD4-00C04F1B83D8)]
interface nsISecretDecoderRing: nsISupports {
/* Encrypt a buffer - callable only from C++ */
[noscript] long encrypt(in buffer data, in long dataLen, out buffer result);
/* Decrypt a buffer - callable only from C++ */
[noscript] long decrypt(in buffer data, in long dataLen, out buffer result);
/* Encrypt nul-terminated string to BASE64 output */
string encryptString(in string text);
/* Decrypt BASE64 input to nul-terminated string output */
/* There is no check for embedded nul values in the decrypted output */
string decryptString(in string crypt);
/* Prompt the user to change the password on the SDR key */
void changePassword();
/* Logout of the security device that protects the SDR key */
void logout();
};
/*
* Configuration interface for the Secret Decoder Ring
* - this interface allows setting the window that will be
* used as parent for dialog windows (such as password prompts)
*/
[scriptable, uuid(01D8C0F0-0CCC-11d4-9FDD-000064657374)]
interface nsISecretDecoderRingConfig: nsISupports {
void setWindow(in nsISupports w);
};

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,28 +17,28 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsISupports.idl"
interface nsISocketProvider;
interface nsIDOMWindow;
interface nsIDOMElement;
[noscript, uuid(8f8a23d0-5472-11d3-bbc8-0000861d1237)]
interface nsISocketProviderService : nsISupports
[scriptable, uuid(081e31e0-a144-11d3-8c7c-00609792278c)]
interface nsSecureBrowserUI : nsISupports
{
nsISocketProvider GetSocketProvider(in string socketType);
void init(in nsIDOMWindow window, in nsIDOMElement button);
void displayPageInfoUI();
};
%{C++
#define NS_SECURE_BROWSER_UI_PROGID "component://netscape/secure_browser_ui"
#define NS_SECURE_BROWSER_UI_CLASSNAME "Mozilla Secure Browser UI Handler"
#define NS_SOCKETPROVIDERSERVICE_CID \
{ /* ed394ba0-5472-11d3-bbc8-0000861d1237 */ \
0xed394ba0, \
0x5472, \
0x11d3, \
{0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37} \
}
#define NS_SECURE_BROWSER_UI_CID \
{ 0x10fe7ea0, 0xa10a, 0x11d3, {0x8c, 0x7c, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c}}
%}

View File

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

View File

@@ -17,7 +17,7 @@
# Rights Reserved.
#
# Contributor(s):
#
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
@@ -26,7 +26,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src
DIRS = content skin locale
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1 @@
PSMTaskMenu.xul

View File

@@ -0,0 +1,2 @@
NavSecurityOverlay.xul
NavSecurityUI.js

View File

@@ -17,7 +17,7 @@
# Rights Reserved.
#
# Contributor(s):
#
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
@@ -25,11 +25,19 @@ srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
XPIDL_MODULE = necko_about
XPIDLSRCS = nsIAboutModule.idl
include $(topsrcdir)/config/rules.mk
NAVIGATOR_CONTENT_DIR = $(DIST)/bin/chrome/navigator/content/
NAVIGATOR_EXPORT_CONTENT = \
$(srcdir)/NavSecurityOverlay.xul \
$(srcdir)/NavSecurityUI.js \
$(NULL)
GLOBAL_CONTENT_DIR = $(DIST)/bin/chrome/global/content/
GLOBAL_EXPORT_CONTENT = \
$(srcdir)/PSMTaskMenu.xul \
$(NULL)
install::
$(INSTALL) $(NAVIGATOR_EXPORT_CONTENT) $(NAVIGATOR_CONTENT_DIR)
$(INSTALL) $(GLOBAL_EXPORT_CONTENT) $(GLOBAL_CONTENT_DIR)

View File

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<overlay id="NavSecurityOverlay"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<?xml-stylesheet href="chrome://navigator/skin/NavSecurityOverlay.css" type="text/css"?>
<html:script language="JavaScript" src="chrome://navigator/content/NavSecurityUI.js" />
<box id="state-box">
<titledbutton id="security-button" class="borderless" align="left" onclick="displayPageInfo()"/>
</box>
</overlay>

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,24 +17,29 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
*/
#include "nsISupports.idl"
window.addEventListener("load", SetSecurityButton, false);
interface nsIInputStream;
interface nsIOutputStream;
var securityUI;
[scriptable, uuid(818e1370-77c4-11d3-9395-00104ba0fd40)]
interface nsIFileSystem : nsISupports
function SetSecurityButton()
{
void open(out string contentType,
out long contentLength);
dump("in SetSecurityButton\n");
void close(in nsresult status);
readonly attribute nsIInputStream inputStream;
var ui = Components.classes["component://netscape/secure_browser_ui"].createInstance();
securityUI = ui.QueryInterface(Components.interfaces.nsSecureBrowserUI);
var button = document.getElementById('security-button');
if (button && window.content)
securityUI.init(window.content, button);
}
function displayPageInfo()
{
if (securityUI)
securityUI.displayPageInfoUI();
}
readonly attribute nsIOutputStream outputStream;
};

View File

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

View File

@@ -19,46 +19,19 @@
#
# Contributor(s):
MODULE = necko
DEPTH=..\..\..
MAKE_OBJ_TYPE = DLL
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
LINCS = \
-I$(PUBLIC) \
$(NULL)
LLIBS = \
$(LIBNSPR) \
$(MOZ_DIST)\lib\xpcom.lib \
$(NULL)
LIBRARY_NAME=neckosocket_s
OBJS = \
.\$(OBJDIR)\nsSocketProviderService.obj \
$(NULL)
XPIDL_INCLUDES=-I$(DEPTH)\..\mozilla\dist\idl
XPIDLSRCS= \
.\nsISocketProvider.idl \
.\nsISocketProviderService.idl \
$(NULL)
NO_GEN_XPT=1
include <$(DEPTH)\config\rules.mak>
install:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
install:: $(DLL)
$(MAKE_INSTALL) NavSecurityOverlay.xul $(DIST)\bin\chrome\navigator\content
$(MAKE_INSTALL) NavSecurityUI.js $(DIST)\bin\chrome\navigator\content
install:: $(DLL)
$(MAKE_INSTALL) PSMTaskMenu.xul $(DIST)\bin\chrome\global\content
clobber::
rm -rf $(OBJDIR)
$(RM) $(DIST)\bin\chrome\navigator\content\NavSecurityOverlay.xul
$(RM) $(DIST)\bin\chrome\navigator\content\NavSecurityUI.js
$(RM) $(DIST)\bin\chrome\global\content\PSMTaskMenu.xul

View File

@@ -19,14 +19,14 @@
# Contributor(s):
#
DEPTH = ../../..
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = src
DIRS = en-US
include $(topsrcdir)/config/rules.mk

View File

@@ -0,0 +1 @@
PSMTaskMenu.dtd

View File

@@ -0,0 +1 @@
security.properties

View File

@@ -19,30 +19,26 @@
# Contributor(s):
#
DEPTH = ../../../..
DEPTH = ../../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
LIBRARY_NAME = necko_resource
SHORT_LIBNAME = neckorsc
IS_COMPONENT = 1
EXPORT_RESOURCE_CONTENT = \
$(srcdir)/PSMTaskMenu.dtd \
$(NULL)
REQUIRES = xpcom necko
CPPSRCS = \
nsResourceProtocolHandler.cpp \
nsResourceProtocolModule.cpp \
$(NULL)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
EXPORT_NAV_RESOURCE_CONTENT = \
$(srcdir)/security.properties \
$(NULL)
include $(topsrcdir)/config/rules.mk
ifeq ($(OS_ARCH), Linux)
DEFINES += -D_BSD_SOURCE
endif
install::
$(INSTALL) $(EXPORT_RESOURCE_CONTENT) $(DIST)/bin/chrome/global/locale
$(INSTALL) $(EXPORT_NAV_RESOURCE_CONTENT) $(DIST)/bin/chrome/navigator/locale

View File

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

View File

@@ -1,4 +1,4 @@
#!gmake
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
@@ -19,13 +19,18 @@
#
# Contributor(s):
DEPTH = ..\..
MODULE = necko
DIRS= \
public \
src \
$(NULL)
DEPTH=..\..\..\..\..
include <$(DEPTH)\config\rules.mak>
GLOBAL_DIST=$(DIST)\bin\chrome\global\locale
NAV_DIST=$(DIST)\bin\chrome\navigator\locale
install::
$(MAKE_INSTALL) PSMTaskMenu.dtd $(GLOBAL_DIST)
$(MAKE_INSTALL) security.properties $(NAV_DIST)
clobber::
$(RM) -f $(DIST)\bin\chrome\global\locale\PSMTaskMenu.dtd
$(RM) -f $(DIST)\bin\chrome\navigator\locale\security.properties

View File

@@ -0,0 +1,28 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
Title=Security Warning
MixedContentMessage=You have requested a secure document that contains some insecure information.
LeaveSiteMessage=You have requested an insecure document. The document and any information you send back could be observed by a third party while in transit.
EnterSiteMessage=You have requested a secure document. The document and any information you send back are encrypted for privacy while in transit.
PostToInsecure=Although this document is secure, the information you have submitted is insecure and could be observed by a third party while in transit. If you are submitting passwords, credit card numbers, or other information you would like to keep private, it would be safer for you to cancel the submission.
DontShowAgain=Show Me This Alert Next Time.
FindText=Please find the Personal Security Manager application

View File

@@ -1,4 +1,4 @@
#!gmake
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
@@ -19,12 +19,9 @@
#
# Contributor(s):
DEPTH = ..\..
DEPTH=..\..\..\..
MODULE = necko
DIRS= \
base \
$(NULL)
DIRS=en-US
include <$(DEPTH)\config\rules.mak>

View File

@@ -1,4 +1,4 @@
#!gmake
#!nmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
@@ -19,13 +19,9 @@
#
# Contributor(s):
DEPTH = ..\..
DEPTH=..\..\..
include <$(DEPTH)/config/config.mak>
MODULE = necko
DIRS= \
public \
src \
$(NULL)
DIRS = skin content locale
include <$(DEPTH)\config\rules.mak>

View File

@@ -0,0 +1,4 @@
lock.gif
unlock.gif
broken.gif
NavSecurityOverlay.css

View File

@@ -17,7 +17,7 @@
# Rights Reserved.
#
# Contributor(s):
#
#
DEPTH = ../../../..
topsrcdir = @top_srcdir@
@@ -25,18 +25,15 @@ srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
LIBRARY_NAME = necko_datetime
SHORT_LIBNAME = neckodtm
IS_COMPONENT = 1
CPPSRCS = \
nsDateTimeHandler.cpp \
nsDateTimeChannel.cpp \
nsDateTimeModule.cpp \
$(NULL)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
include $(topsrcdir)/config/rules.mk
SKIN_DIR = $(DIST)/bin/chrome/navigator/skin/
EXPORT_SKINS = \
$(srcdir)/broken.gif \
$(srcdir)/lock.gif \
$(srcdir)/unlock.gif \
$(srcdir)/NavSecurityOverlay.css \
$(NULL)
install::
$(INSTALL) $(EXPORT_SKINS) $(SKIN_DIR)

View File

@@ -0,0 +1,15 @@
titledbutton#security-button {
list-style-image:url("chrome://navigator/skin/unlock.gif");
}
titledbutton#security-button[level="high"] {
list-style-image:url("chrome://navigator/skin/lock.gif");
}
titledbutton#security-button[level="low"] {
list-style-image:url("chrome://navigator/skin/lock.gif");
}
titledbutton#security-button[level="broken"] {
list-style-image:url("chrome://navigator/skin/broken.gif");
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 B

View File

@@ -19,44 +19,23 @@
#
# Contributor(s):
INCS = $(INCS) \
-I$(DEPTH)\dist\include \
$(NULL)
LLIBS= \
$(DIST)\lib\xpcom.lib \
$(LIBNSPR) \
$(NULL)
DEPTH=..\..\..
DEPTH=..\..\..\..
include <$(DEPTH)/config/config.mak>
MAKE_OBJ_TYPE = EXE
PROGRAM = .\$(OBJDIR)\TestStreamConv.exe
OBJS = \
.\$(OBJDIR)\Converters.obj \
.\$(OBJDIR)\TestStreamConv.obj \
$(NULL)
LLFLAGS=-SUBSYSTEM:CONSOLE
include <$(DEPTH)\config\rules.mak>
!ifdef MOZ_NO_DEBUG_RTL
OS_CFLAGS = $(OS_CFLAGS) -DMOZ_NO_DEBUG_RTL
!endif
!if defined(NGPREFS)
OS_CFLAGS = $(OS_CFLAGS) -DNGPREFS
!endif
install:: $(PROGRAM)
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
install::
$(MAKE_INSTALL) broken.gif $(DIST)\bin\chrome\navigator\skin
$(MAKE_INSTALL) lock.gif $(DIST)\bin\chrome\navigator\skin
$(MAKE_INSTALL) unlock.gif $(DIST)\bin\chrome\navigator\skin
$(MAKE_INSTALL) NavSecurityOverlay.css $(DIST)\bin\chrome\navigator\skin
clobber::
rm -f $(DIST)\bin\TestStreamConv.exe
$(RM) $(DIST)\bin\chrome\navigator\skin\broken.gif
$(RM) $(DIST)\bin\chrome\navigator\skin\lock.gif
$(RM) $(DIST)\bin\chrome\navigator\skin\unlock.gif
$(RM) $(DIST)\bin\chrome\navigator\skin\NavSecurityOverlay.css

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 B

View File

@@ -17,7 +17,9 @@
# Rights Reserved.
#
# Contributor(s):
#
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
@@ -26,20 +28,36 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = mimetype
LIBRARY_NAME = mimetype
MODULE = psmglue
IS_COMPONENT = 1
LIBRARY_NAME = psmglue
REQUIRES = xpcom
CPPSRCS = \
nsMIMEInfoImpl.cpp \
nsMIMEService.cpp \
nsMIMEServiceModule.cpp \
nsXMLMIMEDataSource.cpp \
$(NULL)
CPPSRCS = \
nsPSMComponent.cpp \
nsPSMUICallbacks.cpp \
nsSSLSocketProvider.cpp \
nsPSMModule.cpp \
nsSSLIOLayer.cpp \
nsSecureBrowserUIImpl.cpp \
nsSDR.cpp \
$(NULL)
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
CSRCS = \
nsPSMMutex.c \
nsPSMShimLayer.c \
$(NULL)
EXTRA_DSO_LDOPTS = \
$(MOZ_COMPONENT_LIBS) \
-lcmt \
-lprotocol \
-lmozjs \
$(NULL)
include $(topsrcdir)/config/rules.mk
INCLUDES += \
-I$(srcdir) \
$(NULL)

View File

@@ -0,0 +1,68 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
# Hubbie Shaw
# Doug Turner <dougt@netscape.com>
#
MODULE = psmglue
DEPTH=..\..\..
IGNORE_MANIFEST=1
DLLNAME = psmglue
PDBFILE = $(DLLNAME).pdb
MAPFILE = $(DLLNAME).map
DLL = .\$(OBJDIR)\$(DLLNAME).dll
MAKE_OBJ_TYPE = DLL
include <$(DEPTH)/config/config.mak>
LINCS = $(LINCS) \
-I$(PUBLIC) \
-I$(PUBLIC)/security \
$(NULL)
LLIBS = \
$(LIBNSPR) \
$(DIST)\lib\neckobase_s.lib \
$(DIST)\lib\xpcom.lib \
$(DIST)\lib\js3250.lib \
$(DIST)\lib\cmt.lib \
$(DIST)\lib\protocol.lib \
$(DIST)\lib\mozreg.lib \
$(NULL)
OBJS = \
.\$(OBJDIR)\nsPSMMutex.obj \
.\$(OBJDIR)\nsPSMShimLayer.obj \
.\$(OBJDIR)\nsPSMComponent.obj \
.\$(OBJDIR)\nsPSMUICallbacks.obj \
.\$(OBJDIR)\nsPSMModule.obj \
.\$(OBJDIR)\nsSecureBrowserUIImpl.obj \
.\$(OBJDIR)\nsSSLIOLayer.obj \
.\$(OBJDIR)\nsSSLSocketProvider.obj \
.\$(OBJDIR)\nsSDR.obj \
$(NULL)
include <$(DEPTH)\config\rules.mak>
install:: $(DLL)
$(MAKE_INSTALL) .\$(OBJDIR)\$(DLLNAME).dll $(DIST)\bin\components

View File

@@ -0,0 +1,822 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
* Mitch Stoltz <mstoltz@netscape.com>
*/
#include "nsProxiedService.h"
#include "nsPSMUICallbacks.h"
#include "VerReg.h"
#include "nspr.h"
#include "nsPSMComponent.h"
#include "nsCRT.h"
#include "nsIPref.h"
#include "nsIProfile.h"
#include "nsILocalFile.h"
#ifdef XP_MAC
#include "nsILocalFileMac.h"
#endif
#include "nsSpecialSystemDirectory.h"
#include "rsrcids.h"
#include "nsPSMMutex.h"
#include "nsPSMShimLayer.h"
#include "nsPSMUICallbacks.h"
#include "nsISecureBrowserUI.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIScriptSecurityManager.h"
#include "nsICertificatePrincipal.h"
#define PSM_VERSION_REG_KEY "/Netscape/Personal Security Manager"
#ifdef WIN32
#define PSM_FILE_NAME "psm.exe"
#elif XP_UNIX
#define PSM_FILE_NAME "start-psm"
#define PSM_FILE_LOCATION "/opt/netscape/security/start-psm"
#else
#define PSM_FILE_NAME "psm"
#endif
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
static NS_DEFINE_CID(kProfileCID, NS_PROFILE_CID);
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
nsPSMComponent* nsPSMComponent::mInstance = nsnull;
nsPSMComponent::nsPSMComponent()
{
NS_INIT_REFCNT();
mControl = nsnull;
}
nsPSMComponent::~nsPSMComponent()
{
if (mControl)
{
CMT_CloseControlConnection(mControl);
mControl = nsnull;
}
}
NS_IMETHODIMP
nsPSMComponent::CreatePSMComponent(nsISupports* aOuter, REFNSIID aIID, void **aResult)
{
if (!aResult) {
return NS_ERROR_INVALID_POINTER;
}
if (aOuter) {
*aResult = nsnull;
return NS_ERROR_NO_AGGREGATION;
}
if (mInstance == nsnull)
{
mInstance = new nsPSMComponent();
}
if (mInstance == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
nsresult rv = mInstance->QueryInterface(aIID, aResult);
if (NS_FAILED(rv))
{
*aResult = nsnull;
}
return rv;
}
/* nsISupports Implementation for the class */
NS_IMPL_THREADSAFE_ISUPPORTS1 (nsPSMComponent, nsIPSMComponent);
#define INIT_NUM_PREFS 100
/* preference types */
#define STRING_PREF 0
#define BOOL_PREF 1
#define INT_PREF 2
/* resizable list struct that contains pref items */
typedef struct CMSetPrefList {
int n; /* number of filled items */
int capacity; /* allocated memory */
CMTSetPrefElement* list; /* actual list */
} CMSetPrefList;
static void get_pack_bool_pref(nsIPref *prefManager, char* key, CMTSetPrefElement* list, int* n)
{
PRBool boolpref;
list[*n].key = nsCRT::strdup(key);
list[*n].type = BOOL_PREF;
if ((prefManager->GetBoolPref(key, &boolpref) != 0) || boolpref)
{
list[*n].value = nsCRT::strdup("true");
}
else
{
list[*n].value = nsCRT::strdup("false");
}
(*n)++; /* increment the counter after done packing */
return;
}
static void SaveAllPrefs(int number, CMTSetPrefElement* list)
{
nsCOMPtr<nsIPref> prefManager;
nsresult res = nsServiceManager::GetService(kPrefCID,
nsIPref::GetIID(),
getter_AddRefs(prefManager));
if (NS_FAILED(res) || !prefManager)
{
return;
}
int i;
int intval;
for (i = 0; i < number; i++)
{
if (list[i].key == nsnull)
{
/* misconfigured item: next */
continue;
}
switch (list[i].type)
{
case 0: /* string type */
prefManager->SetCharPref(list[i].key, list[i].value);
break;
case 1: /* boolean type */
if (strcmp(list[i].value, "true") == 0) {
prefManager->SetBoolPref(list[i].key, (PRBool)1);
}
else if (strcmp(list[i].value, "false") == 0) {
prefManager->SetBoolPref(list[i].key, (PRBool)0);
}
break;
case 2:
intval = atoi(list[i].value);
prefManager->SetIntPref(list[i].key, intval);
break;
default:
break;
}
}
return;
}
NS_IMETHODIMP
nsPSMComponent::PassPrefs()
{
// if we have not passed anything to psm yet, this function can just return.
if (!mControl)
return NS_OK;
int i;
nsresult rv = NS_ERROR_FAILURE;
char* strpref = NULL;
int intpref;
PRBool boolpref;
CMSetPrefList prefs = {0};
CMTSetPrefElement* list = NULL;
char* pickAuto = "Select Automatically";
char* alwaysAsk = "Ask Every Time";
nsCOMPtr<nsIPref> prefManager;
nsresult res = nsServiceManager::GetService(kPrefCID,
nsIPref::GetIID(),
getter_AddRefs(prefManager));
if (NS_OK != res)
{
return NS_ERROR_FAILURE;
}
/* allocate memory for list */
prefs.n = 0; /* counter */
prefs.capacity = INIT_NUM_PREFS;
prefs.list = (CMTSetPrefElement*) new char[(INIT_NUM_PREFS * sizeof(CMTSetPrefElement))];
if (prefs.list == NULL)
{
return rv;
}
/* shorthand */
list = prefs.list;
/* get preferences */
get_pack_bool_pref(prefManager, "security.enable_ssl2", (CMTSetPrefElement*)list, &(prefs.n));
get_pack_bool_pref(prefManager, "security.enable_ssl3", (CMTSetPrefElement*)list, &(prefs.n));
/* this pref is a boolean pref in nature but a string pref for
* historical reason
*/
list[prefs.n].key = nsCRT::strdup("security.default_personal_cert");
list[prefs.n].type = STRING_PREF;
if ((prefManager->CopyCharPref(list[prefs.n].key, &strpref) == 0) && (strcmp(strpref, pickAuto) == 0))
{
list[prefs.n].value = nsCRT::strdup(pickAuto);
}
else
{
/* although one could choose a specific cert for client auth in
* Nova, that mode is deprecated with PSM and mapped to ASK
*/
list[prefs.n].value = nsCRT::strdup(alwaysAsk);
}
prefs.n++;
if (strpref != NULL)
{
nsCRT::free(strpref);
}
list[prefs.n].key = nsCRT::strdup("security.default_mail_cert");
list[prefs.n].type = STRING_PREF;
if (prefManager->CopyCharPref(list[prefs.n].key, &list[prefs.n].value) != 0)
{
list[prefs.n].value = NULL;
}
prefs.n++;
list[prefs.n].key = nsCRT::strdup("security.ask_for_password");
list[prefs.n].type = INT_PREF;
if (prefManager->GetIntPref(list[prefs.n].key, &intpref) != 0)
{
intpref = 0; /* default */
}
list[prefs.n].value = PR_smprintf("%d", intpref);
prefs.n++;
list[prefs.n].key = nsCRT::strdup("security.password_lifetime");
list[prefs.n].type = INT_PREF;
if (prefManager->GetIntPref(list[prefs.n].key, &intpref) != 0)
{
intpref = 30; /* default */
}
list[prefs.n].value = PR_smprintf("%d", intpref);
prefs.n++;
/* OCSP preferences */
/* XXX since these are the new ones added by PSM, we will be more
* error-tolerant in fetching them
*/
if (prefManager->GetBoolPref("security.OCSP.enabled", &boolpref) == 0)
{
if (boolpref)
{
list[prefs.n].value = nsCRT::strdup("true");
}
else
{
list[prefs.n].value = nsCRT::strdup("false");
}
list[prefs.n].key = nsCRT::strdup("security.OCSP.enabled");
list[prefs.n].type = BOOL_PREF;
prefs.n++;
}
if (prefManager->GetBoolPref("security.OCSP.useDefaultResponder", &boolpref) == 0)
{
if (boolpref)
{
list[prefs.n].value = nsCRT::strdup("true");
}
else
{
list[prefs.n].value = nsCRT::strdup("false");
}
list[prefs.n].key = nsCRT::strdup("security.OCSP.useDefaultResponder");
list[prefs.n].type = BOOL_PREF;
prefs.n++;
}
if (prefManager->CopyCharPref("security.OCSP.URL", &strpref) == 0)
{
list[prefs.n].value = strpref;
list[prefs.n].key = nsCRT::strdup("security.OCSP.URL");
list[prefs.n].type = STRING_PREF;
prefs.n++;
}
if (prefManager->CopyCharPref("security.OCSP.signingCA", &strpref) == 0)
{
list[prefs.n].value = strpref;
list[prefs.n].key = nsCRT::strdup("security.OCSP.signingCA");
list[prefs.n].type = STRING_PREF;
prefs.n++;
}
/* now application-specific preferences */
/* get navigator preferences */
get_pack_bool_pref(prefManager, "security.warn_entering_secure", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_leaving_secure", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_viewing_mixed", (CMTSetPrefElement*)list, &prefs.n);
get_pack_bool_pref(prefManager, "security.warn_submit_insecure", (CMTSetPrefElement*)list, &prefs.n);
// Add any other prefs here such as ldap or mail/news.
CMT_SetSavePrefsCallback(mControl, (savePrefsCallback_fn)SaveAllPrefs);
if (CMT_PassAllPrefs(mControl, prefs.n, (CMTSetPrefElement*)prefs.list) != CMTSuccess)
{
goto loser;
}
rv = NS_OK; /* success */
loser:
/* clean out memory for prefs */
for (i = 0; i < prefs.n; i++)
{
if (prefs.list[i].key != NULL)
{
nsCRT::free(prefs.list[i].key);
}
if (prefs.list[i].value != NULL)
{
nsCRT::free(prefs.list[i].value);
}
}
if (prefs.list != NULL)
{
delete(prefs.list);
}
return rv;
}
NS_IMETHODIMP
nsPSMComponent::GetControlConnection( CMT_CONTROL * *_retval )
{
nsresult rv;
*_retval = nsnull;
if (mControl)
{
*_retval = mControl;
return NS_OK;
}
else /* initialize mutex, sock table, etc. */
{
if (nsPSMMutexInit() != PR_SUCCESS)
return NS_ERROR_FAILURE;
mControl = CMT_ControlConnect(&nsPSMMutexTbl, &nsPSMShimTbl);
if (mControl == nsnull)
{
//Try to find it.
int err;
char filepath[MAXREGPATHLEN];
err = VR_GetPath(PSM_VERSION_REG_KEY, sizeof(filepath), filepath);
if ( err == REGERR_OK )
{
nsFileSpec psmSpec(filepath);
psmSpec += PSM_FILE_NAME;
if (psmSpec.Exists())
{
mControl = CMT_EstablishControlConnection((char *)psmSpec.GetNativePathCString(), &nsPSMShimTbl, &nsPSMMutexTbl);
}
}
}
#ifndef XP_MAC
if (mControl == nsnull)
{
nsSpecialSystemDirectory sysDir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
nsFileSpec spec = sysDir;
spec += "psm/";
spec += PSM_FILE_NAME;
if (spec.Exists())
{
mControl = CMT_EstablishControlConnection((char *)spec.GetNativePathCString(), &nsPSMShimTbl, &nsPSMMutexTbl);
}
}
#else
if (mControl == nsnull)
{
// Attempt to locate "Personal Security Manager" in "Essential Files".
nsCOMPtr<nsILocalFile> aPSMApp = do_CreateInstance(NS_LOCAL_FILE_PROGID, &rv);
if (NS_SUCCEEDED(rv))
{
nsCOMPtr<nsILocalFileMac> psmAppMacFile = do_QueryInterface(aPSMApp, &rv);
if (NS_SUCCEEDED(rv))
{
rv = psmAppMacFile->InitFindingAppByCreatorCode('nPSM');
if (NS_SUCCEEDED(rv))
{
rv = psmAppMacFile->LaunchAppWithDoc(nsnull, PR_TRUE);
if (NS_SUCCEEDED(rv))
{
const PRUint32 kMaxWaitTicks = 180; // max 3 seconds
PRUint32 endTicks = ::TickCount() + kMaxWaitTicks;
do
{
EventRecord theEvent;
WaitNextEvent(0, &theEvent, 5, NULL);
mControl = CMT_ControlConnect(&nsPSMMutexTbl, &nsPSMShimTbl);
} while (!mControl && (::TickCount() < endTicks));
}
}
}
}
NS_ASSERTION(NS_SUCCEEDED(rv), "Launching Personal Security Manager failed");
}
#endif
#ifdef XP_UNIX
if (mControl == nsnull)
{
nsFileSpec psmSpec(PSM_FILE_LOCATION);
if (psmSpec.Exists())
{
mControl = CMT_EstablishControlConnection(PSM_FILE_LOCATION, &nsPSMShimTbl, &nsPSMMutexTbl);
}
}
#endif
if (mControl == nsnull)
{
char* filePath = nsnull;
NS_WITH_PROXIED_SERVICE(nsIPSMUIHandler, handler, nsPSMUIHandlerImpl::GetCID(), NS_UI_THREAD_EVENTQ, &rv);
if(NS_SUCCEEDED(rv))
{
NS_WITH_SERVICE(nsIStringBundleService, service, kCStringBundleServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsILocale* locale = nsnull;
nsCOMPtr<nsIStringBundle> stringBundle;
rv = service->CreateBundle(SECURITY_STRING_BUNDLE_URL, locale, getter_AddRefs(stringBundle));
if (NS_FAILED(rv)) return rv;
PRUnichar *ptrv = nsnull;
rv = stringBundle->GetStringFromName( NS_ConvertASCIItoUCS2("FindText").GetUnicode(), &ptrv);
if (NS_FAILED(rv)) return rv;
handler->PromptForFile(ptrv, PSM_FILE_NAME, PR_TRUE, &filePath);
nsAllocator::Free(ptrv);
}
if (! filePath)
return NS_ERROR_FAILURE;
mControl = CMT_EstablishControlConnection(filePath, &nsPSMShimTbl, &nsPSMMutexTbl);
}
if (!mControl || InitPSMUICallbacks(mControl) != PR_SUCCESS)
goto failure;
nsFileSpec profileSpec;
PRUnichar* profileName;
NS_WITH_SERVICE(nsIProfile, profile, kProfileCID, &rv);
if (NS_FAILED(rv)) goto failure;
rv = profile->GetCurrentProfileDir(&profileSpec);
if (NS_FAILED(rv)) goto failure;;
rv = profile->GetCurrentProfile(&profileName);
if (NS_FAILED(rv)) goto failure;
CMTStatus psmStatus;
nsCAutoString profilenameC;
profilenameC.AssignWithConversion(profileName);
psmStatus = CMT_Hello( mControl,
PROTOCOL_VERSION,
profilenameC,
(char*)profileSpec.GetNativePathCString());
if (psmStatus == CMTFailure)
{
PR_FREEIF(profileName);
goto failure;
}
if (NS_FAILED(PassPrefs()))
{
PR_FREEIF(profileName);
goto failure;
}
PR_FREEIF(profileName);
*_retval = mControl;
return NS_OK;
}
failure:
#ifdef DEBUG
printf("*** Failure setting up Cartman! \n");
#endif
if (mControl)
{
CMT_CloseControlConnection(mControl);
mControl = NULL;
}
// TODO we need to unregister our UI callback BEFORE destroying our mutex.
// nsPSMMutexDestroy();
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsPSMComponent::DisplaySecurityAdvisor(const char *pickledStatus, const char *hostName)
{
CMT_CONTROL *controlConnection;
GetControlConnection( &controlConnection );
if (DisplayPSMUIDialog(controlConnection, pickledStatus, hostName) == PR_SUCCESS)
return NS_OK;
return NS_ERROR_FAILURE;
}
//-----------------------------------------
// Secure Hash Functions
//-----------------------------------------
NS_IMETHODIMP
nsPSMComponent::HashBegin(PRUint32 alg, PRUint32* id)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if(CMT_HashCreate(controlConnection, alg, (CMUint32*)id) != CMTSuccess)
return NS_ERROR_FAILURE;
if(CMT_HASH_Begin(controlConnection, *id) != CMTSuccess)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::HashUpdate(PRUint32 id, const char* buf, PRUint32 buflen)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if (CMT_HASH_Update(controlConnection, id,
(const unsigned char*)buf, buflen) != CMTSuccess)
return NS_ERROR_FAILURE;
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::HashEnd(PRUint32 id, char** hash, PRUint32* hashlen,
PRUint32 maxLen)
{
if (!hash)
return NS_ERROR_ILLEGAL_VALUE;
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
if(CMT_HASH_End(controlConnection, id, (unsigned char*)*hash,
(CMUint32*)hashlen, maxLen) != CMTSuccess)
return NS_ERROR_FAILURE;
CMT_HASH_Destroy(controlConnection, id);
return NS_OK;
}
//-----------------------------------------
// Signature Verification Functions
//-----------------------------------------
PR_STATIC_CALLBACK(void)
UselessPK7DataSink(void* arg, const char* buf, CMUint32 len)
{
}
NS_IMETHODIMP
nsPSMComponent::VerifyRSABegin(PRUint32* id)
{
if (!id)
return NS_ERROR_ILLEGAL_VALUE;
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
CMInt32* blah = nsnull;
CMTStatus result = CMT_PKCS7DecoderStart(controlConnection, nsnull,
(CMUint32*)id, blah,
UselessPK7DataSink, nsnull);
if (result == CMTSuccess)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsPSMComponent::VerifyRSAUpdate(PRUint32 id, const char* buf, PRUint32 buflen)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
CMTStatus result = CMT_PKCS7DecoderUpdate(controlConnection, id, buf, buflen);
if (result == CMTSuccess)
return NS_OK;
else
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsPSMComponent::VerifyRSAEnd(PRUint32 id, const char* plaintext,
PRUint32 plaintextLen,
PRBool aKeepCert,
nsIPrincipal** aPrincipal,
PRInt32* aVerifyError)
{
*aVerifyError = -1;
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
CMUint32 contentInfo;
CMTStatus result = CMT_PKCS7DecoderFinish(controlConnection,
id, &contentInfo);
if (result != CMTSuccess)
return NS_ERROR_FAILURE;
//-- Make sure a signature is present
CMInt32 isSigned;
result = CMT_GetNumericAttribute(controlConnection, contentInfo,
SSM_FID_P7CINFO_IS_SIGNED, &isSigned);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
if (!isSigned)
{
*aPrincipal = nsnull;
*aVerifyError = nsIPSMComponent::VERIFY_NOSIG;
return NS_OK;
}
// SHA1 hash the plaintext to compare it to the signature
CMUint32 hashId;
CMT_HashCreate(controlConnection, nsIPSMComponent::SHA1, &hashId);
CMT_HASH_Begin(controlConnection, hashId);
result = CMT_HASH_Update(controlConnection, hashId,
(const unsigned char*)plaintext, plaintextLen);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
unsigned char* hash = (unsigned char*)PR_MALLOC(nsIPSMComponent::SHA1_LENGTH);
if (!hash) return NS_ERROR_OUT_OF_MEMORY;
CMUint32 hashLen;
result = CMT_HASH_End(controlConnection, hashId, hash,
&hashLen, nsIPSMComponent::SHA1_LENGTH);
NS_ASSERTION(hashLen == nsIPSMComponent::SHA1_LENGTH,
"PSMComponent: Hash too short.");
CMT_HASH_Destroy(controlConnection, hashId);
if (result != CMTSuccess)
{
PR_FREEIF(hash);
return NS_ERROR_FAILURE;
}
//-- Verify signature
CMTItemStr hashItem;
hashItem.data = hash;
hashItem.len = hashLen;
result = CMT_PKCS7VerifyDetachedSignature(controlConnection, contentInfo,
6 /* =Object Signing Cert */,
3 /* =SHA1 algorithm (MD5=2)*/,
(CMUint32)aKeepCert,
&hashItem, (CMInt32*)aVerifyError);
PR_FREEIF(hash);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
//-- Did it verify?
if (*aVerifyError != 0)
*aPrincipal = nsnull;
else
{
//-- Generate a principal from the cert
CMUint32 certID;
result = CMT_GetRIDAttribute(controlConnection, contentInfo,
SSM_FID_P7CINFO_SIGNER_CERT, &certID);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
if (NS_FAILED(CreatePrincipalFromCert(certID, aPrincipal)))
return NS_ERROR_FAILURE;
}
CMT_PKCS7DestroyContentInfo(controlConnection, contentInfo);
return NS_OK;
}
NS_IMETHODIMP
nsPSMComponent::CreatePrincipalFromCert(PRUint32 aCertID, nsIPrincipal** aPrincipal)
{
CMT_CONTROL *controlConnection;
if (NS_FAILED(GetControlConnection( &controlConnection )))
return NS_ERROR_FAILURE;
//-- Read cert ID
CMTStatus result;
CMTItem fingerprint;
result = CMT_GetStringAttribute(controlConnection, aCertID,
SSM_FID_CERT_FINGERPRINT, &fingerprint);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
//-- Get a principal
nsresult rv;
NS_WITH_SERVICE(nsIScriptSecurityManager, secMan,
NS_SCRIPTSECURITYMANAGER_PROGID, &rv)
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
rv = secMan->GetCertificatePrincipal((char*)fingerprint.data,
aPrincipal);
if (NS_FAILED(rv)) return rv;
//-- Get common name and store it in the principal.
// Using common name + organizational unit as the user-visible certificate name
nsCOMPtr<nsICertificatePrincipal> certificate = do_QueryInterface(*aPrincipal, &rv);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
CMTItem common;
result = CMT_GetStringAttribute(controlConnection, aCertID,
SSM_FID_CERT_COMMON_NAME, &common);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
CMTItem subject;
result = CMT_GetStringAttribute(controlConnection, aCertID,
SSM_FID_CERT_SUBJECT_NAME, &subject);
if (result != CMTSuccess) return NS_ERROR_FAILURE;
nsCAutoString commonName;
commonName = (char*)common.data;
static const char orgUnitTag[] = " OU=";
char* orgUnitPos = PL_strstr((char*)subject.data, orgUnitTag);
if (orgUnitPos)
{
orgUnitPos += sizeof(orgUnitTag)-1;
char* orgUnitEnd = PL_strchr(orgUnitPos, ',');
PRInt32 orgUnitLen;
if(orgUnitEnd)
orgUnitLen = orgUnitEnd - orgUnitPos;
else
orgUnitLen = PL_strlen(orgUnitPos);
commonName.Append(' ');
commonName.Append(orgUnitPos, orgUnitLen);
}
char* commonChar = commonName.ToNewCString();
if (!commonChar) return NS_ERROR_OUT_OF_MEMORY;
rv = certificate->SetCommonName(commonChar);
Recycle(commonChar);
return rv;
}

View File

@@ -0,0 +1,54 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nscore.h"
#include "nsIPSMComponent.h"
#include "nsIStringBundle.h"
#define SECURITY_STRING_BUNDLE_URL "chrome://navigator/locale/security.properties"
#define NS_PSMCOMPONENT_CID {0xddcae170, 0x5412, 0x11d3, {0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37}}
// Implementation of the PSM component interface.
class nsPSMComponent : public nsIPSMComponent
{
public:
NS_DEFINE_STATIC_CID_ACCESSOR( NS_PSMCOMPONENT_CID );
nsPSMComponent();
virtual ~nsPSMComponent();
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMCOMPONENT
static NS_METHOD CreatePSMComponent(nsISupports* aOuter, REFNSIID aIID, void **aResult);
private:
PCMT_CONTROL mControl;
nsCOMPtr<nsISupports> mSecureBrowserIU;
static nsPSMComponent* mInstance;
};

View File

@@ -0,0 +1,86 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsPSMUICallbacks.h"
#include "nsPSMComponent.h"
#include "nsISecureBrowserUI.h"
#include "nsSecureBrowserUIImpl.h"
#include "nsSSLSocketProvider.h"
#include "nsSDR.h"
// Define SDR object constructor
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsSecretDecoderRing, init)
static nsModuleComponentInfo components[] =
{
{
PSM_COMPONENT_CLASSNAME,
NS_PSMCOMPONENT_CID,
PSM_COMPONENT_PROGID,
nsPSMComponent::CreatePSMComponent
},
{
PSM_UI_HANLDER_CLASSNAME,
NS_PSMUIHANDLER_CID,
PSM_UI_HANLDER_PROGID,
nsPSMUIHandlerImpl::CreatePSMUIHandler
},
{
NS_SECURE_BROWSER_UI_CLASSNAME,
NS_SECURE_BROWSER_UI_CID,
NS_SECURE_BROWSER_UI_PROGID,
nsSecureBrowserUIImpl::Create
},
{
NS_SECURE_BROWSER_DOCOBSERVER_CLASSNAME,
NS_SECURE_BROWSER_DOCOBSERVER_CID,
NS_SECURE_BROWSER_DOCOBSERVER_PROGID,
nsSecureBrowserUIImpl::Create
},
{
NS_ISSLSOCKETPROVIDER_CLASSNAME,
NS_SSLSOCKETPROVIDER_CID,
NS_ISSLSOCKETPROVIDER_PROGID,
nsSSLSocketProvider::Create
},
{
NS_SDR_CLASSNAME,
NS_SDR_CID,
NS_SDR_PROGID,
nsSecretDecoderRingConstructor
}
};
NS_IMPL_NSGETMODULE("PSMComponent", components);

View File

@@ -0,0 +1,72 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "prmon.h"
#include "prtypes.h"
#include "nsPSMMutex.h"
static PRMonitor *_nsPSMMutexVar;
PRStatus
nsPSMMutexInit()
{
if (!_nsPSMMutexVar)
_nsPSMMutexVar = PR_NewMonitor();
return _nsPSMMutexVar ? PR_SUCCESS : PR_FAILURE;
}
PRStatus
nsPSMMutexDestroy()
{
if (!_nsPSMMutexVar)
return PR_FAILURE;
PR_Wait(_nsPSMMutexVar, PR_INTERVAL_NO_TIMEOUT);
PR_DestroyMonitor(_nsPSMMutexVar);
return PR_SUCCESS;
}
static void
nsPSMMutexLock(CMTMutexPointer *p)
{
PR_EnterMonitor(*(PRMonitor **)p);
return;
}
static void
nsPSMMutexUnlock(CMTMutexPointer *p)
{
PR_ExitMonitor(*(PRMonitor **)p);
return;
}
CMT_MUTEX nsPSMMutexTbl =
{
&_nsPSMMutexVar,
(CMTMutexFunction)nsPSMMutexLock,
(CMTMutexFunction)nsPSMMutexUnlock
};

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,16 +17,23 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nsIChannel.idl"
#ifndef _NSPSMMUTEX_H
#define _NSPSMMUTEX_H
interface nsISimpleEnumerator;
#include "cmtcmn.h"
[scriptable, uuid(97496eb6-9ef9-11d3-8cda-0060b0fc14a3)]
interface nsIResChannel : nsIChannel
{
PR_BEGIN_EXTERN_C
};
PR_EXTERN(CMT_MUTEX) nsPSMMutexTbl;
PR_EXTERN(PRStatus) nsPSMMutexInit(void);
PR_EXTERN(PRStatus) nsPSMMutexDestroy(void);
PR_END_EXTERN_C
#endif

View File

@@ -0,0 +1,284 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nspr.h"
#include "nsPSMShimLayer.h"
#ifdef XP_UNIX
#include <sys/stat.h>
#include <unistd.h>
#endif
#define NSPSMSHIMMAXFD 50
CMT_SocketFuncs nsPSMShimTbl =
{
nsPSMShimGetSocket,
nsPSMShimConnect,
nsPSMShimVerifyUnixSocket,
nsPSMShimSend,
nsPSMShimSelect,
nsPSMShimReceive,
nsPSMShimShutdown,
nsPSMShimClose
};
CMTSocket
nsPSMShimGetSocket(int unixSock)
{
PRStatus rv;
PRFileDesc *fd;
CMSocket *sock;
if (unixSock)
{
#ifndef XP_UNIX
return NULL;
#else
fd = PR_OpenTCPSocket(AF_UNIX);
PR_ASSERT(fd);
#endif
}
else
{
PRSocketOptionData sockopt;
fd = PR_NewTCPSocket();
PR_ASSERT(fd);
/* disable Nagle algorithm delay for control sockets */
sockopt.option = PR_SockOpt_NoDelay;
sockopt.value.no_delay = PR_TRUE;
rv = PR_SetSocketOption(fd, &sockopt);
PR_ASSERT(PR_SUCCESS == rv);
}
sock = (CMSocket *)PR_Malloc(sizeof(CMSocket));
if (sock == NULL)
return sock;
sock->fd = fd;
sock->isUnix = unixSock;
memset(&sock->netAddr, 0, sizeof(PRNetAddr));
return (CMTSocket)sock;
}
CMTStatus
nsPSMShimConnect(CMTSocket sock, short port, char *path)
{
PRStatus err;
PRErrorCode errcode;
CMTStatus rv = CMTSuccess;
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
if (cmSock->isUnix)
{
#ifndef XP_UNIX
return CMTFailure;
#else
int pathLen;
if (!path)
{
return CMTFailure;
}
/* check buffer overrun */
pathLen = strlen(path)+1;
pathLen = pathLen < sizeof(cmSock->netAddr.local.path)
? pathLen : sizeof(cmSock->netAddr.local.path);
memcpy(&cmSock->netAddr.local.path, path, pathLen);
cmSock->netAddr.local.family = PR_AF_LOCAL;
#endif
}
else /* cmSock->isUnix */
{
cmSock->netAddr.inet.family = PR_AF_INET;
cmSock->netAddr.inet.port = PR_htons(port);
cmSock->netAddr.inet.ip = PR_htonl(PR_INADDR_LOOPBACK);
}
err = PR_Connect( cmSock->fd, &cmSock->netAddr, PR_INTERVAL_MAX );
if (err == PR_FAILURE)
{
errcode = PR_GetError();
/* TODO: verify PR_INVALID_ARGUMENT_ERROR continue with connect */
switch (errcode)
{
case PR_IS_CONNECTED_ERROR:
rv = CMTSuccess;
break;
case PR_IN_PROGRESS_ERROR:
case PR_IO_TIMEOUT_ERROR:
#ifdef WIN32
case PR_WOULD_BLOCK_ERROR:
case PR_INVALID_ARGUMENT_ERROR:
#endif
default:
rv = CMTFailure;
break;
}
}
return rv;
}
CMTStatus
nsPSMShimVerifyUnixSocket(CMTSocket sock)
{
#ifndef XP_UNIX
return CMTFailure;
#else
int rv;
CMSocket *cmSock;
struct stat statbuf;
cmSock = (CMSocket *)sock;
if (!cmSock || !cmSock->isUnix)
return CMTFailure;
rv = stat(cmSock->netAddr.local.path, &statbuf);
if (rv < 0 || statbuf.st_uid != geteuid() )
{
PR_Close(cmSock->fd);
cmSock->fd = NULL;
PR_Free(cmSock);
return CMTFailure;
}
return CMTSuccess;
#endif
}
size_t
nsPSMShimSend(CMTSocket sock, void *buffer, size_t length)
{
PRInt32 total;
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
total = PR_Send(cmSock->fd, buffer, length, 0, PR_INTERVAL_NO_TIMEOUT);
/* TODO: for now, return 0 if there's an error */
return (total < 0) ? 0 : total;
}
CMTSocket
nsPSMShimSelect(CMTSocket *socks, int numsocks, int poll)
{
CMSocket **sockArr = (CMSocket **)socks;
PRPollDesc readPDs[NSPSMSHIMMAXFD];
PRIntervalTime timeout;
PRInt32 cnt;
int i;
if (!socks) return NULL;
memset(readPDs, 0, sizeof(readPDs));
PR_ASSERT(NSPSMSHIMMAXFD >= numsocks);
for (i=0; i<numsocks; i++)
{
readPDs[i].fd = sockArr[i]->fd;
readPDs[i].in_flags = PR_POLL_READ;
}
timeout = poll ? PR_INTERVAL_NO_WAIT : PR_INTERVAL_NO_TIMEOUT;
cnt = PR_Poll(readPDs, numsocks, timeout);
/* Figure out which socket was selected */
if (cnt > 0)
{
for (i=0; i<numsocks; i++)
{
if (readPDs[i].out_flags & PR_POLL_READ)
{
return (CMTSocket)sockArr[i];
}
}
}
return NULL;
}
size_t
nsPSMShimReceive(CMTSocket sock, void *buffer, size_t bufSize)
{
PRInt32 total;
CMSocket *cmSock = (CMSocket *)sock;
if (!sock) return CMTFailure;
total = PR_Recv(cmSock->fd, buffer, bufSize, 0, PR_INTERVAL_NO_TIMEOUT);
/* TODO: for now, return 0 if there's an error */
return (total < 0) ? 0 : total;
}
CMTStatus
nsPSMShimShutdown(CMTSocket sock)
{
CMSocket *cmSock = (CMSocket*)sock;
PRStatus rv;
if (!sock) return CMTFailure;
rv = PR_Shutdown(cmSock->fd, PR_SHUTDOWN_SEND);
return (PR_SUCCESS == rv) ? CMTSuccess : CMTFailure;
}
CMTStatus
nsPSMShimClose(CMTSocket sock)
{
CMSocket *cmSock = (CMSocket*)sock;
PRStatus rv = PR_SUCCESS;
PR_ASSERT(cmSock);
if (!sock) return CMTFailure;
rv = PR_Close(cmSock->fd);
cmSock->fd = NULL;
PR_Free(cmSock);
return (PR_SUCCESS == rv) ? CMTSuccess : CMTFailure;
}

View File

@@ -0,0 +1,67 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef _NSPSMSHIMLAYER_H_
#define _NSPSMSHIMLAYER_H_
#include "cmtcmn.h"
#include "prio.h"
PR_BEGIN_EXTERN_C
typedef struct CMSocket {
PRFileDesc *fd;
PRBool isUnix;
PRNetAddr netAddr;
} CMSocket;
PR_EXTERN(CMT_SocketFuncs) nsPSMShimTbl;
PR_EXTERN(CMTSocket)
nsPSMShimGetSocket(int unixSock);
PR_EXTERN(CMTStatus)
nsPSMShimConnect(CMTSocket sock, short port, char *path);
PR_EXTERN(CMTStatus)
nsPSMShimVerifyUnixSocket(CMTSocket sock);
PR_EXTERN(size_t)
nsPSMShimSend(CMTSocket sock, void *buffer, size_t length);
PR_EXTERN(CMTSocket)
nsPSMShimSelect(CMTSocket *socks, int numsocks, int poll);
PR_EXTERN(size_t)
nsPSMShimReceive(CMTSocket sock, void *buffer, size_t bufSize);
PR_EXTERN(CMTStatus)
nsPSMShimShutdown(CMTSocket sock);
PR_EXTERN(CMTStatus)
nsPSMShimClose(CMTSocket sock);
PR_END_EXTERN_C
#endif /* _NSPSMSHIMLAYER_H_ */

View File

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

View File

@@ -0,0 +1,55 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef _NSPSMUICALLBACKS_H
#define _NSPSMUICALLBACKS_H
#include "prtypes.h"
#include "cmtcmn.h"
#include "nsIPSMUIHandler.h"
PRStatus InitPSMUICallbacks(PCMT_CONTROL gControl);
PRStatus DisplayPSMUIDialog(PCMT_CONTROL control, const char* pickledStatus, const char *hostName);
#define NS_PSMUIHANDLER_CID {0x15944e30, 0x601e, 0x11d3, {0x8c, 0x4a, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74}}
class nsPSMUIHandlerImpl : public nsIPSMUIHandler
{
public:
NS_DEFINE_STATIC_CID_ACCESSOR( NS_PSMUIHANDLER_CID );
/* ctor/dtor */
nsPSMUIHandlerImpl() { NS_INIT_REFCNT(); }
virtual ~nsPSMUIHandlerImpl() { }
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMUIHANDLER
static NS_METHOD CreatePSMUIHandler(nsISupports* aOuter, REFNSIID aIID, void **aResult);
};
#endif

View File

@@ -0,0 +1,310 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* thayes@netscape.com
*/
#include "stdlib.h"
#include "plstr.h"
#include "nsIAllocator.h"
#include "nsIServiceManager.h"
#include "plbase64.h"
#include "nsISecretDecoderRing.h"
#include "cmtcmn.h"
#include "nsIPSMComponent.h"
#include "nsSDR.h"
NS_IMPL_ISUPPORTS1(nsSecretDecoderRing, nsISecretDecoderRing)
nsSecretDecoderRing::nsSecretDecoderRing()
{
NS_INIT_ISUPPORTS();
mPSM = NULL;
}
nsSecretDecoderRing::~nsSecretDecoderRing()
{
if (mPSM) mPSM->Release();
}
/* Init the new instance */
nsresult nsSecretDecoderRing::
init()
{
nsresult rv;
nsISupports *psm;
rv = nsServiceManager::GetService(kPSMComponentProgID, NS_GET_IID(nsIPSMComponent),
&psm);
if (rv != NS_OK) goto loser; /* Should promote error */
mPSM = (nsIPSMComponent *)psm;
loser:
return rv;
}
/* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
NS_IMETHODIMP nsSecretDecoderRing::
Encrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
{
nsresult rv = NS_OK;
unsigned char *r = 0;
CMT_CONTROL *control;
CMTStatus status;
CMUint32 cLen;
if (data == nsnull || result == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connect to use for the request */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
status = CMT_SDREncrypt(control, (const unsigned char *)0, 0,
data, dataLen, result, &cLen);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* XXX */
/* Copy returned data to nsAllocator buffer ? */
*_retval = cLen;
loser:
return rv;
}
/* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
NS_IMETHODIMP nsSecretDecoderRing::
Decrypt(unsigned char * data, PRInt32 dataLen, unsigned char * *result, PRInt32 *_retval)
{
nsresult rv = NS_OK;
CMTStatus status;
CMT_CONTROL *control;
CMUint32 len;
if (data == nsnull || result == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connection */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
/* Call PSM to decrypt the value */
status = CMT_SDRDecrypt(control, data, dataLen, result, &len);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* Promote? */
/* Copy returned data to nsAllocator buffer ? */
*_retval = len;
loser:
return rv;
}
/* string encryptString (in string text); */
NS_IMETHODIMP nsSecretDecoderRing::
EncryptString(const char *text, char **_retval)
{
nsresult rv = NS_OK;
unsigned char *encrypted = 0;
PRInt32 eLen;
if (text == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
rv = Encrypt((unsigned char *)text, PL_strlen(text), &encrypted, &eLen);
if (rv != NS_OK) { goto loser; }
rv = encode(encrypted, eLen, _retval);
loser:
if (encrypted) nsAllocator::Free(encrypted);
return rv;
}
/* string decryptString (in string crypt); */
NS_IMETHODIMP nsSecretDecoderRing::
DecryptString(const char *crypt, char **_retval)
{
nsresult rv = NS_OK;
char *r = 0;
unsigned char *decoded = 0;
PRInt32 decodedLen;
unsigned char *decrypted = 0;
PRInt32 decryptedLen;
if (crypt == nsnull || _retval == nsnull) {
rv = NS_ERROR_INVALID_POINTER;
goto loser;
}
rv = decode(crypt, &decoded, &decodedLen);
if (rv != NS_OK) goto loser;
rv = Decrypt(decoded, decodedLen, &decrypted, &decryptedLen);
if (rv != NS_OK) goto loser;
// Convert to NUL-terminated string
r = (char *)nsAllocator::Alloc(decryptedLen+1);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, decrypted, decryptedLen);
r[decryptedLen] = 0;
*_retval = r;
r = 0;
loser:
if (r) nsAllocator::Free(r);
if (decrypted) nsAllocator::Free(decrypted);
if (decoded) nsAllocator::Free(decoded);
return rv;
}
/* void changePassword(); */
NS_IMETHODIMP nsSecretDecoderRing::
ChangePassword()
{
return NS_OK;
}
/* void logout(); */
NS_IMETHODIMP nsSecretDecoderRing::
Logout()
{
nsresult rv = NS_OK;
CMTStatus status;
CMT_CONTROL *control;
/* Check object initialization */
NS_ASSERTION(mPSM != nsnull, "SDR object not initialized");
if (mPSM == nsnull) { rv = NS_ERROR_NOT_INITIALIZED; goto loser; }
/* Get the control connection */
rv = mPSM->GetControlConnection(&control);
if (rv != NS_OK) { rv = NS_ERROR_NOT_AVAILABLE; goto loser; }
/* Call PSM to decrypt the value */
status = CMT_LogoutAllTokens(control);
if (status != CMTSuccess) { rv = NS_ERROR_FAILURE; goto loser; } /* Promote? */
loser:
return rv;
}
// Support routines
nsresult nsSecretDecoderRing::
encode(const unsigned char *data, PRInt32 dataLen, char **_retval)
{
nsresult rv = NS_OK;
*_retval = PL_Base64Encode((const char *)data, dataLen, NULL);
if (!*_retval) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
loser:
return rv;
#if 0
nsresult rv = NS_OK;
char *r = 0;
// Allocate space for encoded string (with NUL)
r = (char *)nsAllocator::Alloc(dataLen+1);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, data, dataLen);
r[dataLen] = 0;
*_retval = r;
r = 0;
loser:
if (r) nsAllocator::Free(r);
return rv;
#endif
}
nsresult nsSecretDecoderRing::
decode(const char *data, unsigned char **result, PRInt32 * _retval)
{
nsresult rv = NS_OK;
PRUint32 len = PL_strlen(data);
int adjust = 0;
/* Compute length adjustment */
if (data[len-1] == '=') {
adjust++;
if (data[len-2] == '=') adjust++;
}
*result = (unsigned char *)PL_Base64Decode(data, len, NULL);
if (!*result) { rv = NS_ERROR_ILLEGAL_VALUE; goto loser; }
*_retval = (len*3)/4 - adjust;
loser:
return rv;
#if 0
nsresult rv = NS_OK;
unsigned char *r = 0;
PRInt32 rLen;
// Allocate space for decoded string (missing NUL)
rLen = PL_strlen(data);
r = (unsigned char *)nsAllocator::Alloc(rLen);
if (!r) { rv = NS_ERROR_OUT_OF_MEMORY; goto loser; }
memcpy(r, data, rLen);
*result = r;
r = 0;
*_retval = rLen;
loser:
if (r) nsAllocator::Free(r);
return rv;
#endif
}
const char * nsSecretDecoderRing::kPSMComponentProgID = PSM_COMPONENT_PROGID;

View File

@@ -0,0 +1,58 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Terry Hayes <thayes@netscape.com>
*/
#ifndef _NSSDR_H_
#define _NSSDR_H_
#include "nsISecretDecoderRing.h"
// ===============================================
// nsSecretDecoderRing - implementation of nsISecretDecoderRing
// ===============================================
#define NS_SDR_CLASSNAME "Secret Decoder Ring"
#define NS_SDR_CID \
{ 0xd9a0341, 0xce7, 0x11d4, { 0x9f, 0xdd, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }
#define NS_SDR_PROGID "netscape.security.sdr"
class nsSecretDecoderRing : public nsISecretDecoderRing
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISECRETDECODERRING
nsSecretDecoderRing();
virtual ~nsSecretDecoderRing();
nsresult init();
private:
nsIPSMComponent *mPSM;
static const char *kPSMComponentProgID;
nsresult encode(const unsigned char *data, PRInt32 dataLen, char **_retval);
nsresult decode(const char *data, unsigned char **result, PRInt32 * _retval);
};
#endif /* _NSSDR_H_ */

View File

@@ -0,0 +1,432 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nspr.h"
#include "nsString.h"
#include "cmtcmn.h"
#include "nsIPSMComponent.h"
#include "nsIPSMSocketInfo.h"
#include "nsIServiceManager.h"
#include "nsPSMShimLayer.h"
#include "nsSSLIOLayer.h"
static PRDescIdentity nsSSLIOLayerIdentity;
static PRIOMethods nsSSLIOLayerMethods;
static nsIPSMComponent* gPSMService = nsnull;
class nsPSMSocketInfo : public nsIPSMSocketInfo
{
public:
nsPSMSocketInfo();
~nsPSMSocketInfo();
NS_DECL_ISUPPORTS
NS_DECL_NSIPSMSOCKETINFO
// internal functions to psm-glue.
nsresult SetSocketPtr(CMSocket *socketPtr);
nsresult SetControlPtr(CMT_CONTROL *aControlPtr);
nsresult SetFileDescPtr(PRFileDesc *aControlPtr);
nsresult SetHostName(char *aHostName);
protected:
CMT_CONTROL* mControl;
CMSocket* mSocket;
PRFileDesc* mFd;
nsString mHostName;
};
static PRStatus PR_CALLBACK
nsSSLIOLayerConnect(PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout)
{
nsresult result;
PRStatus rv = PR_SUCCESS;
CMTStatus status = CMTFailure;
char* hostName;
/* Set the error in case of failure. */
PR_SetError(PR_UNKNOWN_ERROR, status);
if (!fd || !addr || !fd->secret)
return PR_FAILURE;
if (gPSMService == nsnull)
{
result = nsServiceManager::GetService( PSM_COMPONENT_PROGID,
NS_GET_IID(nsIPSMComponent),
(nsISupports**)&gPSMService); //FIX leak one per app run
if (NS_FAILED(result))
return PR_FAILURE;
}
// Make the socket non-blocking...
PRSocketOptionData opt;
opt.option = PR_SockOpt_Nonblocking;
opt.value.non_blocking = PR_FALSE;
rv = PR_SetSocketOption(fd->lower, &opt);
if (PR_SUCCESS != rv)
return PR_FAILURE;
char ipBuffer[PR_NETDB_BUF_SIZE];
rv = PR_NetAddrToString(addr, (char*)&ipBuffer, PR_NETDB_BUF_SIZE);
if (rv != PR_SUCCESS)
return PR_FAILURE;
if (addr->raw.family == PR_AF_INET6 && PR_IsNetAddrType(addr, PR_IpAddrV4Mapped))
{
/* Chop off the leading "::ffff:" */
strcpy(ipBuffer, ipBuffer + 7);
}
CMSocket* cmsock = (CMSocket *)PR_Malloc(sizeof(CMSocket));
if (!cmsock)
return PR_FAILURE;
memset(cmsock, 0, sizeof(CMSocket));
CMT_CONTROL *control;
result = gPSMService->GetControlConnection(&control);
if (result != PR_SUCCESS)
{
PR_FREEIF(cmsock)
return PR_FAILURE;
}
cmsock->fd = fd->lower;
cmsock->isUnix = PR_FALSE;
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
infoObject->GetHostName(&hostName);
infoObject->SetControlPtr(control);
infoObject->SetSocketPtr(cmsock);
status = CMT_OpenSSLConnection(control,
cmsock,
SSM_REQUEST_SSL_DATA_SSL,
PR_ntohs(addr->inet.port),
ipBuffer,
(hostName ? hostName : ipBuffer),
CM_FALSE,
nsnull);
if (CMTSuccess == status)
{
// since our stuff can block, what we want to do is return PR_FAILURE,
// but set the nspr ERROR to BLOCK. This will put us into a select
// q.
PR_SetError(PR_WOULD_BLOCK_ERROR, status);
return PR_FAILURE;
}
return PR_FAILURE;
}
/* CMT_DestroyDataConnection(ctrl, sock); */
/* need to strip our layer, pass result to DestroyDataConnection */
/* which will clean up the CMT accounting of sock, then call our */
/* shim layer to translate back to NSPR */
static PRStatus PR_CALLBACK
nsSSLIOLayerClose(PRFileDesc *fd)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
if (((PRStatus) CMT_GetSSLDataErrorCode(control, socket, &errorCode)) == PR_SUCCESS)
{
CMT_DestroyDataConnection(control, socket);
NS_RELEASE(infoObject);
fd->identity = PR_INVALID_IO_LAYER;
}
return (PRStatus)errorCode;
}
return PR_FAILURE;
}
static PRInt32 PR_CALLBACK
nsSSLIOLayerRead( PRFileDesc *fd, void *buf, PRInt32 amount)
{
if (!fd)
return PR_FAILURE;
PRInt32 result = PR_Recv(fd, buf, amount, 0, PR_INTERVAL_MIN);
if (result > 0)
return result;
if (result == -1)
{
PRErrorCode code = PR_GetError();
if (code == PR_IO_TIMEOUT_ERROR )
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
if (result == 0)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
CMT_GetSSLDataErrorCode(control, socket, &errorCode);
if (errorCode == PR_IO_TIMEOUT_ERROR)
{
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
PR_SetError(0, 0);
return errorCode;
}
}
return result;
}
static PRInt32 PR_CALLBACK
nsSSLIOLayerWrite( PRFileDesc *fd, const void *buf, PRInt32 amount)
{
if (!fd)
return PR_FAILURE;
PRInt32 result = PR_Send(fd, buf, amount, 0, PR_INTERVAL_MIN);
if (result > 0)
return result;
if (result == -1)
{
PRErrorCode code = PR_GetError();
if (code == PR_IO_TIMEOUT_ERROR )
PR_SetError(PR_WOULD_BLOCK_ERROR, PR_WOULD_BLOCK_ERROR);
return PR_FAILURE;
}
if (result == 0)
{
nsPSMSocketInfo *infoObject = (nsPSMSocketInfo *)fd->secret;
PRDescIdentity id = PR_GetLayersIdentity(fd);
if (infoObject && id == nsSSLIOLayerIdentity)
{
CMInt32 errorCode = PR_FAILURE;
CMT_CONTROL* control;
CMSocket* socket;
infoObject->GetControlPtr(&control);
infoObject->GetSocketPtr(&socket);
CMT_GetSSLDataErrorCode(control, socket, &errorCode);
PR_SetError(0, 0);
return errorCode;
}
}
return result;
}
nsPSMSocketInfo::nsPSMSocketInfo()
{
NS_INIT_REFCNT();
mControl = nsnull;
mSocket = nsnull;
}
nsPSMSocketInfo::~nsPSMSocketInfo()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS1(nsPSMSocketInfo, nsIPSMSocketInfo);
NS_IMETHODIMP
nsPSMSocketInfo::GetControlPtr(CMT_CONTROL * *aControlPtr)
{
*aControlPtr = mControl;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetControlPtr(CMT_CONTROL *aControlPtr)
{
mControl = aControlPtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetSocketPtr(CMSocket * *socketPtr)
{
*socketPtr = mSocket;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetSocketPtr(CMSocket *socketPtr)
{
mSocket = socketPtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetFileDescPtr(PRFileDesc * *aFilePtr)
{
*aFilePtr = mFd;
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetFileDescPtr(PRFileDesc *aFilePtr)
{
mFd = aFilePtr;
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetHostName(char * *aHostName)
{
*aHostName = mHostName.ToNewCString();
return NS_OK;
}
nsresult
nsPSMSocketInfo::SetHostName(char *aHostName)
{
mHostName.AssignWithConversion(aHostName);
return NS_OK;
}
NS_IMETHODIMP
nsPSMSocketInfo::GetPickledStatus(char * *pickledStatusString)
{
*pickledStatusString = nsnull;
if (mSocket && mControl)
{
long level;
CMTItem pickledStatus = {0, nsnull, 0};
unsigned char* ret = nsnull;
if (CMT_GetSSLSocketStatus(mControl, mSocket, &pickledStatus, &level) == PR_FAILURE)
return nsnull;
ret = (unsigned char*) PR_Malloc( (SSMSTRING_PADDED_LENGTH(pickledStatus.len) + sizeof(int)) );
if (!ret)
return NS_ERROR_OUT_OF_MEMORY;
*(int*)ret = pickledStatus.len;
memcpy(ret+sizeof(int), pickledStatus.data, *(int*)ret);
PR_FREEIF(pickledStatus.data);
*pickledStatusString = (char*) ret;
}
return NS_OK;
}
nsresult
nsSSLIOLayerNewSocket(const char* hostName, PRFileDesc **fd, nsISupports** info)
{
static PRBool firstTime = PR_TRUE;
if (firstTime)
{
nsSSLIOLayerIdentity = PR_GetUniqueIdentity("Cartman layer");
nsSSLIOLayerMethods = *PR_GetDefaultIOMethods();
nsSSLIOLayerMethods.connect = nsSSLIOLayerConnect;
nsSSLIOLayerMethods.close = nsSSLIOLayerClose;
nsSSLIOLayerMethods.read = nsSSLIOLayerRead;
nsSSLIOLayerMethods.write = nsSSLIOLayerWrite;
firstTime = PR_FALSE;
}
PRFileDesc * sock;
PRFileDesc * layer;
PRStatus rv;
/* Get a normal NSPR socket */
sock = PR_NewTCPSocket();
if (! sock) return NS_ERROR_OUT_OF_MEMORY;
layer = PR_CreateIOLayerStub(nsSSLIOLayerIdentity, &nsSSLIOLayerMethods);
if (! layer)
{
PR_Close(sock);
return NS_ERROR_FAILURE;
}
nsPSMSocketInfo *infoObject = new nsPSMSocketInfo();
if (!infoObject)
{
PR_Close(sock);
// clean up IOLayerStub.
return NS_ERROR_FAILURE;
}
NS_ADDREF(infoObject);
infoObject->SetHostName((char*)hostName);
layer->secret = (PRFilePrivate*) infoObject;
rv = PR_PushIOLayer(sock, PR_GetLayersIdentity(sock), layer);
if (rv == PR_SUCCESS)
{
*fd = sock;
*info = infoObject;
NS_ADDREF(*info);
return NS_OK;
}
PR_Close(sock);
return NS_ERROR_FAILURE;
}

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,20 +17,21 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
*/
#include "nsIChannel.idl"
#ifndef _NSSSLIOLAYER_H
#define _NSSSLIOLAYER_H
interface nsIEventQueue;
#include "prtypes.h"
#include "prio.h"
#include "nsIPSMSocketInfo.h"
// this interface provides a way for the FTP connection to
// synchronize with the owning channel.
// define taken from 4.x cartman glue code.
#define SSMSTRING_PADDED_LENGTH(x) ((((x)+3)/4)*4)
[scriptable, uuid(64718e40-18c2-11d3-9337-00104ba0fd40)]
interface nsPIFTPChannel : nsIChannel
{
void SetContentLength(in long aLength);
};
nsresult nsSSLIOLayerNewSocket(const char* hostName, PRFileDesc **fd, nsISupports **securityInfo);
#endif /* _NSSSLIOLAYER_H */

View File

@@ -0,0 +1,83 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsSSLSocketProvider.h"
#include "nsSSLIOLayer.h"
////////////////////////////////////////////////////////////////////////////////
nsSSLSocketProvider::nsSSLSocketProvider()
{
NS_INIT_REFCNT();
}
nsresult
nsSSLSocketProvider::Init()
{
nsresult rv = NS_OK;
return rv;
}
nsSSLSocketProvider::~nsSSLSocketProvider()
{
}
NS_IMPL_THREADSAFE_ISUPPORTS2(nsSSLSocketProvider, nsISocketProvider, nsISSLSocketProvider);
NS_METHOD
nsSSLSocketProvider::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
nsSSLSocketProvider * inst;
if (NULL == aResult) {
rv = NS_ERROR_NULL_POINTER;
return rv;
}
*aResult = NULL;
if (NULL != aOuter) {
rv = NS_ERROR_NO_AGGREGATION;
return rv;
}
NS_NEWXPCOM(inst, nsSSLSocketProvider);
if (NULL == inst) {
rv = NS_ERROR_OUT_OF_MEMORY;
return rv;
}
NS_ADDREF(inst);
rv = inst->QueryInterface(aIID, aResult);
NS_RELEASE(inst);
return rv;
}
NS_IMETHODIMP
nsSSLSocketProvider::NewSocket(const char *hostName, PRFileDesc **_result, nsISupports **securityInfo)
{
nsresult rv = nsSSLIOLayerNewSocket(hostName, _result, securityInfo);
return (NS_FAILED(rv)) ? NS_ERROR_SOCKET_CREATE_FAILED : NS_OK;
}

View File

@@ -1,9 +1,9 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*-
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
@@ -17,24 +17,31 @@
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
* Contributor(s):
*/
#ifndef _NSSOCKETPROVIDERSERVICE_H_
#define _NSSOCKETPROVIDERSERVICE_H_
#ifndef _NSSSLSOCKETPROVIDER_H_
#define _NSSSLSOCKETPROVIDER_H_
#include "nsISocketProviderService.h"
#include "nsISSLSocketProvider.h"
class nsSocketProviderService : public nsISocketProviderService
/* 274418d0-5437-11d3-bbc8-0000861d1237 */
#define NS_SSLSOCKETPROVIDER_CID { 0x274418d0, 0x5437, 0x11d3, {0xbb, 0xc8, 0x00, 0x00, 0x86, 0x1d, 0x12, 0x37}}
class nsSSLSocketProvider : public nsISSLSocketProvider
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSISOCKETPROVIDERSERVICE
NS_DECL_NSISOCKETPROVIDER
// nsISocketProviderService methods:
nsSocketProviderService();
virtual ~nsSocketProviderService();
NS_DECL_NSISSLSOCKETPROVIDER
// nsSSLSocketProvider methods:
nsSSLSocketProvider();
virtual ~nsSSLSocketProvider();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
@@ -44,4 +51,4 @@ public:
protected:
};
#endif /* _NSSOCKETPROVIDERSERVICE_H */
#endif /* _NSSSLSOCKETPROVIDER_H_ */

View File

@@ -0,0 +1,619 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#include "nspr.h"
#include "prlog.h"
#include "nsISecureBrowserUI.h"
#include "nsSecureBrowserUIImpl.h"
#include "nsIPSMComponent.h"
#include "nsPSMComponent.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIScriptGlobalObject.h"
#include "nsIObserverService.h"
#include "nsIDocumentLoader.h"
#include "nsCURILoader.h"
#include "nsIDocShell.h"
#include "nsIDocumentViewer.h"
#include "nsCURILoader.h"
#include "nsIDocument.h"
#include "nsIDOMHTMLDocument.h"
#include "nsIDOMXULDocument.h"
#include "nsIDOMElement.h"
#include "nsIDOMWindow.h"
#include "nsIWebProgress.h"
#include "nsIChannel.h"
#include "nsIPSMSocketInfo.h"
#include "nsIURI.h"
#include "prmem.h"
#include "nsINetSupportDialogService.h"
#include "nsIPrompt.h"
#include "nsICommonDialogs.h"
#include "nsIPref.h"
#include "nsIFormSubmitObserver.h"
static NS_DEFINE_CID(kCStringBundleServiceCID, NS_STRINGBUNDLESERVICE_CID);
static NS_DEFINE_CID(kCommonDialogsCID, NS_CommonDialog_CID );
static NS_DEFINE_CID(kPrefCID, NS_PREF_CID);
#define ENTER_SITE_PREF "security.warn_entering_secure"
#define LEAVE_SITE_PREF "security.warn_leaving_secure"
#define MIXEDCONTENT_PREF "security.warn_viewing_mixed"
#define INSECURE_SUBMIT_PREF "security.warn_submit_insecure"
#if defined(PR_LOGGING)
//
// Log module for nsSecureBroswerUI logging...
//
// To enable logging (see prlog.h for full details):
//
// set NSPR_LOG_MODULES=nsSecureBroswerUI:5
// set NSPR_LOG_FILE=nspr.log
//
// this enables PR_LOG_DEBUG level information and places all output in
// the file nspr.log
//
PRLogModuleInfo* gSecureDocLog = nsnull;
#endif /* PR_LOGGING */
NS_IMETHODIMP
nsSecureBrowserUIImpl::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
nsSecureBrowserUIImpl * inst;
if (NULL == aResult) {
rv = NS_ERROR_NULL_POINTER;
return rv;
}
*aResult = NULL;
if (NULL != aOuter) {
rv = NS_ERROR_NO_AGGREGATION;
return rv;
}
NS_NEWXPCOM(inst, nsSecureBrowserUIImpl);
if (NULL == inst) {
rv = NS_ERROR_OUT_OF_MEMORY;
return rv;
}
NS_ADDREF(inst);
rv = inst->QueryInterface(aIID, aResult);
NS_RELEASE(inst);
return rv;
}
nsSecureBrowserUIImpl::nsSecureBrowserUIImpl()
{
NS_INIT_REFCNT();
#if defined(PR_LOGGING)
if (nsnull == gSecureDocLog) {
gSecureDocLog = PR_NewLogModule("nsSecureBroswerUI");
}
#endif /* PR_LOGGING */
mIsSecureDocument = mMixContentAlertShown = mIsDocumentBroken = PR_FALSE;
mLastPSMStatus = nsnull;
mCurrentURI = nsnull;
mSecurityButton = nsnull;
}
nsSecureBrowserUIImpl::~nsSecureBrowserUIImpl()
{
PR_FREEIF(mLastPSMStatus);
}
NS_IMPL_ISUPPORTS4(nsSecureBrowserUIImpl,
nsSecureBrowserUI,
nsIWebProgressListener,
nsIFormSubmitObserver,
nsIObserver);
NS_IMETHODIMP
nsSecureBrowserUIImpl::Init(nsIDOMWindow *window, nsIDOMElement *button)
{
mSecurityButton = button;
mWindow = window;
nsresult rv = nsServiceManager::GetService( kPrefCID,
NS_GET_IID(nsIPref),
getter_AddRefs(mPref));
if (NS_FAILED(rv)) return rv;
NS_WITH_SERVICE(nsIStringBundleService, service, kCStringBundleServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsILocale* locale = nsnull;
rv = service->CreateBundle(SECURITY_STRING_BUNDLE_URL, locale, getter_AddRefs(mStringBundle));
if (NS_FAILED(rv)) return rv;
// hook up to the form post notifications:
nsIObserverService *svc = 0;
rv = nsServiceManager::GetService(NS_OBSERVERSERVICE_PROGID,
NS_GET_IID(nsIObserverService),
(nsISupports**)&svc );
if ( NS_SUCCEEDED( rv ) && svc )
{
nsString topic; topic.AssignWithConversion(NS_FORMSUBMIT_SUBJECT);
rv = svc->AddObserver( this, topic.GetUnicode());
nsServiceManager::ReleaseService( NS_OBSERVERSERVICE_PROGID, svc );
}
// hook up to the webprogress notifications.
nsCOMPtr<nsIDocShell> docShell;
nsCOMPtr<nsIScriptGlobalObject> sgo = do_QueryInterface(window);
if (!sgo) return NS_ERROR_NULL_POINTER;
sgo->GetDocShell(getter_AddRefs(docShell));
if (!docShell) return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIWebProgress> wp = do_QueryInterface(docShell);
if (!wp) return NS_ERROR_NULL_POINTER;
wp->AddProgressListener(NS_STATIC_CAST(nsIWebProgressListener*,this));
// Set up stuff the first time the window loads:
docShell->GetCurrentURI(getter_AddRefs(mCurrentURI));
return IsURLHTTPS(mCurrentURI, &mIsSecureDocument);
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::DisplayPageInfoUI()
{
nsresult res;
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
nsXPIDLCString temp;
mCurrentURI->GetHost(getter_Copies(temp));
return psm->DisplaySecurityAdvisor(mLastPSMStatus, temp);
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::Observe(nsISupports*, const PRUnichar*, const PRUnichar*)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::Notify(nsIContent* formNode, nsIDOMWindow* window, nsIURI* actionURL)
{
// Return NS_OK unless we want to prevent this form from submitting.
if (!window || (mWindow.get() != window) || !actionURL) {
return NS_OK;
}
PRBool okayToPost;
nsresult res = CheckPost(actionURL, &okayToPost);
// Return NS_OK unless we want to prevent this form from submitting.
if (NS_SUCCEEDED(res) && okayToPost)
return NS_OK;
return NS_ERROR_FAILURE;
}
// nsIWebProgressListener
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnProgressChange(nsIChannel* aChannel,
PRInt32 aCurSelfProgress,
PRInt32 aMaxSelfProgress,
PRInt32 aCurTotalProgress,
PRInt32 aMaxTotalProgress)
{
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnChildProgressChange(nsIChannel* aChannel,
PRInt32 aCurSelfProgress,
PRInt32 aMaxSelfProgress)
{
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnStatusChange(nsIChannel* aChannel,
PRInt32 aProgressStatusFlags)
{
nsresult res;
if (aChannel == nsnull || !mSecurityButton || !mPref)
return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIURI> loadingURI;
aChannel->GetURI(getter_AddRefs(loadingURI));
#if defined(DEBUG)
nsXPIDLCString temp;
loadingURI->GetSpec(getter_Copies(temp));
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: OnStatusChange: %x :%s\n", this, aProgressStatusFlags,(const char*)temp));
#endif
if (aProgressStatusFlags & nsIWebProgress::flag_net_start)
{
// starting to load a webpage
PR_FREEIF(mLastPSMStatus); mLastPSMStatus = nsnull;
mIsSecureDocument = mMixContentAlertShown = mIsDocumentBroken = PR_FALSE;
res = CheckProtocolContextSwitch( loadingURI, mCurrentURI);
}
else if ((aProgressStatusFlags & nsIWebProgress::flag_net_stop) && mIsSecureDocument)
{
if (!mIsDocumentBroken) // and status is okay FIX
{
// qi for the psm information about this channel load.
nsCOMPtr<nsISupports> info;
aChannel->GetSecurityInfo(getter_AddRefs(info));
nsCOMPtr<nsIPSMSocketInfo> psmInfo = do_QueryInterface(info);
if ( psmInfo )
{
// Everything looks okay. Lets stash the picked status.
PR_FREEIF(mLastPSMStatus);
res = psmInfo->GetPickledStatus(&mLastPSMStatus);
if (NS_SUCCEEDED(res))
{
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: Icon set to lock\n", this));
res = mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("high") );
}
}
}
else
{
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: Icon set to broken\n", this));
mIsDocumentBroken = PR_TRUE;
res = mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken") );
}
}
else // if (aProgressStatusFlags == nsIWebProgress::flag_net_redirecting)
{
res = NS_ERROR_NOT_IMPLEMENTED;
// xxx need to fix.
}
return res;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnChildStatusChange(nsIChannel* aChannel, PRInt32 aProgressStatusFlags)
{
nsresult rv;
if (aChannel == nsnull || !mSecurityButton || !mPref)
return NS_ERROR_NULL_POINTER;
nsCOMPtr<nsIURI> uri;
rv = aChannel->GetURI(getter_AddRefs(uri));
if (NS_FAILED(rv)) return rv;
#if defined(DEBUG)
nsXPIDLCString temp;
uri->GetSpec(getter_Copies(temp));
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: OnChildStatusChange: %x :%s\n", this, aProgressStatusFlags,(const char*)temp));
#endif
// don't need to do anything more if the page is broken or not secure...
if (!mIsSecureDocument || mIsDocumentBroken)
return NS_OK;
if (aProgressStatusFlags & nsIWebProgress::flag_net_start)
{ // check to see if we are going to mix content.
return CheckMixedContext(uri);
}
if (aProgressStatusFlags & nsIWebProgress::flag_net_stop)
{
if (1) // FIX status from the flag...
{
nsCOMPtr<nsISupports> info;
aChannel->GetSecurityInfo(getter_AddRefs(info));
nsCOMPtr<nsIPSMSocketInfo> psmInfo = do_QueryInterface(info, &rv);
// qi for the psm information about this channel load.
if ( psmInfo )
{
return NS_OK;
}
}
PR_LOG(gSecureDocLog, PR_LOG_DEBUG, ("SecureUI:%p: OnChildStatusChange - Icon set to broken\n", this));
mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken") );
mIsDocumentBroken = PR_TRUE;
}
return NS_OK;
}
NS_IMETHODIMP
nsSecureBrowserUIImpl::OnLocationChange(nsIURI* aLocation)
{
mCurrentURI = aLocation;
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::IsURLHTTPS(nsIURI* aURL, PRBool* value)
{
*value = PR_FALSE;
if (!aURL)
return NS_OK;
char* scheme;
aURL->GetScheme(&scheme);
if (scheme == nsnull)
return NS_ERROR_NULL_POINTER;
if ( PL_strncasecmp(scheme, "https", 5) == 0 )
*value = PR_TRUE;
nsAllocator::Free(scheme);
return NS_OK;
}
void nsSecureBrowserUIImpl::GetBundleString(const nsString& name, nsString &outString)
{
if (mStringBundle && name.Length() > 0)
{
PRUnichar *ptrv = nsnull;
if (NS_SUCCEEDED(mStringBundle->GetStringFromName(name.GetUnicode(), &ptrv)))
outString = ptrv;
else
outString.SetLength(0);;
nsAllocator::Free(ptrv);
}
else
{
outString.SetLength(0);;
}
}
nsresult
nsSecureBrowserUIImpl::CheckProtocolContextSwitch( nsIURI* newURI, nsIURI* oldURI)
{
nsresult res;
PRBool isNewSchemeSecure, isOldSchemeSecure, boolpref;
res = IsURLHTTPS(oldURI, &isOldSchemeSecure);
if (NS_FAILED(res))
return res;
res = IsURLHTTPS(newURI, &isNewSchemeSecure);
if (NS_FAILED(res))
return res;
// Check to see if we are going from a secure page to and insecure page
if ( !isNewSchemeSecure && isOldSchemeSecure)
{
mSecurityButton->RemoveAttribute( NS_ConvertASCIItoUCS2("level") );
if ((mPref->GetBoolPref(LEAVE_SITE_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &res);
if (NS_FAILED(res))
return res;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("LeaveSiteMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue)
{
mPref->SetBoolPref(LEAVE_SITE_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
psm->PassPrefs();
}
}
}
// check to see if we are going from an insecure page to a secure one.
else if (isNewSchemeSecure && !isOldSchemeSecure)
{
if ((mPref->GetBoolPref(ENTER_SITE_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &res);
if (NS_FAILED(res))
return res;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("EnterSiteMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue)
{
mPref->SetBoolPref(ENTER_SITE_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &res);
if (NS_FAILED(res))
return res;
psm->PassPrefs();
}
}
}
mIsSecureDocument = isNewSchemeSecure;
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::CheckMixedContext(nsIURI* nextURI)
{
PRBool secure;
nsresult rv = IsURLHTTPS(nextURI, &secure);
if (NS_FAILED(rv))
return rv;
if (!secure && mIsSecureDocument)
{
mIsDocumentBroken = PR_TRUE;
mSecurityButton->SetAttribute( NS_ConvertASCIItoUCS2("level"), NS_ConvertASCIItoUCS2("broken") );
if (!mPref) return NS_ERROR_NULL_POINTER;
PRBool boolpref;
if ((mPref->GetBoolPref(MIXEDCONTENT_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref && !mMixContentAlertShown)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &rv);
if (NS_FAILED(rv))
return rv;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("MixedContentMessage"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->AlertCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue);
if (!outCheckValue)
{
mPref->SetBoolPref(MIXEDCONTENT_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &rv);
if (NS_FAILED(rv))
return rv;
psm->PassPrefs();
}
mMixContentAlertShown = PR_TRUE;
}
}
return NS_OK;
}
nsresult
nsSecureBrowserUIImpl::CheckPost(nsIURI *actionURL, PRBool *okayToPost)
{
PRBool secure;
nsresult rv = IsURLHTTPS(actionURL, &secure);
if (NS_FAILED(rv))
return rv;
if (!secure && mIsSecureDocument)
{
PRBool boolpref;
// posting to a non https URL.
if ((mPref->GetBoolPref(INSECURE_SUBMIT_PREF, &boolpref) != 0))
boolpref = PR_TRUE;
if (boolpref)
{
NS_WITH_SERVICE(nsICommonDialogs, dialog, kCommonDialogsCID, &rv);
if (NS_FAILED(rv))
return rv;
nsAutoString windowTitle, message, dontShowAgain;
GetBundleString(NS_ConvertASCIItoUCS2("Title"), windowTitle);
GetBundleString(NS_ConvertASCIItoUCS2("PostToInsecure"), message);
GetBundleString(NS_ConvertASCIItoUCS2("DontShowAgain"), dontShowAgain);
PRBool outCheckValue = PR_TRUE;
dialog->ConfirmCheck(mWindow,
windowTitle.GetUnicode(),
message.GetUnicode(),
dontShowAgain.GetUnicode(),
&outCheckValue,
okayToPost);
if (!outCheckValue)
{
mPref->SetBoolPref(INSECURE_SUBMIT_PREF, PR_FALSE);
NS_WITH_SERVICE(nsIPSMComponent, psm, PSM_COMPONENT_PROGID, &rv);
if (NS_FAILED(rv))
return rv;
psm->PassPrefs();
}
}
}
return NS_OK;
}

View File

@@ -0,0 +1,99 @@
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
* Hubbie Shaw
* Doug Turner <dougt@netscape.com>
*/
#ifndef nsSecureBrowserUIImpl_h_
#define nsSecureBrowserUIImpl_h_
#include "nsCOMPtr.h"
#include "nsXPIDLString.h"
#include "nsString.h"
#include "nsIObserver.h"
#include "nsIDocumentLoaderObserver.h"
#include "nsIDOMElement.h"
#include "nsIDOMWindow.h"
#include "nsIStringBundle.h"
#include "nsISecureBrowserUI.h"
#include "nsIDocShell.h"
#include "nsIPref.h"
#include "nsIWebProgressListener.h"
#include "nsIFormSubmitObserver.h"
#include "nsIURI.h"
#define NS_SECURE_BROWSER_DOCOBSERVER_CLASSNAME "Mozilla Secure Browser Doc Observer"
#define NS_SECURE_BROWSER_DOCOBSERVER_CID \
{0x97c06c30, 0xa145, 0x11d3, \
{0x8c, 0x7c, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c}}
#define NS_SECURE_BROWSER_DOCOBSERVER_PROGID "component://netscape/secure_browser_docobserver"
class nsSecureBrowserUIImpl : public nsSecureBrowserUI,
public nsIWebProgressListener,
public nsIFormSubmitObserver,
public nsIObserver
{
public:
nsSecureBrowserUIImpl();
virtual ~nsSecureBrowserUIImpl();
static NS_METHOD Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
NS_DECL_ISUPPORTS
NS_DECL_NSIWEBPROGRESSLISTENER
NS_DECL_NSSECUREBROWSERUI
// nsIObserver
NS_DECL_NSIOBSERVER
NS_IMETHOD Notify(nsIContent* formNode, nsIDOMWindow* window, nsIURI *actionURL);
protected:
nsCOMPtr<nsIDOMWindow> mWindow;
nsCOMPtr<nsIDOMElement> mSecurityButton;
nsCOMPtr<nsIDocumentLoaderObserver> mOldWebShellObserver;
nsCOMPtr<nsIPref> mPref;
nsCOMPtr<nsIStringBundle> mStringBundle;
nsCOMPtr<nsIURI> mCurrentURI;
PRBool mIsSecureDocument; // is https loaded
PRBool mIsDocumentBroken; //
PRBool mMixContentAlertShown;
char* mLastPSMStatus;
void GetBundleString(const nsString& name, nsString &outString);
nsresult CheckProtocolContextSwitch( nsIURI* newURI, nsIURI* oldURI);
nsresult CheckMixedContext(nsIURI* nextURI);
nsresult CheckPost(nsIURI *actionURL, PRBool *okayToPost);
nsresult IsURLHTTPS(nsIURI* aURL, PRBool *value);
};
#endif /* nsSecureBrowserUIImpl_h_ */

View File

@@ -1,39 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIChannel.idl"
interface nsISimpleEnumerator;
[scriptable, uuid(c7e410d1-85f2-11d3-9f63-006008a6efe9)]
interface nsIJARChannel : nsIChannel
{
/**
* Enumerates all the entries in the JAR (the root URI).
* ARGUMENTS:
* aRoot - a string representing the root dir to enumerate from
* or null to enumerate the whole thing.
*/
nsISimpleEnumerator EnumerateEntries(in string aRoot);
};

View File

@@ -1,32 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIProtocolHandler.idl"
[scriptable, uuid(92c3b42c-98c4-11d3-8cd9-0060b0fc14a3)]
interface nsIJARProtocolHandler : nsIProtocolHandler {
/**
* Add any jar-specific methods here later.
*/
};

View File

@@ -1,42 +0,0 @@
/* -*- 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 "nsIURI.idl"
/**
* JAR URLs have the following syntax
*
* jar:<jar-file-uri>!/<jar-entry>
*
* EXAMPLE: jar:http://www.big.com/blue.jar!/ocean.html
*/
[scriptable, uuid(c7e410d3-85f2-11d3-9f63-006008a6efe9)]
interface nsIJARURI : nsIURI {
/**
* Returns the root URI (the one for the actual JAR file) for this JAR.
* eg http://www.big.com/blue.jar
*/
attribute nsIURI JARFile;
/**
* Returns the entry specified for this JAR URI.
* eg ocean.html
*/
attribute string JAREntry;
};

View File

@@ -1,978 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*
*/
#include "nsNetUtil.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsSpecialSystemDirectory.h"
#include "nsJARChannel.h"
#include "nsCRT.h"
#include "nsIFileTransportService.h"
#include "nsIURL.h"
#include "nsIMIMEService.h"
#include "nsAutoLock.h"
#include "nsIFileStreams.h"
#include "nsMimeTypes.h"
#include "nsScriptSecurityManager.h"
#include "nsIAggregatePrincipal.h"
static NS_DEFINE_CID(kFileTransportServiceCID, NS_FILETRANSPORTSERVICE_CID);
static NS_DEFINE_CID(kMIMEServiceCID, NS_MIMESERVICE_CID);
static NS_DEFINE_CID(kZipReaderCID, NS_ZIPREADER_CID);
static NS_DEFINE_CID(kScriptSecurityManagerCID, NS_SCRIPTSECURITYMANAGER_CID);
#if defined(PR_LOGGING)
#include "nsXPIDLString.h"
//
// Log module for SocketTransport logging...
//
// To enable logging (see prlog.h for full details):
//
// set NSPR_LOG_MODULES=nsJarProtocol:5
// set NSPR_LOG_FILE=nspr.log
//
// this enables PR_LOG_DEBUG level information and places all output in
// the file nspr.log
//
PRLogModuleInfo* gJarProtocolLog = nsnull;
#endif /* PR_LOGGING */
////////////////////////////////////////////////////////////////////////////////
class nsJARDownloadObserver : public nsIStreamObserver
{
public:
NS_DECL_ISUPPORTS
NS_IMETHOD OnStartRequest(nsIChannel* jarCacheTransport,
nsISupports* context) {
return NS_OK;
}
NS_IMETHOD OnStopRequest(nsIChannel* jarCacheTransport,
nsISupports* context,
nsresult status,
const PRUnichar* aMsg) {
nsresult rv = NS_OK;
nsAutoMonitor monitor(mJARChannel->mMonitor);
#ifdef PR_LOGGING
nsCOMPtr<nsIURI> jarURI;
rv = jarCacheTransport->GetURI(getter_AddRefs(jarURI));
if (NS_SUCCEEDED(rv)) {
nsXPIDLCString jarURLStr;
rv = jarURI->GetSpec(getter_Copies(jarURLStr));
if (NS_SUCCEEDED(rv)) {
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: jar download complete %s status=%x",
(const char*)jarURLStr, status));
}
}
#endif
if (NS_SUCCEEDED(status) && mJARChannel->mJarCacheTransport) {
NS_ASSERTION(jarCacheTransport == (mJARChannel->mJarCacheTransport).get(),
"wrong transport");
// after successfully downloading the jar file to the cache,
// start the extraction process:
nsCOMPtr<nsIFileChannel> jarCacheFile;
rv = NS_NewLocalFileChannel(getter_AddRefs(jarCacheFile),
mJarCacheFile,
PR_RDONLY,
0);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->SetLoadGroup(mJARChannel->mLoadGroup);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->SetBufferSegmentSize(mJARChannel->mBufferSegmentSize);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->SetBufferMaxSize(mJARChannel->mBufferMaxSize);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->SetLoadAttributes(mJARChannel->mLoadAttributes);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->SetNotificationCallbacks(mJARChannel->mCallbacks);
if (NS_FAILED(rv)) return rv;
mJARChannel->SetJARBaseFile(jarCacheFile);
rv = mOnJARFileAvailable(mJARChannel, mClosure);
}
mJARChannel->mJarCacheTransport = nsnull;
return rv;
}
nsJARDownloadObserver(nsIFile* jarCacheFile, nsJARChannel* jarChannel,
OnJARFileAvailableFun onJARFileAvailable,
void* closure)
: mJarCacheFile(jarCacheFile),
mJARChannel(jarChannel),
mOnJARFileAvailable(onJARFileAvailable),
mClosure(closure)
{
NS_INIT_REFCNT();
NS_ADDREF(mJARChannel);
}
virtual ~nsJARDownloadObserver() {
NS_RELEASE(mJARChannel);
}
protected:
nsCOMPtr<nsIFile> mJarCacheFile;
nsJARChannel* mJARChannel;
OnJARFileAvailableFun mOnJARFileAvailable;
void* mClosure;
};
NS_IMPL_THREADSAFE_ISUPPORTS1(nsJARDownloadObserver, nsIStreamObserver)
////////////////////////////////////////////////////////////////////////////////
nsJARChannel::nsJARChannel()
: mContentType(nsnull),
mContentLength(-1),
mLoadAttributes(LOAD_NORMAL),
mStartPosition(0),
mReadCount(-1),
mJAREntry(nsnull),
mMonitor(nsnull),
mStatus(NS_OK)
{
NS_INIT_REFCNT();
#if defined(PR_LOGGING)
//
// Initialize the global PRLogModule for socket transport logging
// if necessary...
//
if (nsnull == gJarProtocolLog) {
gJarProtocolLog = PR_NewLogModule("nsJarProtocol");
}
#endif /* PR_LOGGING */
}
nsJARChannel::~nsJARChannel()
{
if (mContentType)
nsCRT::free(mContentType);
if (mJAREntry)
nsCRT::free(mJAREntry);
if (mMonitor)
PR_DestroyMonitor(mMonitor);
}
NS_IMPL_ISUPPORTS6(nsJARChannel,
nsIJARChannel,
nsIChannel,
nsIRequest,
nsIStreamObserver,
nsIStreamListener,
nsIFileSystem)
NS_METHOD
nsJARChannel::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
nsresult rv;
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsJARChannel* jarChannel = new nsJARChannel();
if (jarChannel == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(jarChannel);
rv = jarChannel->QueryInterface(aIID, aResult);
NS_RELEASE(jarChannel);
return rv;
}
nsresult
nsJARChannel::Init(nsIJARProtocolHandler* aHandler, nsIURI* uri)
{
nsresult rv;
mURI = do_QueryInterface(uri, &rv);
if (NS_FAILED(rv)) return rv;
mMonitor = PR_NewMonitor();
if (mMonitor == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIRequest methods
NS_IMETHODIMP
nsJARChannel::IsPending(PRBool* result)
{
NS_NOTREACHED("nsJARChannel::IsPending");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsJARChannel::GetStatus(nsresult *status)
{
*status = mStatus;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::Cancel(nsresult status)
{
nsresult rv;
nsAutoMonitor monitor(mMonitor);
if (mJarCacheTransport) {
rv = mJarCacheTransport->Cancel(status);
if (NS_FAILED(rv)) return rv;
mJarCacheTransport = nsnull;
}
if (mJarExtractionTransport) {
rv = mJarExtractionTransport->Cancel(status);
if (NS_FAILED(rv)) return rv;
mJarExtractionTransport = nsnull;
}
mStatus = status;
return rv;
}
NS_IMETHODIMP
nsJARChannel::Suspend()
{
nsresult rv;
nsAutoMonitor monitor(mMonitor);
if (mJarCacheTransport) {
rv = mJarCacheTransport->Suspend();
if (NS_FAILED(rv)) return rv;
}
if (mJarExtractionTransport) {
rv = mJarExtractionTransport->Suspend();
if (NS_FAILED(rv)) return rv;
}
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::Resume()
{
nsresult rv;
nsAutoMonitor monitor(mMonitor);
if (mJarCacheTransport) {
rv = mJarCacheTransport->Resume();
if (NS_FAILED(rv)) return rv;
}
if (mJarExtractionTransport) {
rv = mJarExtractionTransport->Resume();
if (NS_FAILED(rv)) return rv;
}
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIChannel methods
NS_IMETHODIMP
nsJARChannel::GetOriginalURI(nsIURI* *aOriginalURI)
{
*aOriginalURI = mOriginalURI ? mOriginalURI : nsCOMPtr<nsIURI>(mURI);
NS_ADDREF(*aOriginalURI);
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetOriginalURI(nsIURI* aOriginalURI)
{
mOriginalURI = aOriginalURI;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetURI(nsIURI* *aURI)
{
*aURI = mURI;
NS_ADDREF(*aURI);
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetURI(nsIURI* aURI)
{
nsresult rv;
mURI = do_QueryInterface(aURI, &rv);
return rv;
}
static nsresult
OpenJARElement(nsJARChannel* channel, void* closure)
{
nsresult rv;
nsIInputStream* *result = (nsIInputStream**)closure;
nsAutoCMonitor mon(channel);
rv = channel->Open(nsnull, nsnull);
if (NS_FAILED(rv)) return rv;
rv = channel->GetInputStream(result);
mon.Notify(); // wake up OpenInputStream
return rv;
}
NS_IMETHODIMP
nsJARChannel::OpenInputStream(nsIInputStream* *result)
{
nsAutoCMonitor mon(this);
nsresult rv;
*result = nsnull;
rv = EnsureJARFileAvailable(OpenJARElement, result);
if (NS_FAILED(rv)) return rv;
if (*result == nsnull)
mon.Wait();
return rv;
}
NS_IMETHODIMP
nsJARChannel::OpenOutputStream(nsIOutputStream* *result)
{
NS_NOTREACHED("nsJARChannel::OpenOutputStream");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsJARChannel::AsyncOpen(nsIStreamObserver* observer, nsISupports* ctxt)
{
NS_NOTREACHED("nsJARChannel::AsyncOpen");
return NS_ERROR_NOT_IMPLEMENTED;
}
static nsresult
ReadJARElement(nsJARChannel* channel, void* closure)
{
nsresult rv;
rv = channel->AsyncReadJARElement();
return rv;
}
NS_IMETHODIMP
nsJARChannel::AsyncRead(nsIStreamListener* listener, nsISupports* ctxt)
{
mUserContext = ctxt;
mUserListener = listener;
return EnsureJARFileAvailable(ReadJARElement, nsnull);
}
nsresult
nsJARChannel::EnsureJARFileAvailable(OnJARFileAvailableFun onJARFileAvailable,
void* closure)
{
nsresult rv;
#ifdef PR_LOGGING
nsXPIDLCString jarURLStr;
mURI->GetSpec(getter_Copies(jarURLStr));
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: EnsureJARFileAvailable %s", (const char*)jarURLStr));
#endif
rv = mURI->GetJARFile(getter_AddRefs(mJARBaseURI));
if (NS_FAILED(rv)) return rv;
rv = mURI->GetJAREntry(&mJAREntry);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIChannel> jarBaseChannel;
rv = NS_OpenURI(getter_AddRefs(jarBaseChannel), mJARBaseURI, nsnull);
if (NS_FAILED(rv)) return rv;
rv = jarBaseChannel->SetLoadGroup(mLoadGroup);
if (NS_FAILED(rv)) return rv;
rv = jarBaseChannel->SetLoadAttributes(mLoadAttributes);
if (NS_FAILED(rv)) return rv;
rv = jarBaseChannel->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
if (mLoadGroup)
(void)mLoadGroup->AddChannel(this, nsnull);
// mJARBaseFile = do_QueryInterface(jarBaseChannel, &rv);
PRBool shouldCache;
rv = jarBaseChannel->GetShouldCache(&shouldCache);
if (NS_SUCCEEDED(rv) && !shouldCache) {
// then we've already got a local jar file -- no need to download it
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: extracting local jar file %s", (const char*)jarURLStr));
rv = onJARFileAvailable(this, closure);
}
else {
// otherwise, we need to download the jar file
nsCOMPtr<nsIFile> jarCacheFile;
rv = GetCacheFile(getter_AddRefs(jarCacheFile));
if (NS_FAILED(rv)) return rv;
PRBool filePresent;
rv = jarCacheFile->IsFile(&filePresent);
if (NS_SUCCEEDED(rv) && filePresent)
{
// then we've already got the file in the local cache -- no need to download it
rv = NS_NewLocalFileChannel(getter_AddRefs(mJARBaseFile),
jarCacheFile,
PR_RDONLY,
0);
if (NS_FAILED(rv)) return rv;
rv = mJARBaseFile->SetBufferSegmentSize(mBufferSegmentSize);
if (NS_FAILED(rv)) return rv;
rv = mJARBaseFile->SetBufferMaxSize(mBufferMaxSize);
if (NS_FAILED(rv)) return rv;
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: jar file already in cache %s", (const char*)jarURLStr));
rv = onJARFileAvailable(this, closure);
return rv;
}
NS_WITH_SERVICE(nsIFileTransportService, fts, kFileTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsAutoMonitor monitor(mMonitor);
// use a file transport to serve as a data pump for the download (done
// on some other thread)
nsCOMPtr<nsIChannel> jarCacheTransport;
rv = fts->CreateTransport(jarCacheFile, PR_RDONLY, 0,
getter_AddRefs(mJarCacheTransport));
if (NS_FAILED(rv)) return rv;
rv = mJarCacheTransport->SetBufferSegmentSize(mBufferSegmentSize);
if (NS_FAILED(rv)) return rv;
rv = mJarCacheTransport->SetBufferMaxSize(mBufferMaxSize);
if (NS_FAILED(rv)) return rv;
rv = mJarCacheTransport->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIStreamObserver> downloadObserver =
new nsJARDownloadObserver(jarCacheFile, this, onJARFileAvailable, closure);
if (downloadObserver == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: downloading jar file %s", (const char*)jarURLStr));
nsCOMPtr<nsIInputStream> jarBaseIn;
rv = jarBaseChannel->OpenInputStream(getter_AddRefs(jarBaseIn));
if (NS_FAILED(rv)) return rv;
rv = mJarCacheTransport->AsyncWrite(jarBaseIn, nsnull, downloadObserver);
}
return rv;
}
nsresult
nsJARChannel::GetCacheFile(nsIFile* *cacheFile)
{
// XXX change later to use the real network cache
nsresult rv;
nsCOMPtr<nsIFile> jarCacheFile;
rv = NS_GetSpecialDirectory("xpcom.currentProcess.componentDirectory",
getter_AddRefs(jarCacheFile));
if (NS_FAILED(rv)) return rv;
jarCacheFile->Append("jarCache");
PRBool exists;
rv = jarCacheFile->Exists(&exists);
if (NS_FAILED(rv)) return rv;
if (!exists) {
rv = jarCacheFile->Create(nsIFile::DIRECTORY_TYPE, 0664);
if (NS_FAILED(rv)) return rv;
}
nsCOMPtr<nsIURL> jarBaseURL = do_QueryInterface(mJARBaseURI, &rv);
if (NS_FAILED(rv)) return rv;
char* jarFileName;
rv = jarBaseURL->GetFileName(&jarFileName);
if (NS_FAILED(rv)) return rv;
rv = jarCacheFile->Append(jarFileName);
nsCRT::free(jarFileName);
if (NS_FAILED(rv)) return rv;
*cacheFile = jarCacheFile;
NS_ADDREF(*cacheFile);
return rv;
}
nsresult
nsJARChannel::AsyncReadJARElement()
{
nsresult rv;
nsAutoMonitor monitor(mMonitor);
NS_ASSERTION(mJARBaseFile, "mJARBaseFile is null");
if (mLoadGroup) {
nsCOMPtr<nsILoadGroupListenerFactory> factory;
//
// Create a load group "proxy" listener...
//
rv = mLoadGroup->GetGroupListenerFactory(getter_AddRefs(factory));
if (factory) {
nsIStreamListener *newListener;
rv = factory->CreateLoadGroupListener(mUserListener, &newListener);
if (NS_SUCCEEDED(rv)) {
mUserListener = newListener;
NS_RELEASE(newListener);
}
}
rv = mLoadGroup->AddChannel(this, nsnull);
if (NS_FAILED(rv)) return rv;
}
NS_WITH_SERVICE(nsIFileTransportService, fts, kFileTransportServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
rv = fts->CreateTransportFromFileSystem(this,
getter_AddRefs(mJarExtractionTransport));
if (NS_FAILED(rv)) return rv;
rv = mJarExtractionTransport->SetBufferSegmentSize(mBufferSegmentSize);
if (NS_FAILED(rv)) return rv;
rv = mJarExtractionTransport->SetBufferMaxSize(mBufferMaxSize);
if (NS_FAILED(rv)) return rv;
rv = mJarExtractionTransport->SetNotificationCallbacks(mCallbacks);
if (NS_FAILED(rv)) return rv;
#ifdef PR_LOGGING
nsXPIDLCString jarURLStr;
mURI->GetSpec(getter_Copies(jarURLStr));
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: AsyncRead jar entry %s", (const char*)jarURLStr));
#endif
rv = mJarExtractionTransport->SetTransferOffset(mStartPosition);
if (NS_FAILED(rv)) return rv;
rv = mJarExtractionTransport->SetTransferCount(mReadCount);
if (NS_FAILED(rv)) return rv;
rv = mJarExtractionTransport->AsyncRead(this, nsnull);
return rv;
}
NS_IMETHODIMP
nsJARChannel::AsyncWrite(nsIInputStream* fromStream,
nsIStreamObserver* observer,
nsISupports* ctxt)
{
NS_NOTREACHED("nsJARChannel::AsyncWrite");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsJARChannel::GetLoadAttributes(PRUint32* aLoadFlags)
{
*aLoadFlags = mLoadAttributes;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetLoadAttributes(PRUint32 aLoadFlags)
{
mLoadAttributes = aLoadFlags;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetContentType(char* *aContentType)
{
nsresult rv = NS_OK;
if (mContentType == nsnull) {
char* fileName = new char[PL_strlen(mJAREntry)+1];
PL_strcpy(fileName, mJAREntry);
if (fileName != nsnull) {
PRInt32 len = nsCRT::strlen(fileName);
const char* ext = nsnull;
for (PRInt32 i = len; i >= 0; i--) {
if (fileName[i] == '.') {
ext = &fileName[i + 1];
break;
}
}
if (ext) {
NS_WITH_SERVICE(nsIMIMEService, mimeServ, kMIMEServiceCID, &rv);
if (NS_SUCCEEDED(rv)) {
rv = mimeServ->GetTypeFromExtension(ext, &mContentType);
}
}
else
rv = NS_ERROR_FAILURE;
nsCRT::free(fileName);
}
else {
rv = NS_ERROR_FAILURE;
}
if (NS_FAILED(rv)) {
mContentType = nsCRT::strdup(UNKNOWN_CONTENT_TYPE);
if (mContentType == nsnull)
rv = NS_ERROR_OUT_OF_MEMORY;
else
rv = NS_OK;
}
}
if (NS_SUCCEEDED(rv)) {
*aContentType = nsCRT::strdup(mContentType);
if (*aContentType == nsnull)
rv = NS_ERROR_OUT_OF_MEMORY;
}
return rv;
}
NS_IMETHODIMP
nsJARChannel::SetContentType(const char *aContentType)
{
if (mContentType) {
nsCRT::free(mContentType);
}
mContentType = nsCRT::strdup(aContentType);
if (!mContentType) return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetContentLength(PRInt32* aContentLength)
{
if (mContentLength == -1)
return NS_ERROR_FAILURE;
*aContentLength = mContentLength;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetContentLength(PRInt32 aContentLength)
{
NS_NOTREACHED("nsJARChannel::SetContentLength");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsJARChannel::GetTransferOffset(PRUint32 *aTransferOffset)
{
*aTransferOffset = mStartPosition;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetTransferOffset(PRUint32 aTransferOffset)
{
mStartPosition = aTransferOffset;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetTransferCount(PRInt32 *aTransferCount)
{
*aTransferCount = mReadCount;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetTransferCount(PRInt32 aTransferCount)
{
mReadCount = aTransferCount;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetBufferSegmentSize(PRUint32 *aBufferSegmentSize)
{
*aBufferSegmentSize = mBufferSegmentSize;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetBufferSegmentSize(PRUint32 aBufferSegmentSize)
{
mBufferSegmentSize = aBufferSegmentSize;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetBufferMaxSize(PRUint32 *aBufferMaxSize)
{
*aBufferMaxSize = mBufferMaxSize;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetBufferMaxSize(PRUint32 aBufferMaxSize)
{
mBufferMaxSize = aBufferMaxSize;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetShouldCache(PRBool *aShouldCache)
{
// Jar files report that you shouldn't cache them because this is really
// a question about the jar entry, and the jar entry is always in a jar
// file on disk.
*aShouldCache = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetPipeliningAllowed(PRBool *aPipeliningAllowed)
{
*aPipeliningAllowed = PR_FALSE;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetPipeliningAllowed(PRBool aPipeliningAllowed)
{
NS_NOTREACHED("SetPipeliningAllowed");
return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP
nsJARChannel::GetLoadGroup(nsILoadGroup* *aLoadGroup)
{
*aLoadGroup = mLoadGroup;
NS_IF_ADDREF(*aLoadGroup);
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetLoadGroup(nsILoadGroup* aLoadGroup)
{
mLoadGroup = aLoadGroup;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetOwner(nsISupports* *aOwner)
{
if (!mOwner)
{
nsCOMPtr<nsIPrincipal> certificate;
PRInt16 result;
nsresult rv = mJAR->GetCertificatePrincipal(mJAREntry,
getter_AddRefs(certificate),
&result);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
if (certificate)
{ // Get the codebase principal
NS_WITH_SERVICE(nsIScriptSecurityManager, secMan,
kScriptSecurityManagerCID, &rv);
if (NS_FAILED(rv)) return NS_ERROR_FAILURE;
nsCOMPtr<nsIPrincipal> codebase;
rv = secMan->GetCodebasePrincipal(mJARBaseURI,
getter_AddRefs(codebase));
if (NS_FAILED(rv)) return rv;
// Join the certificate and the codebase
nsCOMPtr<nsIAggregatePrincipal> agg;
agg = do_QueryInterface(certificate, &rv);
NS_ASSERTION(NS_SUCCEEDED(rv),
"Certificate principal is not an aggregate");
rv = agg->SetCodebase(codebase);
if (NS_FAILED(rv)) return rv;
mOwner = do_QueryInterface(agg, &rv);
if (NS_FAILED(rv)) return rv;
}
}
*aOwner = mOwner;
NS_IF_ADDREF(*aOwner);
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetOwner(nsISupports* aOwner)
{
mOwner = aOwner;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetNotificationCallbacks(nsIInterfaceRequestor* *aNotificationCallbacks)
{
*aNotificationCallbacks = mCallbacks.get();
NS_IF_ADDREF(*aNotificationCallbacks);
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::SetNotificationCallbacks(nsIInterfaceRequestor* aNotificationCallbacks)
{
mCallbacks = aNotificationCallbacks;
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)
{
*aSecurityInfo = nsnull;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
// nsIStreamObserver methods:
NS_IMETHODIMP
nsJARChannel::OnStartRequest(nsIChannel* jarExtractionTransport,
nsISupports* context)
{
return mUserListener->OnStartRequest(this, mUserContext);
}
NS_IMETHODIMP
nsJARChannel::OnStopRequest(nsIChannel* jarExtractionTransport,
nsISupports* context,
nsresult status,
const PRUnichar* aMsg)
{
nsresult rv;
#ifdef PR_LOGGING
nsCOMPtr<nsIURI> jarURI;
nsXPIDLCString jarURLStr;
rv = mURI->GetSpec(getter_Copies(jarURLStr));
if (NS_SUCCEEDED(rv)) {
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: jar extraction complete %s status=%x",
(const char*)jarURLStr, status));
}
#endif
rv = mUserListener->OnStopRequest(this, mUserContext, status, aMsg);
if (mLoadGroup) {
if (NS_SUCCEEDED(rv)) {
mLoadGroup->RemoveChannel(this, context, status, aMsg);
}
}
mUserListener = nsnull;
mUserContext = nsnull;
mJarExtractionTransport = nsnull;
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIStreamListener methods:
NS_IMETHODIMP
nsJARChannel::OnDataAvailable(nsIChannel* jarCacheTransport,
nsISupports* context,
nsIInputStream *inStr,
PRUint32 sourceOffset,
PRUint32 count)
{
return mUserListener->OnDataAvailable(this, mUserContext,
inStr, sourceOffset, count);
}
////////////////////////////////////////////////////////////////////////////////
// nsIFileSystem methods:
NS_IMETHODIMP
nsJARChannel::Open(char* *contentType, PRInt32 *contentLength)
{
nsresult rv;
NS_ASSERTION(mJARBaseFile, "mJARBaseFile is null");
rv = nsComponentManager::CreateInstance(kZipReaderCID,
nsnull,
NS_GET_IID(nsIZipReader),
getter_AddRefs(mJAR));
if (NS_FAILED(rv)) return rv;
nsCOMPtr<nsIFile> fs;
rv = mJARBaseFile->GetFile(getter_AddRefs(fs));
if (NS_FAILED(rv)) return rv;
rv = mJAR->Init(fs);
if (NS_FAILED(rv)) return rv;
rv = mJAR->Open();
if (NS_FAILED(rv)) return rv;
// If this fails, GetOwner will fail, but otherwise we can continue.
mJAR->ParseManifest();
nsCOMPtr<nsIZipEntry> entry;
rv = mJAR->GetEntry(mJAREntry, getter_AddRefs(entry));
if (NS_FAILED(rv)) return rv;
if (contentLength) {
rv = entry->GetRealSize((PRUint32*)contentLength);
if (NS_FAILED(rv)) return rv;
}
if (contentType) {
rv = GetContentType(contentType);
if (NS_FAILED(rv)) return rv;
}
return rv;
}
NS_IMETHODIMP
nsJARChannel::Close(nsresult status)
{
mJAR = null_nsCOMPtr();
return NS_OK;
}
NS_IMETHODIMP
nsJARChannel::GetInputStream(nsIInputStream* *aInputStream)
{
#ifdef PR_LOGGING
nsXPIDLCString jarURLStr;
mURI->GetSpec(getter_Copies(jarURLStr));
PR_LOG(gJarProtocolLog, PR_LOG_DEBUG,
("nsJarProtocol: GetInputStream jar entry %s", (const char*)jarURLStr));
#endif
return mJAR->GetInputStream(mJAREntry, aInputStream);
}
NS_IMETHODIMP
nsJARChannel::GetOutputStream(nsIOutputStream* *aOutputStream)
{
NS_NOTREACHED("nsJARChannel::GetOutputStream");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////
// nsIJARChannel methods:
NS_IMETHODIMP
nsJARChannel::EnumerateEntries(const char *aRoot, nsISimpleEnumerator **_retval)
{
NS_NOTREACHED("nsJARChannel::EnumerateEntries");
return NS_ERROR_NOT_IMPLEMENTED;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,115 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsJARChannel_h__
#define nsJARChannel_h__
#include "nsIJARChannel.h"
#include "nsIStreamListener.h"
#include "nsIJARProtocolHandler.h"
#include "nsIJARURI.h"
#include "nsIFileSystem.h"
#include "nsIChannel.h"
#include "nsIZipReader.h"
#include "nsIChannel.h"
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsCOMPtr.h"
#include "nsIFile.h"
#include "prmon.h"
class nsIFileChannel;
class nsJARChannel;
#define NS_JARCHANNEL_CID \
{ /* 0xc7e410d5-0x85f2-11d3-9f63-006008a6efe9 */ \
0xc7e410d5, \
0x85f2, \
0x11d3, \
{0x9f, 0x63, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9} \
}
#define JAR_DIRECTORY "jarCache"
typedef nsresult
(*OnJARFileAvailableFun)(nsJARChannel* channel, void* closure);
class nsJARChannel : public nsIJARChannel,
public nsIStreamListener,
public nsIFileSystem
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIREQUEST
NS_DECL_NSICHANNEL
NS_DECL_NSIJARCHANNEL
NS_DECL_NSISTREAMOBSERVER
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSIFILESYSTEM
nsJARChannel();
virtual ~nsJARChannel();
// Define a Create method to be used with a factory:
static NS_METHOD
Create(nsISupports* aOuter, REFNSIID aIID, void **aResult);
nsresult Init(nsIJARProtocolHandler* aHandler, nsIURI* uri);
nsresult EnsureJARFileAvailable(OnJARFileAvailableFun fun,
void* closure);
nsresult AsyncReadJARElement();
nsresult GetCacheFile(nsIFile* *cacheFile);
void SetJARBaseFile(nsIFileChannel* channel) { mJARBaseFile = channel; }
friend class nsJARDownloadObserver;
protected:
nsCOMPtr<nsIJARURI> mURI;
nsCOMPtr<nsILoadGroup> mLoadGroup;
nsCOMPtr<nsIInterfaceRequestor> mCallbacks;
nsCOMPtr<nsIURI> mOriginalURI;
nsLoadFlags mLoadAttributes;
nsCOMPtr<nsISupports> mOwner;
PRUint32 mStartPosition;
PRInt32 mReadCount;
nsCOMPtr<nsISupports> mUserContext;
nsCOMPtr<nsIStreamListener> mUserListener;
char* mContentType;
PRInt32 mContentLength;
nsCOMPtr<nsIURI> mJARBaseURI;
nsCOMPtr<nsIFileChannel> mJARBaseFile;
char* mJAREntry;
nsCOMPtr<nsIZipReader> mJAR;
PRUint32 mBufferSegmentSize;
PRUint32 mBufferMaxSize;
nsresult mStatus;
PRMonitor* mMonitor;
nsCOMPtr<nsIChannel> mJarCacheTransport;
nsCOMPtr<nsIChannel> mJarExtractionTransport;
};
#endif // nsJARChannel_h__

View File

@@ -1,138 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsJARProtocolHandler.h"
#include "nsIIOService.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsJARURI.h"
#include "nsIURL.h"
#include "nsJARChannel.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
static NS_DEFINE_CID(kJARUriCID, NS_JARURI_CID);
////////////////////////////////////////////////////////////////////////////////
nsJARProtocolHandler::nsJARProtocolHandler()
{
NS_INIT_REFCNT();
}
nsresult
nsJARProtocolHandler::Init()
{
return NS_OK;
}
nsJARProtocolHandler::~nsJARProtocolHandler()
{
}
NS_IMPL_ISUPPORTS2(nsJARProtocolHandler,
nsIJARProtocolHandler,
nsIProtocolHandler)
NS_METHOD
nsJARProtocolHandler::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsJARProtocolHandler* ph = new nsJARProtocolHandler();
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
nsJARProtocolHandler::GetScheme(char* *result)
{
*result = nsCRT::strdup("jar");
if (*result == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
return NS_OK;
}
NS_IMETHODIMP
nsJARProtocolHandler::GetDefaultPort(PRInt32 *result)
{
*result = -1; // no port for JAR: URLs
return NS_OK;
}
NS_IMETHODIMP
nsJARProtocolHandler::NewURI(const char *aSpec, nsIURI *aBaseURI,
nsIURI **result)
{
nsresult rv;
nsIURI* url;
if (aBaseURI) {
rv = aBaseURI->Clone(&url);
if (NS_FAILED(rv)) return rv;
rv = url->SetRelativePath(aSpec);
}
else {
rv = nsJARURI::Create(nsnull, NS_GET_IID(nsIJARURI), (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
nsJARProtocolHandler::NewChannel(nsIURI* uri, nsIChannel* *result)
{
nsresult rv;
nsJARChannel* channel;
rv = nsJARChannel::Create(nsnull, NS_GET_IID(nsIJARChannel), (void**)&channel);
if (NS_FAILED(rv)) return rv;
rv = channel->Init(this, uri);
if (NS_FAILED(rv)) {
NS_RELEASE(channel);
return rv;
}
*result = channel;
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,57 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef nsJARProtocolHandler_h___
#define nsJARProtocolHandler_h___
#include "nsIJARProtocolHandler.h"
#include "nsIProtocolHandler.h"
#include "nsIJARURI.h"
#define NS_JARPROTOCOLHANDLER_CID \
{ /* 0xc7e410d4-0x85f2-11d3-9f63-006008a6efe9 */ \
0xc7e410d4, \
0x85f2, \
0x11d3, \
{0x9f, 0x63, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9} \
}
class nsJARProtocolHandler : public nsIJARProtocolHandler
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIPROTOCOLHANDLER
// nsJARProtocolHandler methods:
nsJARProtocolHandler();
virtual ~nsJARProtocolHandler();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
protected:
};
#endif /* nsJARProtocolHandler_h___ */

View File

@@ -1,38 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIModule.h"
#include "nsIGenericFactory.h"
#include "nsJARProtocolHandler.h"
static nsModuleComponentInfo components[] =
{
{ "JAR Protocol Handler",
NS_JARPROTOCOLHANDLER_CID,
NS_NETWORK_PROTOCOL_PROGID_PREFIX "jar",
nsJARProtocolHandler::Create
},
};
NS_IMPL_NSGETMODULE("nsJarProtocolModule", components);

View File

@@ -1,384 +0,0 @@
/* -*- 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 "nsJARURI.h"
#include "nsNetUtil.h"
#include "nsIIOService.h"
#include "nsFileSpec.h"
#include "nsCRT.h"
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsIZipReader.h"
static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
////////////////////////////////////////////////////////////////////////////////
nsJARURI::nsJARURI()
: mJAREntry(nsnull)
{
NS_INIT_REFCNT();
}
nsJARURI::~nsJARURI()
{
}
NS_IMPL_ISUPPORTS2(nsJARURI, nsIJARURI, nsIURI)
NS_METHOD
nsJARURI::Create(nsISupports *aOuter, REFNSIID aIID, void **aResult)
{
if (aOuter)
return NS_ERROR_NO_AGGREGATION;
nsJARURI* uri = new nsJARURI();
if (uri == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(uri);
nsresult rv = uri->Init();
if (NS_SUCCEEDED(rv)) {
rv = uri->QueryInterface(aIID, aResult);
}
NS_RELEASE(uri);
return rv;
}
nsresult
nsJARURI::Init()
{
return NS_OK;
}
#define NS_JAR_SCHEME "jar:"
#define NS_JAR_DELIMITER "!/"
nsresult
nsJARURI::FormatSpec(const char* entryPath, char* *result)
{
nsresult rv;
char* jarFileSpec;
rv = mJARFile->GetSpec(&jarFileSpec);
if (NS_FAILED(rv)) return rv;
nsCString spec(NS_JAR_SCHEME);
spec += jarFileSpec;
nsCRT::free(jarFileSpec);
spec += NS_JAR_DELIMITER;
spec += entryPath;
*result = nsCRT::strdup(spec);
return *result ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
////////////////////////////////////////////////////////////////////////////////
// nsURI methods:
NS_IMETHODIMP
nsJARURI::GetSpec(char* *aSpec)
{
return FormatSpec(mJAREntry, aSpec);
}
NS_IMETHODIMP
nsJARURI::SetSpec(const char * aSpec)
{
nsresult rv;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
PRUint32 startPos, endPos;
rv = serv->ExtractScheme(aSpec, &startPos, &endPos, nsnull);
if (NS_FAILED(rv)) return rv;
if (nsCRT::strncmp("jar", &aSpec[startPos], endPos - startPos - 1) != 0)
return NS_ERROR_MALFORMED_URI;
// Search backward from the end for the "!/" delimiter. Remember, jar URLs
// can nest, e.g.:
// jar:jar:http://www.foo.com/bar.jar!/a.jar!/b.html
// This gets the b.html document from out of the a.jar file, that's
// contained within the bar.jar file.
nsCAutoString jarPath(aSpec);
PRInt32 pos = jarPath.RFind(NS_JAR_DELIMITER);
if (pos == -1 || endPos + 1 > (PRUint32)pos)
return NS_ERROR_MALFORMED_URI;
jarPath.Cut(pos, jarPath.Length());
jarPath.Cut(0, endPos);
rv = serv->NewURI(jarPath, nsnull, getter_AddRefs(mJARFile));
if (NS_FAILED(rv)) return rv;
nsCAutoString entry(aSpec);
entry.Cut(0, pos + 2); // 2 == strlen(NS_JAR_DELIMITER)
rv = serv->ResolveRelativePath(entry, nsnull, &mJAREntry);
return rv;
}
NS_IMETHODIMP
nsJARURI::GetScheme(char * *aScheme)
{
*aScheme = nsCRT::strdup("jar");
return *aScheme ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsJARURI::SetScheme(const char * aScheme)
{
// doesn't make sense to set the scheme of a jar: URL
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetUsername(char * *aUsername)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetUsername(const char * aUsername)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetPassword(char * *aPassword)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetPassword(const char * aPassword)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetPreHost(char * *aPreHost)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetPreHost(const char * aPreHost)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetHost(char * *aHost)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetHost(const char * aHost)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetPort(PRInt32 *aPort)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetPort(PRInt32 aPort)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetPath(char * *aPath)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetPath(const char * aPath)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::GetURLParser(nsIURLParser * *aURLParser)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::SetURLParser(nsIURLParser * aURLParser)
{
return NS_ERROR_FAILURE;
}
NS_IMETHODIMP
nsJARURI::Equals(nsIURI *other, PRBool *result)
{
nsresult rv;
*result = PR_FALSE;
nsJARURI* otherJAR;
rv = other->QueryInterface(NS_GET_IID(nsIJARURI), (void**)&otherJAR);
if (NS_FAILED(rv))
return NS_OK; // not equal
nsCOMPtr<nsIURI> otherJARFile;
rv = otherJAR->GetJARFile(getter_AddRefs(otherJARFile));
if (NS_FAILED(rv)) return rv;
PRBool equal;
rv = mJARFile->Equals(otherJARFile, &equal);
if (NS_FAILED(rv)) return rv;
if (!equal)
return NS_OK; // not equal
char* otherJAREntry;
rv = otherJAR->GetJAREntry(&otherJAREntry);
if (NS_FAILED(rv)) return rv;
*result = nsCRT::strcmp(mJAREntry, otherJAREntry) == 0;
nsCRT::free(otherJAREntry);
return NS_OK;
}
NS_IMETHODIMP
nsJARURI::Clone(nsIURI **result)
{
nsresult rv;
nsCOMPtr<nsIURI> newJARFile;
rv = mJARFile->Clone(getter_AddRefs(newJARFile));
if (NS_FAILED(rv)) return rv;
char* newJAREntry = nsCRT::strdup(mJAREntry);
if (newJAREntry == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
nsJARURI* uri = new nsJARURI();
if (uri == nsnull)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(uri);
uri->mJARFile = newJARFile;
uri->mJAREntry = newJAREntry;
*result = uri;
return NS_OK;
}
NS_IMETHODIMP
nsJARURI::SetRelativePath(const char *relativePath)
{
nsresult rv;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCAutoString path(mJAREntry);
PRInt32 pos = path.RFind("/");
if (pos >= 0)
path.Truncate(pos + 1);
else
path = "";
char* resolvedEntry;
rv = serv->ResolveRelativePath(relativePath, path.GetBuffer(),
&resolvedEntry);
if (NS_FAILED(rv)) return rv;
nsCRT::free(mJAREntry);
mJAREntry = resolvedEntry;
return NS_OK;
}
NS_IMETHODIMP
nsJARURI::Resolve(const char *relativePath, char **result)
{
nsresult rv;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
nsCAutoString path(mJAREntry);
PRInt32 pos = path.RFind("/");
if (pos >= 0)
path.Truncate(pos + 1);
else
path = "";
char* resolvedEntry;
rv = serv->ResolveRelativePath(relativePath, path.GetBuffer(),
&resolvedEntry);
if (NS_FAILED(rv)) return rv;
rv = FormatSpec(resolvedEntry, result);
nsCRT::free(resolvedEntry);
return rv;
}
////////////////////////////////////////////////////////////////////////////////
// nsIJARUri methods:
NS_IMETHODIMP
nsJARURI::GetJARFile(nsIURI* *jarFile)
{
*jarFile = mJARFile;
NS_ADDREF(*jarFile);
return NS_OK;
}
NS_IMETHODIMP
nsJARURI::SetJARFile(nsIURI* jarFile)
{
mJARFile = jarFile;
return NS_OK;
}
NS_IMETHODIMP
nsJARURI::GetJAREntry(char* *entryPath)
{
nsCAutoString entry(mJAREntry);
PRInt32 pos = entry.RFindCharInSet("#?;");
if (pos >= 0)
entry.Truncate(pos);
*entryPath = entry.ToNewCString();
return *entryPath ? NS_OK : NS_ERROR_OUT_OF_MEMORY;
}
NS_IMETHODIMP
nsJARURI::SetJAREntry(const char* entryPath)
{
nsresult rv;
NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv);
if (NS_FAILED(rv)) return rv;
if (mJAREntry)
nsCRT::free(mJAREntry);
rv = serv->ResolveRelativePath(entryPath, nsnull, &mJAREntry);
return rv;
}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,55 +0,0 @@
/* -*- 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.
*/
#ifndef nsJARURI_h__
#define nsJARURI_h__
#include "nsIJARURI.h"
#include "nsCOMPtr.h"
#define NS_JARURI_CID \
{ /* 0xc7e410d7-0x85f2-11d3-9f63-006008a6efe9 */ \
0xc7e410d7, \
0x85f2, \
0x11d3, \
{0x9f, 0x63, 0x00, 0x60, 0x08, 0xa6, 0xef, 0xe9} \
}
class nsJARURI : public nsIJARURI
{
public:
NS_DECL_ISUPPORTS
NS_DECL_NSIURI
NS_DECL_NSIJARURI
// nsJARURI
nsJARURI();
virtual ~nsJARURI();
static NS_METHOD
Create(nsISupports *aOuter, REFNSIID aIID, void **aResult);
nsresult Init();
nsresult FormatSpec(const char* entryPath, char* *result);
protected:
nsCOMPtr<nsIURI> mJARFile;
char *mJAREntry;
};
#endif // nsJARURI_h__

View File

@@ -1,45 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = \
cache \
base \
dns \
socket \
build \
protocol \
mime \
streamconv \
$(NULL)
ifdef ENABLE_TESTS
DIRS += test
endif
include $(topsrcdir)/config/rules.mk

View File

@@ -1,32 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
DIRS = public src
include $(topsrcdir)/config/rules.mk

View File

@@ -1,7 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
netCore.h
nsNetUtil.h
nsUnixColorPrintf.h

View File

@@ -1,17 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
nsIStreamListener.idl
nsIStreamObserver.idl
nsIURI.idl
nsIURL.idl
nsIChannel.idl
nsIRequest.idl
nsISocketTransportService.idl
nsIFileTransportService.idl
nsIFileSystem.idl
nsIPrompt.idl
nsIStreamLoader.idl
nsIURLParser.idl
nsIProtocolProxyService.idl

View File

@@ -1,67 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = necko
XPIDL_MODULE = necko_base
XPIDLSRCS = \
nsIFileStreams.idl \
nsIRequest.idl \
nsIChannel.idl \
nsIURI.idl \
nsIURL.idl \
nsIStreamObserver.idl \
nsIStreamListener.idl \
nsIIOService.idl \
nsIPrompt.idl \
nsIProtocolHandler.idl \
nsIProgressEventSink.idl \
nsINetModRegEntry.idl \
nsINetModuleMgr.idl \
nsINetNotify.idl \
nsILoadGroup.idl \
nsIFileTransportService.idl \
nsISocketTransportService.idl \
nsIStatusCodeEventSink.idl \
nsIFileSystem.idl \
nsIStreamLoader.idl \
nsINetPrompt.idl \
nsISocketTransport.idl \
nsIURLParser.idl \
nsIProxy.idl \
nsIProtocolProxyService.idl \
$(NULL)
EXPORTS = \
netCore.h \
nsNetUtil.h \
nsUnixColorPrintf.h \
$(NULL)
include $(topsrcdir)/config/rules.mk

View File

@@ -1,66 +0,0 @@
#!gmake
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
MODULE = necko
DEPTH = ..\..\..
include <$(DEPTH)/config/config.mak>
EXPORTS = \
netCore.h \
nsNetUtil.h \
nsUnixColorPrintf.h \
$(NULL)
XPIDLSRCS = \
.\nsIFileStreams.idl \
.\nsIRequest.idl \
.\nsIChannel.idl \
.\nsIURI.idl \
.\nsIURL.idl \
.\nsIStreamObserver.idl \
.\nsIStreamListener.idl \
.\nsIIOService.idl \
.\nsIPrompt.idl \
.\nsIProtocolHandler.idl \
.\nsIProgressEventSink.idl \
.\nsINetModRegEntry.idl \
.\nsINetModuleMgr.idl \
.\nsINetNotify.idl \
.\nsILoadGroup.idl \
.\nsISocketTransportService.idl \
.\nsIFileTransportService.idl \
.\nsIStatusCodeEventSink.idl \
.\nsIFileSystem.idl \
.\nsIStreamLoader.idl \
.\nsINetPrompt.idl \
.\nsISocketTransport.idl \
.\nsIURLParser.idl \
.\nsIProxy.idl \
.\nsIProtocolProxyService.idl \
$(NULL)
include <$(DEPTH)/config/rules.mak>
$(DEPTH)\netwerk\dist\include:
-mkdir $(DEPTH)\netwerk\dist
-mkdir $(DEPTH)\netwerk\dist\include

View File

@@ -1,64 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef __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, 11)
#define NS_ERROR_NOT_CONNECTED \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 12)
/* NS_ERROR_CONNECTION_REFUSED and NS_ERROR_NET_TIMEOUT moved to nsISocketTransportService.idl */
#define NS_ERROR_IN_PROGRESS \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 15)
#define NS_ERROR_OFFLINE \
NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 16)
#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

@@ -1,403 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIRequest.idl"
interface nsIURI;
interface nsIInputStream;
interface nsIOutputStream;
interface nsIStreamObserver;
interface nsIStreamListener;
interface nsILoadGroup;
interface nsIInterfaceRequestor;
interface nsIFile;
typedef unsigned long nsLoadFlags;
/**
* The nsIChannel interface allows the user to construct I/O requests for
* specific protocols, and manage them in a uniform way. Once a channel
* is created (via nsIIOService::NewChannel), parameters for that request
* may be set by using the channel attributes, or by QueryInterfacing to a
* subclass of nsIChannel for protocol-specific parameters. Then the actual
* request can be issued in one of several ways:
*
* - AsyncRead and AsyncWrite allow for asynchronous requests, calling
* back the user's stream listener or observer,
* - OpenInputStream and OpenOutputStream allow for synchronous reads
* and writes on the underlying channel.
*
* After a request has been completed, the channel is still valid for
* accessing protocol-specific results. For example, QueryInterfacing to
* nsIHTTPChannel allows response headers to be retrieved that result from
* http transactions.
*
* Note that a channel is really only valid for one request. Reusing a channel
* after a request has completed for a subsequent request may have undefined
* results, depending on the channel implementation.
*
* Also of note are a special kind of channel called "transports." Transports
* also implement the nsIChannel interface, but operate at a lower level from
* protocol channels. The socket and file transports are notable implementations
* of transports and allow higher level channels to be implemented. The cache
* may also behave as a transport, and possibly things like sound playing services
* etc. Transports usually operate in a separate thread and often multiplex
* multiple requests for the same kind of service or resources.
*/
[scriptable, uuid(1788e79e-f947-11d3-8cda-0060b0fc14a3)]
interface nsIChannel : nsIRequest
{
////////////////////////////////////////////////////////////////////////////
// nsIChannel accessors
////////////////////////////////////////////////////////////////////////////
/**
* Returns the original URL used to construct the channel.
* This is used in the case of a redirect or URI "resolution" (e.g.
* resolving a resource: URI to a file: URI) so that the original
* pre-redirect URI can still be obtained.
*
* Note that this is distinctly different from the http referrer
* (referring URI) which is typically the page that contained the
* original URI (accessible from nsIHTTPChannel).
*/
attribute nsIURI originalURI;
/**
* Returns the URL to which the channel currently refers. If a redirect
* or URI resolution occurs, this accessor returns the current location
* to which the channel is referring.
*/
attribute nsIURI URI;
/**
* Accesses the start offset from the beginning of the data from/to which
* reads/writes will occur. Users may set the transferOffset before making
* any of the following requests: asyncOpen, asyncRead, asyncWrite,
* openInputStream, openOutputstream.
*/
attribute unsigned long transferOffset;
/**
* Accesses the count of bytes to be transfered. For openInputStream and
* asyncRead, this specifies the amount to read, for asyncWrite, this
* specifies the amount to write (note that for openOutputStream, the
* end of the data can be signified simply by closing the stream).
* If the transferCount is set after reading has been initiated, the
* amount specified will become the current remaining amount to read
* before the channel is closed (this can be useful if the content
* length is encoded at the start of the stream).
*
* A transferCount value of -1 means the amount is unspecified, i.e.
* read or write all the data that is available.
*/
attribute long transferCount;
/**
* Accesses the load attributes for the channel. E.g. setting the load
* attributes with the LOAD_QUIET bit set causes the loading process to
* not deliver status notifications to the program performing the load,
* and to not contribute to keeping any nsILoadGroup it may be contained
* in from firing its OnLoadComplete notification.
*/
attribute nsLoadFlags loadAttributes;
/**
* Returns the content MIME type of the channel if available. Note that the
* content type can often be wrongly specified (wrong file extension, wrong
* MIME type, wrong document type stored on a server, etc.) and the caller
* most likely wants to verify with the actual data.
*/
attribute string contentType;
/**
* Returns the length of the data associated with the channel if available.
* If the length is unknown then -1 is returned.
*/
attribute long contentLength;
/**
* Accesses the owner corresponding to the entity that is
* responsible for this channel. Used by security code to grant
* or deny privileges to mobile code loaded from this channel.
*
* Note: This is a strong reference to the owner, so if the owner is also
* holding a pointer to the channel, care must be taken to explicitly drop
* its reference to the channel -- otherwise a leak will result.
*/
attribute nsISupports owner;
/**
* Accesses the load group in which the channel is a currently a member.
*/
attribute nsILoadGroup loadGroup;
/**
* Accesses the capabilities callbacks of the channel. This is set by clients
* who wish to provide a means to receive progress, status and protocol-specific
* notifications.
*/
attribute nsIInterfaceRequestor notificationCallbacks;
/**
* Any security information about this channel. This can be null.
*/
readonly attribute nsISupports securityInfo;
/**
* Accesses the buffer segment size. The buffer segment size is used as
* the initial size for any transfer buffers, and the increment size for
* whenever the buffer space needs to be grown.
* (Note this parameter is passed along to any underlying nsIPipe objects.)
* If unspecified, the channel implementation picks a default.
*/
attribute unsigned long bufferSegmentSize;
/**
* Accesses the buffer maximum size. The buffer maximum size is the limit
* size that buffer will be grown to before suspending the channel.
* (Note this parameter is passed along to any underlying nsIPipe objects.)
* If unspecified, the channel implementation picks a default.
*/
attribute unsigned long bufferMaxSize;
/**
* Returns true if the data from this channel should be cached. Local files
* report false because they exist on the local disk and need not be cached.
* Input stream channels, data protocol, datetime protocol and finger
* protocol channels also should not be cached. Http and ftp on the other
* hand should. Note that the value of this attribute doesn't reflect any
* http headers that may specify that this channel should not be cached.
*/
readonly attribute boolean shouldCache;
/**
* Setting pipeliningAllowed causes the load of a URL (issued via asyncOpen,
* asyncRead or asyncWrite) to be deferred in order to allow the request to
* be pipelined for greater throughput efficiency. Pipelined requests will
* be forced to load when the first non-pipelined request is issued.
*/
attribute boolean pipeliningAllowed;
////////////////////////////////////////////////////////////////////////////
// Load attribute flags. These may be or'd together.
////////////////////////////////////////////////////////////////////////////
/**
* Note that more will follow for each protocol's implementation of a channel,
* although channel writers have to be careful to not let the flag bits
* overlap. Otherwise, users won't be able to create a single flag word
* of load attributes that applies to a number of different channel types.
*/
/**
* No special load attributes -- use defaults:
*/
const unsigned long LOAD_NORMAL = 0;
/**
* Don't deliver status notifications to the nsIProgressEventSink, or keep
* this load from completing the nsILoadGroup it may belong to:
*/
const unsigned long LOAD_BACKGROUND = 1 << 0;
const unsigned long LOAD_DOCUMENT_URI = 1 << 1;
/**
* If the end consumer for this load has been retargeted after discovering
* it's content, this flag will be set:
*/
const unsigned long LOAD_RETARGETED_DOCUMENT_URI = 1 << 2;
////////////////////////////////////////////////////////////////////////////
/**
* The following flags control caching behavior. Not all protocols pay
* attention to all these flags, but they are applicable to more than one
* protocol, so they are defined here.
*/
/**
* Don't store data in the disk cache. This can be used to preserve
* privacy, e.g. so that no https transactions are recorded, or to avoid
* caching a stream to disk that is already stored in a local file,
* e.g. the mailbox: protocol.
*/
const unsigned long INHIBIT_PERSISTENT_CACHING = 1 << 8;
/**
* Force an end-to-end download of content data from the origin server (and
* any intervening proxies that sit between it and the client), e.g. this
* flag is used for a shift-reload.
*/
const unsigned long FORCE_RELOAD = 1 << 9;
/**
* Force revalidation with server (or proxy) to verify that cached content
* is up-to-date, e.g. by comparing last-modified date on server with that
* of the cached version. For example, this flag is used when the reload
* button is pressed.
*/
const unsigned long FORCE_VALIDATION = 1 << 10;
/**
* If the CACHE_AS_FILE flag is set, any stream content is stored in the
* cache as a single disk file. Content will not be cached in the memory
* cache nor will it be stored in any other type of cache, e.g. a flat-file
* cache database. This is used to implement the jar protocol handler and
* to provide the stream-as-file semantics required by the classic browser
* plugin API.
*/
const unsigned long CACHE_AS_FILE = 1 << 11;
/**
* When cache data is potentially out of date, it can be revalidated with
* the origin server to see if the content needs to be reloaded. The
* following four flags control how often this validation occurs.
* These flags are commonly used for "normal" loading. Note that
* the VALIDATE_HEURISTICALLY and VALIDATE_ONCE_PER_SESSION flags can be
* combined to validate heuristically but no more than once per session.
*/
const unsigned long VALIDATE_NEVER = 1 << 12;
const unsigned long VALIDATE_ALWAYS = 1 << 13;
const unsigned long VALIDATE_ONCE_PER_SESSION = 1 << 14;
const unsigned long VALIDATE_HEURISTICALLY = 1 << 15;
////////////////////////////////////////////////////////////////////////////
// nsIChannel operations
////////////////////////////////////////////////////////////////////////////
/**
* 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();
/**
* 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();
/**
* Opens the channel asynchronously. The nsIStreamObserver's OnStartRequest
* method is called back when the channel actually becomes open, providing
* the content type. Its OnStopRequest method is called when the channel
* becomes closed.
*/
void asyncOpen(in nsIStreamObserver observer,
in nsISupports ctxt);
/**
* 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 nsIStreamListener listener,
in nsISupports ctxt);
/**
* 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 nsIStreamObserver observer,
in nsISupports ctxt);
};
////////////////////////////////////////////////////////////////////////////////
/**
* nsIInputStreamChannel is an interface that allows for the initialization
* of a simple nsIChannel that is constructed from a single input stream and
* associated content type. Input stream channels only allow the input stream
* to be accessed, not the output stream.
*/
[scriptable, uuid(43070d6a-f947-11d3-8cda-0060b0fc14a3)]
interface nsIInputStreamChannel : nsIChannel
{
void init(in nsIURI uri,
in nsIInputStream inStr,
in string contentType,
in long contentLength);
};
%{C++
#define NS_INPUTSTREAMCHANNEL_CID \
{ /* 54d0d8e6-f947-11d3-8cda-0060b0fc14a3 */ \
0x54d0d8e6, \
0xf947, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
%}
////////////////////////////////////////////////////////////////////////////////
/**
* nsIFileChannel is an interface that allows for the initialization
* of a simple nsIChannel that is constructed from a single nsIFile and
* associated content type.
*/
[scriptable, uuid(68a26506-f947-11d3-8cda-0060b0fc14a3)]
interface nsIFileChannel : nsIChannel
{
void init(in nsIFile file,
in long ioFlags,
in long perm);
readonly attribute nsIFile file;
attribute long ioFlags;
attribute long permissions;
};
%{C++
#define NS_LOCALFILECHANNEL_CLASSNAME "Local File Channel"
#define NS_LOCALFILECHANNEL_PROGID "component://netscape/network/local-file-channel"
#define NS_LOCALFILECHANNEL_CID \
{ /* 6d5b2d44-f947-11d3-8cda-0060b0fc14a3 */ \
0x6d5b2d44, \
0xf947, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
%}
////////////////////////////////////////////////////////////////////////////////

View File

@@ -1,241 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIInputStream.idl"
#include "nsIOutputStream.idl"
#include "nsILocalFile.idl"
[scriptable, uuid(e3d56a20-c7ec-11d3-8cda-0060b0fc14a3)]
interface nsIFileInputStream : nsIInputStream
{
void init(in nsIFile file, in long ioFlags, in long perm);
};
[scriptable, uuid(e6f68040-c7ec-11d3-8cda-0060b0fc14a3)]
interface nsIFileOutputStream : nsIOutputStream
{
void init(in nsIFile file, in long ioFlags, in long perm);
};
[scriptable, uuid(e9de5df0-c7ec-11d3-8cda-0060b0fc14a3)]
interface nsISeekableStream : nsISupports
{
// correspond to PRSeekWhence values
const long NS_SEEK_SET = 0;
const long NS_SEEK_CUR = 1;
const long NS_SEEK_END = 2;
void seek(in long whence, in long offset);
unsigned long tell();
};
[scriptable, uuid(616f5b48-da09-11d3-8cda-0060b0fc14a3)]
interface nsIBufferedInputStream : nsIInputStream
{
void init(in nsIInputStream fillFromStream,
in unsigned long bufferSize);
};
[scriptable, uuid(6476378a-da09-11d3-8cda-0060b0fc14a3)]
interface nsIBufferedOutputStream : nsIOutputStream
{
void init(in nsIOutputStream sinkToStream,
in unsigned long bufferSize);
};
%{C++
////////////////////////////////////////////////////////////////////////////////
#define NS_LOCALFILEINPUTSTREAM_CLASSNAME "Local File Input Stream"
#define NS_LOCALFILEINPUTSTREAM_PROGID "component://netscape/network/file-input-stream"
#define NS_LOCALFILEINPUTSTREAM_CID \
{ /* be9a53ae-c7e9-11d3-8cda-0060b0fc14a3 */ \
0xbe9a53ae, \
0xc7e9, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
#define NS_LOCALFILEOUTPUTSTREAM_CLASSNAME "Local File Output Stream"
#define NS_LOCALFILEOUTPUTSTREAM_PROGID "component://netscape/network/file-output-stream"
#define NS_LOCALFILEOUTPUTSTREAM_CID \
{ /* c272fee0-c7e9-11d3-8cda-0060b0fc14a3 */ \
0xc272fee0, \
0xc7e9, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
////////////////////////////////////////////////////////////////////////////////
#define NS_BUFFEREDINPUTSTREAM_CLASSNAME "Buffered Input Stream"
#define NS_BUFFEREDINPUTSTREAM_PROGID "component://netscape/network/buffered-input-stream"
#define NS_BUFFEREDINPUTSTREAM_CID \
{ /* 9226888e-da08-11d3-8cda-0060b0fc14a3 */ \
0x9226888e, \
0xda08, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
#define NS_BUFFEREDOUTPUTSTREAM_CLASSNAME "Buffered Output Stream"
#define NS_BUFFEREDOUTPUTSTREAM_PROGID "component://netscape/network/buffered-output-stream"
#define NS_BUFFEREDOUTPUTSTREAM_CID \
{ /* 9868b4ce-da08-11d3-8cda-0060b0fc14a3 */ \
0x9868b4ce, \
0xda08, \
0x11d3, \
{0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
////////////////////////////////////////////////////////////////////////////////
// move to nsNetUtil.h later...
#include "nsILoadGroup.h"
#include "nsIInterfaceRequestor.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIChannel.h"
#include "nsILocalFile.h"
#include "nsIInputStream.h"
#include "nsIOutputStream.h"
#include "prio.h" // for read/write flags, permissions, etc.
// This will QI the file argument to an nsILocalFile in the Init method.
inline nsresult
NS_NewLocalFileChannel(nsIFileChannel **result,
nsIFile* file,
PRInt32 ioFlags = -1,
PRInt32 perm = -1)
{
nsresult rv;
nsCOMPtr<nsIFileChannel> channel;
static NS_DEFINE_CID(kLocalFileChannelCID, NS_LOCALFILECHANNEL_CID);
rv = nsComponentManager::CreateInstance(kLocalFileChannelCID,
nsnull,
NS_GET_IID(nsIFileChannel),
getter_AddRefs(channel));
if (NS_FAILED(rv)) return rv;
rv = channel->Init(file, ioFlags, perm);
if (NS_FAILED(rv)) return rv;
*result = channel;
NS_ADDREF(*result);
return NS_OK;
}
// This will QI the file argument to an nsILocalFile in the Init method.
inline nsresult
NS_NewLocalFileInputStream(nsIInputStream* *result,
nsIFile* file,
PRInt32 ioFlags = -1,
PRInt32 perm = -1)
{
nsresult rv;
nsCOMPtr<nsIFileInputStream> in;
static NS_DEFINE_CID(kLocalFileInputStreamCID, NS_LOCALFILEINPUTSTREAM_CID);
rv = nsComponentManager::CreateInstance(kLocalFileInputStreamCID,
nsnull,
NS_GET_IID(nsIFileInputStream),
getter_AddRefs(in));
if (NS_FAILED(rv)) return rv;
rv = in->Init(file, ioFlags, perm);
if (NS_FAILED(rv)) return rv;
*result = in;
NS_ADDREF(*result);
return NS_OK;
}
// This will QI the file argument to an nsILocalFile in the Init method.
inline nsresult
NS_NewLocalFileOutputStream(nsIOutputStream* *result,
nsIFile* file,
PRInt32 ioFlags = -1,
PRInt32 perm = -1)
{
nsresult rv;
nsCOMPtr<nsIFileOutputStream> out;
static NS_DEFINE_CID(kLocalFileOutputStreamCID, NS_LOCALFILEOUTPUTSTREAM_CID);
rv = nsComponentManager::CreateInstance(kLocalFileOutputStreamCID,
nsnull,
NS_GET_IID(nsIFileOutputStream),
getter_AddRefs(out));
if (NS_FAILED(rv)) return rv;
rv = out->Init(file, ioFlags, perm);
if (NS_FAILED(rv)) return rv;
*result = out;
NS_ADDREF(*result);
return NS_OK;
}
////////////////////////////////////////////////////////////////////////////////
inline nsresult
NS_NewBufferedInputStream(nsIInputStream* *result,
nsIInputStream* str,
PRUint32 bufferSize)
{
nsresult rv;
nsCOMPtr<nsIBufferedInputStream> in;
static NS_DEFINE_CID(kBufferedInputStreamCID, NS_BUFFEREDINPUTSTREAM_CID);
rv = nsComponentManager::CreateInstance(kBufferedInputStreamCID,
nsnull,
NS_GET_IID(nsIBufferedInputStream),
getter_AddRefs(in));
if (NS_FAILED(rv)) return rv;
rv = in->Init(str, bufferSize);
if (NS_FAILED(rv)) return rv;
*result = in;
NS_ADDREF(*result);
return NS_OK;
}
inline nsresult
NS_NewBufferedOutputStream(nsIOutputStream* *result,
nsIOutputStream* str,
PRUint32 bufferSize)
{
nsresult rv;
nsCOMPtr<nsIBufferedOutputStream> out;
static NS_DEFINE_CID(kBufferedOutputStreamCID, NS_BUFFEREDOUTPUTSTREAM_CID);
rv = nsComponentManager::CreateInstance(kBufferedOutputStreamCID,
nsnull,
NS_GET_IID(nsIBufferedOutputStream),
getter_AddRefs(out));
if (NS_FAILED(rv)) return rv;
rv = out->Init(str, bufferSize);
if (NS_FAILED(rv)) return rv;
*result = out;
NS_ADDREF(*result);
return NS_OK;
}
%}

View File

@@ -1,65 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
%{C++
#include "nsFileSpec.h"
%}
interface nsIChannel;
interface nsIFileSystem;
interface nsIEventSinkGetter;
interface nsIInputStream;
interface nsIRunnable;
interface nsIFile;
[scriptable, uuid(57211a60-8c45-11d3-93ac-00104ba0fd40)]
interface nsIFileTransportService : nsISupports
{
nsIChannel createTransport(in nsIFile file,
in long ioFlags,
in long perm);
// This version can be used with an existing input stream to serve
// as a data pump:
nsIChannel createTransportFromStream(in nsIInputStream fromStream,
in string contentType,
in long contentLength);
nsIChannel createTransportFromFileSystem(in nsIFileSystem fsObj);
void dispatchRequest(in nsIRunnable runnable);
void suspend(in nsIRunnable trans);
void resume(in nsIRunnable trans);
void processPendingRequests();
void shutdown();
};
%{C++
#define NS_FILETRANSPORTSERVICE_CID \
{ /* 2bb2b250-ea35-11d2-931b-00104ba0fd40 */ \
0x2bb2b250, \
0xea35, \
0x11d2, \
{0x93, 0x1b, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
%}

View File

@@ -1,169 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIChannel.idl"
interface nsIProtocolHandler;
interface nsIURI;
interface nsIInterfaceRequestor;
interface nsIStreamObserver;
interface nsIStreamListener;
interface nsIEventQueue;
interface nsIBufferInputStream;
interface nsIInputStream;
interface nsIBufferOutputStream;
interface nsIFileChannel;
interface nsILoadGroup;
interface nsILoadGroupObserver;
interface nsIFile;
interface nsIInputStream;
interface nsIOutputStream;
[scriptable, uuid(ab7c3a84-d488-11d3-8cda-0060b0fc14a3)]
interface nsIIOService : nsISupports
{
/**
* Returns a protocol handler for a given URI scheme.
*/
nsIProtocolHandler getProtocolHandler(in string scheme);
/**
* 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 notificationCallbacks argument
* is used to obtain the appropriate callbacks for the URI's protocol from the
* application.
*
* @param originalURI - Specifies the original URI which caused the creation
* of this channel. This can occur when the construction of one channel
* (e.g. for resource:) causes another channel to be created on its behalf
* (e.g. a file: channel), or if a redirect occurs, causing the current
* URL to become different from the original URL. If NULL, the aURI parameter
* will be used as the originalURI instead.
*/
nsIChannel newChannelFromURI(in nsIURI aURI);
/**
* Convenience routine that first creates a URI by calling NewURI, and
* then passes the URI to NewChannelFromURI.
*
* @param originalURI - Specifies the original URI which caused the creation
* of this channel. This can occur when the construction of one channel
* (e.g. for resource:) causes another channel to be created on its behalf
* (e.g. a file: channel), or if a redirect occurs, causing the current
* URL to become different from the original URL. If NULL, the aURI parameter
* will be used as the originalURI instead.
*/
nsIChannel newChannel(in string aSpec, in nsIURI aBaseURI);
/**
* Returns true if networking is in "offline" mode. When in offline mode, attempts
* to access the network will fail (although this is not necessarily corrolated with
* whether there is actually a network available -- that's hard to detect without
* causing the dialer to come up).
*/
attribute boolean offline;
////////////////////////////////////////////////////////////////////////////
// URL parsing utilities
/**
* Utility for protocol implementors -- extracts the scheme from a URL
* string, consistently and according to spec.
* @param urlString - the URL string to parse
* @param schemeStartPos - the resulting starting position of the scheme substring
* (may skip over whitespace)
* @param schemeEndPos - the resulting ending position of the scheme substring
* (the position of the colon)
* @param scheme - an allocated substring containing the scheme. If this parameter
* is null going into the routine, then the scheme is not allocated and
* returned. Free with nsCRT::free.
*
* @return NS_OK - if successful
* @return NS_ERROR_MALFORMED_URI - if the urlString is not of the right form
*/
void extractScheme(in string urlString,
out unsigned long schemeStartPos,
out unsigned long schemeEndPos,
out string scheme);
/**
* Constants for the mask in the call to Escape
*/
const short url_Scheme = (1<<0);
const short url_Username = (1<<1);
const short url_Password = (1<<2);
const short url_Host = (1<<3);
const short url_Directory = (1<<4);
const short url_FileBaseName = (1<<5);
const short url_FileExtension = (1<<6);
const short url_Param = (1<<7);
const short url_Query = (1<<8);
const short url_Ref = (1<<9);
const short url_Forced = (1<<10);
/**
* Encode characters into % escaped hexcodes.
*/
string escape(in string str, in short mask);
/**
* Decode % escaped hex codes into character values.
*/
string unescape(in string str);
/**
* Get port from string.
*/
long extractPort(in string str);
/**
* Resolves a relative path string containing "." and ".."
* with respect to a base path (assumed to already be resolved).
* For example, resolving "../../foo/./bar/../baz.html" w.r.t.
* "/a/b/c/d/e/" yields "/a/b/c/foo/baz.html". Attempting to
* ascend above the base results in the NS_ERROR_MALFORMED_URI
* exception. If basePath is null, it treats it as "/".
*/
string resolveRelativePath(in string relativePath,
in string basePath);
};
%{C++
#define NS_IOSERVICE_CID \
{ /* 9ac9e770-18bc-11d3-9337-00104ba0fd40 */ \
0x9ac9e770, \
0x18bc, \
0x11d3, \
{0x93, 0x37, 0x00, 0x10, 0x4b, 0xa0, 0xfd, 0x40} \
}
#define DUD 3.14
%}

View File

@@ -1,104 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsIRequest.idl"
interface nsIChannel;
interface nsISimpleEnumerator;
interface nsIStreamObserver;
interface nsIStreamListener;
interface nsIInputStream;
[scriptable, uuid(60fdf550-5392-11d3-9a97-0080c7cb1080)]
interface nsILoadGroupListenerFactory : nsISupports
{
nsIStreamListener createLoadGroupListener(in nsIStreamListener alistener);
};
/**
* A load group maintains a collection of active URL requests.
*/
[scriptable, uuid(19845248-29ab-11d3-8cce-0060b0fc14a3)]
interface nsILoadGroup : nsIRequest
{
void init(in nsIStreamObserver observer);
/**
* Accesses the default load attributes for the group, returned as
* a flag word. Setting the default load attributes will cause them
* to be applied to each new channel inserted into the group.
*/
attribute unsigned long defaultLoadAttributes;
/**
* Accesses the default load channel for the group. Each time a number
* of channels are added to a group, the DefaultLoadChannel may be set
* to indicate that all of the channels are related to a particular URL.
*/
attribute nsIChannel defaultLoadChannel;
/**
* Adds a new channel to the group. This will cause the default load
* attributes to be applied to that channel. If the channel added is
* the first channel in the group, the group's observer's OnStartRequest
* method is called.
*/
void addChannel(in nsIChannel channel,
in nsISupports ctxt);
/**
* Removes a channel from the group. If the channel removed is
* the last channel in the group, the group's observer's OnStopRequest
* method is called.
*/
void removeChannel(in nsIChannel channel,
in nsISupports ctxt,
in nsresult status,
in wstring errorMsg);
/**
* Returns the channels contained directly in this group.
* Enumerator element type: nsIChannel.
*/
readonly attribute nsISimpleEnumerator channels;
attribute nsIStreamObserver groupObserver;
attribute nsILoadGroupListenerFactory groupListenerFactory;
readonly attribute unsigned long activeCount;
};
%{C++
#define NS_LOADGROUP_CID \
{ /* e1c61582-2a84-11d3-8cce-0060b0fc14a3 */ \
0xe1c61582, \
0x2a84, \
0x11d3, \
{0x8c, 0xce, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3} \
}
%}

View File

@@ -1,47 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* This interface defines a registry entry for the networking libraries
* external module registry. */
#include "nsISupports.idl"
#include "nsINetNotify.idl"
interface nsIEventQueue;
interface nsINetModRegEntry;
interface nsINetNotify;
%{ 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 syncProxy;
readonly attribute nsINetNotify asyncProxy;
readonly attribute string topic;
boolean equals(in nsINetModRegEntry aEntry);
};

View File

@@ -1,80 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/* 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 } }
// The list of available PROGIDS to register for notification on.
#define NS_NETWORK_MODULE_MANAGER_HTTP_REQUEST_PROGID "component://netscape/network/moduleMgr/http/request"
#define NS_NETWORK_MODULE_MANAGER_HTTP_RESPONSE_PROGID "component://netscape/network/moduleMgr/http/response"
%}
[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.
// aNotify: The external module interface methods to be called when an event is fired.
//
// RETURNS: nsresult
void registerModule(in string aTopic, in nsINetNotify aNotify);
// 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 nsINetNotify aNotify);
// 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

@@ -1,28 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
[uuid(4A3019E0-1CF3-11d3-A15B-0050041CAF44)]
interface nsINetNotify : nsISupports {
};

View File

@@ -1,76 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
[scriptable, uuid(edd8be01-8e0d-11d3-b7a0-c46e946292bc)]
interface nsINetPrompt : nsISupports
{
/**
* Puts up an alert dialog with an OK button.
*/
void alert( in string url, in boolean stripurl, in wstring title, in wstring text);
/**
* Puts up a dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean confirm( in string url, in boolean stripurl, in wstring title, in wstring text);
/**
* Puts up a username/password dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean promptUsernameAndPassword(
in string url,
in boolean stripurl,
in wstring title,
in wstring text,
out wstring user,
out wstring pwd);
/**
* Puts up a password dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean promptPassword(
in string url,
in boolean stripurl,
in wstring title,
in wstring text,
out wstring pwd);
/**
* Puts up a prompt dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean prompt(
in string url,
in boolean stripurl,
in wstring title,
in wstring text,
out wstring pwd);
};

View File

@@ -1,51 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
interface nsIURI;
interface nsIChannel;
/**
* 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 nsIChannel channel,
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 nsIChannel channel,
in nsISupports ctxt,
in wstring aMsg);
};

View File

@@ -1,102 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
[scriptable, uuid(a63f70c0-148b-11d3-9333-00104ba0fd40)]
interface nsIPrompt : nsISupports
{
/**
* Puts up an alert dialog with an OK button.
*/
void alert(in wstring text);
/**
* Puts up a dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean confirm(in wstring text);
/**
* Puts up a dialog with OK and Cancel buttons, and
* a message with a single checkbox.
* @return true for OK, false for Cancel
*/
boolean confirmCheck(in wstring text,
in wstring checkMsg,
out boolean checkValue);
/**
* Puts up a text input dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean prompt(in wstring text,
in wstring defaultText,
out wstring result);
/**
* Puts up a username/password dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean promptUsernameAndPassword(in wstring text,
out wstring user,
out wstring pwd);
/**
* Puts up a password dialog with OK and Cancel buttons.
* @return true for OK, false for Cancel
*/
boolean promptPassword(in wstring text,
in wstring title,
out wstring pwd);
/**
* Puts up a dialog box which has a list box of strings
*/
boolean select(in wstring inDialogTitle,
in wstring inMsg,
in PRUint32 inCount,
[array, size_is(inCount)] in wstring inList,
out long outSelection);
/**
* Put up a universal dialog
*/
void universalDialog(in wstring inTitleMessage,
in wstring inDialogTitle, /* e.g., alert, confirm, prompt, prompt password */
in wstring inMsg, /* main message for dialog */
in wstring inCheckboxMsg, /* message for checkbox */
in wstring inButton0Text, /* text for first button */
in wstring inButton1Text, /* text for second button */
in wstring inButton2Text, /* text for third button */
in wstring inButton3Text, /* text for fourth button */
in wstring inEditfield1Msg, /*message for first edit field */
in wstring inEditfield2Msg, /* message for second edit field */
inout wstring inoutEditfield1Value, /* initial and final value for first edit field */
inout wstring inoutEditfield2Value, /* initial and final value for second edit field */
in wstring inIConURL, /* url of icon to be displayed in dialog */
inout boolean inoutCheckboxState, /* initial and final state of checkbox */
in PRInt32 inNumberButtons, /* total number of buttons (0 to 4) */
in PRInt32 inNumberEditfields, /* total number of edit fields (0 to 2) */
in PRInt32 inEditField1Password, /* ??? */
out PRInt32 outButtonPressed); /* number of button that was pressed (0 to 3) */
};

View File

@@ -1,67 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIChannel.idl"
interface nsIURI;
interface nsIInterfaceRequestor;
interface nsILoadGroup;
[scriptable, uuid(15fd6940-8ea7-11d3-93ad-00104ba0fd40)]
interface nsIProtocolHandler : nsISupports
{
readonly attribute string scheme;
readonly attribute long defaultPort;
/**
* 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);
/**
* Constructs a new channel for this protocol handler.
*
* @param originalURI - Specifies the original URI which caused the creation
* of this channel. This can occur when the construction of one channel
* (e.g. for resource:) causes another channel to be created on its behalf
* (e.g. a file: channel), or if a redirect occurs, causing the current
* URL to become different from the original URL. If NULL, the aURI parameter
* will be used as the originalURI instead.
*/
nsIChannel newChannel(in nsIURI aURI);
};
%{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)
// Unknown Protocol Error
#define NS_ERROR_UNKNOWN_PROTOCOL NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_NETWORK, 18)
%}

View File

@@ -1,40 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
#include "nsIURI.idl"
#include "nsIProxy.idl"
%{C++
#define NS_PROTOCOLPROXYSERVICE_CID \
{ /* E9B301C0-E0E4-11d3-A1A8-0050041CAF44 */ \
0xe9b301c0, 0xe0e4, 0x11d3, { 0xa1, 0xa8, 0x0, 0x50, 0x4, 0x1c, 0xaf, 0x44 } }
%}
[scriptable, uuid(495CC980-E0D4-11d3-A1A8-0050041CAF44)]
interface nsIProtocolProxyService : nsISupports
{
readonly attribute PRBool proxyEnabled;
void examineForProxy(in nsIURI aURI, in nsIProxy aProxy);
};

View File

@@ -1,41 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
/*
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
*/
#include "nsISupports.idl"
[scriptable, uuid(0492D011-CD2F-11d2-B013-006097BFC036)]
interface nsIProxy : nsISupports
{
attribute string proxyHost;
/* -1 on Set call indicates switch to default port */
attribute long proxyPort;
};

View File

@@ -1,63 +0,0 @@
/* -*- 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.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "nsISupports.idl"
[scriptable, uuid(F2CAABA0-2F25-11d3-A164-0050041CAF44)]
interface nsIRequest : nsISupports
{
/**
* Returns true if the request is pending (active). Returns false
* after completion or successful calling Cancel. Suspended requests
* are still considered pending.
*/
boolean isPending();
/**
* Returns any error status associated with the request.
*/
readonly attribute nsresult status;
/**
* Cancels the current request. This will close any open input or
* output streams and terminate any async requests. Users should
* normally pass NS_BINDING_ABORTED, although other errors may also
* be passed. The error passed in will become the value of the
* status attribute.
*/
void cancel(in nsresult status);
/**
* 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();
};

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